MacBook, defective by design banner

title:
Put the knife down and take a green herb, dude.


descrip:

One feller's views on the state of everyday computer science & its application (and now, OTHER STUFF) who isn't rich enough to shell out for www.myfreakinfirst-andlast-name.com

Using 89% of the same design the blog had in 2001.

FOR ENTERTAINMENT PURPOSES ONLY!!!
Back-up your data and, when you bike, always wear white.
x

MarkUpDown is the best Markdown editor for professionals on Windows 10.

It includes two-pane live preview, in-app uploads to imgur for image hosting, and MultiMarkdown table support.

Features you won't find anywhere else include...

You've wasted more than $15 of your time looking for a great Markdown editor.

Stop looking. MarkUpDown is the app you're looking for.

Learn more or head over to the 'Store now!

Thursday, November 29, 2012

USE MyCurrentDatabase
GO
SELECT t.name AS table_name,
SCHEMA_NAME(schema_id) AS schema_name,
c.name AS column_name
FROM sys.tables AS t
INNER JOIN sys.columns c ON t.OBJECT_ID = c.OBJECT_ID
WHERE c.name LIKE '%MyColumnName%'
ORDER BY schema_name, table_name;


FTW.  Straight from THE SQLAUTHORITY.  Sounds a little like an accusatory panel.

Labels: ,


posted by ruffin at 11/29/2012 02:24:00 PM
0 comments

How To Fix : A Plugin ( Shockwave Flash ) Isn't Responding On Google Chrome:
Once all your Google chrome flash instances got crashes you will get a message A plugin ( Shockwave Flash ) Isn’t Responding.Stop Plugin or �The following plugin has crashed: Shockwave Flash.

What you will do in this case? There is actually no any problems with flash but the multiple flash instances causing this Google chrome bug.Now let you know how it fix this issue.

To cut to the chase, type "about:plugins" in the location bar, hope it shows you've got more than one version of flash installed in Chrome, click details at the top right or so, disable the one you want to disable (I had two versions, and disable the one whose file path didn't include Chrome), and voila.  I hope.

Labels: ,


posted by ruffin at 11/29/2012 11:23:00 AM
0 comments
Tuesday, November 20, 2012

ErieStuff: CSS cascade - Which declaration takes priority?:
Which CSS declaration takes priority when one property is declared multiple times with different values? If equal in priority, what declaration has the highest specificity? And finally, in which order of sources are declaration prioritized if declarations are equal in priority and specificity?

I think the one that caused me the most trouble was, "3. Count the number of attributes, class names and pseudo-classes. The highest score wins!"  If you simply create a class and slap it on a tag, you could have a tag-specific class of rules that easily overrides the class.  The key is specificity.  So in my case, .dayshift wasn't showing up on an li tag until I made a li.dayshift {... class. There were other classes on the li that took precedence over the .dayshift class that wasn't tag-targeted.

Capiche?

Labels:


posted by ruffin at 11/20/2012 01:21:00 PM
0 comments
Monday, November 19, 2012

Knockout.js pro tips - working with observable arrays | StrathWebStrathWeb:
Imagine you are inserting 100 items into an observable array. More often than not, you don’t need each subscriber to recalculate it’s dependencies 100 items, and UI to be reacting 100 times. Instead, once should just fine.

To do this, you can always modify the underlying array instead of the observableArray directly, since observableArray concept is just a function wrapper around the traditional JS array. After you are done with the array manipulation, you can then notify all the subscribers that the array has changed its state.
...
In this example. we are using KO extensions to push all values received via XHR call into the underlying array, and then notifying the subscribers using valueHasMutated().

I think the valueHasMutated() function might be the key takehome there. Hello, faster.

Labels: ,


posted by ruffin at 11/19/2012 08:52:00 AM
0 comments
Thursday, November 15, 2012

Sublime Forum • View topic - ImportError: No module named sublimeplugin:
one more question, did
CODE: SELECT ALL
view.runCommand('test1')
change? that's the way the API docs specify to run it but i'm getting an AttributeError.
...
The api docs cover good old Sublime 1.x... Sublime 2 introduces a few changes to how the api works and looks... Most prominently, Sublime 2 api conforms to PEP8, which means camelCase becomes camel_case. However, your best bet is to dir() whatever object you're interested in in the python console (CTRL ~) and try to find the new names. The old docs are still valid to a great extent, but new ones are badly needed.

Good to know.

posted by ruffin at 11/15/2012 10:36:00 AM
0 comments
Friday, November 09, 2012

windows 7 wont synchronize with internet time server - Microsoft Community:
Had to go to services.msc and allow the windows time server access to the computer.Go to run command and type services.msc hit enter,scroll down to windows time server and most likely it says stopped,just restart it.�thank you everyone

In my case, my iPhone's time was off (and authenticators don't like mismatched time), but still good to know.

Labels: ,


posted by ruffin at 11/09/2012 10:05:00 AM
0 comments
Thursday, November 08, 2012

