w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Getting ClassCastException in oracle 10g express edition.
con.createStatement() should return an implementation of java.sql.Statement and not of java.beans.Statement. Maybe you imported java.beans.Statement instead of java.sql.Statement which causes the cast to fail?

Categories : Java

oracle 10g express edition database connection
You should be using Class.forName("oracle.jdbc.OracleDriver"); not Class.forName("oracle.jdbc.driver.OracleDriver"); assuming you have the right jar on the classpath. oracle.jdbc.driver.OracleDriver was replaced by oracle.jdbc.OracleDriver in 10g.

Categories : Java

Cannot run SQL script on Oracle Database 10g Express Edition
Ok, so I figured it out by myself. So I'm answering my question so that it may help anyone else who have had this weird problem. When you open the database home page on any browser other than IE, this problem occurs, and you won't be able to do a single thing with your script. So always open your database home page on IE if you have to upload some data. For all other tasks, any other browser is fine. Cheers.

Categories : Oracle

cannot connect to Oracle Database 11g Express Edition
Please make sure the service of oracle-xe is running if you are using winOS, and you could "ps -ef" if you are using linuxOS. If the service and daemon is up and running then paste the log of your bdump. where is the Oracle Event Log located? Shows you the how to.

Categories : Oracle

Create an Outlook plugin using VS Express Edition
Do not create a new instance of the Outlook.Application object. Use the instance passed to you on startup. More than that, if you are processing the Application.Startup event, you already have a pointer to the Application object, what do you need a new one for?

Categories : C#

Can I use SQL Server-2012 Express edition over a network when the FIREWALL is on
You still need to make sure you're connecting through a known port, and open that port on your firewall. In the configuration manager, open the TCP/IP settings. Under IPAll, ensure Dynamic Ports is blank and TCP Port is 1433. Then, make sure 1433 is allowed inbound on your firewall. If you have a network level firewall, check with it's administrators to make sure that port is open. Yes, network sharing will work with the professional edition with a firewall - just need to make sure the correct ports are open.

Categories : Sql Server

