Category Archives: Uncategorized

Simple text replacement using javascript

Hi,

just a quick code snippet to filter any text inserted by the user, useful for only numbers (and symbols) fields like for the user phone in a form.

function checkLetters(elem){
var val=elem.value;
elem.value=val.replace(/[a-z]+/gi,”");
}

you can add this function to any input like this:

onkeypress=”checkLetters(this);”

a very basic and simple code example, but very useful some times :)

Regards,

Shadow.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Related Post

Caine 2.0 Review

caine 2.0 desktop loading

caine 2.0 desktop loading

Hi,

recently i entered into distrowatch.com and i found this distribution, mainly focused in forensic computer and i need to say that is a zone in IT that always interested me, so i give it a shot to see what this distribution have to offer.

click on continue reading to see the full review :)

Continue reading

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Related Post

Open Source Web E-learning & Conference Platform: Big Blue Button

Hi,

some months ago, working over a project and designing the architecture and technical spects, we got a moment where we needed to get or build a streaming platform.  the problem was, that the streaming platform will needed to have a Q&A module, a way to share the desktop or ppt and other features. then searching in the web, i found Big Blue Button.

this open source project aims to build a free E-learning and Conference platform, from their web can be read as:

Our vision is that starting a web conference should be as easy as clicking a single metaphorical big blue button. As an open source project, we believe it should be easy for others to embrace and extend. And while web conferencing means many things to many people — our focus is to make the best web conferencing system for distance education.

the software is a conjunction of different technologies as java, flash, red5 etc.. to provide the streaming of the content to the users, is a big project, stable for now that really make the work. the only problem is that is not as-easy to install and configure than use it. for use it you just need a flash-compatible browser, but at the installation part, you need a dedicated server, linux-based, and follow a lot of configurations and installation process. i think is not for all the people but is a perfect project to customize /integrate in your own web application. also, the license of BBB is LGPL so can be integrated in any closed source project.

if you want, can try a live demo here

i hope it help you in some way :D

Regards,

Shadow.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Related Post

one file DB manager for mysql & postgreSQL: DBKiss

Hi,

2 days ago my boss was talking with a developer, and he recommended to change our phpmyadmin and use a one file DB manager called DBKiss

so, i installed it (what only take to extract from the compressed file) and tried it. the interface of course is not “nice” as the phpmyadmin but is functional, you have almost all the same functions except  the one of privileges as phpmyadmin, but you can execute sql queries, so if you know what you are doing, can be done manually.

the advantages of use DBKiss from phpmyadmin is the speed, is a lot more faster, even can make dumps of big SQL databases, something that phpmyadmin sometimes fails. also i think is more secure against attacks, like is less used and depends only from 1 file (anyway, if you have a DB manager that can be accessed from the web, always need to be in a protected directory)

the only thing i feel a little annoying is that force you to write the DB that you want to access to login. i usually login as root in the DB as i need to manage several of them, so i going to need to have the name of some at hand for the first login :)

i’d recommend you give it a try :) you can download it from here: http://www.gosu.pl/dbkiss/

Regards,

Shadow.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Related Post

Secure your .htaccess password protected directory

Hi,

some days ago also passed another strange stuff in the server, when you tried to access to a password protected directory if you entered the correct password + any other string it let you enter. i was a little clueless about this so i asked on serverFault:

http://serverfault.com/questions/180256/mod-auth-wrong-password-authentication

so as the first answer say’s when you generate a user with the htpasswd command, add the -m or -s (i prefer the -s as is SHA encryption) flag to avoid this problem.

is nice to learn something new every day :)

Regards,

Shadow.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Related Post

What to do when a filesystem enter in a read-mode only

Hi,

this happened to me 2 days ago, so i just wanted to share the experience :)

What is this and why it happens?

you are working on your server, and for some reason, when you try to access to your website, the php start to answer in a weird manner, as the sessions are not saved, or do not answer to the post request. then, as a normal server admin, you try to restart the httpd process, and then it fails and tells you that the system is on read-only mode.

i need to say that when this happen, is something really bad, why mean that that there is a corruption of data on the HD and for that the system to prevent more data corruption, lock itself on read-only mode. this usually happen why the HD are corrupted and need to be changed or some wrong operation have corrupted the data on them.

