Archive - Tech RSS Feed

Category Overhaul

I use WordPress to run this website, and it’s the best web publishing platform that I’ve ever worked with. WordPress allows posts to be filed under different categories and tags, but until now I haven’t been using these features in a consistent manner.

Starting today, KylanRobinson.com will feature only three categories:

  • Life – accounts and stories from my personal life.
  • Reviews – my take on books, music, gadgets, and more.
  • Tech – notes and thoughts on programming, web design, science, and technology.

Hopefully, this strict limitation on the number and scope of categories will make KylanRobinson.com more focused and more organized. It also has implications for a future site redesign that I’ve been considering for some time (stay tuned for that!).

This substantial change means that many of my past posts are now listed as ‘Uncategorized’ and that some of the links on this site may be broken. If you find any issues with this category simplification, please let me know and I will address the problems.

What about tags? I will continue to use tags as I have in the past. Tags are meant to be more free-form and spontaneous than categories, and I apply tags to posts by extracting keywords and subjects from the post content.

My Bash Prompt

I do a lot of work using the command line in the Bash shell. It makes sense, then, that I would tweak the Bash prompt to match my personal preference. For me, there are three important pieces of information that need to be displayed:

  1. The time.
  2. User/host information.
  3. Current working directory.

I also like to visually distinguish this data from the actual commands I’m entering. To achieve this, my customized prompt spans two lines.

Here’s the code in my ~/.bashrc file that defines the prompt:

