Autarchy of the Private Cave

Science, Society, Programming and Hobbies

  • Exits

  • Categories

  • Archives

  • Visitors' track

    Locations of visitors to this page
  • Tags list

  • Earn and spend


  • Exits

  • Ratings

    Science Blogs - Blog Top Sites website monitoring service
  • Archive for the 'Links' Category

    Interesting and relevant links I found.

    Enabling special buttons (keys) on laptops under Linux

    8th May 2008

    Note, that under Gnome I only had to use a single system-wide utility to bind volume buttons to volume control. Under KDE things were a tad tougher.

    First, you may want to look for kmilo (if you don’t have it yet). It has several plugins e.g. for ThinkPad and Vaio laptops, as well as “generic” plugin. I didn’t try this solution, though.

    If you need more than kmilo can offer: keyTouch could help. keyTouch should be good also for non-laptop multimedia keyboards. However, this also wasn’t the solution I used.

    If you want to know how to map your special keys to functions yourself - then read on.
    Read the rest of this entry »

    Share This

    Posted in *nix, Links | 4 Comments »

    Flash video in Drupal (links)

    6th May 2008

    Some things to be aware of when enhancing Drupal site with FLV video playing/conversion features.

    Share This

    Posted in CMS, Drupal, Links, Notepad, Software, Web | 1 Comment »

    Developing reluctant (pessimal) algorithms

    13th April 2008

    If you had some programming experience - read it here. Otherwise ignore, it’s targeted for a narrow group.

    Share This

    Posted in Humour, Links, Programming | No Comments »

    NicEdit

    11th April 2008

    NicEdit - lightweight inline configurable rich-text editor for the web. Can fit where both FCKEditor and TinyMCE are too clunky and monstrous.

    Share This

    Posted in Links, Notepad, Software, Web | 1 Comment »

    AN Hosting affiliate program

    31st March 2008

    I have just joined AN Hosting Affiliate Program - you can tell by the new link in Web Hosting section in the right sidebar, and by the real huge banner on the blog hosting page (so huge actually that it won’t fit completely with smaller resolutions like 1024×768 and less). I do not yet know if this affiliate program is worth the trouble, but I did find good feedback for their hosting on Drupal forums (here and here and search for more), so that really was the initial reason to put the links to them.

    I would be interested in AN Hosting feedback, as I do plan to try their services one day.

    P.S. A Small orange (direct link) also has lots of positive feedback.

    Share This

    Posted in Affiliate programs, Links, Web | No Comments »

    Developing with Drupal: screencasts

    26th March 2008

    drupaldojo.com - at the moment of writing, has 42 video-lessons (screencasts) of developing with Drupal.

    Share This

    Posted in CMS, Drupal, Links, Notepad, Software, Web | No Comments »

    Good techie intro for would-be Drupal developers

    26th March 2008

    Drupal technical introduction
    It’s quite old, but as it describes core functionality, it should be still actual.

    Please comment if you know of any other good high-quality technical Drupal introductions/descriptions.

    Share This

    Posted in CMS, Drupal, Links, Notepad, Software, Web | No Comments »

    SystemRescueCD

    15th March 2008

    Earlier, I wrote about Universal boot CD , which is targeted primarily at the hardware testing/diagnosing.

    If not hardware, but “only” software is malfunctioning - try SystemRescueCD, a Linux-based recovery CD/DVD/Flash stick (it all depends on how you burn/install the downloaded file - manuals and how-to’s are available).

    As always, Disclaimer: I am in no way associated with SystemRescueCD, and gain no profit from this post. Any advice I give is provided AS IS, with no guarantees of fitness to your exact case.

    Share This

    Posted in *nix, Links, Notepad | 3 Comments »

    How to end (an official) letter

    15th March 2008

    Found useful list and discussion of the complimentary closings.

    It’s the “complimentary close” or “complimentary closing” that business writers are wondering about, those phrases that come before the signature in a letter:

    1. Very truly yours,
    2. Respectfully,
    3. Yours truly,
    4. Sincerely yours,
    5. Sincerely,
    6. Best regards,
    7. Regards,
    8. Cordially,
    9. With many thanks,
    10. Warm wishes,

    Share This

    Posted in Links, Notepad | No Comments »

    How to improve MySQL application performance

    6th March 2008

    Juicy presentation, even for seasoned MySQL developers.

    You can also download the PDF of this presentation: Read the rest of this entry »

    Share This

    Posted in Links, Programming, Web | No Comments »

    SQL injection: RIAA example

    16th February 2008

    I know it’s kind of old now, but check this image out:

    RIAA screenshot with some SQL injection code

    Via webplanet.ru - reddit.com.

    Share This

    Posted in Links, Notepad, Programming, Society, Web | No Comments »

    Eco-hosting (green hosting)

    14th February 2008

    Today I learned that eco-hosting (or green hosting) exists not only as a words combination. On one of the “hostings rating” websites there was even a category titled “green hosting”.

    In short: green hosting operates on the principles of minimal ecology harm. E.g., solar energy is used (mostly in the form of photovoltaic panels - PVs), and a bunch of other “green” technologies.

    I expected green hosting to be more expensive than common shared hosting… so I took a look at aiso.net’s hosting plans. Well, at least it doesn’t look 1000%-oversold, as many shared hostings look. For 10$/mo, you get 500MiB web storage, 500MiB email space (who needs it anyway?), and 5GiB traffic/mo. Everything else seems as usual - PHP, MySQL, Perl etc (I was looking at Linux hosting). Not much, but if you can use those 5GiB of traffic in one day - that is, if there are no other stronger limitations such as low CPU - then it’s still good. And - this is the most “basic” plan, I took it only because it’s also the closest to what is widely known in the shared hosting market as “common price”. This isn’t the only green hosting provider out there, I just satisfied my interest and didn’t look for more.

    AISO - see for yourself.

    Share This

    Posted in Links, Web | No Comments »

    Python: passing by value vs passing by reference

    11th February 2008

    Note: this a collection of scraps, describing how values (de)referencing works in Python, and describing when your variable is either a value or a reference. Primary source of knowledge for this post (also here).

    Python passes references-to-objects by value (like Java), and everything in Python is an object. This sounds simple, but then you will notice that some data types seem to exhibit pass-by-value characteristics, while others seem to act like pass-by-reference… what’s the deal?

    It is important to understand mutable and immutable objects. Some objects, like strings, tuples, and numbers, are immutable. Altering them inside a function/method will create a new instance and the original instance outside the function/method is not changed. Other objects, like lists and dictionaries are mutable, which means you can change the object in-place. Therefore, altering an object inside a function/method will also change the original object outside.

    Immutable variables - such as integers [strings, numerics and tuples are immutables] - are passed by value. That is, if your function accepts some integer argument, you are safe assuming that your function won’t be able to modify your integer. Mutable variables - such as dictionaries and lists - are passed by reference, and so if your function accepts mutable argument, it may modify the contents of that mutable variable outside the scope of the function.

    When doing :
    s = “Hello “
    s += “World”
    … you are not modifying the string object bound to s, but creating a new string object and binding it to s.

    If using object’s methods within a called function, variable is considered “passed by reference” - it is modified out of the function’s scope. If using assignment on a mutable object, it is created a-new within the function, and global value isn’t modified.

    When you call a function with an arg, a “local variable” is created, which references the object passed as the argument. (well… an entry with the formal parameter name as key and a reference to the object passed in is created in the ‘local’ dict).

    So, rebinding this local symbol does not impact the binding in the caller’s namespace - because the symbol lives in another namespace.

    *But* - and if the object referenced is mutable of course - modifying the object in the function… well, just modifies the object, because it’s the *same* object that is bound to (’referenced by’, if you prefer) both symbols (the one in the caller’s namespace and the one in the function’s namespace). So yes, the object *is* modified when the function returns.

    Share This

    Posted in Links, Programming, Python | No Comments »

    Statistics of Google HDDs failures

    11th February 2008

    Failure Trends in a Large Disk Drive Population (or here, if that link doesn’t work)

    Worth reading for any IT guy, especially for people dealing with lots of HDDs.
    Also might be interesting for those, who have Gmail with (now) over 6GiB storage… :)

    Share This

    Posted in Hardware, Links | No Comments »

    Convert MySQL database from one encoding/collation into another

    8th February 2008

    Most frequent use: convert database from latin1_swedish to utf8_general_ci.
    Original script found at: MySQL and UTF-8.

    Update: the original script had an error, it would generate queries likes this one (note the bold part):

    ALTER TABLE `links` CHANGE `link_rel` `link_rel` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT NULL;

    This is clearly wrong syntax (and logic). I fixed this by making comparison to NULL strict (with three equal signs instead of two):

    // Does the field default to null, a string, or nothing?
    if ($row['Default'] === NULL)

    Update 2: based on comment by banesto, I modified the script; now it does not require specifying the from_collation, it’s sufficient to specify to_collation (which will be used for all the fields and tables). The modified code is:

    if ($row['Collation'] == ” || $row['Collation'] == $convert_to)
    continue;

    Here’s the script itself: (to copy-paste: first click the “Plain text” header)
    Read the rest of this entry »

    Share This

    Posted in Links, Notepad, PHP, Programming, Web | 28 Comments »

    Fighting plagiarism

    4th February 2008

    Found this one very informative: 6 steps to stop content theft.

    Also: 5 content theft myths, and why they are false.

    And more links:

    Share This

    Posted in Links, Misc, Society, Web | No Comments »

    URI valet: useful online web-page probe tool

    24th December 2007

    URI valet

    Share This

    Posted in Links, Web | No Comments »

    Ultimate boot CD - diagnostic, testing, and recovery utilities collection

    21st December 2007

    Today, using memtest86, system speed test, hddspeed and some other DOS utilities for diagnosing and testing PC hardware, I decided to put together my own simple bootable utility CD disk. But first, I did some searching to find if something similar exists.

    It does exist - Ultimate boot CD. That CD has numerous freeware testing and diagnosing utilities which will help you - if you are up to some good old (read “small fast”) DOS utilities. And not that old, actually - modern hardware is supported.

    The only modification I’ll do to the Ultimate boot CD will be adding freeware Biew bin/hex viewer/editor. Surely, more utils to come - with original size of just 115MB, there’s plenty of room to add extensions. You can even extend the CD image with non-free software, like Partition Magic.

    P.S. To diagnose and fix software problems - have a look at System Rescue CD.

    Share This

    Posted in Hardware, Links, Notepad, Software | 1 Comment »

    CodeCodex: shared online code repository

    10th December 2007

    CodeCodex Wiki.

    Found this one useful when looking for string conversion to uppercase - CodeCodex has it for 10 languages (alas, Ada isn’t among them - but it’s present in tiny pieces here and there, when searching for it at CodeCodex).

    Share This

    Posted in Links, Programming | No Comments »

    Need a computer science paper? Try SCIgen!

    9th December 2007

    Quite an entertaining story:
    SCIgen at wikipedia
    SCIgen tool
    SCIgen blog

    Finally, just a useful resource if you need a shiny name for your brand-new 2.0-beta project: anagram server.

    Share This

    Posted in Humour, Links, Science | No Comments »

     
    Close
    E-mail It