You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a buckload of code to authorize users on your application is something you may like or not.
Speaking for myself I hate it. But I still love rails_admin, here's how you install it without devise. Thanks to phoet for providing the hints in the gist I have forked from.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A step definition to modify the browser time when testing with cucumber/capybara
Works for all javascript function that use Date.getTime()
When /^the browser time passes for (\d+) minutes$/ do |minutes|
# The browser needs to catch up a little bit
sleep(0.5)
page.execute_script(<<-JAVASCRIPT
if (Date.prototype._getTime == undefined){
MacBook Pro Core 2 Duo Late 2009 running on a ExpressCard/34 SSD
MacBook Pro Core 2 Duo Late 2009 running on a ExpressCard/34 SSD
My idea is to use my ExpressCard/34 slot with a SSD. Installing the system and applications on the SSD, leaving a large HDD for storage.
So I bought a Wintec Filemate ExpressCard 96GB SSD. I've installed it in my ExpressCard slot and it works just fine. MacOSX recognizes it with it's SATA controller.
The actual usable disk space shows up as 92.4 GB.
Using the Disk Utility I have split the SSD into one 90 GB HFS+ partition and another 2.4 GB. I'll use the latter for swap.
Migrate the existing system
I didn't want to do a reinstall, as my system is just fine and I have no problems with it.
I have a project where I need translated content. Therefore I use globalize3, wich stores its translated attributes in a seperate table that belongs to the original model.
And I use RailsAdmin for painless record management.
It took me some time to figure out how to get those working together, but eventually I found a solution that is non invasive and still ok to work with.
The translated model
In my case there is a Snippet class. It holds content for static pages or text passages on the website. There is a good README for globalize3 for installation instructions and documentation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There is only a few days left, and here is how I prepare myself for Ramendan.
First of all, I did some research to find restaurants in Berlin that serve Ramen.
Not long time ago a client of mine had huge problems with his blog network.
After a server move all the contact forms stopped working. His company was basically "out of business" for more than a week when one of his employees eventually found the error.
I have to state here, that I have an agreement that resolves responsiblity in this case. And I'm just lucky that my responsiblity ends right when I finished moving the servers.
I had no clue about the existance of those contact forms, and I just tested the moved data, wordpress functionality, backups and directory permissions.
But I really feel bad that something like this happens on my servers.
So I started to think about continous production testing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters