Archive for the ‘Internetworking’ Category

apache/mod_wsgi vs. uwsgi

Tuesday, August 3rd, 2010

Quick note to self. I was blown away by siege tests this afternoon.

Two servers, identical
Server Hardware
linux kernel 2.6.32-12
512MB RAM

siege -c 90 –time=120s
server 1= running apache 2.2 with mod_wsgi with nginx 0.7.35 as front end wwwsvr.
Lifting the server siege… done.
Transactions: 2735 hits
Availability: 100.00 %
Elapsed time: 120.21 secs
Data transferred: 9.17 MB
Response time: 3.38 secs
Transaction rate: 22.75 trans/sec
Throughput: 0.08 MB/sec
Concurrency: 77.00
Successful transactions: 2735
Failed transactions: 0
Longest transaction: 11.08
Shortest transaction: 0.16

vs.
siege -c 90 –time=120s
no apache, nginx 0.7.35 with uwsgi
Lifting the server siege… done.
Transactions: 20605 hits
Availability: 100.00 %
Elapsed time: 120.06 secs
Data transferred: 74.51 MB
Response time: 0.03 secs
Transaction rate: 171.62 trans/sec
Throughput: 0.62 MB/sec
Concurrency: 4.82
Successful transactions: 20605
Failed transactions: 0
Longest transaction: 9.02
Shortest transaction: 0.01

Who said you need apache?

siege -c 250 –time=30s
apache/mod_wsgi
Lifting the server siege… done.
Transactions: 185 hits
Availability: 100.00 %
Elapsed time: 30.01 secs
Data transferred: 0.62 MB
Response time: 7.69 secs
Transaction rate: 6.16 trans/sec
Throughput: 0.02 MB/sec
Concurrency: 47.42
Successful transactions: 185
Failed transactions: 0
Longest transaction: 27.10
Shortest transaction: 0.15

nginx/uwsgi
Lifting the server siege… done.
Transactions: 8147 hits
Availability: 100.00 %
Elapsed time: 29.60 secs
Data transferred: 29.46 MB
Response time: 0.39 secs
Transaction rate: 275.24 trans/sec
Throughput: 1.00 MB/sec
Concurrency: 108.68
Successful transactions: 8145
Failed transactions: 0
Longest transaction: 21.02
Shortest transaction: 0.01

uwsgi was able to serve 8147 requests to 250 concurrent connections in the same time mod_wsgi could only serve 185

adapter missing in exported vm?

Friday, June 11th, 2010

I’m adding this to my checklist when exporting a virtual machine via virtualbox.

on the guest image,

  1. become superuser
  2. echo “” > /etc/udev/rules.d/70-persistent-net.rules
  3. shutdown -r now
  4. open up the 70 persistent net rules again. change eth1 to eth0
  5. shutdown -h now
  6. go ahead and export (VBoxManage export $image_name -o $image_name.ovf)

For me, this saved a lot of asprin when importing VM on a new machine. This permits udev to assign the first available eth adpater to your machines virtual mac address.

Application Design for People with Disabilites

Thursday, April 15th, 2010

experimenting with django-uni-form brings a valid point. In order to bid on any IT projects with the U.S. Government the interface must be Section 508 Compliant

django’s native form render method is to put out forms as tables. uni-form allows you to use template tags to have a real control of the divs and layout of your forms which is great for designing for people with disabilities and enhancing the overall user experience.

here’s a great slideshare i ran into on the topic

What is Value?

Friday, April 9th, 2010

What is money?

What is Service?

Do you provide value?

What is Value?

Why buy if no Value?

Corporate diatribe, McDonalds drivel driving that BigMac down your throat? How valuable is that?

Don’t want to be transparent and open? Guarding Secrets? Keep them.

because,

We got news for you You cannot hide anymore. The Networked Internet. We’re not cyborgs. We’re real people,  sharp quick tongues tied to heart and brain.

Corportocracy Beware.

The ClueTrain Manifesto.

Business Satire

Saturday, February 27th, 2010

Got a few entertaining concepts to share, coming soon. Please let’s not take ourselves so seriously =)

here’s one:

