User Registration Now Required - Doh!

April 21st, 2008

You know, it is too bad that a few dicks have to make life tougher on everyone else.  Unfortunately, due to the massive amount of spam I keep getting, I am going to have to require user registration.  This really pisses me off because I hate having to register everywhere on the damn Internet.  I can however promise you that your email is not going anywhere or being shared with anybody because the last thing I want to do is inflict further junk e-mail on my readers.  If you are however partial to spam advertisements for viagra, penis enlargement pills and other products for guys who cant get it up, I am sure you can find somewhere on the Internet to give up your email and get nuked.  It just wont be here!

Compiled PERL

April 1st, 2008

This is a great article on compiled PERL.
http://www.expertsrt.com/tutorials/Matt/perlPAR.html

~The Bit Boy

Perl Script for Creating Zoomify XML & Images

April 1st, 2008

I found this code for slicing a high resolution image for the zoomify image viewer.  Take a look if you are interested.  The code is free to distribute.
~Cheers
slice.pl

Penryn MacBook Pro 3D Mark 06 Benchmarks

March 1st, 2008

Ok people.  Everyone has been asking for benchmarks on the new MacBook Pro with the Intel Penyrn processor.  So, courtesy of the Bit Boy, here it is.  This is a standard hardware configuration of the 15″ model.  Highlights include 2.5Ghz Core2, 2GB ram, 512MB GeForce 8600GT and a 250GB 5400RPM HD.  If you are looking for some other specs, dont be a bitch and read below.  On a side note, I am quite impressed with this latest MacBook as it considerably out performs my 1st gen MacBook Pro.

Score

 4116 3DMarks

 

 

Name

Untitled

   

 

Description

 

 

 

Date

Mar 01, 2008 18:54 CST

 

 

Case

Not specified

 

 

Power supply

Not specified

 

 

Operating System

Microsoft Windows XP

 

 

 

 

 

System type

32-bit

 

 

Motherboard manufacturer

Apple Inc.

 

 

Motherboard model

Mac-F42C89C8

 

 

Hard drive model

Hitachi HTS542525K9SA00

 

 

Memory

2048 MB

 

 

Processor

Intel Core 2

 

 

Processor

 

 

Processor clock

2494 MHz

 

 

Physical and logical processors

1 / 2

 

 

Multicore

2 Processor Cores

 

 

FSB

200 MHz

 

 

Display information

 

 

 

Graphics card vendor

Nvidia Corp

 

 

Graphics memory

512 MB

 

 

Core clock

0.0 MHz

 

 

Memory clock

0.0 MHz

 

 

Driver name

NVIDIA GeForce 8600M GT

 

 

Driver version

6.14.11.6763

 

 

Driver status

WHQL - Not FM Approved

 

 

Linked display adapters

No

 

 

Graphics Card

NVIDIA GeForce 8600M GT

 

 

 

 

Benchmark settings

Program Version

3DMark06 Revision 1 Build 0

 

Resolution

1280×1024

 

Full Screen Anti-Aliasing

None

 

Texture Filtering

Optimal

 

Vertex Shader Profile

3_0

 

Pixel Shader Profile

3_0

 

Force Full Precision

No

 

Disable Post-processing

No

 

Force Software Vertex Shaders

No

 

Force Software FP Filtering

No

 

Disable Harware Shadow Mapping

No

 

Colour Mipmaps

No

 

Repeat Count

Off

 

Fixed Framerate

Off

 

Main test results

3DMark Score

4116 3DMarks

 

SM 2.0 Score

1622

 

SM 3.0 Score

1514

 

CPU Score

2296

 

Test Results

Graphics Tests

    1 - Return to Proxycon

12.71 FPS

 

    2 - Firefly Forest

14.33 FPS

 

CPU Tests

    CPU1 - Red Valley

0.72 FPS

 

    CPU2 - Red Valley

1.16 FPS

 

HDR Tests

    1 - Canyon Flight (SM 3.0)

13.42 FPS

 

    2 - Deep Freeze (SM 3.0)

16.85 FPS

 

Feature Tests

    Fill Rate - Single Texturing

N/A

 

    Fill Rate - Multi Texturing

N/A

 

    Pixel Shader

N/A

 

    Vertex Shader - Simple

N/A

 

    Vertex Shader - Complex

N/A

 

    Shader Particles (SM 3.0)

N/A

 

    Perlin Noise (SM 3.0)

N/A

 

Batch Tests

    8 Triangles

N/A

 

    32 Triangles

N/A

 

    128 Triangles

N/A

 

    512 Triangles

N/A

 

    2048 Triangles

N/A

 

    32768 Triangles

N/A

 

 


 

New or Old 2.5 & 2.6 Ghz AMD Barcelona Chips?

February 16th, 2008

