Archive for the ‘Technology’ Category

Changing your hosts file in Vista

Thursday, December 4th, 2008

By default, if you try to modify your hosts file in Vista, it will not let you save it.  It tells you that you don’t have permission.  To successfully modify the hosts file, run notepad.exe as an administrator and open the file.

1)  Browse to Start -> All Programs -> Accessories
2)  Right click “Notepad” and select “Run as administrator”
3)  Click “Continue” on the UAC prompt
4)  Click File -> Open
5)  Browse to “C:\Windows\System32\Drivers\etc”
6)  Change the file filter drop down box from “Text Documents (*.txt)” to “All Files (*.*)”
7)  Select “hosts” and click “Open”
8)  Make the needed changes and close Notepad.  Save when prompted.

ASP.NET Charting Control! :)

Wednesday, December 3rd, 2008

Microsoft recently released a cool new ASP.NET server control - <asp:chart /> - that can be used for free with ASP.NET 3.5 to enable rich browser-based charting scenarios.

LINK

Ubuntu (Hardy Heron) freezes while playing MP3

Wednesday, December 3rd, 2008

I believe this to be caused by a recent update to the GStreamer plugins and codecs for MP3.

To solve this problem, I had to completely remove (using Synaptic) Totem, MusicPlayer and GStreamer, reboot, and reinstall Totem.  Then open an MP3 and it’ll ask to install the GStreamer codecs.

Next time you run updates, make sure you deselect those dealing with audio.

Ubuntu on a Flash Drive (or SSD)

Tuesday, December 2nd, 2008

Use these tips to speed things up.  My Ubuntu boots up in 34 seconds (to login screen) from 49 seconds and loads Gnome in 6 seconds now.  My flash drive is a Super Talent 8GB SM Style USB Flash Drive, with sustained reads at 30 MB/s. and writes at around 10 MB/s (I believe).

http://wiki.eeeuser.com/yet_another_way_to_install_ubuntu_710

Squeeze Your Gigabit NIC for Top Performance

Tuesday, November 25th, 2008

October 24, 2007
By Charlie Schluting

Many new workstations and servers are coming with integrated gigabit (define) network cards, but quite a few people soon discover that they can’t transfer data much faster than they did with 100 Mb/s network cards. Multiple factors can affect your ability to transfer at higher speeds, and most of them revolve around operating system settings. In this article we will discuss the necessary steps to make your new gigabit-enabled server obtain close to gigabit speeds in Linux, FreeBSD, and Windows.

Hardware considerations
First and foremost we must realize that there are hardware limitations to consider. Just because someone throws a gigabit network card in a server doesn’t mean the hardware can keep up.

For attaining maximum throughput, the most important options involve TCP window sizes.

Network cards are normally connected to the PCI (define) bus via a free PCI slot. In older workstation and non server-class motherboards the PCI slots are normally 32 bit, 33MHz. This means they can transfer at speeds of 133MB/s. Since the bus is shared between many parts of the computer, it’s realistically limited to around 80MB/s in the best case.

Gigabit network cards provide speeds of 1000Mb/s, or 125MB/s. If the PCI bus is only capable of 80MB/s this is a major limiting factor for gigabit network cards. The math works out to 640Mb/s, which is really quite a bit faster than most gigabit network card installations, but remember this is probably the best-case scenario.

If there are other hungry data-loving PCI cards in the server, you’ll likely see much less throughput. The only solution for overcoming this bottleneck is to purchase a motherboard with a 66MHz PCI slot, which can do 266MB/s. Also, the new 64 bit PCI slots are capable of 532MB/s on a 66MHz bus. These are beginning to come standard on all server-class motherboards.

Assuming we’re using decent hardware that can keep up with the data rates necessary for gigabit, there is now another obstacle — the operating system. For testing, we used two identical servers: Intel Server motherboards, Pentium 4 3.0 GHz, 1GB RAM, integrated 10/100/1000 Intel network card. One was running Gentoo Linux with a 2.6 SMP (define) kernel, and the other is FreeBSD 5.3 with an SMP kernel to take advantage of the Pentium 4’s HyperThreading capabilities. We were lucky to have a gigabit capable switch, but the same results could be accomplished by connecting both servers directly to each other.

