Tuesday, December 28. 2010
To tell php to use /dev/urandom for generating session data you can set the following settings in your php.ini file:
session.entropy_file /dev/urandom
session.entropy_length 512
Or use the "ini_set" function to set them in your code, like this:
<?php
ini_set("session.entropy_file", "/dev/urandom");
ini_set("session.entropy_length", "512");
?>
or set
Tuesday, November 30. 2010
ATTiny2313 Pinout:
Monday, November 22. 2010
SET YEAR=
SET MONTH=
SET DAY=
SET HOUR=
SET MIN=
SET AMPM=
SET HOUR24=
SET MIN24=
For /F "tokens=2,3,4 delims=/ " %%A in ('date /t') do @(
Set MONTH=%%A
Set DAY=%%B
Set YEAR=%%C
)
::12 Hour Format
For /F "tokens=1,2,3 delims=: " %%A in ('time /t') do @(
Set HOUR=%%A
Set MIN=%%B
Set AMPM=%%C
)
::24 Hour Format
For /F "tokens=1,2 delims=: " %%A in ("%TIME%") do @(
Set HOUR24=%%A
Set MIN24=%%B
)
echo %YEAR%
echo %MONTH%
echo %DAY%
echo %HOUR%
echo %MIN%
echo %AMPM%
echo %HOUR24%
echo %MIN24%
Friday, October 22. 2010
Also tired of looking this up!
[ Source]
Saturday, January 17. 2009
Just open a command prompt, and type the command below in. It will disable the "beep" service.
sc config beep start= disabled
To turn it back on, type:
sc config beep start= auto
Friday, January 16. 2009
Below are is a list of timezone settings for Windows XP unattended installations.
000 Dateline Standard Time (GMT-12:00) International Date Line West
001 Samoa Standard Time (GMT-11:00) Midway Island, Samoa
002 Hawaiian Standard Time (GMT-10:00) Hawaii
003 Alaskan Standard Time (GMT-09:00) Alaska
004 Pacific Standard Time (GMT-08:00) Pacific Time (US and Canada); Tijuana
010 Mountain Standard Time (GMT-07:00) Mountain Time (US and Canada)
013 Mexico Standard Time 2 (GMT-07:00) Chihuahua, La Paz, Mazatlan
015 U.S. Mountain Standard Time (GMT-07:00) Arizona
020 Central Standard Time (GMT-06:00) Central Time (US and Canada)
025 Canada Central Standard Time (GMT-06:00) Saskatchewan
030 Mexico Standard Time (GMT-06:00) Guadalajara, Mexico City, Monterrey
033 Central America Standard Time (GMT-06:00) Central America
035 Eastern Standard Time (GMT-05:00) Eastern Time (US and Canada)
040 U.S. Eastern Standard Time (GMT-05:00) Indiana (East)
045 S.A. Pacific Standard Time (GMT-05:00) Bogota, Lima, Quito
050 Atlantic Standard Time (GMT-04:00) Atlantic Time (Canada)
055 S.A. Western Standard Time (GMT-04:00) Caracas, La Paz
056 Pacific S.A. Standard Time (GMT-04:00) Santiago
060 Newfoundland Standard Time (GMT-03:30) Newfoundland
065 E. South America Standard Time (GMT-03:00) Brasilia
070 S.A. Eastern Standard Time (GMT-03:00) Buenos Aires, Georgetown
073 Greenland Standard Time (GMT-03:00) Greenland
075 Mid-Atlantic Standard Time (GMT-02:00) Mid-Atlantic
080 Azores Standard Time (GMT-01:00) Azores
083 Cape Verde Standard Time (GMT-01:00) Cape Verde Islands
085 GMT Standard Time (GMT) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London
090 Greenwich Standard Time (GMT) Casablanca, Monrovia
095 Central Europe Standard Time (GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague
100 Central European Standard Time (GMT+01:00) Sarajevo, Skopje, Warsaw, Zagreb
105 Romance Standard Time (GMT+01:00) Brussels, Copenhagen, Madrid, Paris
110 W. Europe Standard Time (GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna
113 W. Central Africa Standard Time (GMT+01:00) West Central Africa
115 E. Europe Standard Time (GMT+02:00) Bucharest
120 Egypt Standard Time (GMT+02:00) Cairo
125 FLE Standard Time (GMT+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius
130 GTB Standard Time (GMT+02:00) Athens, Istanbul, Minsk
135 Israel Standard Time (GMT+02:00) Jerusalem
140 South Africa Standard Time (GMT+02:00) Harare, Pretoria
145 Russian Standard Time (GMT+03:00) Moscow, St. Petersburg, Volgograd
150 Arab Standard Time (GMT+03:00) Kuwait, Riyadh
155 E. Africa Standard Time (GMT+03:00) Nairobi
158 Arabic Standard Time (GMT+03:00) Baghdad
160 Iran Standard Time (GMT+03:30) Tehran
165 Arabian Standard Time (GMT+04:00) Abu Dhabi, Muscat
170 Caucasus Standard Time (GMT+04:00) Baku, Tbilisi, Yerevan
175 Afghanistan Standard Time (GMT+04:30) Kabul
180 Ekaterinburg Standard Time (GMT+05:00) Ekaterinburg
185 West Asia Standard Time (GMT+05:00) Islamabad, Karachi, Tashkent
190 India Standard Time (GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi
193 Nepal Standard Time (GMT+05:45) Kathmandu
195 Central Asia Standard Time (GMT+06:00) Astana, Dhaka
200 Sri Lanka Standard Time (GMT+06:00) Sri Jayawardenepura
201 N. Central Asia Standard Time (GMT+06:00) Almaty, Novosibirsk
203 Myanmar Standard Time (GMT+06:30) Rangoon
205 S.E. Asia Standard Time (GMT+07:00) Bangkok, Hanoi, Jakarta
207 North Asia Standard Time (GMT+07:00) Krasnoyarsk
210 China Standard Time (GMT+08:00) Beijing, Chongqing, Hong Kong SAR, Urumqi
215 Singapore Standard Time (GMT+08:00) Kuala Lumpur, Singapore
220 Taipei Standard Time (GMT+08:00) Taipei
225 W. Australia Standard Time (GMT+08:00) Perth
227 North Asia East Standard Time (GMT+08:00) Irkutsk, Ulaan Bataar
230 Korea Standard Time (GMT+09:00) Seoul
235 Tokyo Standard Time (GMT+09:00) Osaka, Sapporo, Tokyo
240 Yakutsk Standard Time (GMT+09:00) Yakutsk
245 A.U.S. Central Standard Time (GMT+09:30) Darwin
250 Cen. Australia Standard Time (GMT+09:30) Adelaide
255 A.U.S. Eastern Standard Time (GMT+10:00) Canberra, Melbourne, Sydney
260 E. Australia Standard Time (GMT+10:00) Brisbane
265 Tasmania Standard Time (GMT+10:00) Hobart
270 Vladivostok Standard Time (GMT+10:00) Vladivostok
275 West Pacific Standard Time (GMT+10:00) Guam, Port Moresby
280 Central Pacific Standard Time (GMT+11:00) Magadan, Solomon Islands, New Caledonia
285 Fiji Islands Standard Time (GMT+12:00) Fiji Islands, Kamchatka, Marshall Islands
290 New Zealand Standard Time (GMT+12:00) Auckland, Wellington
300 Tonga Standard Time (GMT+13:00) Nuku'alofa
Wednesday, August 6. 2008
Just got the public beta of Command and Conquer: Red Alert 3, only to find I couldn't connect to any games due to a NAT issue. Then I saw a post on the EA Forums that said the README included with the game listed the ports necessary to open up for the game.
The README states the following:
Command & Conquer Red Alert 3 uses UDP ports 8088-65535.
After forwarding these ports I was successfully able to start a game. Let just hope the game doesn't keep crashing like it did on my first game...
Sunday, July 29. 2007
One solution to this maybe to add
Option "AddARGBGLXVisuals" "True"
To the "screen" section of the file: "/etc/X11/xorg.conf"
Sunday, July 22. 2007
First run this command
gconftool-2 -t str --set /apps/metacity/global_keybindings/run_command_9 "Delete"
Then this command:
gconftool-2 -t str --set /apps/metacity/keybinding_commands/command_9 "gnome-system-monitor"
Thats it, try it out, and enjoy!
Tuesday, July 10. 2007
First Download and unzip the maps you want (some can be found here)
Next go to Start->Run and copy the following (With the quotes):
"%appdata%\Command & Conquer 3 Tiberium Wars\Maps"
Click Ok
Copy the files you unzipped to the folder that opens.
The maps should now appear in Command and Conquer 3
Wednesday, April 4. 2007
In Ubuntu "ls" outputs its results using color highlighting, however in Debian this is not the case. To solve this problem complete the following steps.
nano -w ~/.bashrc
Then uncomment (remove the #'s) the following lines, and change the "--color=auto" in the first line to "--color=always":
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
Tuesday, February 20. 2007
It takes years maybe decades to master the commands available to you at the Linux shell prompt. Here are 10 that you will have never heard of or used.
read more | digg story
Tuesday, February 13. 2007
About 200 Linux commands for serious newbies. To get more examples on how each command is used, use this command:#>man commandname
Continue reading "200 Linux commands for serious newbies"
Monday, February 5. 2007
You can select a random row simply by running this query in MySQL
SELECT FROM ads ORDER BY rand() LIMIT 1
After running a the above query preform a mysql_fetch_array, and you're set.
Below is a sample block of code to get a random row with the Pear DB Class:
$db = DB::connect("mysql://sample_user:secret_password@localhost/database", TRUE);
$query = $db->query('SELECT FROM table_name ORDER BY rand() LIMIT 1');
$row = $query->fetchRow($query);
print_r($row);
Friday, January 26. 2007
Gifts from one individual to another are never taxable to the recipient and rarely taxable to the giver. Yes there is a gift tax, but you have to give away $1-million before it kicks in. If it does, it's the giver who pays, not the recipient. read more | digg story
|