N34D - Nerd Rantings

To content | To menu | To search

Wednesday, September 21 2011

Windows 8


For what it's worth, I dont like windows 8, however I come from a power user background, I might be engineering in solidworks, writing code for a micro controller, designing a pcb, or all of the above.... I work on multiple monitors, four to be exact, and all of them in use at the same time while I am designing, I will have two data sheets open side by side on one monitor, writing code on another, file browsers and device programmers on another. Windows 8, tries to be a tablet/pad operating system for casual surfers/bloggers/emailers/ news readers.... There really isn't any power for the people who make those apps or for the people who design the hardware they run on.... Now I am an avid windows user on the desktop, and I hate fan boys of windows and Linux, don't get me wrong, every single server I own is runing Linux. I won't build a windows server, as I won't build a Linux desktop, however, with the advent of win8, I may make the switch to Linux on my desktop so I can actualy get some work done. If win8 stays this way, some software vendors a going to be unhappy, case in point, two of the cad/cam packages I use, cost over $20,000 combined, I will not upgrade until they release a Linux version. At this point in time, win8 is a thumbs down for me, I hope this will change, we shall see, please microsoft, don't make me switch away from windows in the desktop.

Monday, July 25 2011

HP1320tn Toner hacking

My IT Girl (aka sumchick) hacking the toner!

Anna Hacking HP1320 Toner

These cartridges cost $145 each, but she found the hidden refill spot!

First, cut away a small section of the plastic.

HP1320 Hack

Second, fill it!

Refilling HP1320 toner

Thursday, June 30 2011

Flash on Fedora 15

I had some issues trying to get Flash working, and I found this, and all is well:

http://fedoraproject.org/wiki/Flash

Tuesday, April 12 2011

Speed tests, Internet Connections

Ok, so I was trying to find good internet connection speed tests, and they all just kinda stink past 5mbit.

Then I found www.speedtest.net works great, and I can actually validate my connections.

Take a look:

Wednesday, March 23 2011

Com Rack Rewiring / Cable Management

Where is a few pics of a com rack than we rewired. This rack evolved over a small period of time, and has begun to look horrible.

We decided to put cable management together after the design stabilized so we didnt have to worry about allot of changes.

Just an FYI on this network:

  • DS3 (45mbit over OC1)
  • Two Ports off router for each; Data  and Voice
  • 1x Public Data network
  • 2x Private Data networks, each has its own firewall
  • 1x VoIP network (w/ PoE)

Com Rack Before Com Rack Stripped

Com Rack Pre-wired Com Rack Wired


Monday, January 3 2011

Arduino update.

Ok, I was talking to a few nerd friends, and the consensus point that was brought up is:


"If you breadboard a project every time, there are a few staple items in every project, the pic, the crystal, and the programming header."

Now there are a few more, but those above are the common among every single one of my pic projects.

But I still don't get the Arduino. As with most every eval/dev kit I have, the pins are sometimes reserved for this or that, or not broken out the way I want them.

So, my friends asked why I don't just throw together a simple bare bones project PCB. Well, I said, because I still have to connect it to a breadboard for the rest of the circuit.

At this point, we are trying to figure out a good way to do this, and bring the pins out in a fashion that allows me to connect to a breadboard easily, or use directly off of the PCB.

So stay tuned....its in the works....now this wont be a wow project, wow as in that's amazing, just simply a tool to allow one to prototype a little faster using the compilers/programmers that they are already use too.

Again, stay tuned....

Sunday, January 2 2011

Arduino, just dont get it.

I just don't get the Arduino. I mean, I understand its a proto board. I understand its easy to use, but so is a BS1 (which I don't like either)

When I design a prototype, I pull a pic chip from my stock that I think is a close fit to the design, and I stick it in a solderless breadboard, Add a few support chips, and I am done.

When I look at the Arduino, I see it tied to a solderless breadboard, or tied to a shield. Now I get a shield is a proto board that makes things fast and easy, but, I am prototyping, I don't think there is a shield for what I need.

So, I started looking at it, its an Atmel chip with its pins brought out. Hmm.. I use Microchip alot, so I will design a protoboard for my Pic's.....

...I started to, and all I did was plot down a chip mid-board, and bring out all its pins....hmmm, why don't I just stick it in a solderless breadboard and call it a day?

I tried to think of the advantages of putting a chip on a PCB, and bringing out its pins, it will help me prototype faster...nope, it wont, it will allow me to muck around faster, but not really prototype any designs I get paid for.

Looks neat, but looks like overhead to me.

I started thinking, hmmm, I could use one of those to test an idea I have, driving a CD-ROM stepper, I would need an Arduino, and a stepper shield of some sort, ah crap, I will just stick a pic in a breadboard, and add a couple transistors, done.

So really, what is it for? is it for the beginner who needs pre-made shields to do work they should be doing? 

