Here is a simple quick fix for having to rename a lot of files in a directory with bash.
Saturday, October 27, 2007
Simple and Quick Bash command for renaming files.
Here is a simple quick fix for having to rename a lot of files in a directory with bash.
Some cool C#/.NET links related to GC stuff.
http://blogs.msdn.com/shawnhar/archive/2006/09/06/743437.aspx
http://blogs.msdn.com/shawnhar/archive/2007/07/02/twin-paths-to-garbage-collector-nirvana.aspx
http://nick.gravelyn.com/code/
http://blogs.msdn.com/shawnhar/archive/2007/10/12/monitoring-the-garbage-collector.aspx
http://forums.xna.com/thread/25600.aspx
http://blogs.msdn.com/ricom/archive/2004/11/29/271829.aspx
Thursday, October 18, 2007
awesome toys site.
Wednesday, October 17, 2007
Numbers Fun Facts
1 x 8 + 1 = 9
12 x 8 + 2 = 98
123 x 8 + 3 = 987
1234 x 8 + 4 = 9876
12345 x 8 + 5 = 98765
123456 x 8 + 6 = 987654
1234567 x 8 + 7 = 9876543
12345678 x 8 + 8 = 98765432
123456789 x 8 + 9 = 987654321
Its little things like this I enjoy in life.
Monday, October 15, 2007
One Child, Remembered
By Yosef Lewis
---------------------
In recollections of Holocaust literature by a younger self, Poland is a dark,
menacing place, a land of terrible facts, its streets paved with the headstones
culled from graves of the defenseless. A land fertilized with the ash of innocents.
A malignant evil to be forgotten, but always remembered.
The indelible stigma stuck. If I were ever to journey to that accursed land, it
would be to reclaim a Jewish pride once lost by the downcast countenances of the
Nazis' dehumanized victims. Pride, I felt, that would be restored with an indignant
stare at a neighbor who once stood idly by, saying with my speechless eyes more then
a million spoken words.
But now I feel only the silence of the unwritten word. Rays of shining sun are
splashing over our car, and in a freshly cut field a lone stork nibbles on leftovers
from the recent harvest. A growing stink wafting through window relays the smell of
freshly laid fertilizer. I notice the decrepit roads of yesteryear quickly turning
into the smooth highways we so take for granted in America.
In a rebuilt Warsaw, flashy Mercedes racing through the streets, buses a most awful
shade of yellow. The Tower of Culture looms over the city's skyline, a vapid and
weird present from Comrade Stalin to the people of Poland, the ugly bastard child of
a forgotten marriage. A funny communion of old and new can be seen on every street
corner. New, brightly lit grocery stores with the unlikely sight of a babushka's
selling sad bunches of wilted scallions and bouquets of summer flowers in their
doorways. Sleek 18-wheeler milk trucks stopped dead in their tracks by a lone
milking cow slowly drudging across the road.
And so I found myself walking through Sieradz, my grandmother's town, a town only
found by a most circuitous route from Warsaw, oh so calmly.
Our translator "shibbitzed" (a term coined in light of the prevalent "shibing" that
is found in just about every Polish word) with an older couple. Lounging on a lazy
Sunday afternoon with family. "You want to talk with the old man up the road, he
remembers the Nazis" the husband says.
I strained to understand the quick chatter between the translator and the old man.
Spittle flying from his mouth and a lone tooth had me fixated. "When they came, the
Jews were quickly herded into a small ghetto, no communication or trade were
allowed." Though interesting, the story of ghettoization was one I'd heard many
times.
But then, swallowing hard he began tell the story of the final Aktion ("operation").
"We weren't all bad, we tried to help." A small gasp, a trickle of a tear. "The red
church you saw in the middle of town had its doors locked, all of Sieradz's Jews
crammed inside" wiping his finger across his nose, as tears streamed more steadily
down his face. "The doors were locked for two weeks, screams and cries of thirst
haunting the whole town. When they finally opened the door a stench spewed from
inside, feces and dead bodies sprawled about in cadence of horror. But slowly and
unbelievably a child staggered out, his face pallid and white, the face of death."
By now the old man's face was a wet mess as he wept the horrible memory. "A SS man
nonchalantly walked up to the child, and grabbing him by his legs, flung him in onto
the street in the path of a passing army jeep."
Parched wind pushed loudly through the car's open window, draining whatever remained
of the day's energies, as I thought over the day's experiences. Realizing, slowly,
that I did not need to look upon Bubby's neighbors with righteous indignation, as
the burning shame of passivity was alive and well, sixty years later, without my
stare. Crystallizing slowly over time has been the singular obligation of telling
the story of that child's last moments. Though not dissimilar to the ending of the
rest of the six million, every record is a truth, and I doubt that this nameless
child has been remembered since his horrible death. May this record be his Kaddish.
Sunday, October 14, 2007
Friday, October 12, 2007
Thursday, September 27, 2007
iphonelockbox, this is just asking for it.
Monday, September 17, 2007
MadTV Syphilis Girl
This video cracks me up, living in Las Vegas the clubs look just like that to me.
Friday, September 14, 2007
iphone-dev - Google Code
Thursday, September 13, 2007
lidgren-library-network
Alternatives to Numerical Recipes
Fog Of War Source Code Article
Tuesday, September 11, 2007
Abramowitz and Stegun: Handbook of Mathematical Functions
Function Memoization
Sunday, September 09, 2007
Neo-Nazi's found in Israel...
Tuesday, September 04, 2007
The fonts seem crisp in VS 2008 Beta 2
Wednesday, August 29, 2007
My old skool days of knowing xterm colors is over!
Tuesday, August 28, 2007
Another phidget I dont need.
Thursday, August 23, 2007
.NET IRC and Bots.
http://www.codeplex.com/GibberMonkey/
http://smuxi.meebey.net/jaws/?
http://sourceforge.net/projects/smartirc4net/
Cool bot ideas, all tho they are little old.
http://prelude.lennart-lopin.de/
http://sourceforge.net/projects/spikenet
http://abbot.berlios.de/
I have been programming with wpf/C#/.NET and it seems to be easy to bang out something quick. It would be nice to have a 3d IRC client. The key to making a good 3d IRC client would be the type of key bindings it has and the way you can arrange the windows inside of the 3d environment. Maybe this weekend I will have some "free" time and get this done.
Wednesday, August 15, 2007
Tuesday, August 14, 2007
Syntax Highlighting Tool
My OpenBSD way of having colored man pages.
# My OpenBSD way of having colored man pages. Its kind of nasty.
alias vmore="/usr/local/share/vim/vim70/macros/less.sh"
function vman {
manfiles=`man -w $1`
for manfile in $manfiles;
do
col -b < $manfile | vmore -V0 -i NONE -c "set verbose=0 ft=man nomod nolist titlestring=MANPAGE" -
done
}
Controlling Storybord Class
Monday, August 13, 2007
Anatomy of the Linux networking stack
Friday, August 10, 2007
New book I must read.
Thursday, August 09, 2007
IPhone Hackers Rock!
Slut - suffering from a sex addiction (female)
[...]
Stud - suffering from a sex addiction (male)
Stupid - differently-brained
Stupid - intellectually impaired
The Elderly - Senior citizens
Thin - horizontally challenged
Thirsty - osmotically challenged
Tone Deaf - musically delayed
Too old/young - other aged
Too Tall - people of height
Tree-Hugger - environmental activist
Trees - Oxygen Exchange Units
Ugly - aesthetically challenged
Ugly - Cosmetically different.
Ugly - facially challenged
Unemployed - Involuntarily leisured.
[...]
Another site for jewish music.
Wednesday, August 08, 2007
IPSCAN for Windows.
Remote Exploit's BackTrack.
Top 100 security tools list is out.
The PC PC.
Monday, July 30, 2007
Saturday, July 21, 2007
I still do not have an IPhone!!
Thursday, July 19, 2007
IntelliSense Dies
If you use Team Explorer and auto check out by typing in a source file IntelliSense might die. This happens to me when the objects you want to use are outside of the current project but not in the .NET framework. Best solution is to restart the IDE and things might be normal again.
Changes to Xaml does not force a recompile in Debug
Visual Studio 2008 is still dumb to when xaml source code needs to be recompiled. When changes are made to the xaml code and you want to run it under the debugger the IDE should recompile the code for you. Guess what, it doesn’t. This was also a problem I had with the Visual Studio 2005 Orcas Plugin (or whatever it was called).
Exception Window for Xaml Code.
The VS Orcas team thinks there pretty slick, now when you change a line of xaml and don’t recompile the IDE will tell you there is an exception. This is great when you want to check for them, but not when you are editing code! How do these guys think up this stuff. One of the first things they should of done is stopped the IDE from crashing from bad or even good xaml code. Now I face the problem that one of my usercontrols crashes the IDE when another application try's to load it. The usercontrol works fine during run time but crashes during editing time! This usercontrol is very simple, three rectangles and one line.. This might be too much for the new powerful Orcas IDE to handle! Remember just to press ESC when ever loading the designer part of Visual Studio Orcas, because it tends never to work.
Microsoft Robotics Studio and Lego Mindstorms NXT
Thursday, July 12, 2007
East-West Cassino
Monday, June 25, 2007
Friday, June 22, 2007
Wednesday, June 20, 2007
The 2/4 Rule For Calculating Odds
http://www.codeproject.com/csharp/MoreTexasHoldemAnalysis1.asp
http://www.codeproject.com/csharp/MoreTexasHoldemAnalysis2.asp
http://www.codeproject.com/csharp/pokerhandevaldoc.asp
Tuesday, June 19, 2007
Wednesday, June 06, 2007
The Pinball Game and Pascal's Triangle
"Are you a vegetarian?"
Monday, June 04, 2007
Sunday, June 03, 2007
Wednesday, May 30, 2007
How To Write a 3D Game Engine
Concepts behind the C# 3.0 language
New MythDora 4.0
Tuesday, May 29, 2007
Monte Carlo Simulation Using Parallel Asynchronous Web Services with .NET 2.0
.NET random number generators and distributions
Windows firewall by Yoggie Security Systems
Sunday, May 27, 2007
I started to watch a TV series. The IT Crowd
Another post about a movie. Disaster!
Running Scared (2006)
Smoking Aces Crazy Kid
See The Skillz!@!@!@ I have been watching a few movies this week. This part of Smoking Aces was crazy.
Tuesday, May 22, 2007
Friday, May 11, 2007
Found a RSS reader that I like
Sunday, May 06, 2007
Virtual Rape Is Traumatic, but Is It a Crime? Give me a break!
Friday, April 27, 2007
WPF and Blend video FREE from lynda.com
C# Enumeration Cheat Sheet
Thursday, April 26, 2007
An Aside on the Slot Machine
DotNetNuke - A Free and Open Source Framework!!!
Fun with Attribute Based Programming – Extending Enumerations
State-Driven Game Agent Design
Wednesday, April 25, 2007
Video Lectures From World's Leading And Prominent Scientists.
Tuesday, April 24, 2007
Haha, They put a warning on the back of pirating the product....
Monday, April 23, 2007
Anti-Patterns
One of my favorite ones is "Smoke and mirrors: Demonstrating how unimplemented functions will appear"
Wednesday, March 28, 2007
CoilOsapien Killer!
Using LINQ to solve puzzles
The Puzzle
Here's a puzzle similar to the one in the puzzle hunt. The diagram below is a bunch of weights (A-M) hanging from a system of bars. Each weight has an integer value between 1 and 13, and the goal is to figure out what each weight must be for the the diagram below to balance correctly as shown:
|
|
+--+--+--+--+--+--+--+
| |
| |
+--+--+--+--+--+ |
| L M |
| |
+--+--+--+--+--+--+ +--+--+--+--+--+
H | I | J K |
| | |
+--+--+--+--+--+ | +--+--+--+--+--+
E F | G |
| |
+--+--+--+--+--+ +--+--+--+--+--+--+
A B C DThe rules for this kind of puzzle are: (1) The weights on either side of a given pivot point must be equal, when weighted by the distance from the pivot, and (2) a bar hanging beneath another contributes it's total weight as through it were a single weight. For instance, the bar on the bottom right must have 5*C=D, and the one above it must have 3*G=2*(C+D).
I think there approach is way too brute force, this it seems like a little set theory mixed in with some linear algebra and recursive decent would be able to solve this problem. More on it later, if I come up with my own solution.
Thursday, March 22, 2007
Monday, March 19, 2007
WPF Demo by Laurent Bugnion
Friday, March 16, 2007
Wednesday, March 14, 2007
Get-WmiObject for finding products installed.
PS> Get-WmiObject -class "Win32_Product" -namespace "root\cimv2" -computername THECOMPUTER -filter "Name='Some Silly Product'"
Monday, March 12, 2007
PocketPC 2003 is so kind to me.
Sunday, March 04, 2007
Saturday, March 03, 2007
Sierpinski Triangle in C# with a WPF Polygon.
Simple wpf app to create a small Sierpinski Triangle... This is just a base of something I would like to create, so this is a start of using the Sierpinski Triangle. Algorithm came from the wikipedia implementation in java.