Monday, June 01, 2009
Saturday, May 30, 2009
Google Wave - Developer Preview
At the latest Google IO conference Google announced their new Wave application, currently hosted on a sandboxed Google Apps for the (very) priveleged 4000 devs at IO. See the best Dev Conv video since the iPod launched here:
And, a bunch more links - the places I've been reading/watching -up on Wave...
- http://lifehacker.com/5272048/google-wave-is-what-email-would-look-like-if-it-were-invented-today
- http://www.techcrunch.com/2009/05/28/google-wave-drips-with-ambition-can-it-fulfill-googles-grand-web-vision/
- http://www.techcrunch.com/2009/05/28/exclusive-video-interview-with-the-google-wave-founders/
I'm completely blown away by the Developer's Preview video on Youtube already - not even half way in - and I can imagine people connecting, editing, reviewing and mashing up conversations in all forms - web, mobile, tv, everywhere! It's so easy to picture someone picking up the Wave service from a blog page, news article page or (what will used-to-have-been) SMS and just deciding that because they can leave text, photos, videos (live and recorded), maps, snippets of anything etc, that they just begin considering it "the way I communicate with anyone who isn't just in front of me right now." Even if they are, it's easier to share photos or any media with those around you, without needing anything more than a wireless connection (forget bluetooth or even peer-to-peer wifi, etc) simply because adding people to your Wave gives them all the content you've got - along with your messages to them (both open and private!)
Friday, May 29, 2009
BBC: 10 Things You Need To Know - Losing Weight
Really interesting program from the other night about losing weight and how some of the things we're led to believe are wrong, some are slightly off centre and, more to the point, how to do it right with a reasonable amount of will power:
Dilbert, Users And The Search Results Halo Effect...
Dilbert on...
User's prefer search results with the Gooogle Logo, whether Google results or not...
Thursday, May 28, 2009
Latest Gizmodo Amazing And Fun...
Gizmodo:
- http://gizmodo.com/5271408/fullpowers-motion-sensing-concept-knows-what-youre-doing
- http://gizmodo.com/5271666/hand-in-hand-clock-would-need-plenty-of-wall-space
- http://gizmodo.com/5271098/every-mobile-browser-should-give-up-and-just-go-webkit
- http://gizmodo.com/5271418/blockquote-suing-your-customers-is-a-bad-idea
- http://gizmodo.com/5271749/immersions-new-haptic-touchscreen-tech-encourages-corny-iphone-romance
LifeHacker:
- http://lifehacker.com/5271608/open-stuck-jars-with-rubber-bands
- http://lifehacker.com/5271367/moviestinger-reveals-which-movies-have-scenes-after-the-credits
- http://translate.google.com/translate?hl=en&sl=de&u=http://stadt-bremerhaven.de/2009/05/24/portable-google-chrome-2017230-beta/&ei=wnMdSuX_BoaaMtrdjMMF&sa=X&oi=translate&resnum=1&ct=result&prev=/search%3Fq%3Dhttp://stadt-bremerhaven.de/2009/05/24/portable-google-chrome-2017230-beta/%26hl%3Den%26rlz%3D1C1GGLS_enUS326US326%26tbo%3D1 (translated)
- http://lifehacker.com/5271185/showrss-automates-your-tv-show-downloads
Tweeted:
- http://www.windowtabs.com/ - Tab all your windows
- http://blogs.msdn.com/officeliveguy/archive/2009/05/06/multimap-add-in-for-outlook.aspx - Download here: http://explore.multimap.com/Toolbox/toolsSpecific_outlookaddin.aspx
Misc:
Wednesday, May 27, 2009
LifeHacker's Latest...
Mmmmm....
- http://lifehacker.com/5270199/all+glass-firefox-enables-slick-transparency-effects
- http://lifehacker.com/5268060/70-wallpapers-to-dress-up-your-dual-monitors
- http://lifehacker.com/5267508/this-weeks-top-downloads
- http://lifehacker.com/5262009/geek-chart-graphs-turns-web-activity-into-a-pie-chart
- http://lifehacker.com/5232556/get-public-data-graphs-from-google-searches
- http://lifehacker.com/5114997/best-places-to-find-multi+monitor-wallpaper
And some awesome wallpapers for wide screens...
Tuesday, May 26, 2009
Friday, May 22, 2009
When Would You Use GUIDs As Primary Keys?
Here's a question which I'm sure comes up in the odd interview or developer water cooler debate:
There's many answers, but the quick win is: "When using a de-centralised database."
Thursday, May 21, 2009
One Post To Bind Them All: Security, Antivirus And Firewalls
Thought I would create a single post for keeping a log of all security 'best-of' links, (hopefully) updating and bringing it to the top when necessary...
First, lists:
- Security: http://lifehacker.com/tag/security/ http://gizmodo.com/tag/security/
- Anti-virus: http://lifehacker.com/tag/antivirus/ http://gizmodo.com/tag/antivirus/
- Firewall: http://lifehacker.com/tag/firewall/ http://gizmodo.com/tag/firewall/
- Malware: http://lifehacker.com/tag/malware/ http://gizmodo.com/tag/malware/
Next, articles:
- Top 5 anti-virus: http://lifehacker.com/395046/five-best-antivirus-applications
- Top 5 anti-malware: http://lifehacker.com/5227896/five-best-malware-removal-tools
- Panda-virus always updated: http://lifehacker.com/5234347/panda-cloud-antivirus-is-a-lightweight-always+updated-virus-killer
- How to remove troublesome security software: http://lifehacker.com/5233268/appremover-removes-stubborn-security-applications
Blog entries and expert advice articles:
- Simon Edwards security expert and journalist: http://simonedwards.blogspot.com/
Finally, direct downloads:
- PeerGuardian dodgy IP blocker: http://phoenixlabs.org/pg2/
- Spybot Search & Destory anti-spyware: http://www.safer-networking.org/en/download/index.html
- McAfee virus stinger for directed, hot-spot viruses: http://vil.nai.com/VIL/stinger/
Commercial anti-virus applications, most with free, online utilities:
- Sophos: http://www.sophos.com/
- Kaskersky: http://www.kaspersky.co.uk/ Online scanner: http://www.kaspersky.co.uk/virusscanner
If you have other links/advice, please leave comments...
Labels:
anti-virus,
download,
firewall,
gizmodo,
lifehacker,
links,
malware,
security,
windows
LifeHacker, Stuff You Didn't Know And Links
The latest from LifeHacker - VLC changes you probably didn't know about and how to stay safe from Google:
- http://lifehacker.com/5261934/break-googles-monopoly-on-your-data-switch-to-yahoo-search
- http://lifehacker.com/5262604/kantaris-remixes-vlc-media-player-with-new-looks-and-features
- http://lifehacker.com/338074/gussy-up-vlc-with-winamp-classic-skins
And the updated front end for VLC:
Some real thought provoking paranoia about Google up there.
And to round off, a note for email marketers, by an email marketer:
Tuesday, May 19, 2009
Scared? RTFM! Be Informed And Don't Kill!
People should be more informed. That might be easy to say in an information age when there is too much information (or "info"; go figure) to cope with (see the existence of Twitter as proof of information curbing) sensibly. Reading articles is, believe it or not, the better way to stay informed simply because glib and media hungry headlines are the quick start for selling papers and page hits.
If you don't believe me, check out Cracked's latest: http://www.cracked.com/blog/dont-listen-to-jenny-mccarthy
I completely agree with the article. If the media were to treat their content with respect they would title appropriately - and don't tell me that a good title is hard to generate from any story. If CNN and FOX can broadcast the thinly veiled rubbish they headline as even news-worthy (see just about any Hate By Numbers on Cracked.com for evidence.
Explorer Improvements
- http://lifehacker.com/tag/file-explorer/
- http://lifehacker.com/software/geek-to-live/replace-windows-explorer-with-xplorer2-258730.php
- http://www.google.co.uk/search?hl=en&rlz=1C1CHMB_en-GBGB316GB316&q=explorer+replacement+enhancement+lifehacker&btnG=Search&meta=
- http://gizmodo.com/5177016/microsoft-basically-admits-that-ie8-is-for-porn?autoplay
- http://lifehacker.com/software/geek-to-live/replace-windows-explorer-with-xplorer2-258730.php
- http://lifehacker.com/400536/explorer%252B%252B-improves-on-windows-explorer
Monday, May 18, 2009
Useability Of Secure Passwords - What You Need To Know
http://www.baekdal.com/articles/Usability/password-security-usability/
Interesting article about the time it takes to hack a password and how to make one which should, hacker's luck aside, last for a long, long time.
Lifehacker And Some Links...
Just thought I'd add some downloads and sillies today...
- http://lifehacker.com/5255874/nimi-adds-visual-effects-and-eye-candy-to-windows
- http://lifehacker.com/5257667/this-weeks-top-downloads
- http://lifehacker.com/5255295/store-fruits-and-vegetables-properly-to-minimize-waste
- http://lifehacker.com/5256023/repurpose-a-squeeze-bottle-for-perfect-pancakes
- http://lifehacker.com/5254120/repper-turns-your-photos-into-abstract-patterns
- http://lifehacker.com/5254236/edgeless-enables-mouse-cursor-wrap+around
And an extra I found while looking for a replacement for the Alt+Tab task switcher:
Web.Config
Using different fragments of config files in your web.config can be done using file="" ...
Friday, May 15, 2009
Argh! Tech Support and all things ISP...
Oh, the horror of tech support and what it looks like from the inside of an ISP...
Wednesday, May 13, 2009
London To Brighton Bike Ride For British Heart Foundation
As the 58 mile bike ride from Clapham Common to Brighton Pier on the 21st of June draws ever nearer, again, I would like to remind everyone that if you're not taking part you can still participate by sponsoring me...
I really appreciate all sponsorship and though I am not taking special requests I do promise to do my best and get there as fast as I possibly can.
This year I'll essentially be racing my brother, whose only mode of transport is his bike, so for me, whose typical mode of transport is the train, this is a challenge! I don't know how he'd fare in the dojo, though.
If you do want to take part, please visit BHF's website where, for the first year ever, you can sign up online:
Get Rid Of Spam! Temporary Inbox Heaven!
So, with the demise of Temporary Inbox I went searching for some new site which offer completely dynamically assigned email addresses. These are basically mail servers which accept any email sent to their list of domains, store them for a given period, not always keeping attachments, and then delete them. This means that any address is always valid, for example bubble@mailinator2.com or eriguiegb@mailinator.net are both valid emails. Also, checking their inboxes is as simple as going to the host site and entering the email address you want to check.
I found a massive list by simply entering: http://www.google.co.uk/search?rlz=1C1CHMB_en-GBGB316GB316&sourceid=chrome&ie=UTF-8&q=temporary+email
Of course!
Tuesday, May 12, 2009
T-SQL "WITH NOLOCK"
Ignoring the locks SQL places on tables during transactions can be useful, but be careful:
LifeHacker Daily And Recycle Bin On Task Bar
Ok, so I was reading today's LifeHacker articles and here's a thought which never occured to me before: (Windows 7 has) A recycle bin icon on the taskbar for dropping things straight to it without being able to see the desktop:
Now, if you're like me and put things in the bin by hitting delete, this won't impress you too much. However, there are a lot of people out there, mostly ex-Apple and GUI-obsessed users, who "drop to delete". This is for them. And those who can't be bothered to use the keyboard(?)
I'm also adding a right-nav link to Wiggins' Hacks & Tricks tag page:
Now the dailies...
- http://lifehacker.com/5249582/four-experimental-extensions-worth-an-extra-click
- http://lifehacker.com/5249512/put-a-recycle-bin-shortcut-on-the-windows-7-taskbar
- http://lifehacker.com/5248961/senders-time-zone-makes-outlook-better
- http://lifehacker.com/5249203/what-kind-of-emailer-are-you
- http://lifehacker.com/5248910/photoshop-speedup-optimizes-photoshop-startup-time
- http://lifehacker.com/5247820/the-keep-clear-desk
Monday, May 11, 2009
chrome-ui://
Google's Chrome browser has a lot of hidden stuff. Some things I've found are:
- chrome-ui://extensions/ - Opens the installed extensions viewer
- chrome-ui://newtab/ - Shows the quickbrowse display for new, blank tabs
- chrome-ui://downloads/ - Shows the downloads window
- about:internets - Shows the pipes screensaver inside the google browser (XP only)
And here's some other easter eggs:
And to discuss chrome in the google forums:
Thursday, May 07, 2009
Ballpoint Pen Art
Ran across this on StumbleUpon.com and just had to post it because this artist really has talent:
Wednesday, May 06, 2009
Brüno
Saw the preview showing of Brüno last night, Kingston Odeon, and can definately say that if you didn't like Borat you'll hate Brüno!
Started well, got good and ended disturbingly :) The **** helicopter is not to be believed, especially when it then says, "Brüno". After that, the most memorable quote has to be, "Have a good life" and hardest to watch is either the whipping scene at the swingers party or the gay sex in the cage fighting cage - especially when the flying chair narrowly misses both their heads!
All in all, very funny movie that is an ideal follow up to Brüno, just finer tuned :)
Some fun for you:
Tuesday, May 05, 2009
Paging In T-SQL (SQL 2005)
Needing some paging ability for pre-XSLt operations (to keep it all database-side and avoid the hard work in C#) I found this neat little post which helped me create some very compact and efficient paging T-SQL:
LifeHacker and Best Utilities
Latest from LifeHacker, preceded by some awesome utilities links:
- http://lifehacker.com/5239479/taskbar-shuffle-reorganizes-your-taskbar-and-system-tray?skyline=true&s=x - Taskbar Shuffle
- http://lifehacker.com/5143477/five-best-system-tray-applications - 5 Best Tray Apps
- http://lifehacker.com/5178222/top-10-tiny--awesome-windows-utilities - Top 10 Utils
- http://lifehacker.com/software/geek-to-live/power-replacements-for-built+in-windows-utilities-287966.php
And now the awesome recent:
- http://lifehacker.com/5239425/minutesplease-boosts-your-browsing-self+control
- http://lifehacker.com/5239285/addtorun-adds-aliases-to-the-windows-run-box
- http://lifehacker.com/5236323/april-2009s-most-popular-posts
- http://lifehacker.com/5233052/motion-detection-is-an-effective-dead-simple-security-camera-app
- http://lifehacker.com/5234590/how-to-filter-and-manage-your-online-social-life
- http://lifehacker.com/5236718/truecar-shows-you-what-cars-are-really-selling-for
- http://lifehacker.com/5233268/appremover-removes-stubborn-security-applications
- http://lifehacker.com/5236241/the-blue-screen-of-death-survival-guide-decodes-your-system-crash
- http://lifehacker.com/5236576/tweetmypc-uses-twitter-to-remote-control-your-pc
And my latest tools downloads:
- http://www.voidtools.com/ - Everything
- http://www.binaryfortress.com/displayfusion/ - Alternative to MultiMon
- http://lifehacker.com/software/texter/lifehacker-code-texter-windows-238306.php - Text Substitution everywhere
- http://www.revouninstaller.com/ - Uninstall
- http://www.ccleaner.com/ - System Cleaner
- http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx - Windows Process Explorer
- http://sourceforge.net/projects/addtorun/ - Add shortcuts to Win+Run command
- Failed Print Job cancel: http://lifehacker.com/5500684/
Monday, May 04, 2009
Beginning Security In Detail
So, deciding that I really should enter the security world proper, here's a bunch of reading materials and resources worth, er, reading. First, web services...
- Google search yielding good results: http://www.google.co.uk/search?rlz=1C1GGLS_en-GBGB299GB309&sourceid=chrome&ie=UTF-8&q=easy+web+service+security+.net
Articles I've lined up for absorption:
- http://msdn.microsoft.com/en-us/library/aa302409.aspx
- http://www.codeproject.com/KB/webservices/WS-Security.aspx
- http://msdn.microsoft.com/en-us/library/aa480545.aspx
- http://msdn.microsoft.com/en-us/library/ms996415.aspx
Extending background knowledge:
Friday, May 01, 2009
Alternate Row Colouring In XSLt
So, trying to get rows coloured alternately in an HTML table is easy in .NET, just a styling option, but in XSLt it's a little harder. Check out this post for an easy solution:
Ctrl+Left Shift Vs. Ctrl+Right Shift = Chrome Justifying
I've been battling with Google Chrome for a while because it keeps messing about with my text entry on web forms. The text justification just goes wrong after I do a certain key combination and until today it completely baffled me.
Finally solved it: Ctrl + left Shift = Left justify. Ctrl + right Shift = Right justify.
I don't really understand this even existing as an option, but I also seem to remember reading about it, thinking it was a good idea and turning it on. Now I can't remember how to turn it off, but as soon as I find out I'll post it here! Grrr.
Posting Code On Blogger/BlogSpot.com
I've been trying to post code to my blog for ages. Sometimes I suck it and just hand craft all the little symbols which need manipulation, but today I was trying to post a shedload of XSLt and there ain't no way I'm going through that by hand!
So, a quick google about and here is a couple of really good links:
- http://skotl.blogspot.com/2009/02/posting-code-snipped-on-blogspotcom.html
- http://pleasemakeanote.blogspot.com/2008/06/posting-source-code-in-blogger.html
Having said that, LiveWriter is pretty good at posting code and is my preferred weapon of choice.
[EDIT] Ah yes, the problem with LiveWriter is that it won't install on Windows Server 2003, as won't the other Live applications.
Date Formatting In XSLt
I wanted a date to be changed, essentially a string containing a date time. See my previous post for some good XSLt links, but here's my solution:
<xsl:call-template name="FormatDate">
<xsl:with-param name="DateTimeParam" select="@InvoiceDate"/>
</xsl:call-template>
<xsl:template name="FormatDate">
<!-- expecting datetime example: 2009-04-20T00:00:00 -->
<xsl:param name="DateTimeParam" />
<!-- reformat date param to be easier to use -->
<xsl:variable name="DateTime">
<xsl:value-of select="substring($DateTimeParam,1,10)"/>
</xsl:variable>
<!-- new date format January 20, 2007 -->
<xsl:variable name="year">
<xsl:value-of select="substring-before($DateTime,'-')" />
</xsl:variable>
<xsl:variable name="mo-temp">
<xsl:value-of select="substring-after($DateTime,'-')" />
</xsl:variable>
<xsl:variable name="mo">
<xsl:value-of select="substring-before($mo-temp,'-')" />
</xsl:variable>
<xsl:variable name="day">
<xsl:value-of select="substring-after($mo-temp,'-')" />
</xsl:variable>
<xsl:if test="(string-length($day) < 2)">
<xsl:value-of select="0"/>
</xsl:if>
<xsl:value-of select="$day"/>
<xsl:value-of select="' '"/>
<xsl:choose>
<xsl:when test="$mo = '1' or $mo = '01'">Jan</xsl:when>
<xsl:when test="$mo = '2' or $mo = '02'">Feb</xsl:when>
<xsl:when test="$mo = '3' or $mo = '03'">Mar</xsl:when>
<xsl:when test="$mo = '4' or $mo = '04'">Apr</xsl:when>
<xsl:when test="$mo = '5' or $mo = '05'">May</xsl:when>
<xsl:when test="$mo = '6' or $mo = '06'">Jun</xsl:when>
<xsl:when test="$mo = '7' or $mo = '07'">Jul</xsl:when>
<xsl:when test="$mo = '8' or $mo = '08'">Aug</xsl:when>
<xsl:when test="$mo = '9' or $mo = '09'">Sep</xsl:when>
<xsl:when test="$mo = '10'">Oct</xsl:when>
<xsl:when test="$mo = '11'">Nov</xsl:when>
<xsl:when test="$mo = '12'">Dec</xsl:when>
</xsl:choose>
<xsl:value-of select="' '"/>
<xsl:value-of select="$year"/>
</xsl:template>
How To Count Elements In XSLt
In looking to count the number of instances of an XML element I was looking about for a piece of XSLT. Every example I came across had the xsl 'number' element within the 'for-each' element, which meant that the XSLT had to parse the element I was counting first. I didn't want to have a 'for-each' involved at all, but eventually I was in luck, and it's much easier that using a 'number' element:
<xsl:value-of select="count(elementname)" />
I was directed to this solution by experts-exchange: http://www.experts-exchange.com/Web/Web_Languages/XML/Q_21294193.html
However, if you do want to perform counting operations, this is an excellent starting point: http://www.w3schools.com/Xsl/el_number.asp
And for more general XSLt references:
- http://www.developer.com/xml/article.php/3383961 - Good for traversing XML
- http://www.15seconds.com/issue/031105.htm - Paging
- http://www.dpawson.co.uk/xsl/rev2/dates.html - Check this whole site for XSLt goodness
- http://projects.ischool.washington.edu/tabrooks/545/ContentManagement/PassingParameters.htm - Passing parameters to XSLt
- http://www.w3.org/TR/xpath - As always, the standard comes from W3C.org
- http://geekswithblogs.net/workdog/archive/2007/02/08/105858.aspx - Lots of date formatting
I highly recommend D. Pawson's site as it is basically a massive list of examples and explanations for just about everything anyone would ever want to do in XSLt.
Also, of course, the http://www.developer.com/xml/article.php/3383961 article will tell you everything you need to know about traversing XML - especially useful if you are writing code which needs to build, navigate or parse XML.
Latest Links For Today... Awesomeness Abounds!
LifeHacker this friday... first the serious stuff:
- New paradigm in anti-virus/spyware: http://lifehacker.com/5234347/panda-cloud-antivirus-is-a-lightweight-constantly-updated-virus-killer
- Personally, I love Sophos, but here's: http://lifehacker.com/395046/five-best-antivirus-applications
- Tools to kill dead processes (ie: get rid if it freezes): http://lifehacker.com/5232692/kill-frozen-windows-apps-easily
- Easiest process killer: http://haxattack.com/2009/04/29/tip-easy-kill-apps-that-freeze/
- Stop Windows from shutting down: http://lifehacker.com/5234722/how-to-stop-windows-from-shutting-down
- Free data recovery tools: http://lifehacker.com/5233339/best-free-data-recovery-tool
- The whole data recovery schebang: http://lifehacker.com/tag/data-recovery/
- Neat tool for font management: http://lifehacker.com/5231061/windows-fonts-explorer-displays-and-manages-your-windows-fonts and a browser-based font comparer: http://lifehacker.com/5234482/flipping-typical-compares-and-previews-installed-fonts-from-your-browser and other font tools and downloads: http://lifehacker.com/5182958/killer-typography-tools-and-free-font-downloads
- Lots from LifeHacker: swine flu mashup, fb desktop and others: http://lifehacker.com/5233165/remains-of-the-day-more-swine-flu-mashups-edition
- Automated source versioning control: http://lifehacker.com/5232049/flashbake-automates-version-control-for-nerdy-writers
- Google Trends: http://lifehacker.com/5232556/get-public-data-graphs-from-google-searches
- Wyzo browser powers up downloaders: http://lifehacker.com/5234536/wyzo-web-browser-is-a-downloaders-dream
Labels:
anti-virus,
browser,
data recovery,
download,
fonts,
gizmodo,
lifehacker,
links,
processes,
security,
tasks,
tools
Thursday, April 30, 2009
Instant Messaging Tools
Wow, I seriously underestimated the number of instant messaging applications out there. I've been using MSN Messenger for a long time (hasn't everyone?) and now I work on Windows Std Server 2003 I can't - the two are incompatible, as is iTunes/WS2k3. So, I went looking for a replacement which might run on WinSrv2k3, and a quick google of "instant messenger comparison" brought me to this neat link:
Having said that, of course, there are plenty of tools, APIs etc out there to let you build your own instant messaging application - including an MSN Messenger app!...
Code and API's for developing with Microsoft's MSN Messenger service, found via:http://www.google.com/search?rlz=1C1GGLS_en-GBGB299GB309&sourceid=chrome&ie=UTF-8&q=c%23+msn ...
- http://forum.mess.be/index.php?showtopic=36
- http://www.codeproject.com/KB/cs/Connect_To_MSN_Messenger.aspx
- http://www.codeproject.com/KB/cs/MsnMessengerLogListener.aspx
- http://www.hypothetic.org/docs/msn/index.php - Out of date now
- http://msdn.microsoft.com/en-us/library/ms630960.aspx
- http://www.codeproject.com/KB/IP/connectingtomsn.aspx
A number of these utilise the DotMSN API:
- http://www.xihsolutions.net/dotmsn/ - An actual MSN Messenger API wrapped up for C# specifically
Labels:
api,
c#,
code,
instant messaging,
links,
messenger,
msn,
programming,
social,
wikipedia
Word Of The Day: Magnanimous
http://dictionary.reference.com/browse/magnanimous
mag⋅nan⋅i⋅mous [mag-nan-uh-muhs]
–adjective
1. generous in forgiving an insult or injury; free from petty resentfulness or vindictiveness: to be magnanimous toward one's enemies.
2. high-minded; noble: a just and magnanimous ruler.
3. proceeding from or revealing generosity or nobility of mind, character, etc.: a magnanimous gesture of forgiveness.
Wednesday, April 29, 2009
Reading Code As A Learning Tool
Scott Hanselman has been posting code snippets for a while on:
http://www.hanselman.com/blog/TheWeeklySourceCode41SearchingCodeSharingCodeAndReadingCodeAndComments.aspx
I think this is a pretty good way to get used to other styles, understanding and developing an inate ability to become flexible when required to produce code interfacing with other systems.
Also, as Scott points out, is the Google Code Search, where you can highlight code placed on your own site to the Google search engine: http://www.google.com/codesearch
Someone's Gonna Get It, Links, LifeHacker And Gizmodo
Oops: http://gizmodo.com/5231972/best-buy-sells-customer-a-large-brick-in-place-of-a-macbook-pro-literally
Today's Gizmodo favourites:
- http://gizmodo.com/5231776/windows-mobile-65-will-get-tellme-voice-commands
- http://gizmodo.com/5231999/itunes-82-may-point-to-blu+ray-on-macs
- http://gizmodo.com/5231872/puny-humans-return-in-tilt+shift-video
- http://gizmodo.com/5231716/did-you-ever-think-you-could-deposit-checks-using-your-phone-neither-did-i
- http://gizmodo.com/5231330/unofficial-lego-candles-add-fire-to-your-building-projects
- http://gizmodo.com/5231484/spinning-vinyl-turns-ipod-touch-into-a-virtual-turntable
- http://gizmodo.com/5231377/how-holographic-storage-works-spoiler-its-a-3d-cd
- http://gizmodo.com/5231239/what-an-apple-tablet-wont-look-like
Labels:
anti-virus,
apple,
gizmodo,
lifehacker,
links,
security,
tech,
windows mobile
Word Of The Day: Erudite
http://dictionary.reference.com/browse/erudite
er⋅u⋅dite [er-yoo-dahyt, er-oo-]
–adjective
characterized by great knowledge; learned or scholarly: an erudite professor; an erudite commentary
Tuesday, April 28, 2009
Splitting Strings in T-SQL
[EDIT] A very good collection of solutions:
From an ex-colleague (with some alteration):
Create Procedure ReturnStringAsTable
(
@REQUEST VARCHAR(500),
@dividingChr VARCHAR(1) = ','
)
AS
BEGIN
DECLARE @CURRENT_TABLE VARCHAR(200);
DECLARE @INDEX_TO INT;
DECLARE @INDEX_FROM INT;
DEClARE @DATASETINDEX TABLE(ID INT IDENTITY(1,1),[NAME] VARCHAR(200))
SET @INDEX_FROM=0;
SET @INDEX_TO= CHARINDEX(@dividingChr,@REQUEST,@INDEX_FROM);
SET @INDEX_TO= CASE WHEN @INDEX_TO <=0 THEN LEN(@REQUEST)+1 ELSE @INDEX_TO end;
WHILE @INDEX_FROM <>
BEGIN
SET @CURRENT_TABLE=RTRIM(LTRIM(SUBSTRING(@REQUEST,@INDEX_FROM,@INDEX_TO-@INDEX_FROM)))
IF LEN(@CURRENT_TABLE)>2
BEGIN
INSERT INTO @DATASETINDEX([NAME]) VALUES(@CURRENT_TABLE);
EXEC ('SELECT * FROM ' + @CURRENT_TABLE)
END
SET @INDEX_FROM = @INDEX_TO+1
SET @INDEX_TO= CHARINDEX(',',@REQUEST,@INDEX_FROM);
SET @INDEX_TO = CASE WHEN @INDEX_TO > @INDEX_FROM THEN @INDEX_TO ELSE LEN(@REQUEST)+1 END;
END
INSERT INTO @DATASETINDEX([NAME]) VALUES('INDEX_TABLE');
SELECT * FROM @DATASETINDEX
END
Slightly cleaned up version of code found at: http://codebetter.com/blogs/raymond.lewallen/archive/2005/10/26/133774.aspx
CREATE FUNCTION Split(
@IDValues as varchar(500),
@Delimeter as varchar(1)
)
RETURNS @tValues TABLE(IDAux INT)
AS
BEGIN
DECLARE @I AS INT, @Aux AS INT
SET @I = 1
SET @Aux = 1
WHILE @I <= LEN(@IDValues)
BEGIN
IF SUBSTRING(@IDValues,@I,1)= @Delimeter
BEGIN
INSERT INTO @tValues (IDAux) VALUES (CAST(SUBSTRING(@IDValues,@Aux,(@I-@Aux))AS INT))
SET @Aux = @i + 1
END
SET @i = @i + 1
END
RETURN
END
GO
--examples with differents delimeters
select * from Split('1058,1059,1060,1062,',',')
select * from Split('1058|1059|1060|1062|','|')
select * from Split('1058;1059;1060;1062;',';')
Swine Flu, Terabyte Holographic Discs And More...
Gizmodo and LifeHacker...
- http://gizmodo.com/tag/swine-flu/ - Swine Flu on gizmodo
- http://maps.google.com/maps/ms?ie=UTF8&hl=en&t=p&msa=0&msid=106484775090296685271.0004681a37b713f6b5950&source=embed&ll=51.261915,-2.724609&spn=22.291199,39.550781&z=5 - Swine Flu google map
- http://gizmodo.com/5229869/microsoft-presents-us-with-their-vision-of-the-future - Microsoft thinks this is the future
- http://lifehacker.com/5229402/windows-7-will-include-windows-xp-mode?skyline=true&s=i - Win XP under Win 7, erm, ok.
- http://lifehacker.com/5230223/firefox-3010-released-fixes-major-stability-issue - Firefox security fix
- http://lifehacker.com/tag/updates/ - Security updates , including google chrome
- http://lifehacker.com/5230098/smart-installer-pack-automatically-installs-your-favorite-software-to-a-new-pc - Neat installer app
- http://lifehacker.com/5229659/specialfoldersview-displays-hidden-windows-folder-locations - Windows add-on
- http://lifehacker.com/5229647/find-great-wallpaper-using-google-image-searchs-new-features - Find cool wallpapers!
Labels:
gizmodo,
google maps,
lifehacker,
links,
swine flu
Monday, April 27, 2009
Windows Mobile Video Blogging
I want to be able to stream video direct from my Windows Mobile HTC camera, but until I find (or build) a mobile app to let me do that, I'll have to make do with the ideas in this cool little post:
Or the video equivelent of twitter:
And an update, it is possible, but only with Nokia and iPhone:
Better update:
Just discovered service Qik which provides live video streaming apps for a hell of a lot of mobile phones so I signed up, installed and am up and running! A revolution in blogging!
Check out the mobile links for the sites I found!
Labels:
12seconds,
links,
social,
twitter,
video blogging,
videos,
vlogging,
webcam,
windows mobile
Latest LifeHacker And Gizmodo Links: Anti-Malware, Tetris Buildings And Geekiness
LifeHacker:
- http://lifehacker.com/395046/five-best-antivirus-applications
- http://lifehacker.com/5227896/five-best-malware-removal-tools
- http://lifehacker.com/5227761/overdisk-displays-your-disk-usage-as-a-radial-map
- http://lifehacker.com/5226457/star-trek-icons-take-your-desktop-to-the-final-frontier
- http://lifehacker.com/5226028/essential-tools-for-starting-up-your-side-business
- http://lifehacker.com/5224429/paintnet-plugin-lets-you-open-photoshop-files
- http://lifehacker.com/5226160/google-pushes-out-chrome-fix-for-serious-security-hole
- http://lifehacker.com/5227390/beat-your-mp3-tags-into-shape-with-these-mediamonkey-scripts?skyline=true&s=i
- http://gizmodo.com/5228470/carnegie-mellon-demos-the-power-of-facial-recognition-using-star-trek-tos
- http://gizmodo.com/5228207/chalk-drawing-depicts-epic-browser-war-with-a-touch-of-conan
- http://gizmodo.com/5226884/no-this-dancing-buildings-bricks-are-not-falling-like-tetris
- http://gizmodo.com/5226795/photo-veil-the-militarys-cloak-of-almost-invisibility
Saturday, April 25, 2009
Bill Hicks "Lost" Segment from Letterman
Well, I always mourned the fact that I didn't recognise Bill when he was on The Word, that I never got a chance to see him play or that I returned a CD, received by accident, to Amazon of his live show. Apparently, David Letterman regrets things too; And well he should, as this piece is truly amazing, though much will have been re-used elsewhere - Lettermen finally decided to show Bill's set from his controversially cut show in October, 1993.
I really have never had respect for Letterman, but this raises the bar, though I can never quite get rid of the creeping discomfort I always feel when I see him interview someone, as though his inate Americanism is half a step away from massive, embarressing faux par.
Check Bill's site out here: http://www.billhicks.com/index.html
Bill Hicks, October 1st, 1993: http://www.pastemagazine.com/articles/2009/02/letterman-airs-lost-bill-hicks-standup.html
Rest In Piece and fucking Rock On Bill.
Friday, April 24, 2009
A very cool list...
This little flickr entry lists some amazing uses of google maps and earth, I just had to blog:
Latest LifeHacker Links
Some really awesome links here from LifeHacker today:
- http://lifehacker.com/5224423/know-when-your-work-project-is-in-danger
- http://lifehacker.com/5224244/find-new-music-on-twitter
- http://lifehacker.com/5223289/belvedere-updates-adds-folder-recursion-fixes-bugs-and-more
- http://lifehacker.com/5222678/polar-rose-recognizes-faces-in-flickr-photos
- http://lifehacker.com/tag/updates/
- http://lifehacker.com/tag/downloads/
- http://lifehacker.com/5222832/cometdocs-converts-between-more-than-50-file-types
- http://lifehacker.com/5224933/chromium-updater-keeps-nightly-builds-updated
Oh God The Horror
What do you do when the virus breaks out and zombies start munching your friend's head? Damned if I know, but fortunately, big brains have been working on the issue - presumably to keep themselves at thir respectable size...
- http://en.wikipedia.org/wiki/The_Zombie_Survival_Guide
- http://www.cracked.com/blog/whats-your-zombie-contingency-plan-11-practical-strategies/
- http://lifehacker.com/software/zombies/use-google-maps-to-track-zombies-in-your-area-164501.php
- http://www.theregister.co.uk/2007/06/14/street_view_zombie/
All found via:
Thursday, April 23, 2009
Monday, April 20, 2009
Friday, April 17, 2009
Workstation UnLock
For a long time now, I've been looking for a way to unlock a Windows computer programmatically. I'd like to be able to write a service, for example, which can unlock the machine and log in a user, rather than a session (which has no visible affect on the running screen), but simply logging back in the current user would suffice. Frankly, anything would do. There are many uses for this type of code, but my initial thrust was to develop a bluetooth app for my Windows Mobile device which would log me back into my machine when I walk back into range - a simple device detection app on the host machine; doesn't even have to communicate.
So far, I have been greeted with false starts, low-level C++ code (which, for me, never developed to full-fledged Windows coding) and basically tonnes of code which never claimed to work properly.
So, here I am going to log my efforts and record links to resources which might, probably won't, but might prove useful at some point:
- Workstation Unlock forum question: http://forum.sysinternals.com/forum_posts.asp?TID=11220
- Remotely Unlock a Windows workstation: http://www.codeproject.com/KB/system/RemoteUnlock.aspx
- SysInternals AutoLogon 2.0: http://technet.microsoft.com/en-gb/sysinternals/bb963905.aspx
- StackOverflow wanting to unlock workstation: http://stackoverflow.com/questions/174225/unlock-windows-workstation-programatically
Searches on google, etc, that promise so much:
- google "workstationunlock": http://www.google.co.uk/search?hl=en&rlz=1C1CHMB_en-GBGB316GB316&q=workstationunlock&btnG=Search&meta=
- google "workstation unlock": http://www.google.co.uk/search?hl=en&rlz=1C1CHMB_en-GBGB316GB316&ei=JVDoScKaC9O7jAee7OSbCg&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=workstation+unlock&spell=1
Small Post About MVC
Looks like there's some movement in the ASP.NET MVC market, finally, so lets get some links up:
- The low-down from ScottGu: http://weblogs.asp.net/scottgu/archive/2009/04/01/asp-net-mvc-1-0.aspx
- This low-down from Phil Haack: http://haacked.com/
- Chapter on MVC from ScottGu's book, starting from "File->New": http://weblogs.asp.net/scottgu/archive/2009/03/10/free-asp-net-mvc-ebook-tutorial.aspx
- The above chapter direct download: http://aspnetmvcbook.s3.amazonaws.com/aspnetmvc-nerdinner_v1.pdf
- MIX'09, including the MVC announcement: http://weblogs.asp.net/scottgu/archive/2009/03/31/mix-09.aspx
- Download MVC here: http://www.microsoft.com/downloads/details.aspx?FamilyID=53289097-73ce-43bf-b6a6-35e00103cb4b&displaylang=en
- Duplicate content issue discussion: http://blog.dantup.me.uk/2009/04/reducing-duplicate-content-with-aspnet.html
- Binding complex objects returned from views using MVC ModelBinders: http://weblogs.asp.net/melvynharbour/archive/2008/08/29/how-to-use-the-asp-net-mvc-modelbinder.aspx
- Links from google: http://www.google.co.uk/search?rlz=1C1CHMB_en-GBGB316GB316&sourceid=chrome&ie=UTF-8&q=msdn+mvc
- Microsoft explaining the Model View Controller pattern: http://msdn.microsoft.com/en-us/library/ms978748.aspx
- Microsoft breaking it down: http://msdn.microsoft.com/en-us/library/dd394709.aspx
- Community MVC hub: http://www.asp.net/mvc/
- ScottGu's MVC articles: http://weblogs.asp.net/scottgu/archive/tags/MVC/default.aspx
- Stacktrace is always good: http://stackoverflow.com/questions/1846677/how-can-i-deploy-asp-net-mvc-2-beta-in-iis6
Thursday, April 16, 2009
Latest Tech Favourites
Yep, more links from the world of tech blogging, as usual, curtousy of LifeHacker.com and Gizmodo.com:
- http://i.gizmodo.com/5214623/this-is-a-mouse
- http://i.gizmodo.com/5215302/google-street-view-captures-google-employee-picking-his-nose
- http://i.gizmodo.com/5215456/this-robot-helicopter-snipes-better-than-you-with-an-xbox-360-controllerin-real-life
- http://i.gizmodo.com/5215020/cassette-to-digital-usb-gadget-preserves-milli-vanilli-for-eternity
- http://i.gizmodo.com/5215136/impressive-trailer-shows-why-youd-want-a-philips-219-cinema-lcd
- http://lifehacker.com/5214801/move-half+finished-bittorrent-downloads-to-another-drive
Plain English RSS
If you are a bit confused by RSS or have not heard of it before, this little beauty should sort you out...
Tuesday, April 14, 2009
Awesomeness On The Net
Today, from The Register:
- http://www.theregister.co.uk/2009/04/06/treacle_mine_road/
- http://www.theregister.co.uk/2009/04/08/gel_ad/
- http://www.theregister.co.uk/2009/04/09/animal_shelter_boys/
- http://www.theregister.co.uk/2009/03/31/dirty_harriet/
- http://www.theregister.co.uk/2009/04/14/facebook_twitter_users_dunces_amoral/
- http://www.theregister.co.uk/2009/04/01/miss_universe_guantanamo/
- http://i.gizmodo.com/5213584/star-warsmacgyver-mashup-just-makes-sense?autoplay=true
- http://i.gizmodo.com/5214079/google-street-view-car-captures-google-street-view-car-has-officially-seen-everything
- http://i.gizmodo.com/5213434/our-favorite-lifehacker-posts-of-the-week
Friday, April 10, 2009
P2P What I/You Need To Know
Ok, first off: If articles like this http://lifehacker.com/371653/caught-downloading-copyrighted-materialnow-what or this http://gizmodo.com/5066280/almost-half-of-net-traffic-is-not+so+legal-p2p-and-itll-really-take-off-soon scare you, you should probably stop right here, uninstall whatever P2P software you have and signup for online Blockbuster or something (there are better services, not to mention the online ones!) because actually downloading potentially illegal files will scare the socks off you. That's not to say it's scary, difficult or even illegal - if done RIGHT.
Secondly, I'm not advocating sharing illegal files. I pretty much subscribe to this 'manifesto', if you will: http://i.gizmodo.com/5202399/a-pirates-code-of-conduct-for-bittorrent. Personally, I do not intend to break copyright laws, rip-off artists or content producers and I certainly intend to actively help struggling industries, like the British movie industry, because I want movie makers like Simon Pegg and Ricky Gervais to keep me entertained. If the niche, intelligent and truly original creators are supported we will be kept wallowing in Shakespearian quality media for a long time to come!
Having read recently the following articles on LifeHacker and Gizmodo:
I thought it would be appropriate to bone up on some P2P security and best practices. Not that I do P2P, of course. Having said that, it would be nice if the content providers out there were to realise that if they provide customers (ie: potential customers/file-sharers) with what they want they would instantly become loved and extremely rich and probably immediately end the global crisis (new jobs, lots of new customers, new shows - all would be possible tomorrow.)For starters, on the subject of P2P file sharing, there is the whole security thing, which LifeHacker and Gizmodo have neatly covered in a reader friendly way:
- http://lifehacker.com/software/ultranewb/a-beginners-guide-to-bittorrent-285489.php
- http://lifehacker.com/software/hack-attack/intermediate-guide-to-bittorrent-286607.php
- http://lifehacker.com/372633/protect-your-privacy-when-downloading
Amongst those articles, you'll find useful links for things such as:
- http://phoenixlabs.org/pg2/ - Blocks your computer from connecting to IP addresses which are suspect (ie: which collect information you might want kept private)
- http://btguard.com/ - Paid-for service which provides a proxy through which your connections can be passed, making your IP address sort-of invisible to those you connect to
- http://lifehacker.com/5213712/half+open-patcher-speeds-up-bittorrent-downloads - A patch to Windows allows more than the standard 10 connection attempts, but BE CAREFUL
- http://lifehacker.com/5214801/move-half+finished-bittorrent-downloads-to-another-drive - Move files to another drive and let uTorrent complete them later, saving your initial drive space, etc.
- http://lifehacker.com/350405/top-10-bittorrent-tools-and-tricks - How to get the most out of torrenting and things you probably didn't know you could do
And finally, good information comes in all forms, and on the internet this means the best way to find up-to-date links. I like tagged articles on well circulated sites, for example:
- http://gizmodo.com/tag/p2p/
- http://gizmodo.com/tag/how-to/
- http://gizmodo.com/tag/security/
- http://gizmodo.com/tag/piracy/
- http://lifehacker.com/tag/p2p/
- http://lifehacker.com/tag/security/
And some more interesting reading that doesn't fit neatly into the rest of this article:
- http://i.gizmodo.com/5016514/google-tools-will-tell-you-if-your-isp-is-slowing-down-your-connection
- http://www.techthrob.com/2009/03/02/btguard-anonymizing-service-is-it-worth-it/
And a handy little tool:
Thursday, April 09, 2009
Wednesday, April 08, 2009
Open Your Mind Real Wide Now...
Just get imagining, all it takes is a little creativity and some Wii-tech...
Budget Surface
Gizmodo recently reported the building of a budget MicroSoft Surface:
Original article here:
Thursday, April 02, 2009
Augmented Reality in the Real World
Well, seems it's finally here and I've missed the bandwagon - again - though only because I don't have the low level coding, graphics experience and high-end maths to do what a team of PHd holders do:
Wednesday, April 01, 2009
More Augmented Reality
Found these links and just need to make sure I can find them again. Some C# code for augmented reality projects, most based on C++ though...
Online File Storage Services
I've been looking for online file storage sites. I intend to expand on this, but for now, here is what I've found:
- http://docs.google.com/
- http://skydriveteam.spaces.live.com/
- http://www.rapidshare.com/
- http://www.box.net/
Photo only:
Smaller, non-"big name" sites:
More Gizmodo Favourites
Just some more favourites design to entertain, enlighten and enjoy...
First, the best of the best:
- http://i.gizmodo.com/5190768/10-of-the-worlds-smallest-gadgets
- http://i.gizmodo.com/5192774/google-classic-when-the-world-moved-a-little-slower
- http://i.gizmodo.com/5187630/how-to-use-bittorrent-like-a-pro
- http://i.gizmodo.com/5187266/cinemas-most-dramatic-typing-scenes
And now the favourites:
- http://i.gizmodo.com/5192539/ecomodo-+-the-best-of-treehugger
- http://i.gizmodo.com/5192100/happy-100th-birthday-to-the-toaster
- http://i.gizmodo.com/5192013/vending-machine-uses-infrared-rays-to-make-fresh-pizza-on-the-spot
- http://i.gizmodo.com/5191988/dead-pixel-in-google-earth
- http://i.gizmodo.com/5191987/theres-no-place-like-home-button
- http://i.gizmodo.com/5191568/gopro-attached-to-surfboard-for-recording-awesome-wipeouts
- http://i.gizmodo.com/5192819/and-now-a-clock-for-the-truly-geocentric
- http://i.gizmodo.com/5192647/sub+zero-garbage-can-keeps-your-trash-nice-and-frosty
- http://i.gizmodo.com/5192430/review-clear-spot-portable-wimax-wi+fi-hotspot
- http://i.gizmodo.com/5190874/ethernet-cable-fashion-show-looks-like-a-data-center-disaster
- http://i.gizmodo.com/5190434/what-owning-these-15-gadgets-says-about-you
- http://i.gizmodo.com/5190861/someone-found-microsofts-lauren-and-shes-an-actress
- http://i.gizmodo.com/5190647/officepod-provides-an-outdoor-sanctuary-for-people-that-work-from-home
- http://i.gizmodo.com/5190450/the-las-vegas-strip-before-and-during-earth-hour
- http://i.gizmodo.com/5188521/texas-decides-evolution-needs-more-study-i-decide-i-need-less-texas
- http://i.gizmodo.com/5186970/delicious-but-deadly
- http://i.gizmodo.com/5187054/end-of-rainbow-captured-on-iphone-camera-no-pot-of-gold
Subscribe to:
Posts (Atom)