Wednesday, May 23, 2007

Understanding p2p

Recently, I had a small little discussion with a friend over what exactly defines the p2p technology. He thought that it uses the client's LAN when possible to speed up connections. (Specifically in this case, we were talking about a p2p extension for Firefox, AllPeers)
ME: However....AllPeers doesn't use the host computer 's local LAN to transfer files - it uses the Internet to connect to a remote AllPeers session (as far as I know). Therefore I could simply set up an AllPeers share on my computer with the Tournament demo in it. I'll do that, keep Firefox running, go to school, and then we can use your Firefox w/ AllPeers to connect to my home computer and download it that way.

Of course you could do the exact same thing with your personal home computer. It's just a matter of convenience and preference.

HIM: What is the point of p2p if it has to go through something else?

ME: You're right in saying that p2p doesn't "go through something else" - however, you're wrong in saying it would use the school's LAN to achieve this. You need to understand some basic p2p theory first to understand what it's actually going to end up doing. (By the way I recommend reading all of this - I worked hard on it.. lol)

The only two reasons to use p2p are that (1) it allows you to initiate a direct connection between client to client, thusly eliminating the need for a mediating central server and (2) it distributes the clients resources (bandwidth, etc) to each other equally.

This is in juxtaposition to the client-server model in which everyone downloads from one main server (similar concept to the Boyd drop boxes and shared drives in general). This main server gets considerably drained as more people access it, decreasing download speeds for the individual.

P2P solves this problem under optimal conditions and is in those cases faster that the client-server model. However, we need to define optimal conditions. They are, simply put, a relatively speedy Internet connection, high bandwidth, and (most importantly) a relatively sizable number of clients that are connected at the same time to the p2p network. The number of clients is so important because each one serves as a node to both distribute already existent resources (like bandwidth, storage space, and computing power) and to add their OWN bandwidth, storage space, and computing power resources.

Let’s create a scenario - Let’s say that there are only two people sharing resources on a p2p network. The speeds will undoubtedly be slower than a traditional client-server setup in this instance because the two computers are probably average home computers using their relatively small, restrictive, and slow RoadRunner internet bandwidth. They are sharing very little bandwidth and computing powers between themselves. (I know that from experience), in comparison to simpy connecting to a server that in all likelihood will probably have a T3 (or whatever the major Interent connection is) connection that is routing incredible amounts of bandwidth to it for the public to access and utilize.

Of course if the number of people in the theoretical p2p network I made up increases, then its overall power in comparison begins to completely own.

So the problem(s) at school are that when we use AllPeers, we are distributing the school's bandwidth to *each other*, essentially negating any speed benefits of a p2p network. We are still using the Internet to do this because AllPeers was designed for non-Intranet file sharing and it doesn't know how to interface with a nearby Local Area Network/Intranet. (put more simply, AllPeers has no idea that we are in a LAN config at school - for all it knows, the computer next to you in the CompSci lab is located in China.) Logically, why would AllPeers use the LAN to do sharing? That would defeat the purpose. If you already have a LAN, you essentially have one major part of a p2p network set up already between all the computers in the network. Think about shared network folders in Windows. Machine to machine file transfer. LAN. Partly p2p.

If AllPeers used the LAN, it'd be exactly the same as about a thousand other programs out there, including Microsoft's built in networking tools and capabilities themselves.

We can still do it your way but I guarantee you it will not be any faster that your traditional downloads and it definitely won't use the school's LAN. It's just a convenient way to set up a private temporary network that uses the Internet to gather people in a p2p pool of clients. But in our case, two people isn't going to make any download speeds very fast.




Monday, April 23, 2007

acroread expr syntax error (Adobe Reader for Linux)

Solution is here.
http://linuxon-vgn-a497xp.blogspot.com/2006/11/acroread-expr-syntax-error.html

But basically, you comment out the appropriate lines using the # operator in the acroread startup script (usually located in /usr/bin/). Here are the modifications.

418# echo $mfile| sed 's/libgtk-x11-\([0-9]*\).0.so.0.\([0-9]\)00.\([0-9]*\)\|\(.*\)/\1\2\3/g'
419 echo $mfile| sed 's/libgtk-x11-\([0-9]*\).0.so.0.\([0-9]*\)00.\([0-9]*\)\|\(.*\)/\1\2\3/g'

