Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 13:47
    straight-shoota closed #12051
  • 13:47
    straight-shoota closed #12050
  • 12:17
    beta-ziliani edited #7318
  • May 15 08:43
    r00ster91 closed #7318
  • May 15 08:17
    r00ster91 closed #7690
  • May 14 17:01
    Blacksmoke16 labeled #11995
  • May 14 13:03
    webhive closed #12055
  • May 14 10:19
    straight-shoota milestoned #12051
  • May 14 10:00
    I3oris edited #12051
  • May 14 08:45
    oprypin review_requested #11977
  • May 13 23:29
    Blacksmoke16 unlabeled #12061
  • May 13 22:56
    Blacksmoke16 edited #12061
  • May 13 22:56
    Blacksmoke16 edited #12061
  • May 13 22:54
    Blacksmoke16 labeled #12061
  • May 13 22:54
    Blacksmoke16 labeled #12061
  • May 13 22:54
    Blacksmoke16 labeled #12061
  • May 13 22:54
    Blacksmoke16 opened #12061
  • May 13 20:14
    straight-shoota labeled #12060
  • May 13 20:14
    straight-shoota labeled #12060
  • May 13 20:14
    straight-shoota opened #12060
From IRC (bridge bot)
@FromIRC
<RX14> it's most likely an escaping issue in the string
<RX14> yup
<RX14> you need a %q string
<RX14> so that backslash escapes are processed properly
<RX14> it's literally because you pasted it into a string literal
<RX14> that \ chars needed to be doubly escaped
<RX14> or use %q
Rubi
@codenoid
HAHHAAAA
IT'S WORK
YOU SAVE MY LIFE RX14
wait, i''l write some blog post
From IRC (bridge bot)
@FromIRC
<RX14> what?
unreadable
@unreadable
mvp
Serdar Dogruyol - Sedo セド
@sdogruyol
Congrats @codenoid
Ghost
@ghost~55586c4815522ed4b3e08557
bmcginty, about your issue with libgen not removing common prefixes, I just had the same and fixed it: you need a rename rule, that remove the prefix from the fun name
From IRC (bridge bot)
@FromIRC
<alex``> How to get the API documentation for offline usage?
Ghost
@ghost~55586c4815522ed4b3e08557
you can generate the documentation from the crystal code with make doc
From IRC (bridge bot)
@FromIRC
<alex``> Thanks
Claudio Holanda
@kazzkiq
:cry: Can't use Hash(K, V) in unions yet, use a more specific type
Bar Hofesh
@bararchy
I wish we had this project in Crystal
Ghost
@ghost~55586c4815522ed4b3e08557
what are you waiting for? go ahead :D
Nick Franken
@fridgerator
the world is your oyster
Jeremy Pichon
@Jeremy-Pichon
Hi guys, I hope you are all doing well! :)
I need some help about the langage.
Can we translate a String to Symbol ?
My problem is: I get a list of file in a folder, and I want to call the function inside (that have the same name of the file).
thanks for the answer
John Jansen
@johnjansen
You can't dynamically create symbols. When you compile your program, each symbol gets assigned a unique number.
From IRC (bridge bot)
@FromIRC
<Papierkorb> @Jeremy-Pichon, there's no #send like in Ruby either. Use a case statement instead.
Jeremy Pichon
@Jeremy-Pichon
ok, thanks a lot :+1:
LuckyChicken
@LuckyChicken91_twitter
is there a method like .sub but that its adding something?
Ghost
@ghost~55586c4815522ed4b3e08557
do you have an example input/output?
From IRC (bridge bot)
@FromIRC
<oprypin> @LuckyChicken91_twitter, i noticed that last time you used sub(index, "") and you see it only as deleting something maybe? well obviously it doesnt have to be that way
LuckyChicken
@LuckyChicken91_twitter
okay
im still a bit conditined to ruby that you can do string[0] += "text" but unfortunately this doesnt work in crystal
John Jansen
@johnjansen
string[0] returns a char, not a string
LuckyChicken
@LuckyChicken91_twitter
i know
Ghost
@ghost~55586c4815522ed4b3e08557
If I understand correctly, you want to insert some text at a specific position of the string?
LuckyChicken
@LuckyChicken91_twitter
yes
excatly
Bar Hofesh
@bararchy
btw, why don't we have String#gsub!() ?
LuckyChicken
@LuckyChicken91_twitter
yes! why?
From IRC (bridge bot)
@FromIRC
<RX14> strings aren't mutable
Bar Hofesh
@bararchy
Oh
LuckyChicken
@LuckyChicken91_twitter
ouh
From IRC (bridge bot)
@FromIRC
<oprypin> @LuckyChicken91_twitter, so, like, when you decide what you actually want to do, maybe you could ask that, instead of "how can I do this weird thing from Ruby"
LuckyChicken
@LuckyChicken91_twitter
okay will do this next time
but im saying sometimes "because this is not working: Some code" so that people better understand what im meaning
Serdar Dogruyol - Sedo セド
@sdogruyol
Ruby ❤️
From IRC (bridge bot)
@FromIRC
<oprypin> Ruby 😠
Serdar Dogruyol - Sedo セド
@sdogruyol
Woot