Ok, we are screw up, so now, what we can do?

if you have a active ssh connection, you are lucky, now is the time to backup any (or all) essential files. i suppose that you have a backup of the files, DB and configuration files, but if not, now is the time to do it. i’ll recommend to use a web storage as amazon S3, cheap and reliable in this cases :) . after the backup, is time to face the reality, so umount all the HD and run a fsck. when finish, then reboot. is 90% possible that the server didn’t come back, and you going to need to install and configure everything again.

How i can prevent this?

as far i know you can’t prevent this really, but you can minimize the downtime to minimum implementing a RAID 1 in your servers. in this way, both disks going to have a exact copy, so when one fails, automatically the second one will me mounted. as optional, there are services available to get a email/sms  alerts in this cases (i think also nagios support this type of monitoring). anyway, even that you have a RAID 1, make periodical backups outside your servers, is always a second guaranteed for the data lost and corruption (again, amazon S3 seems to be the best option).

i hope this could help you in some way :D

Regards,

Shadow.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Related Post

Small game dev indie/groups/companies in argentina

Hi,

the game development indie/groups/companies appears and disappear every day, and in argentina are just a few in this business. just wanted to make a list and little review of the more relevant and still living projects, if you are looking for someone to make your game, or just want to contact them. also i know there are a lots of companies that make outsourcing, but i just wanted to list the small ones, to give them a little more of web presence.

if you have any suggestion for this list (add/change/delete any entry) just send me a email (david [AT] y-developments.info ) or make me a comment here.

be aware that the description (at least for the indies) are write  in a funny way :D

indie people:

Tyranus

One of the promises in the indie world (?). he usually make that strange indie games, but at the same time, suitable for all the people, experimenting with the gameplay and the user experience. have improved her art skills in the last year, but anyway all his work have the correct art for the project. he usually work on flash, using flixel, and making pixel art. he is working now in a big and secret project that could change the world (ok maybe i’m exaggerating, but will be awesome anyway :P )

web: http://www.tyranus.com.ar/

contact: alejandro.adrian.iglesias[AT]gmail.com

2bam (nitram_cero)

The most ugly, crazy, and beared men in the argentinian indie scene. anyway, even with all his defects, is a good guy, with crazy ideas and *usually* know what he is doing. from a personal opinion, i’m amazed from his knowledge, he knows flash,c/c++,asm (?) and how to cook the rice xD. right now is working for a company making games (i’m not sure if a can say the name, sorry :P ) but he will be always a indie, making those flash and pixelated games. his last work was a entry for the last CODEAR, you can see it here. he also made a flixel map editor called flan, that you can see here

web: http://www.2bam.com/

contact: twobananasandmilk[AT]gmail.com

Daniel Bermegui

The indie Super Star, some people say that is a legend, other people say that have seen hus half-hair head (the urban myths says that he lost half of the hair making a art game called today i die ) i don’t  know him too much, the last time i have seen some comics drawn by him, that i think still needs work, dunno what is he doing now, usually his project are a secret at least for me :P )

web: http://www.ludomancy.com/

contact: daniel[AT]ludomancy.com

Martin Gonzalez

martin is….. martin :P great experience making games, one of the founders of DarkSpell games, and creator WAK. he also developed  several commercial games in companies as joju games, sabarasa etc.. right now is working in vostu and making a top down killing zombies games, i hope we could see it soon :D

web: i think don’t have one :P

Puelo Games

My old friend, puelo, he also make games ! he started making clones and is still doing it :P but is making some original project that we hope could see soon :D right now is working in a innovative TD type game, and making snowboard in his 5 star resort in rio negro (?) (yes, he is a eXtreme dev :P )

web http://www.puelogames.com.ar/

contact puelogames[AT]gmail.com

il Mare Games

another one that i don’t know too much, anyway his work have improved a lot from their first games. dunno what is doing now.

web http://ilmaregames.com.ar/

Small groups and companies

Heavy Boat

