2,452 Topics

Member Avatar for
Member Avatar for awahqn

Hi, I have a code in perl that does some mail things and I would like to translate it to perl can someone help me please? I dont know perl so i want it in python so i can edit it. here is the code: #!/usr/bin/perl -w # USAGE : …

Member Avatar for TrustyTony
0
215
Member Avatar for lyleholc

Hi, I’m pulling out my hair getting Apache/Perl to work and would like some help with getting httpd.conf, Windows path, and other setting correct to run some Perl programs. I’ve set alias, Options, AddHandler, etc. but the simple program below gives permission errors. I’m running a Bitnami WampStack on XP …

Member Avatar for Taywin
0
275
Member Avatar for rama.krishna.9003

Hi All, I need a perl script to generate the following Replace value in a column of one file with a value from second file File1 246 0.668 20.644 20.610 0.000 3 U 1.039e+03 0.000E+00 - 0 1673 1676 1663 1662 18 0.816 22.786 24.906 0.000 3 U 1.815e+03 0.000E+00 …

Member Avatar for Dani
0
1K
Member Avatar for kishor.m.n

Hi all, I was just trying to write a simple prog in which i'm trying to add multiple components to a JPanel and inturn i'm adding that to a JScrollpane. Now the problem i'm facing is when i run the prog i can see the contents of the panel(not all) …

Member Avatar for mKorbel
0
10K
Member Avatar for jaydeep.ghosh

i have created many services, (i.e products in suitecrm) . there are some main services under which some sub services are there. i am mapping all the main services to one product (i.e product category in suitecrm). now on select of one particular product i need to dispaly all the …

Member Avatar for iamthwee
0
168
Member Avatar for garyrichard

I am retriving image from mysql database and want to hyperlink this processed image but not able to find solution for ($i = 0; $i < $rows; $i++) { $description = mysql_fetch_array($result); $img_str= base64_encode($description["nImage"]); echo '<a id="zoom" href="data:image/jpeg;base64,'.$img_str.'"><img src="data:image/jpeg;base64,'.$img_str.'" width="150" height="150" /></a>'; if($i%3 == 2) echo "</br>"; }

Member Avatar for cereal
0
2K
Member Avatar for perly

Hi, I have a 3-column data (below) from excel file. How can I write a perl code to sort all rows according to the first numeric number of a numeric interval and the word "complement" if they appear before the numeric interval as shown in the expeceted output below? Data: …

Member Avatar for Hiroshe
0
248
Member Avatar for markii.borabon

I have some basic logic here and im getting crazy how can do this. what I want is to submit my form when the hyperlink is being click. here sample code: <form id="myForm" action="for-filtering.php"> <input type="hidden" name="fname" value="<?php echo $account_fname; ?>"> <input type="submit" id="submit" style="display:none;"/> <a onclick='myFunction()' href='reponse-to-customer.php?id=".$cus_id."'>$firstname_email</a> </form> <script> …

Member Avatar for tapananand
0
318
Member Avatar for badoosan

I am trying to port some code running on a Linux machine to a Windows 8.1 machine running xampp. I am stumped as to why my cookies aren't getting stored and retrieved. Here's what I'm doing: #!\xampp\perl\bin\perl use CGI; use CGI::Session; my $cgi = new CGI; my $sid = $cgi->cookie("CGISESSID") …

Member Avatar for Taywin
0
263
Member Avatar for Jamie_4

I'm trying to get the text "Student 1, " to display in a text box but also have it as a link back to the student's page. This code displays only the url I want but not as a link and doesn't display "Student 1 " function getFavourite() { var …

Member Avatar for taersious
0
1K
Member Avatar for Joe_6

I have a csv script that runs within a sequence on a set of gathered urls like so: threaded(urls, write_csv, num_threads=5). The script writes to the csv but seems to rewrite the first row for each url rather than writing to new rows for each subsequent url. I'm new to …

Member Avatar for Joe_6
0
182
Member Avatar for Anna123