644# MIN_GTK_VERSION="240"
645 MIN_GTK_VERSION="2040"

Back to Linux

Not going into detail why...

Thursday, February 15, 2007

XP versus Linux... why I chose Windows XP

I hate to say this, but I'm going to be using Windows XP for a while. There are several reasons for this. I've switched between both XP and Fedora for weeks, using both for about a week at a time. However, Windows XP has sort of come on top after these daily test runs. Essentially, I can be equally productive in both environments. For the most part, I can get the same results/products out of open source software alternatives on Linux as I would using a mix of proprietary and open source applications in a Windows environment. However, there are a few minor annoyances in Linux that make it, overall, *slightly* less appealing than Windows XP. It's the small things that kill - getting some Windows apps to run correctly, window focus stealing problems, printer annoyances, etc (the list literally goes on and on). A prime example of some of the factors that are the causation of this lesser appeal would have to be the eight plus hours I spent on a Saturday to find a way to print to my printer from Fedora Core. Sadly enough, it was just a cheesy workaround I was using - Canon doesn't support Linux (basically I was sending the file to a shared network folder to be printed by Adobe). In terms of window focus stealing, I spent nearly an hour just trying to determine why a particular application kept losing focus when I switched back to it. Even after changing some settings, the focus was flakey. In Windows XP, window focusing isn't even a second thought - it just works automatically without the pain of configuring KDE to run a list of windows specific settings based on the windows title/name or the process name. These are just two fine examples of the growing pains that you experience daily when using Linux.

Windows application support is not exactly up to par either – although this one is hard to blame on Linux at all. In fact, it’s not Linux’s fault period. CrossOver office simply couldn’t effectively run some of my mission critical Windows applications when I needed them most. (It was an audio editor, GoldWave, by the way – Audacity simply couldn’t meet my needs). Little annoyances in Microsoft Word 2003 also ticked me off – why couldn’t I import an AVI movie to display in a PowerPoint, or why wouldn’t I simply access the clip gallery? On top of this, certain things I use frequently under Windows (aka the .NET framework and the free version of Visual Studio, Visual C# Express) simply don't run on Linux and had to be run on a processor emulator running a copy of XP. This is entirely feasible (I was running a brand new copy of XP in VMWare while I was using Linux), but it is still somewhat annoying to open this virtual machine every time I wanted to use such an app. It was also sluggish of course. All it did was add around 50 seconds to my wait time to use a critical application, whereas in Windows, instantaneousness would have been feasible. Mono does a half decent job for .NET support, but nowhere have I found the 100% compatibility and feature rich IDE’s associated with the wonderful Visual C# Express in Windows XP.

Once again, don’t get me wrong – Linux is amazing in the sense that it can emulate the Windows kernel like this with Wine or CXOffice, but the applications support is just not completely there yet. Unfortunately that some really good software is written in Windows native languages. Linux is literally crippled in his sense.

The security advantages of Linux are also technically negated when you think about it. If, while in Windows, you don't install random applications from random websites, and you use a stable, bug/hole/breach free web browser (aka Firefox), the chances of you getting a virus or any form of malware are slim. Take it from me - I've use Windows for many years without problems - after I got Firefox and become more restrictive on downloads. You simply have to be careful and take precautionary measures with your data. Basically, downloading only trusted applications, using multiple malware scanners, and having an inbound/outbound firewall basically should do the trick. Sure, Linux is secure all by itself with little to no effort – but so is Windows with minimal effort and prodding.

Ultimately, I think Linux is destined to be abolished to the file/web servers realm of computing unless a drastic change in commercial support for the free operating system comes rapidly. Honestly, if all the hardware and software vendors supported Linux generally, it would become an extremely viable option to me and to the general populace. Linux is simply a generally superior operating system in general crippled by software/hardware incompatibilities and minor bugs and annoyances that add up to a mess of trouble. Another option, of course, is if someone could develop an extremely fast process emulator that runs a legal copy of Windows XP as its primary virtual machine, and the Windows apps in this install are run “natively” in Linux as actual applications that can use the native Linux file system, etc.

So my final determination on Linux is that a few small, trivial, non essential things keep it from being my desktop of choice. Don't get me wrong - I'm not deleting it off my hard drive just yet. When Windows XP becomes way too slow or unsupported for me soon enough, this computer could be made fairly decent with my Fedora install. Also, if Windows decided to poop out on me anytime soon (somewhat unlikely, actually)

Despite this, imagine if I was too poor to afford Windows XP or it simply wasn't feasible to do so. Linux would be absolutely amazing. Obviously, you can save some money by not having Windows XP installed by default on your barebones/custom built machine. If Windows XP is simply not an option for whatever reason, Linux absolutely becomes a viable, free alternative.

Overall, though, I’m glad I’ve has the experience with Linux that might give me the edge someday. I love the open source movement and think it is absolutely amazing in many aspects (that explains why I've been through countless Live CD's and HD installs ... including SuSE, Fedora, and Ubuntu). It's amazing that people have made a very much viable Windows alternative for free – it still completely blows my mind. Linux has made leaps and bounds from the console based days.

Thanks for listening. Any comments are appreciated.

Sunday, December 31, 2006

Poor ps3 sales - Completely Owned?

Console: Sales (according to Wikipedia.org)
Microsoft Xbox 360 (Released 2005): 9.1 million
Nintendo Wii (Released 2006): 2.0 million
Sony Playstation 3 (Released 2006): 808,025
Nobody disputes that part of the reason so few ps3 units were sold IS the price. It's simply a deterrent to a majority of gamers as of now. If Sony truly did their stuff right (somehow magically made the price more gamer friendly at it's release) , my guess is that they would have at least a million sells by now. I KNOW for a fact that they shipped out that many units to the USA already. Of course they HAD to price it so high. (BluRay and such). Anyway, I guarantee you that Nintendo sold more units in relation to it's total units FASTER than the ps3 did in relation to total units.

