Programming/Architecture
Posted Fri, 2008-09-05 13:51 by geekwisdom
perl -wne'while(/[\w\.\-]+@[\w\.\-]+\w+/g){print "$&\n"}' BigFileContainingEmails.txt | sort -u > output.txt
Posted Sun, 2007-10-28 15:01 by geekwisdom
I'm using PostgreSQL for my data warehouse. I needed a calendar table for doing joins and a quick way to populate it. So I created my calendar table with:
CREATE TABLE "CALENDAR" (
"YYYYMMDD" date NOT NULL
);
Then I populated it with the following SQL:
INSERT INTO "CALENDAR" ("YYYYMMDD") select to_date('20000101', 'YYYYMMDD') + s.a as dates from generate_series(0,36524,1) as s(a);
This quickly puts records into the CALENDAR table for every day starting with 1/1/2000 and ending with 12/31/2099.
Posted Wed, 2007-05-30 11:10 by geekwisdom
I hate form spam. Whether the form is a contact form, a survey, or something else spamming can make life a pain. SANS has an interesting piece on techniques that can be used to reduce or prevent form spam. In my opinion the best solution is the one that has the least impact on legitimate users, is easy to implement, can be implemented in numerous ways, and has the highest negative impact on spammers. That's why I like the idea of including a form field that is required to be empty. To make it easier on legitimate users the field can be hidden using CSS. This way legitimate users aren't bothered with it, yet spambots are compelled to fill it in.
Posted Tue, 2006-08-01 08:37 by hemalkotak
Hey , this is new to here
pl. post very new interesting points or newly explored things here
See u soon....
Posted Tue, 2006-05-23 13:56 by kernux
Kernux is a fully kernel-mode http-daemon for Linux. Currently Kernux is in it's developing stage. Similiar developments in the same area were khttpd by Arjan van de van and Tux web-server by Ingo Molnar. Khttpd was included in the linux testing kernel 2.5 by Linus Torvalds. But it was actually not in kernel-mode of operation. Also it handled dynamic requests which is assumed to be insecure for the server OS by the Linux kernel developers. Tux is another implementation of kernel mode http-daemon, being developed by RedHat. The developer is Ingo Molnar, the creator of O(n) scheduler, which control the procsses from Linux kernel version 7.2 onwards.
Posted Fri, 2006-05-19 13:34 by jsloey
How do you insure your users passwords meet required standards?
For a front end HTML solution to strong password checking see
Steve's Javascript example.
On the Java server side or from the command line take a look at
PasswordCheck. This code extends Steve's script onto the server side allowing pre-defined rules to determine pass or fail strength checking before the user's password is stored to the database, LDAP or other directory server. Open source licensed.
Posted Tue, 2006-01-17 14:23 by geekwisdom
In the article
Event-driven services in SOA Jeff Hanson provides a helpful overview of how to use
Mule to construct event-driven services in an SOA. We are investigating the use of Mule and
ActiveMQ as foundational components of our messaging framework for our identity management project at my day job.