Friday, February 28, 2014

Adventures in Node.js - Using NPM on Windows

The following still needs to be more carefully verified but I'm making this public now to help someone and hopefully do just that....


We'll call this installment #2 of "Adventures in Node.js" even though my previous Node entry didn't have this in mind.

I'm short on time today so I can't elaborate so much but in short:

One time on your machine:

  1. Install Python 2.7 and add the python.exe folder location to your PATH environment variable.
  2. Either 1 or 2 depending on your setup:
    1. If you don't have Visual Studio 2008 installed (which provides vcbuild.exe):
      1. install the Windows SDK (to provide vcbuild.exe). Good reference at https://github.com/TooTallNate/node-gyp/wiki/Visual-Studio-2010-Setup then ensure that the path to vcbuild.exe is in your PATH environment variable
      2. npm install -g socket.io --msvs_version=2012
    2. If you DO have VS installed, run the following to setup your environment properly:
      1. Add the path to vcbuild.exe to your PATH environment variable then run the following
      2. npm install -g node-gyp
      3. node-gyp configure --msvs_version=2012
      4. node-gyp build
      5. npm install -g socket.io --msvs_version=2012

Once for your project:
  1. npm install
Now your project should be ready for you to use npm in general. My purpose today was to check out grunt, grunt-cli and grunt-devtools thanks to recommendations from Paul Irish both at Google I/O 2013 and a couple weeks ago at the Chrome Dev Summit.

