Yeoman

Seems yeoman is the best for Angular dev, like rails. Create, modify controller, views on the fly.

Except it doesnt work. On Windows 8.

Tried in my Centos 6 VM from work.

gen a project:

Error angular 

You don't seem to have a generator with the name karma:app installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 9 registered generators run yo with the `--help` option.

Fine, install karma

localhost bin]$ sudo npm install -g generator-karma
[sudo] password for me: 
npm http GET https://registry.npmjs.org/generator-karma
npm http 304 https://registry.npmjs.org/generator-karma
npm http GET https://registry.npmjs.org/yeoman-generator
...
npm ERR! peerinvalid The package generator-karma does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer generator-angular@0.2.2 wants generator-karma@~0.2.0

npm ERR! System Linux 2.6.32-279.14.1.el6.x86_64
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "generator-karma"
npm ERR! cwd /home/me/tools/WebStorm-127.122/bin
npm ERR! node -v v0.10.4
npm ERR! npm -v 1.2.17
npm ERR! code EPEERINVALID
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/me/tools/WebStorm-127.122/bin/npm-debug.log

So now what? The log file is no help, just the details.

Sigh. Why did I ever do this for a living?

Posted in Computers, howto, Software | Tagged , , , , , | 1 Comment

Walleye

Bought some walleye fillets at Fresh Market, finally cooked them. Used the Cooking with Vince Spice Rub and whew! that’s a spicy walleye. And I even backed off on the red pepper.

But darn good. Some asparagus, some red wine. Good night.

Posted in Dining | Leave a comment

Catleap

So in a Lifehacker post a few months ago on the Hive Five top monitors, number 2 was a Yamakasi Catleap. I spent an afternoon researching monitors and got the same Dell, Best Buy etc. Supposedly this was a IPS panel that was number 2 in line for the Mac display, which is great. The Dell Ultra Sharp 27″ is $800, this was $400.

Issues. It’s shipped from Korea. Dell will come to your house. eBay will not. Pixel stuck? 5 is accepted in Korea. Power? 240 in korea, 120V here. Website? In Korean. Support? Nah. Lots of questions.

Enter eBay and korexmall. They listed a “[Yamakasi] Catleap Q271 LED 27″ S-IPS HDMI Speaker (Perfect Pixel&Free Voltage)”. So no stuck pixels, and includes the 110V adapter. For $450. Free shipping. Wow.

So I dithered for a day or two, then pulled the switch on Sunday. In the meantime, I thought the new panel only had HDMI and Dual-Link DVI so I could not use my existing video card. So I did some more research, and found a cheap Asus E1427U0-C with Nvidia GeForce GT 640 and 2GB of RAM, with HDMI and Dual DVI outputs. But not ridiculous on power consumption or graphics power – not a gamer, thanks. Except maybe for Guitar Hero, and I have not played that for a year. While on NewEgg’s site, I downloaded the Crucial RAM sniffer and got another 4GB of DRAM. In for a penny.

The video card arrived Thursday on the front porch, and a note in the mail saying a parcel was waiting at the post office. Bette was out and got it and came home with a huge box. From South Korea.

Some damage on one corner. Unscathed otherwise.

Opened it. A layer of pillows around the main box.

The main box. Kinda scary.

Opened the main box. Nicely packed in foam corners, all look good. Base comes out, then monitor.

Left over: Manual in Korean, switching power support for 120-240V -> 24VDC. One DVI and one audio cable.

Setup. Snap in base. Try to plug in VGA; plug is too long. If you use VGA D-SUB with this monitor, make sure the plug is 1/2″ long or less – consider cable bend. The D-SUB port is just over the tilt, and it interferes.

Menu buttons along bottom right. Not exactly easy to use. Found Menu button (labeled M, assume S is for Source, that selects between VGA/DVI/HDMI). Blindly found the way to change to English.

Finally gave up on VGA – went to DVI. Plugged it in, reboot. Wow.

Reviewed the customs doc. Shipping listed at 250,000 Won ~ $120 USD. Yow. If they would have listed that on eBay, I might have thought twice.

Base is a bit wobbly, and I did not figure out how to tilt it. A new clamp-on mount is on the way from Monoprice anyway.

ps. I searched for a similar one today and found this listing, for $777 USD. Yow! What gives?

Posted in Computers | Leave a comment

US Postal Service, are you listening?

