w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
OracleJDBC Driver : Does driver commits on close() by default even if conn.setAutoCommit is False?
When a Connection is closed, it needs to either rollback or commit the current transaction. IIRC, the JDBC specification allows an implementation to choose either as long as it is consistent in its behavior (always commit or always rollback on close). So yes, the behavior is allowed and so it is correct. If it is the best choice is debatable: you can argue that committing on close makes sure no information is lost, on the other hand you didn't explicitly commit, so maybe you didn't want the info to be persisted.

Categories : Oracle

Error: The path to the driver executable must be set by the webdriver.chrome.driver system property
Using selenium-server-standalone-*.jar from here, you can pass webdriver.chrome.driver property when launching it like so: java -jar selenium-server-standalone-2.35.0.jar -Dwebdriver.chrome.driver="D:devchromedriver.exe" This eliminates the error; Java command line option -Dproperty=value sets a system property value as expected.

Categories : Node Js

How to resolve [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
When I copy and paste your code into Eclipse I get the error message you mention. That is because the driver name is malformed. Instead of... String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb,*.accdb)};DBQ="+fn+".accdb;"; ...you need to use... String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ="+fn+".accdb;"; Note the single spaces in ... Driver (*.mdb, *.accdb)...

Categories : Java

Easiest driver for a Linux Device Driver newbie
You should start by studying the basics of Loadable Kernel Modules. First few chapters of LKMPG by Salzman will be a good start And the easiest driver, IMHO, is a simpleton driver that uses memory as a device and reads/write to it. One such driver is beautifully explained in third chapter of LDD3e. You would also need to increase your knowledge of the Linux Kernel itself in order to advance towards relatively hard drivers. The better you understand Kernel's subsystems the easier it will be for you to develop device drivers around them.

Categories : Linux

Error loading driver: com.mysql.jdbc.Driver
I'll assume you don't have the MySQL driver JDBC JAR in your CLASSPATH when you run. There's not enough information to tell. Show how you invoke this class. Do you know how to use the java.exe command line tool?

Categories : Java

Selenium Web Driver seems to skip driver.get() intermittently
No problem, change code to something like this instead: Wait<WebDriver> wait = new FluentWait<WebDriver>(driver) .withTimeout(30, SECONDS) .pollingEvery(5, SECONDS) .ignoring(NoSuchElementException.class, ElementNotFoundException.class); wait.until(ExpectedConditions.visibilityOfElementLocated(By.linkText("Liferay"))); driver.get(baseUrl + "/user/tm2/so/dashboard"); driver.findElement(By.xpath("//h3[contains(., 'Not Found')]"));

Categories : Java

Replacing firefox driver with htmlunit driver
HtmlUnit driver <> FirefoxDriver "If you test javascript using HtmlUnit the results may differ significantly from those browsers" Take a look here

Categories : CSS

Different SearchBox results from HERE API and old Nokia OVI API
This can be done by adding the showAddress parameter. Taking your example the following search box: var fromSearchBox = new nokia.places.widgets.SearchBox({ targetNode: "fromSearchBox", template: "fromSearchBox", map: map }); Returns the following responses to "Oxford Street" for a search centered on London Results Oxford Street Oxford Street John Lewis Oxford Street Adding in the showAddress parameter as shown: var toSearchBox = new nokia.places.widgets.SearchBox({ targetNode: "toSearchBox", template: "toSearchBox", map: map, suggestions : {showAddress: true} }); And the "Oxford Street" query gives me: Results Oxford Street Southampton, SO14 3, United Kingdom Oxford Street Northwo

Categories : Javascript

Displaying Map on Lwuit nokia s40
Have you taken a look on this tutorial? LWUIT MAP I think that this can solve your problem.

Categories : Java

Using Nokia AT command in VB 2010
0) open read before write, try switch: SerialPort1.Open() TextBox1.Text = SerialPort1.ReadLine() SerialPort1.WriteLine("AT") SerialPort1.WriteLine("AT+CNUM") SerialPort1.Close() 1) send ( ) -- end of string 2) use command with view resultats: call (ATD<number>); busy (ATH); response call (ATA) -- for view this 2 commands to call from phone to modem; other (blink/switch off radio/play tone) disclaimer: VB don't know, i'm using python on Linux; sorry for my dirty english.

Categories : Vb.Net

Nokia S40 custom header bar
In my application it's work: protected void createTitle(Form f) { Container titleContainer = f.getTitleArea(); titleContainer.removeAll(); titleContainer.setLayout(new BorderLayout()); titleContainer.addComponent(BorderLayout.CENTER, titleBarContainer); titleContainer.addComponent(BorderLayout.EAST, labelLogo); }

Categories : Java