Libcurl error in a Windows Forms Application in Visual C++ 2010 express edition
Since you're compiling managed C++, your native curl calls need to be marshaled through p/Invoke. It might be easiest to wrap these in flat "C" calls to make the marshaling simpler. In any case, I'd use the P/Invoke Interop Assistant tool (http://clrinterop.codeplex.com/releases/view/14120) to generate the necessary signatures.

Categories : Misc

How to migrate from Enterprice edition to community edition?
I did this from Professional edition to community and there is no way to really migrate. You basically have to export all of your products, import. Install a new copy of the extensions (very often there is a enterprise specific extension), reconfig. And then copy over the cms and blocks, categories and attribute sets. Some stuff you can do using tables. But its really best to just manually chunk things in and out.

Categories : Magento

ASP.Net Report Viewer- SSRS Express - Unable to read data from the transport connection—The connection was closed
I have resolved this by removing the ReportViewer UI control and we are now creating a pdf of the report using ReportViewer.ServerReport.Render() and opening with Process.Start(). The client only wants a pdf or a print out so we don't need the report viewer as such. I'm not sure why the connection was closed at times, maybe it's network related as I couldn't replicate on a machine located physically next to the server. Either way this is resolved, onto the next project!

Categories : Reporting Services

Finalizing a Cursor that has not been deactivated or closed or database not closed error
When you are done with the cursor, you need to call Cursor.close(). Leaving it not closed leads to memory leaks. E.g.: Cursor cursor = null; try { cursor = getContentResolver().query(myUri, MY_PROJECTION, null, null, null); if (cursor != null && cursor.moveToFirst()) { // moar code } } finally { if (cursor != null) { cursor.close(); } }

Categories : Android

Application gets closed when terminal is closed, how to stop this?
Use nohup to prevent child processes from being killed when the terminal closes. spawn nohup /usr/bin/firefox https://www.google.com/ I assume there's more to the script, since there's no need to use Expect just to start firefox.

Categories : Python

How to draw closed spline 3D (closed curve 3d) through unordered list of points3D. How to arrange points3D?
It sounds like you're looking for the Concave Hull of the data set. Unfortunately, I don't know of any pre-canned algorithms, but the link references a paper that another developer was starting from, as well as some sample code, so maybe that'll help you in the right direction.

Categories : C#

The underlying connection was closed: The connection was closed unexpectedly wcf service
The first thing i will do is, instead of returning the full list of candidates i will return an empty list. If that works fine, then it is very clear that the size of the data is a problem. To modify the size play with your binding parameters.

Categories : Wcf

Not loading "express-validator": Migration to Express 3
Looking at the usage, expressValidator is a function that will return a middleware function, so you need to explicitly call it: app.use(expressValidator());

Categories : Node Js

Bug in K&R second edition?
I think you're confused somewhere. This loop condition: for (i=0; i < lim-1 && (c=getchar())!=EOF && c!=' '; ++i) Ensures that i is never greater than lim - 2, so in the maximum-length case, i is lim-1 after the loop exits and the null character is stored into that last position.

Categories : C

First Data Patament Gateway- No option to download 'digital certificate' (.PEM) file in Download Center
You can Download the Certificates using Internet Explorer Browser. The Firefox, Chrome and other browsers not support to download. Important thing is Use "111111111" as your Tax ID for your test account. For production stores you will be required to supply your actual SSN or Tax ID submitted in the merchant account boarding process.

Categories : PHP

google drive download document using javascript :can't download files
"if i paste the downloadUrl in the browser it won't give any result" is correct because when you GET using a browser there is no authentication header. If you check the status you will see a 401 error. I use "Authorization: 'OAuth ' + gapi.auth.getToken()['access_token']" rather than 'Bearer'. I'm not sure if that is significant. Are you sure the downloadUrl is current? This is a short-lived attribute, so it's possible the link has expired. It's also possible the access token is invalid. As Burcu said, your answer is probably within the response and status to your xhr get.

Categories : Javascript

C# Multiple Download from FTP using parallel task - Duplicate Download issue
You better use Distinct like below Parallel.ForEach(remotefiles.Distinct(), file => DownloadFile(sfc, file)); if you have duplicate file names and when parallel processing start on same file you will get exception on those duplicate files. And also you are not downloading to another location, what you are doing is download to same ftp source location. is that correct? I would give diferent download directory and get file name from source file and then download to that location as below private void DownloadFile(SftpClient sf, string RemoteFileName) { string downloadTo = Path.Combine(DownloadDirectoryPath, Path.GetFileName(RemoteFileName)); using (Stream ms = File.OpenWrite(downloadTo)) { sf.DownloadFile(RemoteFileName, ms); }

Categories : C#

"The underlying connection was closed: The connection was closed unexpectedly"
The first request does not utilize a header that indicates the length of the result. It closes the connection when it finishes. The second request utilizes the length header, reads the designated number of bytes, then closes the connection gracefully. (under the client side control instead of server driven disconnection) -or- The url you sent caused an error on the server. Is there an error in the server log or event viewer?

Categories : C#

Using express.json instead of express.bodyparser
Your approach is fine, since you are potentially reducing the attack area on your app. But, I'm not sure there's any evidence that using bodyParser (which would allow some malformed JSON, as well as url-encoded and multipart-form encoded data as well) would be any meaningful risk. You can see exactly what strict: true means here: http://www.senchalabs.org/connect/json.html if (strict && '{' != buf[0] && '[' != buf[0]) return next(utils.error(400, 'invalid json')); It just ensures that the JSON starts with a { or a [. You're still relying on Google not to have screwed up their JSON.parse implementation in V8 the way Rails did with YAML, which I think is a relatively safe bet.

Categories : Node Js

How Can I Tell Which Edition Of SQL Server Is On Disk?
There are no different installations for different editions. It's based on the product key you enter during installation. If you are unsure of your product key what version is, you can run the installation up to the point where you enter key, see Licence Terms for specific edition in the next step, and just Cancel from there.

Categories : Sql Server

How to know which edition of vs2010 do I have installed?
Ok so I went to the registry on a machine with 2010 Ultimate and on HKEY_LOCAL_MACHINESOFTWAREMicrosoftVisualStudio10.0SetupVS I've only found VSTS so, Ultimate is covered. VSTS is the name of Ultimate in the registry (But premium is still a question). (And that's why this isnt an accepted answer yet).

Categories : Visual Studio 2010

SQL Server Compact Edition Set Up
SQL Server Compact Edition is a file-based solution (using .sdf files), not a server-based solution like SQL Server Express. Therefore SQL Server CE cannot (really) be managed/handled by SQL Server Management Studio. (I do know - some people claim you can - but I personally have never been able to open any .sdf file in any version of SQL Server Management Server). You'll need something like the SQL Server CE Toolbox to look at those .sdf files and their contents

Categories : SQL

File download from URL stops when multiple clients try to download it
Your download code looks ok and I do not see any reason for a race condition, so without deeper analysis of your download code, I can tell you that this code (client side) is not the problem. It must be the server side which causes the problem, i.e. your webserver or a proxy or firewall which is in between. Moreover, maybe you should look at JNLP, which is a technology designed exactly for your problem of keeping an application always updated and checking this at startup.

Categories : Java

Download image from URL that automaticaly creates download - python
There's nothing particularly special about X-Accel-Mapping header. Perhaps the page makes the HTTP request with ajax, and uses the X-Accel-Mapping reader value to trigger the download? Here's how I'd do it with urllib2: response = urllib2.urlopen(url_to_get_x_accel_mapping_header) download_url = response.headers['X-Accel-Mapping'] download_contents = urllib2.urlopen(download_url).read()

Categories : Python

Download Code Error In PHP? Upload And Download Form
You can download a file direct from your dowload.php by specifying a custom header and using readfile to include the file. Checkout this stack question: How to return a file in PHP

Categories : PHP

getting previous value before edition from textbox in gridview
After clicking Update, two events will be raised. 1.) GridView.Updating : Raised just before the Update is about to be committed. In this event the data is still not updated in the Database. Basically this event is meant for some dynamic changes to be applied if required before the Update method actually commits the changed data to database. 2.) GridView.Updated This event is raised immediately after data is updated. So it is in this event only that you put a debug symbol and check the Value. You will see your new value: Scott. <asp:GridView ID="GridView1" runat="server" OnRowUpdated="GridView1_RowUpdated"></asp:GridView> As you are checking the data when update is not made.That's why you are getting the original values only. Inside the GridView1_RowUpdated(

Categories : Asp Net

Detecting visual studio edition in IDE
Not related to Visual Studio, but here is the code to detect the directory where the executable is located: string path = Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName); You can then check if the path contains the string "Visual Studio" and act accordingly.

