Posted in Programming by Mr. Novocain on August 6, 2010 at 22:05

WPUniquePost – WordPress Translator Unique Content Plugin

Check out Cheap PHP + MySQL Ebook!.

Download

Description
Translates posts automatically when posted between a set of languages using Google Translate. Uses GTranslate class by Jose da Silva.
The purpose of the translation plugin is ofcourse to generate more unique content.

Installation
For instructions, see this page on WP.org

Usage
The plugin should be pretty self-explanatory. After installation, settings can be found under Plugins > UniquePost

Download

Incoming search terms for the article:

 
 
Posted in Programming by Mr. Novocain on August 5, 2010 at 22:13

fakeWindows

Hey! You should read Simple PHP - Learn Php In 17 Hours.

Copies entire screenbuffer to a memorybuffer, then draws the buffer to a window form which has ontop property.

Hence user has a ‘fake’ Windows showing, an image that captures all their input without giving any responce.

A screenshot would be silly.

(more…)

Incoming search terms for the article:

 
 
Posted in Programming by Mr. Novocain on at 17:12

mp3finder

This might interest you: A Quick And Easy Ebook That Introduces Readers To Computer Programming In A Jargon Free, Easy To Understand Way.

Download

About
Searches through all files in a directory and finds which are MP3-files then moves them to selected folder.

This becomes useful when pointed to the cache-folder of your web browser, for finding MP3′s you have been listening to online using various flash players (llike Grooveshark for example)

This is done by reading the header of each file, a MP3-file starts with “ID3″ (hex 49 44 33).

Instructions

  • Start mp3finder.exe (if using Vista/Windows 7, right-click and “Run as administrator”)
  • Click “in directory” or fill the textbox next to it with the path to read from
  • Click “out directory” or fill the textbox next to it with the path to save to
  • Click “Start”!
  • Just wait.. it can take some minutes, depending on size and number of files
  • (more…)

     
     
    Posted in Debugging,Programming by Mr. Novocain on at 11:09

    Simple XOR encryption and nibble switch

    Are you interested in Beginning Programming For Dummies?

    Just to make it a bit confusing.

    When encrypting, first xor and then swap the nibbles.
    When decrypting, first swap the nibbles and then xor.

    How it works
    Say we have string “AXE” (hex 41 58 45)
    We start with A.

    A = 0×41 = 65 = 0100 0001

    In this example code our key is 0x7A
    z = 0x7A = 122 = 0111 1010

    'A' XOR 0x45 = 59

    First we XOR it..
    0x41 = 0100 0001
    0x7A = 0111 1010
    ----------------
    X OR = 0011 1011

    And then we swap the nibbles by pushing both ways..
    a = a >> 4
    a = 0000 0011

    c = c << 4
    c = 1011 0000

    a|c = 1011 0011

    So ‘A’ becomes 0xB3 (179).
    ‘X’ becomes 0×22 (34)
    and ‘E’ becomes 0xF3 (243)

    So now we have B3 22 F3 instead of 41 58 45 ;)

    To decrypt, just do the opposite. Swap the nibbles and then XOR by 0x7A

    Source code

    1. class PacketSecurity
    2. {
    3.     // simple xor cipher
    4.     private byte cipher(byte c)
    5.     {
    6.         c ^= 0x7A; // 122 is ‘key’, change to anything
    7.         return c;
    8.     }
    9.  
    10.     // nibble swap
    11.     private byte swap(byte c)
    12.     {
    13.         byte a = (byte)(c >> 4); // add 4 0′s before c so we get high nibble as low
    14.         c = (byte)(c << 4); // add 4 0′s after c so we get low nibble as high
    15.         return (byte)(a|c); // use OR to add them together
    16.     }
    17.  
    18.     public byte[] encrypt(string s)
    19.     {
    20.         byte[] b = new byte[s.Length];
    21.  
    22.         for(int i = 0; i < s.Length; i++)
    23.         {
    24.             b[i] = cipher((byte)s[i]);
    25.             b[i] = swap(b[i]);
    26.         }
    27.  
    28.         return b;
    29.     }
    30.  
    31.     public string decrypt(byte[] b)
    32.     {
    33.         string s = "";
    34.  
    35.         for (int i = 0; i < b.Length; i++)
    36.         {
    37.             b[i] = swap(b[i]);
    38.             s += cipher(b[i]);
    39.         }
    40.  
    41.         return s;
    42.     }
    43. }

    Incoming search terms for the article:

     
     
    Posted in Programming by Mr. Novocain on at 07:15

    chanSaver

    Are you interested in PHP and MySQL Web Development (4th Edition)?

    Download

    Save images from your favorite chan imageboards.
    Tested and working on 4chan and 2chan.

    Just enter thread URL and it will create a directory with the name of that thread, then start leeching all of the images.

    (more…)

    Incoming search terms for the article: