Andrei Clinciu
- 2015-12-16T15:10:00Z
- 1 min to read
So, you need to simply share something with someone on the same network without going through facebook or anyother chat application.
Use a simple HTTP server! The examples below are meant for Linux users, I'm sure you can use them on Windows aswell.
For python you can use
python -m SimpleHTTPServer 8000
If you have PHP installed
php -S localhost:8000
A node.js server
sudo npm install http-server -g
http-server
For TCL you can use tanzer, tclhttp but I haven't been able to find a oneliner so I'll exclude this untill later.
read more
Andrei Clinciu
- 2014-09-18T14:15:00Z
- 1 min to read
read more
Andrei Clinciu
- 2014-09-07T09:15:00Z
- 2 min to read
So I bought a new SSD the other day. After reading about SSD issues with SWAP partitions i decided to investigate further.
I found out you can use something called zram.
The zram module creates RAM based block devices named /dev/zram<id>(<id> = 0, 1, ...). Pages written to these disks are compressed and storedin memory itself. These disks allow very fast I/O and compression providesgood amounts of memory savings.
Zram actually creates a loopback device which is stored in ram. It can be used for SWAP (vritual memory partitions); Storing cache files for web servers; storing static files; and many other things!
read more
Andrei Clinciu
- 2014-05-14T15:14:00Z
- 1 min to read
read more
Andrei Clinciu
- 2013-05-23T21:14:00Z
- 1 min to read
Sometimes you might want to convert ebooks from one format to the other.
Either because your ebook works better with a format or you want to print them to a certain size with margins.. etc. For example Nook has epub support for searching words in dictionary, while PDF doesn't work well.. sometimes I might convert a book to get the extra features.
read more
Andrei Clinciu
- 2012-10-25T22:16:00Z
- 2 min to read
What?
For the project and source code see Yahoo Messenger Bot
Yes, there are a lot of bots out there for MSN messenger but I needed to have one that I could program for Yahoo Messenger.
While searching the internet for anything interesting I found many different projects that I thought were cool. However most of the only worked with older versions of the Yahoo messenger protocol that changes quite often. This renders anything written for an anterior version useless.
read more
Andrei Clinciu
- 2012-08-15T18:18:00Z
- 2 min to read
This is a small snippet I've written on a Friday afternoon. It's only 80 lines.
I wanted a way to put all my PDF's or WORD/Open Office documents into a database and search for a pattern of text within them all, to know exactly in which document(s) the information I required resides.
This way I learned how to use full text search in SQlite. It's not that hard once you grasp the theory.
read more
Andrei Clinciu
- 2012-03-04T13:14:00Z
- 1 min to read
So this is an example when doing some research before you start coding some automation pays off.
Of course I can write my own FTP crawler in Tcl!
But why when it's easier to copy a whole FTP server recursively in just 2 lines!
First install FTPfs (Debian Linux distro assumed)
sudo apt-get install curlftpfs
read more