SebastianThorn

Activity Graph

Page 1 of 2 | Next »

2019-05-17

[17:18:19] SebastianThorn: has joined #ruby
[17:42:13] SebastianThorn: Remote host closed the connection

2018-07-04

[10:45:54] SebastianThorn: has joined #ruby
[11:17:20] SebastianThorn: Read error: Connection reset by peer

2018-03-13

[07:55:44] SebastianThorn: has joined #ruby
[07:56:54] SebastianThorn: has joined #ruby
[07:57:17] SebastianThorn: has joined #RubyOnRails
[08:20:23] SebastianThorn: Remote host closed the connection
[08:23:18] SebastianThorn: has joined #ruby
[09:05:14] SebastianThorn: Ping timeout: 268 seconds

2018-02-07

[11:46:47] SebastianThorn: has joined #ruby
[11:47:17] SebastianThorn: has joined #RubyOnRails

2018-02-06

[07:59:57] SebastianThorn: has joined #ruby
[15:42:29] SebastianThorn: Read error: Connection reset by peer

2018-02-05

[09:10:29] SebastianThorn: has joined #ruby
[17:01:43] SebastianThorn: Read error: Connection reset by peer

2018-02-04

[20:41:44] SebastianThorn: Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org

2018-02-03

[08:20:34] SebastianThorn: has joined #ruby

2018-02-02

[07:04:56] SebastianThorn: regedit: try shotgun
[15:45:25] SebastianThorn: Read error: Connection reset by peer
[19:07:10] SebastianThorn: has joined #ruby
[19:13:00] SebastianThorn: Read error: Connection reset by peer

2016-07-01

[19:41:51] SebastianThorn: Ping timeout: 252 seconds
[19:43:39] SebastianThorn: has joined #RubyOnRails
[19:43:39] SebastianThorn: has joined #ruby

2016-06-29

[19:02:38] SebastianThorn: Ping timeout: 244 seconds
[19:04:32] SebastianThorn: has joined #RubyOnRails
[19:04:32] SebastianThorn: has joined #ruby

2016-06-15

2016-06-02

[20:35:29] SebastianThorn: has joined #RubyOnRails
[20:45:46] SebastianThorn: if i wanna split up the file for a model, where do i place that file?

2016-04-13

2016-04-06

[13:03:09] SebastianThorn: snoobydoo: .last

2016-04-04

[13:54:32] SebastianThorn: and ' with ", but that might just be me ;)
[13:55:57] SebastianThorn: .missing_method
[14:25:17] SebastianThorn: that is not an array
[14:26:49] SebastianThorn: you should do a 1-2h reading on ruby
[14:27:02] SebastianThorn: just loose the ''

2016-03-23

[12:22:25] SebastianThorn: so silent in here lately, does that hangman-bot still exist?

2016-03-22

2016-03-21

[09:17:25] SebastianThorn: has joined #RubyOnRails
[09:17:33] SebastianThorn: has left #RubyOnRails: ()
[09:17:39] SebastianThorn: TheCubeLord: #rubyonrails
[14:20:28] SebastianThorn: im using irssi, dont think ill change, not sure what would make me change, same with emacs
[14:24:20] SebastianThorn: well, to be honest, didnt think i would switch from screen to tmux either, but that i did..

2016-03-11

[05:51:18] SebastianThorn: Ping timeout: 268 seconds
[05:52:48] SebastianThorn: has joined #ruby
[11:33:19] SebastianThorn: seems a bit quite in here
[11:35:08] SebastianThorn: lol im stupid "google drive", im like "what? there is a ruby-gem for for google self-driving cars?"

2016-03-10

[02:59:03] SebastianThorn: Remote host closed the connection
[02:59:11] SebastianThorn: has joined #ruby
[03:20:19] SebastianThorn: Ping timeout: 252 seconds
[03:20:47] SebastianThorn: has joined #ruby
[04:53:16] SebastianThorn: Ping timeout: 264 seconds
[07:01:03] SebastianThorn: has joined #ruby

2016-03-09

[19:21:09] SebastianThorn: Ping timeout: 276 seconds
[19:21:26] SebastianThorn: has joined #ruby

2016-03-03

