From Richard Feynman, quoted in brain pickings:
If it disagrees with experiment, it is wrong.
The article is worth a visit as it includes some great excerpts from one awesome career.
From Richard Feynman, quoted in brain pickings:
If it disagrees with experiment, it is wrong.
The article is worth a visit as it includes some great excerpts from one awesome career.
It’s relatively simple to include Javascript in your Sharepoint pages. With some judicious editing you can add your code inline or via separate code files.
To include Javascript in your page:
<script></script> tagsWithin the script block just add your normal code, comments, etc. The only issue you’ll have is being able to indent the text and make it look pretty. Tab doesn’t help; you’ll need to use spaces (the horror!).
Don’t use the Rich Text Editor
Important! Always use the Source Editor function to manipulate your code, or any other content within the same CEWP. If you use the Rich Text Editor at any point it will delete all your script.
Sometimes your javascript code may be a little too long to embed. Or, like me, you’ve been burnt once too often by clicking the Rich Text Editor button by mistake. At such times you might prefer to link to separate javascript files rather than embedding all directly.
To link to a separate file:
<script type="text/javascript" src="full path to script file"></script>
For example, here’s a CEWP that includes a separate Javascript file and then references a function (presumably) defined within it.
Just discovered this website had been hacked. First clue was when the site got banned by a corporate web filter as “adult material”. Unless someone had posted a particularly vitriolic comment that was unlikely.
I won’t provide any more oxygen to the hackers over what exactly happened, but here’s the steps taken to get back online.
As always, find a friend who’s been through it before. In particular these two pages proved useful.
First steps taken after reading them (and they explain more about each step):
There is a plugin available that can help check for suspicious code:
http://ocaoimh.ie/exploit-scanner/
Follow the provided instructions to install.
When I ran the scanner it located dodgy code in a plethora of files. Comparing those files to a (sadly) old backup I discovered they were not part of the original wordpress installation. They also, suspiciously, all had an identical and recent install date/time.
Therefore next step was to delete them all. And that did most of the work. I got my site back. Almost….
After deleting all the extra files, the site was almost back. It now did not show the “you’ve been hacked page”. But instead it showed the contents of my theme’s CSS file. Obviously some corruption in there somewhere.
First step was to temporarily install a basic theme and switched to that. All worked well and my site was back up and running. Just ugly(er). To improve I then deleted the corrupted theme and re-installed from a backup. And everything was back to normal.
Thankfully my intrusion proved quite simple to remove. Whether I removed every element we’ll find out in the next days as we see how long the site stays up. However lessons learnt are quite simple:
From Clay Shirky, via gigaom:
Publishing is no longer a job or an industry — it’s a button.
A tad brutal, but interestingly accurate when I think about the work I’m now doing with InDesign, iBook Author, Calibre, etc.
Although it does mean we’ll miss great characters such as this chap:
Haven’t found anything suitably inspiring for a while. But this one from Copyranter made me smile.
Being an expert in social media is like being an expert at taking the bread out of the refridgerator.
Everybody needs a lego moleskine. Comparison shopping at the UK Book Depository proved troublesome because they decided to cut the product title short, removing the information that actually differentiated the products being chosen:
Hard to tell which one to choose when everything you want to know about the choices is unavailable. Should I get the “Lego Y..” or, mmmmm, the other “Lego Y..”?
Compare to Amazon, who manage to fit the full name in without issue:
If you’re going to allow a certain number of characters for a value, assume all of those characters may be important at some point. And make sure somewhere on your interface you let them all get their moment in the sun.
Frustratingly, my iPad calendar appeared to unilaterally decide that the first day of the week was Sunday. And there was no obvious setting to change it, like there is for Calendar on the Mac.
Turns out this “feature” is decided by Apple based on your region. They believe Australian weeks start on Sunday so that’s the way it is. To change the day, change your region.
For Australians wanting their calendar to start on a Monday:
This bizarre choice seems to have the best option for calendar setting, as well as changes it makes to keyboards (what currency symbol you see), date and time formats, even which google you default to when you search. Namibia appears to leave all the other settings “just like Australia”, and still default to google.com.au for searching in Safari.
Thanks to the clever chaps on the Whirlpool forums, particularly dokh22, for uncovering this. Now how long before Apple gives us a calendar setting to do it properly?
Adding frame-by-frame animations to your iOS application is simple once you find out that a UIImageView can be initialised with an array of images, not just one image.
This post was inspired by a colleague who had not uncovered that fact, and so had spent time arduously linking separate views with timers. This post shows how to use a single view and 3 lines of animation code to do all the work.
What we’ll do as a test is animate the blinking eyes on a tennis-playing ninja splash screen. To trigger the animation will add a “blink” button on the same screen.
Don’t ask how we ended up with that as the example (thanks to the friend). But you can download the entire project, or just the images if wanting to join in.
Quoted in a Zach Holman presentation on GitHub, but originally from Merlin Mann:
Making something a BIG RED TOP TOP BIG HIGHEST #1 PRIORITY changes nothing but text styling.
if it were really important, it’d already be done. Period.