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
| class ContactMail < ActiveRecord::Base | |
| has_no_table | |
| column :name, :string | |
| column :number, :string | |
| column :email_address, :string | |
| column :text, :string | |
| validates_presence_of :name, | |
| :message => 'Bitte geben Sie einen Namen an' |
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
| <!-- | |
| Das in den HEAD, nachdem jQuery geladen ist | |
| --> | |
| <% if iphone_user_agent? %> | |
| <script type="text/javascript"> | |
| jQuery(window).load(function() { | |
| $('#hidepage').hide(); | |
| }); | |
| </script> |
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
| [eve ~ 14:50 $] GEM_HOME= /usr/bin/ruby /usr/bin/gem list | |
| *** LOCAL GEMS *** | |
| actionmailer (2.2.2, 1.3.6) | |
| actionpack (2.2.2, 1.13.6) | |
| actionwebservice (1.2.6) | |
| activerecord (2.2.2, 1.15.6) | |
| activeresource (2.2.2) | |
| activesupport (2.2.2, 1.4.4) |
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
| irb(main):011:0> Benchmark.measure { 1_000_000.times { c = "0xdeadbeef"[0..0]; (c == 'D' || c == 'T') } }.real | |
| => 1.12148904800415 | |
| irb(main):012:0> Benchmark.measure { 1_000_000.times { "0xdeadbeef" =~ /^(D|T)/ } }.real | |
| => 0.670931100845337 |
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
| (gdb) bt | |
| #0 0x00000000004070e7 in dictObjHash (key=0x68f45648) at redis.c:1038 | |
| #1 0x000000000040627f in dictExpand (ht=0x647ca8, size=<value optimized out>) at dict.c:190 | |
| #2 0x0000000000406461 in dictAdd (ht=0x68f45618, key=0x1e05b6458, val=0x1e05b6478) at dict.c:421 | |
| #3 0x000000000040bdbb in setGenericCommand (c=0x1bc2caac8, nx=0) at redis.c:3835 | |
| #4 0x000000000040e2d3 in call (c=0x68f45618, cmd=0x12) at redis.c:2123 | |
| #5 0x0000000000414e78 in processCommand (c=0x1bc2caac8) at redis.c:2312 | |
| #6 0x0000000000413620 in processInputBuffer (c=0x1bc2caac8) at redis.c:2468 | |
| #7 0x0000000000414f1b in readQueryFromClient (el=<value optimized out>, fd=<value optimized out>, privdata=<value optimized out>, | |
| mask=<value optimized out>) at redis.c:2501 |
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
| # gcc fork.c && ./a.out | |
| allocated: 1 MB, fork() took 0.000 | |
| allocated: 10 MB, fork() took 0.001 | |
| allocated: 100 MB, fork() took 0.007 | |
| allocated: 1000 MB, fork() took 0.059 | |
| allocated: 10000 MB, fork() took 0.460 | |
| allocated: 20000 MB, fork() took 0.895 | |
| allocated: 30000 MB, fork() took 1.327 | |
| allocated: 40000 MB, fork() took 1.759 | |
| allocated: 50000 MB, fork() took 2.190 |
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
| Lightning ~intranet ‹master*› ree-1.8.7-2010.02» git diff config/routes.rb | |
| diff --git a/config/routes.rb b/config/routes.rb | |
| index 716cd20..5646f59 100644 | |
| --- a/config/routes.rb | |
| +++ b/config/routes.rb | |
| @@ -145,7 +145,7 @@ ActionController::Routing::Routes.draw do |map| | |
| map.resource :voxbone_import, :collection => {:preview => :post} | |
| - map.connect '/tickets/assign/:ticket_id/to/:selected_user', :controller => "tickets", :action => "assign_to" |
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
| UIAlertView *alert = [[UIAlertView alloc] | |
| initWithTitle: @"Warning" | |
| message: insult | |
| delegate: self | |
| cancelButtonTitle: @"OK" | |
| otherButtonTitles: nil | |
| ]; |
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
| UIAlertView *alert = [[UIAlertView alloc] initWithTitle: @"Webservice" | |
| message: [request.error localizedDescription] | |
| delegate: self | |
| cancelButtonTitle: @"Allright" | |
| otherButtonTitles: nil, nil]; |
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
| <script type="text/javascript"> | |
| function gotoLocation () { | |
| window.location.href = 'http://itunes......./' + document.getElementById('targetstring').value + '?partnerId=2003'; | |
| } | |
| </script> | |
| <input type="text" name="targetstring" id="targetstring" > | |
| <a href="javascript:gotoLocation()">Suchen</a> | |
| </center> |