[07:38:20] SebastianThorn: hk238: puts word
[07:40:36] SebastianThorn: well there is many ways of doing that task, so they might have a different solution
[07:40:49] SebastianThorn: gets.chomp.split(" ").each {|word| puts word}
[07:40:56] SebastianThorn: should work aswell
[07:43:38] SebastianThorn: antranigv: in your line variable youo seem to have the \n
[07:44:37] SebastianThorn: took me a while
[07:45:06] SebastianThorn: do this : print "hello #{line.chomp} hi"
[07:46:58] SebastianThorn: antranigv: with or without .chomp?
[07:47:13] SebastianThorn: got really confused there
[07:47:50] SebastianThorn: antranigv: try using puts instead of print, it adds the \n
[07:49:28] SebastianThorn: might be a bit more to it, not sure
[16:31:45] SebastianThorn: and looking smart the next day when someone asks the same thing

2016-02-29

[11:39:23] SebastianThorn: Gasher: what shell you using?
[11:47:40] SebastianThorn: fish is great but a bit wierd sometimes, long tome sence i had it installed now
[15:07:45] SebastianThorn: trhm: http://poignant.guide/book/chapter-1.html if you wanna have some fun while learning
[15:07:55] SebastianThorn: it is in the links you got aswell
[21:47:45] SebastianThorn: what just happend? o.o

2016-02-27

[22:24:05] SebastianThorn: Ping timeout: 252 seconds
[22:24:08] SebastianThorn: has joined #ruby

2016-02-22

[15:19:12] SebastianThorn: when i need a break, i sometimes read php-code for the lulz

2016-02-19

[18:25:54] SebastianThorn: has joined #ruby

2016-02-17

[09:53:02] SebastianThorn: has joined #ruby

2016-02-04

[11:46:16] SebastianThorn: ruby still adds great stuff, love this language!

2016-02-03

[12:28:46] SebastianThorn: shevy: haha, i do that mistake all the time, "what the ****, i just installed that ****, why cant i use it"
[12:39:49] SebastianThorn: well, any language would help to become a hacker?

2016-01-30

2016-01-26

[09:25:59] SebastianThorn: I'd like some input, Im generating methods from xsd-files. There is one file that is 7.7k lines, this creates a class that is 6k lines, would you keep it like this? or does it not matter?
[09:27:45] SebastianThorn: to create ruby-classes from the xsd's
[09:29:42] SebastianThorn: not sure i understad, they all exist in the API, so i just thought i generate them all. I'm I thinking "wrong"?
[09:32:28] SebastianThorn: they deliver all the datatypes in 1 file, this file is this long
[09:33:00] SebastianThorn: the API has about 2k functions/commands i think
[09:33:38] SebastianThorn: well, ill dig more into it later
[09:33:45] SebastianThorn: ddv: thanks for the thoughts :=

2016-01-20

2016-01-07

[14:41:26] SebastianThorn: Ping timeout: 276 seconds
[14:42:28] SebastianThorn: has joined #ruby

2015-12-29

[07:18:37] SebastianThorn: %w is do handy, tyvm ruby
[07:20:15] SebastianThorn: never used that one, learn something new every day :)

2015-11-22

[03:56:17] SebastianThorn: has joined #ruby

2015-11-15

[04:45:12] SebastianThorn: Ping timeout: 264 seconds
[04:46:43] SebastianThorn: has joined #ruby

2015-11-13

[02:44:21] SebastianThorn: has joined #ruby
[02:44:23] SebastianThorn: has joined #ruby
[02:44:23] SebastianThorn: Ping timeout: 264 seconds

2015-10-28

[02:02:03] SebastianThorn: Ping timeout: 255 seconds
[02:02:48] SebastianThorn: has joined #ruby

2015-10-27

[15:59:37] SebastianThorn: is the gem oga the new cool kid on the block?

2015-10-16

[00:08:59] SebastianThorn: has joined #ruby

2015-10-01

[20:15:47] SebastianThorn: Ping timeout: 268 seconds
[20:47:04] SebastianThorn: has joined #ruby

2015-09-29

[17:25:57] SebastianThorn: Quit: Lost terminal
[17:26:48] SebastianThorn: has joined #ruby

2015-09-18