What if we approached a sock manufacturer to buy some whiteys in bulk, Screenprint TERRORIST ’09 with an upside down Nike Swoosh, mass produced them and sold them outside every airport in the USA. Go thru TSA security line, take off your shoes, and reveal your true colors.

TERRORIST ’09

Haha, Big Sister Janet Napolitano can arrest us all for being Terrorists.

America’s Most Popular Brand

Spice up your CSS with SASS

Sunday, November 29th, 2009

Been spending a lot of time with SASS and HAML. Awesome templating frameworks. I started by following @chrisepstein the powerhouse developer behind the compass-css project. After getting accustomed to Sass it only makes sense to use HAML for compliant xHTML.

The most significant characteristic with haml and sass versus html and css is nested hierarchy of its elements. This takes a little while to get used to, since we’ve never written in white-space aware code (like python), yet is very powerful in eliminating un-necessary markup, following DRY conventions. Secondly, sass mixins, imports and patterns within compass-css framework make HTML5/xHTML design a sinch – without ever using photoshop.

We are excited to offer this to clients, saving precious development time, dollars, and energy.

This slideshare really helped me out a lot and I’m posting it for my future reference and for anyone else into learning Sass and Haml.

Your Reputation is NOT Cheap: Passphrases over Passwords

Tuesday, November 24th, 2009

BE A VIGILANTE AGAINST PASSWORD VULNERABILITY

FOR YOUR OWN SAKE – and FOR YOUR CLIENTS SAKE.

Security is an issue I think all of us, from one time or another, take for granted.

I think Big Ben said it best:

Any society that would give up a little liberty to gain a little security will deserve neither and lose both.

-Benjamin Franklin

While, thoust I am tempted, this is not going to turn into some political tirade. Ben’s quote came to mind, and his quote is in a different context altogether from the subject you’ve read in the headline

You Are Not Cheap. Feel Secure and more Prosperous, trade your passWORDS for passPHRASES.

This is a SIMPLE method to INCREASE your PERSONAL SECURITY instantly. Although, some people (consultants) would charge a hefty price for this advice; this INCREASE IN SECURITY only requires a decision and a swift action. Changing your ‘password’ to a phrase.

Here are some fun passphrases I’ve set in the past for clients.

(Yes, they’ve changed them now, in fact some of them may already have changed and returned back to mary777 or john123)

WeWishYouAmerry2009CHRISTMAS!!!!
Iburied6theHAMinyourfreakinBACKYARD
ERIC-youneedtoquitsmokingITSNOTGOODFORYOURHEALTH1985-2009
RockOUT9erwithyourCO*KOUT

Those are just examples of passphrases. They are MUCH MORE secure than ‘john123′ because they are alphanumeric (numberz and lettahz) use alternative characters. THEY ARE EASIER TO REMEMBER it’s a PHRASE NOT A SINGLE WORD.

CASE IN POINT:

Let’s say you had a friend who you cheated on a gambling debt. OK- maybe you weren’t cheating, you just needed more time to PAY.

You have social networking accounts like a Facebook, a LinkedIN, a Twitter, and maybe a GMail account.

You have a job where you should keep your image nice and professional, let’s say you sell Insurance. You need to AT LEAST portray a professional responsible image.

You are a bit lax and take for granted your ‘password’ or Personal Security. You have a wife named Joan. It is the year 2009. You were born in 1962. Your address is 123 Everany Street.

So you’re friend who you owe a gambling debt to is pissed off, he hasn’t heard from you in weeks. You owe him $750.

Your friend is a bit computer savvy, he even KNOWS a few people who know computers better than him. OK your friend doesn’t even know computers that well, but he’s got some wits doubled with common sense.

Your friend attempts to login your facebook. He tries first eric1962. Fail. eric2009. Fail. ericjoan2009 Access Granted.

Wow – he notices a lot of common acquaintances whom he could communicate with right now, and they would think it’s me!

He is pretty angry about the money so he writes on my Facebook wall.

Friends, Clients, Family: I have a problem right now, I have a gambling debt of $750 and a mortgage payment due tomorrow of $1800. Which one should I pay? Can anyone help me I will pay back soon! Thanks!

He then gets amped up, and decides to try my Gmail. Man I’ve got all my clients personal data in there stored in spreadsheets, confidential company info…