Ordered a monitor from South Korea. Here is the tracking information from eBay, which looks like it comes from the Korea Post Office:

Tracking #:EG1XXXXXXXKR
Carrier:Korea Post
Status:ACCEPTEDIN TRANSITDELIVERED
Delivered
Mar-29-13, 09:54 AM, WOODSTOCK, IL 60098

Notice Left (No Authorized Recipient Available)
Mar-27-13, 11:37 AM, WOODSTOCK, IL 60098

Out for Delivery
Mar-27-13, 08:52 AM, WOODSTOCK, IL 60098

Sorting Complete
Mar-27-13, 08:42 AM, WOODSTOCK, IL 60098

Arrival at Post Office
Mar-27-13, 08:02 AM, WOODSTOCK, IL 60098

Depart USPS Sort Facility
Mar-27-13, 00:00 AM, PALATINE, IL 60095

Processed through USPS Sort Facility
Mar-26-13, 23:49 PM, PALATINE, IL 60095

Processed Through Sort Facility
Mar-26-13, 12:18 PM, ISC CHICAGO IL (USPS)

Origin Post is Preparing Shipment
Processed Through Sort Facility
Mar-26-13, 00:12 AM, SEOUL

Processed Through Sort Facility
Mar-25-13, 20:55 PM

Acceptance
Mar-25-13, 18:59 PM

So eBay holds it, but someone collects it. This is good tracking. I have never seen this on USPS stuff – it just says “Delivered”. A friend is waiting for a registered letter from Chicago for the last week. No tracking at all.

Better get it together, USPS. And Congress, lay off making them pay retirement benefits up front. For a “conservative” Congress, supposedly advocating for business, you are killing this one.

Posted in Computers, Musings | Tagged , , , , | Leave a comment

Lodge Seconds

For those traveling to Florida or other points, make sure to stop in the Lodge factory store in Sevierville TN. The traffic and construction made it a bit tough, but it was worth it.

We got a 12″ Carbon Steel Skillet for $40, a blemished cast iron 10″ skillet (absolutely perfect for corn bread) for only $12, and a blemished cast iron two-burner (e.g. pancake) griddle for only $40. The blemished items are completely don’t care – as far as I can tell, they are perfect.

Worth the trip. You are there anyway!

Posted in Dining, howto, Travel | Tagged , , , , , | Leave a comment

Git Bash – where’s my flash drive?

I spend my day in the magnificent Git Bash shell. Recently I started bring work home by pushing the project to a bare Git repository on the flash drive at B:

git remote add flash /b/circdesk-android.git
git push flash

If the flash drive was not mounted before Git Bash is launched, it can not be seen. Some Googling resulted in folks saying there was no way to make this happen, some said setting MSYS_WATCH_FSTAB=1 works, some said mounting the drive and accessing it as \\machine\flash.

I tried closing all the Git Bash shells and restarting. Still nothing. But then I remembered that the ssh-agent is run by .bashrc (if not already running) and that might use the same runtime and drive table. So I killed the ssh-agent process and restarted the shell. Yay!

Not sure which, but I set the environment and will kill the ssh-agent first. Now I can push…

Posted in Computers, howto, Software | Tagged , , , , , , , | Leave a comment

Boolean Params in Jenkins

I modified an existing job in Jenkins to use a boolean flag, so I could check it if I wanted to disable the Maven tests. To do so, you define a property:

mvn -Dmaven.skip.tests=true goal goal...

So for the boolean config I set the name to maven.skip.tests and put in the Maven command config:
-Dmaven.skip.tests=${maven.skip.tests}

After running, blam! Pages of
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@f372724
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:100)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:66)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.StackOverflowError
at org.apache.maven.plugin.PluginParameterExpressionEvaluator.stripTokens(PluginParameterExpressionEvaluator.java:408)
at org.apache.maven.plugin.PluginParameterExpressionEvaluator.evaluate(PluginParameterExpressionEvaluator.java:113)
at org.apache.maven.plugin.PluginParameterExpressionEvaluator.evaluate(PluginParameterExpressionEvaluator.java:100)
at org.apache.maven.plugin.PluginParameterExpressionEvaluator.evaluate(PluginParameterExpressionEvaluator.java:385)
at org.apache.maven.plugin.PluginParameterExpressionEvaluator.evaluate(PluginParameterExpressionEvaluator.java:100)