[12:11:56] SebastianThorn: Hi, i got a problem with a csv-format whn importing a csv-file.
[12:13:30] SebastianThorn: the format escapes , with \, and that makes the csv-parser shift the values one steap
[12:14:39] SebastianThorn: the docs of the format says this about escaping csv: http://pastie.org/10428885
[12:15:23] SebastianThorn: not sure how i can fix this, any ideas?
[12:19:26] SebastianThorn: one field looks like this #70007\,0510 but the csv-lib makes that into 2 values, #70007\ and 0510
[12:24:04] SebastianThorn: jhass: you think there is anything i can do?
[12:28:20] SebastianThorn: jhass: ye, that could be a solution
[12:29:07] SebastianThorn: jhass: i thought of replacing \, with ; while reading the file from disk
[12:30:09] SebastianThorn: i just wanna get it working for this week so i can have a chill weekend :P
[12:31:05] SebastianThorn: ye, you are right
[12:34:29] SebastianThorn: never done anything like this, recon it's gonna take a while :)
[12:34:41] SebastianThorn: thanks for the help! :)
[14:03:17] SebastianThorn: jhass: ok ,managed to build a function that seems to do what i want

2015-09-16

[09:55:52] SebastianThorn: shevy: ye, it didnt really look right :P
[09:56:40] SebastianThorn: shevy: "everything is a file"
[09:57:48] SebastianThorn: i'd use file, type or filetype?

2015-08-20

[06:50:48] SebastianThorn: ICantCook: sinatra
[06:54:02] SebastianThorn: ICantCook: no problem :)

2015-08-10

[10:59:03] SebastianThorn: dont forget dirs
[10:59:07] SebastianThorn: next if File.directory? file

2015-08-02

[19:11:02] SebastianThorn: has joined #ruby

2015-07-31

[09:00:22] SebastianThorn: I got a program that iterates over files in a directory and then moves them elsewhere. The files gets in to the directory gets there by ftp, can i know if the file in the dir is currently beeing transfered into the directory?
[09:06:32] SebastianThorn: jhass: size is not consistent
[09:08:36] SebastianThorn: apeiros: ahh, ok. i understand

2015-07-27

[06:50:18] SebastianThorn: Aeyrix: haha, what brand?
[06:54:25] SebastianThorn: Aeyrix: i got a TypeMatrix 2030, had it for some years now i think, verry happy with it

2015-07-24

[09:27:59] SebastianThorn: will and append to a file take longer time to execute if the file is bigger?
[09:28:42] SebastianThorn: need to more tests
[09:31:03] SebastianThorn: apeiros: no, i just append a sting + "\n"
[09:31:46] SebastianThorn: https://gist.github.com/SebastianThorn/a22400d2b43ce56cb1a4
[09:34:52] SebastianThorn: i know i should use csv, i use it for reading the in-data, gonna look into writing with it

2015-07-22

[08:30:37] SebastianThorn: Ox0dea: haha, i watched this movie yesterday: http://www.imdb.com/title/tt0299977
[08:31:22] SebastianThorn: has some of the meaning you just described

2015-07-21