export PS1=”\[\e[36;1m\]\t \[\e[0m\]<<>> \[\e[34;1m\]\u@\h \[\e[0m\]<<>> \[\e[31;1m\]\w \r\n\[\e[0m\]\$ “

Feel free to give it a try and let me know what you think.

Amazon Kindle

Kindle

I got an Amazon Kindle for Christmas! What an awesome device. It’s remarkably thin and light, and it holds up to 1,500 books. The E Ink screen is unbelievably paper-like, allowing for glare-free reading in any light.

The Kindle is already changing the way I read. The 3G connectivity means that there’s a gigantic library of books at my fingertips. With such easy access to titles, it’s not hard to find the motivation to read. At my current rate, I’m reading a book every two days!

I was happy to find that the Kindle Store offers a large number of free books. So far, I’ve downloaded more than 40 titles at no cost! Many literary classics have expired copyrights, so they are freely available for download. With so much to read, I don’t think my book list will ever be empty again.

The Kindle also has a couple of promising experimental features. First is the web browser. It’s slightly difficult to navigate, and many web pages aren’t displayed correctly. With the free 3G connection, though, it could be quite handy in a pinch. Second is the text-to-speech feature, which seems quite good. It does a nice job of pronouncing words, and even makes an attempt at using  voice inflection. I don’t think I’d want to listen to an entire book this way, but it is an impressive feature.

Google Code, SVN и NetBeans

(Russian version of this post, generated by Google Translate)

Данный учебник предназначен, чтобы объяснить, как использоватьSubversion для участия в Google Code проектов с использованиемNetBeans в среде Windows.

Определения:
Во-первых, ряд определений. Subversion (SVN) это система контроля версий, используемых в проектах разработки программного обеспечения. Он регистрирует всю историю проекта и могут быть использованы для координации усилий различных разработчиков. Google Code является проектом хостинга “Google. Она предусматривает целый ряд различных инструментов, которые могут способствовать разработке, реализации и внедрения программного обеспечения. NetBeans представляет собой интегрированную среду разработки (IDE) при поддержке Sun Microsystems. Windows является популярная операционная система от Microsoft опубликовала. Этот учебник будет конкретно сосредоточить внимание на Windows XP, хотя оно может быть применимо к другим версиям, также.

Условия:

  • В учетной записи Google.
  • Участие в проекте Google Code.
  • Компьютер под управлением Windows, с NetBeans установлены.

Установка SVN:
В целях retrive последней версии исходного кода и загружать изменения, необходимо установить клиент Subversion. Есть ряд клиентов SVN доступны, но один из лучших вариантов для окон Tortoise SVN. Установке находится здесь. После загрузки и установки этой программы на компьютере должен быть перезапущен.

Google Code Пароль:
Один из самых непонятных вещей о Google Code является то, что пользователи могут войти в сайт со своим паролем аккаунта Google, а код Checkout требует пароль Google Code. (Имя пользователя для обоих этих мероприятиях то же самое.) Вот шаги для поиска Google аккаунт кодекс пароль:

  • Перейти к проекту Google Code. URL должна быть http:// <project_name>. Googlecode.com /.
  • Войдите, используя аккаунт Google.
  • Щелкните на вкладке Источник.
  • Нажмите на ссылку Checkout.
  • Нажмите на ссылку с именем googlecode.com пароль.
  • Запишите пароль. Это будет необходимо позже.

Извлечение код:
Целесообразно установить файловую структуру каталогов для организации исходного кода проекта. Under My документов, создайте папку с именем NetBeans. Внутри папки NetBeans, создать новую папку с именем проекта. Эта папка будет содержать все исходные файлы проекта.Следующие шаги будут проверить исходный код и загрузить его в папку проекта:

  • Используйте Windows Explorer для входа в папку проекта.
  • Щелкните правой кнопкой мыши в окне, и выберите пункт “SVN Checkout …” из списка. Это вызывает кассе Tortoise SVN диалог.
  • В поле “URL хранилища” Enter HTTPS: / / dupysoft-tracs.googlecode.com/svn/trunk /
  • В разделе “Оформить заказ каталога” найдите … \ Мои документы \ NetBeans \ <project_name>.
  • Нажмите кнопку ОК.
  • Введите пользователей Google Code имя и пароль.

Исходный код должен появиться в папке проекта. Оформить заказ завершен.

Открытие исходного кода в среде:

  • Начало применения NetBeans. Выберите File-> Новый проект … -> Проект Java с существующими источниками
  • Нажмите “Next”
  • В поле “Название проекта” введите имя проекта.
  • Под заголовком “Папка проекта” перейдите к папке, в среде “Мои документы”.
  • Нажмите “Next”
  • Нажмите кнопку “Добавить папку …” и выберите папку проекта.
  • Нажмите кнопку “Далее” и затем “Finish”

Обновления исходного кода:
Перед каждой сессией редактирования, это хорошая идея обновлять локальные копии исходного кода. Это будет включать все проверили в изменениях от всех разработчиков, работающих над проектом. Для обновления источника, просто перейдите в папку проекта, щелкните правой кнопкой мыши и выберите “SVN Обновить”.

Проверка в исходный код:
После изменения кода, проверка на источник будет двигаться изменения на локальном компьютере в хранилище Google Code. Чтобы проверить в исходный код, перейдите в папку проекта, щелкните правой кнопкой мыши и выберите “SVN Commit …” В окне сообщения, введите краткое описание изменений, которые были сделаны. Нажмите кнопку “ОК”, чтобы отправить изменения на Google Code.

Wireless Print Server

Today I bought a wireless print server, a Netgear WGPS606. It was posted on the bulletin board at work for a good price. It works great, but I had a couple of issues with the setup. The instruction manual for the wireless print server was designed for Windows XP, so you’ll need to follow the following instructions if you’re using Windows Vista or Ubuntu:

Windows Vista:

(taken from Lockergnome.com)

  1. Open Printers Control Panel
  2. Click the “Add a printer” button at the top of the window
  3. Click “Add a local printer”
  4. Then select “Create a new port” and change the type of port to Standard TCP/IP
  5. Click Next
  6. Change Device type to TCP/IP Device, enter the ip address of your server and give it a port name. (The port name really isn’t important as long as it isn’t already being used by another port. Netgear uses the format IP_[server's address]P1 and IP_[server's address]P2)
  7. Unselect “Query the printer and automatically select the driver to use” and press next
  8. Vista will try to detect the port, but will fail.
  9. On the next screen set Device Type to Custom and press settings.
  10. Protocol should be LPR and the Queue name should be L1 for port 1 and L2 for port 2.
  11. Check the LPR Byte Counting Enabled and press ok.
  12. Press next and find your driver and press next.

Ubuntu:

  1. Go to System > Administration > Printing
  2. Click ‘New’
  3. Select ‘Other’ and enter lpd://[server IP address]/L1
  4. Click ‘Forward’
  5. Select the correct printer driver and click ‘Forward’
  6. Give a name to the printer

Aside: The Ubuntu setup takes half as many steps as the Windows setup. Not bad for a free and open source operating system!

Page 4 of 11« First...«23456»10...Last »