nokia web apps playing sound
Your code does not work because the embed tag is not supported in S40 Web Apps. This page lists all the supported tags. The example given in this FAQ instructs you to use the loadUrl method. There is no way to play a sound in the background of the app. The following example will download the file and the user will play it in the native audio player. Example: <a href="#" onclick="mwl.loadURL('path_to_file.mp3');">Play sound</a>

Categories : Javascript

Error creating Session: org.hibernate.HibernateException: Specified JDBC Driver com.mysql.jdbc.Driver class not found
The error message you got from Hibernate Error creating Session: org.hibernate.HibernateException: Specified JDBC Driver com.mysql.jdbc.Driver class not found occurs because the class com.mysql.jdbc.Driver is missing from your classpath, ie. the jar containing it should be in WEB-INF/lib. Add the mysql connector jar to that folder.

Categories : Java

Windows phone 8 GeoFencing using Nokia Maps
The new GeoCoordinateWatcher API deals with this in Windows Phone 8. Geofencing and Geolocation in WP8 formed a major part of the discussion in a recent webinar on the subject - the slides can be found here. Rather than repeat the code here, I would suggest that you look at the Track My Position example which can be found in the Windows Phone 8 Maps Examples project on projects.developer.nokia.com

Categories : C#

Nokia Maps - Change Circle Coordinates
Whereas the Marker object has a coordinate property, the Circle object has a radius and center. You can alter the center property as shown: circle.set("center", [49.44, 8.44])

Categories : Javascript

Implementing Birds Eye map mode in WP8 Nokia Maps
Specify the MapCartographicMode for the map style that you want, and then set the Pitch property to a value between 0 and 180. 0 is the default value, which gives the flat map view. If you use a value around 60, this gives you a view that is more like the driving mode found in SatNav apps. Just tweak it to give the effect that you want. If you want something more akin to the Bing "Birds Eye" view, then you will need to adjust the pitch based on the ZoomLevel (there is a ZoomLevelChanged or you could bind it to a view model property).

Categories : Windows Phone 8

How to get default mail credentials in nokia s40 phones ?
No, but Nokia supports platformRequest("mailto:") for some S40 devices. http://www.developer.nokia.com/Resources/Library/Java/#!developers-guides/invoking-applications/invoking-applications-in-java-me.html

Categories : Java

Nokia Lumia 920 supports navigator.geolocation?
By default the Nokia Lumia 920 runs an IE10 browser which does support HTML5 geolocation. You can check this using the link on w3schools.com. Clicking the try it button, it prompted me for my location as you would expect. The site also helpfully provides the code. The HERE Maps API for JavaScript offers the nokia.maps.positioning.Manager which wraps this nicely and also works in mobile - try the example here

Categories : Javascript

Nokia Here Maps Heatmap Overlay holes
My feeling is that this is a bug within the canvas rendering, as I have come across a similar issue before (but with overlays). A workaround suggested there seems to work for me here as well. I never get any overlay rendering problems when using DOM mode - it seem to get this problem only seems to occur in Canvas mode. To force the library to use the DOM mode, change the <script> tag by appending &map=js-p2d-dom as shown. Code: <script type="text/javascript" charset="UTF-8" src="http://api.maps.nokia.com/2.2.4/jsl.js?with=all&map=js-p2d-dom"> </script>

Categories : Javascript

How to get the name of a place in Nokia Maps on Windows Phone 8?
You can use the ReverseGeocodeQuery class. var rgc = new ReverseGeocodeQuery(); rgc.QueryCompleted += rgc_QueryCompleted; rgc.GeoCoordinate = myGeoCoord; //or create new gc with your current lat/lon info rgc.QueryAsync(); You can then get the data from within your rgc_QueryCompleted event handler using the Result property of the event args passed in.

Categories : C#

