Click Here
Home Blog Gallery Links Tutorials Projects
Minor Update 2017-12-22 17:00
Updated url for an old YouTube video that were linked on this site some time ago, now linking to the updated one were reuploaded as a new video instead.
Updated Youtube video embed code 2017-06-14 20:35
Youtube embed code updated to html5 iframe from old flash since it might be broken in some old browsers as youtube is using html5 by default.
Local Image Checking added to BBCode Parser 2016-11-07 22:24
Internal images embeded via comments or blog posts using image bb code tag should produce less 404's on the server.
Google Captcha nonsense (1 Comments)2015-08-30 09:56
Trying to search about captcha on google it spits a captcha to solve for you itself thinking i'm a robot. Like a "case sensitive captcha" is a bad search term :/
Domain Change 2015-08-28 18:24
Site moved to new domain (juozas24.lt), the old puslapiai.lt subdomain (juozas24.puslapiai.lt) not used anymore.
Restored old Comments 2014-06-15 19:37
Some old comments from old times got restored as they might be gone after site update. If you'll see something "new" with the date back to early time, it means it's not a new comment but an old one restored from backup since he was'nt in the database yet :)
Monitor Calibration Images 2014-02-24 14:02
These images might be useful to anyone who wanted to calibrate their monitor using a reference image.
They are listed below as follows from here.

Brightness/Gamma/Contrast Calibration Image
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.
Quote:
ln -nsf ../run/resolvconf/resolv.conf /etc/resolv.conf
Capacitor tester 2012-11-27 22:17

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.
Quote:
<?php
//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
if(!curl_errno($ch))
{
//send out headers and output
header ("Content-Type: ".curl_getinfo($ch, CURLINFO_CONTENT_TYPE)."");
header ("Content-Length: ".curl_getinfo($ch, CURLINFO_CONTENT_LENGTH_DOWNLOAD)."");
echo
$file;
} else echo
'Curl error: ' . curl_error($ch);
curl_close($ch); //close curl handle
?>

Add a Comment

Get Your IP Instantly
Name:
Enter the text from the image below to the text field next to it (text is case sensitive):
Email:

Name:
Password:

Enter Captcha (Case Sensitive):


Register
English
Lietuviškai

RSS Feed
Main Content
Carmageddon
Programming
Technology
Electronics
Linux
Anything
Site Info

Unique visit count:
2163 visits on page.
4941 visits on site.
Detailed Statistics