<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-4003912748989872553</atom:id><lastBuildDate>Fri, 11 Dec 2009 01:08:51 +0000</lastBuildDate><title>StoKen Tips and Tricks</title><description>A blog that describes various tips and tricks I have learned over time.  They have all helped me and may help you.</description><link>http://stoken-tips-and-tricks.blogspot.com/</link><managingEditor>noreply@blogger.com (uuklanger)</managingEditor><generator>Blogger</generator><openSearch:totalResults>42</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-5208165025173868883</guid><pubDate>Sun, 08 Nov 2009 21:19:00 +0000</pubDate><atom:updated>2009-11-09T10:05:16.955-05:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>PROGRAMMING</category><category domain='http://www.blogger.com/atom/ns#'>REVIEW</category><category domain='http://www.blogger.com/atom/ns#'>LINUX</category><title>Dell Mini 10v Netbook Running Ubuntu</title><description>&lt;span style="font-weight: bold; font-style: italic;"&gt;Overview&lt;/span&gt;&lt;br /&gt;A few month ago, I started looking for a small portable computer.  I ended up targeting netbook class portable computers.   I needed something small and reasonably powerful to allow me to work where ever I happened to be.  I also needed something that  I could put linux on since that is what I prefer over other operating systems.  I ended up getting a &lt;a href="http://www.dell.com/content/topics/segtopic.aspx/laptop-mini2?c=us&amp;amp;cs=19&amp;amp;l=en&amp;amp;s=dhs"&gt;Dell Mini 10v netbook&lt;/a&gt; for use when traveling.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Specifications&lt;/span&gt;&lt;br /&gt;I got the Mini 10v version which is configured as following:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span&gt;Intel® Atom Processor® N270 (1.6GHz/533Mhz FSB/512K cache)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;10.1" Widescreen Display (1024x600)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;1GB DDR2 SDRAM&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;120G SATA HD&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;Intel Graphics Media Accelerator (GMA) 950&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;56WHr Lithium-Ion Battery (6-cell)&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;Ubuntu 8.10 Linux&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;Webcam (1.3 megapixel)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;3 USB&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;1 VGA&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;Headphone/Mic&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;I got it with the default color case which is black.  The only upgrade I got was the battery which was bumped from a 3-cell to a 6-cell.&lt;br /&gt;&lt;br /&gt;Aside from that, I picked up a cheap-o portable USB mini mouse at a local computer store since I hate touchpads (only option for the mini) and a &lt;a href="https://www.amazon.com/gp/product/B001F7HI02/ref=oss_T15_product"&gt;&lt;span class="item-title"&gt;Caselogic PLS-9Black Ultra Portable 7-Inch - 10-Inch Laptop Sleeve (Black)&lt;/span&gt;&lt;/a&gt;  So I could safely carry my netbook in a separate compartment from my main laptop.&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;&lt;/span&gt;&lt;br /&gt;The unit comes in a very small and tidy box with just the things you need.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Netbook&lt;/li&gt;&lt;li&gt;Power supply&lt;/li&gt;&lt;li&gt;CD with OS and such&lt;/li&gt;&lt;li&gt;Small getting started guide&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;After charging the battery fully, I booted it up.  The following are my impressions about the Dell Mini 10v.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Screen&lt;/span&gt;&lt;br /&gt;The screen is small.  Duh?  At 10.1" with 1024x600 resolution, it does not provide much heights to work with.  Lets just say, any code I develop on it is even more modular and concise then normal since a page on the mini is shorter then on just about anything else.&lt;br /&gt;&lt;br /&gt;For python programming (first job it was tasked with) I had no problems.  Emacs is lean and well suited for this computer.&lt;br /&gt;&lt;br /&gt;For things like &lt;a href="http://www.netbeans.org/"&gt;Netbeans&lt;/a&gt;, you will want to collapse just about everything except the editor.  I have not needed to do heavy programming yet but I suspect it is up to the task.&lt;br /&gt;&lt;br /&gt;It does support a VGA output.  So far I have not been able to get an extended desktop to work.   I can, however, pump all video output to an external monitor or projector.  Extended desktop would be a serious advantage for someone who wants to connect this to an external monitor when at home or work.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Image Quality&lt;/span&gt;&lt;br /&gt;Fantastic.   The screen is bright and clear.  I have had no issues reading documentation, code, emails, and blogs using it.  I like the 10v screen better then my main &lt;span style="font-style: italic;"&gt;Latitude E6500&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Performance&lt;/span&gt;&lt;br /&gt;The Intel Atom process does a fine job.  It is not very beefy but I have not had noticeable waits.  I am not a gamer so I cannot speak for that.   For business work and casual Internet work, the performance is just fine.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Ubuntu 8.10&lt;/span&gt;&lt;br /&gt;I commend Dell for pre-installing Ubuntu 8.10.  It is great that they choose hardware that will work for more then just Windows.   Ubuntu 8.10 works well out of the box.  It doesn't have any "crap ware" that you usually get with a non-Apple computer.  I powered it on, answered a few question and was up and running.&lt;br /&gt;&lt;br /&gt;However, I upgraded to 9.04 almost right away since it was more mature.   To upgraded, I just downloaded the image and flashed it to a pen drive.  After booting and following the base instructions, install was a snap.  There were absolutely no issues at all upgrading.  All hardware was detected and everything came up perfectly.  Even the webcam.&lt;br /&gt;&lt;br /&gt;When Ubuntu 9.10 came out, I upgraded that day using the standard Ubuntu network upgrade.   Again, no issues.  A perfect install/update.&lt;br /&gt;&lt;br /&gt;Why not Windows XP?  Well, after installing all the extra windows applications + virus scanner, I would be dealing with a pretty sluggish computer.    With XP, a real time virus scanner is a must.  Especially on a system that is designed to be used for travel.   &lt;br /&gt;&lt;br /&gt;Overall Linux seems better suited to leaner systems.  Plus, it has everything I need to be productive out of the box.  Linux is just my personal preference. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Battery&lt;/span&gt;&lt;br /&gt;The one upgrade I did for my netbook was to get a bigger battery.  The 6-cell is about $35 more and well worth it.    On a long flight with my wireless off, I had power for just about the entire time.  I was quite surprised actually.&lt;br /&gt;&lt;br /&gt;To date, I only use my netbook on battery and the battery life is still very good.  The battery life will be less with wireless on but it is still very long for a portable computer.&lt;br /&gt;&lt;br /&gt;With the 6-cell battery, there is a long round strip that ticks out the bottom of the netbook.  At first I hated this since it put a bulge on the back.  I got over it once I realized that it helped keep it cool and put the whole thing at a slight angle for better and easier typing.     The sleeve I got stretches to accommodate the bulge from the battery.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Keyboard&lt;/span&gt;&lt;br /&gt;For something so small, the keyboard is great.  It has the extra windows keys between control and alt that work great with Ubuntu.  For me, the feel is very good and I can type fast on it.&lt;br /&gt;&lt;br /&gt;For Ubuntu, I suggest going into the CMOS setup of the netbook (accessed when you see the dell logo during boot) and set the function keys (F1-F12) to be function versus multi-media.    For me that is a personal preference.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Touchpad&lt;/span&gt;&lt;br /&gt;Before I talk about the touchpad, I have to confess, I hate all touchpads.  They just don't work for me very well.  Especially when I am doing graphical programming.&lt;br /&gt;&lt;br /&gt;Of all the touchpads inflicted on me, this is probably one of the worst I have used.  Dell made a mistake by mixing the buttons and touchpad area.  I can use it but others I have used work better.   For me, I don't care since I got a cheap mini-mouse that plugs into a USB port.   When the mouse is not plugged in, the touchpad does fine.&lt;br /&gt;&lt;br /&gt;I wish it came with an inteli-stick option like the latitude or thinkpad series laptops.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Usability&lt;/span&gt;&lt;br /&gt;Even being so small, Dell did a good job balancing the size and usability.  I can be productive on this unit.  I get the benefit of portability and quick boot up times.  The keyboard is great and the screen is clear.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Overall Opinion&lt;/span&gt;&lt;br /&gt;I am happy with my Dell Mini 10v.  Although I bought it for travel, I find I use it more then I expected.  It follows me to meetings at work and around the house.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Pros&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Great battery life&lt;/li&gt;&lt;li&gt;Good quality screen&lt;/li&gt;&lt;li&gt;Proper keyboard&lt;/li&gt;&lt;li&gt;Runs Ubuntu 8.10, 9.04, 9.10 like a champ&lt;/li&gt;&lt;li&gt;3 USB ports.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-style: italic;"&gt;Cons&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Touchpad&lt;br /&gt;&lt;/li&gt;&lt;li&gt;External VGA out could support extended desktop.&lt;/li&gt;&lt;/ul&gt;Hope this feedback helps.&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-5208165025173868883?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2009/11/dell-mini-10v-netbook-running-ubuntu.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>2</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-2042004398805371400</guid><pubDate>Sun, 08 Nov 2009 03:08:00 +0000</pubDate><atom:updated>2009-11-14T01:39:09.150-05:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>CONFIG</category><category domain='http://www.blogger.com/atom/ns#'>PROGRAMMING</category><category domain='http://www.blogger.com/atom/ns#'>HOWTO</category><title>Emacs Configuration .emacs file</title><description>&lt;span style="font-weight: bold; font-style: italic;"&gt;Overview&lt;/span&gt;&lt;br /&gt;The following is my .emacs file for reference.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;.emacs Configuration&lt;/span&gt;&lt;br /&gt;&lt;pre class="code" style="border-left: 3px solid rgb(204, 204, 204); padding: 0.5em; margin-left: 2em;"&gt;;; -*- lisp -*-&lt;br /&gt;;;&lt;br /&gt;;; (c)2009 StoKen Software by uuklanger@gmail.com&lt;br /&gt;;;&lt;br /&gt;;; 2009.11.13 - updated for emacs23&lt;br /&gt;;; 2009.11.14 - added settings for font and height/width&lt;br /&gt;;;&lt;br /&gt;;; ============================================================================&lt;br /&gt;;; Setup Keyboard&lt;br /&gt;;; ============================================================================&lt;br /&gt;&lt;br /&gt;(global-set-key [home] 'beginning-of-line)&lt;br /&gt;(global-set-key [end] 'end-of-line)&lt;br /&gt;(global-set-key [delete] 'delete-char)&lt;br /&gt;(global-set-key [C-home] 'beginning-of-buffer)&lt;br /&gt;(global-set-key [C-end] 'end-of-buffer)&lt;br /&gt;&lt;br /&gt;;; ============================================================================&lt;br /&gt;;; Emacs customize section&lt;br /&gt;;; ============================================================================&lt;br /&gt;&lt;br /&gt;; Window Colors&lt;br /&gt;(set-background-color "DarkSlateGray")&lt;br /&gt;(set-foreground-color "Wheat")&lt;br /&gt;(set-cursor-color "Orchid")&lt;br /&gt;(set-mouse-color "Orchid")&lt;br /&gt;(set-default-font "DejaVu Sans Mono-8")&lt;br /&gt;(set-frame-height (selected-frame) 50)&lt;br /&gt;(set-frame-width (selected-frame) 80)&lt;br /&gt;&lt;br /&gt;; Turn off toolbar (toggle)&lt;br /&gt;(tool-bar-mode)&lt;br /&gt;&lt;br /&gt;; Display time&lt;br /&gt;(display-time)&lt;br /&gt;&lt;br /&gt;; Show column number&lt;br /&gt;(column-number-mode t)&lt;br /&gt;&lt;br /&gt;; Show line numbers&lt;br /&gt;(line-number-mode t)&lt;br /&gt;&lt;br /&gt;; FAQ 34: Highlight regions of text&lt;br /&gt;(transient-mark-mode t)&lt;br /&gt;&lt;br /&gt;; FAQ 66: font-lock-mode for all major modes&lt;br /&gt;(global-font-lock-mode t)&lt;br /&gt;(setq font-lock-maximum-decoration 't)&lt;br /&gt;&lt;br /&gt;; FAQ 67: Only scroll one line when moving past screen&lt;br /&gt;(setq scroll-step 1)&lt;br /&gt;(setq scroll-conservatively 1)&lt;br /&gt;&lt;br /&gt;; Dont show the GNU splash screen&lt;br /&gt;(setq inhibit-startup-message t)&lt;br /&gt;&lt;br /&gt;; Make all "yes or no" prompts show "y or n" instead&lt;br /&gt;; (fset 'yes-or-no-p 'y-or-n-p)&lt;br /&gt;&lt;br /&gt;;; Enable wheelmouse support by default&lt;br /&gt;(cond (window-system&lt;br /&gt;    (mwheel-install)&lt;br /&gt;))&lt;br /&gt;&lt;br /&gt;; Ensure we stay in UNIX mode for EOL char&lt;br /&gt;(setq inhibit-eol-conversion t)&lt;br /&gt;&lt;br /&gt;; if we compile, ensure ouput scrolls&lt;br /&gt;(setq compilation-scroll-output t)&lt;br /&gt;&lt;br /&gt;;; ============================================================================&lt;br /&gt;;; My preferred key bindings&lt;br /&gt;;; ============================================================================&lt;br /&gt;&lt;br /&gt;; Set C-g to goto-line&lt;br /&gt;(global-set-key "\C-cg" 'goto-line)&lt;br /&gt;&lt;br /&gt;;; ============================================================================&lt;br /&gt;;; CC Mode setup&lt;br /&gt;;; ============================================================================&lt;br /&gt;&lt;br /&gt;(defun stroustrup-common-hook ()&lt;br /&gt;     (c-set-style "cc-mode")&lt;br /&gt;     (setq tab-width 4 indent-tabs-mode nil)&lt;br /&gt;)&lt;br /&gt;(add-hook 'c-mode-common-hook 'stroustrup-common-hook)&lt;br /&gt;&lt;br /&gt;;; ============================================================================&lt;br /&gt;;; Perl Mode setup&lt;br /&gt;;; ============================================================================&lt;br /&gt;&lt;br /&gt;(defun perl-common-hook ()&lt;br /&gt;     (setq tab-width 4 indent-tabs-mode nil)&lt;br /&gt; (setq perl-indent-level        4&lt;br /&gt;    perl-font-lock                 t&lt;br /&gt;    perl-electric-lbrace-space     nil&lt;br /&gt;    perl-electric-parens           nil&lt;br /&gt;    perl-electric-linefeed         t&lt;br /&gt;    perl-electric-keywords         nil&lt;br /&gt;    perl-info-on-command-no-prompt t&lt;br /&gt;    perl-clobber-lisp-bindings     t&lt;br /&gt;    perl-lazy-help-time            1)&lt;br /&gt;)&lt;br /&gt;(add-hook 'perl-mode-hook 'perl-common-hook)&lt;br /&gt;&lt;br /&gt;;; ============================================================================&lt;br /&gt;;; Other hooks&lt;br /&gt;;; ============================================================================&lt;br /&gt;&lt;br /&gt;; turn on auto fill mode when editing text files&lt;br /&gt;&lt;br /&gt;(add-hook 'text-mode-hook 'turn-on-auto-fill)&lt;br /&gt;&lt;br /&gt;;; ============================================================================&lt;br /&gt;;; Runs Scripting Languages Program using compile key bindings&lt;br /&gt;;;&lt;br /&gt;;; if you have another lanugage, simply create a ____-run defun and add an if&lt;br /&gt;;; statement to script-run()&lt;br /&gt;;; ============================================================================&lt;br /&gt;&lt;br /&gt;(defun python-run ()&lt;br /&gt;"Use compile to run python programs"&lt;br /&gt;(interactive)&lt;br /&gt;(message "Running python for buffer %s." (buffer-name))&lt;br /&gt;(compile (concat "python " (buffer-name)))&lt;br /&gt;)&lt;br /&gt;(defun perl-run ()&lt;br /&gt;"Use compile to run perl programs"&lt;br /&gt;(interactive)&lt;br /&gt;(message "Running perl for buffer %s." (buffer-name))&lt;br /&gt;(compile (concat "perl -w " (buffer-name)))&lt;br /&gt;)&lt;br /&gt;(defun script-run ()&lt;br /&gt;"Use to run a script"&lt;br /&gt;(interactive)&lt;br /&gt;(if (equal (file-name-extension(buffer-name)) "py")&lt;br /&gt; (python-run))&lt;br /&gt;(if (equal (file-name-extension(buffer-name)) "pl")&lt;br /&gt; (perl-run))&lt;br /&gt;)&lt;br /&gt;(global-set-key [f5] 'script-run)&lt;br /&gt;&lt;br /&gt;;; ============================================================================&lt;br /&gt;;; Printer settings&lt;br /&gt;;; ============================================================================&lt;br /&gt;&lt;/pre&gt;&lt;pre class="code" style="border-left: 3px solid rgb(204, 204, 204); padding: 0.5em; margin-left: 2em;"&gt;;; ============================================================================&lt;br /&gt;;; Fun stuff.  Functions you can call up from the command line&lt;br /&gt;;; ============================================================================&lt;br /&gt;&lt;br /&gt;(defun ascii-table ()&lt;br /&gt; "Print the ascii table. Based on a defun by Alex Schroeder&lt;br /&gt;&lt;asc@bsiag.com&gt;"&lt;br /&gt; (interactive)&lt;br /&gt; (switch-to-buffer "*ASCII*")&lt;br /&gt; (erase-buffer)&lt;br /&gt; (insert (format "ASCII characters up to number %d.\n" 254))&lt;br /&gt; (let ((i 0))&lt;br /&gt;   (while (&lt; i 254)      &lt;br /&gt;      (setq i (+ i 1))      &lt;br /&gt;      (insert (format "%4d 0x%02X %c\n" i i i))))  &lt;br /&gt;      (beginning-of-buffer)) &lt;br /&gt; (defun insert-date ()  &lt;br /&gt;    "Insert date at point."  &lt;br /&gt;    (interactive)  &lt;br /&gt;    (insert (format-time-string "%a %b %e, %Y %l:%M %p"))) &lt;br /&gt;;;; Convert DOS file format to Unix&lt;br /&gt;;; look at &lt;br /&gt;;; M-x comint-strip-ctrl-m&lt;br /&gt;;;   Command: Strip trailing `^M' characters from the current output group.&lt;br /&gt;;; from: elf@ee.ryerson.ca (Luis Fernandes)&lt;br /&gt;;; 22 May 1997&lt;br /&gt;;;; Usage: M-x dos2unix&lt;br /&gt;;;;&lt;br /&gt;   (defun dos2unix ()  &lt;br /&gt;    "Convert this entire buffer from MS-DOS text file format to UNIX."  &lt;br /&gt;       (interactive)  &lt;br /&gt;       (save-excursion    &lt;br /&gt;          (goto-char (point-min))    &lt;br /&gt;          (replace-regexp "\r$" "" nil)    &lt;br /&gt;          (goto-char (1- (point-max)))    &lt;br /&gt;          (if (looking-at "\C-z")        &lt;br /&gt;             (delete-char 1))))     &lt;br /&gt;;; ============================================================================&lt;br /&gt;;; End of file&lt;br /&gt;;; ============================================================================&lt;span style="font-family: Georgia,serif;"&gt;&lt;/span&gt;&lt;/asc@bsiag.com&gt;&lt;/pre&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Final Thoughts&lt;/span&gt;&lt;br /&gt;If you use emacs, some of the settings above may help.  I have gathered or created these settings and lisp code&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-2042004398805371400?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2009/11/emacs-configuration-emacs-file.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-7937527404597724405</guid><pubDate>Sun, 08 Nov 2009 01:18:00 +0000</pubDate><atom:updated>2009-11-07T23:14:57.509-05:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>CONFIG</category><category domain='http://www.blogger.com/atom/ns#'>PROGRAMMING</category><category domain='http://www.blogger.com/atom/ns#'>HOWTO</category><title>HOWTO: dos2unix in emacs</title><description>&lt;span style="font-weight: bold; font-style: italic;"&gt;Overview&lt;/span&gt;&lt;br /&gt;I switch between Linux, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;OSX&lt;/span&gt;, and Windows quiet a bit.   One problem with that can be the dreaded &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;EOL&lt;/span&gt; issue.&lt;br /&gt;&lt;br /&gt;For example, if you add &lt;span style="font-family:courier new;"&gt;#!/usr/bin/env python&lt;/span&gt; and have a DOS/Windows formatted file, running it in UNIX right from a shell may not work.&lt;br /&gt;&lt;br /&gt;For my development, I prefer to standardize on UNIX format.  For the languages I use, I know it will not cause any issues regardless of where they are run.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Requirements&lt;/span&gt;&lt;br /&gt;If you are using &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_15"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;linux&lt;/span&gt;&lt;/span&gt;, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_16"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;OSX&lt;/span&gt;&lt;/span&gt;, or Solaris you will edit your ~/.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_17"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;emacs&lt;/span&gt;&lt;/span&gt; file.  If you are running Windows, you will be editing your %HOME%/_&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_18"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;emacs&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For this &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_19"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;howto&lt;/span&gt;&lt;/span&gt;, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_20"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;emacs&lt;/span&gt;&lt;/span&gt;-22 is being used under &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_21"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;Ubuntu&lt;/span&gt;&lt;/span&gt; Linux 9.10.  I doubt the OS or version of &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_22"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;emacs&lt;/span&gt;&lt;/span&gt; will make a difference.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Force Unix &lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;" class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;EOL&lt;/span&gt;&lt;br /&gt;To avoid having to deal with EOL on your own code, add the following to your .emacs file.&lt;br /&gt;&lt;pre class="code" style="border-left: 3px solid rgb(204, 204, 204); padding: 0.5em; margin-left: 2em;"&gt;; Ensure we stay in UNIX mode for &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;EOL&lt;/span&gt; char&lt;br /&gt;(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;setq&lt;/span&gt; inhibit-&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;eol&lt;/span&gt;-conversion t)&lt;/pre&gt;Now emacs will only use UNIX EOL  Plus, you will see ^M in your file for each line with a DOS/Windows EOL.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;dos2&lt;/span&gt;&lt;span style="font-style: italic; font-weight: bold;" class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;unix&lt;/span&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt; Code&lt;/span&gt;&lt;br /&gt;I found this code and have been using it.  Why re-invent the wheel.&lt;br /&gt;&lt;pre class="code" style="border-left: 3px solid rgb(204, 204, 204); padding: 0.5em; margin-left: 2em;"&gt;;;; Convert DOS file format to Unix&lt;br /&gt;;; look at&lt;br /&gt;;; M-x &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_15"&gt;comint&lt;/span&gt;-strip-&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_16"&gt;ctrl&lt;/span&gt;-m&lt;br /&gt;;;   Command: Strip trailing `^M' characters from the current output group.&lt;br /&gt;;; from: elf@ee.ryerson.ca (Luis &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_17"&gt;Fernandes&lt;/span&gt;)&lt;br /&gt;;; 22 May 1997&lt;br /&gt;;;; Usage: M-x dos2&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_18"&gt;unix&lt;/span&gt;&lt;br /&gt;;;;&lt;br /&gt;(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_19"&gt;defun&lt;/span&gt; dos2&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_20"&gt;unix&lt;/span&gt; ()&lt;br /&gt;"Convert this entire buffer from MS-DOS text file format to UNIX."&lt;br /&gt;(interactive)&lt;br /&gt;(save-excursion&lt;br /&gt; (&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_21"&gt;goto&lt;/span&gt;-char (point-min))&lt;br /&gt; (replace-regexp "\r$" "" nil)&lt;br /&gt; (&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_22"&gt;goto&lt;/span&gt;-char (1- (point-max)))&lt;br /&gt; (if (looking-at "\C-z")&lt;br /&gt;     (delete-char 1))))&lt;br /&gt;&lt;/pre&gt;To use, press ESC-x and type dos2unix   After pressing return, you will see the magic happen.  I suggest making a backup before doing any global changes to anything.  All ^M will disappear.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Final Thoughts&lt;/span&gt;&lt;br /&gt;Adding this lisp code will help you standardize on UNIX EOL.  You will find the full .emacs file &lt;a href="http://stoken-tips-and-tricks.blogspot.com/2009/11/emacs-configuration-emacs-file.html"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-7937527404597724405?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2009/11/howto-dos2unix-in-emacs.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-7441320041061747471</guid><pubDate>Sat, 07 Nov 2009 21:00:00 +0000</pubDate><atom:updated>2009-11-09T10:20:33.017-05:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>CONFIG</category><category domain='http://www.blogger.com/atom/ns#'>PROGRAMMING</category><category domain='http://www.blogger.com/atom/ns#'>HOWTO</category><title>HOWTO: setup emacs to run scripts within UI</title><description>&lt;span style="font-weight: bold; font-style: italic;"&gt;Overview&lt;/span&gt;&lt;br /&gt;Lately, I have gone back to my old friend... &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;emacs&lt;/span&gt;&lt;/span&gt;.  Some would agree that a better and more flexible editor has never been created.   I used &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;emacs&lt;/span&gt;&lt;/span&gt; for many years for C/C++, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;perl&lt;/span&gt;&lt;/span&gt;, HTML, and shell programming.  Over time, projects and jobs drove me to full &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;IDEs&lt;/span&gt;&lt;/span&gt; like &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;Netbeans&lt;/span&gt;&lt;/span&gt; and Visual Studio.&lt;br /&gt;&lt;br /&gt;I recently purchased a DELL Mini 10v &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;netbook&lt;/span&gt;&lt;/span&gt; running (of course) &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;Ubuntu&lt;/span&gt;&lt;/span&gt;.  With the tiny (but beautiful and clear) screen, big &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;IDEs&lt;/span&gt;&lt;/span&gt; are just not practical.   Even with all panels minimized there is still only a tiny amount of space.&lt;br /&gt;&lt;br /&gt;For my last trip, I needed to develop some code to hack a pile data I was emailed right before I got on the plane... stat!   Thank ___ for having a plane friendly computer like a &lt;a href="http://stoken-tips-and-tricks.blogspot.com/2009/11/dell-mini-10v-netbook-running-ubuntu.html"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;netbook&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I have become dependent on all the work heavy IDEs automatically do.  Do I really know who to code or does the IDE guide me to a completed program? Plus, data hacking is better for scripting languages like &lt;a href="http://www.python.org/"&gt;python&lt;/a&gt; or &lt;a href="http://www.perl.org/"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;perl&lt;/span&gt;&lt;/a&gt;.  On taxi I thought it over and made my call.   Welcome back to my tool belt emacs.&lt;br /&gt;&lt;br /&gt;Once we hit cruising altitude, I booted up &lt;a href="http://www.ubuntu.com/"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;Ubuntu&lt;/span&gt;&lt;/a&gt; 9.04, fired up &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;emacs&lt;/span&gt; and started coding. There was one problem.  I have been so used to simply pressing &lt;span style="font-style: italic;"&gt;F6&lt;/span&gt; to run my program.  I wanted to do the same thing in &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;emacs&lt;/span&gt;.   Why be limited?&lt;br /&gt;&lt;br /&gt;The following tells you &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;howto&lt;/span&gt; setup emacs, for this type of behavior, using just a small amount of lisp code.  The only real dependency is having the languages you are using in the path.  If python or perl doesn't run from a command prompt, this will not work very well.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Requirements&lt;/span&gt;&lt;br /&gt;If you are using &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_15"&gt;linux&lt;/span&gt;, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_16"&gt;OSX&lt;/span&gt;, or Solaris you will edit your ~/.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_17"&gt;emacs&lt;/span&gt; file.  If you are running Windows, you will be editing your %HOME%/_&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_18"&gt;emacs&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For this &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_19"&gt;howto&lt;/span&gt;, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_20"&gt;emacs&lt;/span&gt;-22 is being used under &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_21"&gt;Ubuntu&lt;/span&gt; Linux 9.10.  I doubt the OS or version of &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_22"&gt;emacs&lt;/span&gt; will make a difference.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Launch Interpreter using F5&lt;/span&gt;&lt;br /&gt;Simply open your .&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_23"&gt;emacs&lt;/span&gt; or _&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_24"&gt;emacs&lt;/span&gt; file and add the following&lt;br /&gt;&lt;pre class="code" style="border-left: 3px solid rgb(204, 204, 204); padding: 0.5em; margin-left: 2em;"&gt;;; ============================================================================&lt;br /&gt;;; Runs Scripting Languages Program using compile key bindings&lt;br /&gt;;;&lt;br /&gt;;; if you have another &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_25"&gt;lanugage&lt;/span&gt;, simply create a ____-run &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_26"&gt;defun&lt;/span&gt; and add an if&lt;br /&gt;;; statement to script-run()&lt;br /&gt;;; ============================================================================&lt;br /&gt;&lt;br /&gt;(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_27"&gt;defun&lt;/span&gt; python-run ()&lt;br /&gt;"Use compile to run python programs"&lt;br /&gt;(interactive)&lt;br /&gt;(message "Running python for buffer %s." (buffer-name))&lt;br /&gt;(compile (&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_28"&gt;concat&lt;/span&gt; "python " (buffer-name)))&lt;br /&gt;)&lt;br /&gt;(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_29"&gt;defun&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_30"&gt;perl&lt;/span&gt;-run ()&lt;br /&gt;"Use compile to run &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_31"&gt;perl&lt;/span&gt; programs"&lt;br /&gt;(interactive)&lt;br /&gt;(message "Running &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_32"&gt;perl&lt;/span&gt; for buffer %s." (buffer-name))&lt;br /&gt;(compile (&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_33"&gt;concat&lt;/span&gt; "&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_34"&gt;perl&lt;/span&gt; -w " (buffer-name)))&lt;br /&gt;)&lt;br /&gt;(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_35"&gt;defun&lt;/span&gt; script-run ()&lt;br /&gt;"Use to run a script"&lt;br /&gt;(interactive)&lt;br /&gt;(if (equal (file-name-extension(buffer-name)) "&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_36"&gt;py&lt;/span&gt;")&lt;br /&gt;(python-run))&lt;br /&gt;(if (equal (file-name-extension(buffer-name)) "pl")&lt;br /&gt;(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_37"&gt;perl&lt;/span&gt;-run))&lt;br /&gt;)&lt;br /&gt;(global-set-key [f5] 'script-run)&lt;/pre&gt;&lt;br /&gt;If the file is python (&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_38"&gt;py&lt;/span&gt;) then python will be run in a separate buffer.  If the file is &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_39"&gt;perl&lt;/span&gt; (pl) then &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_40"&gt;perl&lt;/span&gt; will be run in a separate buffer.  To trigger this, all that is needed is to press &lt;span style="font-style: italic;"&gt;F5&lt;/span&gt; while in a buffer that is either a &lt;span style="font-style: italic;"&gt;python&lt;/span&gt; or &lt;span style="font-style: italic;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_41"&gt;perl&lt;/span&gt;&lt;/span&gt; file.    That is it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Final Thoughts&lt;/span&gt;&lt;br /&gt;This approach can easily be expanded for other languages like ruby and such.  I hope this helps simplify programming using emacs.  Find my full .emacs file &lt;a href="http://stoken-tips-and-tricks.blogspot.com/2009/11/emacs-configuration-emacs-file.html"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Personally, I am glad I dusted off emacs.  Humm... what about VI.&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-7441320041061747471?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2009/11/howto-setup-emacs-to-run-scripts-within.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-1493109182104546095</guid><pubDate>Sat, 07 Nov 2009 20:10:00 +0000</pubDate><atom:updated>2009-11-07T15:16:14.845-05:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>PROGRAMMING</category><category domain='http://www.blogger.com/atom/ns#'>POLL</category><title>POLL: To me, a netbook is.... (Results)</title><description>&lt;ul&gt;&lt;li&gt;20% say "to small for me"&lt;/li&gt;&lt;li&gt;20% say "only good for travel"&lt;/li&gt;&lt;li&gt;20% say "perfect if it runs Windows"&lt;/li&gt;&lt;li&gt;40% say "perfect if it runs Ubuntu"&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-1493109182104546095?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2009/11/poll-to-me-netbook-is-results.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-6460299940834014553</guid><pubDate>Tue, 15 Sep 2009 02:35:00 +0000</pubDate><atom:updated>2009-09-14T22:36:27.935-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>PROGRAMMING</category><category domain='http://www.blogger.com/atom/ns#'>POLL</category><category domain='http://www.blogger.com/atom/ns#'>LINUX</category><title>POLL: If you could only have one scripting language? (Results)</title><description>&lt;ul&gt;&lt;li&gt;38% Python&lt;/li&gt;&lt;li&gt;30% Ruby&lt;/li&gt;&lt;li&gt;15% Perl&lt;/li&gt;&lt;li&gt;7% bash&lt;/li&gt;&lt;li&gt;7% VBA&lt;/li&gt;&lt;li&gt;0% Groovy&lt;/li&gt;&lt;li&gt;0% csh&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-6460299940834014553?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2009/09/poll-if-you-could-only-have-one.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-6199370807823572507</guid><pubDate>Tue, 15 Sep 2009 02:30:00 +0000</pubDate><atom:updated>2009-09-14T22:31:45.404-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>POLL</category><category domain='http://www.blogger.com/atom/ns#'>LINUX</category><title>POLL: How was your Fedora 11 Upgrade? (Results)</title><description>&lt;ul&gt;&lt;li&gt;52% I use Ubuntu&lt;/li&gt;&lt;li&gt;19% Hell on Earth&lt;br /&gt;&lt;/li&gt;&lt;li&gt;19% I did a clean install&lt;/li&gt;&lt;li&gt;9% Easy and smooth&lt;/li&gt;&lt;li&gt;0% A little rough&lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-6199370807823572507?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2009/09/poll-how-was-your-fedora-11-upgrade.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-8596939539809177121</guid><pubDate>Mon, 13 Jul 2009 01:46:00 +0000</pubDate><atom:updated>2009-09-14T22:49:40.847-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>CONFIG</category><category domain='http://www.blogger.com/atom/ns#'>FEDORA</category><category domain='http://www.blogger.com/atom/ns#'>LINUX</category><category domain='http://www.blogger.com/atom/ns#'>WORKAROUND</category><category domain='http://www.blogger.com/atom/ns#'>RANT</category><title>Fedora 11 - Upgrade from Fedora 10... not good... not good at all</title><description>&lt;span style="font-style: italic; font-weight: bold;"&gt;Overview&lt;/span&gt;&lt;br /&gt;So there I was, sitting at my workstation, doing a bit of work on my Fedora 10 server.   When, all of a sudden a docile little dialog appeared notifying me that Fedora 11 was available and I could run pre-upgrade before upgrading.&lt;br /&gt;&lt;br /&gt;Well, being an Ubuntu user, I have done many simple and smooth network based upgrades.  So I figured, why not.  Lets give it a shot.  All my critical data is backed up anyway.&lt;br /&gt;&lt;br /&gt;Now, I know what you are thinking.   It states on the &lt;a href="http://docs.fedoraproject.org/install-guide/f11/en-US/html/ch-upgrade-x86.html"&gt;fedora project website&lt;/a&gt; that they prefer a clean install vs an upgrade.  However, that doesn't mean an upgrade isn't possible? Right.  I mean if your system pops a dialog saying "Distribution upgrades available" you should feel comfortable doing it.  If it is possible but not recommended, why make the option so obvious.&lt;br /&gt;&lt;br /&gt;I have been using Redhat/Fedora for as long as I have been using linux.  Normally, I have followed the advice of doing a clean install vs upgrade.  This time, I did the upgrade via network and let just say, it was not a good experience.  Very little worked as advertised and I was always &lt;span style="font-style: italic;"&gt;this close &lt;/span&gt;to system corruption and rebuild.&lt;br /&gt;&lt;br /&gt;Now, I am not saying that an upgrade path from Fedora 10 to 11 spells doom.  I am just saying that it almost did for me.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Background&lt;/span&gt;&lt;br /&gt;My system has been upgraded twice by DVD.  From Fedora 7 to 9.  Then from Fedora 9 to 10.   This may have set the stage for my upgrade distress.    In all cases, there were some issues and bugs that I had to correct.  Before FC7, I only did clean installs.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;What Happened&lt;/span&gt;&lt;br /&gt;My issues started during the pre-upgrade process.  The updates dialog pops letting me know that FC11 is available.   When clicked, the update process looks at your system and stages what it needs to upgrade. &lt;br /&gt;&lt;br /&gt;During this phase, I got a message saying that the install image would not fit in /boot that that I needed a wired network after reboot to get the image during the upgrade.  I had a wired network so I let it go.&lt;br /&gt;&lt;br /&gt;After reboot, being sure to hit enter when you see the boot countdown (not documented) to get the option for the upgrade boot kernel.&lt;br /&gt;&lt;br /&gt;Once I got into the actual upgrade process, I started getting error messages saying that it could not find packages (RPMs).   That I could reboot or retry.   The dialog said that reboot would mean possible corrption of my system.   Retry, would simply retry (which is stupid).  There was not a third option like, specify new location, data source, or continue anyway.&lt;br /&gt;&lt;br /&gt;What is worse, is that it appeared that the installer was expecting RPMs to be in a different directory then they were in the install image (!!!).  How this is possible, I have no idea since I never specified either.  The update handled the mirror selection and all the behind the scenes work.&lt;br /&gt;&lt;br /&gt;Well, corrupting my server, requiring a rebuild was just not going to happen.  The following are a few thing I did to get through the mess and to a final working system.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Problem - Cannot Find Package to Install&lt;/span&gt;&lt;br /&gt;It is possible that Fedora expected their install to barf so they were kind enough to provide most of the tools needed to correct them.&lt;br /&gt;&lt;br /&gt;&lt;cntrl&gt;&lt;alt&gt;&lt;f2&gt; gives you a prompt.  Here you will save the day.&lt;br /&gt;&lt;cntrl&gt;&lt;alt&gt;&lt;f3&gt; gives you the current console log.  Here you will see what is missing.&lt;br /&gt;&lt;br /&gt;Two main tools that saved the day&lt;br /&gt;&lt;ul&gt;&lt;li&gt;wget&lt;/li&gt;&lt;li&gt;lynx&lt;/li&gt;&lt;/ul&gt;Both are text based and will let you fetch one or many missing files.    lynx will complain since it needs a config.  In /mnt/.../etc (look around) you will find a lynx.cfg and a lynx.lss.  Copy them to /etc/.   wget simply works.&lt;br /&gt;&lt;br /&gt;Next thing you will need is a good working mirror.  You will need to visit the fedoraproject site for that to find one.  Each system will be different so you wil need to look at the console log to see where it is expecting to find the RPMs.  Once you can see that (i.e. file:///mnt/system/...) you can cd to that directory and fetch each missing file one by one as you see the errors.&lt;br /&gt;&lt;br /&gt;This job actually sucks since a missing gnome-libs problably means that gnome-libs-devel will be needed later.  To get around this, I worked in broad strokes.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;I fetch a list of all the files using wget from the mirror site.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;I washed the "packages.html" file through cut and awk to get a list of only the rpm files&lt;/li&gt;&lt;li&gt;This list of files was then washed through awk a second time to pre-pend wget http://..../file.rpm.  &lt;/li&gt;&lt;li&gt;This was then redirected into a text file for later use&lt;/li&gt;&lt;/ol&gt;When an error would pop up.  For example gnome-libs.  I would simple run the following from the prompt:&lt;br /&gt;&lt;br /&gt;   cat packages_wget.txt |grep gnome-libs |sh&lt;br /&gt;&lt;br /&gt;Now the file (or any file with gnome-libs in it) will get fetched.  This does not mean that it will get automatically installed but will be available for the installer.&lt;br /&gt;&lt;br /&gt;I did this for all missing files.  Later during the upgrade phase, there were more errors, so I followed the same approach.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;I now what your are thinking&lt;/span&gt;&lt;br /&gt;Why didn't I stop the install and download a DVD?  I thought about that, however, the error messages dialog warned about corruption to the system and it was not clear how many files were actually missing.  I might have been on my "last one".  Once I got the above approach working, it went pretty fast.  It was just an unforgiveable waste of time.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Hurray, the system upgrade is done.  Reboot and Run Updates&lt;/span&gt;...&lt;span style="font-style: italic;"&gt;!!!..&lt;span style="font-weight: bold;"&gt;Grumble&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Finally, the upgrade completed.  I rebooted the system and prepared for doing a yum update.  This should be cut and dry now.... right?  Nope.  Aparently, there are several pre-release packages that were included in something the system was upgrading.    Others had errors.&lt;br /&gt;&lt;br /&gt;dhcp and cyrus-imap had a refernce to an openssl library that had an incorrect symlink.  Looking at the error and correcting the symlink did the trick.&lt;br /&gt;&lt;br /&gt;In a nutshell, yum update tried to upgrade a packages that does not exist on any mirror or even on the fedora site.   Unless you know the full dependancy tree  within the 631 updates, it is hard to turn off the ones in questions.   For this reason, I had to upgrade in small batches until I found the packages that had the dependancies to the other packages that didn't exist.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Final Thoughts&lt;/span&gt;&lt;br /&gt;I don't think I can stomach another Fedora upgrade.   Will this happen to you?  I am not sure.   There could have been many reasons for my hardship, however, I have been using Fedora/Redhat for at least 10 years so I now the ins and outs.  Install is not a strong point.  It is flexible and easy to manage once running however.  It is my (current) choice for a server OS.&lt;br /&gt;&lt;br /&gt;My thought to you is: if the installer tells you that you do not have room on your /boot partition, cancel and walk away.  I have a feeling that a DVD install would have gone better.  A clean install would be best.&lt;br /&gt;&lt;br /&gt;I just wish they could make it work like Ubuntu.  That distro is great for package management.  They just tend to be slower on updates (i.e. Java).  &lt;br /&gt;&lt;br /&gt;I will try to add more details about specific commands and syntax.  My main goal here was to put information out, in the event, that other of you have run into the same issues.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Update 2009-Sept&lt;/span&gt;&lt;br /&gt;Since my painful upgrade, the updates have been flowing just fine.  My system has been running  pretty well.  &lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/f3&gt;&lt;/alt&gt;&lt;/cntrl&gt;&lt;/f2&gt;&lt;/alt&gt;&lt;/cntrl&gt;&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-8596939539809177121?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2009/07/fedora-11-upgrade-from-fedora-10-not.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>2</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-2755274280437544264</guid><pubDate>Tue, 30 Jun 2009 03:15:00 +0000</pubDate><atom:updated>2009-06-29T23:32:41.792-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>NETBEANS</category><category domain='http://www.blogger.com/atom/ns#'>PROGRAMMING</category><category domain='http://www.blogger.com/atom/ns#'>JAVA</category><title>Netbeans 6.7 Is Here</title><description>Today I downloaded and installed &lt;a href="http://www.netbeans.org/downloads"&gt;Netbeans 6.7&lt;/a&gt;.   My first impressions are very good.  The performance seems better and I really like what was done for unit testing.&lt;br /&gt;&lt;br /&gt;I have used it under Windows and Linux.  Thanks Netbeans team!!  Another great version delivered right on time.&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-2755274280437544264?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2009/06/netbeans-67-is-here.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-1437236758661726357</guid><pubDate>Wed, 24 Jun 2009 02:17:00 +0000</pubDate><atom:updated>2009-06-27T22:37:46.337-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>PROGRAMMING</category><category domain='http://www.blogger.com/atom/ns#'>SOAP</category><category domain='http://www.blogger.com/atom/ns#'>WSDL</category><category domain='http://www.blogger.com/atom/ns#'>PYTHON</category><title>HOWTO: Install Python Soap Libraries ZSI + SOAPpy + PyXML Under (of all things) Windows XP</title><description>&lt;span style="font-style: italic; font-weight: bold;"&gt;Overview&lt;/span&gt;&lt;br /&gt;I recently needed do some simple scripting using Python under Windows.  The main goal was to test some web service calls (via SOAP).  Python lets you put something like this together pretty quickly.  Including WSDL processing, business logic, and unit testing.&lt;br /&gt;&lt;br /&gt;Adding a SOAP library (ZSI+SOAPpy in this case) under linux (ubuntu or fedora) is also simple since you just install a package from a repo.  However, I found that setting is up under Windows to be more of a pain.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Problem&lt;/span&gt;&lt;br /&gt;Get &lt;a href="http://pywebsvcs.sourceforge.net/zsi.html"&gt;ZSI&lt;/a&gt;, &lt;a href="http://sourceforge.net/project/showfiles.php?group_id=26590&amp;amp;package_id=18246"&gt;SOAPpy&lt;/a&gt;, &lt;a href="http://pypi.python.org/pypi/fpconst/0.7.2"&gt;fpconst&lt;/a&gt;, and &lt;a href="http://pyxml.sourceforge.net/topics/"&gt;PyXML&lt;/a&gt; setup for use in SOAP programming under Python 2.6.&lt;br /&gt;&lt;br /&gt;The main issue is that one of the dependancies, PyXML, does not have a package for versions of Python &gt; 2.4.  This means that it will need to be manually built.  The typical setup.py usually does the trick but for PyXML a C module was also included as part of the distro.  Compiling modules under Windows requires an open source compiler or Visual Studio 2008.   For me, neither are an option.  Man I wish I could just use linux :-)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;Lets Begin&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;After you fetch the packages through the &lt;a href="http://www.python.org/"&gt;Python Website&lt;/a&gt;...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Install fpconst&lt;/span&gt;&lt;br /&gt;This, I think, is needed by SOAPpy.   Fetch fpconst-0.7.2.tar.gz&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Under Windows I use WinRAR to extract the setup/temp folder&lt;/li&gt;&lt;li&gt;run: python setup.py build&lt;/li&gt;&lt;li&gt;run: python setup.py install&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;That is done.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Install PyXML&lt;/span&gt;&lt;br /&gt;PyXML  is required by SOAPpy and possibly ZSI.  The problem you will run into installing it is that there are a few Python extensions that need compiled and unless you have Visual Studio 2008, it will not compile under Python 2.6.&lt;br /&gt;&lt;br /&gt;Fortunatally, I discovered that SOAPpy (or ZSI) don't use these extensions so as long as you don't need it yourself you can install it as follows.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Under Windows I use WinRAR to extract the setup/temp folder&lt;/li&gt;&lt;li&gt;run: python setup.py install --force -skip-build&lt;/li&gt;&lt;/ol&gt;The &lt;span style="font-style: italic;"&gt;-skip-build&lt;/span&gt; skips the building of the C based extension.  Without this parameter you will get an error under windows as it looks for Visual Studio 2008.  If you have Visual Studio 2008, you are probably not reading this blog and had no issues installing PyXML :-)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Installing SOAPpy&lt;/span&gt;&lt;br /&gt;With PyXML installed, the hard part is over.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Unzip SOAPpy-0.12.0.zip to a setup/temp folder&lt;/li&gt;&lt;li&gt;run: python setup.py build&lt;/li&gt;&lt;li&gt;run: python setup.py install&lt;/li&gt;&lt;/ol&gt;That is done.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Install ZSI&lt;/span&gt;&lt;br /&gt;Now the dependencies are install, ZSI can be installed.  This is what you will use for all your SOAP calls.  It is pretty well documented and fairly easy to use.  The approach is similar to how it is handled in Java or .NET.  Install is simple&lt;br /&gt;&lt;ol&gt;&lt;li&gt;WinRAR ZSI-2.0.tar.gz to a setup/temp folder&lt;/li&gt;&lt;li&gt;run: python setup.py build&lt;/li&gt;&lt;li&gt;run: python setup.py install&lt;/li&gt;&lt;/ol&gt;That is done&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Does it work?&lt;/span&gt;&lt;br /&gt;To test, you will first need to process your web service WSDL file into something Python can work with. The approach is similar to what is done when you add a web service reference in .NET or JAVA.  This this case, you use a simple command line utility called wsdl2py.  On my windows computer, it is found in C:\Python26\Scripts\   You should find it in a similar place.  Assuming that you do not have this script in the path and have not been clever enough to make a batch file, you can run it as follows.  CD to the directory where you want your PY files created by the utility to go.&lt;br /&gt;&lt;br /&gt;python C:\Python26\Scripts\wsdl2py -bu http://moneycow.sandwich.lan:8888/moneyfinder.asmx?WSDL&lt;br /&gt;&lt;br /&gt;There are more parameters, but this command will get you what you need.  You may see a few deprecation warnings but they don't hurt anything.  In the end, you will get two files.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;*_services.py&lt;/li&gt;&lt;li&gt;*_services_types.py&lt;/li&gt;&lt;/ul&gt;Or similar.  Read the ZSI docs on how to use them.  I will try to post a blog soon with an example.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Unknowns&lt;/span&gt;&lt;br /&gt;I have not figured out how to get SSL to work with ZSI.  If any of you have figured this out, please post me a message.  I would love to hear about it.  It is not an issue for me now since none of the services I need to consume are Internet exposed.   If I get stuck and need to access one, I will just use Java or .NET ;-)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Conclusion&lt;/span&gt;&lt;br /&gt;If you have to use Windows and need to do Web Services with Python 2.6, the above steps should get you setup and ready to role.  Once you are setup and get your first basic program working, you will find that Python does a good job and the performance is just fine.&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-1437236758661726357?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2009/06/howto-setup-zsi-soappy-pyxml-under-of.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>3</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-1768711132505909607</guid><pubDate>Sun, 31 May 2009 05:09:00 +0000</pubDate><atom:updated>2009-05-31T01:22:48.908-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>PROGRAMMING</category><category domain='http://www.blogger.com/atom/ns#'>SUBVERSION</category><category domain='http://www.blogger.com/atom/ns#'>JAVA</category><title>Subversion - Checking out a Project</title><description>&lt;span style="font-weight: bold; font-style: italic;"&gt;Overview&lt;/span&gt;&lt;br /&gt;When it is time to get work done, code will need to be checked out.   The main steps to checkout code that was&lt;a href="http://stoken-tips-and-tricks.blogspot.com/2009/05/subversion-importing-new-project.html"&gt; imported as described in a previous&lt;/a&gt; post is as follows:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Create a workspace folder for your project&lt;/li&gt;&lt;li&gt;Change directory into that folder&lt;/li&gt;&lt;li&gt;Checkout code from the trunk (or tag or even branch) into the current directory.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Procedure&lt;/span&gt;&lt;br /&gt;The following steps will checkout the sqlbuilder project that is part of the perl repo into my local filesystem's sqlbuilder folder.&lt;br /&gt;&lt;br /&gt;Create new folder called sqlbuilder.  My code is targeted to be on my local file system in a base directory of ~/work/perl/sqlbuilder&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;cd ~/work/perl/&lt;br /&gt;mkdir sqlbuilder&lt;br /&gt;cd sqlbuilder&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;svn checkout https://www.inhouse.stoken.net/repos/perl/sqlbuilder/trunk/ ./&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Now your code is in a subversion managed folder.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Tagging Current Trunk&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;Tagging is a common practice in which you create  a snapshot of your code as it stood in time or within a version.  In this example, the sqlbuilder code needs to be tagged.  The tagged version will be stored in the repo within a 20090528 folder.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;svn -m 'tagging first release' copy https://www.inhouse.stoken.net/repos/perl/sqlbuilder/trunk/ https://www.inhouse.stoken.net/repos/perl/sqlbuilder/tags/20090528&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Use a browser to view trunk and tag using the above URLs.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Final Thoughts&lt;/span&gt;&lt;br /&gt;The process of checking out a tagged version is the same as for a trunk version, just ensure that the URL path is correct and it will work.&lt;br /&gt;&lt;br /&gt;I personally tag frequently in Subversion since Subversion does it pretty efficiently.  Your thoughts may vary on this.&lt;br /&gt;&lt;br /&gt;This concludes the series on basic Subversion usage.  When I have time, I will post something on Subversion + Netbeans.  Netbeans handles Subversion very well but there are few small details that may help.  I will post them soon.&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-1768711132505909607?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2009/05/subversion-checking-out-project.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-1782797843847689959</guid><pubDate>Sun, 31 May 2009 04:51:00 +0000</pubDate><atom:updated>2009-11-07T15:45:20.475-05:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>PROGRAMMING</category><category domain='http://www.blogger.com/atom/ns#'>SUBVERSION</category><category domain='http://www.blogger.com/atom/ns#'>JAVA</category><title>Subversion - Importing a new Project</title><description>&lt;span style="font-weight: bold; font-style: italic;"&gt;Overview&lt;/span&gt;&lt;br /&gt;Once a &lt;a href="http://stoken-tips-and-tricks.blogspot.com/2009/05/subversion-adding-new-repo.html"&gt;repo has been created&lt;/a&gt;, it is time to import your code.  This has only a few main steps.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Create a base directory within the repo with the project name&lt;/li&gt;&lt;li&gt;Build the standard subversion project tree (tags, branches, trunk)&lt;/li&gt;&lt;li&gt;Import code into trunk&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Procedure&lt;/span&gt;&lt;br /&gt;In this example, I have created a simple helper project called &lt;span style="font-style: italic;"&gt;sqlbuider&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;As described above, the first step is to create the base directory within the repo.&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;svn mkdir -m 'adding new project area' https://www.inhouse.stoken.net/repos/perl/sqlbuilder&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Next, the standard subversion directory tree needs to be created.&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;svn mkdir -m 'adding new project area' https://www.inhouse.stoken.net/repos/perl/sqlbuilder/branches&lt;br /&gt;svn mkdir -m 'adding new project area' https://www.inhouse.stoken.net/repos/perl/sqlbuilder/tags&lt;br /&gt;svn mkdir -m 'adding new project area' https://www.inhouse.stoken.net/repos/perl/sqlbuilder/trunk&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you are building your repo as you are reading along, you should be able to point your browser to it and see an empty folder for .../tags .../trunk .../branches&lt;br /&gt;&lt;br /&gt;We are ready for the next step, Import the project.  On the local system, change directory to local project folder (sqlbuilder in my case) and import.  My local source happens to be in ~/work/perl/sqlbuilder.   Subversion doesn't care about the location.  Just that you are sitting &lt;span style="font-weight: bold;"&gt;in &lt;/span&gt;the project folder.  The following will import the project&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;cd ~/work/perl/sqlbuilder&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;svn -m 'inital import' import ./ https://www.inhouse.stoken.net/repos/perl/sqlbuilder/trunk/&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;The command says, "using the message of 'initial import', import everything in ./ to https://..../trunk/&lt;br /&gt;&lt;br /&gt;If you refresh your broswer in the trunk folder, you will see code.&lt;br /&gt;&lt;br /&gt;Normally, I will take my local directory (sqlbuilder in my case) and rename it to something like sqlbuilder_pre_svn or sqlbuilder_old.&lt;br /&gt;&lt;br /&gt;This process can be followed for multiple projects within the same repo.  Just create the directory structure and then import your code into it.&lt;br /&gt;&lt;br /&gt;When you are ready to work on the project, you will want to create a new sqlbuilder folder and checkout the https://..../trunk/ code into it.   That will be described in my next post.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Final Thoughts&lt;/span&gt;&lt;br /&gt;Why not import the folder sqlbuilder?  Why import just the contents of the folder into trunk? The main reason is that it simplifies situations where you may have one or many versions of the same project checked out.  Now you can checkout a trunk or tag version into whatever directory you want.   It makes things easier to deal with.  The only thing to remember is to check out after you create a local workspace folder before checking out into it.&lt;br /&gt;&lt;br /&gt;The next post will describe &lt;a href="http://stoken-tips-and-tricks.blogspot.com/2009/05/subversion-checking-out-project.html"&gt;howto check out and tag code&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-1782797843847689959?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2009/05/subversion-importing-new-project.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-4925806484915691716</guid><pubDate>Sun, 31 May 2009 04:21:00 +0000</pubDate><atom:updated>2009-11-07T15:44:13.349-05:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>PROGRAMMING</category><category domain='http://www.blogger.com/atom/ns#'>SUBVERSION</category><category domain='http://www.blogger.com/atom/ns#'>JAVA</category><title>Subversion - Adding a new Repo</title><description>&lt;span style="font-weight: bold; font-style: italic;"&gt;Overview&lt;/span&gt;&lt;br /&gt;Based on my previous post, you should now have a &lt;a href="http://stoken-tips-and-tricks.blogspot.com/2009/05/setting-up-subversoin-quick-reference.html"&gt;working and configured Subversion&lt;/a&gt; environment.  Most of the work was done in Apache.&lt;br /&gt;&lt;br /&gt;Now a repo is needed to store all related projects.   Subversion is pretty flexible here.  You can create a repo per project, on single repo for everything, or do what I do.  Create a repo per language you work in.  For example:&lt;br /&gt;&lt;ul&gt;&lt;li style="font-family: courier new;"&gt;/opt/intranet/svn/python/&lt;/li&gt;&lt;li style="font-family: courier new;"&gt;/opt/intranet/svn/ruby/&lt;/li&gt;&lt;li style="font-family: courier new;"&gt;/opt/intranet/svn/java/&lt;/li&gt;&lt;li style="font-family: courier new;"&gt;/opt/intranet/svn/php/&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt; The amount of repos is up to you.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Procedure&lt;/span&gt;&lt;br /&gt;For this example, I am adding a new repo for my perl code projects.  All my repos are stored in &lt;span style="font-family:courier new;"&gt;/opt/intranet/svn/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;to create a new repo:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;• cd /opt/intranet/svn&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;• svnadmin create perl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;• chown -R apache:apache perl/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Within each repo, one or many projects.  The following shows how to prepare and import files into a new project.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Final Thoughts&lt;/span&gt;&lt;br /&gt;With this repo created, &lt;a href="http://stoken-tips-and-tricks.blogspot.com/2009/05/subversion-importing-new-project.html"&gt;new projects can be added&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-4925806484915691716?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2009/05/subversion-adding-new-repo.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-120181017500818296</guid><pubDate>Sun, 31 May 2009 03:35:00 +0000</pubDate><atom:updated>2009-11-07T15:41:24.853-05:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>PROGRAMMING</category><category domain='http://www.blogger.com/atom/ns#'>SUBVERSION</category><category domain='http://www.blogger.com/atom/ns#'>JAVA</category><title>Subversion - Setting up Apache and Users</title><description>&lt;span style="font-style: italic; font-weight: bold;"&gt;Overview&lt;/span&gt;&lt;br /&gt;Subversion is a fantastic source control system.  Not only is it pretty easy to setup and use but it also integrates with a vast list of IDEs.&lt;br /&gt;&lt;br /&gt;This post describes how to setup the base environment for Subversion.   This consists of:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Apache Configuration&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Apache Web Server User&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Other posts will cover adding repos.&lt;br /&gt;&lt;br /&gt;My environment:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Internal access only&lt;/li&gt;&lt;li&gt;linux/Unix environment&lt;/li&gt;&lt;li&gt;Apache + Subversion&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Configuring Apache With Subversion&lt;/span&gt;&lt;br /&gt;When you install Subversion, there will be a default &lt;span style="font-family:courier new;"&gt;subversion.conf&lt;/span&gt; file setup (most likely) in &lt;span style="font-family:courier new;"&gt;/etc/httpd/conf.d/&lt;/span&gt; for Apache&lt;br /&gt;&lt;br /&gt;Within the environment I use, the following file system structure is used:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;/opt/intranet/svn&lt;/span&gt; - Main area for subversion repos.  Local file system.&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;/repos&lt;/span&gt; - Apache reference to Parent Path&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;/opt/intranet/svn/users.passwd&lt;/span&gt; - Location of subversion user/password file for any/all repos.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;What to modify in your &lt;span style="font-family:courier new;"&gt;/etc/httpd/conf.d/subversion.conf&lt;/span&gt; to get it to work like the one described below.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# START OF CONFIG&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;lt;Location /repos&amp;gt;&lt;br /&gt;  DAV svn&lt;br /&gt;  SVNParentPath /opt/intranet/svn&lt;br /&gt;&lt;br /&gt;  # Limit write permission to list of valid users.&lt;br /&gt;  &amp;lt;LimitExcept GET PROPFIND OPTIONS REPORT&amp;gt;&lt;br /&gt;     # Require SSL connection for password protection.&lt;br /&gt;&lt;br /&gt;     SSLRequireSSL&lt;br /&gt;     AuthType Basic&lt;br /&gt;     AuthName "StoKen Software Subversion"&lt;br /&gt;     AuthUserFile /opt/intranet/svn/users.passwd&lt;br /&gt;     Require valid-user&lt;br /&gt;  &amp;lt;/LimitExcept&amp;gt;&lt;br /&gt;&amp;lt;/Location&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;# END OF CONFIG&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Adding a Subversion User&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# htpasswd -c /opt/intranet/svn/users.passwd thawk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;New password: mypassword&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Re-type new password: mypassword&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Adding password for user thawk&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Final Thoughts&lt;/span&gt;&lt;br /&gt;With this step complete, subversion is ready but will not do anything interesting until you add some repos.  &lt;a href="http://stoken-tips-and-tricks.blogspot.com/2009/05/subversion-adding-new-repo.html"&gt;But that is another post&lt;/a&gt;...&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-120181017500818296?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2009/05/setting-up-subversoin-quick-reference.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-5145379016796958987</guid><pubDate>Sun, 31 May 2009 03:23:00 +0000</pubDate><atom:updated>2009-05-30T23:28:53.959-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>POLL</category><category domain='http://www.blogger.com/atom/ns#'>JAVA</category><title>POLL: What Persistance Engine Do you Use? (Results)</title><description>&lt;ul&gt;&lt;li&gt;50% Java Persistence API&lt;/li&gt;&lt;li&gt;37% Hibernate (Java)&lt;/li&gt;&lt;li&gt;25% NHibernate (.NET)&lt;/li&gt;&lt;li&gt;0% LINQ (.NET)  0 (0%)&lt;/li&gt;&lt;li&gt;12% ActiveRecord (Ruby)&lt;/li&gt;&lt;li&gt;12% Other&lt;/li&gt;&lt;/ul&gt;Poll closed 04/02/2009&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-5145379016796958987?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2009/05/poll-what-persistance-engine-do-you-use.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-3353357566219263267</guid><pubDate>Sun, 31 May 2009 03:21:00 +0000</pubDate><atom:updated>2009-05-30T23:23:29.838-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>PROGRAMMING</category><category domain='http://www.blogger.com/atom/ns#'>POLL</category><category domain='http://www.blogger.com/atom/ns#'>JAVA</category><title>POLL: What JAVA Do you use? (Results)</title><description>This was not much of a surprise.  SUN Java is the way to go.  I just hope Oracle continues the to support JAVA like SUN did.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;90% SUN Java (linux/Windows)&lt;/li&gt;&lt;li&gt;5% OpenJDK&lt;/li&gt;&lt;li&gt;0% SUN Java (OSX)&lt;/li&gt;&lt;li&gt;5% IcedTea (linux)&lt;/li&gt;&lt;/ul&gt;Poll Close 04/24/2009&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-3353357566219263267?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2009/05/poll-what-java-do-you-use-results.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-8629797680062866514</guid><pubDate>Tue, 18 Nov 2008 20:47:00 +0000</pubDate><atom:updated>2008-11-18T15:51:49.160-05:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>PROGRAMMING</category><category domain='http://www.blogger.com/atom/ns#'>POLL</category><category domain='http://www.blogger.com/atom/ns#'>JAVA</category><title>POLL: What Languages do you code in? (Results)</title><description>It doesn't come as much surprise how many Java programmers are out there.  I am also happy to see so many Ruby developers.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;89% Java&lt;/li&gt;&lt;li&gt;36% C/C++&lt;/li&gt;&lt;li&gt;24% C#&lt;/li&gt;&lt;li&gt;16% Perl&lt;/li&gt;&lt;li&gt;14% Ruby&lt;/li&gt;&lt;li&gt;12% Python&lt;/li&gt;&lt;li&gt;8% Assembler&lt;/li&gt;&lt;li&gt;4% VB&lt;/li&gt;&lt;li&gt;0% Objective-C&lt;/li&gt;&lt;li&gt;0% ADA&lt;/li&gt;&lt;li&gt;0% COBOL&lt;/li&gt;&lt;li&gt;0% LISP&lt;/li&gt;&lt;/ul&gt;Poll closed 11/09/2008&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-8629797680062866514?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2008/11/poll-what-languages-do-you-code-in.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-5132014716714029330</guid><pubDate>Fri, 17 Oct 2008 21:02:00 +0000</pubDate><atom:updated>2008-10-17T17:06:07.698-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>PROGRAMMING</category><category domain='http://www.blogger.com/atom/ns#'>POLL</category><category domain='http://www.blogger.com/atom/ns#'>JAVA</category><title>POLL: What build system do you use? (Results)</title><description>I am pretty surprised how many people use Maven.  I am hoping to get it to work better for Swing apps then it does. &lt;br /&gt;&lt;ul&gt;&lt;li&gt;75% Ant&lt;/li&gt;&lt;li&gt;25% Maven&lt;/li&gt;&lt;li&gt;25% Other&lt;/li&gt;&lt;li&gt;16% make/imake/nmake&lt;/li&gt;&lt;/ul&gt;Poll closed October 9, 2008&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-5132014716714029330?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2008/10/poll-what-build-system-do-you-use.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-7119472433078373389</guid><pubDate>Fri, 17 Oct 2008 20:51:00 +0000</pubDate><atom:updated>2008-10-17T16:54:33.874-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>PROGRAMMING</category><category domain='http://www.blogger.com/atom/ns#'>POLL</category><category domain='http://www.blogger.com/atom/ns#'>JAVA</category><title>POLL: What OS do you develop JAVA on? (Results)</title><description>Ubuntu is really getting up there in Java Developers.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;34%    Windows XP&lt;/li&gt;&lt;li&gt;27%    Linux (Ubuntu)&lt;/li&gt;&lt;li&gt;27%    OSX 10.5&lt;/li&gt;&lt;li&gt;10%    Linux (Fedora)&lt;/li&gt;&lt;li&gt;10%    Linux (SUSE)&lt;/li&gt;&lt;li&gt;10%    Linux&lt;/li&gt;&lt;li&gt;13%    Windows Vista&lt;/li&gt;&lt;li&gt;06%    Other&lt;/li&gt;&lt;li&gt;00%    OSX 10.x&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Poll closed June 28, 2008&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-7119472433078373389?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2008/10/poll-what-os-do-you-develop-java-on.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-2347991603593952749</guid><pubDate>Fri, 17 Oct 2008 20:44:00 +0000</pubDate><atom:updated>2008-10-17T17:14:05.483-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>NETBEANS</category><category domain='http://www.blogger.com/atom/ns#'>POLL</category><category domain='http://www.blogger.com/atom/ns#'>JAVA</category><title>POLL: What Version of Netbeans do you use? (Results)</title><description>Here are the results from our poll of Netbeans version used.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;73% 6.0&lt;/li&gt;&lt;li&gt;19% I don't use Netbeans&lt;/li&gt;&lt;li&gt;14% 5.5/5.5.1&lt;/li&gt;&lt;li&gt;03% 5.0&lt;/li&gt;&lt;li&gt;01% 4.x&lt;/li&gt;&lt;/ul&gt;Poll closed March 31 2008&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-2347991603593952749?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2008/10/poll-what-version-of-netbeans-do-you.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-6902977542976289454</guid><pubDate>Fri, 17 Oct 2008 20:33:00 +0000</pubDate><atom:updated>2008-10-17T17:14:23.437-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>POLL</category><category domain='http://www.blogger.com/atom/ns#'>JAVA</category><title>POLL: Standard Projects you work on? (Results)</title><description>Of all the developers working on projects, the following gives a breakdown.  Note that users could vote on more then one type so the total will be greater then 100%&lt;br /&gt;&lt;ul&gt;&lt;li&gt;70% Swing/GUI&lt;/li&gt;&lt;li&gt;40% WEB/JSP&lt;/li&gt;&lt;li&gt;40% Console&lt;/li&gt;&lt;li&gt;30% Mobile Devices&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-6902977542976289454?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2008/10/poll-standard-projects-you-work-on.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-2098800145625076061</guid><pubDate>Tue, 29 Apr 2008 03:11:00 +0000</pubDate><atom:updated>2008-05-21T10:37:16.007-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>NETBEANS</category><category domain='http://www.blogger.com/atom/ns#'>JAVA</category><title>Netbeans 6.1</title><description>I install &lt;a href="http://download.netbeans.org/netbeans/6.1/final/"&gt;Netbeans 6.1&lt;/a&gt; today and it delivers all expected.   A few points, then I want to get back to playing...&lt;br /&gt;&lt;ul&gt;&lt;li&gt;It starts faster&lt;/li&gt;&lt;li&gt;It runs faster&lt;/li&gt;&lt;li&gt;It looks clean&lt;/li&gt;&lt;li&gt;It has improved code complete&lt;/li&gt;&lt;li&gt;....&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;These are my first impressions.   The impression I have with 6.1 is better then my first impression with 6.0.  Netbeans 6.0 was a big revision of the entire platform.   You can feel all the work that was put into Netbeans 6.1 to improve the base that was started in 6.0.   I am currently running it on my little travel Thinkpad T30 and it is running great.  I completely give this my thumbs up.&lt;br /&gt;&lt;br /&gt;I am very happy.   Well back to it.&lt;br /&gt;&lt;br /&gt;UPDATE: I have been using Netbeans 6.1 for about a month.  Several weeks ago, I switch to Ubuntu Linux 8.04 too.  Both are working very very well.&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-2098800145625076061?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2008/04/netbeans-61.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-2590796991560617959</guid><pubDate>Wed, 27 Feb 2008 17:25:00 +0000</pubDate><atom:updated>2008-02-27T12:33:51.260-05:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>NETBEANS</category><category domain='http://www.blogger.com/atom/ns#'>PROGRAMMING</category><category domain='http://www.blogger.com/atom/ns#'>WEBSERVICE</category><category domain='http://www.blogger.com/atom/ns#'>SWING</category><category domain='http://www.blogger.com/atom/ns#'>HOWTO</category><category domain='http://www.blogger.com/atom/ns#'>JAVA</category><title>HOWTO:  create data aware applications in NetBeans 6.0</title><description>Roumen Strobl created a very clear and easy to follow flash demo describing how to create data aware applications using NetBeans 6.0.   In the demo, Roumen covers 3 topics:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Process for connecting to a MySQL database&lt;/li&gt;&lt;li&gt;Steps to create a "data aware" Swing Application that talks to MySQL&lt;/li&gt;&lt;li&gt;Steps to create a REST based web service for accessing the same database&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;You can view Romen's Weblog &lt;a href="http://blogs.sun.com/roumen/entry/new_demo_netbeans_mysql"&gt;here&lt;/a&gt; and a direct link to the demo &lt;a href="http://www.netbeans.org/download/flash/netbeans_61/mysql_demo/mysql_demo.html"&gt;here&lt;/a&gt;.  The entire demo is under 8 minutes so grab a coffee and enjoy. &lt;br /&gt;&lt;br /&gt;Somewhere on this page you will find a link to Roumen's weblog.  It is on my "bookmark me" list.&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-2590796991560617959?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2008/02/howto-create-data-aware-applications-in.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-1159988936258979073</guid><pubDate>Sun, 24 Feb 2008 06:56:00 +0000</pubDate><atom:updated>2008-02-24T02:31:43.551-05:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>NETBEANS</category><category domain='http://www.blogger.com/atom/ns#'>PROGRAMMING</category><category domain='http://www.blogger.com/atom/ns#'>JAVA</category><category domain='http://www.blogger.com/atom/ns#'>WORKAROUND</category><title>SOLUTION: Web Service Testing in Netbeans 6.0.1 gets ClassNotFound Exception</title><description>&lt;span style="font-style: italic; font-weight: bold;"&gt;Overview&lt;/span&gt;&lt;br /&gt;Recently, I have been working on creating some web services using NetBeans 6.0/6.0.1.  I have done this before and I wasn't creating anything to crazy.  I decided to try them out using the new handy &lt;span style="font-style: italic;"&gt;Web Services &lt;/span&gt;feature that is in the &lt;span style="font-style: italic;"&gt;Services&lt;/span&gt; tab of the NetBeans 6.0.1 IDE.  Within this feature, you can add a WSDL file and look at the features available for consumption from the web service.   My favorite aspect of this is that you can right click on any method and test it.  A form opens so you can provide parameters.  Once submitted, results are returned in an object.  This object can be drilled into for more details.&lt;br /&gt;&lt;br /&gt;Using this testing feature, I ran into an odd issue however.    I created a new WS that I wanted to experiment with.  Again, nothing fancy.  When I setup the WS in the NetBeans &lt;span style="font-style: italic;"&gt;Web Services&lt;/span&gt; area, they were added without errors. However, when I tested them, I got a &lt;span style="font-style: italic;"&gt;ClassNotFound&lt;/span&gt; exception.   I looked at everything but got the same results.  I even deployed them on a different server that is running a newer build of Tomcat but got the same results.   I wrote a simple client that consumed the WS and it _did_ work...?  That was not expected.  I looked that the issue from many different angles but could not see an obvious cause.  Then something occurred to me...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Workaround&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;My web service name was all lowercase.  Since a web service can be considered a class so it should start with an upper case character.    This is normally my convention however, this was just a simple experiment.&lt;br /&gt;&lt;br /&gt;Basically, I had something like:&lt;br /&gt;https://www.inhouse.headache.net/timezonews/convertWS?wsdl&lt;br /&gt;&lt;br /&gt;That should have been like:&lt;br /&gt;https://www.inhouse.headache.net/timezonews/ConvertWS?wsdl&lt;br /&gt;&lt;br /&gt;Once I created my Web Service to start with an upper case character, everything worked.  I have not read to see if a web service MUST start with an upper case character.  If anyone knows the answer, please post&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Final Thoughts&lt;/span&gt;&lt;br /&gt;This was an odd issue that I ran into using NetBeans.  I hope anyone out there who runs into the same thing reads this solution before they lose to much time. &lt;br /&gt;&lt;br /&gt;Happy developing using NetBeans.&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-1159988936258979073?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2008/02/solution-web-service-testing-in.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-4003912748989872553.post-8833375113259710851</guid><pubDate>Mon, 07 Jan 2008 15:49:00 +0000</pubDate><atom:updated>2008-10-17T16:44:03.363-04:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>NETBEANS</category><category domain='http://www.blogger.com/atom/ns#'>POLL</category><category domain='http://www.blogger.com/atom/ns#'>JAVA</category><title>POLL: What is your favorite IDE (Results)</title><description>After several month of polling the favorite IDE results in in.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;65% Netbeans&lt;/li&gt;&lt;li&gt;30% Eclipse&lt;/li&gt;&lt;li&gt;2% Microsoft Visual Studio&lt;/li&gt;&lt;li&gt;2% IBM Visual Age&lt;/li&gt;&lt;/ul&gt;Granted, many of my blog entries are tagged with Netbeans but even more are tagged with Java.  For this reason, the results should be taken with a grain of salt.  Still, it was nice to see so many people vote.&lt;div class="blogger-post-footer"&gt;- - - - - - - - - - - - - - - - - - - - - - -&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4003912748989872553-8833375113259710851?l=stoken-tips-and-tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://stoken-tips-and-tricks.blogspot.com/2008/01/what-is-your-favorite-ide-poll-results.html</link><author>noreply@blogger.com (uuklanger)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></item></channel></rss>