J2ME http post error - Nokia Asha SDK 1.0
Please find below an example. It will helpful to somebody. It is tested in Nokia Asha 501, It is perfectly working. import javax.microedition.midlet.*; import javax.microedition.lcdui.*; import javax.microedition.io.*; import java.io.*; public class GetNpost extends MIDlet implements CommandListener { private Display display; // Reference to Display object private Form fmMain; // The main form private Alert alError; // Alert to error message private Command cmGET; // Request method GET private Command cmPOST; // Request method Post private Command cmExit; // Command to exit the MIDlet private TextField tfAcct; // Get account number private TextField tfPwd; // Get password private StringItem siBalance;// Show account balance private

Categories : Java

Is there a way to associate the reponse and query while invoking Nokia reverse geocoding api?
You can do that with any JavaScript callback by using immediately invoked function expression. Your code should look something like that: searchManager.reverseGeoCode({ latitude: lat, longitude: lng, onComplete: (function(localID) { return function(data, status, requestId) { processResults(data, status, requestId, localID); }; })(myID) }); To understand this example you need good comprehension of closures and above mentioned immediately invoked function expressions syntax.

Categories : Javascript

Specified JDBC Driver com.mysql.jdbc.Driver class not found
Try to add the connector to build path as external jar OR , create a lib folder and put connector jar in it and then Add Library to your build path and give that connector lib folder path.

Categories : Java

How to debug windows device driver and what to debug if driver is installed on VM?
On target, disable the driver meanwhile keep the VS into running debug mode onto host. Then restart the target, enable the driver as soon as enable the driver onto target it will jump to VS running into debug mode onto host at the already settled breakpoint. then after just press F5 and go ahead. regards matt

Categories : Windows

MongoDB Java Driver: How to insert into any collection from Java Driver
Sample: DBCollection coll = db.getCollection("collection"); /* { "name" : "MongoDB", "type" : "database", "count" : 1, "info" : { x : 203, y : 102 } } */ BasicDBObject doc = new BasicDBObject("name", "MongoDB"). append("type", "database"). append("count", 1). append("info", new BasicDBObject("x", 203).append("y", 102)); coll.insert(doc);

Categories : Java

XA Datasource in Microsoft JDBC driver and jTDS JDBC Driver
Found the answer after digging in jTDS driver distribution. It has README.XA file saying it all. Copying the content below. XA support in jTDS ================== This version of jTDS includes a XADataSource class which allows the driver to be used with J2EE servers that only support XA JDBC connections. The class name is net.sourceforge.jtds.jdbcx.JtdsDataSource. By default the driver will emulate distributed transactions fooling the J2EE environment into believing that two phase commit is supported. This emulation has the serious drawback that when used in a true distributed environment, the driver may not be able to commit or rollback when requested by the transaction manager. In this situation data loss or corruption can occur. In general this emulation is safe to use when jTDS is t

Categories : Sql Server

Javascript API - calling nokia.maps.map.Display with zoomLevel causes map container div to fill entire page
Some sort of combination of either: percentages with position absolute such as width:100%; height:90%; left: 0; top: 1em; position: absolute; fixed pixel size on the height e.g. width:600px; height:600px; In other words something like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <meta http-equiv="X-UA-Compatible" content="IE=7; IE=EmulateIE9" /> <title>Map with a DIV</title> <meta name="description" content="" /> <meta name="keywords" content="" /> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <script language="j

Categories : Javascript

Spring JDBC Could not load JDBC driver class [oracle.jdbc.driver.OracleDriver]
Make sure that you have ojdbc.jar gets added into your class path. If you want, you can also double check it by opening .classpath file and look for ojdbc.jar entry. If you don't have it, download it from the the maven repo as mentioned below: <dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc6</artifactId> <version>11.2.0.3</version> </dependency> ....... <repositories> <repository> <id>codelds</id> <url>https://code.lds.org/nexus/content/groups/main-repo</url> </repository> </repositories>

Categories : Spring

Why is the Phonegap sample app for accelerometer not able to show phone accelerometer data on Nokia 5800?
I got the answer at Phonegap forum. In the line: <script type="text/javascript" charset="utf-8" src="cordova-x.x.x.js"></script> src should be set to "cordova.js".

Categories : Cordova

WP8 Nokia Here Maps: Get directions between two locations using official Here Maps app
You can either use the URI Association Schemes: directions://v2.0/route/destination/?latlon=52.53,13.41&origin.latlon=52.53,13.41&mode=car or the HERE Launchers: DirectionsRouteDestinationTask routeTo = new DirectionsRouteDestinationTask(); routeTo.Destination = new GeoCoordinate(60.35, 24.60); routeTo.Mode = RouteMode.Car; routeTo.Show(); More information about these API here and a demo application here.

Categories : Windows Phone 8

What does a device driver look like?
I suggest that you read (at lease the first chapter) "Linux Device Drivers". It will answer your basic questions and will allow you to study how to develop device drivers for Linux OS if you want to. You can find it here: http://lwn.net/Kernel/LDD3/

Categories : Misc

How to Get the driver type of DSN?
You can call SQLGetPrivateProfileString Function from odbccp32.dll to retrieve the information that you're looking for. Use "ODBC Data Sources" as the argument to lpszSection and your data source name (DSN) as the argument to lpszEntry. The value returned in the buffer will be your driver name. Importing the DLL and function looks like this in C#: [DllImport("odbccp32.dll", CharSet = CharSet.Unicode, SetLastError = true)] private static extern int SQLGetPrivateProfileStringW(string lpszSection, string lpszEntry, string lpszDefault, char[] RetBuffer, int cbRetBuffer, string lpszFilename); It looks like this in VB.NET: <DllImport("odbccp32.dll", SetLastError:=True, CharSet:=CharSet.Unicode)> _ Private Shared Function SQLGetPrivateProfileStringW(lpszSection As Stri

Categories : C#

MongoDb C# driver
1) You can use a unique index: http://docs.mongodb.org/manual/core/indexes/#unique-indexes var index = new IndexKeysBuilder<Company>(); index.Ascending(c => c.Symbol); Collection.EnsureIndex(index, new IndexOptionsBuilder().SetUnique(true)); 2) You have 2 options Read company object from database, add CompanyEvent, save company object to database Push CompanyEvent object to CompanyEvents Array in the database Collection.Update( Query<Company>.EQ(e => e.Id, id), Update<Company>.Push(e => e.CompanyEvents, new CompanyEvent())); More information about push operator http://docs.mongodb.org/manual/reference/operator/push/

