3,417 Topics

Member Avatar for
Member Avatar for subhraakasuny

hi folks, i am a beginner in JSP, and i am studying headfirst servlet & JSP,but at the time of running a code from there,i have an problem there is directory structure **src/com/example/web/BeerSelect.java** and the code is package com.example.web; import com.example.model.*; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; public …

Member Avatar for subhraakasuny
0
305
Member Avatar for jacob21

Hello i want to send bulk sms.In developer API this code is given. where should i use that code. WAITING FOR HELP. A sample HTTP API Call for Single Recipient would be: [url]http://www.abulksms.com/pushsms.php?username=acs&password=your_password[/url] &sender=mysenderid&cdmasender=mycdmasenderid&to=myrecipient&message=Hello A sample HTTP API Call for Single Recipient with Scheduling (4th January 2009 at 3:30 PM) …

Member Avatar for bokerinni
0
153
Member Avatar for DaveyMoyes

Hi everyone, I have been trying to update a mysql database with the shortend url I get from bit.ly I have the shortend url displayed on the page, but everytime I try and update mysql with the variable $bitlylink.. instead of http://bit.ly/123abc the database is updated with http://the.full.website.url/directory/link.html How can …

Member Avatar for cereal
0
438
Member Avatar for shahai.ali

how to get the data from the following `xml`: <HostipLookupResultSet version="1.0.1" xsi:noNamespaceSchemaLocation="http://www.hostip.info/api/hostip-1.0.1.xsd"> <gml:description>This is the Hostip Lookup Service</gml:description> <gml:name>hostip</gml:name> <gml:boundedBy> <gml:Null>inapplicable</gml:Null> </gml:boundedBy> <gml:featureMember> <Hostip> <ip>182.0.0.1</ip> <gml:name>Private</gml:name> <countryName>Private</countryName> <countryAbbrev>PR</countryAbbrev> <!-- Co-ordinates are available as lng,lat --> <ipLocation> <gml:pointProperty><gml:Point srsName="http://www.abc.net/xyz/srs/epsg.xml#4326"> <gml:coordinates>68.7833,30.4</gml:coordinates> </gml:Point></gml:pointProperty> </ipLocation> </Hostip> </gml:featureMember> </HostipLookupResultSet> following is what i was trying: …

Member Avatar for diafol
0
259
Member Avatar for DGULLIVER