I tried, I really did, I just dont see the need for me to have one.

Friday, December 31 2010

Using an analog scope to show digital traces

Here is a kit from mculabs.com that allows you to see 8 logic traces on an analog oscilloscope.

Here is the video of showing a few channels from an RC receiver. Not to bad for hobby use if you ask me.

Project and Source Code: www.mculabs.com
Project as a Kit: www.picstuff.com

Friday, December 24 2010

Drag Soldering

Here is a simple video of me soldering an 28pin SOIC chip.

 

Thursday, December 23 2010

Old School Labeling

I went old school on my switch labels on this one here in the lab.
Each side of the cable has the same number on it.

os-label
lab switches

Saturday, December 18 2010

Execute PHP for a different file extension

I was writing a custom API for a client, and we didn't want the files ending in .php so as it can just look allot more professional.

So, here is the solution, in your virtual host directive for the domain, add this:

  AddType application/x-httpd-php .api

<VirtualHost *:80>
  ServerName www.somedomain.com
  DocumentRoot /vhost/path

  AddType application/x-httpd-php .api
</VirtualHost>

Now any file ending in ".api" is treated as a php script.

--ciao

SSH and SCP from server to server without a password

I often oversee several servers, and I try to automate allot of my tasks. In doing so, I often have a bash script that will push files out to other servers and restart them.

To make SCP and SSH work without a password you must first do this:

ssh-keygen -t dsa

Now you need to have your public key placed onto the remote server. On the remote server, you place this key in userhome .ssh/authorized_keys2 file.

I like to be able to do this with one simple command, here you go:

cat /root/.ssh/id_dsa.pub | ssh host.domain.com "cat >> /root/.ssh/authorized_keys2"

This will add the public key for the root user to the server host.domain.com

After that, SSH and SCP commands now worth without a password.

--enjoy

CPU Load via a simple command

I was asked how to see the load of each cpu with a command.

Well here you go, you need the sysstat package first.

yum install sysstat

Viola:

[root@vm tmp]# mpstat -u -P ALL
Linux 2.6.35.6-45.fc14.i686 (vm.ontura.com)     12/19/2010     _i686_    (4 CPU)

01:25:02 AM  CPU    %usr   %nice    %sys %iowait    %irq   %soft  %steal  %guest   %idle
01:25:02 AM  all    0.20    0.00    0.08    0.01    0.00    0.00    0.00    0.00   99.70
01:25:02 AM    0    0.39    0.01    0.15    0.01    0.00    0.01    0.00    0.00   99.43
01:25:02 AM    1    0.12    0.00    0.07    0.01    0.00    0.00    0.00    0.00   99.80
01:25:02 AM    2    0.18    0.00    0.06    0.01    0.00    0.00    0.00    0.00   99.76
01:25:02 AM    3    0.12    0.00    0.04    0.01    0.00    0.00    0.00    0.00   99.83
[root@vm tmp]#

Sunday, December 12 2010

Rebuilding a Server Room

A couple years ago, I was hired to come in and clean up a company, from a technology standpoint. The company A just bought out company B.

Server Room Right

Here is what I walked into. The server room was a Server Room / IT office. However, you do not ever know where the slash was? That is what is the server part and what is the IT part?

For a rack, they used a book case, and stuffed equipment in anywhere they could. Now, I totally get it, do what you can with what you have. But, when you do, don't be proud of it, it looks like crap!

What you are seeing is 2 consoles, and a butt load of Serial MUX devices.

Can you believe this company actually ran dedicated ds0 circuits between locations and rand serial data over those lines, this is high cost and low speed.

The Mess Patch Panel Serial MUX Private DS0 Circuits Power

Transition 1There is allot of equipment buried that you do not see. And I have to bring in more equipment. Once the new network is brought up, I need to dump as much serial devices as possible. I ditched the DS0 circuits, and rand the data over the internet. We saved over $2,000 per month doing this!! The stuff that has to stay serial, I will made accessible over the network.

The hardest part was transitioning everything live, and having as little down time as possible. This company, as well the the parent when merged had over 9 locations across the major LA area, Orange County and Arizona.

Transition Live Transition Closeup Transition Serial

MDR ServersThe only image image I have that shows the final product of this rebuild. Sorry for the low quality, it was taken really quick with my phone.

The first rack contained DVR's Phones, voicemail and mass storage. The mass storage was 3x 3U servers with 8x hard drives in a raid 5 system with 2x hot spares.

The second rack, with a monitor on it, is the KVM location, as well as all the public servers below it.

The third rack, was the legacy application. It was an old SCO server, and required the use of serial ports to connect to remote terminals. I connected the serial ports to a set of console servers, that allowed me to make the serial ports available over the network. Then I just ran terminal emulators on the PC side for the application.

The rack on the far right, is the communications rack, it contains all local site patch panels, all switching private and public, routers, and remote location routing.

