RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.25.1 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
<FromGitter> <Sevensidedmarble> yeah I'm pretty sure thats what I'm looking for
DTZUZO has joined #crystal-lang
<FromGitter> <Sevensidedmarble> I tried out the two generator libs and not a whole lot of luck
wontruefree has quit [Ping timeout: 265 seconds]
<FromGitter> <Sevensidedmarble> I tried out Bindgen but it seems like its not finding my Clang binary
bmcginty has quit [Ping timeout: 268 seconds]
bmcginty has joined #crystal-lang
akaiiro has joined #crystal-lang
Raimondi has quit [*.net *.split]
Raimondi has joined #crystal-lang
akaiiro has quit [Ping timeout: 268 seconds]
justinmcp has quit [*.net *.split]
dom96 has quit [*.net *.split]
notdaniel has quit [*.net *.split]
Vexatos has quit [*.net *.split]
olbat has quit [*.net *.split]
emilsp has quit [*.net *.split]
binBASH has quit [*.net *.split]
nathanj has quit [*.net *.split]
baweaver has quit [*.net *.split]
Groogy has quit [*.net *.split]
Liothen has quit [*.net *.split]
foca has quit [*.net *.split]
jokke has quit [*.net *.split]
Raimondi has quit [*.net *.split]
hplar has quit [*.net *.split]
snapcase has quit [*.net *.split]
oprypin has quit [*.net *.split]
AndreasLutro has quit [*.net *.split]
bmcginty has quit [*.net *.split]
johndescs has quit [*.net *.split]
Flipez has quit [*.net *.split]
dostoyevsky has quit [*.net *.split]
robacarp has quit [*.net *.split]
Cyrus has quit [*.net *.split]
FromGitter has quit [*.net *.split]
jhass has quit [*.net *.split]
kireevco has quit [*.net *.split]
asterite has quit [*.net *.split]
ua has quit [*.net *.split]
go|dfish has quit [*.net *.split]
early has quit [*.net *.split]
tilpner has quit [*.net *.split]
bazaar has quit [*.net *.split]
RX14 has quit [*.net *.split]
oz has quit [*.net *.split]
thews has quit [*.net *.split]
avdi has quit [*.net *.split]
andersh has quit [*.net *.split]
fifr has quit [*.net *.split]
f1refly has quit [*.net *.split]
ashirase has quit [*.net *.split]
maxpowa has quit [*.net *.split]
jim80net has quit [*.net *.split]
jokke__ has quit [*.net *.split]
jetpack_joe has quit [*.net *.split]
z64 has quit [*.net *.split]
Yxhuvud has quit [*.net *.split]
salvor has quit [*.net *.split]
danzilio has quit [*.net *.split]
thi_ has quit [*.net *.split]
OvermindDL1 has quit [*.net *.split]
manveru has quit [*.net *.split]
commavir has quit [*.net *.split]
pippin has quit [*.net *.split]
DTZUZO has quit [*.net *.split]
moei has quit [*.net *.split]
woodruffw has quit [*.net *.split]
davic has quit [*.net *.split]
pabs has quit [*.net *.split]
GoldenBear has quit [*.net *.split]
jsn- has quit [*.net *.split]
swav has quit [*.net *.split]
mjblack has quit [*.net *.split]
_whitelogger has joined #crystal-lang
_whitelogger has joined #crystal-lang
_whitelogger has joined #crystal-lang
akaiiro has quit [Remote host closed the connection]
Raimondii has joined #crystal-lang
Raimondii is now known as Raimondi
AndreasLutro has joined #crystal-lang
hightower2 has joined #crystal-lang
<FromGitter> <DanielSokil> How do I get the operating system name? linux, darwin etc
<FromGitter> <DanielSokil> Similar to `GOOS`in golang
livcd_ has joined #crystal-lang
alex`` has joined #crystal-lang
DTZUZO has quit [Ping timeout: 268 seconds]
return0e has joined #crystal-lang
<FromGitter> <Timbus> @DanielSokil
ashirase has quit [Ping timeout: 265 seconds]
ashirase has joined #crystal-lang
jokke has joined #crystal-lang
snapcase has joined #crystal-lang
DTZUZO has joined #crystal-lang
zorp has joined #crystal-lang
shalmezad has joined #crystal-lang
<FromGitter> <j8r> there are too much PR https://github.com/crystal-lang/crystal/pulls :o
<FromGitter> <DanielSokil> Ain't never too much said one.
<FromGitter> <j8r> Maybe there are just merging minor fixes for the 0.26.1, and keeping the feature request for the 0.27.0
<robacarp> https://github.com/amberframework/amber/issues/938 - Open Letter: Amber is significantly under-maintained
<FromGitter> <j8r> too bad https://github.com/amberframework/amber-router , this could be very useful to be more independent of amber for the use outside the framework
<FromGitter> <j8r> that's also strange to have benchmarks in `/src`
<FromGitter> <robacarp> Amber router is essentially independent of Amber.
DTZUZO has quit [Ping timeout: 272 seconds]
DTZUZO has joined #crystal-lang
return0e has quit [Remote host closed the connection]
return0e has joined #crystal-lang
<FromGitter> <j8r> if we wish to use it outside, the module is `Amble::Router` - meh :|
<FromGitter> <j8r> The module is called `Amber::Router` - meh :|
<FromGitter> <j8r> which assume we have already a module `Amber`
<FromGitter> <rishavs> is there a nicer way to write; ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ This works but i would ideally want to compbine the if and each clauses. I want to iterate over the array only and only if it exists? [https://gitter.im/crystal-lang/crystal?at=5b801de960f9ee7aa48670f5]
<robacarp> @j8r _essentially_ is the operative word. it's functional.
<FromGitter> <rishavs> of course, I find out the answer the moment I type my question. :D ⏎ ` <% posts_list.try &.each do |item| %>` is a good way to combine the "if exists" and "iterate one ach" functionalities
<jokke> uuff there're no libav bindings for crystal?
<jokke> or ffmpeg
oprypin has joined #crystal-lang
akaiiro has joined #crystal-lang
<jokke> lol
<jokke> i looked at the libav codebase and now i know why
<jokke> :D
akaiiro has quit [Ping timeout: 268 seconds]
alex`` has quit [Ping timeout: 272 seconds]
<FromGitter> <girng> ```code paste, see link``` ⏎ ⏎ but i am getting`MYSQL Error: Unexpected EOF` any idea? my 3306 port is open [https://gitter.im/crystal-lang/crystal?at=5b803619d8d36815e58485db]
akaiiro has joined #crystal-lang
<FromGitter> <girng> here (https://pastebin.com/raw/wWJW5u4s) is the full error
<jokke> does anyone know if it's allowed to respond to a transfer-encoding: chunked http request before all chunks have arrived on the server?
<jokke> i'm thinking of validating the file format of a very large file before the (very time consuming) transfer completes.
akaiiro has quit [Ping timeout: 268 seconds]
<FromGitter> <bcardiff> @girng are you able to connect from a console `mysql -u username -h my.application.com -ppassword` ?
akaiiro has joined #crystal-lang
<FromGitter> <girng> @bcardiff hmm just tried that and it hangs for a minute then says "ERROR 2003 (HY000): Can't connect to MySQL server on " however i went to https://www.yougetsignal.com/tools/open-ports/ and tried 3306 and it says it's open. maybe i need to configure my `my.cnf` better googling this error now
<FromGitter> <girng> i don't tink crystal issue, i apologize for posting this i thought it was, def on my end.
DTZUZO has quit [Ping timeout: 244 seconds]
alex`` has joined #crystal-lang
<FromGitter> <rishavs> Can I directly insert an object into mt db via a DB.mapping? Something like ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5b804effa491f4591796cd63]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 258 seconds]
Raimondii is now known as Raimondi
<FromGitter> <bcardiff> @rishavs No. DB mapping is not an ORM. It's a thin helper to DRY read calls
<FromGitter> <rishavs> oh :(
<FromGitter> <girng> did something change since 0.24.0? i keep getting `instance variable '@db' of Muffin must be DB::Database, not (DB::Database | Nil)`
<FromGitter> <girng> i just had to use `property db : DB::Database` inside my `Class`, now it won't let me. if i do property db : DB::Database? then I can't use db.exec methods
<FromGitter> <asterite> maybe you are not initializing it in all initializers
<FromGitter> <girng> hmm maybe, here is what used to work in 0.24.0 w/o errors https://pastebin.com/raw/umD114fW
<FromGitter> <asterite> that should work, unless you are somehow using something from `self` before assigning the result to `@db`
<FromGitter> <asterite> I'd probably also connect outside of the class, and pass the DB instance in the constructor...
<FromGitter> <asterite> much less coupling
<FromGitter> <girng> unfortunately it gives me ` instance variable '@db' of Muffin must be DB::Database, not (DB::Database | Nil)`. however, i can fix this by doing `property db : DB::Database?` ⏎ ⏎ but then, i can't use any of my db methods, i get `undefined method 'exec' for Nil (compile-time type is (DB::Database | Nil))`
<FromGitter> <asterite> Oooooh...
<FromGitter> <asterite> In your code you have `rescue; put ...`
<FromGitter> <asterite> that means, when the connection fails, it goes to the rescue, and that returns `nil`
<FromGitter> <asterite> that's where the `nil` comes from
<FromGitter> <asterite> if you raise in that `rescue`, it works fine
<FromGitter> <asterite> or if you don't `rescue` at all...
<FromGitter> <girng> oh wow, ty
<FromGitter> <girng> i was pulling my hair out cuz i was like this used to work lol
<FromGitter> <girng> when i made the isolated case i forgot to copy my entire connect_to_mysql i just wrote it out
<FromGitter> <girng> 100% my fault derped hard sory about that
shalmezad has quit [Quit: Leaving]
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #crystal-lang
hightower2 has quit [Ping timeout: 272 seconds]
akaiiro has quit [Ping timeout: 268 seconds]
akaiiro has joined #crystal-lang
<FromGitter> <SteffenMeijer_twitter> Just reading......... https://www.youtube.com/watch?v=m2hI1_UBN2c
hightower3 has joined #crystal-lang
oprypin has quit [Quit: Bye]
oprypin has joined #crystal-lang
FromGitter has quit [Remote host closed the connection]
oprypin has quit [Client Quit]
FromGitter has joined #crystal-lang
oprypin has joined #crystal-lang
druonysus has joined #crystal-lang