Anyway, I still think the ps3 owns, but it's too expensive for me. When I said "completely owned", I meant in sales. Not in console awesomeness.

I like how one commercial sums it up. It shows a fat lady who basically keeps on saying "I'm large and in control". Then, a skinny hot girl in a bikini is saying "I'm just FUN!!! And playful!!!". After some more of this banter, the fat lady says "Don't you know that BlueRay is the FUTURE?!!! GOD!!!" Then she leaves, leaving the bikini girl to continue to say "I'm fun!!!!" (There's some inappropriate butt slapping going on as well :P) I'm sure you can guess who the ps2 is and who the wii is.

In better news, the ps2 is still selling awesome. I find that plain out sweet. The ps2 was truly the best selling console ever.

Tuesday, December 19, 2006

Ben Stein quote

Sorry, but this (relatively old) Ben Stein quote is too awesome to miss... (take to my friend Austin for pointing it out)

Herewith a few confessions from my beating heart: I have no freaking clue who Nick and Jessica are. I see them on the cover of People and Us constantly when I am buying my dog biscuits and kitty litter. I often ask the checkers at the grocery stores. They never know who Nick and Jessica are either. Who are they? Will it change my life if I know who they are and why they have broken up? Why are they so important?

I don't know who Lindsay Lohan is either, and I do not care at all about Tom Cruise's wife. Am I going to be called before a Senate committee and asked if I am a subversive? Maybe, but I just have no clue who Nick and Jessica are. If this is what it means to be no longer young. It's not so bad.

Next confession: I am a Jew, and every single one of my ancestors was Jewish. And it does not bother me even a little bit when people call those beautiful lit up, bejeweled trees Christmas trees. I don't feel threatened. I don't feel discriminated against. That's what they are: Christmas trees. It doesn't bother me a bit when people say, "Merry Christmas" to me. I don't think they are slighting me or getting ready to put me in a ghetto. In fact, I kind of like it. It shows that we are all brothers and sisters celebrating this happy time of year. It doesn't bother me at all that there is a manger scene on display at a key intersection near my beach house in Malibu . If people want a creche, it's just as fine with me as is the Menorah a few hundred yards away.

I don't like getting pushed around for being a Jew, and I don't think Christians like getting pushed around for being Christians.

I think people who believe in God are sick and tired of getting pushed around, period. I have no idea where the concept came from that America is an explicitly atheist country. I can't find it in the Constitution, and I don't like it being shoved down my throat. Or maybe I can put it another way: where did the idea come from that we should worship Nick and Jessica and we aren't allowed to worship God as we understand Him? I guess that's a sign that I'm getting old, too. But there are a lot of us who are wondering where Nick and Jessica came from and where the America we knew went to.

In light of the many jokes we send to one another for a laugh, this is a little different: This is not intended to be a joke; it's not funny, it's intended to get you thinking.

Billy Graham's daughter was interviewed on the Early Show and Jane Clayson asked her "How could God let something like this Happen?" (regarding Katrina) Anne Graham gave an extremely profound and insightful response. She said, "I believe God is deeply saddened by this, just as we are, but for years we've been telling God to get out of our schools, to get out of our government and to get out of our lives. And being the gentleman He is, I believe He has calmly backed out. How can we expect God to give us His blessing and His protection if we demand He leave us alone?"

In light of recent events...terrorists attack, school shootings, etc. I think it started when Madeleine Murray O'Hare (she was murdered, her body found recently) complained she didn't want prayer in our schools, and we said OK. Then someone said you better not read the Bible in school. The Bible says thou shalt not kill, thou shalt not steal, and love your neighbor as yourself. And we said OK. Then Dr. Benjamin Spock said we shouldn't spank our children when they misbehave because their little personalities would be warped and we might damage their self-esteem (Dr. Spock's son committed suicide). We said an expert should know what he's talking about. And we said OK. Now we're asking ourselves why our children have no conscience, why they don't know right from wrong, and why it doesn't bother them to kill strangers, their classmates, and themselves.