Dear All , I have a single file, which I need to rearange, The file format is, A1 ID* 3/2 A2 ID 3/3 A3 RM* 2/6 A1 RM 4/4 A2 D* 1/2 A5 D 5/3 A7 T 5/13 I need the output as this ID ID* RM RM* D D* …

Member Avatar for Taywin
0
179
Member Avatar for jensh

I want perl scripts of matching the exact word between text file(.txt) and database(oracle/mysql)... suppose... Data in try.txt file, xyz abc and Data in oracle database is, qid column1 column2 1 xyz cde 2 ifg mno Here matching word is "xyz". If matching found, it will automatically delete the row …

Member Avatar for Taywin
0
214
Member Avatar for Anna123

Dear All, It would be great if someone would help me in rearranging the following file absed on the similarity between the column, My file looks like this, CD79B-GH1 ID* 3/2 CD79B-GH1 ID 3/3 CIRBP-C19orf24 RM 2/6 CIRBP-C19orf24 RM* 4/4 DCAKD-NCL RL 1/2 HMGB2-EHMT2 RL* 5/3 KANSL1-ARL17A IM 5/13 KANSL1-ARL17B …

Member Avatar for Anna123
-1
232
Member Avatar for yeshamarques
Member Avatar for mitchems

It's been a long while since I've been here. I am trying to use Win32 IEAutomation to automate IE to login to SharePoint, read some information, download some files and some other junk. I installed WIN32 IEAutomation. When I run the simple script: use Win32::IEAutomation; my $ie = Win32::IEAutomation->new( visible …

Member Avatar for mitchems
0
543
Member Avatar for Anna123

Dear All, I have two files file1 looks like this,the test file ENSG00000000003.10 0 ENSG00000000005.5 0 ENSG00000000419.8 392 ENSG00000000457.8 24 and the GTF file like this, chr1 HAVANA 11869 14412 . + . + . gene_id ENSG00000223972.4 transcript_id ENSG00000223972.4 gene_type pseudogene gene_status KNOWN gene_name DDX11L1 transcript_type pseudogene transcript_status KNOWN chr1 …

Member Avatar for Anna123
0
425
Member Avatar for FelineHazard

Hi all, I've started to get acquinted with Perl's HTML::Parser, which does a really good job at parsing html (duh ;-) But for the life of me, I can't get it to return the actual text from subroutine! I keep getting references to it :\ :\ use HTML::Parser; package MyParser; …

Member Avatar for FelineHazard
0
391
Member Avatar for Nebil

Hi guys, I just faced a silly but annoying problem.I was building a database application with vb.net and access. Things were going great but at the last moment,it started to not work properly.I didn't touch the db path as far as i know but i changed the system date as …

Member Avatar for Nebil
0
260
Member Avatar for Pilot122x

so recnetly I released a product of mine to a few close friends, one of these friends runs windows 8 and I coded my program in C# 2010, Windows 7..He gets an error saying improperly formatted, is the fix for that me upgrading to c# 2012 or in there a …

Member Avatar for Pilot122x
0
131
Member Avatar for Anna123

Dear All, I have two files first file looks like this, ENSG00000000003.10 0 and the second one like this, ENSG00000000460.12 24chr1 HAVANA 11869 14412 . + . + . gene_id "ENSG00000223972.4"; transcript_id "ENSG00000223972.4"; gene_type "pseudogene"; gene_status "KNOWN"; gene_name "DDX11L1"; transcript_type "pseudogene"; transcript_status "KNOWN"; As you see I nee dto comapre …

Member Avatar for Anna123
0
228
Member Avatar for samatha.kilaru
Member Avatar for vivek.vivek

Hello, I have a file as attached. I need to print the lines and count after the pattern "floating" like below. Please help. FEATURE: 4 Line 1 4/17 8:01 Line 21 4/17 8:20 Line 21 4/17 8:50 Line 23 4/17 8:30 FEATURE1: 3 Line 1 4/17 8:45 Line 2 4/17 …

Member Avatar for 2teez
0
176
Member Avatar for Aaron_5

Hi folks, I've a problem when writing the contents of a file that was read using steam reader to the console window. It is only displaying part of the information that it should be showing. It should be displaying like this: http://i1370.photobucket.com/albums/ag266/Aaron_McCauley/1_zps4b8c3625.png But insted it displays like so (Notice the …

Member Avatar for Momerath
0
228
Member Avatar for narendra75
Member Avatar for 2teez
0
98
Member Avatar for yeshamarques
Member Avatar for jovstudios

Hello Guys, My Codes to TextBox Validation Not Properly Working. I tried all as i can but still no happen. can you check my codes where the part is wrong? <!DOCTYPE html> <?php include('dbcon.php'); session_start(); ?> <HTML> <HEAD> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Online Evaluation</title> <!-- …

Member Avatar for Excizted
-1
348
Member Avatar for hasvi

Hi I want to call the xml file and I want to change the tag name. here sample coding of get txt file. my $inputtxt=$ARGV[0]; open(TXT,"$inputtxt"); my $txtstr=join("",<TXT>); close TXT; $txtstr =~ s#\n\n#\n#sgi; # print $txtstr; open (OUT,">$inputtxt\.txt"); print OUT $txtstr; close (OUT); I need how to call xml file, …

Member Avatar for class11a
0
233
Member Avatar for Hari_8

Hello Everyone I am struck how to start script in my .txt file i have some of ips and i need to retive the ip and it need to convet into xml file in .txt file ips like his client1-10.1.1.1/24 clientgw1-10.1.1.2 server1-10.1.1.3/24 servergw1-10.1.1.4 client2-10.1.2.1/24 clientgw2-10.1.2.2 server2-10.1.2.3/24 servergw2-10.1.2.4 client3-10.1.3.1/24 clientg3w-10.1.3.2 server3-10.1.3.3/24 …

Member Avatar for 2teez
0
212
Member Avatar for M.Waqas Aslam

Dear All! I am facing a small issue in showing xml in a proper format. I am getting proper xml data from my webservice. but after receiving it browser is treating it as a text and showing all test in single line. I want to show my xml data same …

Member Avatar for minitauros
0
592
Member Avatar for xyciana

Hi, I know the basics of perl and really need a dummies guide (simple steps) to get the following working. I came across the code below and downloaded the Twig.pm and Xpath.pm files into C:\Perl\lib (Windows machine) from CPAN and I cannot get the code to compile. Can someone give …

Member Avatar for 2teez
0
952
Member Avatar for magikman

Hello, I am trying to write a Perl script that searches through a directory on Windows and returns the file names matching a pattern that's stored in a scalar variable. Please find my code below: use warnings; use strict; use Data::Dumper; use MIME::Lite; my @fields; my @files; my $dir="places"; sub …

Member Avatar for 2teez
0
351
Member Avatar for sai_5

i am writing an automation script in Perl which logs into the server and executes various commands and functions.This Perl script mostly uses "send expect statements and for loops " to run the commands. This Perl script is a back end script which i have written. i have to build …

Member Avatar for Lynn_2
0
173
Member Avatar for newperluser

I am new to Perl, I wanted to combine two lines where "ANN" and "QTR" in second column have same date in fourth column (date), otherwise just print line with data which has "ANN" in it. It also skip line where date column is empty: Input data file: I am …

Member Avatar for 2teez
0
144
Member Avatar for arulkumar_1

Input Files: ============ XML ==== <para>some Text</para> <para>some Text</para> <para>some Text</para> <para>some Text</para> <para>some Text</para> <para>some Text</para> Text File ========= some Text<insert>New Text</insert> some Text <delete>some</delete> Text some Text some Text some Text some Text OUTPUT: ======= <para>some TextNew Text</para> <para>some Text</para> <para> Text</para> <para>some Text</para> <para>some Text</para> <para>some Text</para> …

Member Avatar for arulkumar_1
0
236
Member Avatar for 21345572
Member Avatar for Xabush

I'm trying to create a JTextPane that has the following properties: 1. Vowel letters are colored in green 2. Consonants are colored in blue 3. Numbers are colored in red 4. And the maximum number of characters is 26 and all characters are in Upper Case To achieve this I …

Member Avatar for Xabush
0
348
Member Avatar for hvebsr

I want to put the path and name of a spreadsheet, the page and number of pages and the date and time into the footer(s) and display it in Times New Roman 6 pts. I made the following macro: Range("A1").Select ActiveWindow.View = xlPageLayoutView` Application.PrintCommunication = False With ActiveSheet.PageSetup .LeftFooter = …

Member Avatar for hvebsr
0
296
Member Avatar for adetolaraphael

Havning issues with file upload in php, below is the code <html> <head> <title>margeducation</title> </head> <body> <p> Niggas Please upload your files in pdf or jpg format, size less than 500kbytes, capishe</p> <form enctype="multipart/form-data" action="processfile.php" method="post" > <p>REQUIRED DOCUMENTS:(Please Select all documents that were recieved for this student's application):<br/></p> <input …

Member Avatar for adetolaraphael
0
261
Member Avatar for Roya Ahmed
0
87
Member Avatar for realoneomer

Hi, I have a requirement to get all those file names from a directory whose contents mataches with a specific pattern letsay pattern 'ABCDE' Can you please provide me the code to meet this requirement. Thanks

Member Avatar for 2teez
0
164
Member Avatar for crebz

Am trying to get a function call but i cant get it to print. Please help here. This is the code: def foo(): name = input ('>>').lower().split() for item in name: if name == foo: print ('foo here!') else: bar() def bar(): name = input ('>>').lower().split() for item in name: …

Member Avatar for crebz
0
246
Member Avatar for Ramji_1

I have Placed a jquery drag and drop example in joomla article. It's working properly with firefox browser but not working in chrome browser. In chrome, actually drag and drop is working but problem is that buttons are not visible on dragging. Here's link to my example - http://joomla3.guru99.com/lesson-3.html Here's …

Member Avatar for sachin_2
0
507
Member Avatar for giovanni.arrastia

Herro there :) i'm having serious trouble understaning even the basics of regular expressions in perl. im trying to make a rainmeter skin that lets you search google from desktop and parses the first five links, and a picture if possible.

Member Avatar for 2teez
0
166
Member Avatar for SergioQ

I've seen this on a few sites, though I can't think of one right now. I would like my server to be able to get a URL, then take a screenshot (picture) of it. I really hope there is a Perl module for this. Anyone know what I am talking …

Member Avatar for cyberkingz
0
189
Member Avatar for sushmaja.arumalla.9

How to use commandName in hyperlink control similar to Link button for some backend process. I want Text of Hyperlink Which is clicked From a group of Hyperlinks to identify which hyperlink is clicked and based on it some backend code should be executed.How to retrieve the Text of Hyperlink …

Member Avatar for Ahmed Badawi
0
1K
Member Avatar for soundbag

Please i need a solution for this, i want to use (PERL) to process a form instead of PHP, now my only problem is converting this LINE to (PERL) SCRIPT. <?php if(isset($_POST['comment'])) $comment = $_POST['comment']; ?> Thank you.

Member Avatar for 2teez
0
67
Member Avatar for timetraveller1992

I'm trying to get the date to work properly. The time is 5 pm (1700 hours) now i.e. evening but it always says morning. Here's my code currenthour="$(date "+ %-H")" echo $currenthour if [ $currenthour -gt '12' ] && [ $currenthour -lt '16' ]; then currenttimeofday="Afternoon" elif [ $currenthour -gt …

Member Avatar for cfajohnson
0
183
Member Avatar for hemalatha.nambisan

**I am creating a webserver where I am using a tool called HMMer. When user uses this server they have the option to generate the output for the input either as tabular output or as text output.My problem is to show both output in the web page. I am doing …

Member Avatar for urtrivedi
0
174
Member Avatar for joshl_1995

Hello Community, Why I the port I'm trying to read looking really weired. I'm using an Arduino to produce the port data (It just has two button inputting "BUTTONONE" and "BUTTONTWO" when pressed). This is the result I'm getting: BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONONE BUTTONONE …

Member Avatar for joshl_1995
0
186

The End.