Profile

Cover photo
Stephen Wylie
Works at Hewlett-Packard
Attended Northwestern University
Lives in Soldier Field
105 followers|68,197 views
AboutPostsPhotosVideosReviews

Stream

Stephen Wylie

Shared publicly  - 
 
I see your /^[A-Za-z]+\s[A-Za-z]+$/ regex and raise you /^(([A-Za-z]+[\\']?)([A-Za-z]+)?\s)+([A-Za-z]+[\\']?)([A-Za-z]+)?$/  !!
1
Stephen Wylie's profile photoTommy Butler's profile photo
2 comments
 
# some thoughts, take or leave:

$ap = qr/[[:alpha:]]/; # a commonality in your regex
$fl = qr/$a+[\\']/; # first, last

/^
(
( $fl? )
( $ap+\s )+
( $fl? )
( $ap+ )?
)$
/x; # x = ignore whitespace

You are missing a closing paren, so I had to guess where it goes :O

- Condense commonalities and/or repetitive atoms into small variables
- Use POSIX character classes (unicode-friendly)
- Format complicated regexes
Add a comment...
 
Does Protractor + Selenium WebDriver Sound "Promising?"
I have been diving into JavaScript and AngularJS heavily over the past few weeks, pushing the capabilities of my organization's application testing in the process.  Despite having written quite a bit of JavaScript in my past for a number of award-winning We...
1
Add a comment...
 
Angular + Protractor + Sauce Connect, launched from Gulp, all behind a corporate firewall!
You didn't think it could be done, did you? Well, let me prove you wrong!  First, some terms: AngularJS : An MVC framework for JavaScript, allowing you to write web apps without relying on JQuery. Protractor : A test harness for Angular apps. Sauce Labs : A...
2
1
Stephen Wylie's profile photoTommy Butler's profile photoStacy Devino's profile photo
4 comments
 
Monday April 13th at the new DMS location. 7 PM. Does that conflict with anything? 
Add a comment...

Stephen Wylie

Shared publicly  - 
 
Do you have a system with dual #atmega  microcontrollers, and find yourself in a quandary trying to program them easily? Here's how to write a dual AVR programmer for AVRDUDE that you can use with an #arduino  !  Write to two ATmega chips without needing to rewire anything in between jobs.  http://goshtastic.blogspot.com/2014/09/make-your-own-dual-programmer-in-avrdude.html
1
Add a comment...
 
I defined a new programmer in AVRdude that can write to TWO chips without needing to fiddle with cables in between!
1
Add a comment...
 
I just revived a #windowsxp  installation using #linux   #kvm  and #ddrescue !  The laptop's motherboard died 4 years ago and the OS on it hadn't been booted since, even though I would still use the drive externally on occasion.

Since the hard drive is dying, I used ddrescue since regular dd stopped after a read failure.  These are the commands I used on KVM under CentOS 7:

0) Run "lsblk" to discover which hard drive you want to copy, assuming you can differentiate between them in this manner.  In this example, I found that sdc was the drive I wanted to image.

1) Copy the entire hard drive to a raw .img file using ddrescue:

ddrescue -v -f -n /dev/sdc /vms/XPDRIVE.img dd_XPDRIVE.log

2) Make sure to recover additional bad blocks by skipping the buffer & attempting to read directly from hardware:

ddrescue -d -f -r3 /dev/sdc /vms/XPDRIVE.img dd_XPDRIVE.log

3) Convert the raw image to qcow2 (theoretically you could stick with raw for better performance, but qcow2 adds some reliability features):

qemu-img convert -f raw /vms/XPDRIVE.img -O qcow2 /vms/XPDRIVE.qcow2

4) Download the ISO of Hiren's Boot CD, and then execute this virt-install command to launch a VM with VNC enabled that will start up with Hiren's image while allowing you to work on fixing issues with the XP installation:

sudo virt-install --connect qemu:///system --name XPSYSTEM --hvm --ram 4096 --disk path=/vms/XPDRIVE.qcow2,format=qcow2,bus=ide --network bridge:br0 --graphics vnc --os-variant winxp --arch i386 --cdrom /vms/Hiren\'s.BootCD.15.2.iso --boot=cdrom,menu=on

* This step assumes you have already created a network bridge called br0 that allows your VMs to share the host's Internet connection.

5 - ε) To avoid problems with your mouse, make the remote server deal with the cursor (in TightVNC, select "Options" -> "Let remote server deal with cursor").

If you try to boot the XP VM at this point, you will likely get a 0x7B stop error.  The next step will help you avoid this.

