borokov

joined 2 months ago
[โ€“] [email protected] 1 points 1 week ago (1 children)

I comment because this is how a social network works, and this is how you keep lemmy alive. My comment has generated a dozen of other comments, so he achieved his goal.

There is not a single question that's already have been answered on internet, so there no point on asking anything on social plateforms except just for the sake of interacting with other peoples.

Lemmy is not stackoverflow ๐Ÿ˜‰

[โ€“] [email protected] 2 points 1 week ago (2 children)

Don't know how list are implemented in Python. But in the dumb linked list implementation (like C++ std::list), each element has a "next" member that point the the next element. So, to have list length, you have to do (pseudo code, not actual python code):

len = 0
elt = list.fisrt
while exist(elt):
    elt = elt.next
    len++
return len

Whereas to test if list is empty, you just have to:

return exist(list.first)
[โ€“] [email protected] 1 points 1 week ago (11 children)

Isn't it because list is linked list, so to get the Len it has to iterate over the whole list whereas to get emptyness it just have to check if there is a 1st element ?

I' too lazy to read the article BTW.

[โ€“] [email protected] 7 points 1 week ago

I use to control it before, but since I'm on some other medecine, it start to have its own will. It happen to me unvoluntary like every 5 or 10s. That's SO FUCKING ANNOYING !!!

[โ€“] [email protected] 7 points 2 weeks ago (1 children)

No, cause I'm french and the only time I see guns is where there are military or police on patrol.

However, I did some air rifle when I was younger and it happen the club I was in had an ex olympic champion as member. He let me tried its olympic air rifle. Smth like this:

Such beautiful piece of machining ! But I didn't shoot better with it ๐Ÿ˜‚

[โ€“] [email protected] 7 points 3 weeks ago

Mongolia.

Every single people I met were nice and friendly. Even when they don't speak english, they will try anything to help you, or find someone that speak english.

[โ€“] [email protected] 12 points 3 weeks ago

Meanwhile, the CAC40...

[โ€“] [email protected] 1 points 1 month ago

Yes, we have this, but they don't pick above 1m3. Which is stupid, because for less than 1m3, I put it in my own composter.

[โ€“] [email protected] 1 points 1 month ago

I came by bike to work during 10 years, I also have a trailer for my daughter, do regular cyclo-tourism, including crossing Scotland and Iceland with tent and bike.

Trust me, I know what a bike can do. But when you just discharge 4 tons of concrete from the delivery truck and noticed you missed a few bags of cement, you really are not motivated to drive 15km with cargo bike.

[โ€“] [email protected] 1 points 1 month ago (2 children)

Dude, do you have any idea if what 5m3 grass, woods and leaves represent in a 700m2 garden, and the time it would require to compost it naturally ?

There is an "organic factory" (don't know how to translate it) were people can bring their organic waste close to my home. They have big crusher for wood, and several areas to maturate the compost. You can buy premium organic compost for your garden for like 0.1 euros per kg. You can also come with your trailer and take a few tons if you want.

It is also used by townhalk to decorate round about, public PARC, etc...

[โ€“] [email protected] 19 points 1 month ago (3 children)

Also, water you are drinking has probably been peed by dinosaure. Several time. But probably not peed by a human.

[โ€“] [email protected] 3 points 1 month ago

SimCity 2000 microwave powerplant ?

view more: next โ€บ