Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
80% Quality Score
Upvotes Received
6
Posts with Upvotes
6
Upvoting Members
6
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
2 Commented Posts
~47.2K People Reached
About Me

www.iamhenryli.com

Interests
www.iamhenryli.com
Favorite Tags
Member Avatar for k2k

hi, does anyone know how to insert a background picture to a JPanel? I have googled around, found something seem more difficult than it should be, and a simple one as below but not showing the pic. [code] midBoard = new JPanel(); JLabel pic = new JLabel(new ImageIcon("Sunset.jpg")); //midBoard.setBackground(java.awt.Color.RED); midBoard.add(pic); …

Member Avatar for JamesCherrill
0
14K
Member Avatar for k2k

hi, would anyone please show how i should make my site searchable? by yahoo, google... whatever search engine. is it the meta tag? any quick example please. thanks

Member Avatar for John_66
0
170
Member Avatar for k2k

I have just installed (binary install) php 5.3.6 to my redhat box. However, it is still seeing a 2.x version. Does anyone know how to find out where my 2.x version is and possibly uninstalling it? And how do I make mysql to use my new 5.3.6 version? Thanks. I …

Member Avatar for rakib.sarowar
0
141
Member Avatar for k2k

Today I have finally made up my mind to quit bat scripting and go for powershell... I need to do a quick script bascially trying to looping through a command output.. can anyone shed some light? i tried foreach ($col in 'app-command -argument') { echo $col } well, guess my …

0
170
Member Avatar for k2k

I udnerstand that setting up a public/private key authentication is a way to go when automating scp copy files to target machines. however, I just now just to get a quick a dirty way to copy a number of files to a number of remote machines. My question is how …

0
70
Member Avatar for k2k

haven't been using linux for a while. remember I used to do search and replace all the time with :s/searchString/replaceString/g now I have "pattern not found: " even though pattern I was trying to search/replace was definitly there. any idea? did i forget anything?

Member Avatar for shivemg
0
132
Member Avatar for k2k

I normally mount my windows share as follow: [code]mount -t cifs //192.xxx.x.xx/share -o username="username' password="pass" /mnt/mountPoint [/code] now I am trying to mount my epson scanner which has a SD card that can be shared on the network. I did the same command but it failed to mount. pinging the …

Member Avatar for k2k
0
152
Member Avatar for k2k

I am testing an open source application. When at the setup stage after installing mysql, php all the good stuffs, I have to specify where the mysql server is. Here is the problem, if I put in "localhost" as the mysql is installed on the same box, it would work …

Member Avatar for rubberman
0
111
Member Avatar for k2k

Say like I have hi() everywhere in a shell script and I would like to replace only a hi() to hi(20) right under the line "#modify only the hi() below this line". Is there anyway that I can locate the line "#modify only the hi() below this line" and then …

Member Avatar for anijacity
0
164
Member Avatar for k2k

Im trying to scp including password in one line... seems not working. [code] echo "pass" | scp --stdin source destination [/code] However this does work though [code]echo "newpass" | passwd --stdin user [/code] same concept, diff result. Any suggestion would be great. Thanks

Member Avatar for maninaction
0
533
Member Avatar for k2k

Sometimes it is hard to locate the exact line you want to modify if there are so many lines having the exact same codes/text. example: #this is x a=0 #this is y #this is yy a=0 this is z a=0 My question is, is it possible to find something unique, …

Member Avatar for k2k
0
126
Member Avatar for k2k