Hi, I'm printing a VB.NET form using BitBlt API my code as follows: [CODE] ' create a printing component Private WithEvents pd As Printing.PrintDocument ' storage for form image Dim formImage As Bitmap ' create API prototype Private Declare Function BitBlt Lib "gdi32.dll" Alias _ "BitBlt" (ByVal hdcDest As IntPtr, …

Member Avatar for charuwaka
0
542
Member Avatar for shahai.ali

hi i was trying the following to invite the list of contacts from gmail. <html> <body> <?php if(isset($_POST['submit'])) { $email = 'https://mail.google.com/mail/feed/atom'; $sender = 'abc@gmail.com'; $send = mail($email, "Invitation", "Testing e-mail", "From: $sender"); echo $send; } ?> <form action='inviteList.php' method='post'> <font>Invite your friends</font><br><br> <font><b>Email: </b> <input type='text' name='email' size='30'><br> <input …

Member Avatar for shahai.ali
0
285
Member Avatar for HelloJarvis

Hello everyone, I am working on a program that is sending some input to a thesaurus API, but not after stripping any non-alphanumeric characters. This would be easy, except I want to also preserve the original non-alphanumeric characters for output; for instance, if the user sends "hello;", the request to …

Member Avatar for HelloJarvis
0
210
Member Avatar for SpyrosMet

Hello everyone. I have a problem trying to develop a windows phone app as a university project. Part of it is to use google APIs. So I'm trying to make a test web request.My code is as follows: string api_request = "https://maps.googleapis.com/maps/api/place/textsearch/xml?query=restaurants+in+Sydney&sensor=true&key=AIzaSyDpXZSLtOeGLJcYwKKJs2yAAEdfLST0ZXs"; HttpWebRequest google_request = (HttpWebRequest)WebRequest.Create(api_request); HttpWebResponse google_response_file = (HttpWebResponse)google_response.GetResponse(); …

Member Avatar for SpyrosMet
0
379
Member Avatar for UberJoker

Hi guys. Feels great to post back on DaniWeb. Hope everyone is doing great! I am currently playing around with the google websearch api. They have a javascript example where they created a "hello world" page. https://developers.google.com/web-search/docs/ This code only returns 8 pages of each type of search. I was …

Member Avatar for farhanahanat010
0
178
Member Avatar for subhraakasuny

hi folks,basically i am facing a problem importing a package, dir structure is like src |---com |---example |---model |---BeerExpert.java package com.example.model; import java.util.*; public class BeerExpert { public List getBrands(String color) { //code goes here } } src |---com |---example |---web |---BeerSelect.java now in BeerSelect.java i am importing the BeerSelect …

Member Avatar for subhraakasuny
0
418
Member Avatar for GmanD

Hi. I'm looking for a way to perfrom a recaptcha verification pass on an html form then, if successful, submit the detail to salesforce via their Web2Lead feature (don't have API access unfortunately). Our salesforce integrated contact form has been subject to spam, like many others it seems, therefore I …

Member Avatar for eerlewein
0
264
Member Avatar for HelloJarvis

So I'm using an Ajax request and processing input of sentence(s) in my program that will be looked up using a thesaurus API. The processing works fine, but I am trying to get it so that it will strip bad input such as semicolons in order for the API to …

Member Avatar for HelloJarvis
0
310
Member Avatar for overwraith

I hope this is the right location to make this post. I downloaded the source code for a rich text editor from; http://code.google.com/p/android-richtexteditor/ and the code will not compile correctly. The errors I get are; "Unable to resolve target 'android-4'", "AndroidManifest.xml file missing!", and in the Html.java file there are …

0
67
Member Avatar for sawmya

I am using this soap call function to get values from wsdl .I got response ,but not any data from the server. here is my code please help. $client = new SoapClient("http://www.alphamax3.com/AM3WebApp/services/PropertySearchServiceSoap?wsdl", array('trace' => 1)); $result = $client->searchInstrument( array('instrumentSearchRequest' =>array('searchInstrument'=>array('number'=>1)) )); //$property = $client->searchMap(); //$property = $client->searchInstrument(); //echo "REQUEST:\n" . …

Member Avatar for sais
0
786
Member Avatar for xbat

Ok So I have seen a few things.. But is there anything that goes into depth more but sort of squared away... From what it looks like if you develop something in mysqli - it will be faster mysql pdo - works with a bunch of other databases.. I found …

Member Avatar for veedeoo
0
223
Member Avatar for Violet_82

Hi there, I wonder if anybody can help me with this. I a a bit confused as to what $(this) and what e.target.nodeName represent in jquery. I had a look at this http://api.jquery.com/event.target/ but I am still not entirely sure, I hope somebody can clarify this. I run a little …

Member Avatar for Violet_82
0
800
Member Avatar for subrata_ushasi

Hi all , I have a wevservice link say http://abc.com/wscom/MKWebService.rem from where I am trying to return value giving some parameters . The method and parameters are given below. method : GetInfo Parameters: string LicenseID string password Return Value: struct AnswerInt Now I have two xml files request.xml and response.xml …

Member Avatar for pritaeas
0
338
Member Avatar for java_programmer

I have a requirement where value of one field in an object will be determined dynamically using a configurable table. For example, suppose I have the following table - Pk | Reference_column ---------------------- 1 | TAB_REF.AMOUNT where TAB_REF is a reference table and AMOUNT is one of the column of …

Member Avatar for NormR1
0
124
Member Avatar for javaprog200

Hello, I am writing a Java applet which uses the JExcel API to write to an Excel file. I have pasted the run-time error that I get below. After some research about the Exception, I added a policy entry using the policytool command for any Java program by selecting CodeBase<ALL>. …

Member Avatar for javaprog200
0
628
Member Avatar for Gribouillis

This python 2.7 snippet adds a thin layer of sugar on the itertools module's api, allowing many of its functions to be used as decorators and adding some new functions. Enjoy !

Member Avatar for Gribouillis
3
331
Member Avatar for john.knapp

Hello all. I'm using an API function via PInvoke, with the interesting data being returned to a pointer. My application crashes when attempting to free the pointer. If run with no breakpoints, the application hangs on Line 61 below. After the first run, it will then throw a memory exception …

Member Avatar for john.knapp
0
792
Member Avatar for premminister

Hi, I am currently getting JSON data from the discogs API (mp3 tag data) and wish to sort the results by the key's value. In this case I am trying to get data for a Guns n Roses song and the output has 1988 as the first one while the …

Member Avatar for Lardmeister
0
11K
Member Avatar for kamilacbe

Hi friends, I happend to be on leave for a long time from my work , so now came to knw that one of my website gotdown in google translation API and its because of google translation is no more in use, So anybody please suggest an alternative option to …

Member Avatar for kamilacbe
0
185
Member Avatar for tibormarias

Dear Sirs! I have this php syntax in my <head>. <?php // MySQL mysql_connect("localhost", "fundis_petrol", "petrol123") or die(mysql_error()); mysql_select_db("fundis_petrol") or die(mysql_error()); // Table $result = mysql_query("SELECT * FROM `fillingstations` LIMIT 0 , 30") or die(mysql_error()); // Print while($row = mysql_fetch_array($result)){ echo $row[2]; } ?> And I also have this JS …

Member Avatar for tibormarias
0
274
Member Avatar for Some Dude

Alright. I am making some decent progress here. I am trying to add a toolbar to my basic text editor that I am making using an internet tutorial. Anyways the problem is that I can get the bitmaps to display but they appear to be just that... bitmaps. When I …

Member Avatar for Some Dude
0
474
Member Avatar for chr.s

Hi there, I'm currently working on a site using [Big Cartel](http://bigcartel.com/) - an e-commerce online CMS. This means I'm limited to using their own proprietary language for grabbing data content (no PHP support etc...). I'm also using the [Supersized](http://www.buildinternet.com/project/supersized/) jQuery plugin to try and present present data to the user. …

Member Avatar for blocblue
0
199
Member Avatar for JamesCherrill

I'm curious. Why is so much code in this forum formatted like this [CODE]if (something) { do something } else { do another thing }[/CODE] rather than [CODE]if (something) { do something } else { do another thing }[/CODE] The first version is harder to read and takes up more …

Member Avatar for JamesCherrill
0
379
Member Avatar for straylight

I have a script that collects user IDs following a specific twitter user. The Twitter API allows only 4999 followers to be retrieved every call. I am trying to find out how to retrieve all the followers if a user has over 5000 users following them. I am using PHP …

0
95
Member Avatar for PwNmeNami

Error Preview : http://botiman.phc.my/komen.php Warning: file_get_contents() [function.file-get-contents]: Couldn't connect to server in /home/u763744738/public_html/komen.php on line 163 Warning: file_get_contents(https://api.facebook.com/method/stream.addComment?post_id=100000744171962_491171407584327&comment=apapun+statusnya%3F+jempol+iwan+slalu+mampir+di+status+Awang+Ashraf%0A%0A%5B+Jam+%3A+6%3A24+pm+%5D%5B+Minggu+%5D%5B+Tgl+%3A+4%2F11%2F2012+%5D&access_token=AAAFppwP1iJYBAKZAmaHhSyydzDuZBh7B00nIO6YxfrwnutzQycNdso1lnW2raRcGR5c8iDc2hNNZCgssXJ8d6lYPWfjFOAnB62VzGk5MNnoLtmXXzvr) [function.file-get-contents]: failed to open stream: operation failed in /home/u763744738/public_html/komen.php on line 163 Warning: file_get_contents() [function.file-get-contents]: Couldn't connect to server in /home/u763744738/public_html/komen.php on line 163 Source Code Is <?php ##############config#################### $bot['like'] = true; …

Member Avatar for pritaeas
0
300
Member Avatar for bradly.spicer

Hello, I'm looking into making an account validator for wordpress which runs off a validator for another server. Shown here: http://www.minecraftwiki.net/wiki/User:Oxguy3/Minecraft.net_API It's running in Wordpress and I just wanted to ask for your opinions on how to do this. The idea I had is that the username they signed up …

Member Avatar for bradly.spicer
0
124
Member Avatar for dicauca

Is it possible to make some privileged instructions (eg sti, cli) available via some Java's API? (That is, to build a Java's library that would provide sti() and cli() as static methods) (Suppose this library is buit for a specific machine, not meant to be portable or anything) I've heard …

0
159
Member Avatar for webline

Would apreciate if someone can help with below solution. I need to put customer registration details to the third party database via api requests using Get variables. I have the folowing information. https://www.thirdparty.com/API/Request.ashx?command=createcustomer&username=_&password=_&customer=_&customerpassword= Variable Value Description command createcustomer username X..140 the username of the reseller password X..100 the password of …

Member Avatar for diafol
0
185
Member Avatar for HhAaPpYy

I want to implement loop optimizations in ROSE Compiler Framework. If anybody has worked in ROSE before or has some idea about this, please tell me the classes or api's which can help me implementing this.

0
77
Member Avatar for NardCake

Hello! I believe hotkeys or keyboard shortcuts is the correct term. (Ctrl+C is copy etc...) Well I'm having troubles trying to figure out how to do this. I'm very new to the win32 api and such And I'm just clueless. Any help is very much appreciated!

Member Avatar for dx9_programmer
0
2K
Member Avatar for Aditya.gtbit

Hi I am trying to make an java application to compress file and folders in .zip format.. i want to add additional functionality of adding password to a zip file,for this i want to use aes-256 algorithm but i am stuck with this,i can't figure it out. if i apply …

Member Avatar for Taywin
0
343
Member Avatar for Rizi004

Hi I want to find friends on facebook from other websites. How i can find the facebook friends, i have read https://developers.facebook.com/docs/reference/api/ this but can't find the solution plz help me, tell me how i can find the facebook friends. Waiting for your reply Thanks

Member Avatar for LastMitch
0
54
Member Avatar for cbt13

Hi everyone! Few days ago I decided to use a WebAPI to make a little program. (Steam WebAPI to be exact) Now, I know you send some sort of URL (request) and it returns an answer in JSON format. (Or xml or vdf in this instance) I know how to …

0
50
Member Avatar for owenransen

I'm obviously typing in the wrong search terms, but I'm looking for a REST application in C# in Web API running on Azure, but with an example of calling that REST C# from a VS2010 C++ application. I have one half (the C# bit) but I can't find any examples …

Member Avatar for owenransen
0
162
Member Avatar for ganges

hi suggest me a good exam prepration guide for "Java EE 6 Java Persistence API Developer Certified Expert Exam" Exam Number: 1Z0-898 thanking you

Member Avatar for stultuske
0
55
Member Avatar for nHulk

public class SendMessage { public static void main(String[] args) throws UnsupportedEncodingException { //String strMsg=java.net.URLEncoder.encode("This is API msg", "UTF-8"); callURL("https://api.mVaayoo.com/mvaayooapi/MessageCompose?user=user@gmail.com:1111&senderID=TEST SMS&receipientno=9999999999&dcs=0&msgtxt=msg&state=1"); } public static void callURL(String strURL){ System.out.println(" URL is :"+strURL); try{ URL obj = new URL(strURL); HttpURLConnection httpReq = (HttpURLConnection)obj.openConnection(); httpReq.setDoOutput(true); httpReq.setInstanceFollowRedirects(true); httpReq.setRequestMethod("GET"); String iStatus = httpReq.getResponseMessage(); System.out.println("iStatus: "+iStatus); } …

0
181
Member Avatar for muhammads

Hi All, I am not very good with Java and have a project in which i have to use this API ( http://code.google.com/p/jtexteditor/ ) to simply initiate/draw a TextEditor and fill it with the array of data i have. Unfortunatelly, there is no wiki/document/example with this API and i have …

Member Avatar for JamesCherrill
0
257
Member Avatar for rudasi

Hi, I wanted to get into driver dev. While reading a book on driver dev it was mentioned that it is better to work of a mainline branch from kernel.org instead of a linux patch as they usually change the kernel api? Has anyone had problems do general linux driver …

Member Avatar for rudasi
0
330
Member Avatar for pardeep3dec

Dear Experts,can we make dll in turbo c and use that dll in vb 6.0. Actually i have a program in c and it has so many constant 3 dimensional array.I have to use some API which can not be used in turbo c so i am planning to make …

Member Avatar for Schol-R-LEA
0
284
Member Avatar for Some Dude

Alright, so I need some more help. This time, the problem is not inherently in the code (Though I've had trouble with that thus far too). I am currently playing around with open and close file dialogs trying to get what seems to be an out-dated "GetOpenFileName()" function to work. …

Member Avatar for Some Dude
0
645
Member Avatar for elieobeid7

I'm creating a python rest api wrapper to a website, i created a file called api.py, then used called the api using [requests](http://docs.python-requests.org/en/latest/), like so: `requests.get('http://example.com/api', auth=('username','apikey'))` How to create a class nammed Class1, then put the url in it using [urlparse](http://docs.python.org/library/urlparse.html), then create another file called example.py, call the …

0
114
Member Avatar for izam.lukman

i got this problem when cron job work ***Parse error: syntax error, unexpected T_VARIABLE in /home/u574693502/public_html/bot.php on line 4*** and this is my full script <?php $bot['like'] = true // false untuk non aktifkan autolike $bot['ck_k'] = true // false untuk non aktifkan fungsi jika status mengandung kata maka di …

Member Avatar for izam.lukman
0
351
Member Avatar for svilla

I have this PHP program: <?php echo 'Start of Soap Request<br />'; $client = new SoapClient("http://192.168.201.67:10010/web/services/getItemDesc?wsdl"); print_r($client); echo '<br />Start of Var_Dump<br />'; var_dump($client); echo '<br />Result Print<br />'; $result = $client->testws(array("PEITEM" => "1020000000", "PEMSG" =>" ")); print_r($result); ?> That access a web service on my iSeries. I can get …

Member Avatar for maba001
0
1K
Member Avatar for chandbasha

Hi, PHP 5.2.17 (cli) (built: Sep 1 2011 17:22:41) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies [root@ip-10-130-243-182 mnt]# yum install php-pecl-memcached-2.1.0-1.el6.remi.x86_64.rpm Loaded plugins: fastestmirror Repository base is listed more than once in the configuration Repository updates is listed more than once in the …

Member Avatar for maba001
0
571
Member Avatar for Dendei

Hi, im wondering how i get this to work? <?php $client = new SoapClient("http://localhost:8731/phpwcf/?wsdl"); var_dump($client->KundLandKodAlternativ()); $response = $client->KundLandKodAlternativ(); $array1 = $response->KundLandKodAlternativResult->WCFString1; $array2 = $response->KundLandKodAlternativResult->WCFReturnString; echo count($array1); echo count($array2); ?> the line `var_dump($client->KundLandKodAlternativ());` gives object(stdClass)[2] public 'KundLandKodAlternativResult' => object(stdClass)[3] public 'WCFReturnString' => object(stdClass)[4] public 'string' => array (size=4) ... public 'WCFString1' …

Member Avatar for Dendei
0
263
Member Avatar for alex.blanc.52

How to get the videos in Listview with all the video details like views title author description dislikes likes favorites tags Thanks in advance!

Member Avatar for pritaeas
0
182

The End.