Skip to content


jTrans – Google Translator Live Bookmarklet

Did you ever want to translate ajax websites or session dependent pages but copy pasting text was too hard? Here is the solution.

Drag the jTrans image below to your bookmarks, go to a non English website and click the bookmark. Page should be translated in a few seconds.

jTrans

Drag this image to bookmarks

TODO:

  • Some method of  choosing different target language
  • Translating alt and title attributes

Known bugs:

  • Translating buttons doesn’t work in Firefox
  • Lame function for parsing special characters

Bug reports and suggestions are much appreciated. Source code can be found here.

PS. First paragraph was inspired by Billy Mays.

Reblog this post [with Zemanta]

Posted in digital world.

Tagged with , , , , , .


The Big Bang Theory Simple Simulation

If you want to learn anything about the big bang theory, talk to the scientist. But if you want to have some fun, you can try my simple program.

Here’s how it works: It starts starts the “explosion” and than engages gravity(which is just a theory btw).
In each step the program calculates gravitational acceleration for every object in the “universe” so don’t be surprised if you computer is having a hard time dealing with it(suggestions for optimization are much appreciated).

For running the program you’ll need java 1.6 installed on your computer. If simple double click won’t work, you can try run it with the command “java -jar filename.jar” from the console(if it still wont work, you can try building it from the source or post a comment).
If you want to adjust the settings use number keys or arrow keys for moving around.

Download new optimized version: runnable file 0.1b or source code 0.1b

(Older version: runnable file 0.1a or source 0.1a.)

Are you ready for some fine-tuning? ;)

Reblog this post [with Zemanta]

Posted in digital world, science world.

Tagged with , , , , .


The Fastest and the Slowest Programming Language

What can you do when you are to tired to do anything useful but the level of caffeine in your blood is to high for sleeping?

Watching a TV could be a good choice, but who could resist writing a simple Fibonacci recursion in every programming language that you could think of and measuring the calculation time? I couldn’t.

So here are the results of my very scientific study for Fibonacci 33

  1. c
    gcc4.4.1            0.153s
  2. go
    8g                       0.189s
  3. java
    1.6.0_15           0.267s
  4. scala
    2.7.5                  0.324s
  5. javascript
    node.js V8        0.346s
  6. haskell
    ghc6.10.4         1.675s
  7. lisp
    clisp2.44.1       1.888s
  8. ruby
    1.8:                     22.614s
    1.91:                   2.757s
  9. python
    2.6.4:                 4.401s
    3.1.1:                  5.545s
    cxfreeze4.0.1   5.704s
  10. php
    5.2.10                10.341s
  11. prolog
    sicstus4.0.2    >10m (didn’t have patience to wait)
    swi5.6.64        Out of local stack

I have some more ideas, but caffeine level is dropping fast.

Reblog this post [with Zemanta]

Posted in digital world, science world.

Tagged with , , , , , , , , , , .


My 4chan Image Archive

17In past weeks I archived a nice number of 4chan threads(about 70 threads containing over 5000 pictures) so I decided to share it. Feel free to browse what ever you like, but be gentle with server because it’s not the fastest one … in the world.

Warning: This is 4chan archive so it could contain gross, nude, pornographic, offensive and other unpleasant material. Use it at your own risk.

4chan image archive

18+ only!

Reblog this post [with Zemanta]

Posted in digital world, social world.

Tagged with , .


4chan image archiver

Sometimes great ideas can be born even while browsing 4chan, but this php app really isn’t one of them.

It’s just quite useful tool for archiving images.

What can it do? Not much really…

  • archive images from 4chan or 4chanarchives threadsarchive
  • list your archive

showarchive

  • manage archive

managearchive

  • and of course browse archive

browse

All you need for running this over 9000 script is server with php support.

To install it just copy files from zip file to your server, change password in “login.php” file, make “imgtemp” folder writable, open page in browser and enjoy.

Be aware that this is a very early version so it can be quite buggy. Post bug reports and feature requests in comments.

Download: 4chan image archiver 0.61 Any Donations will be appreciated

0.61 Follow fixed when using proxy.

0.6 More logical login. Following thread (JS update every 30 seconds) added. Red checkbox if files in folder aren’t renamed. Random is new default index.

0.5 UI bugs fixed. Everything is now sorted by name. Dropdown menu in folder browser.

0.4 Header and footer are now in separate files. More visible error messages.  Absolutely consistent menus. Files and folders are now sorted by name.