this is perfectly fine. It will grep each of the output, if it != "client" or "-----" then it will be written to the text file. for /F "tokens=3" %%a in ('E:\things\bpplclients') do ( if /I not "%%a" == "Client" ( if /I not "%%a" == "--------------" ( echo %%a …

0
90
Member Avatar for k2k

Does anyone know how to use awk to print every 3rd line from the 1st line and including the 1st line? 1st .. 3rd .. .. 3rd .. .. 3rd soemthing like this? the closest I could get was below, but it dosn't go beyond the 3rd line.. any ideas? …

Member Avatar for griswolf
0
77
Member Avatar for k2k

Would anyone please explain a bit about sharing between Unix and Windows? From my understanding, Unix can only see windows's share/print by Samba. However, I was googling around and found many pages talking about mounting Windows CIFS by just using regular "mount" command. Is Samba outdated now? Is it right …

Member Avatar for rubberman
0
149
Member Avatar for k2k

i am trying to export display to my xp box from redhat.. problematic again. These are what I already have done: on redhat: #export $DISPLAY=:0.0 #export $DISPLAY=XXX.XXX.XX.XX ## my xp box ip #echo $DISPLAY #XXX.XXX.XX.XX #xhost + xhost: unable to open display "xxx.xxx.xx.xx" on xp: installed xming x11 server and …

Member Avatar for shibblez
0
108
Member Avatar for k2k

I am trying to know my own server name and domain name. I use windows xp, I try to install freeBSD 7.0 to one of my laptop. I need the network info.... Can anyone please tell me how I can check what my server name and domain name? I know …

Member Avatar for meharazeem
0
269
Member Avatar for k2k

I have a bat script that if i run it on cmd it is working fine. However, if I right click and run as admin it broke. Has anyone seen this behavior?

Member Avatar for k2k
0
193
Member Avatar for k2k

hi, basically i have this function. [code] function showDetail(checkBoxShipmentId) { xmlhttp = GetXmlHttpObject(); // this calls function below if (xmlhttp==null) { alert ("Browser does not support HTTP Request"); return; } var url="detailBackend.php"; url=url+"?shipmentid="+checkBoxShipmentId; //?shipmentid = value of the checkbox, which is the shipmentid url=url+"&ran="+Math.random(); if(xmlhttp.readyState ==4) { xmlhttp.onreadystatechange= displayDetail; xmlhttp.open("GET",url,true); …

Member Avatar for Airshow
0
629
Member Avatar for bolalampu

Hello all, I have a problem with my external harddisk. It is a 320GB SATA Seagate Harddisk. I have used it for a year or less. Now it cannot be detected by my computer anymore. The harddisk itself is on but it makes a little 'electrical' sound inside. Is there …

Member Avatar for firelfiex
0
225
Member Avatar for k2k

sounds it should be simple but I wasn't able to google this out. basically i want to do something like [code] variable = `data` //from unix but I now need it for windows bat script [/code] [code] //windows set today = "date /t" //output is what i need, but wrong …

0
56
Member Avatar for k2k

set v1=%e:\file1\file0% set v2=%c:\file1\file0% set v3=%d:\file3\file4% cd %v1% and do something cd %v2% and do something cd %v3% and do something I just want to set a variable = path and cd to it later, since I have multiple pathes, i would like to cd to diff variables instead of …

Member Avatar for k2k
0
168
Member Avatar for k2k

i am trying to do something like [code] set var= ping google.com | find "Received = 4" if [var has something] then echo "ping well" [/code] something like that. in unix i can use the ` ` to execute shell command and set the returned value to the variable... can …

0
64
Member Avatar for k2k

How do i check if i have a 32 or 64 bit processor? Will 64 bit os work with the 32 bit processor? 64 bit os from 32 bit os, is it because processor went from 32 bit to 64 bit ? I know 64 bit is faster and more …

Member Avatar for crunchie
0
1K
Member Avatar for k2k

RedHat5 enterprise when i plugged in an USB thumb drive, redhat automatically mounted to /media i did a "umount /media/driveName" and it went away. i tried to mount it again "mount /dev/sda /mnt/usb" i got """mount: /dev/sda already mounted or /mnt/usb busy"""" i am actually not sure if /dev/sda is …

Member Avatar for 1seo
0
147
Member Avatar for k2k

i am trying to write a bat script to ping a machine if it is up. i am trying to do something like this [code] if "ping xxxMachine | findstr reply" echo "xxxMachine is up" else echo "xxxMachine is down" [/code] the syntax is definitely wrong, does anyone know if …

0
71
Member Avatar for k2k

I am trying to setup a dns server with fedora 11. what I have done: 1. /etc/init.d/named start 2. chkconfig --list named ---> return status ok, both 3 and 5 are on 3. "/etc/resolv.conf" as below // does it look okay? nameserver 192.168.1.1 //my router, nameserver 127.0.0.1 //this machine itself. …

Member Avatar for hyerutko
0
245
Member Avatar for k2k

my login script checks for login name and password in the database, if true then set value for a session variable for example $_SESSION['loginName'] = $login --> this is to identify who got logged in. however, if i have more than one user logged in to the system, then $_SESSION['loginName'] …

Member Avatar for chrishea
0
105
Member Avatar for k2k

I just got a used Cisco 851 router from ebay and ready to play around with it. i connected it to my computer com port and start seeing something from the putty serial connection. i see something like this repeating and repeating.. what does that mean? Translating "stipp2.srv.hcvlny.cv.net"...domain server (255.255.255.255) …

Member Avatar for cguan_77
0
419
Member Avatar for k2k

[code] $sql_table_get=mysql_query("select orderline.quantity, menu.item_name, menu.price from orderline, menu, orders where orderline.item_id = menu.item_id and orders.order_id = orderline.order_id and orders.table_num =table".'"$count"'." // problem line and orders.order_status = 0; "); [/code] tried many combo and couldn't make it work yet. basically i just need to know how to combine a $variable and …

Member Avatar for k2k
0
189
Member Avatar for k2k

[code] <form id="History" method="post" action="./php_lib/getHistoryProcess.php"> <button name="clearTableButton" type="submit" value="table2">Table 2 Orders</button> </form> [/code] the code above will process through the getHistoryProcess.php and return the result in the same page (the white blank page). I would really like the result pop up like ***** href=" " target="blank" style***** in other words, …

Member Avatar for k2k
0
121