Skip to content

Instantly share code, notes, and snippets.

View BitPuffin's full-sized avatar
🤡
clowning about

Isak BitPuffin

🤡
clowning about
View GitHub Profile
Started GET "/" for 127.0.0.1 at Fri May 20 22:53:06 +0200 2011
Processing by PagesController#main as HTML
Rendered pages/main.html.erb within layouts/application (31.9ms)
Completed 200 OK in 44ms (Views: 43.1ms | ActiveRecord: 0.0ms)
Started GET "/jquery-1.4.2.js" for 127.0.0.1 at Fri May 20 22:53:07 +0200 2011
<html><style style="display:none;">/*bit.ly chrome ext added this automatically*/
#bitly_expanded_container {
position:absolute;
/* round the corners */
bottom:1px;
z-index:5000;
/* width:100%;*/
left:0px;
display:none;
height:80px;
ERROR: Loading command: install (LoadError)
no such file to load -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
/home/papi/.rvm/gems/ruby-1.9.2-p180/gems/rest-client-1.6.1/lib/restclient.rb:9:in `rescue in <top (required)>': no such file to load -- net/https. Try running apt-get install libopenssl-ruby (LoadError)
from /home/papi/.rvm/gems/ruby-1.9.2-p180/gems/rest-client-1.6.1/lib/restclient.rb:5:in `<top (required)>'
from /home/papi/.rvm/gems/ruby-1.9.2-p180/gems/rest-client-1.6.1/lib/rest_client.rb:2:in `require'
from /home/papi/.rvm/gems/ruby-1.9.2-p180/gems/rest-client-1.6.1/lib/rest_client.rb:2:in `<top (required)>'
from /home/papi/.rvm/gems/ruby-1.9.2-p180/gems/heroku-2.1.4/lib/heroku/client.rb:2:in `require'
from /home/papi/.rvm/gems/ruby-1.9.2-p180/gems/heroku-2.1.4/lib/heroku/client.rb:2:in `<top (required)>'
from /home/papi/.rvm/gems/ruby-1.9.2-p180/gems/heroku-2.1.4/lib/heroku.rb:3:in `require'
from /home/papi/.rvm/gems/ruby-1.9.2-p180/gems/heroku-2.1.4/lib/heroku.rb:3:in `<top (required)>'
from /home/papi/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.13/lib/bundler/runtime.rb:68:in `require'
from /ho
@BitPuffin
BitPuffin / gist:995113
Created May 27, 2011 12:05
filepileispissinmeoff
RuntimeError in MyFilesController#create
Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id
Rails.root: /home/papi/Dropbox/Frozen melonbox/App/FilePile
Application Trace | Framework Trace | Full Trace
app/controllers/my_files_controller.rb:14:in `create'
Request
Parameters:
@BitPuffin
BitPuffin / gist:1015755
Created June 8, 2011 23:58
What the shit!?
public class Isak{
public static void main(String[] args){
int[][] x = new int [5][5];
int[][] y = new int [5][5];
for(int[] i : x){
System.out.print("added these numbers to x: ");
for(int j : i){
@BitPuffin
BitPuffin / gist:1015791
Created June 9, 2011 00:38
Works but i'm still confused
public class Isak{
public static void main(String[] args){
int[][] x = new int [5][5];
int[][] y = new int [5][5];
for(int i=0; i<x.length; i++){
System.out.print("added these numbers to x: ");
for(int j=0; j<x[i].length; j++){
x[i][j] = (int)(Math.random()*11)+1;
at Main.main(Main.java:41)
org.newdawn.slick.SlickException: Failed to initialise the LWJGL display
at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:375)
at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:314)
at Main.main(Main.java:41)
#ifndef NOISE_H
#define NOISE_H
#include <math.h>
struct IntArray
{
int Length;
int* Values;
};
struct FloatArray
=> Booting WEBrick
=> Rails 3.1.0 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2011-08-31 21:04:30] INFO WEBrick 1.3.1
[2011-08-31 21:04:30] INFO ruby 1.9.2 (2011-07-09) [i686-linux]
[2011-08-31 21:04:30] WARN TCPServer Error: Address already in use - bind(2)
Exiting
/home/isak/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/utils.rb:73:in `initialize': Address already in use - bind(2) (Errno::EADDRINUSE)
from /home/isak/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/utils.rb:73:in `new'