Software Considerations
For testing speeds between two servers, we don’t want to use FTP or anything that will fetch data from disk. Memory to memory transfers are a much better test, and many tools exist to do this. For our tests, we used [ttcp](http://www.pcausa.com/Utilities/pcattcp.htm).

The first test between these two servers was not pretty. The maximum rate was around 230 Mb/s: about two times as fast as a 100Mb/s network card. This was an improvement, but far from optimal. In actuality, most people will see even worse performance out of the box. However, with a few minor setting changes, we quickly realized major speed improvements — more than a threefold improvement over the initial test.

Many people recommend setting the MTU of your network interface larger. This basically means telling the network card to send a larger Ethernet frame. While this may be useful when connecting two hosts directly together, it becomes less useful when connecting through a switch that doesn’t support larger MTUs (define). At any rate, this isn’t necessary. 900Mb/s can be attained at the normal 1500 byte MTU setting.

For attaining maximum throughput, the most important options involve TCP window sizes. The TCP window controls the flow of data, and is negotiated during the start of a TCP connection. Using too small of a size will result in slowness, since TCP can only use the smaller of the two end system’s capabilities. It is quite a bit more complex than this, but here’s the information you really need to know:

Configuring Linux and FreeBSD
For both Linux and FreeBSD we’re using the sysctl utility. For all of the following options, entering the command ’sysctl variable=number’ should do the trick. To view the current settings use: ’sysctl <variable name>’

  • Maximum window size:
    • FreeBSD:
      kern.ipc.maxsockbuf=262144
    • Linux:
      net.core.wmem_max=8388608
  • Default window size:
    • FreeBSD, sending and receiving:
      net.inet.tcp.sendspace=65536
      net.inet.tcp.recvspace=65536
    • Linux, sending and receiving:
      net.core.wmem_default = 65536
      net.core.rmem_default = 65536
  • RFC 1323:
    This enables the useful window scaling options defined in rfc1323, which allows the windows to dynamically get larger than we specified above.

    • FreeBSD:
      net.inet.tcp.rfc1323=1
    • Linux:
      net.ipv4.tcp_window_scaling=1
  • Buffers:
    When sending large amounts of data, we can run the operating system out of buffers. This option should be enabled before attempting to use the above settings. To increase the amount of “mbufs” available:

    • FreeBSD:
      kern.ipc.nmbclusters=32768
    • Linux:
      net.ipv4.tcp_mem= 98304 131072 196608

These quick changes will skyrocket TCP performance. Afterwards we were able to run ttcp and attain around 895 Mb/s every time – quite an impressive data rate. There are other options available for adjusting the UDP datagram sizes as well, but we’re mainly focusing on TCP here.

Windows XP/2000 Server/Server 2003
The magical location for TCP settings in the registry editor is HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

We need to add a registry DWORD named TcpWindowSize, and enter a sufficiently large size. 131400 (make sure you click on ‘decimal’) should be enough. Tcp1323Opts should be set to 3. This enables both rfc1323 scaling and timestamps.

And, similarly to Unix, we want to increase the TCP buffer sizes:

ForwardBufferMemory 80000
NumForwardPackets 60000

One last important note for Windows XP users: If you’ve installed Service Pack 2, then there is another likely culprit for poor network performance. Explained in [knowledge base article 842264(http://support.microsoft.com/?kbid=842264), Microsoft says that disabling Internet Connection Sharing after an SP2 install should fix performance issues.

The above tweaks should enable your sufficiently fast server to attain much faster data rates over TCP. If your specific application makes significant use of UDP, then it will be worth looking into similar options relating to UDP datagram sizes. Remember, we obtained close to 900Mb/s with a very fast Pentium 4 machine, server-class motherboard, and quality Intel network card. Results may vary wildly, but adjusting the above settings are a necessary step toward realizing your server’s capabilities.

Sandisk Sansa c250 2G Player Review and Sync

Tuesday, November 25th, 2008

I recently purchased this unit, refurbished, because it was on sale for $15 and I needed a player for the gym.  I received it yesterday evening and wanted to provide some feedback.

It’s kind of flimbsy and very light, it almost feels as if it’s hallow.  But, it has a small color screen and easy to understand controls, so I can’t really complain.  I do fear, however, that if I drop it, it will dissolve into the air.  It’s not necessarily a bad thing to be very light, but, it should be noted.

Things I don’t “really” like, but that aren’t a HUGE deal:

  • Proprietary usb connector - Instead of using USB Mini-A Type connection, they decided to use a port that took up the entire width of the unit (about an inch) to connect via USB.  Why?
  • Wasted Space - there’s a lot of space all around that could be utilized.  Either for the other controls or to space things out a little better.  This is my personal opinion, but I don’t “really” like the fact that the volume control is all the way at the top, while the play button is on the front, and then menu button all the way at the bottom right.
  • Built in Battery - This really annoys me.  Why would you do that?  Now, you MUST charge this thing at a computer, because 1) you need the special cable that only connects to USB Type A connections, and 2) there’s no other port to use to charge.  So you must charge this thing at home before leaving the house.  I wonder how long it lasts?
  • COULD NOT get it to sync as an MTP device - the device freezes (On both Vista and XP).  But I CAN get it to connect as a storage device (only on XP) where I can manually copy my songs over (which isn’t a problem for me) or manage it with WinAMP or something else.
    • Please note that to get it to connect, I enabled the HOLD (push it so it shows the orange) and held down the REWIND button, then CONNECTED the USB.  I had to do it in that order for it to work, no other worked for me.

Things I like:

  • Micro SD Slot - It’s expandable!  Yay!  This makes complete sense and is a great selling point: why not buy a device that you can upgrade as your music collection increases?!
  • LOUD - this little thing gets VERY LOUD!  A lot louder than my Creative Zen this is replacing.  Like, crazy loud.  I’m not sure I’ll ever use it louder than half way.
  • Equalizer - It has an equalizer that allows you to customize the sound (and has a custom setting for your personal preferences).
  •  Color Screen - it’s not high resolution or anything, but it’s nice to see things in color.  And the graphics aren’t half bad.
  • Music, Audio, Radio, Recordings - This unit really does it all in terms of functionality.  It definitly plays music well and recieves radio signals even inside of buildings.

I will use it for a week or two and report back.  As of right now, I give it a 7 due to the USB connection and the syncing issues (which are not unique to me).

When Computer Geeks Rap Battle…

Monday, November 24th, 2008

<djahandarie> we ain’t here to do e-c-e
<djahandarie> we’re here to do c-s-e on the w-e-b
<djahandarie> listen to me spit these rhymes
<djahandarie> while i program lines
<djahandarie> and commit web accessibility crimes
<djahandarie> word, son
<http402> You talk like your big on these I-Net kicks,
<http402> But your shit flows slower than a two-eighty-six.
<http402> I’m tracking down hosts and nmap scans,
<http402> While Code Igniter’s got you wringing your hands.
<http402> Cut the crap rap,
<http402> Or I’ll run ettercap,
<http402> Grab your AIM chat,
<http402> N’ send a PC bitch-slap!
<http402> peace
<djahandarie> you’re talkin bout down hosts and nmap scans
<djahandarie> while i got other plans
<djahandarie> you’re at your new job, but you can’t even do it right
<djahandarie> you just create a plight with your http rewrites
<djahandarie> i’ve been on the web since the age of three
<djahandarie> you just got on directly off the bus from mississippi
<djahandarie> respect yo’ elders, bitch
<http402> You’ve been webbin’ since three, but still ain’t grown up,
<http402> Gotta update your config and send the brain a SIGHUP.
<http402> You say you’re that old? No wonder you’re slow!
<http402> You’re knocking at the door while I run this show!
<http402> Elders my ass, you’re shit’s still in school,
<http402> Hunt and pecking at the keyboard like a spaghetti-damned fool,
<http402> Rim-riffing your hard drive like a tool,
<http402> Face it. I rule.
<djahandarie> i erase my harddrives with magnets (bitch)
<djahandarie> all you can do is troll on the fagnets
<djahandarie> and son, my brain’s wrapped in a nohup
<djahandarie> it wont be hurt by the words you throwup
<djahandarie> dont mind me while i emerge my ownage
<djahandarie> while you’re still over there apt-getting your porridge
<djahandarie> you say i’m still in school
<djahandarie> but the fact is that i know the rule
<djahandarie> cuz you need to go back to grade three
<djahandarie> and you better plea, that they take sucky graduates from c-s-e
<http402> Time to bend over and apply a patch,
<http402> Your brain’s throwing static like a CD with a scratch.
<http402> Your connection got nuked and you’ve met your match.
<http402> You run a single process like a VAX with a batch.
<http402> I’d pass the torch to a real winner
<http402> But it’d just scorch a while-loop spinner
<http402> Caught in a loop that you cant escape,
<http402> I run clock cycles around your words and flows,
<http402> Cuz your rhyme is like a PS fan: it’ blows,
<http402> Your water-cooled lyrics leak and it shows,
<http402> Take your ass back to alt.paid.for.windows.
<djahandarie> Good god, I can’t even respond to that. :P
<djahandarie> You win haha
* http402 takes a bow

More job cuts loom as economy slows

Tuesday, October 7th, 2008

Tech and and auto industries lead the number of planned layoffs according to a monthly survey.

By Kenneth Musante, CNNMoney.com staff writer

NEW YORK (CNNMoney.com) — The number of job cuts announced in September rose as the economy slowed, according to a report released Wednesday.

Positions on the cutting board rose 7.2% to 95,094 from 88,736 the previous month, and were 33% higher than the same month last year, when 71,739 cuts were announced, according to outplacement consultancy Challenger, Gray & Christmas, Inc.

September brought the announced layoff total for the third quarter to 287,142 - the largest number since 2005, according to the report.

The computer industry was the hardest hit, with 25,715 positions on the line after PC maker Hewlett-Packard (HPQ, Fortune 500) announced the largest workforce reduction of the year, the report said.

HP said it would cut 24,600 jobs worldwide as a result of its acquisition of Electronic Data Systems Corp. But since those cuts were a result of the deal and not a consequence of the ailing economy, the report noted, HP’s workforce could gain many of those jobs back.

The struggling auto industry came in second place, with plans to drop 14,595 jobs, while the apparel industry came in third place, announcing 8,350 cuts, according to the report.

Surprisingly, planned job cuts were relatively modest in the financial sector, the report said, despite the turmoil that plagued the nation’s financial institutions during the month.

Banks wait for bailout

The data showed that finance industry had announced 8,244 job cuts in September, compared with a spike of 27,169 during the same month last year as the credit crunch began to unfold. But they did jump from 2,182 in August.

September saw a major reshaping of the financial landscape as institutions such as Lehman Brothers, Merrill Lynch (MER, Fortune 500), AIG (AIG, Fortune 500), Wachovia (WB, Fortune 500) and Washington Mutual were acquired, bailed out, or went bankrupt.

“While all of these scenarios are being played out, the fate of the workers remains in limbo,” John A. Challenger, chief executive of Challenger, Gray & Christmas said in a statement.

Financial institutions are waiting to see if Congress passes the Bush administration’s $700 billion rescue plan that would allow the government to buy up tainted assets in order to keep their businesses from failing.

Whether the bailout plan is approved by Congress - and what form it takes - will affect the number of layoffs that may eventually be announced, according to Challenger.

“One of the big questions is: Are there going to be more runs on banks and financial institutions?’” he told CNNMoney.com.

If there is no bailout plan, financial job cuts will likely increase, according to Challenger. On the other hand, if all banks take advantage of the government’s offer, the number of layoffs could be limited, since no one institution is singled out.

But if a bailout plan passes and is only embraced by a few institutions, that would emphasize the weakness of those companies, and we might see more job cuts, he added. To top of page

Solar Goes From Gardens to Gigabucks

Tuesday, October 7th, 2008

 

 

By Alexis Madrigal EmailOctober 06, 2008 | 11:00:00 PM

 

 

 

Solyndra_083

FREMONT, California — Solar cells have been converting sunlight into electricity for years, but scientists have been much less successful at turning that technology into money.

Now, in a staid Bay Area office park, a converted hard-drive factory with a shiny new façade has begun churning out unconventional solar tubes that could change the economics of solar power.

The highly-automated factory belongs to Solyndra, a three-year-old company that has received $600 million in venture capital and $1.2 billion in orders for its new modules, which look like curtain rods. Those big investors are betting the company’s unique product will soon blanket commercial buildings across the world.

Instead of the standard panels mounted on racks that have dominated solar for the last 20 years, Solyndra’s cylindrical solar modules collect sunlight more efficiently across a broader range of angles and catch light reflected off the roof itself. The solar cells also contain no silicon, which has been a costly component of most solar systems.

Targeted at a highly specific market — office and big-box rooftops — and with signed contracts in hand, the company, along with a small cadre of other well-funded solar startups, are racing to turn their scientific and engineering marvels into profitable businesses.

The scramble, the money, and the size of the prize — a big slice of the trillions of dollars made in energy — remind the company’s founder, Chris Gronet, of his earlier experience in the industry that became the basis for the information revolution.

“We think the solar industry or market look very similar to the way semiconductor manufacturing was 20 years ago,” Gronet, Solyndra’s CEO, told Wired.com. “We say, ‘Wow this is familiar. We’ve been through this before.’”

All types of solar power have experienced growth in the wake of increasing awareness of the risks of climate change and the rising costs of fossil fuels. A report released last week by Lux Research, a solar-focused analysis firm, predicts that the total solar market will grow from $33.4 billion in 2008 to $100.4 billion in 2013. While traditional silicon-based solar cells continue to underpin most solar systems, there is a broad expectation among industry analysts and insiders that these new thin-film solar cells, such as Solyndra is making, will experience rapid growth. While thin-film cells aren’t as efficient at using the sun’s energy as their silicon competitors, they cost less to produce.

Solyndra_087 Instead of using wafers of material, a la computer chips or traditional solar PV, thin-film solar cells use tiny amounts of material deposited in ultra thin layers along the surface of glass or metal. In Solyndra’s case, vice president of business development Kelly Truman said that their process uses just a bit more than a micron of copper indium gallium diselenide, or CIGS. Using less of the expensive photovoltaic material drives the cost of their production down.

For years, CIGS technology had appeared the most promising for cheap solar power. The National Solar Technology Roadmap, created by the National Renewable Energy Laboratory, states that steady efficiency improvement “could ultimately allow CIGS to achieve the lowest module costs and levelized cost of energy among all PV technologies.”

The total solar market can be broken into three main pieces: solar for utilities, residential installations and commercial buildings. Solyndra is focusing exclusively on the commercial side. What Gronet envisions is solar panels installed on your average Home Depot or Ikea, generating a substantial percentage of the company’s power needs right on site.

On the roof of the Solyndra office buildings, they’ve installed the first Solyndra array. What’s striking about the system is how simple it appears: The solar tubes look like reverse fluorescent light bulbs that generate electricity rather than using it. The mounting system is also light and small, as you can see in the image. They don’t have to be bolted to roofs because the spacing between the cylinders makes them less susceptible to wind damage than traditional flat solar panels.

But despite the industry’s high hopes, CIGS solar cells have proven very difficult to manufacture at industrial scales. Greentech Media analyst Michael Kanellos said that the risks for CIGS thin-film players have “increased dramatically” over the last few months with the worsening financial system and increased competition.

Solyndra_067 “Some CIGS will survive, but a lot of these companies might only leave a wet spot on the pavement,” Kanellos wrote in an e-mail to Wired.com.

Kanellos noted that Solyndra’s cylindrical design was advantageous, but also the most difficult to manufacture.

“Everyone else is having trouble making efficient flat CIGS panels. Curving adds another layer of complexity,” Kanellos wrote. “It is part of the reason that their contracts call for the delivery of their solar panels from now to 2012.”

Only two other CIGS-based thin-film manufacturers have managed to start cranking out actual saleable product. Nanosolar and Global Solar started selling cells last year. Solyndra, after hundreds of millions of dollars of investment, generated its first revenue in the third quarter of this year.

If Gronet and his team can work out the manufacturing challenges and navigate the difficult financial waters, their unique design and tightly focused business model could lead them to profitability, even after government subsidies in Europe phase out.

“In any unsubsidized world, which is a few years down the road, you need a cost structure that allows you to compete,” Gronet said. “Our panel, because it’s CIGS and thin film, will beat the costs of any silicon system.”

WiSci 2.0: Alexis Madrigal’s Twitter , Google Reader feed, and webpage; Wired Science on Facebook.

If I owned HP stock, I would SELL SELL SELL!

Tuesday, September 23rd, 2008

So on 9/13/2008 I ordered an HP Tablet tx2500z because my old Fujitsu tablet’s keyboard began to malfunction, so I took that opportunity to upgrade the system (after much thought, of course).  There was a GREAT coupon code found on SlickDeals for an additional $150 off the already reduced price (price went from $1099 to 899), so I decided to pull the trigger on that deal.

After placing the order online, the site indicated it would take 10 days to build the machine.  10 days?  And then an additional 5 - 7 days for shipping.  Wha?  Why so long?  Well, I got a good deal, so I suppose I can wait.  Mind you, I’ve been anxiously waiting for this system, as I have a lot of work to do… and… I spent a lot of money.  So I want it!

It is now the 11th day of being “In Production”.  I called this morning to the Customer Service line and spoke to a nice Indian woman (I could tell from the accent  - and because I asked her).  She was kind, however, I was less than patient at this point.  She verified my information and then told me what I already knew

Customer Service: “The order is still in production sir.”

Me: “Yea, I knew that, that’s why I called. ”

She checked the system and there were no reported delays.

Customer Service: “Can you call back tomorrow and check?”, she said to me.

Me: “No, if I call back tomorrow, it will be to cancel my order and purchase the Dell tablet I should have ordered initially.”

Customer Service: “Ohh, sorry sir.”

Me: “I don’t want special treatment, I just want my item when it was promised to me”

Customer Service:  “I understand.  Please call back tomorrow.”

So, back to the title of this post.  If I owned HP stock, I would sell it like it were infected with ebola.  Why?  Because if it takes HP 10 days to build a laptop, and they can’t even produce a laptop in 10 days, then there’s an internal problem within this company.  Dell can produce laptops within 5 days of ordering, and have them out the door ON the 5th day.  Why in the world can’t HP do that?

Finally, while the customer service person was nice and sweet, she was not helpful.  Helpful, to me, means bringing to light something that I would not have noticed on my own, and thus, making the situation a bit more bearable, understandable, or at the very least give me some confidence that I won’t have to cancel my order and go with a competitor.  She was none of these.

This may have been a random occurrence, but I find it hard to believe. I think the cheap and low quality of the Compaq has crept its way up the chain of command, to the point where the company can’t even stay true to a very gracious and heavily padded deadline (10 days is just crazy!).

EDIT: 10.7.08

Another reason why I would sell, if I owned the stock, of course (and may explain why my experience was sub-par as a consumer): LiNK