a small company formed by 2 experienced professionals in the game industry, david roguin (another founder of DarkSpell games, that worked also in tons of games in companies as QB9) and  Juan (founder of 9a18 studio, that also worked in QB9) and also a great artist called leo, who really make amazing art pieces. they are working and making project for big and important companies, and also producing their own original projects, if you are looking for a company that could convert your idea into a reality, this is one of the best choices :) . also, if you are developer, is a MUST to read their devlog.

web: http://heavyboat.com/

contact: contact[AT]heavyboat.com

Killabunnies

a group of 3 people that live and work on santa fe, away from the capital of the country, but producing amazing and innovative stuff. the team is composed by Luciano Vairoli, leader and game designer, with a career developing games from the stone age (and i’m being serious here). he made games for 486 DX, and consoles as atari. the other 2 members are a as3 dev (mariano obeid) and a artist (andres miranda). his biggest hit is a puzzle game called bubba time a game that mix the control of the time as braid with salomon key. a great and polished product indeed. they are available to make projects, so, give him a shout :)

web http://www.killabunnies.com.ar/

contact info[AT]killabunnies.com.ar

Jengibre

a game dev company managed by Andres Martinez Quijano,  they focus to outsource and make advergames. they made great games for famous companies and sites as Taringa! and Fox. if you look for quality advergames, this is a good option.

web: http://jengibre.com.ar/

contact: info[AT]jengibre.com.ar

South Winds Games

SWG is a company focused to produce family casual games and managed by Juan Pablo Ferreyra. they have 3 successful games that you can buy here

web http://www.southwindsgames.com/

contact contact[AT]southwindsgames.com

and that’s all buddies, i hope this could help you in some way, if you want to be in this list, just send me a email or write a comment in this post :D

PD: i’d like that ipsilon development could be there, but we are not making games at this moment, and i dunno when we could make them again :(

Regards,

Shadow.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Related Post

How to set up a backup system with R3sync and amazon S3

Hi,

i don’t like to write things that you can find on the web, but i think something like this is very useful for those server admins :D

you can find the complete process of how to do it here and here remember that in centOS system you need to install this dependencies:

yum install curl*
yum install libxml2*

yum install fuse-devel

and to get your access key, you can go here

i hope it help you in some way :)

Regards,

Shadow.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Related Post

Update web directory after a SVN commit: the final solution

Hi,

i wrote about this in the past (you can see some post at the end) but i’m writing again as i found the perfect solution to make a SVN update after a commit to a web directory.

the difference between the old and this new one, is that the old make a svn update in all the working copy, something like that is not a problem if you have some files, but when you have like 100K files, it takes too much time and resources. so the idea was to get a list of changed directories after each commit and run a svn update on each directory.

for this i used some bash scripting and a C program (the C program is needed when the files do not belong to the user who execute the post-commit script).

in the post-commit script put something like this:

svnlook dirs-changed /path/to/your/repository > /tmp/dirschanged

while read line
do
/path/to/C/Binary/updateFolder $line
done < “/tmp/dirschanged”

and save it. remember that after the svnlook (that is what return the list of directories that has been modified)  and before the while, you can use sed to change any path of your repository and convert it into a valid full path in your web directory.

then, create a .c file and paste this code to make the binary:

#include <stddef.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
int main(int argc, char *argv[])
{

int i;
for (i = 1; i < argc; i++)  /* Skip argv[0] (program name). */
{

printf(“making update to  %s \n”,argv[i]);
execl(“/usr/bin/svn”, “svn”, “update”,argv[i],
(const char *) NULL);
}
exit(0);

}

compile and set a chmod +s, and is done :D . the binary will accept any amount of arguments as paths to run the svn update, anyway i’ll recomend to make 1 at time, so you have more control of it.

i know that this code could be improved, maybe using less bash scripting and more C coding, but i’m not good as before in C, so for me was more easy to make the loop and event the replacements with sed in the bash scripts.

i hope this help you in some way

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Related Post

Nook Wifi ebook reader review

nook image 01

Nook Wifi turned off

Hi,

Some days ago I got a Nook Wifi eBook reader, so I’m going to make a review of it, for all of you who may be thinking of buying an eBook reader and still are not sure what to buy. So, click “continue reading” to see the complete review :D (it is a bit long :P )

Continue reading

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Related Post