2,452 Topics

Member Avatar for
Member Avatar for klemme

Hi, I have this bit of php returning the response, just for testing : header('Content-type: application/json'); $response = array(); $response["status"] = "ok"; echo json_encode( $response ); 1) Is this a wrong way to send a json encoded string back via jquery ajax? 2) I get NOTHING, No response from this …

Member Avatar for klemme
0
306
Member Avatar for KevinADC
Member Avatar for nicetapo

I would like to replace 'cat/dog/cat' with 'cat/tiger/deer' in a particular .txt file. How should I do this in perl? I tried /usr/bin/perl -p -i -e "s/'cat/dog/cat'/'cat/tiger/deer'/g" sample.txt but it didn't work.

Member Avatar for nicetapo
0
221
Member Avatar for cool_zephyr

hi, I've developed an anroid app for API level 10 which corresonds to android 2.3 as far as I know. But when I try it on a phone with 2.3.6, the app doesn't show correct results. Is it because of different RAM and CPU speeds?? How can I make the …

Member Avatar for cool_zephyr
0
190
Member Avatar for magaji ahmed

I want a perl parser for relational algebra expression, can anybody help me with a code for that.

Member Avatar for magaji ahmed
0
141
Member Avatar for jg1405

Using this Perl script below, I am trying to change the homepage for the Internet Explorer browser by calling on a system fucntion. How do I call and modify the system file that contains Internet Explorer's homepage to change the url in it? *I am using the header 'use Win32::OLE.' …

Member Avatar for doubi
0
325
Member Avatar for anglaissam

Hi, i'm trying to write a small script for the website "www.fanfiction.net." This small perl script is part of a much larger script, which is why it has to be in Perl. When you are logged in and go to any of the stories on the site there is a …

Member Avatar for doubi
0
207
Member Avatar for jg1405

Hi! I am trying to use a Perl script, as you see below, to change the home page for Internet Explorer, but I cannot come-up with the code that does the change. I am using the use Win32::OLE header to make a call to the system. This call allows the …

Member Avatar for doubi
0
323
Member Avatar for Damon88

I am looking for a code snippet which opens a image, creates a clone of this bitmap in memory disposes this opened image so that all handles are closed. Usually we can open a bitmap using this [CODE] Dim MyBit as new bitmap("C:\Image file.bmp") dim ClonedBit as bitmap = MyBit.clone …

Member Avatar for dwimage
0
2K
Member Avatar for 2teez

I really got bored and tired of trying to find or remember some codes usage in so many files saved on my system, when it was needed. So, I called 'Monsieur' perl for help, hacking together some codes which works great for me and solve my problem of boredom. You …

Member Avatar for rsprice
0
243
Member Avatar for Violet_82

Chaps I have an interesting and odd problem. Today I had the brilliant(??) idea of using google chart https://google-developers.appspot.com/chart/interactive/docs/gallery/linechart#Loading for a site I am building. It is all nice and dandy till I placed the graph inside a hidden container, planning to add some jquery and slide the graph down …

Member Avatar for Violet_82
1
621
Member Avatar for rajesrmbioinfo

i was trying to create csv file by appending variables using print function what's wrong with this code why this prints ","."$j" to a new line **code is here - ** while( $i < 1000 ){ $j = 1; while( $mean_data_sorted[$i] == $mean_data_sorted[$i+1] ){ $i++; $j++; } open( nofile, '>>', …

Member Avatar for 2teez
0
171
Member Avatar for IT_Techno

When I use the insert function I can see new data at the front end. But I cannot see the new data in Access. Other times when I close the application and restart, new recorded is not there. If I look in Access application and closed it then open VS2010 …

Member Avatar for Momerath
0
188
Member Avatar for ub007

Hi All, I'm running some tests to assess system behaviour when memory is being hogged. Found this on googling: perl -np -e '$x="0123456789"x1000000' < /dev/zero This works a charm. But my esxi platforms do not have perl installed. They have python supported though:) Any thoughts on how that one liner …