The monitors on the wall on the far right were redeployments of old Wyse Terminals, I used these to show the various status of the network, bandwidth, etc...

Along the middle of each rack was 2x 1U PDU's as well.

Well, that's it, thank you for reading....

Why I wont by an iPad

AppleSecurity No Multitasking I am a nerd, lets face it. And I like to multitask, one of my biggest ones is super surfering (ok, I just made it up) That is I use more than one web browser, I am reading one while I wait for a page on the other to load. When it does, I look for the link I need, click it, then continue reading the other browser while it loads. I also like to surf the web while streaming a netflix movie, not on the iPad! No Flash C'Mon, most websites have a piece here or there, and now there is a hole in the webpage cuz apple doesnt like Flash? No Camera Really? My free phone has one. An my newest $399 laptop I can not run whatever I want Want to try a piece of software, not going to happen unless apple aproves it, and its on their store No Simple USB Thats right, you need an adapter to plug in USB devices! No HDMI output Want to watch the video on an HD TV (monitor), sorry, not going to happen Not widescreen Miss that square TV you use to have? Well its back, its call the iPad. File Transfers I dont know how to do it, maybe I am dumb

Monday, November 8 2010

Energy efficiency, a double edge sword

I was thinking today about a debate I had years ago about cigarette companies. Now I won't go into if I am for or against these companies. The discussion I had was about the trickledown effect of stopping these companies, or banning smoking altogether.

These companies are rather large and employ allot of people directly, in the thousands. So if we put an end to them, then there will be thousands of people unemployed.

Let's take it further, who else will suffer, and possibly downsize?

Drivers, the ones who deliver raw products to these companies, and the ones who deliver products related to these companies in other streams.

Cardboard manufactures, all those boxes no longer needed, those companies will have to downsize

Ink suppliers, someone has mix the ink that is used for all the printing on boxes and ads.

As you can see, there are several downstream suppliers that will lose revenue.

Ok, so what does this have to do with Energy Efficiency? Simple, if we lower our costs of electricity be reducing the demand of it, then the suppliers will no longer have the same profit levels. And I don't think that energy companies can advertise with catch slogans and bill boards. What would it say? "Use your blow-dryers, you deserve it, use an electric blanket, you deserve it."

These companies have allot of money invested in infrastructure, poles, underground wiring, towers, yards, employees, trucks, etc...

If they make less money, they will have to cut back on employment; directly and indirectly by reducing resources, and the companies that supply those resources will also have to cut back. Let us assume someone created/invented the miracle box for $100, a 1ft box that plugs into your house and supplies all the power you will ever need! Everyone would buy one! Heck, I would buy 3 or 4.

If everyone had one, then imagine all the people instantly unemployed by the power companies, and their subsidiaries.

Sunday, November 7 2010

Remote Location Network

This is my standard build out for one of our remote locations. loc-rack

This rack contains (top down):

  • 24x port patch panel
  • 24x port switch w/12 ports PoE
  • Firewall
  • Router
  • 4U PC over IP virtual machine server
  • 2U Battery backup

lvn-rack closeup

The FS726TP switch is configure with 2x VLANS, ports 1-12, and 25 are one VLAN, ports 13-24, and 26 are another VLAN.

The first VLAN is PoE on ports 1-24, and this allows us to supply power to our PoE VoIP phones (yellow cables). Port 25 is the uplink for the VoIP system.

The second VLAN, is standard 10/100 with a 1000 on port 26. We connected the end user terminals to ports 13-24 (white cables), and we connect port 26 to our Virtual Machine server.

If power should go out in our building the battery backup will continue to power our phones, as they receive power via PoE.

New telco closet

Here is mini NOC / Telco closet.

Sadly, when the sliding doors were put in, there was not enough room to hold a 4 post rack in the correct orientation, thus, it sits sideways in the corner.

bhrac-closet

The monitors on top are all connected to a single PC and will show various network status from differnt parts of the network, as well as bandwidth graphs of all remote locations.

The left rack is used to hold:

Power Monitors that show line Voltage / Current for each circuit.

A KVM

And the seperate battery backups. One for the comunications rack, video camera system, corp servers, and location servers.

The rack in the middle is the comunication rack, it holds routers, firewalls, switches, and patch panels.

The right, is the 4 post rack, holding video servers, virtual machine servers, PCoIP servers, and raid file servers.

Saturday, November 6 2010

Laser scanner XY, with a single mirror

This was just a fast mockup to test if we can reduce from 2 mirrors two 1. XY Mirror

Instead of having a mirror for the X and a mirror for the Y, I wanted to use a single mirror for both.

In this mockup, I was able to produce this, however, speed is a definate issue, and using just $25 hobby servos do not cut it. Perhaps a fast heli tail servo will do the trick?

Gw INSTEK GOS-630FC

Gw INSTEK GOS-630FC

- page 1 of 2