w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
old info in db not displaying when new info is added via CSV - phpMyAdmin
Try with sql load data infile http://dev.mysql.com/doc/refman/5.1/en/load-data.html. Example: LOAD DATA INFILE 'data.txt' INTO TABLE db2.my_table;

Categories : PHP

info = info.replace("CN", "CN", "CN, "CO""); not functioning as expected
Try this code-> String str = "USI;1;3056090866;06/16/58/06/24/13;CN25.48,WN86.957;CN34.931,WN16.656"; StringBuilder b = new StringBuilder(str); b.replace(str.lastIndexOf("CN") - 1, str.lastIndexOf("CN") + 2, "CO" ); b.replace(str.lastIndexOf("WN") - 1, str.lastIndexOf("WN") + 2, "WO" ); str = b.toString(); It will work..

Categories : Java

using xslt to remove info path declarations form info path XML ?
The type of node is called processing-instruction so use <xsl:template match="processing-instruction()[starts-with(name(), 'mso-')]"/> together with the identity transformation template <xsl:template match="@* | node()"> <xsl:copy> <xsl:apply-templates select="@* | node()"/> </xsl:copy> </xsl:template> That way the processing instructions where the name starts with mso- will not be copied. I will show a complete stylesheet: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="text() | comment()"> <xsl:copy/> </xsl:template> <xsl:template match="processing-instruction()[starts-with(name(), 'mso-')]"/> <xsl:template match="*"> <xsl:elem

Categories : Xml

Where are info document files in Mac or in Linux, and how can I install some missing info files?
I find this somewhere that I do not know where it was. strings `which info` | grep /info This would print out some default info directories that had been compiled with the info command. One can also export a shell variable called INFOPATH with info directories you want.

Categories : Misc

C# Getting info from a web id
What you want to do is called as screen scrapping. You can use Watin for this. Or else you can use WebResponse and WebRequest to achieve this also.

Categories : C#

Getting Info out of a DataGridView
You get the text of the cells via the DataGridViewRow's Cells property. The following example would get the text from the first cell in each selected row: Dim strContents As String = String.Empty For Each selectedItem As DataGridViewRow In selectedItems strContents += " First Cell's Text: " & selectedItem.Cells(0).Text Next

Categories : Vb.Net

How let cmd output less info
Just put @echo off in the first line of your batch file. This will prevent output of the command's invocation when they are run (as does prepending a command with @), so it eliminates all the lines that bother you. Taken from http://ss64.com/nt/echo.html Type ECHO without parameters to display the current echo setting (ON or OFF). In most batch files you will want ECHO OFF, turning it ON can be useful when debugging a problematic batch script. In a batch file, the @ symbol is the same as ECHO OFF applied to the current line only. Normally a command is executed and takes effect from the next line onwards, @ is a rare example of a command that takes effect immediately.

Categories : Batch File

X509Certificate2 Info
Sounds like you want: var hashAlgorithm = certificate.PrivateKey.SignatureAlgorithm; var encryptionAlgorithm = certificate.PrivateKey.KeyExchangeAlgorithm; They may not be exactly the sample values you've given, but that would be my starting point...

Categories : C#

Info Window looks different
As announced the "visual refresh" is now live for the Google Maps Javascript API v3 if you are using the "experimental" version (no version number in the API load).

Categories : HTML

Sending info through API
In PHP use header("Location: TARGETURL"); Create the TARGETURL using the information sent from the form. The Location Header makes the server to generate 302 Moved temporarily HTTP return code. The browser then sends the user to the TARGETURL transparently without any further interaction.

Categories : PHP

How to get contact info?
Bundle extras = new Bundle(); when you do this you create a new Bundle named extras and not the extras that you added to the activivty. instead try: contactId = getIntent().getIntExtra("contactId",0);

Categories : Android

