Jag lade just upp en kort presentation på slideshare om 10 vanliga missförstånd kring användningsfall. Kolla gärna in den!
  • sysml

SysML är ett modelleringsspråk som utvecklas och förvaltas av OMG. Det är definierat som en UML-profil där men försökt minska UMLs tyngdpunkt på modellering av mjukvara till att göra modellspråket mer generellt och anpassat för att modellera hela system, mjukvara och hårdvara tillsammans.

SysML återanvänder 7 av UMLs 14 diagramtyper och lägger till två nya diagramtyper.

Andreas Hägglund har presenterat SysML för dataföreningens UML-nätverk och tog då fram denna introduktionspowerpoint till SysML.

I've been using Google Web Fonts ever since I started building this blog. It's an awesome service with a great user interface and it makes it really easy to add fonts to your web site. Of course I had to find something wrong with it. Earlier this week our company released our new web site. On our Yammer page, one of my colleagues posted a link to a WebPageTest result for it and it fared reasonably well. It got an "F" on the "First Byte Time" test, but that test is really finicky and could just as well show an "A" if you retake the test (as I later became aware). This triggered my inner masochist and I just had to run the same test on this blog. The first result was this: Test | Score ----|:--: First Byte Time | A Keep-alive Enabled | A Compress Transfer | A Compress Images | C Cache st...
Uploading files asynchronously with XMLHttpRequest is a neat trick on its own, but what I really wanted was a nice way to upload images from my phone and/or tablet. The problem with this is that technology is evolving quite rapidly these days and my smartphone has an 8 megapixel camera. 8 megapixel pictures averages around 2.2 MB on my iPhone 5 and Chrome (and others) defaults file uploads with XMLHttpRequest to 1 MB. Now, one can easily find their way around such limitations but then you just run straight into the arms of the next thing limiting your upload sizes; the web server. And even if you would change all the settings, to allow larger file uploads, you'd have to ask yourself if that's what you really want. It wasn't what I wanted. Uploading photos from my phone is awesome since...
Uploading files using HTML forms has always felt a bit off for me. You had to set your encoding to `multipart/form-data` and the synchronous nature of form posts always made it a waiting game when uploading larger files. Then came AJAX and the dawn of "single page applications" and such buzzwords, but file uploads somehow got left behind. Javascript didn't have the access it needed to send files with the `XMLHttpRequest`. Years passed and along came the File API and XMLHttpRequest Level 2 (it seems to be called that again) with its `upload` attribute, support for byte streams and progress events. Today I'm going to show you how to build an asynchronous file uploader with it. We'll start with the HTML part: There's nothing weird going on here; just a regular file selector and a list o...
I've been hacking away at the blog again and made a little nifty photo uploader for the admin area. It resizes the image on the client (browser) before uploading it with Ajax which is great because now I can upload directly from my phone without worrying about file size. The uploader really needs its own blog post but I'm heading out so in the meanwhile, here is a sneak preview of things to come! !Robotics Oh, that's right; inline pictures are working as well. Remember to refresh your browser cache if stuff looks weird. ...
Nu har till och med Computer Sweden börjat skriva om Scratch: http://computersweden.idg.se/2.2683/1.504465 http://computersweden.idg.se/2.2683/1.504464/en-barnlek-att-bygga-eget-spel Så nu är det på tiden att göra något åt saken. De senaste 6 månaderna har jag hört bra saker om ”programmeringsspråket” från alla möjliga håll och … Continue reading
Every blog should have a search box. Not because it's necessary, but because it's fun to implement. A few weeks ago I ran across a small Javascript library called Lunr.js. It's basically a small text indexer that can rank search results and it's written entirely in Javascript, just the way I like it. Setting up an index is really easy: Then you just add some documents to the index: Then you can search for it by simply calling `searchIndex.search('crummy blog');` and that will return an array of objects with the properties `ref` and `score`. `ref` is the `id` property of the indexed document and `score` is, well, how well it scored. The array will be sorted with the highest scoring result first in the array. If you want you can supply a word list to the search index with words tha...
I got tired of the old dark green design. It was too murky and spring is in the air, so I redesigned the site to be lighter and more "spring-y". ` `Inconsolata` is back as the source code font and `Open Sans` makes up the majority of the text on the blog now with the exception of headers which are set in `Racing Sans One`. All-in-all, I'm happier. And hopefully this can trigger my implementation of multiple pictures per post since I need that to report on my robot project progress. Summer is coming and summer means sun, and sun means solar power which in turn means that I need to speed things up if I want this project done before the (OMG spoiler alert!) new baby in the end of July....
Wow, that was kind of exhausting. I've completed my rewrite of all my blog posts into Markdown. Somewhere in the middle I found why my inline HTML didn't work and that made my old posts look almost acceptable, but the syntax highlighted source code didn't work anymore since I had moved the highlighting code into the `marked` configuration. So on I went into the abyss, continuing to rewrite (more like edit) all my older posts. While I was at it I re-indented all source code examples into using 2-space indentation. Man, some posts do have a lot of source code in them. =) I made good use of SSH for connecting to my server from my parents-in-laws' cabin (where I've spent the last week). `ssh -L 8080:localhost:5984 lofjard.se` made sure I could connect to the CouchDB instance on lofjard.se....