Categories : C#

App finds driver without hbm.cfg.xml
If you are using tomcat, make sure you delete the webapp/{webappname} directory if you are deploying a new .war file or the exploded directory might get used and not your new .war archive, hope that helps...

Categories : Java

how to remove the log of ie web driver?
IEDriver supports a --silent flag that suppresses diagnostic output when the server is started. Unfortunately, at least to my knowledge, it is not configurable when creating a browser instance. Instead, you need to directly modify the Selenium::Webdriver::IE::Server class' server_args method. You can modify the libseleniumwebdriverieserver.rb file directly, but it is probably easier to monkey patch. To monkey patch the silent flag, add the following to your code some point after requiring watir-webdriver (ie selenium-webdriver) but before opening the browser. class Selenium::WebDriver::IE::Server old_server_args = instance_method(:server_args) define_method(:server_args) do old_server_args.bind(self).() << "--silent" end end For example, the following

Categories : Ruby

How can you tell which sql driver(s) are installed using PHP?
get_loaded_extensions() will give you all the extensions installed: print_r(get_loaded_extensions()); You can filter the PDO ones that start with pdo_: foreach (get_loaded_extensions() as $extension) { if (substr($extension, 0, 4) == 'pdo_') { echo $extension . PHP_EOL; } } Which gives the following result on my machine: pdo_sqlite pdo_mysql pdo_pgsql For the non-PDO extensions, you need to individually compare them against the list produced by get_loaded_extensions(), or query them using extension_loaded().

Categories : PHP

Qt - Trying mysql driver
I would rebuild Qt from source, because you also need the SQL driver (not only the plugin). The driver source is located under /src/sql/drivers/mysql The plugin source is located under /src/plugins/sqldrivers /src/sql/drivers/mysqldrivers.pri contains this: contains(sql-drivers, all):sql-driver += psql mysql odbc oci tds db2 sqlite ibase contains(sql-drivers, mysql):include($$PWD/mysql/qsql_mysql.pri) So I think that you need to run configure with the options: -qt-sql-mysql and -plugin-sql-mysql before compiling Qt. Recompile Qt Open a Qt 4.8.4 Command Prompt cd qtdir nmake distclean configure -debug-and-release -platform win32-msvc2010 -mp -nomake examples -nomake demos -qt-sql-mysql -plugin-sql-mysql nmake You might need to point configure to the correct include/library director

Categories : Mysql

MAC homebrew php pdo firebird driver
Pdo Firebird from pecl is deprecated , i will updated it soon that i get access to it you need to download the source code for php extract it and then build only the pdo_firebird extension cd ext/pdo_firebird phpize ./configure (you might need to pass the firebird framework dir --with-pdo-firebird=/Library/Frameworks/Firebird.framework ) make sudo make install after that you need to copy the extension in your brew build php extensions folder and add it to php.ini extension=pdo_firebird.so I also recommend firebird 2.5.x is more recent and well supported on recent macosx versions

Categories : PHP

Installing QMYSQL driver
Take a look at this post for Qt5, there's also a seperate set of instructions for Qt4 (although somewhat similar). Qt - How to get|compile Mysql driver Download a version of MySQL Download Qt source Build the MySQL plugin for Qt Copy the DLL from the MySQL install folder to a Qt folder (see link above) Copy the DLL you built for the Qt MySQL plugin to a Qt folder And obviously, when you distribute you'll need to remember to package those DLLs together (always check dependency walker)

Categories : Mysql

Way to Install the MongoDB PHP Driver
I would suggest to do this: apt-get update apt-get upgrade And then install: apt-get install php5-cli php5-dev And then: apt-get install php-pear pecl install mongo

Categories : PHP



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