Can't retrieve DB info
Youre mixing mysqli and mysql... they are two completely different and incompatible interfaces. Secondly, your $query_get_referral_id is not an id value... it is a mysqli_result object. You need to then extract the value from that object. And lastly... DONT use mysql... stick with mysqli, or use PDO Also you should use a prepared statement for this: $stmt = $this->db_connection->query("SELECT user_id From users WHERE user_name = ?"); $stmt->bind_param('s', $referralname); $stmt->execute(); if($stmt->num_rows) { $stmt->bind_result($userId); while($stmt->fetch()) { // do something with $userId... // each iteration of this loop is a // row of the result set, it will automatically // load the value of the user_id into $userId

Categories : PHP

VBA Getting info from website
It is getElementById not getElementsById, although your code shows the correct version. Just because IE is not busy doesn't mean that the page has finished loading. You need to check for If IE.ReadyState = READYSTATE_COMPLETE Then '4 You should also use a Sleep method, or some other method to prevent .Busy being read constantly. Added: A Win-API call can call be used for the Sleep method: Option Explicit 'Declare Sleep API Private Declare Sub Sleep Lib "kernel32" (ByVal nMilliseconds As Long) Sub UseIE() Dim ie As Object Dim thePage As Object Dim strTextOfPage As String Set ie = CreateObject("InternetExplorer.Application") ie.FullScreen = True With ie .Visible = True .Navigate "http://www.bbc.co.uk" While Not .ReadyState = READYSTAT

Categories : Vba

Display NIC Info
Subnets work differently for IPv6, so the rogue 64 you are seeing is the IPv6's subnet mask - not the IPv4's. The prefix-length in IPv6 is the equivalent of the subnet mask in IPv4. However, rather than being expressed in 4 octets like it is in IPv4, it is expressed as an integer between 1-128. For example: 2001:db8:abcd:0012::0/64 See here: http://publib.boulder.ibm.com/infocenter/ts3500tl/v1r0/index.jsp?topic=%2Fcom.ibm.storage.ts3500.doc%2Fopg_3584_IPv4_IPv6_prefix_subnet_mask.html In order to remove it you can try the following (massive assumption made that IPv4 always comes first, but in all my experimenting it hasn't come second yet ;)) ForEach($NIC in $env:computername) { $intIndex = 1 $NICInfo = Get-WmiObject -ComputerName $env:computername Win32_NetworkAdapterConfi

Categories : Powershell

Get info from another application
GetWindowInfo isn't going to tell you anything specific to a progress bar - only the standard window flags. Take a look at the documentation for Progress Bar Messages for how to interact with a progress bar. You need to use the PBM_GETPOS message to get the current position of a progress bar as below: const uint PBM_GETPOS = 0x0408; [DllImport("user32.dll")] private static extern IntPtr GetWindowInfo(IntPtr hwnd, uint msg, IntPtr wParam, IntPtr lParam); uint pos = (uint)SendMessage(hwnd, PBM_GETPOS, IntPtr.Zero, IntPtr.Zero);

Categories : C#

Get Info About an Android App
Is there a way to get info on an Android application (e.g., publisher name) if you know the name of the package? Checkout 1) get application name from package name 2) Find package name for Android apps to use Intent to launch Market app from web questions. You may get some details using PackageManager and ApplicationInfo. The first one seems to answer that. Hope this is of some use to you.

Categories : Android

Submitted info not passing through
Your HTML is incorrect, you have no name on the first input and your second input the name value is incorrect as it starts like [], try this. <input id="<?php echo $catkey; ?>_addone_friendly_1" name="friendly[<?php echo $catkey; ?>]" type="text" class="auto" size="9" /><span> - Friendly Name</span><br /> <input id="<?php echo $catkey; ?>_addone_1" name="actual[<?php echo $catkey; ?>][]" type="text" class="auto" size="9" /><span> - Actual Name</span><br />

Categories : PHP

Get user info from google plus using php
A Google+ URL generally contains the Google+ ID for a user. You can parse out that ID, and then make a people.get API call using the ID. The response will only contain information that is publicly available on the user's profile, though. Also, if a user is verified, their URL will not contain their ID, but rather their verified name, but this will also work as an ID. In PHP, the call looks like: $me = $plus->people->get('{{ID}}'); You can learn more about the people.get API call and see a full example at https://developers.google.com/+/api/latest/people/get.

Categories : PHP

MySQL get info from three tables
Here is your query (formatted so I can read it better): SELECT t1.id, t1.username, t1.password, t1.email, t2.image, t3.intValue, t3.textValue, t3.dateValue FROM table1 t1 LEFT JOIN table2 t2 ON t1.id = t1.userId LEFT JOIN table3 t3 ON t1.id = t3.userId AND columnName='sex' OR columnName='birthdate' OR columnName='realname' WHERE t1.email = $username OR t1.username = $username ; One problem is the OR condition on table3. This is evaluated as: ON (t1.id = t3.userId AND columnName='sex') OR columnName='birthdate' OR columnName='realname'; SQL doesn't read mind. It invokes precedence rules. The condition would be best stated as: ON t1.id = t3.userId AND columnName in ('sex', 'birthdate', 'realname'); However, I don't think that i

Categories : Mysql

Not updating database info
If I right sql update like this - update yourTable set nombre=?,apellido=?,username=? where cedula='$cedula'; sql insert like this - insert into yourTable(nombre,username,apellido) values(?,?,?); try this with the sql sysntax. thanks

Categories : PHP

How to add 3rd storyboard into info.plist
You need to be accessing the main bundle instead of no bundle. The instantiation of your storyboard should look like this: UIStoryboard *iPhone4Storyboard = [UIStoryboard storyboardWithName:@"iPhone4.storyboard" bundle:[NSBundle mainBundle]];

Categories : Iphone