As you read this, the latest version of AMD Barcelona chips should be arriving at the Fry’s Electronics near you.  After reading an article about the delivery of these chips, I began to ponder whether they are really new chips at all.  Now, just so you don’t misinterpret me, I mean physically new.  As in, were they manufactured recently, or have they been sitting in a warehouse in inventory for some time.

Right about now, you are probably thinking the Bit Boy has gone nuts.  But seriously, think about these facts.

1.)  The new chips are the same stepping as the old ones.  The design has not physically changed.  This means they still contain the bug that has reportedly been reducing speeds.  See AMD’s website for the errata.

2.)  These chips are still 65nm process.

3.)  Phenom CPUs are notoriously bad for over-clocking.  Probably because they are already cooked from the factory.

In the semiconductor business, its common for a variety of processors of varying speeds to actually be the same exact chip.  In many cases manufacturers clock them down to service varying markets.  This is why overclocking has been popular among hardware hackers for years.  Usually the chips are tested after they are manufactured and the ones with better tolerances test better and are clocked higher.

Now why would AMD  wait before releasing these chips?  I mean, they are behind Intel right?  True.  I would guess that only a small number of these CPUs were testing out capable of the higher clock speeds.  So my assumption is that AMD released the lower clock chips while stockpiling the faster ones.  If the faster chips only accounted for 5% to 10% of production.  Then you would have to stockpile for a few months before you had adequate quantity to go to market.  Sure, you would eventually run out of inventory, but hopefully, you would fill demand while transferring to the 45nm process necessary to push forward to higher clock speeds.  This strategy might help you catch up with Intel a bit.

Now, if there are any AMD engineers out there, I would love to hear from you!

Openbravo ERP Installation on Ubuntu 7.1 Server

February 14th, 2008

If you have found this, you are probably saying… “Help me Bit-Boy, I’m just a newb!  Share with me your knowledge, wisdom and God-like *nix skills!” (No, thats not a typo newb!)  So, in a moment of kindness, I took it upon myself to document how to install Openbravo ERP.  Yes, after this, you will probably explain to your client just how insanely difficult this software is to configure and that only you at your very reasonable rate of (insert ridiculous amount of $ here) could get it done.  Just remember that the Bit Boy helped you out and beer money is greatly appreciated.

Note:  This installation was completed from a clean installation of Ubuntu 7.1 Server.  No desktop environment was installed. (Didn’t I tell you my *nix powers were God-like?)Even though I have proven my superior intelligence yet again, you should be able to use the same process from the desktop.  If you have just installed Ubuntu server and are trying to figure out how to get the GUI installed, just type: sudo apt-get install ubuntu-desktop at the command line.

Step 1:  Enable Ubuntu Extra Packages

sudo gedit /etc/apt/sources.list Edit and remove the # from the beginning of lines 43 and 44.  This is necessary to install the correct Java Runtime Environment and Java Development Kit.

Step 2: Install Necessary Packages (the easy way) 

sudo apt-get updatesudo apt-get install sun-java6-jdk sun-java6-jre libpg-java postgresql-8.2 tomcat5.5 tomcat5.5-admin tomcat5.5-webappssudo apt-get dist-upgrade [optional - upgrades all currently installed packages]

If you dont feel like typing all of that, you can copy and paste it in, minus the note at the end of course.

Step 3: Setup Postgres Administrator User

  1. sudo su postgrespsql 
  2. Now, in the Postgres client: ALTER USER postgres WITH PASSWORD ‘your perferred password’;
  3. \q to exit

Step 4: Get Openbravo and Begin Installation 

  1. wget [Openbravo installer URL]
  2. sudo chmod a+rwx [Openbravo installer file]
  3. sudo ./[Openbravo installer file]

Generally, you can find the latest installer file here http://sourceforge.net/projects/openbravo/

Step 5: Set Environment Variables

  1. echo ‘JAVA_HOME=”/usr/lib/jvm/java-1.5.0-sun”‘ | sudo tee -a /etc/environment
  2. echo ‘JRE_HOME=”/usr/lib/jvm/java-1.5.0-sun”‘ | sudo tee -a /etc/environment
  3. echo ‘CATALINA_HOME=”/usr/share/tomcat5.5″‘ | sudo tee -a /etc/environment
  4. echo ‘CATALINA_BASE=”/var/lib/tomcat5.5″‘ | sudo tee -a /etc/environment
  5. echo ‘CATALINA_OPTS=”-server -Xms384M -Xmx512M”‘ | sudo tee -a /etc/environment
  6. sudo gedit /etc/init.d/tomcat5.5  There is a problem with JDK 1.5.0_13 and the jsvc binary used in the Apache Tomcat daemon script. Modify it [/etc/init.d/tomcat5.5], by setting the LD_LIBRARY_PATH variable pointing to the path where the libawt.so shared library is located.
    Next, due to the security policies of debian’s tomcat package, it is necessary to either create a rule or disable it. Otherwise it will refuse to load the openbravo context. To disable it, edit /etc/init.d/tomcat5.5 and change TOMCAT5_SECURITY=YES into TOMCAT5_SECURITY=NO.

