<FromGitter>
<crisward> @jwoertink sorry I wasn't around earlier - seem to remember that I had to use `brew switch libevent [version]`, the version being the latest one. It gets installed with the crystal update but needs switching to manually.
<FromGitter>
<crisward> Anyone know how to check if a file exists in a macro ?
perks has joined #crystal-lang
perks has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Philpax__ has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter>
<Sija> @crisward other than using bash for that (`[ -f <filepath> ] && echo "true" || echo "false"`)? no ;)
<FromGitter>
<crisward> @Sija Thanks - That's how I ended up doing it...` {% if `[ -f src/myfile] && echo "found" || echo "not"` == "found" %}`
<FromGitter>
<drosehn> @jwoertink - I was the one who fixed it by creating a symlink. Chris' solution of `brew switch libevent [version]` is superior if it works (and I expect that it usually does), but I've had times where the `brew` command itself failed. In that situation you can't run `brew` to fix it.
<FromGitter>
<crisward> @jwoertink I'm pretty sure brew switch is just doing symlinks...
akwiatkowski has quit [Ping timeout: 240 seconds]
VectorGraphics has joined #crystal-lang
<FromGitter>
<mosop> the libevent issue may cause new comers to be confused. I’m updating and distributing my crystal app to my team members almost everyday, but some of them can’t build my app because of the “compiler does not work” issues. i finally decided to build the compiler itself in the app’s makefile instead of using the packaged compiler.
<Papierkorb>
what "libevent issue"?
Ven has joined #crystal-lang
<FromGitter>
<mosop> libevent can’t be loaded at runtime on macos with homebrew
_whitelogger has joined #crystal-lang
Ven has quit [Ping timeout: 240 seconds]
Ven has joined #crystal-lang
Ven has quit [Ping timeout: 240 seconds]
bjz has joined #crystal-lang
Ven has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
pawnbox has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter>
<jwaldrip> Any other crystal enthusiasts/devs in Denver, other than myself?
<sija>
~15 oC during the day, ~10 at night, starts being damn nice :)
<VectorGraphics>
Excellent :D
<sija>
how's the weather at ur side? :P
<FromGitter>
<jwoertink> it was 24C here today
<VectorGraphics>
Windy at night, but getting warmer
<sija>
soon i'll rather go to dig the garden than code (or at least that's what sayin' to myself...)
<FromGitter>
<jwoertink> Where I live, you can't garden because everything turns to fire by mid day
<sija>
nice! warm nights perfect for some country-side escapades :)
balduin has joined #crystal-lang
<sija>
damn, u live in hell?
<FromGitter>
<jwoertink> hahah
<FromGitter>
<jwoertink> pretty damn close
<sija>
texas? ;)
<FromGitter>
<jwoertink> Las Vegas
<FromGitter>
<jwoertink> it averages 50C during the summer
<sija>
ah, the other one
mgarciaisaia has quit [Quit: Leaving.]
<VectorGraphics>
Last time I was in Vegas, it was nearly 110, I think
<FromGitter>
<jwoertink> oh yeah. Usually in the morning, or late at night it's in the 100 - 110
<FromGitter>
<jwoertink> around 2/3 in the afternoon is when it gets too hot to be outside
<VectorGraphics>
Sounds about right
<sija>
sounds perfect for remote work, meaning: taking a plane at the morning and another one back before dark
<FromGitter>
<jwoertink> That is the nice thing. It's easy to fly out and in here.
<sija>
why vegas btw?
VectorGraphics has quit [Quit: Leaving]
<FromGitter>
<jwoertink> just where I was raised. It's actually pretty cheap to live here
VectorGraphics has joined #crystal-lang
<sija>
the only thing "I feel" strongly about vegas is an accent and Polanski's "Chinatown"
<VectorGraphics>
And free drinks
<FromGitter>
<jwoertink> Didn't use to be this hot. We used to get snow when I was a kid, but we don't anymore. Used to be trees and grass everywhere, but with the water shortage it's been tough
<sija>
yeah, to get u more apt for cashing in those casinos
<sija>
whole idea of such city was pretty... american? from the beginning ;)
<FromGitter>
<jwoertink> hahah
<FromGitter>
<jwoertink> Oddly enough, Vegas is known as the 9th hawaiian island because of our huge hawaiian and japanese population
<sija>
i mean c'mon, that's middle of the desert, artificial irrigation, shit like has to fail pretty soon
<sija>
mmm, some "Huna" healers around?
<FromGitter>
<jwoertink> lol. yup. Like a few blocks from my house
<sija>
is there a lot of cultural influences brought by these populations?
<sija>
in a sense of a real culture, not tourist attractions
<FromGitter>
<jwoertink> One major cultural influence here was one of the casinos MGM used to have a giant lion's head that you walked through. The japanese culture say it's bad luck to walk through the head of a lion (though, I would think it's bad luck to step in to a lions mouth too)
<FromGitter>
<jwoertink> The casino spent a few million to change that entrance
<FromGitter>
<jwoertink> in a sense of real culture..... we have none..... lol
<sija>
lol
<sija>
come to Poland, we have a lot of good culture lyin' around
<sija>
not used much, you could find a good bargain :P
<FromGitter>
<jwoertink> :joy:
<sija>
one thing i was always rly excited when i thought about the states was the land itself, feel of travel through these vast spaces, all of the magnificent nature to experience and explore
<sija>
how's with that kind of shit rly?
<VectorGraphics>
It's amazing
<VectorGraphics>
Lots of corn though
<VectorGraphics>
(I'm from the midwest)
<FromGitter>
<jwoertink> Oh, you mean spending 9 hours driving in the middle on nowhere with no cell service praying that your car doesn't break down and some back woods creeper doesn't harvest your organs? yeah, it's great
<sija>
haha
<sija>
sounds like movie type of a thing
<VectorGraphics>
There are some excellent spots, like Yellowstone
<sija>
pictures tell a thousand words...
<VectorGraphics>
Senses can paint a thousand pictures ;)
<sija>
ofc, i was just feeling that ;)
<sija>
damn, the thing for me with going there are these fucked up border laws
<sija>
they want ur (or in this case mine) dna samples along with biometric data
<VectorGraphics>
Like what, blood sample?
<sija>
might be a hair for what i know
<sija>
but still the idea of your dna put in us gov database is creepy
<VectorGraphics>
Not as creepy as the TSA over here in the airports. They take and store pictures of you in a full-body x-ray device
<sija>
huh, there is many more creepy things around ur side of the cable from what i know (even taking 1/10th of that as true)...
<VectorGraphics>
Haha
<VectorGraphics>
The stuff coming out in the news just gets crazier by the day
<sija>
yup, i stopped even reading that stuff some time ago
<sija>
including the local news, which IMO is the same btw, but of a different scale
<VectorGraphics>
If your news is anything like ours, it's almost all syndicated
<sija>
you've got some serious shit professional puppets running the show
<VectorGraphics>
To say the least
<VectorGraphics>
They know how to turn a profit
<sija>
we have 2nd rate pawn in someone else's chessgame
<sija>
they do for sure
<sija>
money, or gold was always a trick they played on us
<sija>
divide and conquer
<VectorGraphics>
Yeah, pretty much :|
<sija>
i have that feeling that right now we live in upside-down world, so lets say i want to take our local "health service" and to my reasoning it should help ppl and better their health, but what i see is that in most of the cases it does sth the opposite
<FromGitter>
<jwoertink> ^ yup
<sija>
and i could go on and on with other examples of that
<sija>
fucked up
<VectorGraphics>
That's existed for a while. Seems to be getting worse though for various reasons
<FromGitter>
<jwoertink> I was recently denied for surgery because the doctor wouldn't take my insurance. Wtf is that?
<VectorGraphics>
That's insane, that's what
<sija>
that's being fucked, twice
<FromGitter>
<jwoertink> and not even with lube
<FromGitter>
<jwoertink> :angry:
<VectorGraphics>
Insurance doesn't cover lube :P
<FromGitter>
<jwoertink> LOL
<sija>
haha
<sija>
but that's actually A GOOD THING: u can just fuck it ;)
<sija>
you'll get nothing for free
<FromGitter>
<jwoertink> I wish health insurance was an open market so startups could pop in and build something amazing
<sija>
and because you'll not stress yourself with your fucked up insurance u might not need it afterall ;)
<sija>
actually, why not?
<VectorGraphics>
jwoertink: That's a possibility
<sija>
actually pretty sweet one
<sija>
you'd need a platform, community and investment
<FromGitter>
<jwoertink> There's so many regulations. Like, why can't I change my insurance mid year without some life event? Why do I have to wait for November open enrollment? Why is there HMO and PPO? Why not just health coverage. Why "in-network" and "out-of-network" costs?
<VectorGraphics>
You're preaching to the choir
<sija>
community imho would be the most crucial one but if looking around I see many doctors frustrated by the system themselves and be happy to practice in some human-friendly env
<sija>
i'm with u on that even though it's all strange to me
<sija>
sounds like influenza names
<FromGitter>
<jwoertink> The messed up thing in the US is that by law I HAVE to pay for insurance, otherwise I'm fined on my taxes. The fine is a percentage of what you make per year. The rates are also a percentage based on what you make per year. Doctors are allowed to not take my insurance
<sija>
taxes... u mean irs?
<VectorGraphics>
Yep
<sija>
from what i know u can legally fuck 'em
<VectorGraphics>
They fine you for not having insurance, which is an illegal tax, but they do it anyways
<sija>
yep, that's what they do since they r cheeky bastards
<FromGitter>
<jwoertink> hahah
<VectorGraphics>
I got hit with it a couple of years ago because for a while, my employer didn't offer any health insurance coverage and I didn't have anything independently
<sija>
just because someone is acting like an asshole doesn't mean you must take it, personally, I'd just ignore them
<sija>
act cool ;)
<sija>
guys? law is behind me.
<VectorGraphics>
Until they threaten to fine you and jail you, and fighting back costs much, much more
<VectorGraphics>
Both in time and money
<sija>
did u know any of such cases personally?
<sija>
s/did/do
<VectorGraphics>
No, but that's generally how it goes
<sija>
that's what they try ppl to think, I think (;
<VectorGraphics>
Fair point
<sija>
i mean, that's just str8 bullshit, even within their own fucked up system
<FromGitter>
<jwoertink> yup
<sija>
then in court how would they defend themselves sensibly? i mean ofc they can drag it around and shit but really I don't think they would like the publicity around that too much
<sija>
and about taxes, there's hongkong option for some ltd solutions ;)
<sija>
also others, although I've lost track already
<VectorGraphics>
It would be interesting to become an expat in Hong Kong
<sija>
try it :)
<VectorGraphics>
I would give it more serious consideration if I didn't have a house :P
<sija>
can't u rent it?
<VectorGraphics>
Yeah, there's an idea
<VectorGraphics>
I haven't really thought of that too much
<sija>
if there is a will there is a way ;)
<VectorGraphics>
Haha
<VectorGraphics>
I don't know if I'd be better off
<VectorGraphics>
I like my place :)
<VectorGraphics>
Rent + whatever I'd be able to make in HK wouldn't be too bad
<sija>
haha, I'm just joking ofc ;) "live your dreams" was what i was thinking of :)
<VectorGraphics>
There is a practical aspect to it, though
<sija>
yup, pretty solid even
<VectorGraphics>
If the cost of living is lower, but the quality of life is comparable, and if I could get a similar wage working remote or something, that would be interesting
<VectorGraphics>
Though I'm not sure how big of an impact citizenship and work visas would have on all of that
<sija>
some research would need to be done... ;)
<sija>
i remember seeing a sensible wage calculator for cities around the world
<FromGitter>
<jwoertink> has anyone written one in crystal yet?
<VectorGraphics>
Apparently South Africa is the cheapest country to live or retire
<VectorGraphics>
"In the major city of Cape Town, for instance, monthly expenses total just under $400 while the average rent costs are reflected by the typical price to rent a one-bedroom in Durban of around $280 a month."
<VectorGraphics>
From a Time article
<sija>
jwoertink: not yet ;)
<sija>
huh, that's dumps
<FromGitter>
<jwoertink> So now I have to write an open source health insurance network, and a live anywhere in the world calculator. It's gonna be a late night
<VectorGraphics>
Nah, Crystal's syntax is very concise. You'll have it done in a couple of hours :P
<sija>
and with macros you'll half it ;)
<FromGitter>
<jwoertink> ha!
<sija>
wdyt about self-governance platform with q&a type of system as a base for decisive process, with level-grained access to features based on their trust/score level - stackoverflow being a perfect example of such
<FromGitter>
<jwoertink> I love that. You get out what you put in
<VectorGraphics>
I wonder how quickly that system would be gamed :P
<sija>
so things like insurance for example are being handled by a group choice, or even group resources
<sija>
haha, that's a fair game to play :P
<sija>
lets be a worthy opponent ;)
<sija>
couchsurfing
<VectorGraphics>
Haha
<sija>
l8ly it stopped being such a shining example, but still... ;)
<sija>
cs is an simple idea, where trust is pretty much essential
<sija>
and it works indeed, tried and true. ofc u have some weird hosts or surfers at times, but that's like in life
<FromGitter>
<jwoertink> exactly. It's a great system
<sija>
i'd see a "security" section too, why not
<sija>
night patrols like in a good ol' days, haha ;)
<FromGitter>
<jwoertink> I've done plenty of those
<sija>
that's an alive tradition? damn
<sija>
in vegas city?
<FromGitter>
<jwoertink> haha no. I was in the military
<sija>
lol, forgot at all about realm like that
<sija>
if we-the-people would simply take over the "burden" of the state/politicians/etc, that would be a fair game, no?
<FromGitter>
<jwoertink> what, military?
<sija>
nah, all of the self-governance including taking care about your neighbourhood i'd say
<sija>
can't beat 'em with their own weapon, that's pointless
<sija>
but you can simply watch out and create a living community which cares about each other, and your env around
<sija>
and all of that with a tiny push from the internet-enabled devices
balduin has quit [Remote host closed the connection]
<sija>
so to use the technology to bring its users back to f2f contact
<sija>
through common needs
<FromGitter>
<jwoertink> yup. It's a great concept for sure
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sija>
tech.dream of mine since many yrs actually
<sija>
but only couple of long nights ahead ;)
bjz has joined #crystal-lang
<FromGitter>
<jwaldrip> Having issues finding other speakers for the first Denver based Crystal meetup. I can get the attendance but I was thinking for another speaker (other than myself) it would be great to maybe have a "remote" speaker.
<FromGitter>
<jwaldrip> Anyone interested?
<VectorGraphics>
What are the topics so far?
<FromGitter>
<jwaldrip> A basic introduction, which is a variation they gave at a ruby conference over a year ago.
<FromGitter>
<jwaldrip> I could go more in depth... but I would like to get people hooked like I am on the language.
<FromGitter>
<jwaldrip> I have done a couple of talks so far with raving reviews like `why even use ruby anymore!`
<FromGitter>
<jwaldrip> Its hard to build a community on such a young language.
<VectorGraphics>
With the benefits it has, it won't be too long before it gets much more traction
<FromGitter>
<phoffer> @jwaldrip are you familar with the Denver/Boulder Ruby meetups out there? I was going to speak about Crystal at one, but it got cancelled (November election night). There’s some interest from that community
<FromGitter>
<jwaldrip> Yes, in fact I did a talk at Denver.rb last summer
<FromGitter>
<jwaldrip> about crystal
<FromGitter>
<jwaldrip> @phoffer are you in Denver?
<FromGitter>
<phoffer> I’m in Salt Lake, just a quick flight away
<FromGitter>
<jwaldrip> Gotcha.
<FromGitter>
<jwaldrip> Any interest in coming to speak at the meetup?
<FromGitter>
<jwoertink> I just left Salt Lake :) Ever got hang out at Church & State @phoffer ?
<FromGitter>
<phoffer> Yeah I would be, maybe we could time it to coincide with the back to back meetups Boulder/Denver has, I think that happens once a month? That was the original timing for me. Did you present with Todd R ?
<FromGitter>
<jwaldrip> I did not. I am not familiar with him, is he Denver based?
<FromGitter>
<phoffer> Oh darn @jwoertink I wish I had known. I pretty much only go there for the meetups honestly. (you didn’t happen to go to one about action cable a couple weeks ago, did you?)
<FromGitter>
<jwaldrip> @phoffer The Denver.cr meetup starts on April 5th.
<FromGitter>
<jwaldrip> And it will be the first wednesday of every month.
<FromGitter>
<phoffer> Yeah he’s in Denver or Boulder now. He presented about Crystal at one of the meetups last year, it must have been Boulder (if you presented at Denver)
<FromGitter>
<jwaldrip> Yes, I presented in Denver.
<FromGitter>
<jwaldrip> Whats his github profile?
<FromGitter>
<jwaldrip> or LinkedIn, I can reach out to him too.
<FromGitter>
<jwoertink> No, I missed that one. I was teaching at DevPoint Labs. I'll probably be back sometime this summer to teach another class
<FromGitter>
<jwaldrip> I've spoken at Denver.rb and DeRailed about Crystal.
<FromGitter>
<jwaldrip> But I thought it was about to time to start building a firm community around it.
<FromGitter>
<phoffer> Oh that’s awesome Jeremy. I’ve worked with quite a few from DPL. We should have a little Crystal meetup when you are back in town. Did you know Nikola Motors is one of the sponsors? They have a dev office out here.
<FromGitter>
<jwoertink> oh? I didn't know that. That's awesome. I'll hit you up next time I'm out there
VectorGraphics has quit [Ping timeout: 246 seconds]
VectorGraphics has joined #crystal-lang
<FromGitter>
<phoffer> That’s a cool idea Jason. There must be quite a few people using it out there, yeah?
<FromGitter>
<jwaldrip> Not quite. Just a large ruby community, and there is interest there.
<FromGitter>
<jwaldrip> People should be using it though. I feel even though it's not 1.0 yet, the pull to use it is there. Many benefits.
<FromGitter>
<jwaldrip> My favorite being union types and macros.
<FromGitter>
<jwaldrip> Not to mention the verbosity of the compiler when you do something wrong.
pawnbox has quit [Ping timeout: 260 seconds]
jabb has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
jabb has joined #crystal-lang
akwiatkowski has joined #crystal-lang
VectorGraphics has quit [Quit: Leaving]
sija has quit [Quit: Connection closed for inactivity]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
_whitelogger has joined #crystal-lang
Qchmqs has joined #crystal-lang
gk_1wm_su has joined #crystal-lang
gk_1wm_su has quit [K-Lined]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 268 seconds]
Raimondii is now known as Raimondi
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
Ven has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
akwiatkowski has quit [Ping timeout: 260 seconds]
Ven has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 240 seconds]
soveran has quit [Remote host closed the connection]
bjz_ has quit [Ping timeout: 246 seconds]
bjz has joined #crystal-lang
<FromGitter>
<sdogruyol> @jwaldrip congrats for organizing a meetup there :)
Philpax_ has joined #crystal-lang
Philpax__ has quit [Ping timeout: 246 seconds]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 240 seconds]
balduin has joined #crystal-lang
snsei has quit []
Ven has joined #crystal-lang
balduin has left #crystal-lang [#crystal-lang]
Ven has quit [Ping timeout: 264 seconds]
soveran has joined #crystal-lang
Ven has joined #crystal-lang
soveran has quit [Ping timeout: 240 seconds]
akwiatkowski has joined #crystal-lang
soveran has joined #crystal-lang
Qchmqs has quit [Quit: Konversation terminated!]
Qchmqs has joined #crystal-lang
akwiatkowski has quit [Read error: No route to host]
soveran has quit [Remote host closed the connection]
Qchmqs has quit [Ping timeout: 240 seconds]
soveran has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia has quit [Ping timeout: 240 seconds]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
VectorGraphics has joined #crystal-lang
Svenskunganka has quit [Quit: Lost terminal]
pawnbox has quit [Remote host closed the connection]
soveran has quit [Remote host closed the connection]
balduin has joined #crystal-lang
balduin has left #crystal-lang [#crystal-lang]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
FromGitter has quit [Remote host closed the connection]
BlaXpirit has quit [Quit: Bye]
pawnbox has joined #crystal-lang
akwiatkowski has joined #crystal-lang
Ven has joined #crystal-lang
FromGitter has joined #crystal-lang
BlaXpirit has joined #crystal-lang
BlaXpirit_ has joined #crystal-lang
FromGitter has quit [Remote host closed the connection]
FromGitter has joined #crystal-lang
soveran has quit [Remote host closed the connection]
BlaXpirit_ has quit [Quit: Bye]
BlaXpirit_ has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
VectorGraphics has quit [Quit: Leaving]
bjz has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 264 seconds]
soveran has joined #crystal-lang
<FromGitter>
<jwoertink> I have a property that I need defined, but it can't be nil. I have the variable set in my initialize, but I have 2 initialize methods
<FromGitter>
<jwoertink> to keep the compiler from complaining, I have this defined in both initialize methods
<Papierkorb>
yes
<FromGitter>
<jwoertink> which doesn't really matter since it'll always be initialized with an empty array
<FromGitter>
<jwoertink> but it there a way to do it without having to define this twice?
<FromGitter>
<jwoertink> I was hoping that since I call the first initialize from the second, that the compiler would know, but I guess it doesn't
<Papierkorb>
jwoertink, calling #initialize yourself doesn't feel right. However, you can usually merge the methods, e.g. by using default values
<FromGitter>
<jwoertink> Really? That was one of the first things I loved about crystal lol
<FromGitter>
<jwoertink> Maybe I could move it all to some private methods that get called to clean it up a bit
<FromGitter>
<jwoertink> Ah... ok `property stored_routes = [] of Tuple(String, String)`
<Papierkorb>
And you just introduced an interesting bug into your application
<Papierkorb>
That'll assign that array by default alright. However, an array is not a value, it's a reference, so it'll assign that array reference by default
<FromGitter>
<jwoertink> :confused:
<Papierkorb>
Oh I'm wrong!
<Papierkorb>
Never mind, your "property = default" line will work just fine
<FromGitter>
<jwoertink> oh ok sweet! :sweat_smile:
Ven has quit [Ping timeout: 240 seconds]
Ven has joined #crystal-lang
Ven has quit [Ping timeout: 240 seconds]
soveran has quit [Remote host closed the connection]
Ven has joined #crystal-lang
soveran has joined #crystal-lang
olek_poz has joined #crystal-lang
akwiatkowski has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
soveran has quit [Remote host closed the connection]