Categories : C#

Connecting and Using SQL Compact Edition in a WPF application
SqlCompact just creates a file (.sdf) on your local file system. You can create it on the fly and then delete it when your done.. or keep it around. Here's some code snippits I grabbed from a project I once did. It should help with the creation/CRUD questions. using System.Data.SqlServerCe; private SqlCeConnection InitializeDatabase() { string connectionString = CreateDatabase(); SqlCeConnection conn = new SqlCeConnection(connectionString); conn.Open(); CreateTable(conn); return conn; } private string CreateDatabase() { string dbPath = String.Format("{0}scanner.sdf", _rootPath); if (File.Exists(dbPath)) File.Delete(dbPath); string connectionString = String.Format("DataSource="{0}";Max Database Size=3000;", dbPath); SqlCeEngine en = new S

Categories : C#

Microsoft Solver Foundation: Enterprise edition
Historically it was available as a purchase from Gurobi. However the software is now defunct(*) and I no longer see it on their site. You can see how it used to look here. You might try contacting them directly. (*)In May 2012 last year, the Solver Foundation team wrote: The current 3.1 release of MSF will be the last release as a standalone install. We are working hard on integrating Microsoft Solver Foundation into a larger analytics framework that will help users build both prescriptive and predictive analytics. We look forward to releasing this new product for your use as soon as we are able to do so. This new product will provide a migration path for current Solver Foundation users and partners.

Categories : Misc