[07:30:39] SebastianThorn: apeiros: i sometime use a global variable for loggin-level, that bad aswell?
[11:02:20] SebastianThorn: [k-: ruby is beautiful
[12:01:20] SebastianThorn: apeiros: not in sweden :S
[12:02:15] SebastianThorn: apeiros: not really, went to tukey a cpuo??ple of years ago, got 2nd degree skinburn :S
[12:12:18] SebastianThorn: [k-: what did the slow version have?
[12:13:12] SebastianThorn: [k-: well, prolly not worth remebering hu? ;)
[12:15:44] SebastianThorn: [k-: love looking at my own old code, feels alot lite this http://devopsreactions.tumblr.com/post/120682285491/reading-your-own-code
[12:19:32] SebastianThorn: you never have the time you wont to program..
[12:26:23] SebastianThorn: [k-: i dont mind it

2015-07-17

[07:16:45] SebastianThorn: Hi, I made a program that run manually from time to time, and I userd "$stderr.puts" for progress-info to the console and "puts" for the results, so I can run it like this: program.rb > results.txt good/bad?

2015-06-20

[21:01:58] SebastianThorn: Ping timeout: 244 seconds
[21:07:58] SebastianThorn: has joined #ruby
[21:20:20] SebastianThorn: Ping timeout: 264 seconds

2015-06-18

[18:24:09] SebastianThorn: ruby is great, meet a guy today that thought my code was psudo-code :)
[18:28:23] SebastianThorn: nofxx: nofx fan? (the band)
[18:36:18] SebastianThorn: nofxx: im gonna see them next friday, but it seems as my merch has been lost in the mail :(

2015-06-11

[14:34:18] SebastianThorn: what line first?: "#! /usr/bin/env ruby" or "# -*- coding: utf-8 -*-"
[14:35:05] SebastianThorn: apeiros: ty, been doing different in different file i just realized
[15:10:12] SebastianThorn: madarcode: i dont think there is a "defacto" way to that

2015-06-10

[09:35:22] SebastianThorn: any cool (or uncool) way of echoing the max amount of memory my program every used, before exiting it?
[09:35:39] SebastianThorn: ruby usally has cool ways of doing things :)

2015-06-08

[09:13:56] SebastianThorn: has joined #ruby

2015-06-07

[09:45:26] SebastianThorn: Remote host closed the connection

2015-06-02

[11:24:26] SebastianThorn: Jagan: you mean rails?
[11:37:21] SebastianThorn: ACTION is reading all Jagan is writing in russian accent :)

2015-05-30

[21:07:29] SebastianThorn: Remote host closed the connection
[21:07:37] SebastianThorn: has joined #ruby

2015-05-29

[10:13:08] SebastianThorn: how to trim what looks like spaces, but are not?
[10:13:38] SebastianThorn: https://eval.in/372374
[10:19:50] SebastianThorn: ye, it's an imported list, 9k rows as CSV, and M$ exel made a mess..
[10:28:54] SebastianThorn: >> " +46702696905?????????????????? ".each_char {|x|puts x.ord}
[10:29:14] SebastianThorn: 32 = normal space, 160 = Non-breaking space
[10:32:47] SebastianThorn: al2o3-cr: ,bytes, ty
[11:09:34] SebastianThorn: might it just be an issue with how i read the file?

2015-05-18

[13:37:18] SebastianThorn: but i dont understand the difference between pp() and PP.pp()
[13:41:10] SebastianThorn: Mon_Ouie: ok, now i understand

2015-04-21

[19:17:06] SebastianThorn: a better way then this? http://pastie.org/10106140
[19:17:36] SebastianThorn: fells sloppy, I dont know :S

2015-04-08

[19:04:25] SebastianThorn: hi, im having trouble subtracting Time from Time, not sure how to get this to work: http://pastie.org/10080916
[19:05:16] SebastianThorn: call_time is not a Time object as i thought
[19:06:13] SebastianThorn: jhass: ok, so i should parse the float into a new Time object?
[19:07:25] SebastianThorn: jhass: ohh, now i understand what you mean, ofc i cant get a time-object back.
[19:07:48] SebastianThorn: GaryOak_: yes, just understood my fault :P
[19:08:27] SebastianThorn: i want the hours, minutes, seconds and millsecs.
[19:08:45] SebastianThorn: ill try again alone, now when i understand what i did wrong
[19:09:59] SebastianThorn: jhass: ty, will check that out :)
[19:32:29] SebastianThorn: Ok, i used div mod, but i dont understand why ct_mill gets so many digits, should it not be 0.061? http://pastie.org/10080964
[19:35:42] SebastianThorn: >> 6047.061.divmod(3600)

2015-04-02

[08:43:02] SebastianThorn: hi guys, can i differ in my sinatra code how my app is run? i would like to use "puts" when shotgun, and logger when apache is run
[08:43:05] SebastianThorn: or is there an easier way of doing this?
[08:46:30] SebastianThorn: ok, sorry if i misunderstood, is this something i set manually, or something that i can do dynamicly? So i can run the exact same code in dev and production
[08:48:19] SebastianThorn: ok, i found some pieces on google regarding this now, thank you for pointing me in the right direction :)
[09:25:33] SebastianThorn: i was like IO, im dump i already typed i
[09:27:27] SebastianThorn: DeBot needs to keep scores

2015-03-31

[07:23:21] SebastianThorn: http://www.phoronix.com/scan.php?page=news_item&px=Systemd-No-Linux-Fork
[07:23:33] SebastianThorn: certainty: i love emacs aswell :)
[07:25:49] SebastianThorn: i dont get it, arent they allowed to fork if they wanted to?
[07:27:13] SebastianThorn: certainty: in systemd's development?

2015-03-30

[16:18:08] SebastianThorn: pagios: pry, or thread your application and just it in tmux/screen
[16:18:20] SebastianThorn: the later might be a bad idea, not sure

2015-03-24

[08:56:23] SebastianThorn: remm: arup_r cool, im from sweden if that helps ;)

2015-03-22

[18:43:25] SebastianThorn: we got a bot for this now? jippie!
[18:45:30] SebastianThorn: i remember these in DC++, one new word every 15m or so, and the bot kept stats and rankings

2015-03-19