How do I get parent's info from a child?
The following code should do the job. var JSON = {"name":"CRS_LOG_LEVEL","children":[{"name":"CRS_LOG","children":[{"name":"LOG_DESC","size":7,"type":"column"},{"name":"LOG_ID","size":7,"type":"column"},{"name":"LOG_TMSTMP","size":7,"type":"column"},{"name":"LOG_LEVEL_NBR","size":7,"type":"column"},{"name":"LOG_EVENT_CD","size":7,"type":"column"}],"size":100,"type":"table"}],"size":100,"type":"root"} for (var i = 0; i<JSON.children.length; i++) { for (var j = 0; j<JSON.children[i].children.length; j++) { var parentIndex = JSON.children[i].children.indexOf(d); if (parentIndex !== -1) { var parentName = JSON.children[i].children[parentIndex].name; } } } The variable parentName should contain the name that you where looking for. Note that

Categories : Javascript

Get session info failed
A valid token will start with T1==, the token you've shown does not. Can you go back to the Dashboard, create a new token for that session, paste the entire string into your application code, and try again?

Categories : Java

Get RemovableMedia devices info using C#
Did you check the below class? System.IO.DriveInfo What detailed information are you looking for in addition to the ones provided by this class? http://msdn.microsoft.com/en-us/library/system.io.driveinfo.aspx You can check other classes in this namespace. Edit based on the comment: If you want to detect the device at runtime, you may use: ManagementEventWatcher & WqlEventQuery Below is an example: WqlEventQuery _q = new WqlEventQuery("__InstanceOperationEvent", "TargetInstance ISA 'Win32_USBControllerDevice' "); _q.WithinInterval = TimeSpan.FromSeconds(1); _usbWatcher = new ManagementEventWatcher(_q); _usbWatcher.EventArrived += new EventArrivedEventHandler(OnUSBDetectedOrDetached); _usbWatcher.Start(); and in the event handler: voi

Categories : C#

EWS - How to get isRecurring info in GetItemResponse
As you are subscribing to Calendar-Folder only, then instead you can directly bind it to Appointment object :: Appointment appointment = Appointment.bind(service, itemEvent.getItemId() , new PropertySet( AppointmentSchema.Subject, AppointmentSchema.Body,AppointmentSchema.IsRecurring ) );

Categories : Java

DiveintoHTML5.info is based on?
Looking at the book’s source code on GitHub, it seems to be mostly static HTML, CSS, and JavaScript. However, it uses Python, Java, and shell code too, as you can see in the Makefile. (Makefiles are run with make.) The Makefile contains a lot of shell code doing things like substitution, file copying, and concatenation. It also calls the Python and Java code, which is all in the util folder. The Python and Java programs compress the HTML and CSS, build the table of contents from the headings in each file, and do a few other things.

Categories : HTML

Get info from form and paste it to jsp
Firstly , this form definition might not work : <form name="txtForm" action="Main.java" method="post"> In the action attribute you need to specify an URL such as form.do etc... Then map the Servlet Main.java to this specific URL in the web.xml. Try using the PrintStream to print it to the response. response.getWriter.println("The name you enter is:" + text + "at the time : " + d); When you do this , the response will be sent back to the browser. Though ideally you should use a JSP for view . You can send the request to a JSP and then print the request parameters using EL ${param.parameterName}. i want is to take the info from the jsp thru my class then print it out back on a the jsp This will be a bit lengthy exercise though . You need to dispatch the request from your

Categories : Java

Func<> getting the parameter info
I don't really think you can do that. Check following situation: Your predicate is set to be Func<T, bool> predicate, so you can call it like that: Accounts = _data.Filter(p => true); What would you like to get from that kind of call? (p) => true satisfies Func<T, bool>, because it takes T as input and returns bool value.

Categories : C#

FB SDk Get users page info
Just 2 steps: get "manage_pages" permission from user Get all account information by calling FB.api(/me/accounts) Way two, get it from Fql query: SELECT page_id, type from page_admin WHERE uid=me() page_admin documentation here

Categories : PHP

Strip info from the URL - PHP / htaccess
Generally speaking, just take the whole URL path and rewrite it into the query string. The value will be available to your PHP scripts in $_GET['roomName']. RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /room.php?roomName=$1 The RewriteCond lines are checking to make sure the URL does not point at an actual file/directory (otherwise, you would not be able to access such files/directories). If this isn't what you want, please explain your goals further.

Categories : PHP

