MenuLatest Blog Postings at adamsinfoLinux Consultant - Server Management, Basic Housekeeping SSHing from a compromised machine PHP Programmer - Logical Operators PHP Programmer - Numeric Shorthand PHP Programmer - Reading from files PHP Programmer - strlen, count and substr PHP Programmer - strpos, finding the position of a word in a string PHP Developer - Loops in General Freelance PHP Programmer - Managing Estimates PHP Developer - Looping through database results Move Xen Guest from loopback filesystem to LVM Installing and Configuring Xen with guests Copy/Export MySQL User Priviledges Linux Consultant - How to recover a compromised server BASH Script - Blank Out CC Details Hosting - Users too quick to judge? PHP Programmer - Modulo Operator Linux C setuid setgid tutorial Linux Security Freelancer - Securing a node - Where to start? Security Consultant - Man In The Middle Attacks (MITM) Security Consultant - London Site Visits Security Consultant - Scope of work PHP MySQL Developer - A Freelancer in London PHP MySQL Developer - Using MySQLi Prepared Statements to Avoid SQL Injection Shrinking/Resizing ext3 Partitions Installing Linux on the Embedded PPC50 Touchscreen How to Find and Replace data in MySQL Looking for a New Linux Project Multithreaded Tunnel Proxy and OpenVPN experiment Linux - Exim, Avenger and SpamAssassin Tips Linux Color Directory Listings Web Application Security Consultant Methodology Security Consultant - Ports & Port Knocking Shell Return Codes - Ping Monitoring Security Consultant - PHP Developer - SQL Injection Attacks Security Consultant - PHP Developer - Exploiting Common PHP Code Flaws Multithreaded Multi-Connection TCP Proxy Tunnel Update Security Consultant - Basic NMAP Usage Multithreaded TCP Proxy Tunnel Code Using the Phidget Interface Kit under Linux Multithreaded TCP Proxy Tunnel The Linux Robot - In hindsight The Linux Robot - Dancing Beat Recognition brctl: Creating a network bridge shPanel - the Linux System and Hosting Control Panel Creating an MD5 on Linux with md5sum An idea - cPanel like host management Copy files securely from host to host with SCP How to create a simple disk image formatted to ext3 Linux piping and redirecting stdin stderr stdout BASH Shell Scripting - Sort a string alphabetically bc - Linux command line calculator How to upgrade from Debian Etch to Lenny Local and Remote Kernel Upgrades - Failsafe Grub Linux and the Huawei HSDPA 3G E220 modem for mobile broadband Linux PPTP (Poptop) VPN Setup with MPPE and MPPC A Beginner's Guide to Object Oriented Programming (OOP) in PHP5 - Classes, Objects and Methods How to reset forgotton MySQL root password How to recover your Linux root password How to remove the tray icon from VNC (RealVNC) with XN Resource Editor Linux IP Address Configuration Static or DHCP A rudimentary PHP POP3 example The Linux Robot - Progress, Software & a Video Simple POP3 Communication HOWTO A BIND9 zonefile and commentary Debian Lovers - Why I love Voyage Linux The Robot - Progress and a Video The Robot: Hardware working and ready to go, a few minor glitches Using distcc for distributed compiling on an alix 3c2 The Robot: Independant, moving, talking, and controlled via WiFi Linux: AVIT Research USB to TTL Cable Some simple filtering and sniffing with tcpdump The Robot: Base, Wheels, Motors, and Sabertooth Motor Controllers The Robot: A body, Sensors and Good Progress The Robot: Phidgets USB Interface Board Kit works The Robot: Successful installation of Debian onto the Alix 3c2 board rsync over SSH, SSH key login, public keys, automated backups Linux on a Mikrotik 532a , Part 5 Final - OpenWRT and Custom Scripts Robot: Initial Hardware Order [rev 2] Help Debian, today's Linux news. Linux on a Mikrotik 532a, Part 4 - Customization, Debian Scripts, Shaping, Firewall, NAT, picoLCD The Robot: Hardware List, Wheel Plan, More Ideas, Steps to launch Linux Robot, more hardware ideas Linux Robot - Watch this space PHP, MySQL, Apache2 install HOWTO on Debian APNIC Box - Linux on a Mikrotik 532a, Part 3 - Installing Debian, Prebuilt Disk Image APNIC Box - Linux on a Mikrotik 532a, Part 2 - Hardware Modifications APNIC Box - Linux on a Mikrotik 532a, Part 1 - The Device DNS Hijacking, ISP Packet Modification, Morals and Privacy The Legality of Peer to peer software Linux Benchmark, IO statistics and system statistics with dstat Thoughts on "Google denies disassembling Vista code for Chrome" 95th percentile billing explaination Wireless Hacking, Problems with WEP, Wireless Security and WPA Going Green, PC Hibernation, Saving Money & Common Sense NetCat tutorial for Linux & Windows, HOWTO, nc Using picolcd on linux, lcdproc, routerboard, liblcdusb Quick Linux and Windows OpenVPN HOWTO and tutorial, including VPN routing Linux virtualization, vmware, xen, hosting, and squeezing the most out of your resources Bandwidth Limiting HOWTO with linux, tc and iproute2 Exim, MySQL, Courier IMAP, Courier POP3 & Spamassassin - vdomain and vuser set up. Custom linux router, routing, split access and more.. |
Elementary Google Chrome / Chromium ThemeThis is a quick post: elgandoz told us that he created an Elementary theme for Google Chrome / Chromium. If you use the Elementary theme created by DanRabbit or the Elementary Mod we just posted, your browser will finally fit in with the rest of your desktop: Posted on 9 February 2010 | 8:35 am Get Instant Access to Wikipedia from your BrowserIf you are an avid fan of wikipedia then a good thing will be to access Wikipedia content from your browser window instantly. Here are some cool plugins for two of the most popular web browsers, which will help to find wikipedia entries for a any selected word or phrase you might come accross. [...] Related posts:Chrome Extension for Taking Screenshots Inside Browser Swiftfox – Fast Light Weight Browser for Linux Based OS 6 Most Popular Extensions for Google Chrome Posted on 9 February 2010 | 7:53 am Some Interesting SEO Questions & Answers by GoogleFew days back Google webmasters had proposed to the webmasters quiz, a Webmaster Quiz to test our knowledge on SEO and the subject. They published the responses which can be viewed here. Its an interesting quiz I think all bloggers and websites owners must take to see if what they ask, we knew it [...] Related posts:Top 10 SEO Mistakes in Blogging Done Due to Wrong SEO Knowledge 10 Best Free Online SEO Tools By Google Microsoft’s Free SEO Tool to Help You Rank Better in Bing, Yahoo & Google Posted on 9 February 2010 | 7:05 am Wordpress : Lets Allow Our Commentators To Edit Their CommentsHumans are not machines. We all do mistakes. So, when we comment also we make mistakes. But, most of the websites won't allow us to edit these comments to correct our mistakes! Now what to do? As site owners, I don't think we like to see some unreadable rubbish as comments right? Related posts:The Secrets of Getting Comments for Your Blog Lets install the latest Grub 2 on Ubuntu 9.04 Have a file that you don’t know how to open? How To Set Up Wordpress in Your Home PC Come Out of that Dark Cave if You Want to Blog! Posted on 9 February 2010 | 6:30 am Why your program should have an actual configuration fileWhy your program should have an actual configuration file Every so often, someone says something like 'you know, our program has a configuration file but also supports runtime reconfiguration via some magic. Clearly this is wrong, so what we should do is get rid of our configuration file and just make sure the running state is persistent'. If they're feeling nice, they add that the running state will be saved as an XML file. Every time people say this, sysadmins cry. Here is a very important thing for real deployments of your program in real environments: configuration files are a good thing because they are really easy to manage. Running state that is updated by applying changes (often non-idempotent changes) is much harder. First, let's get something out of the way: machine generated, automatically updated XML files are not configuration files in any conventional sense that is useful to sysadmins. They are an internal persistence mechanism that may, perhaps, have vaguely useful and inspectable contents (but generally not). So regardless of XML or not, if you go down this route you do not have a configuration file but instead a program with configuration state that persists over reboots and restarts. Let's inventory some of the things that you lose when you merely have persistent configuration state without actual configuration files: you cannot configure the program without the program actually being running. Programs often have undesirable behavior when started in an unconfigured, misconfigured, or inaccurately configured state.Among other things, this means that you can't prepare alternate configurations in advance; you must build them on the fly. (Or you must build them on another machine or in another instance of the program, shut both down, and port the magic persistence database over in whatever form it is in, assuming that it does not have host or instance specific data buried in it that you must scrub out.) you cannot atomically make a bunch of changes, having them all take effect at once by putting a new configuration file into place and restarting the program (well, unless there's an explicit 'batch changes together' mechanism). Instead you must make the changes reconfiguration operation by reconfiguration operation. Much like before, this can result in the program temporarily operating in a highly undesirable state. At a minimum, it's going to complicate planning changes. corollary: you can't easily switch configurations or choose different configurations based on outside conditions. automatically updating configuration files clash, potentially badly, with attempts to maintain configuration files through version control systems, automated deployment mechanisms, and so on. it is (or should be) easier to understand a configuration that is written out in a configuration file than one that is the implicit results of applying a bunch of configuration change operations. (If it is not, let's be honest here: you need a better configuration file format.) it is much easier to update configurations by providing new files than it is to update configurations by applying configuration changes. There are lots of mechanisms to put new files into place; there are very few to carefully run sequences of commands, keeping track of what ones have already been executed successfully. I could go on, but I think I'm going to stop now; I hope that you get the point. Configuration files don't exist merely because those other programmers are lazy people, they exist because they're actually a pretty good solution to a whole bunch of problems at once. Getting rid of them is almost never forward progress. Posted on 9 February 2010 | 5:34 am Gestalt IT’s Tech Field Day: I’m in!Completely out of the blue last week, I got an email from Stephen Foskett discussing something called a “Tech Field Day” put on by his company, Gestalt IT. I was really busy and didn’t get a chance to really look into anything until that night. As it turns out, the email was talking about a novel idea in the blogosphere that had been put on last year and ended up being such an amazing success that it’s being repeated now. This idea is the Tech Field Day. There are companies out there making very cool things that people should know about. At the same time, there are some really great bloggers out there writing great pieces about cool things. Stephen Foskett and Tech Field Day is devoted to connecting those two groups in a very personal way. The idea is impressively simple. A group of bloggers, 15 or so, gather together, crowd onto a bus, and go visit companies. Sort of like a tech version of the Partridge Family, except the singing has been replaced by deep dive presentations from engineers and chief officers from companies trying to expand the state of the art in IT. Cool, huh? The benefit that the companies derive is that news of their new technologies and products gets spread via word of mouth and through trusted channels. If the technology and products are actually good, that is. The blogger delegates attending the event aren’t paid shills. Every one of us has the understanding that what we write will be an honest representation of what we see, experience, and think. If I don’t like a product, I’m not going to write nice things about it because our bus pulled up to their building. The bus will take me to the next place, regardless of what I write. The benefit to the bloggers is, first and foremost, building a community amongst ourselves. In this electronic world, we think we know someone pretty well if we IM with them, rather than just shoot emails and the occasional twitter mention. And it is possible to know someone well over the internet. But it’s something entirely different to know them in person. We are still humans, and we still relate to each other, and so much of the rudeness, bravado, and opinionated difference on the internet melts away when you shake hands with someone and look them in the eyes. There are a lot of other benefits to the writers, as well. Seeing what companies are offering first hand, learning from the engineers who implemented the products themselves, and a mental break from the ruts that we all find ourselves in from time to time. The combination of these should make for some really nice writing. The community that spawned from the first Tech Field Day sounds like it was special. The individual bloggers created a tribe of incredibly intelligent people brought together to be with each other, to experience new technology, and to take home experiences different than they’d had previously. According to all of the mentions that I’ve seen, it was incredibly successful. And so last week, I got my email. I’m honored to have been considered, and after talking to Stephen for a while on Friday, I really saw the vision, and i was sold. The next Tech Field Day is in Boston, MA, and is scheduled for Spring of 2010. The last time that I talked to Stephen, not all of the vendors had been scheduled, so if you’re in the Boston area and think that your company has something cool and exciting to talk to an array of industry bloggers about, drop me a line and I’ll get it to Stephen (or just email him, at the address on the delegate list, below). The full delegate list isn’t finished, either, but will be updated as it’s filled out here. If you read a lot of blogs, several of those names should be familiar. If they aren’t now, I’m sure they will be, because every one of them is a great blog to read and learn from. If anyone has any questions at all, drop them below, and I’ll do my best to answer everything. Thanks, and I hope that you’re as excited about this as I am! Posted on 9 February 2010 | 3:54 am When Linux Nerds Choose Mates from the Windows Herd.Look...let's face this together. Dating can suck. Posted on 9 February 2010 | 1:56 am The Bruno Knaapen Technology Learning Center is EstablishedIt was just a short time ago that Scot Finnie announced a long-time Linux Advocate had fallen terribly Ill. His name is Bruno Knaapen and he is the author and maintainer of Brunolinux.com. We wrote about Bruno at Blog of helios and told you that we planned to dedicate a technology learning center to him. I began speaking with different people about various possibilities and locations for the center. It became obvious after a short time that we were not going to be able to find a suitable place any time soon. Posted on 9 February 2010 | 1:37 am Memo to Dell: Sort Out Your Ubuntu StrategyDell's Ubuntu strategy once again faces Fear, Uncertainty and Doubt (FUD). Multiple times in the past 12 months or so, Dell's strong Ubuntu efforts have been undermined by disappearing desktop offerings. ...Full Article Posted on 9 February 2010 | 1:15 am What’s Likeable About Likewise Open for UbuntuTraditionally, configuring Ubuntu servers to integrate with Microsoft Active Directory was not a lot of fun. It wasn't exactly difficult, but it involved editing lots of PAM and Kerberos configuration ...Full Article Posted on 9 February 2010 | 12:27 am Worst TV Licence ExcusesI decided to have a look around on the internet to find the worst (and some funny) TV Licence excuses when people who haven't got an up-to-date TV Licence get caught. My dog watches it while I'm at work to keep him company - not me. The subtitles on my TV are set to French so I'm not paying a UK tax for something I can't read. My wife has her hair done twice a week, so we find it difficult to pay. I haven't renewed my licence because my wife flushed it down the toilet, along with my wallet. My husband has just spent 3,000 pounds on this massive flatscreen digital TV so we can't possibly afford a licence. I couldn't make my last payment as my baby was sick on my shoulder and I didn't want to go to the shop smelling of sick because the guy I fancy works there. I have not been making payments because a baby magpie flew in to my house and I have had to stay in to feed it. I [he] forgot to pay as my [his] girlfriend had hit me [him] over the head with a hammer. I'm not paying for a politically partisan media controller when I don't watch anything it produces. I want the license abolished cos I really think a media completely controlled by right-wing plutocrats will provide me with better programming and accurate news. I was stuck to the sofa thanks to Derren Brown's show on Friday night. Because my [her] cat had got sick down the back of the set and blew it up. » <a href="http://www.tvlicensing.co.uk" target="_blank" title="TV Licensing">TV Licensing</a> Posted on 8 February 2010 | 10:44 pm Google Might Unveil Gmail's Social Features TomorrowThe Wall Street Journal reports that a new Gmail module might be released which will integrate status updates as well as content from YouTube, Picasa and potentially other social media websites. WSJ is unclear as to when it will launch, though. Posted on 8 February 2010 | 9:20 pm Schiller defends App Store approval policy‘Schiller claimed 90%of rejectionswere for technical reasons such as bugs or functions that didn’twork as intended’ Posted on 8 February 2010 | 6:20 pm How to Import / Export OR Backup / Restore MySQL Database in Ubuntu Linux with mysqldumpBackup of database is very important in Database Projects. You can recover your data when problems occurs. A variety of backup strategies are used in MySQL. You can choose any one of them. This can also use for Installing your Software from One system to Another. This Method is not Distribution Specific, You can Use same command in Fedora, Mandriva, Debian, SUSE etc.. My Heading is for helping Ubuntu users in Search. Posted on 8 February 2010 | 5:38 pm Comment on Xen.org Pamphlet Available in Polish by Tweets that mention Xen.org Pamphlet Available in Polish – blog.xen.org -- Topsy.com[...] This post was mentioned on Twitter by Özgür Yüksel and The Xen® Hypervisor, Planet Xen. Planet Xen said: Xen.org Pamphlet Available in Polish: Thanks to Igor Wawrzyniak for translating the Xen.org 2 page pamphlet in... http://bit.ly/aBppAS #xen [...] Posted on 8 February 2010 | 4:24 pm Comment on Xen 3.4.3 Release Candidate 2 Available by Tweets that mention Xen 3.4.3 Release Candidate 2 Available – blog.xen.org -- Topsy.com[...] This post was mentioned on Twitter by Özgür Yüksel, The Xen® Hypervisor and Planet Xen, Jared Cowart. Jared Cowart said: Xen 3.4.3 Release Candidate 2 Available - http://blog.xen.org/index.php/2010/02/08/xen-3-4-3-release-candidate-2-available/ [...] Posted on 8 February 2010 | 4:23 pm 22 Best Popular Firefox Themes
Posted on 8 February 2010 | 4:13 pm Xen.org Pamphlet Available in PolishThanks to Igor Wawrzyniak for translating the Xen.org 2 page pamphlet into Polish. Check it out at http://www.xen.org/files/Marketing/XenPamphlet_po.pdf. Posted on 8 February 2010 | 3:27 pm Xen 3.4.3 Release Candidate 2 AvailableFrom Keir: I’ve tagged 3.4.3-rc2 at http://xenbits.xensource.com/xen-3.4-testing.hg. Please test! Posted on 8 February 2010 | 2:42 pm Resealable Can<img src="http://www.dalehay.com/images/twistcan.jpg" alt="Resealable Can" border="0" align="right" style="padding: 4px;" />Always annoyed by your drink going flat when you buy a can of pop? Well you don't need to worry anymore as there's now a new resealable can with a twist-shut lid that can supposedly keep your drink fizzy for upto 24 hours after first being opened. The price of the can is £1.19 though as it's likely to be more expensive to manufacture, though the can isn't the regular 330ml size - it's a bit bigger, being sold in 485ml cans. The can is due to be released in April 2010. Posted on 8 February 2010 | 1:09 pm openSUSE Survey 2010 – Participate nowParticipate in the openSUSE survey 2010 to give feedback to the openSUSE project about the distribution, the openSUSE tools environment and the project in general. Let the project know where things are in good shape and areas where improvement is needed. There are also some questions to get some demographic knowledge about users. The survey will take about 8 mins. The survey will be online Posted on 8 February 2010 | 12:15 pm Design patterns : Factory MethodFactory method defines an interface for creating an object, but lets the subclasses decide which class to instantiate. Factory method lets a class defer instantiation to subclasses. Factory method makes the design more customizable and only a little more complicated. Other design patterns require new classes whereas factory method requires only a new operation. Factory method is quite similar Posted on 8 February 2010 | 12:10 pm FSArchiver - Filesystem Archiver for LinuxFSArchiver is a system tool that allows you to save the contents of a filesystem to a compressed archive file. The filesystem can be restored on a partition that has a different size, and it can be restored on a different filesystem. Unlike tar/dar, fsarchiver also creates the filesystem when it extracts the data to partitions. Everything is checksummed in the archive in order to protect the data Posted on 8 February 2010 | 10:54 am Best CD and DVD burning softwareWhen I first started burning CDs few years ago, Nero was my favorite program. It was simple to use it got the job done. I also tried Roxio Easy CD Creator back in the old days, but I didn’t like its interface and it wasn’t as reliable as Nero. Nero 6 is still my favorite [...] Posted on 8 February 2010 | 10:21 am 5 Top Messengers To Have a Little Chat With Your FriendsToday there are lots of chatting going on in the net! Most of the people come online to chat with their friends! Because of this, the messenger has become a very important tool when your using a PC. So, Do you have a good messenger with you? Want to try out a new one? Related posts:Meebo Bar : Now You Can Chat With Your Friends Within Tech Hamlet Facebook: Share Photos and Videos Through Email Facebook to Twitter How To Make Your Own Theme in Windows 7 How to Install the Latest Pidgin in Ubuntu 9.10 Posted on 8 February 2010 | 6:30 am Using SCAN - Single Client Access Name to Connect to 11g R2 RAC from JDeveloper 11gThe ability to have a single / simple connect string for a RAC cluster seemed like something worth trying which SCAN allows us to have as part of 11g R2. Trying to understand how SCAN works and it's setup was not what I had time for so I took an existing setup and verified I could connect from JDeveloper 11g without any issues. Posted on 8 February 2010 | 3:49 am SCAN 11g R2 JDBC Load Balance TestNow that I have a SCAN 11g R2 setup I was able to quickly verify the load balancing of connections using a SCAN URL as shown below. I find it very useful to have such a simple JDBC URL. No matter what nodes are added or removed I never have to alter my client JDBC URL again for this RAC cluster. Posted on 8 February 2010 | 3:05 am Opera 10www.opera.com/browser Posted on 7 February 2010 | 6:53 pm Planetarium Software for Young Children in Ubuntu / Debian Linux : Stellarium
Posted on 7 February 2010 | 5:00 pm Download Free MPlayer For WindowsWindow Media Player is used within the Windows. In Recent times, we covered the different media players as replacement of window Media Player like VLC, FLY, window Lite Media. Today, we bring another powerful replacement of window media Player MPlayer for Windows users. MPlayer is open source and freeware app that designed for recent all types of Video and AudioCodecs. Posted on 7 February 2010 | 3:42 am Most useful things on the InternetFew days ago I was thinking about how we lived our lives before Internet came along and how many changes Internet brought, especially in the last 10 years or so. Do you remember the good old times? We used to go out more and play games there instead on our PCs and game consoles, we used to write [...] Posted on 6 February 2010 | 5:11 am Design patterns : BuilderThe purpose of a builder is to separate the construction process of a complex object from its representation so that the same construction process can be used to create different representations. The participating actors are a "director" which interprets the information and invokes the "builder" to get the object built. The builder creates parts of a complex object each time it is called and Posted on 5 February 2010 | 12:49 pm New Twitter Friends Followers versionToday I have released version 2.0 for my Twitter Friends and Twitter Followers Joomla! 1.5 Modules. I have removed some minor bugs and most of all I speeded up the cache usage. The cache usage is now much better and quicker. So your site will not be affected by loading the cache file anymore. Happy Downloading ! Twitter Friends Twitter [...] Posted on 5 February 2010 | 4:52 am Linux LUKS Crypt HOWTOLinux kernels now support encrypted filesystems. Setting one up should take 5 minutes, or 3 hours if you’re like me and can’t read. Firstly, install the right tools: apt-get install cryptsetup Make a new partition, and initialize it with: cryptsetup luksFormat /dev/sda3 mycrypto Where /dev/sda3 is your newly created partition and ‘mycrypto’ is your name for the [...] Posted on 4 February 2010 | 11:07 pm 7 of the Best Free Linux CalculatorsOne of the basic utilities supplied with any operating system is a desktop calculator. These are often simple utilities that are perfectly adequate for basic use. They typically include trigonometric functions, logarithms, factorials, parentheses and a memory function. Posted on 4 February 2010 | 12:09 pm The only valid measurement of code qualityIt’s either this way or no way to measure the quality of the code. With Special thanks to : ML and OsNews Posted on 4 February 2010 | 11:27 am How to get the query string value in perl cgi scriptIn this tutorial we will see how to get the query string value using very simple perl CGI script. When we hit a URL from the web browser with a query string say http://mistonline.in/cgi/data.cgi?program=php In which program=php is the query passed.Now we will see how we get the same value using perl CGI script. Here is the code #!/usr/bin/perl #Script [...] Related posts:How to run a SQL query in phpMyAdminHow to run CGI or Perl Scripts in IBM Http Server [IHS] or Apache ServersSimple PHP Login Script Posted on 2 February 2010 | 9:46 pm How to fix the Ctrl-Y Ctrl-Z inconsistency in GNOME Terminal with international keyboard layoutsThis blog post describes and fixes an inconsistency between some keys with or without Ctrl in GNOME Terminal with international keyboard layouts. In GNOME Terminal, with the Hungarian and German keyboard layouts the keys Y and Z are switched with respect to the US English layout. So when the national layout is active, one of the keys yields the string "z", but when the same key is pressed with Ctrl, it yields "^Y", instead of the expected "^Z". All other applications (e.g. GIMP, Firefox, xterm) work as expected, except for those using VTE (e.g. GNOME Terminal). Here is a script which fixes this on Ubuntu Hardy and Ubuntu Karmic:exec perl -we ' Posted on 1 February 2010 | 8:32 am openSUSE 11.3 Milestone 1 OUT NOW!Check out the details here. Posted on 1 February 2010 | 4:06 am Linux Controlled Door EntryHaving recently moved to a new apartment, one of the first things that I decided to do was build an RC entry system Here’s some pictures: The black box at the top is a simple Velleman RC control kit and the black box below is a 240VAC->12VDC regulated converter. The Velleman RC receiver has [...] Posted on 31 January 2010 | 4:08 pm How to swap two nodes in a doubly linked listThis blog post gives example C code how to swap two elements (nodes, items) of a doubly linked list. The code works for both circular and non-circular lists, even if the two arguments are the same, or if they are adjacent in the list. (It is surprisingly complicated to give a correct and elegant solution.)#include <stdlib.h> /* NULL */ The code above is based on the discussion at http://bytes.com/topic/c/answers/219236-double-linked-list-elements-swap swap_node is simpler, and it's also faster if the data is small (i.e. at most 2 pointers). However, swap_node cannot be used when there are external pointers inside the data. Posted on 31 January 2010 | 10:38 am Unix - delete file with hyphen at beginningAccidentally one of my script created a file named '-1264924755.done' (i.e. filename starting with a hyphen). Posted on 31 January 2010 | 8:15 am Open source in 2010Is 2010 the "year of open source"? Probably not, but by the end of the year expect to see open source software everywhere. Posted on 27 January 2010 | 10:46 am Sed - save changes to same fileSed receives text input, either from stdin or from a file, performs certain operations on specified lines(or all lines) of the input, one line at a time, then outputs the result to stdout or to a file. Today I am going to show how we can use sed to do some operation on a file (mainly substitute, which is the most popular with sed) and write back the results to the same file. Posted on 27 January 2010 | 3:17 am Helping Haiti: With Crystal of the International Medical Corps…It has been in the recent news the devastating twin earthquakes that mostly flattened Haiti. While the rest of the world stared with horror and shock many people has lost their home, their family, their near and dear ones in a few minutes of nature’s whims. Help poured in from all quarters and my friends [...] Posted on 25 January 2010 | 2:17 pm Upload Your Scripts For FreeHello visitors, I have now introduced a new option in Mistonline.in , My visitors can easily upload their own scripts or can share with me the URL of your website so that i can post your tutorials also in my website.All this for Free , you dont even need to register.You have to just provide [...] Related posts:Simple file upload script using phpAdd to favorites or bookmarking using javascript in firefox and internet explore [IE]Secure PHP Scripts Posted on 24 January 2010 | 2:05 pm originalip option in dansguardianI upgraded my firewall on Mandriva 2009.1 to 2010 and got into problem with dansguardian. Client computers got DansGuardian 400 - Bad Request , url is malformed for certain sites such as google and facebook. I suspected it must be related to new option introduced by newly installed dansguardian (2.10.1.1). In changelog, I got this: Posted on 22 January 2010 | 3:19 am Extract Audio (.mp3) from Video Files Like .flv, .mov, .avi and Others with UbuntuIt is very easy to extract the audio track from video files using Linux. All you need is ffmpeg and some codecs. Let’s get started… Note: The commands below are for Ubuntu (or Debian derivatives) but you can do the same with any other Linux distribution provided you can install the necessary packages. 1. Add the Medibuntu’s repository [...] Posted on 20 January 2010 | 8:49 pm Stripping comments from a fileYou can run this command to strip comments (line starting with a #) and empty lines from a file in Linux: Posted on 20 January 2010 | 7:49 am Guest Post: Selecting a Linux DistributionIf you are planning to learn the ways of using and operating Linux then you should try to gain proper knowledge about it. You must try to decide the type of version that you are planning to utilize, when it comes to Linux as your operating system. You should know the ways to choose the right [...] Posted on 14 January 2010 | 1:08 am Domain management on mobileIt was pure delight to find out that GoDaddy — arguably the #1 domain registrar in the world — has an app for the iPhone / iPod touch. According to the App Store, it was posted late last year. Sometimes I get an inspiration for a domain name, and it’s now so much easier and [...] Posted on 12 January 2010 | 3:05 pm My Apostille Woes and Shashi Tharoor…My book was published this July and I got my first royalty statement soon after. My contract with Galileo Press was executed in the US and hence this required me to apply for a TIN to get the actual payment as well as claim tax exemption from the Indian Government. The process, it seemed, was [...] Posted on 8 January 2010 | 7:54 am How to Resume Partial File TransfersI work primarily with UNIX and Linux machines and scp is my main choice to transfer files with. It is both convenient, short and secure. Example: scp localfile user@remotecomputer:/path/to/target/dir Recently I was transferring an 8GB file and due to a network issue, the transfer was interrupted at nearly 40%. I found a solution at joen.dk ,which uses rsync to [...] Posted on 8 January 2010 | 5:03 am Sabayon 5.1 Gamers Linux ScreenshotsI noticed that Sayaon 5.1 Gamers edition live DVD is available for download. Or you can buy Sabayon DVDs. I’ve used and reviewed the Gentoo-based Sabayon many times before and have been very impressed with the Live CD’s out-of-the-box functionality. I was quite excited to crack open Sabayon Linux 5.1 “Gaming” for obvious reasons. The Sabayon [...] Posted on 29 December 2009 | 12:13 am FAQ: How to install manual pages in Solaris?In order to use install man pages for various commands in Solaris it is necessary to get two packages: SUNWman and SUNWdoc. You can check if they are already installed using commands ‘pkginfo SUNWdoc' and 'pkginfo SUNWman', or just try ‘man man‘. If they are not present in your system you can install them from [...] Posted on 25 December 2009 | 12:47 pm Sexy Christmas WallpapersHo-ho-ho, see below a set of Sexy Christmas Wallpapers… Happy holidays! P.S. Previous hot post is here. Posted on 23 December 2009 | 7:01 am Banking with Facebook - Probably not the best idea ever
Mike Bailey at Skeptikal.org wrote up last week about a new Facebook app called MyMoney. MyMoney is an application that according to its creators allows you to: Manage your finances right from your Facebook profile, simply and securely! MyMoney is an online home banking application that interacts with a variety of financial institutions, so you can view your account balances, transfer money between accounts, review histories, and much more. Sounds kind of cool? Hold your horses. In a post dripping with sarcasm (letting you know in case your detector is a bit off) he says: I know you're thinking this is a bad idea, and are concerned about MyMoney's security. Don't worry, I checked it out. They have "multiple layers of security protecting...data and accounts." The application iframes you into their site (hosted on https://mm.galaxyplus.com). If you forget the URL, they left zone transfers enabled for you, so you can just select from a list of galaxyplus.com subdomains. The iframe's URL has a parameter called "fb_sig_user." If you manipulate this parameter, you get to see the contents of all your friends' accounts (presumably so you can borrow money without all that awkward asking). The only thing I don't like about this application is that they left error reporting on. I don't like seeing those ugly ASP stack traces every time I use an HTML tag as a form parameter. Lol! Note to readers: online banking should be done in a virtual machine if at all possible, and that is all that you should do with VM, nothing else. If that is too much of a hassle, at least download and install a browser like Firefox or Chrome and use that browser exclusively for your banking. If you'd like to read the entire (hilarious) post, click here.
Posted on 11 December 2009 | 4:13 am Unbiased Motorola Droid ReviewVerizon Droid Smart PhoneIf you've been looking for a review of the Motorola Droid from the perspective of the average geek, check out a friend of mines review here. I worked with Andy at a previous company and he is both an excellent Network Administrator and writer, so I hope you enjoy it! Posted on 5 December 2009 | 4:56 am Issues With an Orphaned .attribute^ FileWe had intriguing problem related to a Unix-based directory. This directory was mapped to Windows via Citrix. Posted on 24 November 2009 | 10:38 am Start and Stop Tomcat from within the Eclipse IDEStarting and stopping Tomcat from within the Eclipse IDE, once set up, can speed up your Java Web Application development time because you won't have the extra step of opening the terminal to start and stop Tomcat. The following instructions assume you have Eclipse installed and Tomcat installed. Posted on 15 November 2009 | 8:20 pm Set Tomcat Memory Heap SizeIf your Java Web Application running on Tomcat ever crashes and throws the exception: Posted on 15 November 2009 | 6:59 pm ftpconfig - Setup Anonymous FTPTo setup an anonymous FTP account, you might consider using the ftpconfig script. It seems to be a lot easier to setup an anon FTP account with Solaris 10 than it was for Solaris 8. The anon users log in and then they are given restricted access to a mini-root filesystem. Posted on 14 November 2009 | 1:18 am Introduction to Computer Vision with the OpenCV Library on LinuxAuthor: Lubos Rendek Conventions used in this article: $ - execution on the command line by a non-privileged user# - execution on the command line by a superuserthe actual command to be executed on the command line or code of program to be compiledOUTPUT: output produced on the command line by command executionNOTE: general notes and additional informationIntroductionIn simple words a Computer Vision is a scientific field which attempts to provide a sight to the machine. This scientific field has expanded rapidly in recent years. Among researchers this growth is because of many improvements of vision algorithms and among the computer vision hobbyists this is due to the cheaper hardware components and processing power. OpenCV library plays a great role in the Computer Vision field as it helps greatly to reduce cost and preparation time of computer vision research environment needed by university students, hobbyists and professionals. OpenCV also provides a simple to use functions to get the work done in a simple, effective and elegant manner. OpenCV was started by Intel, and later it was transformed to an open source project now available on SourceForge.net. OpenCV library has multi-platform availability, and it is partially written in C++ and C language. Despite the fact that this library is available on many Linux distributions from its relevant package repositories, in this article we will attempt to install and use OpenCV library compiled from a source code downloaded from SourceForge.net web site. The reasons for compiling a source code may include: new version 2.0.0 recently released and more features available some bugs fixed which affected Linux OpenCV 1.0.0 versions ( such as cvGetCaptureProperty() etc. )more support is available for OpenCV 2.0.0 version than for former 1.0.0 version This article will start with installation of OpenCV on Debian 5.0 ( Lenny ). Later a reader will be guided through a number of examples on how to use OpenCV to display an image, play a video and use camera to capture the video input stream. Posted on 10 November 2009 | 10:58 pm Traveling with my Globe T@ttooI’ve been traveling around Mindanao these past few months and, to keep myself connected to the Internet I’ve been bringing along my Globe Tattoo broadband device. No matter where I am, and even if I’m on vacation, I can’t imagine not being able to connect to my email, social networking services, etc., so I don’t [...] Posted on 27 October 2009 | 12:36 pm Setting up and using memcached & memcache on Linux CentOS 5/Plesk 9The second part of my tutorial on optimizing your server for hosting high traffic websites: installing and configuring memcached and the memcache php extension for your server. This is a little easier than the first step (setting up nginx as reverse proxy, see article below) and can be applied to any kind of dynamic website. Posted on 30 September 2009 | 8:03 am Setting up nginx as reverse proxy on Linux Centos 5.2 (and Plesk 9)Following my blog article on optimizing your web server by using nginx and memcached, I'll now detail the first step: setting up nginx as reverse proxy on your server. This is going to be a bit tricky, and you'll be getting your hands dirty, so be warned. Posted on 29 September 2009 | 3:33 pm Strategie-online.nl – Online StrategieHet laatste nieuws op Online Strategisch gebied! Het hebben van een online strategie is tegenwoordig een veel gebruikte marketing term, maar wat houdt het nu in? Geinteresseerd in het laatste nieuws op Online Strategisch gebied? Wat is online strategie? Neem even een kijkje op www.stategie-online.nl of check de MaxServ Twitter http://www.strategie-online.nl Posted on 28 September 2009 | 2:27 pm C++ : Understanding pointersAuthor: Lubos Rendek This article is intended to all programing enthusiasts on all levels who do wish to understand pointers in C++ language. All code presented here is not a compiler specific and all examples will be written in plain ANSI C++. Debate about pointers can stretch for miles, and you would need to go really far to master it all. If you really want to run that far, this article gives you a clear understanding of fundamental concepts about pointers and prepares you for that journey. However, those who are new to C++ programming make sure that you are able to write and run your own C++ “hello world” program, and also it is recommended that you have a basic understanding of C++ functions and classes. If you need to refresh your knowledge about how to compile and run C++ program, use functions and classes, please read an appendix at the end of this document before you continue reading this article. What is a Pointer?Pointer is a variable that stores a memory address. OK, that is simple ! But, what is a memory address then? Every variable is located under unique location within a computer's memory and this unique location has its own unique address, the memory address. Normally, variables hold values such as 5 or “hello” and these values are stored under specific location within computer memory. However, pointer is a different beast, because it holds the memory address as its value and has an ability to “point” ( hence pointer ) to certain value within a memory, by use of its associated memory address. Retrieving a Variable's Memory AddressOK, enough talking and let's get down to the pointer business. To retrieve a variable's memory address, we need to use address-of operator &. #include <iostream>int main() { using namespace std; // Declare an integer variable and initialize it with 99 unsigned short int myInt = 99; // Print out value of myInt cout << myInt << endl; // Use address-of operator & to print out // a memory address of myInt cout << &myInt << endl; return 0; } OUTPUT: 990xbff26312 The first line of the output contains an integer value 99 and on the second line, there is a memory address of myInt printed out. Please note that your output will be different. Before we can assign a memory address to a pointer, we need to declare one. Declaring a pointer in C++ is as simple as to declare any other variable with one single difference. Asterix symbol " * " needs to be add and located after variable type and before a variable name. One rule has to be followed when assigning memory address to a pointer: pointer type has to match with variable type it will point to. One exception is a pointer to void, which can handle different types of variables it will point to. To declare a pointer pMark of type unsigned short int a following syntax is to be used: #include <iostream>int main() { using namespace std; // Declare and initialize a pointer. unsigned short int * pPointer = 0; // Declare an integer variable and initialize it with 35698 unsigned short int twoInt = 35698; // Declare an integer variable and initialize it with 77 unsigned short int oneInt = 77; // Use address-of operator & to assign a memory address of twoInt to a pointer pPointer = &twoInt; // Pointer pPointer now holds a memory address of twoInt // Print out associated memory addresses and its values cout << "pPointer's memory address:\t\t" << &pPointer << endl; cout << "Integer's oneInt memory address:\t" << &oneInt << "\tInteger value:\t" << oneInt << endl; cout << "Integer's twoInt memory address:\t" << &twoInt << "\tInteger value:\t" << twoInt << endl; cout << "pPointer is pointing to memory address:\t" << pPointer << "\tInteger value:\t" << *pPointer << endl; return 0; } OUTPUT: pPointer's memory address: 0xbff43314Integer's oneInt memory address: 0xbff43318 Integer value: 77 Integer's twoInt memory address: 0xbff4331a Integer value: 35698 pPointer is pointing to memory address: 0xbff4331a Integer value: 35698 The diagram above is a high level visual abstraction of how are variables stored within a computer memory. Pointer pPointer starts at memory address 0xbff43314 and takes 4 bytes. Pointer pPointer holds as a value a memory address of a short int twoInt ( 2 bytes ) which is 0xbff4331a. This address is stored as a binary data within a pointer's memory space allocation. Therefore, dereferencing a pointer with a memory address 0xbff4331a will indirectly access a value of twoInt which is in this case a positive integer 36698. Posted on 9 September 2009 | 8:44 pm Grant Remote Access To DBHere is a small tutorial if you want to grant remote access to a DB on your server. First login trough SSH on your server and get access to you mysql $mysqladmin -u XXX password XXX Note: that db_user and db_passwd are your database username and database password GRANT ALL PRIVILEGES ON db_base.* TO db_user @’%’ IDENTIFIED BY ‘db_passwd’; You [...] Posted on 9 June 2009 | 1:37 pm | |||