Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: 133tcamel
  • Content: Threads
  • Order by date
  1. 133tcamel

    data binding with curly brackets (mxml)

    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...
  2. 133tcamel

    load file in a single line (hack)

    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...
  3. 133tcamel

    Tie::Hash experiment

    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...
  4. 133tcamel

    There is more to Perl

    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...
  5. 133tcamel

    selecting records

    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...
  6. 133tcamel

    can javascript change image brightness/contrast?

    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...
  7. 133tcamel

    Exploit? All access_logs contains ../winnt/system32/cmd.exe?/c+dir

    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...
  8. 133tcamel

    HOWTO store a para in the string?

    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...
  9. 133tcamel

    linux internet connection sharing

    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...
  10. 133tcamel

    Perl vs PHP doc

    Hi, A client just asked me &quot;why we are using perl and should we upgrade to php instead?&quot;.. 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...
  11. 133tcamel

    Tree Traversal w/ perl

    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...
  12. 133tcamel

    getting thehard disk config in linux

    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...
  13. 133tcamel

    finding previous instance?

    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...
  14. 133tcamel

    why is qmail-inject working so slow?

    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...
  15. 133tcamel

    how to load /dev/hda after booting with CDROM?

    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...

Part and Inventory Search

Back
Top