ora=<instaclient-install-dir>
gcc=
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
| Today, after working with Windows for over 15 years now, I finally came across the solution to the | |
| dreadfull BSOD STOP 0x0000007B after replacing the motherboard of a computer, or after moving the | |
| harddrive to another computer, or after doing a P2V, or after ... you get the point. | |
| Requirements: | |
| - Windows install / boot CD | |
| - Chipset / Mobo / Storage drivers of the new motherboard or storage controller | |
| Steps: | |
| - extract all the drivers to a USB thumb drive |
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
| #full source: https://github.com/dartist/sudoku_solver/blob/master/benchmarks/sudoku.py | |
| def cross(A, B): | |
| "Cross product of elements in A and elements in B." | |
| return [a+b for a in A for b in B] | |
| digits = '123456789' | |
| rows = 'ABCDEFGHI' | |
| cols = digits | |
| squares = cross(rows, cols) |
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
| def run_pg_fouine(): | |
| info = host_info[env.host_string] | |
| db_name = info.tags.get('Name') | |
| sudo('perl -pi -e "s/log_min_duration_statement = .*/log_min_duration_statement = 0/" /etc/postgresql/9.*/main/postgresql.conf') | |
| sudo('/etc/init.d/postgresql reload') | |
| time.sleep(30) | |
| sudo('perl -pi -e "s/log_min_duration_statement = .*/log_min_duration_statement = 500/" /etc/postgresql/9.*/main/postgresql.conf') | |
| sudo('/etc/init.d/postgresql reload') | |
| run('tail -n 100000 /var/log/postgresql/postgresql-9.*-main.log > /tmp/pgfouine.txt') | |
| run('gzip -f /tmp/pgfouine.txt') |
Backstory: I decided to crowdsource static site generator recommendations, so the following are actual real world suggested-to-me results. I then took those and sorted them by language/server and, just for a decent relative metric, their Github Watcher count. If you want a heap of other projects (including other languages like Haskell and Python) Nanoc has the mother of all site generator lists. If you recommend another one, by all means add a comment.
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
| apache-solr-cell-1.4.0.jar jempbox-0.2.0.jar | |
| asm-3.1.jar log4j-1.2.14.jar | |
| bcmail-jdk14-136.jar nekohtml-1.9.9.jar | |
| bcprov-jdk14-136.jar ooxml-schemas-1.0.jar | |
| commons-codec-1.3.jar pdfbox-0.7.3.jar | |
| commons-compress-1.0.jar poi-3.5-beta6.jar | |
| commons-io-1.4.jar poi-ooxml-3.5-beta6.jar | |
| commons-lang-2.1.jar poi-scratchpad-3.5-beta6.jar | |
| commons-logging-1.1.1.jar tika-core-0.4.jar | |
| dom4j-1.6.1.jar tika-parsers-0.4.jar |
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
| update-rc.d logstash-shipper defaults | |
| update-rc.d logstash-reader defaults |
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
| $(function() { | |
| $('div.content').live('showoff:show', function(evt) { | |
| var bg_img = $('img[alt=background]', evt.target); | |
| var old_bg = ''; | |
| if (bg_img.size() > 0) { | |
| var src = bg_img.attr('src'); | |
| bg_img.hide(); | |
| // Set new background on body | |
| old_bg = $('body').css('background-image'); | |
| $('body') |
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
| from django.contrib.sessions.backends.base import SessionBase, CreateError | |
| from django.conf import settings | |
| from django.utils.encoding import force_unicode | |
| import redis | |
| class SessionStore(SessionBase): | |
| """ Redis store for sessions""" | |
| def __init__(self, session_key=None): | |
| self.redis = redis.Redis( |
NewerOlder