Increase memory to -Xmx1024m. Same. Downloaded the source. Problem with recursive calls to a parse, using int exprStartDelimiter = val.indexOf( "${" );. Hmm. Some params on the build are bad?

Running in debug, I copied the command string into a shell. -bash: -Dmaven.test.skip=${maven.test.skip}: bad substitution
Hmm. I was not getting a value, just a unfilled placeholder.

mvn resources:testResources ran fine.

Little Googling. The param is $X, not ${x}. Aargh!

Now it works. On to the next problem.

Posted in Computers, howto | Tagged , , , , , | Leave a comment

Convert Hg to Git

I have several Bitbucket-hosted Mercurial repos for my binary baseline and some development projects. I started to use Mercurial because the syntax was easier. In the meantime I have been using Git at work and could not remember the Mercurial commands. Time to convert. How?

Thanks to this article, “Converting Mercurial to Git”, it is easy. Kind of. Had to install ActiveState Python, then install the Mercurial package

>pypm install mercurial

Then here are the basic instructions:

$ cd ~/Desktop
$ git clone git://repo.or.cz/fast-export.git
$ git init git_repo
$ cd git_repo
$ ~/Desktop/fast-export/hg-fast-export.sh -r /path/to/old/mercurial_repo
$ git checkout HEAD

Since I use the wonderful msysgit git-bash shell, the script worked, except the `dirname $0` failed for some reason. I just replaced the dynamically generated value with the actual location of the repo.

So mine was

 ~/Desktop/git_repo (master)
$ ~/Desktop/fast-export/hg-fast-export.sh -r /c/bin
ROOT=/c/Documents and Settings/Loaner/Desktop/fast-export
master: Exporting full revision 1/130 with 1/0/0 added/changed/removed files
master: Exporting simple delta revision 2/130 with 7118/0/0 added/changed/removed files
Exported 1000/7118 files
Exported 2000/7118 files
...
master: Exporting simple delta revision 127/130 with 0/1/0 added/changed/removed files
master: Exporting simple delta revision 128/130 with 1/0/0 added/changed/removed files
master: Exporting simple delta revision 129/130 with 3/9/0 added/changed/removed files
master: Exporting thorough delta revision 130/130 with 6/25/1 added/changed/removed files
Issued 130 commands

Everything was on master, so this was an easy test. So far so good. Of course, the EOL issues exist – so on the validation comparison, I set WinMerge to ignore line endings. We’ll see how that works out.

BTW make sure you update the source repo before you convert. I’m just sayin’.

Posted in Computers, howto | Leave a comment

OSX – show environment vars of a running process

jenkins$ ps -wwE -p 38654
 PID TTY TIME CMD
38654 ?? 67:40.42 /usr/bin/java -Dcom.sun.management.jmxremote -Xmx2048m -XX:MaxPermSize=512m -jar /Application
/Jenkins/jenkins.war SHELL=/bin/bash TMPDIR=/var/folders/5f/qnywwqmx3h5fxnwlcssp2sr00000gn/T/ USER=jenkins __CF
_USER_TEXT_ENCODING=0x1F5:0:0 JENKINS_HOME=/Users/Shared/Jenkins/Home PATH=/usr/bin:/bin:/usr/sbin:/sbin PWD=/
CATALINA_OPTS= -Dcom.sun.management.jmxremote SHLVL=0 HOME=/Users/jenkins LOGNAME=jenkins SECURITYSESSIONID=1c2
92 com.apple.java.jvmTask=CommandLine JAVA_ARCH=x

Ahhhhhhh.

Posted in Computers, howto | Tagged , , , , | Leave a comment

Picasa export faces

I use the Picasa app on Windows to use facial recognition to assist in tagging photos. Recently with the passing of a relative, I needed to locate photos with her face in them, so Picasa worked nicely.

Once you find them, you can type Ctrl+A to select all the photos, then File Export to write them to the other computer where I was making the program. Once opening the target folder, I found that only the faces were written to the target folder. I wanted the whole image.

As it turns out, you can toggle the main view (on the top right) from face view to entire photo view. Once it displays in the normal main view, Export will now export the entire image. By selecting the correct settings, you can export at a good quality. However, it DOES convert all the .tif files to .jpg. For this application, that is fine. For an archival process, that is  unacceptable.

Google Picasa

 

Posted in Computers, howto, Software | Leave a comment