Longer more Nerve-wracking Story cut short.

BE A VIGILANTE AGAINST PASSWORD VULNERBILITY

BE A VIGILANTE AGAINST PASSWORD VULNERABILITY

USE PASSPHRASES.

We’re in a new information age. Information is instant and at anyone’s fingertips. IT’S IMPOSSIBLE THAT YOU PERSONALLY COULD MONITOR YOUR ACCOUNTS 24/7.

Yeah I can get my email anywhere. Yeah, I can give you a contract anywhere. Yeah, I can take your info anywhere.While this ‘Internet thing’ is really freakin’ convenient.

PLEASE REMAIN A VIGILANTE ABOUT THE new VULNERABILITY of your reputation.

Not only your reputation and information, but the new ability of the clumsy to turn others lifes into nightmares.

Turning the lives’ upside down of the same people you love and want to succeed. Your family, friends clients and acquaintances. Your network. Your Ecosystem.

Use Passphrases. Change them often. Use uppercase and lowercase. Use numbers and use symbols.

It’s really important.

Growing up with an XT .. Recollections .. Network Neutrality

Wednesday, September 23rd, 2009

My first PC was an IBM XT.

I am always a seeker of unwanted computers, but if you offered me an XT with 128 kilobytes of memory ….

IBM XT

IBM XT

Got it when I was 8 years old, and it weighed a ton.

128k of Memory and my proudest moments with it included programming a batch menu system on startup. This is back in 1993, still innocent, I still haven’t played Nirvana’s Nevermind. My dad got me started in computers and we were spending a lot of time messing with MS-DOS , Norton Commander, Wordperfect Macros and Borland’s Quattro Pro Spreadsheets. Then, I was introduced to Bulletin Board Systems (BBS). At the time I was a boyscout and many of the ‘Cub Masters’ were active on BBS’s so my dad’s knowledge started to grow. Looking back, for me, this was the dawn of the fragmented internet. I remember graduating some level of Boy Scouts and my friend Josh and I being told by my dad that they guy speaking on the stage was the SysOp of Gumby’s World BBS. Being one of the BBSs I dialed into frequently at the time, he seemed like an enigma to me. Long Beard, cowboy hat and spurs and he is in charge of this BBS service, what the heck? Back then, we were connecting to BBS with a 300 baud external modem using DOS Software such as RIPterm. Countless days redialing in RIPterm as BBSs were popular and the SysOP could any allow as many users as he had telephone lines in his house. Getting older now and reflecting, I have much empathy for the men of Boy Scout troupes who have families, jobs, limited time to hone their skills via their hobbies. They needed a way to share and further their hobbies; ASCII Art, Files, Shareware, Porn, and just plain communication, jokes, intelligence, software tips, news, listings Bargain Hunting Computer Shows down at the CCRI Knight Campus, and MIT Flea Market Events were listed and carpooling was offered. Even though these BBS’s weren’t connected to the internet backbone, they were a way for people to get together, share materials, share software, share knowledge, collaborate to over all improve one’s autonomy over the quality of life they lead.

Give the people a place to congregate – and you’ll be amazed what ya’ll come up with – Together! Ok, now you get a Whuffie!

As I get older and become more learned, I see that back then even the same rules apply to life! They didn’t just appear when I saw them! Only when awareness is reached. The Mathematical Principle, Small World Phenomenon and decentralization of search shows us that;

even so far separated I may be from that Dean at Harvard University, yes even you, white-trash city boy; you are still connected to him in some way thru links with other people.

Technology only serves as a catalyst of further contracting the six degrees of separation. Take a look at how the internet works, peer-to-peer file sharing. Network nodes connect to each other through centralized gateways and can be access independently also making them de-centralized. Vector Distance RIP and Link-State RIP

If every person is living, has a brain, has a soul, has a thirst for knowledge on any topic, then, that person will naturally live to locate that knowledge, and the fastest way to obtain that knowledge is usually by conversing with other people.

Networking.

Through this, cliques form and seek to mingle and dance with other like-minded cliques. For most of history this has been limited by geography. You would only network locally in your Church, your Hunter-Gatherer Group.

Today we have no limits.

They say Bad News travels fast; well perhaps it is a natural human safeguard in the checks and balances of small world math?