Probably, if we think about it long and hard enough, we can figure it out. I think it has a great deal to do with "WE REAP WHAT WE SOW." Funny how simple it is for people to trash God and then wonder why the world's going to hell. Funny how we believe what the newspapers say, but question what the Bible says. Funny how you can send 'jokes' through e-mail and they spread like wildfire but when you start sending messages regarding the Lord, people think twice about sharing. Funny how lewd, crude, vulgar and obscene articles pass freely through cyberspace, but public discussion of God is suppressed in the school and workplace.

Funny how when you forward this message, you will not send it to many on your address list because you're not sure what they believe, or what they will think of you for sending it. Funny how we can be more worried about what other people think of us than what God thinks of us. Pass it on if you think it has merit. If not then just discard it... no one will know you did. But, if you discard this thought process, don't sit back and complain about what bad shape the world is in.

My Best Regards .. honestly and respectfully,

Ben Stein

Wednesday, December 6, 2006

What to do?

Currently, I have a dual boot between Windows XP and Fedora Core 6. However, I might be triple booting in a couple of weeks after I receive my free copy of Windows Vista Business arrives in the mail (let it suffice to say that I won a contest through which I am now guaranteed receive both Vista Business edition and Microsoft Office 2007). I don't know if that's going to be an option though ... three operating systems on an 80 gig HD aren’t going to create a particularly pleasant situation. Vista itself takes up 15 gigs (ouch?) minimally; 40 gigs are recommended. Currently, my one hard disk looks like this -

Windows 60gigs (~13 gigs free)
Fedora 20 gigs

As you can clearly see, Vista has no room to fit in as a triple boot with my current configuration.

My options are (Assuming my XP partition must be at least 50 gigs (if I keep it at all), because it’s already 43 gigs in size), in no particular order:

(1) Delete Linux partition, having a dual boot between the Windows monopoly of operating systems. (Something in the order of 30 gigs for Vista and 50 gigs for XP)

XP - 50gig
Vista - 30 gig

(2) Triple boot between Linux, Vista, and XP. However, I’d have to shrink the Linux partition to around 5 to 10 gigs in order to accommodate Vista

XP - 50 gigs
Vista - 25 gigs (or 20 gigs)
Linux - 5 gigs (or 10 gigs)

(3) Install Vista completely on top of XP, meaning my config would be identical to how it is now, except I’d have Vista now and no longer XP.

Vista - 60 gigs
Linux - 20 gigs

(4) Install Vista on a whole new hard disk. They are relatively cheap, so I could theoretically handle this. However, doing the jumper cable and slave/master crap is a pain in the butt.


I’m sure there are other possibilities I’m not thinking of, but I’m tired.
What does everyone else recommend in his instance? My two requirements - I want to run Vista and keep XP. That eliminates one option at least.