Code name: Joey
De iPad
De iPad biedt ongekende mogelijkheden voor bedrijven.
10to1 kan bijvoorbeeld een productieve applicatie op maat maken, die een mobiele workforce sterke troeven biedt. Sales mensen kunnen hun producten of diensten voorstellen op de iPad, en na hun presentatie samen met de klant checken welke voorraad er nog is van een product, en wat de status is van zijn laatste besteling. Ploegleiders van een schoonmaakbedrijf kunnen op een plan aanduiden waar er problemen zijn, en hiervan in real time rapporten laten genereren op een server, die dan doorgestuurd worden naar de betrokken personen. Allemaal mogelijk met 10to1.
Er zijn ook bedrijven die de iPad vooral zien als een communicatiemedium naar hun (particuliere) klanten toe. Sommige bedrijven laten applicaties op maat maken waarmee ze de folders en flyers die ze al hebben, verspreiden via de iPad.
Joey
10to1 wil daarin verder gaan. Wij zien in de iPad een nieuwe dimensie in efficiënte bedrijfscommunicatie. Natuurlijk kunnen we de content die je al hebt, beschikbaar maken via een gemakkelijk te onderhouden systeem. Maar die content kan je ook verrijken op allerhande manieren: waarom geen video’s toevoegen? Beelden, zo sprekend, zijn schitterend op een iPad. Ook geluid kan een boodschap sterker doen overkomen. En natuurlijk wil je dat je klant onmiddellijk contact met je kan opnemen wanneer hij geïnteresseerd is in je product. Optimale communicatie is immers tweerichtingsverkeer.
Maar 10to1 gelooft ook dat dit iets is dat niet voor elke situatie afzonderlijk moet worden ontwikkeld. Er zijn heel veel gelijkenissen tussen de verschillende bedrijven die zo’n communicatie willen waarmaken. Daarom ontwikkelen wij op dit moment een oplossing hiervoor. Code name: Joey. Alle onderdelen van je communicatie zijn eenvoudig online te beheren, en de applicatie gebruikt elke troef van de iPad om je product eer aan te doen. Joey zal je toelaten om snel te communiceren met je klant. Zonder dat je eerst een ontwikkelingstraject moet doorlopen.
Wil jij je bedrijfscommunicatie ook naar de iPad brengen? Neem contact met ons op!
ActiveRecord, Postgres and schemas, lots of them
The problem
One of the projects I’m working on requires me to read a lot of data from multiple d2r servers using SPARQL. Because the data on these servers can sometimes be similar the data has to be filtered before it is made available to a Rails app that will be displaying the data.
I didn’t want to litter the database of the Rails app with this duplicate data (because it will feed a d2r server in the future), and fetching 10 rows of the server already took some seconds. So fetching all of the data from multiple servers would take quite a long time.
So I needed a place to store this temporary data separately where it wouldn’t bother the data of the Rails app, and be available for filtering when all of the data was fetched. A separate schema for each of the servers would do the job.
Here’s how it goes
I didn’t load the entire Rails environment for this; this way AR doesn’t automatically load the database connection parameters and we can easily adjust them ourself:
dbconfig = YAML::load(File.open(File.dirname(__FILE__)
+ "/../../config/database.yml"))
@database_connection = dbconfig[Rails.env]
AR::Base.establish_connection(@database_connection)
Creating the schema wasn’t that difficult, executing some SQL on the connection did the trick…
AR::Base.connection.execute("DROP SCHEMA
IF EXISTS #{@server_name} CASCADE")
AR::Base.connection.execute("CREATE SCHEMA #{@server_name}")
After that we have to alter the connection so AR does all future operations on the newly created schema.
@database_connection[:schema_search_path] = @server_name
AR::Base.clear_all_connections!
AR::Base.establish_connection(@database_connection)
If you do intend to use the entire Rails environment, be sure to do this before the classes are loaded, so they inherit the correct connection. If not you could unload the classes using ActiveSupport::Dependencies.clear.
But in this case I was loading the classes manually, and fetching the data from different servers in different processes. That way the loaded model classes couldn’t interfere with each other.
With all the fetching processes finished, the data is ready to be filtered and loaded into the database of the Rails app, and be the source database for another D2R server.
10to1 Lighthousekeeper Theme
I recently started using Lighthousekeeper to manage my Lighthouseapp projects. I found the app much easier to use than the current web interface.
But because I didn’t like the main layout and they allow you to create custom themes, I created one myself (with a little help from @maxvoltar).

You can find the installation instructions on Github.
Creating your personal theme
The source files for the 10to1 theme can be found here. It’s very easy to create when you know HTML and CSS.
Now let’s get you on the way.
Create a folder (with the .lhktheme extension) in your ~/Library/Application\ Support/Lighthouse_Keeper/Themes directory.
Inside this folder you should to create a typical index.html file. You can also place some CSS files and images next to it.

And now just design the template as you would with a website. There are also some Lighthousekeeper variables available, just checkout the Lighthousekeeper Manual.
Start!
Welkom, Tom en Bob!
Weet je dit nog? We deden een oproep aan alle gepassioneerde Rails developers, iOS developers, schrijvers, designers, en project managers om te overwegen om bij ons te komen werken.
Sindsdien heeft Tom zich part-time bij ons gevoegd. Om het verschil met die andere Tom duidelijk te maken, en omdat hij een .NET expert is, wordt hij gemeenzaam Dottom genoemd. Dottom heeft zich in iOS development geworpen, en heeft ondertussen al twee iPhone projecten succesvol afgerond. Hij is nu aan zijn derde bezig (en ik moet zeggen: ook dat ziet er prachtig uit).
Ook Bob heeft zich aangemeld. Bob was eigenlijk nog niet helemaal afgestudeerd, maar kwam wel met uitstekende referenties. We hadden er dan ook alle vertrouwen in dat hij ons team goed zou aanvullen — maar we hadden niet kunnen vermoeden dat hij al zo snel up&running zou zijn. Bobs grote passie is Ruby on Rails, en hij wil toch ook wel eens van iOS proeven. Ook hij heeft al een een project of twee, drie gewerkt, en het resultaat overtreft onze stoutste dromen. Bovendien is hij ondertussen afgestudeerd!
We zijn supercontent dat deze twee fantastische mensen ervoor gekozen hebben om 10to1 te versterken.
(Als jij ook in een team vol passie wil werken: probeer ons te overtuigen!)
Vim Flog Plugin
A couple of days ago I found a nice Vim plugin to show the flog scores of your Ruby code insise your Vim editor.
But because it wasn’t really displayed the way I wanted, I forked and customized it.
Now what is Flog?
Flog shows you the most torturous code you wrote. The more painful the code, the higher the score. The higher the score, the harder it is to test.
For more information on the scores, you can read some interesting blog posts here and here.
Vim Plugin
Here is a screenshot of what flog integration looks like in Vim:

As you can see you now always have a number in front of each def block. This number is the flog score, the higher, the more complex your code is.
In case you would like to use it, you can install it by following these steps.
Credits
All the credits for this plugin go to @skammer because he initially wrote the plugin, I just jumped on it and changed it a bit.
Emacs
In case you’re using emacs, Piet recommends using the Emacs Ruby Complexity Plugin.
Resources
- Page 8 of 16
- Newest articles
- Newer articles
- Oldest articles
- Older articles




