jonathan.tron.nameJonathan.inspect | Random thoughts about web and mac development
jonathan.tron.name Profile
jonathan.tron.name
Maindomain:tron.name
Title:Jonathan.inspect | Random thoughts about web and mac development
Description:Jonathan.inspect | Random thoughts about web and mac development |
Discover jonathan.tron.name website stats, rating, details and status online.Use our online tools to find owner and admin contact info. Find out where is server located.Read and write reviews or vote to improve it ranking. Check alliedvsaxis duplicates with related css, domain relations, most used words, social networks references. Go to regular site
jonathan.tron.name Information
Website / Domain: |
jonathan.tron.name |
HomePage size: | 41.837 KB |
Page Load Time: | 0.393484 Seconds |
Website IP Address: |
104.21.6.237 |
Isp Server: |
CloudFlare Inc. |
jonathan.tron.name Ip Information
Ip Country: |
United States |
City Name: |
Phoenix |
Latitude: |
33.448379516602 |
Longitude: |
-112.07404327393 |
jonathan.tron.name Keywords accounting
jonathan.tron.name Httpheader
Date: Thu, 29 Apr 2021 23:57:59 GMT |
Content-Type: text/html; charset=utf-8 |
Transfer-Encoding: chunked |
Connection: keep-alive |
Set-Cookie: __cfduid=da0d7baa5b443aa3b530d3edcc94211e11619740678; expires=Sat, 29-May-21 23:57:58 GMT; path=/; domain=.tron.name; HttpOnly; SameSite=Lax, _typo_blog_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTAzMDU3NmVlZTViNTQ0Y2RkNDVjZGYyYTYyMmY4NjljBjsAVEkiEF9jc3JmX3Rva2VuBjsARkkiMWtJRVNkcW4rMlZ2d0hBZkZzRncrSjkrS2tPOVlWSlNBZzBuOE5GeEdwcEk9BjsARg%3D%3D--38963fda4db98cd0543f8a5152e75150e82d2539; path=/; HttpOnly |
Status: 200 OK |
X-Ua-Compatible: IE=Edge,chrome=1 |
Cache-Control: max-age=0, private, must-revalidate |
X-Request-Id: 9979eb16-8cc5-44dc-a202-883e60425a2a |
X-Runtime: 0.314995 |
X-Rack-Cache: miss |
Via: 1.1 vegur |
CF-Cache-Status: DYNAMIC |
cf-request-id: 09c1aa72a300003dd35a8ef000000001 |
Report-To: "group":"cf-nel","endpoints":["url":"https:\\/\\/a.nel.cloudflare.com\\/report?s=6yLlCoimnojvG%2FUhTxmXZoyaIkGhXCZS83hlEP5ltRuhJpVG5VSbs8cVWrZsAzW181iDKcc1DHSsqv%2B6ygvYU%2B9817royZ2b9y6mrQzmimc8EfSbqeEUcvb6liSi2rg%3D"],"max_age":604800 |
NEL: "max_age":604800,"report_to":"cf-nel" |
Server: cloudflare |
CF-RAY: 647c79ca9ac43dd3-EWR |
Content-Encoding: gzip |
alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400 |
jonathan.tron.name Meta Info
104.21.6.237 Domains
jonathan.tron.name Similar Website
Domain |
WebSite Title |
jonathan.tron.name | Jonathan.inspect | Random thoughts about web and mac development |
gentlewisdom.italiapa.com | Gentle Wisdom - Thoughts on life from Peter KirkGentle Wisdom | Thoughts on life from Peter Kirk |
aseekersthoughts.com | A Seeker's Thoughts |
techthoughts.workingnets.com | Tech Thoughts |
feld.com | Feld Thoughts |
tar.weatherson.org | Thoughts Arguments and Rants |
blogs.quovantis.com | Our Thoughts About Software Design And Development |
something-insightful.com | Something Insightful Random Thoughts And A Little Extra |
kunstmusik.com | steven yi :: music – thoughts and experiences |
sb.org | Stoney’s ZoneStoney's Zone - Thoughts about stuff |
cuppi.net | John Cuppi tech blog and other thoughts |
davidwallace.com | David Wallace - Thoughts, Ramblings and Other Stuff |
stoney.sb.org | Stoney’s ZoneStoney's Zone - Thoughts about stuff |
john.cuppi.net | John Cuppi — tech blog and other thoughts |
kenklaser.gaiastream.com | Conscious Junkyard | thoughts, ramblings, and rants |
jonathan.tron.name Traffic Sources Chart
jonathan.tron.name Alexa Rank History Chart
jonathan.tron.name Html To Plain Text
Jonathan.inspect Random thoughts about web and mac development Migration to Heroku Hi, if you read those lines it means the DNS were updated and you’re looking at this blog hosted on Heroku . It’s been a long time since I wanted to try Heroku for more than a little Sinatra test app, so I decided to try with this blog. We’ll see how it goes in the next weeks. Published on Sat, 11 Jun 2011 12:20 0 comments End of my Rubygems mirror With the advent of Gemcutter , I don’t feel the need to maintain my own rubygems mirror anymore. Please remove it from your gem source if you’re using it and replace it by Gemcutter. To install gemcutter as the main source for your gems : gem install gemcutter gem tumble Published on Sat, 05 Dec 2009 17:58 1 comment Sinatra, Sequel, HAML, PostgreSQL, UTF-8 and Ruby 1.9.1 Lately, with my friend and colleague Joseph, we made some experiments with the Sinatra Ruby Framework. As part of the experiment we’ve chosen to stick with our DB of choice PostgreSQL and our preferred template engine HAML , but we decided to give the Sequel ORM a try as well as using Ruby 1.9.1. We also wanted to store our datas as UTF -8 (this part is the most painful of all). Our first goal was to have a simple application tying everything together and testable with RSpec and Cucumber . Using Sinatra and HAML is a snap, as it’s a core feature of Sinatra, just be sure to use HAML version >= 2.2.0 as it includes some work to support new Ruby 1.9 String Encoding . Then comes Sequel, using it is as simple as requiring it and feeding it with database connection information, just be sure to set the :encoding => 'UTF-8' (cf : Sequel::Database.connect method). Sequel is great in that it has adapters for most commons connectors, first we tried DataObjects ’s do_postgres as it should support asynchronous query (and it does !), but we had to fall back to the PG one and even to a patched version . Let me explain the problem here, and be warned it’s not limited to Sequel, but to any ORM using currently available db connectors, when using a charset different from ASCII -8BIT under Ruby 1.9. What happens is that ORMs do not force any encoding on String returned by the database connectors even when you specified an encoding (commonly used to set the connection’s “client_encoding”). Current ruby connectors (under Ruby 1.9) do not use the database/client’s connection encoding as a “hint” to determine and set the encoding of returned values. This is not a problem on Ruby 1.8, but on Ruby 1.9 you get some weird results, the string returned from db have a default encoding “ ASCII -8BIT” (in fact default for BINARY ), as ORMs do not force encodings this result in a String with the bad Encoding. Try to display it on a page and you’re welcomed with friendly “incompatible character encodings: ASCII -8BIT and UTF -8.” messages or try to use Webrat with RSpec matchers and you get “incompatible encoding regexp match ( UTF -8 regexp with ASCII -8BIT string)”. So here are the libraries versions to use to have a working Sinatra, Sequel with Postgres, HAML , RSpec, Cucumber stack : Sinatra >= 0.9.4 Rack-Test >= 0.4.1 Webrat >= 0.5.0 kamk-pg >= 0.8.0.3 (http://github.com/kamk/pg/tree/master) Sequel >= 3.0.0 RSpec >= 1.2.8 Cucumber >= 0.3.94 Then you need to monkey-patch Rack (this is highly untested, it worked for my current app but it should not be used in production environment) : module Rack module Utils def escape (s) regexp = case when RUBY_VERSION >= " 1.9 " && s.encoding === Encoding .find( ' UTF-8 ' ) / ([^ a-zA-Z0-9_.-]+) / u else / ([^ a-zA-Z0-9_.-]+) / n end s.to_s.gsub(regexp) { ' % ' + $1 .unpack( ' H2 ' *bytesize( $1 )).join( ' % ' ).upcase }.tr( ' ' , ' + ' ) end end end This does 2 things : it’s using bytesize($1) to correctly handle multibyte chars (taken from http://github.com/rack/rack/commit/ce26ede59d9e833ee233edff8d9ec73c6ecb0998) it’s using a regexp with “u” (unicode) modifier when dealing with UTF -8 Strings under Ruby 1.9. There you go, you can finally test your Sinatra apps outside-in even when using non-us languages under Ruby 1.9. Isn’t that great ? Published on Thu, 20 Aug 2009 10:38 3 comments RubyGems mirror update Due to the increasing time/resources needed to generate the indices for my rubygems mirror, I decided to stop generating the ones for old RubyGems versions (<= 1.2.0) and switch to the —update option. This greatly help with the load generated on the server by the mirroring/indexing process. From now on I will only generate the legacy indices (for RubyGems <= 1.2.0) twice a day : 12AM UTC+2/12PM UTC+2. Published on Sun, 21 Jun 2009 20:13 0 comments Creating your own RubyGem mirror In case you want to create your own RubyGem mirror here’s how I did mine. From now on, let’s pretend we will store the mirrored gems in : /data/rubygems.mirror First you need to create a config file ( YAML format) specifying the source and destination for your mirror (put it in /data/gemmirror.config for example) : --- - from: http://gems.rubyforge.org to : /data/rubygems.mirror - from is the master mirror you will pull from - to is the directory where your mirror files will be stored Then all you have to do is to add this commands as a cron task : /usr/bin/gem mirror --config-file=/data/gemmirror.config && /usr/bin/gem generate_index -d /data/rubygems.mirror /usr/bin/gem mirror —config-file=/data/rubygemmirror : will mirror the gems using informations in /data/rubygemmirror file /usr/bin/gem generate_index -d /data/rubygems.mirror : will generate an optimized index to reduce the datas transfered on index update Here’s what you asked for Nick ! Published on Fri, 23 May 2008 22:06 8 comments RSpec and HAML Helpers Today I faced a problem with specing a helper where I use the haml_tag/puts methods (haml_tag was previously open). Here’s a solution working with Rails 2.0.2, RSpec 1.0.3 and HAML 1.8.2 : in spec_helper.rb add : Spec :: Runner .configure do |config| ... # Activate haml to spec helpers config.with_options( :behaviour_type => :helpers ) do |config| config.include Haml :: Helpers config.include ActionView :: Helpers config.prepend_before :all do # Update from Evgeny comment, with HAML >= 1.8.2, you can call init_haml_helpers # Old way for HAML <= 1.8.2 # @haml_is_haml = true # @haml_stack = [Haml::Buffer.new] end end ... end then you can write your helper spec like this : describe ApplicationHelper do describe " #top_navigation_menu when logged in " do it " returns the menu " do @user = mock_model( User ) capture_haml { top_navigation_menu( @user ) }.should_not be_empty end end The interesting method is capture_haml , which does the same as Rails builtin capture but for HAML . haml_tag / puts methods write output directly to the buffer and does not return the generated content as a String, thus we cannot just test on the method output. Published on Wed, 21 May 2008 21:35 2 comments Bad key bindings over ssh from a mac I encountered, for some time now, problems when connecting over ssh from my mac to a linux machine. These problems were related to backspace/delete key in both nano and zsh the solutions I found today are : For zsh type : echo "bindkey ^? backward-delete-char" >> ~/.zshrc echo "bindkey ^[[3~ delete-char" >> ~/.zshrc WARNING : you should type these commands not copy/paste them, ^? sequence is obtained using ctrl+v then [backspace key]. For nano type : ## Fix Backspace/Delete confusion problem. echo "set rebinddelete" >> ~/.nanorc All should works now. Published on Sat, 23 Feb 2008 20:44 6 comments Automount shared directory on Leopard Following my last post, here’s another handy new thing to do in Leopard. I never used this in Tiger (MacOS X.4) because it was not practical (besides being possible), but I swear it was usable by the time. Auto-mounting remote shared server (Samba, NFS , AFS ) wherever I want, without being stuck with a dead Finder.app whenever I lost wifi n...
jonathan.tron.name Whois
"domain_name_id": null,
"domain_name": "TRON.NAME",
"registrar_id": null,
"registrar": null,
"registrant_id": null,
"admin_id": null,
"technical_id": null,
"billing_id": null,
"creation_date": null,
"expiration_date": null,
"updated_date": null,
"name_server_ids": null,
"name_servers": null,
"status": "clientTransferProhibited https://icann.org/epp#clientTransferProhibited"