My Second PC was a $3000 Compaq 486 with 32 megabytes of Memory and a 200 megahertz processor.

With this we were able to run Windows 3.1 and installed it with 20+ 5.25” Floppy Drives.

Windows 3.1

Yet I don’t think capabilities besides having a Graphical User Interface (GUI) were improved much. This was the age of Microsoft Encarta and being able to watch FDR’s fireside chats on-demand in my living room. This was decentralized knowledge mass-produced. At the same time, National Internet Service Providers (ISP’s) started to heavily advertise themselves to the masses. Prodigy was the first one I remember we subscribed to. I don’t recall email being a main feature of prodigy (we used Juno for that), it was basically an aggregator of news, chat, games, polls, stock and financial news, weather, shopping, quality content and BBS services. This was centralized but with a narrow focus, you could only get the content that Prodigy aggregated for you and presented to you.

Later that year, after my dad getting pissed off about all the CD-ROM’s being used as Frisbees around the yard, we signed up for an America Online (AOL) 100 hour trial.

Though AOL’s GUI was much more user-friendly than Prodigy’s, the features were similar. You had a narrow centralized interface where you could get weather, stock quotes, weather reports, and read content from expert authors writing on popular topics.

You could say that AOL was a pioneer in enabling the masses to adopt email and personal webpages. Within AOL there wasn’t much motivation or ease to leave AOL websites, and the AOL interface to browse the World Wide Web (WWW).

My father, noting our boredom with AOL and Prodigy, then took a big leap and signed us up with a local Internet Service Provider called IDS based in East Greenwich, Rhode Island. IDS did not offer content, no interface, no stock tickers on your screen, no special offers popping up. IDS simply gave you instructions on how to download a web browser at the time we started with Cello then adopted Netscape Navigator. We were able to search internet-wide using Archie and later, Yahoo.

This was quite an experience, like a narrow peak whole widening over night.

My father and I were able to access any type of knowledge we so desired. Totally unrestricted, totally decentralized. Through this, I discovered Internet Relay Chat (IRC) using mIRC, discovered Dalnet, Undernet and soon had off-line penpals in the Philippines and Iceland. I was very fortunate growing up to have such a father who supported my thirst for knowledge. One gentleman in Iceland named Thor-Thor was nice enough to send me glossy travel brochures from his local travel office in Reykjavik Iceland. I was amazed that through this machine I could contact and obtain materials from far-away lands, for free. Talk about decentralization. At a time when the Government was purchasing a few computers (IBM AT’s) for the classrooms in my elementary school, it seemed the teachers were terrified to turn them on. They didn’t know what to do with them. In the fifth grade I remember a Maverick teacher turned them on though didn’t know how to use them, let us play games such as The Oregon Trail. Today, from the Philippines, Tagay to you Mr. Fifth Grade teacher.

This age of local ISP popping up was a notable one, more and more people, ideas, products were able to come together to be offered on a Global Virtual Marketplace.

So, yes, Cluetrain, markets are people and people have conversations. Some conversations were controlled like on AOL or prodigy or CompuServe,  and some conversations were totally liberated and out there in the Wild Wild Web.

Now, as the Obama Administration is about to shove Net Neutrality bill down yer throats, ask yourself, why do we need the government taking helms at the top of the heap of this liberated free network known as the Internet? Now, more than ten years later, there very few local ISPs still operating independently. Like many mom-and-pop business across our great nation, my former local ISP IDS.net was bought out by a large Multinational Conglomerate, and now belongs to One Communications. Granted all ISPs are connected to major internet backbones (Tier 1) such as Verizon (formerly)  UUNetAT&T, Sprint , Global Crossing , and so on, there is now a lack of independent power in the Industry. I think Network Neutrality is to govern as the Tier 1 Networks, delegating to all beneath it, via the Government, not the Industry, not the Free-Market. Network neutrally will just be a formal nail on the coffin of a liberated and free internet. Please do not be fooled by the friendly name of the Bill, ‘Network Neutrality’, I see it as a precedent-setter in Government Regulation of the Internet. Content such as this could be censored in the near future. Check it out yourself on Thomas, S 215 IS Internet Preservation Act, Amending the Communications Act of 1934.