0.3 Deleting images while logged in feature added. More consistent menus.

0.2 Display random image feature added.

0.1.2 Bugfix in archiver: Wrong url shown when files are uploaded.

0.1.1: Bugfix in archive manager: Duplicated files checking bug, change description bug.

Reblog this post [with Zemanta]

Posted in digital world, social world.

Tagged with , , .


Draw’N'Share

My new web application[temporarily offline] for drawing simple images and sharing them with others.

drawnshare

Spread the word :D

Posted in digital world.


WordPress Plugin – Hand Draw

HamsWorld is presenting alpha version of new Wordpress plugin called Hand Draw. For now it’s quite basic, but I’m planing to add colors, pen thickness, fill tool, resizable panel etc.

If you want demo, try Draw’N'Share.

handdraw

Requirements:

  • Wordpress 2.8 (It may work on 2.7 too).
  • PHP 5 with gd plugin.

Installation:

  • Extract HandDraw to your plugins directory.
  • Load your plugins page from the WordPress admin section and click “Activate” to enable the Hand Draw plugin.
  • Make sure upload folder is set and writable.

Usage:

  • Go to post editor (add new post or edit post).
  • Click on “pen” icon in “Upload/Insert” menu.
  • Draw image, click “Create image” and if you like it, click on “Add to post”.
  • If you want to clear panel, double click on it.
  • Save your post and …

Reblog this post [with Zemanta]

Posted in digital world.

Tagged with , , .


ENZ – My Own Zemanta

Image representing Zemanta as depicted in Crun...
Image via CrunchBase

What is Zemanta?

Zemanta is a revolutionary new platform for accelerating on-line content production for any web user. Any user-created text (a blog post, article or web page) is directly “read” by Zemanta, which recognizes all contextual content. Zemanta then combs the web for the most relevant images, smart links, keywords and text, instantly serving these results to the user to enrich and inform their content. What’s more, Zemanta can be deployed on all major content publishing platforms and web browsers through a simple plug-in.

ENZ is very similar. It reads content, tries to find interesting keywords then suggests links and images. It has no smart technology behind, only google parser. Is it better then zemanta? No. But it is quite good for one person’s hobby project.

For now ENZ is only demo, but I’m planing to make a Wordpress plugin.

You can try it out, or download source code.

Reblog this post [with Zemanta]

Posted in digital world, science world.

Tagged with , , , .


Wordpress plugin: Banner Generator 0.6.3

New version of Banner Generator plugin is out.

Wordpress plugin page.

The idea of the plugin is very simple. It generates banner with your blog name and last posts title.

Default style

Default style

Style is completely customizable. You can change text font, size, color and position, background color, border and round corners or use your own background image(bg.png). Now you can even use your own logo instead of a blog title.

My banner

My banner

New: More options. New default style. A bit nicer source code.


Installation:

  • Make sure there is “gd” plugin for php on your server
  • Download Banner Generator
  • Extract the zipped file to your plugins directory
  • Make shure your upload folder is set and writable
  • Load your plugins page from the WordPress admin section and click “Activate” to enable the bGen plugin
  • Edit bGen settings under “Settings” menu
  • Enjoy
Reblog this post [with Zemanta]

Posted in digital world.

Tagged with , , , , , , .


Pa smo ga dočakali, Google Chrome za Linux

Chromium

Image via Wikipedia

Po dolgih mesecih pričakovanj je končno prišla v javnost še ne čisto dokončana verzija googlovega spletnega brskalnika Chrome. Prvi vtisi so fantastični. Zažene se skoraj v trenutku, strani nalaga občutno hitreje kot firefox, poraba pomnilnika pa je primerljiva.

Njavečja razlika se pričakovano pozna pri izvajanju javascript kode.

SunSpider test na moji mašini (ubuntu 9.04, C2D 1.8GHz, 2G rama): Firefox: 4.4s; Chrome: 0.93s.

Celoten test (firefox levo, chrome desno):

ffvc

Žal ima trenutna različica še kar nekaj pomankljivosti. Med drugim ne zna predvajati flash vsebin, tako da je resnično primerna le za testiranje.

Verjetno že vsi nestrpno pričakujemo končno verzijo, ki naj bi izšla v jeseni.

screenshot

By the way, izšla je tudi različica za Mac OS X.

Update. Se peacekeeper test.

ffoc

Reblog this post [with Zemanta]

Posted in digital world.

Tagged with , , , .