22 nov 2011

Linux & HP LaserJet Pro P1102w in wireless mode

Restore the factory-set default settings



Follow these steps to restore the product's factory default settings. These steps do not reset page counts, service IDs, or other static product values.

CAUTION:These steps will reset the product's current wireless settings to factory-set default settings. Any custom settings will be lost, and you will need to reconfigure the product's wireless settings.


  1. Press the Power button to turn off the product.

  2. Press the Power button to turn on the product.

  3. The product begins to initialize.
    While the product initializes, press and hold the Cancel button and the Wireless button (in this order) for 10 to 15 seconds (until it print a "Self Test / Device Configuration" page), and then release both buttons.



NOTE: LED lights blink until both buttons are released.

The factory default settings are restored.


Config Wireless Printer




  1. Connect to the Ad Hoc Printer Network
    You should eddit the printer connection: "IPv4 Settings" -> "Method: Link-Local Only"

    Maybe you have to "Disconect and Connect" until you can ping the printer.

    To get the printer IP you have to print a "Self Test / Device Configuration" page (after connecting to the Ad Hoc Printer Network) and check it in: "Network Information" -> "IP Default Gateway" -> PRINTER_IP

    Take in mind that the IP could change during the configuration.

  2. Once you are in the Printer Web-Interface, go to "Networking" and configure your wireless network.

    Once it's configure and working, you should be able to ping the printer in your network.

  3. Install the last version of hplib (http://hplipopensource.com/)

    In the installation process, when detecting the printer, selet de second option "Network/Ethernet/Wireless network (direct connection or JetDirect)" and the printer will be automatically detected.



More information:
http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c02486112&lang=en&lc=en&product=4110396
http://h10032.www1.hp.com/ctg/Manual/c01695231.pdf

4 jun 2011

VIM "command is not available" Ubuntu 10.04

On a "command is not available" error like this one:
E319: Sorry, the command is not available in this version: syntax on


First uninstall all vim instance
sudo apt-get remove vim vim-tiny


And reinstall it
sudo apt-get install vim

19 feb 2011

Android: no cover art in ogg vorbis files

...If the system fails to find cached art, and it fails to find embedded art, it will look in one more place: A file in the same folder as the audio file named "AlbumArt.jpg"...

source: http://androidcommunity.com/forums/189933-post2.html
---

16 oct 2010

Why you should contribute to Open Source

An interesting opinion of why you should contribute to the Open Source.

"...Open Source projects offer you a chance to work on something that you want rather than something that others want you to work on. It is a great opportunity to work on something that is both cool and useful as well as to associate with a well known brand and all the publicity and goodwill it brings. You are free to pick and choose between the thousands of open source projects out there. Moreover, you are free to decide on how much you want to contribute. You won’t have a boss and you won’t have the pressure of deadlines and schedules..."

source: http://shal.in/post/285909694/why-you-should-contribute-to-open-source
---

12 oct 2010

Disable Frame Buffer in Ubuntu 10.04 Server (VirtualBox)

In Ubuntu 10.04 Server with the frame buffer enabled, seems that cause lag in the screen when is used as a guest in VirtualBox. Here is how to disable the frame buffer:

Edit the file "/etc/modprobe.d/blacklist-framebuffer.conf" and add "blacklist vga16fb" (without the quotes). Un-comment "GRUB_TERMINAL=console" in "/etc/default/grub" to prevent GRUB from starting a frame buffer.

source: http://ubuntu-virginia.ubuntuforums.org/showpost.php?p=9343024&postcount=2
---

5 sept 2010

After Ubuntu Lucid Lynx (10.04) installation

Needed extras:
$ sudo apt-get install ubuntu-restricted-extras vorbis-tools flac lame faad rar p7zip unace unzip msttcorefonts ttf-dejavu ttf-xfree86-nonfree

$ sudo /usr/share/doc/libdvdread4/install-css.sh

$ sudo fc-cache


Useful software:
$ sudo apt-get install mplayer nautilus-open-terminal gimp inkscape chromium-browser chromium-browser-l10n gnome-do revelation virtualbox-ose virtualbox-guest-additions skype


Useful development software:
$ sudo apt-get install build-essential linux-headers-$(uname -r)

---

30 ago 2010

Crockford on JavaScript

Douglas Crockford is Yahoo!'s JavaScript architect and a member of the committee designing future versions of the world's most popular programming language. Over first three months of 2010, Douglas delivered his acclaimed series of lectures on the history of JavaScript, its features, and its use. Links to video, transcripts, and photos from each of the events follows...

source: http://yuiblog.com/crockford/
---

git in the real world

Git for the real world: http://robey.lag.net/2008/07/13/git-for-the-real-world.html
More real-world git: http://robey.lag.net/2009/11/29/more-git.html

---

23 ago 2010

PHP Anthem

A new PHP Song:



sources:
http://shiflett.org/blog/2010/aug/php-anthem
http://fracturedvisionmedia.com/FVM005/
---

A successful Git branching model

In this post I present the development model that I’ve introduced for all of my projects (both at work and private) about a year ago, and which has turned out to be very successful. I’ve been meaning to write about it for a while now, but I’ve never really found the time to do so thoroughly, until now. I won’t talk about any of the projects’ details, merely about the branching strategy and release management...

source: http://nvie.com/git-model
---

11 ago 2010

udev: update map between MAC addresses and interface names

...Traditionally, Linux kernels look for ethernet cards and assign interface names based upon the order the cards are detected. Thus if you were to shift the network cards around, or replace them, you may end up with a different interface name for any given card. In recent Debian (and thus Ubuntu) releases, the Udev subsystem creates a map between MAC addresses and interface names, and when it finds a new MAC address it assigns a new ethernet interface name. Thus the first time you create an Ubuntu VM, the VM server assigns a MAC address, and your VM will map it to eth0. If you clone the VM, or move it, the VM server assigns a new MAC address, and your VM maps the new address to eth1. At this point, your network configuration (/etc/network/interfaces) no longer matches the hardware, and your VM no longer sees the network. Oops.

If this is the problem, you will see messages like this in your /var/log/kern.log file:

udev: renamed network interface eth0 to eth1

You can fix this in one of several ways:

1. Change your interface configuration (/etc/network/interfaces) to match the new ethernet interface.
2. Delete the Udev MAC address map (/etc/udev/rules.d/70-persistent-net.rules), reboot, and let Udev rebuild the map.
3. Edit the Udev MAC address map (/etc/udev/rules.d/70-persistent-net.rules) and map the current MAC address back to eth0. This is the preferred solution if you have multiple interfaces defined.

You'll probably need to reboot the VM after any of these changes...

source: http://stackoverflow.com/questions/175876/how-do-i-fix-my-vms-network-connection-if-it-seems-to-be-running-ok-from-the-hos/296274#296274
---

28 may 2010

Why use Spring Python and not just plain python?

I have bumped into articles and forum postings, blog entries, other blog entries, and yet more blog entries. In fact, while writing this blog entry, someone posed the question “what is the aim of Spring Python?” (Click and see my answer.) There are a diverse range of view points, and many in disagreement about the viability of DI in python...

source: http://blog.springpython.webfactional.com/2009/02/01/why-use-spring-python-and-not-just-plain/
---

26 may 2010

The Use of Grids in Website Design

When creating a website one of the most important things to get right
is the layout, the UI – user interface as you would call it, is
something that is crucial to conveying the information and point of
your website. There are many kinds of website layout designs. However
the main point of a website is to convey understanding to the user...

source: http://www.designer-daily.com/the-use-of-grids-in-website-design-6639
---

24 may 2010

Video JS

Video JS is a javascript-based video player that uses the HTML5 video functionality built into advanced browsers. In general, the benefit of using an HTML5 player is a consistent look between browsers...

source: http://videojs.com/
---

19 may 2010

LaTeX résumé Follow-up


Since there was a decent amount of interest in my prior post about composing my résumé in LaTeX, I put together a "template" and an example PDF based off of my actual résumé. Here is the template and you can grab the generated PDF by clicking on the image...





source: http://www.toofishes.net/blog/latex-resume-follow-up/
---

Steve Huffman on Lessons Learned at Reddit




source: http://carsonified.com/blog/dev/steve-huffman-on-lessons-learned-at-reddit/
---

11 may 2010

Free the Foxes

It is essential to have your users operate a browser that supports an appropriate standard on how things are displayed and how things function. Free the Foxes is FREE and is roughly only 25K in size (including JS, CSS and images) and is almost completely customizable...

source: http://www.freethefoxes.com/
---

5 may 2010

What Every Developer Should Know About URLs

I have recently written about the value of fundamentals in software development. I am still firmly of the opinion that you need to have your fundamentals down solid, if you want to be a decent developer. However, several people made a valid point in response to that post, in that it is often difficult to know what the fundamentals actually are (be they macro or micro level). So, I thought it would be a good idea to do an ongoing series of posts on some of the things that I consider to be fundamental – this post is the first instalment...

source: http://www.skorks.com/2010/05/what-every-developer-should-know-about-urls/
---