First, we the masses adopted BBS’s, de-centralized independent networks. You went there if you found what you like. Then, we adopted ‘Internet’ from America Online, CompuServe, and Prodigy. This was centralized in the sense they had large rolls of subscribers, and it was Nationwide. Content was narrow, served, and selected by the ISP.

Next, we migrated and adopted the World Wide Web WWW via Local ISPs. We had complete freedom, we could build our own web server and it would be accessible from any ISP. We chose the sites and the content we wanted to see, and we were repeat visitors. If this was too much for you, your homepage was a Portal such as Lycos, Excite or Yahoo.

Still, to this day, the WWW is wide open.

Government has not yet put their slimy hands on it. They tried with Internet Sales Tax, they tried MPAA fear rulings, now they will try Network Neutrality. It is the same thing only wrapped in a Christmas Ribbon. They are trying at all fronts. They do not encourage free-market competition in the Telecom industry. There are no mom and pops left.

Thanks for letting me share, and I want to leave it off with a song sung by a band named God Ate My Homework. They were a group of Students at UC Berkeley who attempted to start a genre called Nerd Rock. It was hard to find this track; I actually had to go on IRC to get it. So I want to share it for anyone who is looking for tingles reaching back to the past.

What are your thoughts? What are your memories of the early web? What do you think about Network Neutrality? What do you know about it?

Get the Flash Player to see the wordTube Media Player.

Lyrics;
Saw Bill Gates on IRC
I Saw Bill Gates on IRC
He was just tryin’ to get an mp3
I Saw Bill Gates on IRC

I saw the President on the net
I saw the President on the net
He had so many JPEG’s he could get
I saw the President on the netbill-gates-pie

I saw my admin hackin’ NASA
I saw my admin hackin’ NASA
He said they shoulda shadowed their root pass
I saw my admin hackin’ NASA

[grunge interlude]

I saw Jim Griffin tradin’ warez
I saw Jim Griffin tradin’ warez
He said, “it’s not Geffen’s, so who cares?”
I saw Jim Griffin tradin’ warez

I Saw Bill Gates on IRC
I Saw Bill Gates on IRC
You can’t kill anything that’s free.
I Saw Bill Gates
I Saw Bill Gates
I SAW BILL GATES
I Saw Bill Gates on IRC

Air France Flight 447

Friday, July 3rd, 2009

just got a fwd mail from my uncle… i’m not sure if he believes that the person who forwarded it to him was connected to the photographer! but! here they are, this is the first time i’ve seen this, so i wanna share it…

quoted from uncle david’s forward:

>

> The extraordinary photographer, who kept his cool even in the last moments of his own life and took these photos.

>

> The world saw the disappearance of an Air France aircraft during a trans Atlantic flight between Rio to Paris .

> Two shots taken inside the plane before it crashed.

>  Unbelievable photos taken inside the aircraft that was involved in the crash…..

>

> The two photos attached were apparently taken by one of the passengers in the aircraft, just after the collision and before the aircraft crashed. The photos were retrieved from the camera’s memory stick. You will never get to see photos like this. In the first photo, there is a gaping hole in the fuselage through which you can see the tailplane and vertical fin of the aircraft. In the second photo, one of the passengers is being sucked out of the gaping hole.

>

>

>

> These photos were found in a digital Casio Z750, amidst the remains in Serra do Cachimbo. Although the camera was destroyed, the Memory Stick was recovered. Investigating the serial number of the camera, the owner was identified as Paulo G. Muller, an actor of a theatre for children known in the outskirts of Porto  Alegre . It can be imagined that he was standing during the turbulence, he managed to take these photos, just seconds after the tail loss the aircraft plunged. So the camera was found near the cockpit. The structural stress probably ripped the engines away, diminishing the falling speed, protecting the electronic equipment but not unfortunately the victims. Paulo Muller leaves behind two daughters, Bruna and Beatriz.

>

summon a witch doctor to plurk

Wednesday, June 24th, 2009

ok 24 hours with plurk, –first impressions are sometimes misleading!

someone summon plurk a witch doctor, @papadimitriou .. is absolutely right – it’s an enthralling interface, but critically lacking essential features.

/eof