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
| list = ["a", "aa", "aaa"] | |
| # -------- | |
| list.inject({}) do |hash, v| | |
| hash[v] = v.length | |
| hash | |
| end | |
| # VS |
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
| SELECT `products`.* | |
| FROM `products` | |
| INNER JOIN `distributions` | |
| ON `distributions`.`product_id` = `products`.`id` | |
| WHERE ( `distributions`.`product_id` IN ( | |
| SELECT `distributions`.`product_id` | |
| FROM `distributions` | |
| WHERE ( `distributions`.`country_id` = 6 ) | |
| AND ( `distributions`.`active` = 1 )) | |
| ) |
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
| SELECT `products`.* | |
| FROM `products` | |
| INNER JOIN `distributions` ON `distributions`.`product_id` = `products`.`id` | |
| WHERE (`distributions`.`product_id` IN ( | |
| SELECT `distributions`.`product_id` | |
| FROM `distributions` | |
| WHERE (`distributions`.`country_id` = 6) | |
| AND (`distributions`.`active` = 1) | |
| )) | |
| AND (`distributions`.`displayed_on_homepage` = 1) |
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
| +----------------------------+-------+ | |
| | Variable_name | Value | | |
| +----------------------------+-------+ | |
| | connect_timeout | 5 | | |
| | delayed_insert_timeout | 300 | | |
| | innodb_lock_wait_timeout | 50 | | |
| | innodb_rollback_on_timeout | OFF | | |
| | interactive_timeout | 28800 | | |
| | net_read_timeout | 30 | | |
| | net_write_timeout | 60 | |
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
| Admin.first; sleep 60; Admin.first |
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
| HOMEBREW_VERSION: 0.7 | |
| HEAD: 1168d8ffa8bb4dd55fcd1cbd812e89dc338df624 | |
| HOMEBREW_PREFIX: /usr/local | |
| HOMEBREW_CELLAR: /usr/local/Cellar | |
| HOMEBREW_REPOSITORY: /usr/local | |
| HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew | |
| Hardware: dual-core 64-bit penryn | |
| OS X: 10.6.4 | |
| Kernel Architecture: i386 | |
| Ruby: 1.8.7-174 |
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
| OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009 | |
| debug1: Reading configuration data /Users/julien/.ssh/config | |
| debug1: Reading configuration data /etc/ssh_config | |
| debug2: ssh_connect: needpriv 0 | |
| debug1: Connecting to rougecardinal.fr [91.121.19.147] port 22. | |
| debug1: Connection established. | |
| debug1: identity file /Users/julien/.ssh/identity type -1 | |
| debug2: key_type_from_name: unknown key type '-----BEGIN' | |
| debug2: key_type_from_name: unknown key type '-----END' | |
| debug1: identity file /Users/julien/.ssh/id_rsa type 1 |
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
| Working on #4055 (ZOULAI SAID) | |
| Working on #8049 (ZOULIKHA) | |
| Working on #1715 (ZOUZOU AMEL) | |
| Working on #7511 (ZYRIAB VOYAGES) | |
| Exec: /Users/julien/Projects/bhu-stuff/perl/src/../../bhu/c/bin/bhu_indexer --strategy /Users/julien/Projects/bhu-stuff/perl/src/../../bhu/aruna/aruna_services_strategy.xml --input /Users/julien/Projects/bhu-stuff/data/temp-20100907_171114-61784/aruna-services.xml --output /Users/julien/Projects/bhu-stuff/data/temp-20100907_171114-61784/aruna-services-index.xml | |
| FATAL ERROR: xmlEncodeEntitiesReentrant does not encode '"' properly, patch your libxml2 library | |
| Exec: /Users/julien/Projects/bhu-stuff/perl/src/../../bhu/c/bin/bhu_indexer --strategy /Users/julien/Projects/bhu-stuff/perl/src/../../bhu/aruna/aruna_exhibitions_strategy.xml --input /Users/julien/Projects/bhu-stuff/data/temp-20100907_171114-61784/aruna-exhibitions.xml --output /Users/julien/Projects/bhu-stuff/data/temp-20100907_171114-61784/aruna-exhibitions-index.xml | |
| FATAL ERROR: xmlEncodeEntitiesReentrant does not encode '"' proper |
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
| Using PROJECTS=/Users/julien/Projects/bhu-stuff/perl/src/../.. | |
| Using /Users/julien/Projects/bhu-stuff/data/temp-20100907_161427-43795 as temp subfolder | |
| Chdir'ing to /Users/julien/Projects/bhu-stuff/data/temp-20100907_161427-43795 | |
| Copying DTD | |
| Exec: /bin/cp /Users/julien/Projects/bhu-stuff/perl/src/../../bhu/etc/bhu_index.dtd /Users/julien/Projects/bhu-stuff/data/temp-20100907_161427-43795 | |
| Exec: /bin/cp /Users/julien/Projects/bhu-stuff/perl/src/../../bhu/etc/bhu_strategy.dtd /Users/julien/Projects/bhu-stuff/data/temp-20100907_161427-43795 | |
| Exec: /Users/julien/Projects/bhu-stuff/perl/src/../../perl/src/aruna_services_to_xml.pl --output /Users/julien/Projects/bhu-stuff/data/temp-20100907_161427-43795/aruna-services.xml | |
| install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /Library/Perl/Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thread-multi-2level /System/Library/Perl/5.10.0 /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0 /Network/Library/Perl/5.10.0/darwin-thr |
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
| Around("~@search") do |s, block| | |
| original_ss_session = Sunspot.session | |
| Sunspot.session = Sunspot::Rails::StubSessionProxy.new(Sunspot.session) | |
| block.call | |
| Sunspot.session = original_ss_session | |
| end |