joeware - never stop exploring... :)

Information about joeware mixed with wild and crazy opinions...

12/22/2008

If Programming Languages were Religions

by @ 2:34 pm. Filed under humour

My friend Geoff sent this to me, original link is here —> http://www.aegisub.net/2008/12/if-programming-languages-were-religions.html

I posted here only because the first 6 or 7 times I tried to get to it the web page was offline for some reason.

To anyone who gets irked… Its humour, get over it. 🙂

 

C would be Judaism – it’s old and restrictive, but most of the world is familiar with its laws and respects them. The catch is, you can’t convert into it – you’re either into it from the start, or you will think that it’s insanity. Also, when things go wrong, many people are willing to blame the problems of the world on it.

Java would be Fundamentalist Christianity – it’s theoretically based on C, but it voids so many of the old laws that it doesn’t feel like the original at all. Instead, it adds its own set of rigid rules, which its followers believe to be far superior to the original. Not only are they certain that it’s the best language in the world, but they’re willing to burn those who disagree at the stake.

PHP would be Cafeteria Christianity – Fights with Java for the web market. It draws a few concepts from C and Java, but only those that it really likes. Maybe it’s not as coherent as other languages, but at least it leaves you with much more freedom and ostensibly keeps the core idea of the whole thing. Also, the whole concept of "goto hell" was abandoned.

C++ would be Islam – It takes C and not only keeps all its laws, but adds a very complex new set of laws on top of it. It’s so versatile that it can be used to be the foundation of anything, from great atrocities to beautiful works of art. Its followers are convinced that it is the ultimate universal language, and may be angered by those who disagree. Also, if you insult it or its founder, you’ll probably be threatened with death by more radical followers.

C# would be Mormonism – At first glance, it’s the same as Java, but at a closer look you realize that it’s controlled by a single corporation (which many Java followers believe to be evil), and that many theological concepts are quite different. You suspect that it’d probably be nice, if only all the followers of Java wouldn’t discriminate so much against you for following it.

Lisp would be Zen Buddhism – There is no syntax, there is no centralization of dogma, there are no deities to worship. The entire universe is there at your reach – if only you are enlightened enough to grasp it. Some say that it’s not a language at all; others say that it’s the only language that makes sense.

Haskell would be Taoism – It is so different from other languages that many people don’t understand how can anyone use it to produce anything useful. Its followers believe that it’s the true path to wisdom, but that wisdom is beyond the grasp of most mortals.

Erlang would be Hinduism – It’s another strange language that doesn’t look like it could be used for anything, but unlike most other modern languages, it’s built around the concept of multiple simultaneous deities.

Perl would be Voodoo – An incomprehensible series of arcane incantations that involve the blood of goats and permanently corrupt your soul. Often used when your boss requires you to do an urgent task at 21:00 on friday night.

Lua would be Wicca – A pantheistic language that can easily be adapted for different cultures and locations. Its code is very liberal, and allows for the use of techniques that might be described as magical by those used to more traditional languages. It has a strong connection to the moon.

Ruby would be Neo-Paganism – A mixture of different languages and ideas that was beaten together into something that might be identified as a language. Its adherents are growing fast, and although most people look at them suspiciously, they are mostly well-meaning people with no intention of harming anyone.

Python would be Humanism: It’s simple, unrestrictive, and all you need to follow it is common sense. Many of the followers claim to feel relieved from all the burden imposed by other languages, and that they have rediscovered the joy of programming. There are some who say that it is a form of pseudo-code.

COBOL would be Ancient Paganism – There was once a time when it ruled over a vast region and was important, but nowadays it’s almost dead, for the good of us all. Although many were scarred by the rituals demanded by its deities, there are some who insist on keeping it alive even today.

APL would be Scientology – There are many people who claim to follow it, but you’ve always suspected that it’s a huge and elaborate prank that got out of control.

LOLCODE would be Pastafarianism – An esoteric, Internet-born belief that nobody really takes seriously, despite all the efforts to develop and spread it.