SQL Server 2012 - Developer Edition Questions
The Developer Edition is functionally identical to the Enterprise edition (it just doesn't have a license to use it legally in a production environment). See the SQL Server web site for the Enterprise edition for the full feature list. So yes, most definitely, it has SSIS and everything in the box. And I believe it should be available for purchase at large online software vendors, too - depends on your location, I guess. E.g. at Amazon, if you're in the US.

Categories : Sql Server

Oracle Edition required to use fuzzy operators
The Oracle documentation includes the Licensing guide which explains the limitation of features by edition. Find out more. Anything which is not mentioned in the Licensing Guide is available in all editions. Oracle Text is not mentioned (assuming that's what you mean by "fuzzy operators") so you can use it with SE.

Categories : Oracle

What is latest ruby on rails enterprise edition?
No, the last REE is based on 1.8.7. The technical improvements made in 1.9 / 2.0 made it unnecessary to continue maintaining a separate 'Enterprise Edition' fork. A brief explanation can be found here (see End of Life section). If you are finding that 1.9.3 is slow, you can try patching with the back-ported GC improvements to 2.0 (along with some other modest improvements) - see here for how you can do this. However, all this assumes that the slowdown is due to ruby itself and not due to the code, architecture, or server overhead...

Categories : Ruby On Rails

Does Sql Server Compact Edition 3.5 query timeout?
No they do timeout, you can define the timeout in connection string like this SqlCeConnection conn = new SqlCeConnection(); conn.ConnectionString = "Persist Security Info=False; Data Source = Northwind.sdf;" + "Password = <password>; server=mySQLServer;Connect Timeout=30"; This is whay MSDN has to say. ConnectionTimeout Property is the time (in seconds) to wait for a connection to open. The value is always 0 in SQL Server Compact as it is readonly.

Categories : C#

Neo4j Community Edition backup in windows
The Backup service is only available in enterprise edition. You can schedule a regular backup of the Neo4j's data files using the tools that come with Windows.

Categories : Neo4j

What is an alternate to SQL Triggers in Sql Server Compact Edition?
An approach to working around the lack of triggers is in another stackoverflow answer here

Categories : Wpf

How can I compile OpenSplice 5.5.1 Community Edition with VS2012
With some help from here: http://forums.opensplice.org/index.php?/topic/2255-building-opensplice-551-on-vs2010-vs2012/ I managed to compile. Some make-files need to be adapted and the parsing of the cl.exe version needed to be changed. I hope the community edition 6.3 that comes out in July will compile directly out of the box.

Categories : Visual Studio 2012

Access DB PDO not working in Windows Server x64 edition
I experienced the same problems. I was able to read and display records but INSERT had no effect, no error was thrown either. The thing is, I kept trying to execute an SQL statement with the values already filled out. Once I tried the prepare and execute statements with actual parameters it did work. I have no idea why it behaves this way but it seems like you can't directly execute INSERT statements? Btw I previously tried 'prepare - execute' with no arguments as well ( as the data was filled out in the query already ). Glad it only took me 3 hours of trial and error! :(

Categories : PHP

Can InstallAnywhere Enterprise projects be used with the Standard edition?
If you peek into an InstallAnywhere project file, you'll see a bunch of deeply-nested XML elements that define a large number of fully qualified class names (FQCNs). It seems like InstallAnywhere is a giant reflection engine that reads this XML and instantiates the Swing components defined in the XML. Depending how InstallAnywhere Standard Edition is constructed (in other words, are ALL InstallAnywhere classes shipped, but disabled, or is just a subset of InstallAnywhere classes shipped) and on whether or not your installer uses any Enterprise-only features, loading an Enterprise Edition project into the Standard Edition editor may, or may not, cause InstallAnywhere to barf all over itself. My speculation is that if you've avoided any actions and rules that are Enterprise-only, then you

Categories : Misc

Automatically download an xml file from URI with download popup
The URI that you are using is probably wrong. You are using the URI that opens the popup page. The popup page should be doing another GET to the dynamically generated file. To automate this process, you should use a WebRequest to get the contents of the popup page. Scrape the contents of the page to get the actual URL to download the file. Then use the code you have written to download the file. var request = WebRequest.Create("PopupUrl"); var response = request.GetResponse(); string url = GetUrlFromResponseByRegExOrXMLParsing(); var client = new WebClient(); webClient.DownloadFile(url, filePath);

Categories : C#



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.