Member Avatar for TrustyTony
0
120
Member Avatar for mark5rockzz

So I need this libpng to be statically link with my dll to be used by my exe. This dll is already done before until I switch my compiler from MSVC to MinGW, then this dll won't work anymore so I think I should rebuild it **again** through MinGW. Now, …

0
71
Member Avatar for RT00220489

Hi, I have a page MyList.aspx, which is giving me some issues. When the page loads, it loads perfectly. In my master page, on the left side of the page is a menu, and some hyperlink is provided. When i click on the hyperlink in the left pane, the page …

Member Avatar for RT00220489
0
226
Member Avatar for vizz

I have altered and little simplified this tutorial **[CSS-ONLY RESPONSIVE LAYOUT WITH SMOOTH TRANSITIONS](http://tympanus.net/codrops/2012/06/12/css-only-responsive-layout-with-smooth-transitions)**. But it is not working properly. Here, radio buttons are used as menus. When I try to put them inside **<div></div>** it stops smooth scrolling. * I want to put radio buttons(menus) inside **navigation** div and …

Member Avatar for LastMitch
0
145
Member Avatar for arupface

Hi I do have XML as below: <?xml version="1.0" encoding="UTF-8"?> <library> <book publisher="Del Rey"> <series>The Lord of the Pings</series> <title>Way Station</title> <author>Clifford D. Simak</author> </book> <book publisher="Del Rey"> <series>The Lord of the Rings</series> <title>The Fellowship of the Ring</title> <author>J.R.R. Tolkien</author> </book> <book publisher="Del Rey"> <series>The Lord of the Rings</series> <title>The …

Member Avatar for gusano79
0
250
Member Avatar for yksrmc

Hi Perl Experts, I'm new for perl. Thanks to give some time for my question.I have extract shared positions between two files and now I have one file like following. File is tab delimited Chr1 position QUAL GT_1 GT_2 1. chr1 478493 595 G/T G/C 2. chr1 879243 700 A/T …

Member Avatar for yksrmc
0
2K
Member Avatar for Assembly Guy

I just noticed that Perl and Python are under the Software Development category, but not Web Development, while Ruby is under Web Dev and not under Software Dev category. Don't get me wrong, they *do* belong where they currently rest, but perhaps a link to Perl, Python and Ruby could …

Member Avatar for Assembly Guy
2
216
Member Avatar for tony75

Hi I try to conver perl script script.pl to script.exe using 64 bits Perl2Exe. I put Perl2Exe to my folder C:\Perl64 I wonder if I convert right? > perl perl2exe.exe myscript.pl

Member Avatar for tony75
0
221
Member Avatar for jamey8420

I have a SSRS report that has a hyperlink to another website. The link to the site works fine when I access the report directly. However, I am displaying the report in an iFrame. When I click on the link within the iFrame, nothing is happening. I can copy my …

Member Avatar for LastMitch
0
780
Member Avatar for eburlea

Hi all. I need to fix a bug in a code, it is not displaying properly (it appears in the upper-left corner and when I try to click on it, the page reloads). I cannot figure it out myself. Please help. <div class="btn_center" style="padding: 0 0 10px;"> <fieldset> <div class="edit_entry …

Member Avatar for eburlea
0
207
Member Avatar for tony75

Hi Im installing eclipse and I would like run perl but I got this error message “Missing Perl interprete” anyone know how can I fix it? http://ubuntuone.com/7BVJr5y84ApsitTZSldele

Member Avatar for tony75
0
254
Member Avatar for sandeepbajjuri

hai, i am new to perl programming. Am writing perl script to open an generator.exe file in my system. this generator.exe file when opens asks for arguments to enter one after other how ever the sequence of arguments is always same(eg like 6,172.24.569.25,saw_200.wav,u,0,1) and i am stuck at a point …

Member Avatar for 2teez
0
184
Member Avatar for tony75

Hi How can I parse html files for example daniweb.com 1.Extract all the links pointed (the content of the href tag) 2. how can I List all of them after having removed the duplicates (means that there is two links pointed the same page, only one should be displayed) I …

Member Avatar for tony75
0
289
Member Avatar for tony75

Hi I have 4 files in directory on my desktop? My question is 1.How can I display for each file only the name, the size and the date in this order? 2. How can I display all files sorted accorded their name? #!/usr/bin/perl use strict; use warnings; my $dir = …

Member Avatar for tony75
0
4K
Member Avatar for nick.rechtien.5

In this program I am writing for class, I have to make a Paper Rock Scissor game using functions. I got everything written and everything seems to work until I quit the program and it's supposed to display the stats. It seems that the variables arent storing and being passed …

Member Avatar for NathanOliver
0
150
Member Avatar for typomaniac101

I have searched tutorials, etc., on the subject of using flock but it seems like nothing gives a straight answer. I have a script for a guestbook which will allow users to upload photos. Everything goes to a MySQL database with the exception of the image which will go into …

Member Avatar for semontuffel
0
164
Member Avatar for devindamenuka

Hi all, I have a problem , I use codeiniter framework. it shows an error from the framework file. I got the following error A PHP Error was encountered Severity: Warning Message: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer Filename: core/MY_Lang.php Line Number: 155 …

Member Avatar for LastMitch
0
275
Member Avatar for kakalahori

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> <!--[if lt IE 7 ]> <html class="no-js loading ie6 oldie" dir="ltr" lang="en-US"> <![endif]--> <!--[if IE 7 ]> <html class="no-js loading ie7 oldie" dir="ltr" lang="en-US"> <![endif]--> <!--[if IE 8 ]> <html class="no-js loading ie8 oldie" dir="ltr" lang="en-US"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--> <html …

Member Avatar for annaharris
0
307
Member Avatar for bradly.spicer

hey all, Just a quick one (I hope). I've only ever really done this as a button from something simple like a drop down box. I have a table which is populated by a mysql db: echo "<table class=\"gridtable\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <th>Employer</th> <th>Vacancy</th> <th>Vacancy Type</th> <th>NoVacancies</th> <th>Learning Provider</th> <th>Contact …

Member Avatar for bradly.spicer
0
159
Member Avatar for nice_true

Hello! How do I redirect hyperlinks within an RDLC to a blank window? It normally redirects within the same window, as a result of which moving back to the main report is very cumbersome.... Thanks in advance.......

Member Avatar for LastMitch
0
68
Member Avatar for Daniel Claff

hey please help me actually i have used the command as part of program <?php echo "<a href= echo '$Geneprocess'>$Geneprocess</a>";?> getting a hyperlink bt when i am clicking over it it gives an error for all the hyperlink.... the error is Object not found! The requested URL was not found …

Member Avatar for Squidge
0
250
Member Avatar for kurtis244

I have a desktop that im running windows 7 on and I had a keyboard for about 3 years and it died. I got a new one and instaled it and it reconizes it but it still does not work. I have tryed 3 more keyboards and they dont work …

Member Avatar for manojrea
0
388
Member Avatar for blenkhn

I have built a private intranet using perl and have upgrading the site to IIS 7.5 on Windows Server 2008 R2. I have a section that prints tags formatted with win32 Printer. I have gone through all the steps to get perl to work. I was able to get this …

Member Avatar for LastMitch
0
763
Member Avatar for hero19760

Hi All, Trying to script by comparing the two .txt file and getting the output in html page which should show the comparision in html with dual screen. Can you please help me Regards, Hero

Member Avatar for 2teez
0
229
Member Avatar for hero19760

Hi, I am trying to write perl script which take out the 31 characters objects from the html page. Please help me. Regards, Hero

Member Avatar for 2teez
0
61
Member Avatar for petrarobert002

My Google search is not working properly?When i search in the search box then it say sorry.What i need to do?

Member Avatar for halenmartinez
0
101
Member Avatar for rajesh9042

Hi, I am trying to download files using Net::FTP perl module. I am facing problem with downloaded files not able to place in there respective folders. Please need help, I am providing the code below #!/usr/bin/perl use Net::FTP; use File::Copy; $ftp = Net::FTP->new("ftp.ncbi.nlm.nih.gov", Debug => 0) or die "Cannot connect …

Member Avatar for DoRight
0
297
Member Avatar for cacofonix

Hi All, In my script, i am trying to call multiple fork call. if i call less than 10 times, its working fine. If i call more than 20 or 30 times, most of the process getting time out or died foreach my $ttyport (@processTTY) { my $pid = fork();Inline …

Member Avatar for coding101
0
147
Member Avatar for tony75

Hi Any idea how to solve an old exercice? The linux command ls -alR produce informations about files contained in the current directory and its subdirectories. You can save its output by using redirections (in the file output in the following example): ls -alr > output The exercice is to …

Member Avatar for 2teez
0
260
Member Avatar for Bhavya scripted

perl vs ruby. what is the difference in speed/popularity and performance? thanks

Member Avatar for Neuronimbus1
0
147
Member Avatar for tony75

Hi I try to Search for xp_cmdshell string in log.txt file but i got error? my $file = "c:/logdata.txt"; open (IN,$file) or die "Can't read $file: $!"; my $tag = "xp_cmdshell"; open(IN,"<",$file) || die "could not open $file: $!\n"; while (<IN>) { if (grep(/$tag/,$_)) { #Do something } } Close(file);

Member Avatar for tony75
0
211
Member Avatar for asifalizaman

/*Calculator =========================program*/ /****************************************************************/ /*****************************************************************/ #include <iostream> #include <conio> #include <stdlib> /*****************************************************************/ /*****************************************************************/ float a[1000]; int top=0,i,r; char u; float input(); float d,p,q,w; void push(float x); void get(); void show(float arr[]); /***********************************************************************/ /***********************************************************************/ void main() { get(); getch();} /*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/ void get() { cout<<"\t\tPlease Enter number\t"; for(i=0;i<1;i++) { cin>>a[i];} show(a); } …

Member Avatar for asifalizaman
1
271
Member Avatar for vivek.vivek

Hi, I need to print lines if it appears more than 3 times in a file looking only at the second column. I have written the below code. But it will look for the complete words in a line. #!/usr/bin/perl use strict; use warnings; my $file = 'file.txt'; my %seen …

Member Avatar for 2teez
0
197
Member Avatar for sureshspeaks

Hi im an infant in perl scripting, Can any body help me in writing the code snippet for my need to parse xml file. i have an xml file which will have tag x,y,z repeating with different values through out the xml start and end tag, i need these different …

Member Avatar for DoRight
0
356
Member Avatar for korathualex

` web..config <system.webServer> <modules runAllManagedModulesForAllRequests="true"> <remove name="UrlRoutingModule"/> <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> </modules> <handlers> <add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> </handlers> </system.webServer> ` Tried the following code under global.asax of application_start RouteTable.Routes.MapPageRoute("Category", "categories/{id}", "~/JobReport/WebForm1.aspx?id=longvalue"); and under page load of the page as Response.RedirectToRoute("Category", …

Member Avatar for LastMitch
0
518
Member Avatar for MrProgammer

**the SJN and the FCFS will not continue to answer the problem...** **when i choose one of the task listed (SJN and FCFS others are not filled) it proceed to inputting value,** **after inputting the data it exitS or stop.. help me to display the answer..** #include<conio.h> #include<stdio.h> #include<math.h> int …

Member Avatar for Moschops
0
259
Member Avatar for minimee120

Hello all, I'm fairly new to using PHP, and for my assignment I've coded it all but I'm trying to go the extra step, and code something that if the item amount = 0 it doesn't print it out on the order form The items are $LAPTOP $MONITOR $KEYBOARD $PRINTER …

Member Avatar for diafol
0
210

The End.