Visual Basic would be Satanism – Except that you don’t REALLY need to sell your soul to be a Satanist…

Rating 3.00 out of 5

Bean Gosh

by @ 2:04 pm. Filed under recipes

This is a recipe from my grandmother.

 

Bean Gosh

1# hamburger & 1/2  chopped onion  fry together

Add  1 tsp salt

1 Tbsp. chili powder

1/2 cup catsup

1 tsp mustard

1 can refried beans

1 cup grated cheddar cheese

cook all together ’10 min. until cheese melts  & put in greased shallow baking dish (I usa my 9" pyrex dish)

bake one hour @ 250 degrees

use as dip for Dorito chips.

Rating 3.00 out of 5

From the mailbag: Using OldCmp

by @ 1:23 pm. Filed under tech

The email

From: xxx
Sent: Monday, December 22, 2008 8:04 AM
To: support@joeware.net
Cc: joe@joeware.net
Subject: Query – Inactive domain users accounts?

Hi Joe,

This is Turab from Bombay – INDIA. I am working as a System Administrator. I am looking for a tool or script which will help me to find out "inactive domain user accounts". I have windows 2003 DC servers and Exchange 2003 servers. The setup is huge. The total user force in the domain would be 22,000 plus across the domain.

I found your tool "OldCmp". I gave the following syntax:
oldcmp -report -users -b dc=rallencorp,dc=com -s subtree -llts -age 90

and got error as follows:

C:\>oldcmp -report -users -b dc=rallencorp,dc=com -s subtree -llts -age 90

OldCmp V01.05.00cpp Joe Richards (joe@joeware.net) December 2004

Processed at XYZ-DC-001.xxxx.abc.com
Default Naming Context: DC=xxxx,DC=abc,DC=com

WARN: Domain not in Windows Server 2003 Domain Mode, lastLogonTimestamp not available,
WARN: Using pwdLastSet instead.
ldap_get_next_page_s: [
XYZ-DC-001.xxxx.abc.com] Error 0xa (10) – Referral

Search completed…
Creating Report File: oldcmp.20081222-181448.htm

Command completed successfully

C:\>AUTOEXEC.BAT-sh
‘AUTOEXEC.BAT-sh’ is not recognized as an internal or external command,
operable program or batch file.

C:\>

My main query is to find out list of inactive domain user accounts or the users who have not logged in last 90-days and more! Hope to have a prompt reply.

Happy Holidays!
Merry Christmas and Happy New Year!

Turab.
xxx

ps: Following is the contents of the htm report generated…

THE REPORT GENERATED BY OLDCMP UTILITY.
2008/12/22-18:14:48
Generated by OldCmp V01.05.00cpp – http://www.joeware.net
——————————————————————————–
Search Start Time 2008/12/22-18:14:48
Search Finish Time 2008/12/22-18:14:55
Host Name XYZ-DC-001.xxxx.abc.com
Directory Type Windows Server 2003
Forest DC=abc,DC=com
Forest Mode Windows 2000 Mixed Forest Mode
Domain DC=xxxx,DC=abc,DC=com
Domain Mode Windows 2000 Mixed Mode
Search Scope subtree
Search Base dc=rallencorp,dc=com
Search Filter (&(samaccounttype=805306368)(pwdLastSet<=128666474886020000))
DN Exclusions 
Age (days) 90
Old Age Date 2008/09/23-18:14:48
Old Age Date (Int8) 128666474886020000
Max Age (days) 0
Max Old Age Date 0000/00/00-00:00:00
Max Old Age Date (Int8) 0
Action REPORT
Stamp accountExpires FALSE
Safety Setting 10
For Real Setting FALSE

——————————————————————————–
Color Legend
RED indicates disabled object
GREEN indicates Domain Controller

DN cn displayName sAMAccountName pwdLastSet pwage whenCreated accountExpires userAccountControl

 

The response

 

From: joe [mailto:joe@joeware.net]
Sent: Monday, December 22, 2008 11:08 AM
To: xxx
Subject: RE: Query – Inactive domain users accounts?

Well 22,000 isn’t really all that huge. That would fit nicely in the medium sized business. I would say very large starts around 250,000 or so. 🙂

So you have two main problems in the command.

The first is that you are specifying a BASE with the -b switch that doesn’t exist.. rallencorp.com is the test domain of my friend and co-author, Robbie Allen. He used that as an example in several books and articles. I would just cut the -b switch out completely as oldcmp should figure out what your domain is automatically.

The second is that you are using the -llts switch and your domain is not in Windows Server 2003 domain functional mode. It is ok, the program is smart enough to figure that out and cancels out the switch for you but if you don’t want to see the error, don’t add that switch.

So not the last thing isn’t really a problem, just unneeded. The switch -age 90 is not needed because the default aging value is already 90 days. So if you just change this command to be

oldcmp -report -users

you will likely accomplish what you are looking to accomplish. ;o)

