Hi,
Can someone help me out with this example:
Suppose I want to write this code in Flex
<mx:Button id="b1" includeInLayout="{b1.visible}">
No what I want to do INSTEAD is instead of "b1" i want to refer to the component inline, like the "this" keyword. So my new (compact) code would be...
Hi,
Is there a way to load a file into an array using a single line of pure perl code? I need something like this, but platform independent:
@data = `cat filename.ext`
#the problem is cat doesn't run on windows, "type" doesn't run on unix
i can use open, but that is not i'm looking for...
Hi,
I'm trying to use Hash references with Tie::Hash but I'm a little confused as to how this is working out so far. Can somebody please explain to me the output and the correct way to implement this? Thanks!
Regards, San
package Tie_Test;
use Tie::Hash;
use Data::Dumper;
use vars...
Just been reading the article posted recently on perl.com on how to bring Java code into a Perl program
with Inline::Java
Link: http://www.perl.com/pub/a/2003/11/07/java.html
I never knew until know that this was so easily done. And its not just Java, the support...
Hi,
Is there a way to write a MySQL query so that I can make sure that not more than 10 records of the same value are returned.
I mean suppose I write the following query for some table:
select first_name, last_name from table ORDER BY RAND() LIMIT 100
is there some way I can modify the...
Is there any way to change the an IMG brightness/contrast using javascript?
If you're wondering why I need this, its is because I wanted to add this as a function to my IE's context menu (http://www.siteexperts.com/tips/hj/ts01/index.asp) using which I can decrease and increase the image's...
Hi,
I was viewing access logs for some of my domains hosted on different servers running apache.. to my amazement the access_log for every domain contains multiple entries that look like this:
GET /scripts/..%c1%1c../winnt/system32/cmd.exe?/c+dir HTTP/1.0
two of these domains haven't been...
Hi,
does somebody know of any easy idea to store a formatted paragraph in the string value.. I mean like how we have a HERE document in unix (or perl)..
some Delphi way to do this:
var
q: string;
s: string;
begin
s := 'some text';
q := '
This is line 1
This is line 2...
Hi,
I've got two computers one running windows 98 and the other running Linux 2.2.14-12 (Red Hat 6.2)..
Now my USB modem only has drivers for Windows so I have to run it on windows machine.. but now I want to share this connection with my linux machine too.. After searching the internet most...
Hi,
A client just asked me "why we are using perl and should we upgrade to php instead?".. I've been asked this very question so many times (fourth time to be precise) that I just wrote a complete article instead of answering him by email.. I've put it up at...
Hi,
I have this hash which is like a tree.. the hash key is a number and the value is a array of numbers.. these array values are also keys in the same hash.. e.g.
$hash{'1'} = ARR('3', '5', '9');
$hash{'3'} = ARR('2', '7');
$hash{'2'} = ARR();
$hash{'5'} = ARR('10', '11');
and so on...
what I...
how do I get the hard disk configuration of a remote server by using telnet..
is this a reliable way to detect a HDD config?
cat /proc/ide/hda1/model?
is there some command to tell this too? Also if the partitions are in /dev/hd* configuration does that mean its neccessarily an IDE drive...
Hi,
how do I find the previous instance of my perl script?
The script is setup as a cron job and I don't want more than one copy of the script running at the same time..
the method i'm using now is that the script checks for a file.. if it exists then it exits otherwise it touches file when...
Hi,
I've been using the following perl script to add messages to qmail's queue.. the system works fine but it takes about 10 mins to inject 3000 messages.. I'm not talking about the delivery part, just that part where qmail-inject takes a message and add its in the queue..
Here, is the perl...
Hi,
I used to have linux on my machine before my father installed windows over it (it has multiple partitions) and now the MBR is set to DOS only.
Now the only thing I have is the linux CDROM (6.1 Redhat - its a old spare computer to practice)
I can boot linux using it.. now when I type...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.