Archive for 'Submitted news'

Two web icons sets from semlabs

SemLabs just released two free iconsets:

The Free Web Design Icon Set is a collection of 310 icons in PNG format.
They are 16×16 pixels in diameter. The set is designed to be used on web projects, but may also be useful for systems icons and for print. This icon pack is free to use in commercial and non-commercial projects,modify and distribute.

and

SEM Labs Web Blog Icon Pack

The SEM Labs Icon Set is a pack of 52 icons in PNG format.

They are 48×48 pixels in diameter. The set is specifically designed for blogs and have an SEO theme. However over the coming months more icons will be
added to it to give them a broader scope.

They are released under the Creative Commons (by) Licence.

Kroppr - v1.2 update

We updated our online cropping script Kroppr, to version v1.2

This version fixes some problems for certain servers configuration:

 - servers that do not allow to write the cropped image into the cache folder, due to a server configuration setting,

 - servers with magic_quotes_gpc set to On.

30 days of mootools 1.2 tutorials

Mootools 1.2 tutorials, covering much of the basics of the library, the bundled plugins and downloadable examples.

capture-1

synergy 2 - redirect your mouse and keyboard the easy way

If you are a web developer you are forced to run multiple operating systems, to check your code and design in as many browsers as possible. Well, the main problem is the IE as it always do strange things….

This can be done using a virtual machine, or multiple computers. The first case can be done using some software like VMware, VirtualBox os VirtualPC.

The second case is when you have more than one computers.

If you are like me, which i have a G4 Mac, and an HP, i think the second solution is better, as for G4 only VirtualPC works, and is in emulated mode, not virtualised, so is way too slow.

Ok, so I setup my G4 in my front, the HP in the left, mouses close, and let’s work. Well, after some time (short time) I managed to mix mouses, type on the HP keyboard wondering why my mac is not working, and so on…so is not good.

After a small search on the internet a found Synergy 2. “Synergy lets you easily share a single mouse and keyboard between multiple computers with different operating systems, each with its own display, without special hardware. It’s intended for users with multiple computers on their desk since each system uses its own monitor(s).”

It is cross-platform so it can run on Os X, windows and linux.

You have to setup a server on one computer, a client on the other, or others, and you will be able to use the main’s computer mouse and keyboard on the other one.

For Os X is a a little hard to do this as you have to configure a file, and run the software form the terminal. In a next post I’ll show how to bring this on your applications folder as any other app, being able to add it to dock or make a link to it on the desktop.

So, after I downloaded the software I put it in my application folder, I downloaded the software for windows on my HP and installed it.

the configuration file is pretty simple, the instructions on the site and on the sample config are very clear, the only thing that need to be said is that, in the config file , on the hostname for os x you have to add a “.local”, so something like “powerbook.local”

below is my config file:

section: screens
mobilegarth:
powerbook.local:
end

section: links
mobilegarth:
right = powerbook.local
powerbook.local:
left = mobilegarth
end

section: aliases

end

section: options
switchDelay = 350
end

mobilegarth is the HP.

after this you need to start the terminal, and run

/Applications/synergy/synergys –config synergy.conf -f

the “-f” will keep the application in front, so you can see what messages it returns.

All this being set, go to windows computer, start the synergy client, put the server name “powerbook” in this case and this should be all.

Moving the mouse on the left side of the screen will trigger the switch , and your mouse and keyboard will work on the other computer, until you come back on the right side this time, to your main computer.

As i said before, in one of the next posts, i will show you how to setup a “shortcut” to run this as any other normal application, without the need of terminal.

Let me know your thoughts.

Lighttpd install perl, mysql support in chrooted jail

Perl is Practical Extraction and Report Language, which is quite famous and used by many web application.

A Perl5 database interface to the MySQL database is provided by libdbd perl mysql shared library.

You can install perl support via mod_fastcgi or mod_cgi.

Following are essential steps to run perl based application in chrooted lighttpd setup along with MySQL

This article is part of securing and running Lighttpd in chrooted jail.<!–more–>

Step #1: Enable mod_cgi

# lighty-enable-mod cgiOutput:

Available modules: auth cgi cml fastcgi proxy simple-vhost ssi ssl trigger-b4-dl userdir
Already enabled modules:
Enabling cgi: ok
Run /etc/init.d/lighttpd force-reload to enable changes

Now modify the file /etc/lighttpd/conf-enabled/10-cgi.conf file as per our chrooted jail setup:
# cp /etc/lighttpd/conf-enabled/10-cgi.conf /root/
# vi /etc/lighttpd/conf-enabled/10-cgi.conf
Modify the file as follows:
server.modules += ( “mod_cgi” )
alias.url += ( “/cgi-bin/” => “/home/lighttpd/cgi-bin/” )
cgi.assign = (
“.pl” => “/usr/bin/perl”,
)

Save and close the file.

Step #2: Prepare the file system for perl

# mkdir /webroot/usr/share -p
# mkdir /webroot/usr/lib -p
# mkdir /webroot/home/lighttpd/cgi-bin/ -p
# chown www-data:www-data /webroot/home/lighttpd/cgi-bin/

Step #3: Put Perl in the jail

Copy /usr/bin/perl to /webroot/usr/bin directory:# cp /usr/bin/perl /webroot/usr/bin

Install shared object/liberires used by perl:# /bin/l2chroot /usr/bin/perl

Now copy all perl files and modules stored in /usr directory:
# cp -avr /usr/share/perl /webroot/usr/share
# cp -avr /usr/share/perl5 /webroot/usr/share
# cp -avr /usr/lib/perl /webroot/usr/lib
# cp -avr /usr/lib/perl5 /webroot/usr/lib

Step #4: Put Perl MySQL DBD shared libraries in the jail

Copy shared libraries needed to load perl mysql.so (which is stored at /webroot/usr/lib/perl5/auto/DBD/mysql/mysql.so). Type the following command:
# /bin/l2chroot /usr/lib/perl5/auto/DBD/mysql/mysql.so

Please note that you have just enabled perl mysql support. However /usr/lib/perl5/ directory contains other shared object used by perl. You need to enable them to use rest of Perl features.

Step #5: Restart the lighttpd

# /etc/init.d/lighttpd restart

Submit yours

Is official

You can now submit news, articles, tutorials or whatever is related to webdesign and webdevelopment.

You can do this on Submit news page.

Anyway, your post will be moderated before being displayed, so please submit only relevant news.
Promoting your own articles is allowed and welcomed but the quality of the posts will be accepted only if we consider to.

Thank you

News submit

Starting soon you will be able to submit your own news to this webdesign and webdevelopment resources blog

Please submit here news or articles related to webdevelopment or webdesign.

Anyway, your post will be moderated before being displayed, so please submit only relevant news.
Promoting your own articles is allowed and welcomed but the quality of the posts will be accepted only if we consider to.

Stay tuned