|Update on Xubuntu livecd: Internet Bugs ||2013-07-20 22:27|
|After a quite time I tried to remake the Ubuntu Linux Live CD according to the guide I posted before. After some digging I finally noticed the file /etc/resolf.conf didn't get created after livecd booted up. As in the picture above, /etc/resolv.conf gets recreated by typing sudo dhclient eth0 in the console but some problems may still be there.Reference on similar bug here: https://bugs.launchpad.net/relinux/+bug/1045757|
Edit: This can fixed removing the /etc/resolv.conf if it exists before making the cd, and making a sym-linking in the chroot environment to other file as shown below.
|ln -nsf ../run/resolvconf/resolv.conf /etc/resolv.conf|
|Blinker with two transistors ||2012-11-27 18:28|
|Power supply without stabilization ||2012-11-27 18:22|
D1-D4: Rectifier diodes (solid state)
C1: Electrolytic capacitor (1000 µF or larger capacity, 16 V)
T1: Transformer with secondary coil voltage up to 9-12 V
|Capacitor tester ||2012-11-27 17:52|
You can check many capacitors with a handy tool creaded from this schematic.
|[PHP] Curl: Get contents of a remote file and output it to browser ||2012-10-05 14:13|
|Using this script you can get a file to server and send it to the browser.|
//get the file (e.g. image) and output it to the browser
$ch = curl_init(); //open curl handle
curl_setopt($ch, CURLOPT_URL, $_GET['url']); //set an url
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //do not output directly, use variable
curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1); //do a binary transfer
curl_setopt($ch, CURLOPT_FAILONERROR, 1); //stop if an error occurred
$file=curl_exec($ch); //store the content in variable
//send out headers and output
header ("Content-Type: ".curl_getinfo($ch, CURLINFO_CONTENT_TYPE)."");
header ("Content-Length: ".curl_getinfo($ch, CURLINFO_CONTENT_LENGTH_DOWNLOAD)."");
} else echo 'Curl error: ' . curl_error($ch);
curl_close($ch); //close curl handle
|Warm Days ||2011-07-17 12:53|
|In recent days you'd probably seen a quite high temperatures outside the window. At least in the city where I'm living it was surely hot. |
But that's not a problem. There're alot of ways to spend time at home, more even when internet is fast and capable enough.
Alot of things can be found on Youtube and DeviantArt, and using Google more stuff could be found.
More content I'll probably add later, so that blog and the site would not feel abandoned after a some time.
|Enabling Virtual Memory in BartPE with XPE Plugin ||2011-07-03 16:02|
|Some may ask What is BartPE... It's a Windows LiveCD that's based on Windows PE built with a program called PeBuilder.|
If you got a PE Builder, get a plugin called XPE to get explorer shell, (you may also nead other plugins for other programs you may use). For XPE, look into http://oss.netfarm.it/winpe/
Once you built BartPE (with XPE included) you will see a desktop environment very similar to preinstalled windows (screenshot below).
|Using TweakUI to disable autorun on Flash Drives ||2011-06-28 13:30|
|To disable autorun on certain types of removable drives, You nead to get a TweakUI freeware utility from Microsoft.|
When you start this program goto Section [Program tweak list]=>[My Computer]=>[Autoplay]=>[Types] and uncheck to disable certain options for added security...
For more tips look in other blog posts or visit later...
|[C++] Adding a program to Startup ||2011-06-16 16:10|
|A nice c++ example how to add a program to startup is here. All you nead to add this to your code. it utilizes windows api btw. The example is below.|
full code below.
char szBuf = "C:\\Windows\\notepad.exe";
RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\Currentversion\\Run", 0, KEY_SET_VALUE, &hkey);
RegSetValueEx (hkey, "notepad.exe", 0, REG_SZ, (LPBYTE) szBuf, strlen(szBuf) + 1);
|Carmageddon Reincarnation Announced ||2011-06-01 15:49|
|As you read from the title it's a true news for all Carmageddon fans. But recently due to heavy visitors traffic the site was horribly down. It's announded by Stainless Games it seemz it will be the hell of a total remake or alike. Don't forget to check carmageddon.com, you'll find interesting things and a way more |
There goez some graphix for you