TweakHound - Tweaking Windows 7, Page 2:
Below are the settings for minimal but fully functional Aero with smooth fonts.

Hit the Windows R keys > type sysdm.cpl� > click the Advanced tab > in the Performance section click the Settings button.
Uncheck all boxes except the 4 in the picture below and click Apply.

I went with one checkbox -- Smooth edges of screen fonts.  Nice.

Labels: ,


posted by ruffin at 11/08/2012 04:28:00 PM
0 comments
Wednesday, November 07, 2012

If you tab twice and delete once with tabs, you've indented once.  If you tab twice and delete once with spaces, you're (tabLength - 1) more backspaces away from being indented once.  Tab thrice and you're (tabLength * 2) - 1 more backspaces away from being indented once.  That's a pain.

More easily, reverse operations with spaced tabs bork.

With apologies to Thomas: Every keystroke is sacred.  Use tabs.  QED.

Labels:


posted by ruffin at 11/07/2012 09:53:00 AM
0 comments
Tuesday, November 06, 2012

You really shouldn't need more than that picture to realize that changing the example from Massachutsetts to Joey Joe Joe (id "JO" in case you were wondering) is possible in select2 [as of today].  Though there's a hidden select (afaict now) holding all the options, the text box (or whatever it ends up being) below will take whatever data you push into it.  select2 is multiple; there are two UI widgets that talk to each other.  Don't expect it to act like one.

So to try for yourself...  Go to the select2 homepage with examples, and paste this into Firebug's console line:
$("#e8_2").select2("data", [{id: "CA", text: "California"},{id:"JO", text: "Joey Joe Joe Shabadoo"}]);

Then, for fun, try seeing what you'd pull out if you tried to get the data that's selected:
$("#e8_2_get2").click(function () { alert("Selected value is: "+JSON.stringify($("#e8_2").select2("data")));});

What would I have expected?  Better is a canonical list of data wrapped in an object somewhere that has valid ids, selected values, etc., with an integrated UI that bases contents off of that object's data.

select2 seems to handle data management via double-checking CSS classes and styles. That's not good code.  And if you try to make up an entry, like Joey Joe Joe, above, that should probably be denied by default.  No, that's not making injection significantly more difficult, but it would stop legacy code from 1899 from throwing "Cuba" into a list of US territories, you know?

Anyhow, no, no there's no validation or data storehouse or shared QA between the two widgets.  select2 is very lightly coupled.

Labels: ,


posted by ruffin at 11/06/2012 12:09:00 PM
0 comments
Monday, November 05, 2012

404 Errors in IIS7 for embedded .woff font files:
To solve the problem, double-click the "MIME Types" configuration option while having IIS root node selected in the left panel...

I added woff types for a local testing proj, then it turns out the "real" codebase has it added in web.config or something. Poof, instant HTTP Error 500.19.

Shouldn't be hard to remember the MIME Types configuration panel in inetmgr, but for some reason I had to Google it twice now.  Idiot.

Labels: ,


posted by ruffin at 11/05/2012 08:55:00 AM
0 comments
Saturday, November 03, 2012


Left Banshee building overnight, and woke up to some sort of handshake error.


git clone "git@gitorious.org:~dynalon/banshee-community-extensions/banshee-community-extensions-macosx.git" "banshee-community-extensions-master.git"
Cloning into banshee-community-extensions-master.git...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

I did a little Googling, but am still not real sure what happens next.

SSH with Keys HOWTO: SSH Keys with a passphrase:
5. SSH Keys with a passphrase

Well that that was not too bad was it? But isn't this a bit insecure, anyone who where to gain access to my console would be able to log in to remote systems using your keys. Or what if I lost my key, the finder would be able to access every system on which I installed my public key.

Here's some info on setting something simliar up for a project called Chaw.

Guess I'm off to the dev list.

Labels: , ,


posted by ruffin at 11/03/2012 02:41:00 PM
0 comments

Support freedom
All posts can be accessed here:


Just the last year o' posts:

URLs I want to remember:
* Atari 2600 programming on your Mac
* joel on software (tip pt)
* Professional links: resume, github, paltry StackOverflow * Regular Expression Introduction (copy)
* The hex editor whose name I forget
* JSONLint to pretty-ify JSON
* Using CommonDialog in VB 6 * Free zip utils
* git repo mapped drive setup * Regex Tester
* Read the bits about the zone * Find column in sql server db by name
* Giant ASCII Textifier in Stick Figures (in Ivrit) * Quick intro to Javascript
* Don't [over-]sweat "micro-optimization" * Parsing str's in VB6
* .ToString("yyyy-MM-dd HH:mm:ss.fff", CultureInfo.InvariantCulture); (src) * Break on a Lenovo T430: Fn+Alt+B
email if ya gotta, RSS if ya wanna RSS, (?_?), ¢, & ? if you're keypadless


Powered by Blogger etree.org Curmudgeon Gamer badge
The postings on this site are [usually] my own and do not necessarily reflect the views of any employer, past or present, or other entity.