Note that there is some basic usage in the tool itself. If you type oldcmp /? you will see it.

   joe

O’Reilly Active Directory Fourth Edition – http://www.joeware.net/win/ad4e.htm

Rating 4.00 out of 5

12/19/2008

Giant Guinea Pigs Attack South Park…

by @ 2:38 am. Filed under humour

This was sent to me by one of my faithful readers / web site users as they recognized the outfits in the episode from a picture on my site…. I have to say this cracked me up… Giant Guinea Pigs dressed up in costumes attack South Park… What in the world are Matt and Trey smoking to come up with this stuff???

http://www.southparkstudios.com/episodes/189593/

Rating 3.00 out of 5

Prime Rib

by @ 2:37 am. Filed under recipes

Posting another recipe that I had trouble finding so I won’t have trouble again…

1. Slice inch deep slits along length of Prime Rib to allow spices to enter

2. Rub Prime Rib GENEROUSLY with black pepper, garlic powder, onion powder, and TARRAGON leaves.

3. Wrap tightly in plastic wrap and store in the refrigerator for at least 24 hours

4. Roast in convection oven for 4 hours at 225 (or internal temperature reaches 125 F)

5. Remove and let stand at least 20 minutes before carving

6. Enjoy but don’t gorge yourself, it will just make you feel all heavy and blah. But I can understand the desire to do so because it is SOOOOO good.

[EDIT]: Instead of garlic powder, use fresh ground (food processor works great) garlic. The flavor absolutely pops then.

Rating 4.33 out of 5

12/17/2008

Outsourcing Humour

by @ 1:21 pm. Filed under humour

Indian_Xmas

Rating 3.00 out of 5

Auto Bailout Humour

by @ 1:21 am. Filed under humour

Can’t say I completely agree with the shitty cars part, I absolutely adore my 2007 Mustang GT… Very good quality from what I have seen except for the stupid Tire Pressure Sensor crap. Funny just the same though.

 

I wonder who is next on the list of who needs to be bailed out… Airlines?

 

auto_bailout_2008

Rating 3.00 out of 5

12/16/2008

At least I have Internet…

by @ 2:38 pm. Filed under general

A couple of my coworkers live in New Hampshire and have been without power since last week due to the ice storms. One of them has come up with a creative method for keeping his work computer and Internet up and running… A few marine batteries (from a trolling motor if I recall correctly) and a power inverter to run the laptop and cable modem…

On a team conference call Dave was asked about how it was going without power and he said, and I quote… “At least I have Internet….” LOL.

 

 

1216080920a

1216080926a

Rating 3.00 out of 5

12/12/2008

This must be fun for my Redmond friends

by @ 6:25 pm. Filed under general

http://www.neowin.net/news/main/08/12/12/microsoft-workers-set-to-recieve-a-bar-on-campus

Rating 3.00 out of 5

12/3/2008

Test Post

by @ 9:04 pm. Filed under general

Sent at 8:04PM EST

Rating 3.00 out of 5

[joeware – never stop exploring… :) is proudly powered by WordPress.]