An extremely short article about how to avoid pitfalls that will get you hacked. I've been hacked, so I kind of know this from experience.
I want to get one of these.
Cisco Catalyst 2940 Series 8+1 WS-C2940-8TT-S 10/100 +1000 Port Managed Switch
It's similar to the little Netgear GS108T managed switch, but with slower ports. For most things that involve the internet, that won't matter. It's main advantages would be the fact there's no power adapter cube - the power supply is in the case. IOS is also useful, sometimes. I find it's a pain in the butt, but you can record your configuration into a human-readable text file, which is important to some people.
I was feeling like crap, so after taking the day off and taking a nap, I spent several hours learning Scrapy. Scrapy is a pretty awesome website scraper. This example logs into a website, extracts some data, and stores it locally.
Not sure where to publish this at this time, so I'm putting it here. This is an addition to comment_latest.inc that will push comments into a table. The original code (still in use) alters an HTML table. The old code is surprisingly robust after all these years.
This new code doesn't do anything fancy. It just takes the same data and inserts it into a table. Later, it can be transformed into an RSS feed or used in other ways. My plan is to use it to make a JSON feed of comments.
This article is being rewritten. If you want the latest, contact johnk at this domain.
The original was written: 2004-11-18 03:16:46 -0700.
Here's a bit of the article:
Dang, but it took me forever to learn CSS. Maybe I should have used a book. Here, I'm going to share with you the hard-found knowledge, presented using technical programmer jargon. (Revised in 2014.)
What is Cascading Style Sheets (CSS)? The typical answer is that it's a way to separate the way a page looks from the the underlying HTML, which describes the structure of the document.
I've been working on this email layout hack, and started to build it from content, and came to the inevitable conclusion that email and web are two different media.
It works. Haven't bought a graphics card since the mid 1990s, but did this because Gnome 3 feels a lot smoother with some extra cycles and memory. All the eyecandy effects now seem to run at around 20 fps, and the colors are nicer. Before, they were more like 10 fps and jumpy. This shows up in lspci as VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Caicos [Radeon HD 6450/7450/8450]. Seems to be a bit of a power hog, but it doesn't use a fan, so it's not going to burn too much coal.
This snippet of code can be modified and used to change the stylesheet on your page. I set it up to work against a layout extracted from Salsa, but it should work on generic pages. It's good for demos, discussions about a layout, trying different colors, etc.
I'm working on this at work - using CSS to alter Salsa's rigid layouts. :/ Yeah, it's here because I wasn't in on the issue of building backlinks.
This is yet another sendmail wrapper to help detect webmail scripts that might be spamming. It's designed for the qmail with the QMAILQUEUE path, and the qmail-qfilter filter framework.
This is one of those "why bother with an external library" moments. Mostly copied from MDN.
viudata created a Schelling Segregation Simulator in processing, and added a third race to it.
Fire up Linux. I used Ubuntu, but Debian should be similar. Ubuntu comes stock with rsyslogd. It's almost ready to go, except that it doesn't have ports open to accept rsyslog messages.
A while back, I made a little program called TPCalc to do one of my favorite mundane activities, which is to determine the best price for toilet paper at
LastPass is a password management add-on for web browsers and mobile phones.