How to show info window?
You need to had an infoWindow for each marker! Supposing you have 10 different messages, stored in 10 variables (message0, message1, message2,...), you should write: var infoWindow0 = new google.maps.InfoWindow({ content: message0 }); google.maps.event.addListener(marker0, 'click', function () { infoWindow0.open(map, marker0); }); var infoWindow1 = new google.maps.InfoWindow({ content: message1 }); google.maps.event.addListener(marker1, 'click', function () { infoWindow1.open(map, marker1); }); var infoWindow2 = new google.maps.InfoWindow({ content: message2 }); google.maps.event.addListener(marker2, 'click', function () { infoWindow2.open(map, marker2); }); ...(and so on until marker1

Categories : Google Maps

Can't retrieve info from xml document with xsl
Add: xmlns:w3="http://www.w3schools.com" to the xsl:stylesheet element. and add the w3 prefix to the elements in your select statement: <td><xsl:value-of select= "w3:Xboxspellen/w3:Spellen/w3:Spel[@id='14']/w3:Spelnaam"/></td> <td><xsl:value-of select= "w3:Xboxspellen/w3:Spellen/w3:Spel[@id='14']/w3:Prijs"/></td> Your xml is in the default namespace "http://www.w3schools.com", but the xpaths in your xsl select is in the null namespace. They don't match. Namespace match is not by prefix ( or lack of prefix ) but by the namespaces that the prefixes are bound to. {http://www.w3schools.com}/Xboxspellen != {}/Xboxspellen See this for more: XML Namespaces and How They Affect XPath and XSLT Also: The perils of default namesp

Categories : Xml

get twitter user info
why using Share Kit , Use Twitter Api V1.1 to Fetch Complete User Info check below Links ... http://questiontrack.com/how-to-get-user-details-using-twitter-api-v1.1-twitter-error-215-1073076.html Hope its HelpFull..

Categories : IOS

What is the best way to get Build Info in a Web application?
Yes, couple of ways to do this Read assembly info Usually as part of your CI build steps, you would add versioning numbers, company details, sign libraries etc. You will be able to read this info when a request comes from the library with updated metadata. Code snippet to try, make sure to find correct dll though, as on IIS it may not be the executing assembly. Embed custom app config values Similarly as part of the build process you may do xml-poke or xml-transform to insert some values into the web.config, for example into the <appsettings> section. MS build sample. You would likely to use ConfigurationManager.AppSettings from the web application.

Categories : C#

What does the error info means?
Your Object should implement Serializable interface HINT: For clone the object, far better to implement Cloneable interface and use the object.clone() method

Categories : Java

Echo only info - Session PHP
Do i understand you correctly, that your array looks like this?! [0] => array( "your_super_long_product_key" => array(), "another_super_long_product_key" => array(), "awesome_super_long_product_key" => array(), ) So you could access the data like this: foreach(array_keys($array[0]) as $key) { echo $key . " "; } This will give you: your_super_long_product_key another_super_long_product_key awesome_super_long_product_key To loop through your whole array like this use: foreach($array as $dataset) { foreach(array_keys($dataset) as $key) { echo $key . " "; } }

Categories : PHP

Add Version Info into .rc file in Qt
If you want add manifest to project use it like this win32 { RC_FILE = c:/app.rc -manifest c:/app.exe.manifest } or don't use full path if it on project home dir.

Categories : Qt

Read info from a list and put in a map
A Map maps one key to one value. You're overriding the value many times. This if (myStores.getStoreNumber().equals(myStores.getStoreNumber())) { myCache.put(myStores, hardware.getHardwareInfo_East()); //myCache is a static map. myCache.put(myStores, hardware.getHardwareInfo_West()); myCache.put(myStores,hardware.getHardwareInfo_South()); myCache.put(myStores,hardware.getHardwareInfo_North()); break; } is the same as if (myStores.getStoreNumber().equals(myStores.getStoreNumber())) { myCache.put(myStores,hardware.getHardwareInfo_North()); break; } If you want to combine all the lists, you could do this: if (myStores.getStoreNumber().equals(myStores.getStoreNumber())) { myCache.put(mySt

Categories : Java

Looking for more info from my Git diff command
What commits do they have in stage/master that I don't have locally: git log ...stage/master --graph --decorate --cherry --name-status What commits do I have locally that I haven't pushed to stage/master: git log stage/master... --graph --decorate --cherry --name-status --decorate -- shows tag and branch names beside commits --cherry -- shows "=" instead of "*" on commits that are merged. What's the symmetric difference, in term of commits, between the two: git log ...stage/master --cherry-pick --left-right --name-status --left-right -- shows "<" and ">" on commits to indicate whether commits are from left of ..., or right, respectively. Also look at: git-log

Categories : GIT

Expand div on hover with more info
Maybe you want something like this <article> <p>Description and price</p> <img src="http://placekitten.com/200/300" alt="amazing item" /> </article> <style type="text/css"> article{ float: left; } article p{ float: left; width: 0px; -webkit-transition: width .5s ease; -moz-transition: width .5s ease; -ms-transition: width .5s ease; -o-transition: width .5s ease; transition: width .5s ease; } img{ float: left; } article:hover p{ width: 150px; } </style>

Categories : HTML



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