Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Member Avatar for Cupidvogel

I am trying to send sms through Way2sms using Perl LWP. The login part is being successful, after which I save the cookies to a local file. The welcome page after being logged in shows a Send SMS link, clicking on which one is redirected to another page with two …

0
104
Member Avatar for Cupidvogel

Hi, suppose I have written a Perl script that creates a text file, writes something to it, and closes it. The code involves some other steps which require the download of a module from CPAN. So I do this prior to executing the code by doing something like **perl -MCPAN …

Member Avatar for 2teez
0
166
Member Avatar for Cupidvogel

I am using the following code to select a date range using 2 inline datepickers. There are two date fields (**div**, with class **dateheader**). When a date is selected, that datepicker slides up. Basically when the date **div** is **clicked**, first it is checked whether the corresponding datepicker is already …

0
140
Member Avatar for Cupidvogel

Hi, I have a file which contains some lines of text. What I want to do is after the first two lines, insert a new sentence. So if the original file looks something like this: Sachin Ganguly Dravid Laxman Sehwag after the insertion, I want it to look like this: …

Member Avatar for FelineHazard
0
167
Member Avatar for Cupidvogel

Hi, I have a text file which has some lines, I may append others periodically, so I want a code that trails it (say at an interval of 5 seconds). When it sees that for 5 consecutive intervals no new line has been appended, the code decides to exit. Here's …

Member Avatar for replic
0
127
Member Avatar for Cupidvogel

Well, the following code is giving me unexpected result. [code] a = setTimeout(function() { alert('fuck'); },9000); b = setTimeout(function() { console.log(a); },3000); [/code] Here I expect that after 3 seconds, the then-value of [b]a[/b] will be printed ([b]a[/b] should be changing its value right from page-load). However, on running it, …

Member Avatar for Airshow
0
85
Member Avatar for Cupidvogel

Hi, if I run something like this to popup an alert 2 seconds after page-load, the alert pops up instantly: [code] <html> <head> <script type="text/javascript"> setTimeout(alert('Was it worth the wait?'), 5000); </script> </head> <body> <p>Hi!</p> </body> </html> [/code] whereas if I double-quote the alert function, it is functioning as usual. …

Member Avatar for stbuchok
0
3K
Member Avatar for Cupidvogel

Hi, a program requires one to enter a given number of strings, and for each string, the program has to output the number of permutations possible. We all know that if a string S of length l has a type of one letter, b type of another, c type of …

0
77
Member Avatar for Cupidvogel

Hi, suppose I have a file named [B]first.txt[/B] from which I want to read. Suppose the text file looks like this: [quote] I like you. I feel your soul. [/quote] Now if I use this: [code] open cool, "< first.txt"; print <cool>; [/code] the entire file content is printed, but …

Member Avatar for d5e5
0
278
Member Avatar for Cupidvogel

Hi, I was wondering if Perl has a command line interpreter like Python's IDLE, where you can test things readily without having to save them as a program and run them. If not, why? Why is it that Python or Matlab has command line interpreters where you can type 4+3 …

Member Avatar for d5e5
0
308
Member Avatar for Cupidvogel

Hi, I want to iterate over a list, printing each item and subsequently deleting it, so that at the end, the list is empty, while all the numbers are printed out. I have tried two tactics (to me the logic for both is the same, just checked to spot the …

Member Avatar for Cupidvogel
0
86
Member Avatar for Cupidvogel

Hi, I am just starting to learn Python GUI programming with Tkinter. The majority of examples on net and books show the widgets and windows in typical MS Windows style (i.e the blue top border, holding the maximizing, minimizing and cancelling buttons), as shown in the first picture. Is there …

Member Avatar for Cupidvogel
0
107
Member Avatar for Cupidvogel

Hi, I installed [B]MikTex[/B] basic version into my [B][COLOR="Magenta"]C:\Program Files folder[/COLOR][/B]. I made a very basic [B]tex[/B] file named [B]flux.tex[/B], kept it in Desktop and ran [B]latex flux.tex[/B] from the command prompt. It was supposed to create a file [B]flux.dvi[/B] in Desktop, but instead I got the message [B][I][U]I can't …

Member Avatar for Cupidvogel
0
119
Member Avatar for Cupidvogel

Hi, I find in all books and websites that in order to run a Python script from the command prompt, I have to run something like this [CODE]python example.py 1.3[/CODE] where [B]example.py[/B] script is provided with an argument of 1.3. However, it is not working for me in Windows 7 …

Member Avatar for TrustyTony
0
298
Member Avatar for Cupidvogel

Hi, I am following the chapter on Replication from the book High Performance MySQL. There it is written that I need to enable binary logging and specify a server ID for my MySQL server. It instructs me to write (or verify the presence of) the following lines in the master’s …

0
119
Member Avatar for Cupidvogel

Hi, I am learning Python, and I was just wondering whether Python can achieve everything PHP can. I don't know PHP, but I know it's a server side scripting language, and it is often embedded in HTML pages. Can Python be used in the same manner, i.e. embedded in HTML …

Member Avatar for Cupidvogel
0
207
Member Avatar for Cupidvogel

Hi, I installed MySQL from the MySQL site. The setup procedure required me to set an username and password, which I set as X and Y respectively (say). Then when I opened the mySQL command line client, it asked for password, and after providing Y, I was allowed in. Once …

Member Avatar for cereal
0
2K
Member Avatar for Cupidvogel

Hi, I am providing a snippet of a large code, this snippet intends to dynamically insert a list of filenames into a <select> element on pageload, the filenames being read via Ajax from a XML file kept in the same folder as this one: [CODE] <html> <head> <title>hi</title> <script src="https://www.google.com/jsapi" …

0
73