Step 6: Answer Openbravo’s Questions and Wait 1-2 Hours 

  1. Installation Directory: [Just Type Enter]
  2. Attachments Directory: [Just Type Enter]
  3. Installation Type: [Just Type Enter]
  4. Installation Type: [Just Type Enter]
  5. Database: 1
  6. PostgresJava Directory: [Just Type Enter]
  7. Ant Directory: /usr/share/ant
  8. Tomcat Directory: /usr/share/tomcat5.5
  9. Domain: Enter your domain, if you dont know what a domain is, you are an idiot.  If you are an idiot, just type localhost or your static IP Address.
  10. Port: 8180 Note: This is specific to the Ubuntu installation, normally this value would be the secondary HTTP port 8080.  If you want to change it, that is find, just remember to go back and edit the tomcat configuartion files to indicate this port as well.
  11. Context Name: [Just Type Enter]
  12. PostgreSQL Directory: /usr/lib/postgresl/8.2/bin
  13. Database Host: [Just Type Enter]
  14. Database Port: [Just Type Enter]
  15. Database Name: [Just Type Enter]
  16. Postgres Password: Enter the password you selected in step 3.
  17. Username: [Just Type Enter]
  18. Password: Create another password
  19. Continue?:  y
  20. Now, just kick back, relax and crack open a nice cold beer, look at pictures of Britney Spears or whatever you newbs do.

Step 7: Restart Tomcat

  1. sudo /etc/init.d/tomcat5.5 restart

Step 8: Now Login Newb!

  1. http://yourdomain:8180/openbravo or http//localhost:8180/openbravo or http://yourip:8180/openbravo (That should give you enough options.  I dont want anyone sending me emails saying “But Bit-Boy, your instructions are wrong, my browser cant find the server”)
  2. Login: Openbravo  Pass:openbravo   (Note the caps in the Login!)

This document is copyright 2008 by the Bit-Boy’s-Blog all rights reserved.  Got that bitches!?  You may NOT, I repeat NOT reproduce this content in any way without the express permission of the Bit Boy himself.  Should you violate these copyright restrictions I will have no choice but to send this woman over to sit on you.

eTiny Web-Client Installation

February 13th, 2008

If you receive an error during the TurboGears installation, you probably need to install the Python developer libraries.  At an su command line, enter the following:

apt-get install python2.4-dev

Tiny-ERP Debian Installation

February 13th, 2008

I found these instructions on another site and they turned out to be quite helpful.  Initially I tried installing TinyERP on Ubuntu 7.10, but for a variety of reasons, it was more trouble than it was worth.  We switched over to Debian (which Ubuntu is based on) and the installation went without a hitch.

  • Pre-dependencies
    • PostgreSQL server
  • Install TinyERP server dependencies
    • Python 2.4
      • Incleded in standard base Debian 4.0 R1
    • PostgeSQL client
      • apt-get install postgresql-client
        • Default version is postgresql-7.4
    • Python and PostgreSQL adaptor
      • apt-get install python-psycopg
    • Python time zone
      • apt-get install python-tz
    • libxml2 and python binding
      • apt-get install python-xml python-libxml2
    • libxslt and python binding
      • apt-get install python-libxslt1
    • Reportlab pdf generator for Python
      • apt-get install python-reportlab
    • Python imaging library
      • apt-get install python-imaging
    • Graph visualization software
      • apt-get install graphviz
    • Pyparsing library
      • apt-get install python-pyparsing
  • Get TinyERP server source file and install
    • wget http://tinyerp.com/download/stable/source/tinyerp-server-4.2.0.tar.gz
    • tar vxf tinyerp-server-4.2.0.tar.gz
    • cd tinyerp-server-4.2.0
    • sudo python setup.py install
      • Installation folder is /usr/lib/python2.4/site-packages/tinyerp-server
  • Create TinyERP database
    • su - postgres
    • /usr/local/pgsql/bin/createdb –encoding=UNICODE terp
      • Assume PostgreSQL homed at /usr/local/pgsql and creating database named terp
  • Startup TinyERP Server
    • cd /usr/lib/python2.4/site-packages/tinyerp-server
    • sudo python tinyerp-server.py -d terp -r postgres -w  –db_host=localhost –db_port=5432 –logfile=”tinyerp-server.log”

      • Assume the database name is terp, database owner is postgres, database server located at the same machine, database listening port is 5432, and logfile is tinyerp-server.log right in the current directory.
      • You can make a batch script (ex. run.sh) to shorten the long command typing.