5) In Hiren's Boot, load "Mini Windows Xp".  Once it comes up, go to "Start" -> "HBCD Menu".  Then when that launches, go to "Programs" -> "Registry" -> "Fix hard disk controller (fix_hdc.cmd)".  In the Terminal, first press T to set the Target Root (i.e. your main Windows directory), then press M to let the magic happen.

6) Navigate to the Start menu to restart your VM.  It should reboot into your freshened XP installation!

P.S. Anyone want a 100GB laptop IDE hard drive with a coupla bad blocks?
2
Add a comment...

Stephen Wylie

Shared publicly  - 
 
LEDgoes Battery POWAH boards are now working!  This guy will last quite a while off its 2Ah LiPo battery.
4
Add a comment...
In his circles
57 people
Have him in circles
105 people
Randall Mitchell's profile photo
Gus Reiter's profile photo
Benjamin Maxwell's profile photo
David McCoul's profile photo
Sha Fie's profile photo
Vinh Tran's profile photo
Philip Wrage's profile photo
David Price's profile photo
Marlon B (greenGoblin)'s profile photo

Communities

Stephen Wylie

Shared publicly  - 
 
Ever wondered how to get Protractor tests running from Gulp on Sauce Labs through a corporate firewall?  Here's your answer!
2
Add a comment...
 
For Hardware Startups: Insights on Scaling Up Manufacturing
Several of my previous posts relate to LEDgoes, the first product of OpenBrite, LLC, which ran a very successful Kickstarter campaign.   Stacy & I designed this product (which requires a great deal of custom hardware), though we are in fact two software eng...
1
Add a comment...

Stephen Wylie

Shared publicly  - 
 
Hey +Speechless , will your Speech Wheel at #babbq5  be as cool as my Motion-Sensing Big Wheel?  I love wheels... :D Showcase Showdown with a Virtual Big Wheel!
2
1
Stacy Devino's profile photo
Add a comment...

Stephen Wylie

Shared publicly  - 
 
Make your own dual programmer in AVRDUDE
Those of you who have programmed an Arduino through the Arduino or AVR Studio IDE may have noticed the utility that is really doing the work: AVRDUDE (AVR Downloader/UploaDEr).  This is a powerful program that can facilitate programming new sketches on top ...
1
Add a comment...

Stephen Wylie

Shared publicly  - 
 
Applying old properties to new files in Windows
A while back, I used some kind of "cp -r" command in Linux to copy files from an old IDE hard drive to a newer SATA drive.  The IDE drive is 10 years old, and thus many of the files on there are of that vintage.  Unfortunately, I was not aware that cp does ...
A while back, I used some kind of "cp -r" command in Linux to copy files from an old IDE hard drive to a newer SATA drive.  The IDE drive is 10 years old, and thus many of the files on there are of that vintage.  Unfortunatel...
1
Add a comment...
People
In his circles
57 people
Have him in circles
105 people
Randall Mitchell's profile photo
Gus Reiter's profile photo
Benjamin Maxwell's profile photo
David McCoul's profile photo
Sha Fie's profile photo
Vinh Tran's profile photo
Philip Wrage's profile photo
David Price's profile photo
Marlon B (greenGoblin)'s profile photo
Communities
Education
  • Northwestern University
    Computer Engineering, 2005 - 2009
  • Northwestern University
    MS, Computer Science, 2010 - 2011
Basic Information
Gender
Male
Looking for
Networking
Other names
SteV-O
Apps with Google+ Sign-in
Story
Tagline
Engineer for a $50B software company by day, zealous mobile & Web programmer and life enthusiast by night.
Introduction
Software engineer & tester for lots of platforms from embedded systems to million-dollar enterprise business machines.  Stock options maven, and vintage music and television game show enthusiast.  Collector and semi-frequent wearer of fine suits & dress clothes.  Formerly a scuba diver, composer, and getting back into percussion, so my perfect pitch won't be going away anytime soon.  Laments how "jack of all trades" is no longer a viable career path.
Bragging rights
Winner of several hackathons & contests, including 3rd place in the Apps for Metro Chicago contest with Owtsee in 2011. 2 Apps on the Android Market, 1 app on BlackBerry App World, 1 app on Windows Phone Marketplace. Marched in the 77th annual Macy's Thanksgiving Day Parade in 2003. Won Call for Tapes in PASIC in 2002. Scored a 94% on the Nitrox test (for scuba diving) when I was only 12.
Work
Occupation
I tickle computers into doing my bidding.
Employment
  • Hewlett-Packard
    Engineer, 2009 - present
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Soldier Field
Links
Closest Walgreen's to downtown is closed Saturdays? This is heinous. I walked there from downtown on a hot day expecting it to be open like any other decent Walgreen's... but noooo...
Public - 9 months ago
reviewed 9 months ago
2 reviews
Map
Map
Map