Now that I have npm working it was as simple as (from http://gruntjs.com/getting-started#preparing-a-new-grunt-project):
  1. npm install -g grunt-cli
  2. npm install grunt --save-dev
  3. npm install grunt-devtools
Next I try to setup and use Yeoman (another framework he suggested that relies on Grunt).

Tuesday, February 25, 2014

How We Can Begin to Fix the Government and Your Responsibility and Right as a Juror

One way we have to begin to get our government back in check 100% legally, without any violence

WARNING: If you continue reading, you will likely ruin your ability to serve on any jury that is well managed OR you will forfeit your ability to use this knowledge without being guilty of perjury. This is no joke and you better research this yourself because I'm not responsible for your actions, your interpretation of this information, or any consequences. On the other hand, it is YOUR RESPONSIBILITY as an American to know this.


YOU WERE WARNED

Scroll down to read....


































Pushed down so you must scroll to read and won't be exposed without that effort......



























*Jury Nullification*: Ultimately, it's the jurors RIGHT and RESPONSIBILITY to make a guilty judgement not ONLY based on the facts and law, but ALSO on what you think is right; thereby judging the law itself as well as the "crime". It is a mechanism very intentionally built into the core of our legal system.

This is not my interpretation either, this is our founding forefathers design:

John Adams wrote, “_It is not only the juror’s right, but his duty to find the verdict according to his own best understanding, judgment and conscience, though in direct opposition to the instruction of the court._”

Thomas Jefferson wrote, “_I consider trial by jury as the only anchor yet imagined by man by which a government can be held to the principles of its constitution._”

This video and the following link help explain but beware because jury selection includes questions worded very carefully to eliminate people who understand their full responsibility and power as a juror and those questions are typically worded in a way that if you use jury nullification, you will likely find yourself guilty of perjury. This is because the people who run the legal system as as susceptible to this power as criminals and your ignorance of it gives them tyrannical power. As long as they can keep you off a jury, they can manipulate the legal system rather than have it manipulated by the people who should be doing so, "THE PEOPLE".

The only real way to address this abuse is spread the knowledge so far that they cannot reasonably assemble an otherwise fair jury without allowing jurors who know their full responsibilities and rights as a juror.


Tuesday, February 11, 2014

How to KILL Performance in Chrome 34 dev channel with one CSS rule

I just accidentally discovered a sure-fire way to KILL performance in Chrome 34 dev. I mean, going from a decent 30-60 fps to 0.25-1 fps.

See link below for sample code.

On a page with a good number of input elements (like a management dashboard I'm working with), apply "border: dotted 1px rgba(200, 200, 200, 0.9);" to input elements. It's the combination of the INPUT, element, border-style:dotted and border-color:rgba(). Remove the dotted (use solid) or remove the alpha channel and use rgb() instead and performance returns.

Even after the page is fully rendered and I scroll a few times, which causes things to smooth out a bit, dev-tools is rendered useless.

A sample page can be found here: https://github.com/rainabba/miscCode/blob/master/Chrome34KillPerfUsingInputs

Thursday, January 30, 2014

Glass is NOT Augmented Reality and you Should Stop Comparing it to AR

First, let me say that I AM a Glass explorer and I'm also KickStarter backer #1 for Meta. I've also been working with just about every stereoscopic tech you can think of over the last 15 years (I'm a backer for Oculus Rift, was using LCD Shutter Glasses back in '97, used to DRAW stereoscopic images by hand as a child, wrote my own "Magic Eye" app in DOS 6 using qbasic at the age of 15, etc...)

I feel like I've been talking to walls the last year but here it is said better than I have been able to word it so far. The CEO of Meta (SpaceGlases, Meta-View) Meron Gribetz, the man that hired Steve Mann (a top authority on wearable computing) and Steven Feiner (credited with coining the term augmented reality), says in very simple terms that Glass is not AR so don't take my word for it. To understand how much of an authority Meta is on AR, make sure you know who Steve Mann and Steven Feiner are and then understand that the CTO for Meta has been working with Mann for more than 10 years.

"The 3D output allows you of course allows you to paint graphics on regions of interest in the real world; *TRUE* augmented reality"

"The modern definition of augmented reality; the ability to take digital information and register it to parts of the real world."

"Glass is a Notification Machine"

Glass is a HUD which can be manipulated to provide some VERY BASIC AR-LIKE behavior. That doesn't make it AR any more than a the Nintendo Virtual Boy was VR. That's not to call Glass inferior in any way. Glass just wasn't intended for AR applications. Eventually technology will get to a point where a real AR display like Meta will be useful for something like Glass (lightweight, unobtrusive, wireless, decent battery life; everything Meta is trying to improve right now but falls far short in compared to Glass). With its present design, Glass will never be real AR; no stereoscopy, no direct fov, no 3D tracking, almost nothing that would allow it to convincingly "augment reality" any more than your smartphone currently can. If you're going to call Glass an AR device, then so is ANY smartphone with a camera on the back of a screen. If anything, your phone is MORE appropriate for AR than Glass.


This is the man who will bring AR mainstream and who presently employs the two TOP authorities on AR. He validates what I've been saying since Glass was released. I hate to even mention Glass and AR in the same topic because I don't want to perpetuate the confusion but to clarify, I must do so.

Clarification: Based on a question just posed to me elsewhere, I came up with the following clarification.

The reason I'd more readily call a smartphone AR hardware is because of the fact that you can move the display in your line of sight and it will then (in general) have a camera pointed where your eyes do. Glass intentionally places the display above and to the side of your primary visions so immediately it cannot be in your direct field of view. It does have a camera facing forward with a huge FOV though so the display can be aligned with the camera. It might be a fine distinction, but that's why I say that it's isn't AR but has AR-like ability. You could call a car a bus because it can carry many passengers, but it's still not a bus, it's a car and the difference might seem insignificant, but only until you need a bus (something that does what the name implies). Furthermore, to "augment reality", you must have some reasonably level of belief that your reality has been augmented. As the Oculus Rift has proven, just putting a display in front of you does not accomplish this. Certain things like stereoscopic vision and latency are FAR more important than just having a display. A phone has a larger, higher resolution display that can easily take up a large portion of your primary FOV which is critical to AR. Add an auto-stereoscopic display (EVO 3D or Nintendo 3ds), and you'd also gain stereoscopic vision and with that, be much close to what AR needs to "augment reality" as opposed to just superimposing images into space. Glass has an interesting phenomenon where the display size is entirely dependant on what you see behind it. Because no stereoscopic cues are provided, the only way to make it even remotely believable is perfect scaling of the virtual image of the real one, something next to impossible with only the one camera. The Evo 3D has 2 cameras and so would be that much closer STILL to being a useful AR device but it falls far short in one way that Glass doesn't (not entirely anyway) and that is keeping your hands free so you can interact with reality. A major difference between superimposing graphics and AR is the fact that you not only could believe at some level that your reality has been augmented (not just projected over), but that you can still interact with your reality. That rules out the "phone as AR hardware" idea. So to sum it up, AR must make your reality appear to have changed (not just a projection) and you must be able to interact with that augmented reality. The primary difference between VR and AR is the fact that VR disconnects you from reality. Even with various hand-sensors, VR wouldn't be AR. Similarly, a HMD (head mounted display, like Glass and similar devices) will never be AR. The only real common thread is a see-through, head mounted display (HMD).

Saturday, December 14, 2013

Chrome Dev Tools - Code Collapsing / Folding in Source Editor On Its Way!

I should be able to highlight some code or act on an entire file by hitting a keyboard shortcut (I'm accustomed to Ctrl-M, Ctrl-M to collapse/expand a selected chunk) and have that code visually collapse to just the definition/signature line and a + show up on the left side of the IDE which I could click to re-expand that collapsed piece of code. Ideally, collapsing would also work anywhere there are mandatory closing symbols on a separate like (such as each/while/do/if/else/etc...)

What went wrong? The behavior just doesn't exist as of right now that I can find.

Did this work before? No

How to solve the issue? Ask the Chrome Dev Team to implement it via the bug submitted below :)


The value of this behavior is evident when you consider how often it appears elsewhere even in Chrome (any collapsable treeview demonstrates this). Elements tab does it, all the tabs in the right-pane of Elements (Styles, Computed, Event Listeners, etc..) also do it. Nearly every major IDE does it (Netbeans, VIM, Eclipse, Visual Studio, etc..)

This is extremely valuable to me when working with larger code files to the extent that I'm still using other IDEs instead of DevTools when working with larger or more complex files.

If you're not familiar with this behavior somehow, http://vimeo.com/4020903 does a great job at showing the behavior, some potentially configurable options and perhaps a pattern to emulate since it's VIM and oss.

If you like the idea, go vote (not sure if it matters now, but it can't hurt) by clicking the star at the top left of the bug report below.

Friday, December 13, 2013

Another from Tony - How Babies Are [NOT] Made

Wish I'd have thought of this with both my children. Priceless!


How Babies are Made - Who Knew

Canadian photographer Patrice Laroche surely will have no trouble explaining to his kids about the birds and the bees. 

During his wife Sandra’s pregnancy, the artist created this hilarious explanatory photo series titled “How to Make a Baby”...

The creative couple planned and carried out their project throughout the whole period of 9 months, taking pictures in the exact same settings as Sandra’s belly expanded. 

The pregnancy saga of Sandra and Patrice basically denounces all the traditional cabbage and the stork stories. 








Now how could I not have shared this with you -?

Go ahead, smile, and enjoy your day!!


Courtesy of TonyD (He'll be blogging directly soon)

Monday, December 9, 2013

AirTame - Screencasting to HDMI - Wifi Bridge - Chromecast companion (not a competitor) That I'm Definitely Investing In

I just learned about a upcoming and very interesting product called AirTame (currently funding on indiegogo.com).

I think the description is a bit misleading, but if you consume media from a computer (Windows, OSX, Linux) and use HDMI, it's worth a good look. Likely has some serious Mobile device potential to follow.

I don't agree with their comparison with ChromeCast (especially due to its price and lack of built-in apps) and in fact, will travel with both dongles once I have AirTame but as much because of its value as a network appliance as anything.

It's basic purpose is to broadcast your computer screen to a small HDMI dongle which I like the idea of, but that's not even where it REALLY shines for me.

I have Google Glass, an Android phone, an Android tablet, a laptop, a Chromebook Pixel, multiple Eye-Fi cards and Google ChromeCast with me when I travel. Configuring (and reconfiguring) all these devices to deal with the captive portals that almost always exist while I travel (AirPort, conferences, hotels, etc..) is a real PITA. What's worse is that some devices like my Glass, ChromeCast and my Eye-Fi cards cannot use them due to the captive portals (well, not without some serious monkey business anyway).

AirTame is actually a small networking appliance with hardware media decoders and has TWO WiFi systems so it can act as a Wireless Bridge (be an AP and client at the same time) which means that you connect to it then tell it how to connect to other WiFi networks then it acts as a NAT Router allowing you to configure all your devices to one, well-known device then you only have to configure and manage that one device as you travel. As a result, you get Wifi that's useful to you anywhere you can get it connected to Wifi.

This means that I can now connect my laptop to a TV in the hotel room and also use ChromeCast and Glass where I previously couldn't (without a good bit of hacking anyway) AND all my other devices will "just work" as I'm accustomed to. A side benefit is that it is managing traffic and can prioritize for streaming media.

Since Airtame can be powered by through HDMI MHL OR external USB, I'm betting that I could power it up without having the HDMI plugged in and still get the WiFi Bridge behavior I want (good for the airport), powered off a portable charger even (battery or solar and not even need A/C).

All that AND it's only $89 for one or $169 for two (more options available on their indiegogo campaign). For the networking potential alone in such a small, battery-powered system (using USB and portable chargers), I'd say it's well worth the price. Add the screen casting (especially if the latency is decent in the real world) and it's a steal. If they do some decent Android integration (something like ChromeCast, Miracast, Cheapcast functionality), it's a no-brainer for many, but especially those of us to travel constantly and find ourselves stranded by captive portals.

I'm going to see about a review loaner so keep an eye out for more info.

Thursday, December 5, 2013

Why soldiers should be old men and not young ones

Credit to my buddy TonyM. He always send the funniest .... (the large font is for he and his other legally blind buddies that don't rely on screen-readers)




This is funny & obviously written by a Former Soldier... The New Direction for any war.




I am over 60 and the Armed Forces think I am too old to track down terrorists. You cannot be older than 42 to join the military. They have the whole thing ass-backwards.

Instead of sending 18-year olds off to fight, they ought to take us old guys. You should not be able to join a military unit until you are at least 35.

For starters, researchers say 18-year-olds think about sex every 10 seconds. Old guys only think about sex a couple of times a month, leaving us more than 280,000 additional seconds per day to concentrate on the enemy.

Young guys have not lived long enough to be cranky, and a cranky soldier is a dangerous soldier. 'My back hurts! I can't sleep, I'm tired and hungry.'
We are bad-tempered and impatient, and maybe letting us kill some asshole that desperately deserves it will make us feel better and shut us up for a while...

An 18-year-old doe’s not even like to get up before 10am. Old guys always get up early to pee, so what the hell.
Besides, like I said, I am tired and cannot sleep and since I am already up, I may as well be up killing some fanatical son-of-a-bitch.

If captured we could not spill the beans because we would forget where we put them. In fact, name, rank, and serial number would be a real brainteaser.

Boot camp would be easier for old guys...
We are used to being screamed and yelled at and we are used to soft food. We have also developed an appreciation for guns.
We have been using them for years as an excuse to get out of the house, away from the screaming and yelling.

They could lighten up on the obstacle course however... I have been in combat and never saw a single 20-foot wall with rope hanging over the side, nor did I ever do any pushups after completing basic training.

Actually, the running part is kind of a waste of energy, too... I have never seen anyone outrun a bullet.

An 18-year-old has the whole world ahead of him. He is still learning to shave, to start a conversation with a pretty girl. He still has not figured out that a baseball cap has a brim to shade his eyes, not the back of his head.

These are all great reasons to keep our kids at home to learn a little more about life before sending them off into harm's way.

Let us old guys track down those terrorists.
The last thing an enemy would want to see is a couple million pissed off old farts with bad attitudes and automatic weapons, who know that their best years are already behind them.

HEY! How about recruiting Women over 50...in menopause! You think MEN have attitudes.
Ohhhhhhhhhhhh my God! If nothing else, put them on border patrol. They will have it secured the first night!

You may want to send this to all of your senior friends...in big type so they can read it.

Chrome Dev Tools moves Rendering tab and its children such as "Show potential scroll bottlenecks"

Not sure if the beta channel will be effected, but for those bleeding edge web developers running Canary and following tips from rather smart people like +Paul Irish (since May or so), there is a VERY nice tool available in the Rendering options called "Show potential scroll bottlenecks". Recently I needed to turn it back off and couldn't find it or the rest of the Rendering section that was previously in the Dev Tools option dialog.

Thanks to some rather argumentative people in #chromium-support on FreeNode, I did eventually find where it moved to and explained that many of us might find it a bit too hidden considering the publicity it's seen, but apparently the powers that be have their reasons so I wanted to do my best to make sure everyone knows where it went. I'm including a screenshot below to clarify but you must open the "Console Drawer" (where you find the new emulation tab also) and you will find the Rendering tab.

P.S. If anyone know of a Chrome option/extension/start-up-switch/etc.. that might be responsible for that red tint you see, I'd love to hear about it. It's ONLY happening to Chrome, happens on all 4 of my monitors, and occasionally doesn't affect context menus but I cannot figure out the cause.

UPDATE: If you don't see the Rendering tab, go to your DevTools settings and check "Show 'Rendering' view in console drawer."

G+ Post



Saturday, November 2, 2013

Verizon Corruption, ISIS and Google Wallet

This is a post from XDA today where I addressed someone with good intentions who is supporting ISIS and trying to defend their decision. Original thread HERE.

........

I decided to go ahead and check my facts, and yep; they're all still valid and nothing you've said changes that.

Also, NOBODY is left with ONLY the option of using ISIS. They can do like 99.999999% of the population and use cards... OR they can encourage behavior that will further enable a major communications company already well known for abusing their customers to continue doing so.

As for your point about Apple, you're off base there too because Apple doesn't even have enough market share to have such an effect any more and even if they did, they'd come out with their own 'Isis' and watch everyone (including Verizon) bend over and take it. Of course, even Verizon has enough grey matter to keep themselves from that situation so..... it's not going to happen genius.

Your logic is about as strong as something my 3-year old might try on me and it will get about the same response; a condescending tone and then ignored politely with a forced smile. Wanna guess which step we're on now?

By the way, if you think that's raging, you might be a bit on the sensitive side, but if you'd like I can start using a more gentle tone and words just for you. I think I can recall those days from before the Corps reconditioned me (decades ago)

For the logic and/or mathematically challenged, I've gone ahead and compiled some facts of interest to the topic at hand and to explain why ANYONE supporting ISIS in any way is in the minority and only hurting everyone else.


Taken from: ISIS (VerizonT-Mobile and AT&T) and Google Wallet

I'd like to think that the numbers and facts speak for themselves here.

Followers