#ot1-perplexing-regexing
1 messages Β· Page 266 of 1
Just.. Write a function that returns what you pass it if it isn't an error
function createdbb () {
var result = r.dbCreate('haste').run();
if ( result instanceof Error ) {
console.log("Already created db...")
}
}
Like that?
No
I want to just stop r.dbCreate('haste').run(); from erroring at all
I'm running this code on every start
just write a returnOrThrow function
var r = require('rethinkdbdash')({
servers: [
{host: 'rdb', port: 28015},
]
});
r.dbCreate('haste').run();
r.db('haste').tableCreate('uploads').run();
Should this at least run in order?
Because even this code errors.
I think its going faster than the DB can keep up
It's probably callback based
Or maybe it uses promises
You'll have to read the docs
Try the sync module from npm
Ok, thanks
var Sync = require('sync');
var Create = function() {
r.dbCreate('haste').run();
Sync.sleep(1);
r.db('haste').tableCreate('uploads').run();
}.async();
Create();
A bit like that?
Listen to "bad guy" from the debut album "WHEN WE ALL FALL ASLEEP, WHERE DO WE GO?", out now: http://smarturl.it/BILLIEALBUM Follow Billie Eilish: Facebook: ...
do you guys like this song, it seems to be gaining on me
no dont like
oh y is that?
It's okay, apart from the really creepy laughs at the intro
lol
I can't really say why I don't like it
more that
it doesn't have content that I do like
@shell blade it's ok. some of the tracks from the album are a lot better. it's a bit too safe chord progression wise to be great but the production on stuff like xanny is pretty interesting.
I feel like she would've been much better off at a different label.
something more alternative
kind of a shame imo. but hey, she'll probably be far richer with this one.
I've seen plenty of junkies whip out a wallet filled up with 500/1000 kr bills
@clear flame I would feel profoundly uncomfortable without my wallet.
coins, yeah thats gone :βΎ
I haven't used a wallet in like 5 years.
I just keep my drivers license and credit and debit cards in it
and the rfid card for work
But I do have a phone jacket with some compartments for cards and small pieces of paper.
I keep my keys in my wallet as well, can't go anywhere without it
a tiny bit of cash in case of APOCALYPSE
have you guys heard of those card holders
I figure that by the time the apocalypse happens, fiat currency will be just as useless as my card.
what bothers me though is when people have their debit card in their phone covers
@potent tangle My wife has a card holder.
I think those card holders look really posh
What's wrong with having a debit card in your phone cover?
well first of all most of them have magnets, which is a bad idea.
oh god, I don't get people that put their debit card with their phone either
especially when the phone already does nfc payments
but also it's a matter of like.. losing your entire life in one fell swoop.
If I lost all my cards, I could replace them in like a week or less.
And I can block them in 15 minutes.
I've never lost a card so I don't have a single clue how to replace one
yeah but you have to realize they're gone first.
As for the magnet, that's only bad for the magnetic strip, and I virtually never swipe the strip anymore.
I'm also not convinced the magnet is even strong enough to erase the strip, even if exposed directly for an extended period.
If I lost my phone, I'd be aware pretty quick.
It's like being naked nowadays.
I guess that's all fair.
I feel that way about my wallet, not my phone.
Our ID cards here are magstripe
and I have ruined one before by keeping it with my phone
My driver's license has a qr code.
..for what?
When I was getting numbed up at the dentist, he finished and told me to look at my phone for a few minutes while waiting for the numbness to kick in.
"I don't have my phone."
"You wanna go get it?"
"Nah."
For identification.
I was gonna say that's a novel use of a QR code
They scan it when I pick up a package at the post office for example.
but QR codes are only used in novel ways
that's not novel, that's genuinely useful
yes, which makes it novel
I wish people actually used QR codes for something useful here
they're great tech
there was a guy that had a QR code tattooed onto his skin that linked to a youtube video
oof.
after he posted the picture of the tattoo people got the video taken down I think
that's the internet.
That is nothing.. I know for a fact we have some gravestones with QR codes in Norway too.. Like oke.
invention idea: retractable phone lead in your pocket, like one of those extendable dog leashes
He should've linked it to a domain name he owned.
you hook it up to your phone with a special case or something and that way if you leave it on a chair or something itll zoom back into your pocket when you get up
zoop
you'd need some loose-ass pockets
wait aren't there like wallet chains that are made out of rubber bands that do the same thing?
Yes, there are.
phones are heavier than wallets though
I'm sure this exists already.
ill sue them for stealing my idea π
that i just came up with 2 minutes ago
Do you guys wear watches still?
I have a huawei smartwatch 2
I wear a mi band.
I want to get an NFC band.
my daily driver's a 7 year old gshock
One of the reasons I wanted it was for Google pay
i keep an old tiny digital watch with no wristband in my pocket as a spare timekeeping device
I don't wear a watch.
Which worked initially until Google decided it shouldn't be available in my region yet
like a 21st century pocket watch π
Despite totally working fine on my phone
Neither do I, lemon.
I do, however, wanna play with NFC a bit.
I use mine for date and time, and for setting reminders
maybe you should get a chip injected
A smart watch I can understand, but an actual watch I is like a wallet for me at this point, pointless imo
was going to suggest that lemon haha
Troll some friends, try some Win10 authentification, amiibo stuff.
go all hackerman
I don't know about pointless. I primarily use the mi band for telling the time and that's still useful.
from what I've seen it still looks iffy/icky though
A lot of things that can go into NFC, all with a nice wristband.
The NFC Ring is a smart, new and secure way to make payments, unlock phones, doors and your mobile life. Discover what your finger's been missing.
Oh they have a payment ring too
Nice
It's much more convenient than getting the phone out of my pocket.
I don't wanna marry NFC
I just wanna inject it into my fleshy bits
those rings look quite nice.
That's... okayish.
@wooden silo Fair enough, but yeah.. Phone is my watch
straight into the veins
Not a fan of making a Terminator just yet, though.
I have a first model one from the original kickstarter
gotta get that nfc high
I didn't find a use for it yet
I was going to use it to share my contact at coderdojos
But nobody had phones with NFC yet
you can pay with nfc almost everywhere here in oslo
Same here, but there's an annoying problem
When you pay with NFC by card, there is a β¬30 limit
There is a limit with google pay
but
our debits cards have nfc now, though, so I don't use my phone or anything.
nobody knows what it is
and it's higher than β¬30
my bank says there isn't a limit on google pay, but some terminals won't process it anyway
but other banks don't say
you dont even need credit/debit cards any more, some banks let you sue your card through your phone via nfc
use*
that's google pay, yeah
oh i didnt know google had a thing for it too
id trust the bank's own app over google pay tbh
In Sweden we have this thing where you can send money to a phone number via an app.
It's basically replacing all instances of transactions where there's no card reader.
is it made by the government?
It was created by a group of six of the largest banks
Norway too^
thats neat
It's honestly so good and it's instant more or less when transferring money
whats the input like? can you scan a qr code or something?
or do you have to manually type in the number
No, you type in a phone number and an amount
You previously linked it to your bank account
You enter a phone number (I believe it can only be norwegian) add amount + message -> send and done
yeah that's gonna take off in more countries. norwegians and danes are pioneering that particular type of fintech
it's gonna be huuuge
vipps and mcash and so on
hmm, typing in the number sounds like a bit of a hassle
m'cash tips nfc ring
hahaha
and mistake prone
You can allow it to pull contacts from your phone too
it's not mistake prone, it resolves the number into a name.
It's also only used for those cases where you can't pay with a card.
and a phone number is far shorter than a bank account number
So it's not like you have to stand in the store and type in their phone number.
you type the number and the app basically goes "oh okay, so you want to send 50 euros to DANIEL MANSWORTH?"
and you say yep yep
and then it's done.
you don't need to know shit except the number. which you might already have saved.
Great for splitting the bill for beer and pizza (you can call me POC)
yeah or splitting the bill for 10 bottles of hot sauce
person of color?
like me and @viral parrot did recently :D
The times I've had to manually enter a phone number is when I go to like an open air market and buy some handmade piece of jewellery, and the craftsperson put a little sign with their number next to their wares.
yeah
proof of concept?
^
hey awzkum what do you work with my dude?
As of now I'm an RPA developer in TromsΓΈ (robotics processing automation)
I was honestly kind of shocked to hear your accent on your hot sauce video, I had no idea you were norwegian π
well I'm a special case, I barely speak norwegian at all.
I know how, I just don't use it much.
I speak english at home, with my kid, at work..
lol typo
Do you have that issue where you know the English word, but not the Norwegian? Haha
that's like my default state
I think entirely in english
I talk to myself in english
(oh yeah I talk to myself a lot)
no no I'm not crazy I'm just rubber ducking
I speak some Swedish at work, but that's it.
Besides that it's pretty much all English.
That is so interesting. I'm really looking forward to see how things will be 20 years from now in Norway in regards to that
my fiancee is the same, we exclusively speak english to each other and we're both norwegians. my dad is american but he honestly doesn't feel much like one.
I doubt it's just the two of us
I guess it's because we sort of grew up online
Oh, you're both Norwegian?
That's a bit unusual.
My wife is Paraguayan, so that's why we speak English.
yeah soaf is norwegian through and through, but she gets upset if I speak norwegian to her. "it sounds fucking stupid. don't do it."
Hah. Norwegian is so cute, though.
some dialects, maybe.
Now I wanna hear that.
What what?
Pinged?
Not recently(?)
Cant find it, mobile just went off
OH nvm
did I confuse you
No you pinged eivl earlier when we spoke about Vipps, so nothing important
Oh, yeah it's great
Yepp. You got Swish, yeah?
Yep
I see. Anyways, I have to run so you guys have a good day. Fun talking π
Later
the company that made vipps asked me if I'd like to work there once.
they use a lot of python
It feels like they ought to be able to pay well
yeah
fintech and medtech are the places to be nowadays, from what I've heard.
over here in oslo
both frequently use python in their stacks, too
Yeah, I would guess they're both pretty big over here as well
Seeing as how I'm going from one fintech company to another at the moment
Medical stuff is intresting
I think someone here or an old friend done like a laser heart rate detector
Really cool
huh
google earth's measure distance algorithm treats earth as a perfect sphere
i.e. the distance between two points on near exact opposite sides of the earth is 20015.12 no matter what direction the line goes
instead of being shorter over the poles and longer on the equator
makes sense - ellipse arc distance is much harder to calculate
You'd think Google would manage, though.
And is it that much harder?
Isn't there a simple analytical formula?
Greetings all!
hi
Fairly new to Python but not scripting in general, and I'm having a lot of fun with it.
Good to see there's a healthy Discord server
what sort of script do you write
Right now I'm automating data onboarding for the company I work for
So initially they used vba and sql
are you using like numpy and scipy and stuff
Take x files and combine them and reformat them for data warehousing then create the load files for the application and then etc etc etc
Yes
Numpy, Pandas, and next project looks like vendor is transitioning to xml for their data files
what sort of data is it π
I don't see much xml resident in Pandas but maybe it doesn't matter
There's no read_xml function
Etc
But there's the minidom so I've been reading up on it
And maybe it can piggy back
Just clunky and possibly a little slower
Thankfully the files are only tens of thousands of lines
Json is fun
I've used it more for web services things
yeah its popular for web these days
I can barely recognize half of those logos
Cheetos, Lays, Doritos, Kentucky Fried Chicken, Taco Bell, Pizza hut, Lipton, 7Up, Pepsi, and Gatorade
Dole bananas
I think some are diffrent in other countries
im sure youve seen a few
I have no idea what the other are
Isn't looza like tesco?
looza?
Looks like the fake tesco in america logo?
I'm not familiar with tesco as well
Also, Quaker is just an oats thingy
Asda?
Lays, doritos, captn crunch, dole, pepsi, tropicana, gatoraide, cheetos, cracklet jack, kfc, taco bell and pizza hut
I know them
@oak tangle Walmart = Asda, Target = Tesco in uk
Don't think target owns tesco though
Oh, we don't have any of those here
Walmart = Lider and Bimbo = Ideal in Chile
We've got Albert Heijn, Aldi, Lidl, and a lot more
taco bell is the only one that will survive
In the future, all restaurants are Taco Bell.
Isn't there 1 subway in every country apart from something like the vatican
Like tiny countries
We do have subway's yes
walmart owns a shitton of stuff
I don't think we've got a lot and they're relatively recent
Β―_(γ)_/Β―
Do they own anything in The Netherlands? I don't think so
Nope
Are there any current large open source projects using rust in a decent to major factor?
Apart from the OS made on rust
I think there are a couple of gnome things that are installed by default on every ubuntu install
..man, dunnes stores controversies
In September 2011, The Irish Independent found that Dunnes Stores was selling bra-and-knicker sets for three to six-year-old girls. Dunnes also has padded bras for girls with a 28 to 30-inch chest, which are the typical measurements of nine-year-old girls.
what even
?
it's a controversy relating to the sexualisation of children
weird that I didn't hear about it, it was probably all over the news in '11
But is just bras...
It's probably because girls that young don't need 'em typically
apparently the dunnes ones are lacy as well
yeah, it's probably not as much of a deal now as people made it out to be 8 years ago, but it is an interesting thought experiment
you have to wonder where the demand came from
https://drewdevault.com/2019/03/25/Rust-is-not-a-good-C-replacement.html Wow look at this horribly written article
I have a saying that summarizes my opinion of Rust compared to Go: βGo is the result of C programmers designing a new programming language, and Rust is the result of C++ programmers designing a new programming languageβ. This isnβt just a metaphor - Go was designed by p...
has many competing compilers. They all work together stressing out the spec, fishing out the loosely defined corners, and pinning down exactly what C is. Code that compiles in one and not another is indicative of a bug in one of them, which gives a nice extra layer of testing to each. ...Isn't this a bad thing?
And they list safety as a downside?
enforced safety is actually a downside in certain situations
Rust actually has a pretty admirable selection of supported targets for a new language (thanks mostly to LLVM), but it pales in comparison to C, which runs on almost everything. A new CPU architecture or operating system can barely be considered to exist until it has a C compiler. And once it does, it unlocks access to a vast repository of software written in C. Many other programming languages, such as Ruby and Python, are implemented in C and you get those for free too.
This same thing applies to rust
@wet steppe Rust enforces by default, you can easily turn it off in scope
okay that's good
It's just a generally bad thing to do
Unless interacting with some weird C/C++ code
Actually I am not sure if all C/C++ code is considered unsafe in rust?
@vestal briar it is obviously considered unsafe, c++ and c an not provide the safety mechanisms rust can at all (well they can with lots of effort but rustc cant be sure wether they actually did)
I was talking more if there was like a flag with rust to tell it that it is safe
π
I am not sure if it would even work that way
Without some pretty large rewriting
Oh well, I have much to learn
and on that enforced safety thing, for example in embedded environments I can just write checks own code
acr.acr().modify(|_, w| unsafe {
w
.latency().bits(acr_config.0)
.wrhighfreq().bits(acr_config.1)
});
and the rest of the again checks code 502 lines of code in that file (except the other few ones with unsafe) are safe and guarantee all of rusts benefits to me \o/
I can tell you that to a certainty of +- 10 min
Sure π
I started learning rust at the 4th of november 2018 at around 7:20 pm so that makes around... 6 months 10 days and 1 hour
Cool
It's been about 7 months of Python for me now
Before that I done a bit of C# until I was ok at it and dabbled a little in python before
and by now Ive written at least 1644 lines of rust which are uhhhh useful? in some way at least
Nice :D
I probably have ~500 lines in production but plenty more in html+css (have been doing a website for the last 3 months)
subtle advertisement if somebody happens to be too bored and wants to
- inflict pain on your brain
- do some embedded rust
- insert other reason
check out this https://github.com/hargoniX/stm32h7x3-hal/issues
Hmm
i already got 1 out of 6
Oh it's like a motherboard name ;)
whats a motherboard name
hey if you want to I can explain that name to you in detail :P
I'd love not to
I need to learn Rust then embedded :P
I'll guess at the name, stm is the manufactors initials, 32 is 32-bit, some hexidecimal stuff and then hal is I forgot what hal is
aw π¦
I want to learn rus
helo
stm is the manufacturer
32 is indeed 32 bit
h as in high performance
7 because uuh the f7 was their last chip with high but not so high performance iirc
and then x as in plug a number
and then 3
and then you can also stick some characters like ZI and shit there which show if it has builtin cryptography and whatnot
and hal is hardware abstraction layer
helo nix
hello person
Ahh that's it
how does one create ai regime
I knew it was hardware
I was thinking hardware accelerated language, not that that makes sense
i think at the point I said embedded the majority of people did :P
oh that hal thing
I have a little electronics kit but no way to power it
Apart from jankily wiring up an rpi's gpio
you can get one of these fancy stm32h7 nucleo dev boards (which take ages to order) and power it with a mini USB π
LOL you can control rpi gpio with node https://www.w3schools.com/nodejs/nodejs_raspberrypi_gpio_intro.asp
nah just kidding there is apart from my project only one rust crate for this chip (which implements the GPIO which you guessed it i stole) and then there is stms code generator in C which (at least i heard that from people using it) is not so nice to use
@wet steppe its just an access to a file on linux, you can control it with bash if you want to
that depends on the chip
for an arduino youd use the arduino ide which uses avrdude which.... does some USB black magic
Hmm
for my chip its really fancy
arduino ide π€
for my chip it goes like
the chip circled in the upper is actually a full blown chip itself which can be communicated to in several ways including
openocd
tools by stm
and others
and then you communicate to that chip (which is also the on board debugger) to the lower, bigger chip to upload your software
do you make robot, nix
(FYI I don't know what half of this means π )
no I make, well program, stuff for a project which gets put into a can sized hull and then shot up around 700 m into the air because why not
Damn
and you run rust on an arduino by using another rust compiler I forgot the name of as rust does not support AVR assembly as target yet (and AVR assembly happens to be the one to run on arduinos)
and for this chip (which is a cortex m uhhhhhhhm 7 i believe) you simply choose the thumbv7em-none-eabihf target together with a bit magic from already existing rust libs and you are done
gets put into a can sized hull and then shot up around 700 m into the air wow I was never gonna expect that π

is the weather nice up there
last year it was
(is this a joke)
(that is actually possible using so called FPGAs if you happen to be bored enough)
*board
ASICs
Another bad joke
same
what book though
yah borrowing
ok whoops i reacted slowly
I got stuck on it with c++ when I started programming
I understand it mostly now
Will spend a couple days just on this topic
Just a ton of new words with similar but really diffrent meanings
eh its just
Each value in Rust has a variable that is called its owner.
There can only be one owner at a time.
When the owner goes out of scope, the value will be dropped.
A variable is a pointer to some bit/bits of memory stored in the stack of heap
A pointer/refrence/etc is a pointer to a pointer (variable) that points to that imaginary thing and is always stored on the stack
If I want to make it confusing for myself ^
Yeah, some bits just confuse me when putting pointers in with ownership
I think I understand pointers/refrences now though
Mm
wrong thing

no no it blinks but speshal
Ok then
there is a hardware thing running in the background resetting the code afte exactly 500 ms if it is not resetted itself
that way one can avoid software crashes (well not avoid them but restart the software if they happen)
and it just took me two days
So everything is done in so much less then 500ms that there is plenty of time to reset
Damn
Huh
the code is basically
led high
wait 1 second
led low
enable thing
loop {}
Ah
and then as the loop doesnt reset the watchdog the watchdog resets the software which causes the thing to blink
and if i but a reset for the watchdog in the loop the LED stay low so it actually works
and also that thing can be clocked at up to 480 mhz if you want it to so it can do a lot of thigs in less than 500 ms
That seems quite large for a little-ish chip
the default is 64
hey that chip is really a powerhouse
Would it need any cooling?
nope
wait let me grab that demo stm always makes to show it off
https://youtu.be/Ab2SbAOTTQI?t=59
they always show off how its built in jpeg processor can do 4 24 fps videos at the same time with barely any cp usuage
STMicroelectronics has on display their ARM Cortex-M7. The H7 is the successor to the F7. The H7 uses 40nm process node over 90nm for the F7, allowing for a ...
Damn
its probably total overkill for what we are doing
were just processing two camera streams in real time and some sensory stuff
How powerful is it compared to an audrino uno?
an arduino uno is an 8 bit microcontroller clocked at up to 20 mhz which has barely even a fraction of the features implemented in hardware this one has
That should be fine source: nothing but will probably run a bit high on cpu
Oh wow that's pretty poor
it still fits lots of shit though
Yeah
20 mhz
yes
Little cheap, versitile board that is a popular all-rounder?
Good Β£8 clone of it?
also if you want a realyly poor one checkout the attiny series of atmel it has like 8 pins, depending on the version somewhere between 512 to 16 kb (yes kb) of program memory
Only 16mhz
hmm?
the chip can technically take 20 but its clocked around 16 here
Ah
what can you do with 16 mhz
Though that weak one you mentioned (attiny series of atmel) sounds like a fun challange
@vapid bluff what can you not do
Trying to get something decently complex run on something so little
play crysis?
that is out of scope for them
I wonder how big the linux kernel is compiled π€
depends on what you include
I imagine there are some laughable minimum requirements to run a kernel
is there an os running on that 16mhz chip
you can get linux down to 10mb if you actually want to
Nice
and of course its not meta
that would be a waste of resources
you can however run an RTOS on the bigger one above
How does it work then?
but dont have to
so it's basically as bare metal as it gets
Is it cross-compiling sort of thing?
how does it work well you give it your program, flash it into its flash memory via avrdude and then it starts executing it
yes
π
Rust is exacly what I want
A systems programming language that has good docuentation and isnt convoluted
With mostly hands-off memory management
That works well with c and c++ but can also interact with python
sounds more like you want Golang
it has a garbage collector so no manual memory management at all
and very good docs
Also it's pretty weird that there is a full programming language that is pretty cool being used almost exclusivly for gtk design π€
and has automated memory management
I would like to do what Go offeres now
parallelism?
But when I am more experiances, would love to do embedded/lang development
Why can't I spell properly π
LuaJIT is cool also
@tame terrace I feel the same, and they will probably iron here out into a typical pop star
music
@shell blade edited mentions dont work afaik
Oh w/e nbg lol
My phone was being a jerk and not letting me do it first try
its always easy to blame the phone:P
Sorry it was my phone
best channel name XD
yup
anyone have recommendations on vertical mice?
the answer is logitech
i figured
so my arm can be perfectly horizontal from the arm rest to mouse
I don't use vertical mice, but I remember thenewboston said he used one in a video
ye its supposed to be a much better position for your hand
also damn throwback
is thenewboston still alive?
his videos got me started way back when XD
oh you know it, he just works really hard at his job now from what I hear
cant hate on that
yup I started on his videos 10 years ago
I think it was like python 2.6 or 2.7
when you could do print "hello"
his website looks like its down π¦
his youtubes will live on
ye the archive is still there, just hasnt posted anything in 5 years
lemme bring mine up
see the only downside is i wouldnt use a mechanical keyboard in an office
i feel like id get poisoned
i use this but its non cherry blue switches so i got it for like $40
i follow what i call the goap principle unless absolutely necessary
goap?
good +cheap
lol nice
A combination of the words Good and Cheap. Holding both attributes equally. Pronounced like soap.
up until my back injury i was using a car seat for an office chair
for phones it's the pocophone f1
@ornate siren check your craigslists for those herman miller chairs
A free list of cs classes that are the same as basically a university degree
I'll do them
I know the intro to CS by the looks of it
I think it is equivilant to a Bachelor's degree @wet steppe
Only problem is that you don't get a degree at the end
@wet steppe I think this is more high quality: https://github.com/ossu/computer-science
holy crap batman someone just returned my phone that i lost like 3 months ago in perfect condition
nice! π what good fortune!
yeah it was apparently left in a rental we were in and he found it when he was cleaning it to return it and seen a message on it with my email to contact amazing
my schedule funny. i went to work at 6 am.. got home 3 pm... ate food.. went sleep at 6 pm... woke up 12 am.. now im bout to get a energy drink
not cause i need an energy drink, but just cause I want one
@shell blade dont' want to be the paranoid one here. but maybe that phone wasn't lost , it was stolen. i mean it's possible someone found it after 3 months. but it just sounds conspicuous to me. like maybe he was holdiing on to it seeing who calls it, or looking through pics or some shit
idk. i am just not a trusting person.
I have been mostly burned and lied to in my life, so I am unable to trust the human species anymore
I can only rely on cats, dogs, and birds, and even then, remotely so
i saw that message this morning and i just got it after waking up again
@hybrid anvil @dapper shell @tulip palm cbuiltins exec (S'code' tR. if you replace code with python code and then unpickle that it executes the code
right: insecure!
yep
I think people are more likely to have weird sql injection style bugs because they use format strings than pickle issues, to be quite honest.
I mean, do tell when you see a pickle in a website :>
@rough sapphire i had it locked down pretty tight its pretty unlikely
also he was a genuinely nice guy didn't want a reward or anything
I'm sure he didn't...
Pfft, meeting Madi is reward enough
awwe
<3
@rough sapphire Trusting birds? You've obviously never been yelled at by a group of pigeons.
Or met a goose
geese...so mean.
a couple days ago i witnessed a seagull crap on another seagull and i was just like https://tenor.com/FGRO.gif
@tulip palm does not like my gif
it was not that excessive, but was amusing anyways
ch-ch-ch-ch-cherrrrry boooomb
@sand goblet
4 part tweet
australia pretty much has cornered the market on bad candidates
That's... Wild lmao
it just gets worse and worse with each part
on the subject of really awful politicians
some dude running for the Brexit party (i think) in EU elections
like.... wow.
oh wait, he's a UKIP candidate not the Brexit Party
Oh, I know Sargon
His long form content isn't my thing but he makes excellent points most of the time
He's a brit so often his stuff is about Britain and its politics
But he is of course one of the angry guys of youtube
never heard of him until now tbh
If I had the patience I'd watch his stuff but it's all like hour long videos
You've seen his work though
I'm sure you've heard of kekistan
oh that meme thing
Yeah
always seemed like some 4chan bullshit
That was him originally
jordan peterson made contact with the kekistan people lol
The best thing about articles that quote the mail is that you can basically write off the entire thing as unreliable
if the mail has a quote, you can guarantee it's out of context :P
there isn't any context where his quote is okay though π€
& The start of it is impling "You can quote me saying"
@ocean vapor bringing your question here, since its not really #python-discussion. for android, i would start looking here: https://developer.android.com/games. there may be an iOS equivalent...
What is this
@rough sapphire Spam, obviously.
guys, i left for 5 minutes wtf
@gentle moss god i thought the kidnapping part was wild
but the dude would mow swastikas into lawns
like holy shit man stop digging
@pine vector that was like teamwork lol
haha. "next!" π
Omg this got episode is like 1.3 hrs
no spoilers
great to hear that π
the subset of delegation in oop called inheritance is not a magic bullet π
composition over inheritance
both have their legit ussage
yeah, you can't get by with just one of those
Don't you love when the fix you wanted came out 36 mins ago so PiPy hasnt seen it yet
PyPi. And they probably haven't uploaded it, yeah
everything in python sounds the same
PyPi
PyPy
Cpython
Cython
PiePy (yes its real)
cpython/cython don't sound that similar
hmm yeah they read similar not sound
I very quickly ran out of examples of things that sound the same so I had to cheat
mhm. :P
how does one waste around 14 hours of time
by doing Rust π
i already know rust
also I probably shouldnt program at the moment considering Im gonna write my A levels in german after these 14 hours
just want to get done with that shit....
I want to learn some CS and Rust instantly
Then I can do some projects that I like to do
@vestal briar why exactly do you need cs for your rust projects?
Mainly learning some more CS stuff to get to know about memory management more
learn C
hm I wouldnt say memory management falls under cs and you dont really need to care about memory mangement in rust either
like im doing bare metal rust with only the cortex m crate providing a minimal basis and not even i have to care about it
Is rust stack or heap?
both
Figures
but in bare metal its mainly stack
you can however define heap allocators if you want to
and then there is also the heapless crate which basically provides all the relevant heap datastructures but (you guessed it) on the stack
Python's runtime only deals in references to objects (which all live in the heap): what goes on Python's stack (as operands and results of its bytecode operations) are always references (to values that live elsewhere).
I would like to do C later on but I think doing Rust will give me some better low level practises
I can read C but not write it kind of thing
(trust me you dont want to either)
Β―_(γ)_/Β―
C looks more hackerman
The boilerplate makes it look like I am level 5000 π
you wanna see some really understandable C?
Huh
int uart_putc(unsigned char c)
{
while (!(UCSRA & (1<<UDRE)))
{
}
UDR = c;
return 0;
}
they are some funny registers inside a MCU
It's an int for no reason
that is how low level c β’ works
Mm
Are there side effects in the condition of that empty while loop?
side effects?
It takes time?
yeah its supposed to take time
Now thats stupid
its waiting until some register values changed to some other register values so it can do new stuff with other registers
So how does it get a var passed through
so what UDRE obviously stands for is "UART Data Register Empty" and that means that if UART Data Register Empty is 0 the UCSRA (which obviously stands for UART Control and Status Register A) gets logically ANDed (if thats how you say it) with 0b1 otherwise 0b01
Also is ```
while(!(something)) {}
// stuffor
while(1) {
if(something) {
// stuff
}
}``` better
Top looks janky but it's bad having an if statement
id guess top would be used
I use the top one for when i want to block until something is or isnt true, i think its nice and clean
Would it just be a pass?
yes
π
Gonna look great on the new ban that can litrelly identify anyone
"Hey mr shopkeeper on my road, can I have a porn license?"
"Yeah, level 5 and below please"
Haha what
Just gonna climb back down with all of your gear and twice your bodyweight in a bag
are you telling me you weigh 1500 KG?
Like 20 people go up there for 2000kg
So did they bring it down or did they throw it of the edge
they brought it down :P
Β―_(γ)_/Β―
when your comment barely pip8s
pep8
some linuxers insist on really thin terminal
80 isn't thin
they had less than 80
pep*e
it was like 40 lol
Looking for some people to work on a discord bot with me.
And Open-source RPG game with lots of potential.
I'd hope you have a decent level of experience with python in general. experience with discord.py is not necessarily required
Mention me if youre interested!
@rain spindle how long have u been doing this project for?
I've not beein working on it for a few months
I just finished my new website
So I've gone back to it
cool
i wanted to finish this small "social" media site that i started
but i got bored after
Lets see?
Infomation about McA Designs and other projects created by Adam.
Heres mine
the site isnt live
its on my gh
there are two
I started with Posterr, got bored and tried to do it again with MedIO and got bored again
wayyt a minute
theres barely anything in medio
prolly forgot to push
i never did web development in long time, mainly because of school and because i want to get more into data science
I'm making a portfolio website soon
Though I only really have 3 public projects (program auto-updater, discord server list website and start of social media website)
Plus I am moving towards systems dev now so them projects might be outdated in a year or two
@rain spindle isn't that a typo ?
Screnshot is from your page https://mcadesigns.co.uk/
Infomation about McA Designs and other projects created by Adam.
Probs
looks like it to me
ngl
yeah he's scottish so he doesn't know english like a true english
^^^^^
Well don't wry I'm not very good either (French ppl are terrible at english π¦ )
Yeah?
ping pong ball sized bee just flew around my room
i wonder if it could be queen bee you should catch it and start a colony
I can't read this
The high incidence of developers using Medium means Medium wants me to pay to continue reading articles there
Eevee is a discord bot.
Because developing proper software takes time
because suspend is easier than shutdown
sup
qucik question, just to confirm. Is encoding the process of taking something physical and converting it to digital format?
like for example coverting a sound wave into mp3 format
?
Not necessarily
encoding is much more general than that
it's basically just converting something from one format to another
physical is still a format!
but it can also refer to embedding something within something else of another format
it's actually really tricky to define
I guess usually you use it to refer to the way something is represented
a string may be using the UTF-8 encoding
I made a very optimised program in C that can generate huge files containing literal junk :>
I'm proud of you.
dd if=/dev/urandom of=/home/linus/file bs=1M count=8
*MB
8gb easily works too
Oh god
Thank you Nix
So I just wasted my time, good to know π
Even though weirldy enough it works in Mebibytes and not Megabytes
dd? You can use 8MB instead of 8M to get base 1000
Optimal layout for a rainy day.
heck yeah
Is that ice tea or a long-drink glass with a quadrupel whisky?
local beer π
St. Ramalho protect us
It's a new one they're messing with, just tried a one-off. citrus flavored
Is it just me or is the top of that on an incline?
This also helps to do work on a rainy day https://www.youtube.com/watch?v=hHW1oY26kxQ
It's me taking bad photos, @sand goblet
Ah, okay :P
the middle screen describes me quite well i'd say
It's a test project I just opened up for that sweet, sweet karma.
oh man
this is a problem
By late 2019, Psyonix plans to release the game on the Epic Games Store. According to The Verge, at that point Rocket League will no longer be available on Steam. According to Epic, all existing Steam copies can expect continued support. Neither company disclosed the terms of the deal, including how much Epic paid to acquire Psyonix.

epic keeps trying to ruin games for me.
am i the only one whos doesn't own a hard copy of fluent python
no
its in the current humble bundle. i don't own a copy yet, either. yet. π
@sand goblet so if we all get rocket league now, we should be fine?
The PC gaming
I just got
- automate boring stuff
- math w/ python
- code cracking w/ python
- python playground
In the $15 humble bundle
I got them all and shipped them to my friend.
Plus like 5 more books
He doesn't have the digital money to get them, so I decided to spot him on it.
he doesnt have 1$
Nice
i want the 15$ bundle
Probs no credit/debit card?
No debit card, but a savings account.
ohh he's a minor gotcha
No, not a minor.
so in the physical world he only uses cash to buy things?
IIRC, yeah. I don't know enough about his financials, though.
interesting
maybe he built his credit up already
Β―_(γ)_/Β―
Β―_(γ)_/Β―
Β―_(γ)_/Β―
In regards to the article linked earlier about the epic store hijacking Rocket League from Steam. I was about to blow 60 euro on Anno 1800 - Then they removed it off of steam. Now I won't even bother looking it up even if on sale. Exclusive titles can kindly fuck off and go back to being a console thing imho. π
I got Anno 12 minutes before they removed it
Having providers that had a lot was nice for a while, but with more streaming services entering the market as well as gaming platforms, that's probably going to be a thing of the past soon.
Competition is good and I don't mind store exclusives
But I don't like when games that are already available become exclusives
And I don't like epic store, it's not well made and a touch insecure
I'm not sure if exclusivity really works well when it comes to competition
We'll see how the streaming market evolves, but I'm not sure it'll be beneficial for us consumers
it most certainly is not
Before long, we'll need 100+ euros packages (think cable providers) for different streaming providers because all 10 of them have small fragments of the market
exclusivity is by design not customer beneficial
I don't think it makes a huge difference on PC
The price still has to be competitive or sales will be bad
In this case, epic is also putting pressure on valve
I don't think valve will do anything
Even if epic said they'd stop doing exclusives if valve lowered their cut
I guess the gaming business is different, because you're not buying all-inclusive package deals
You can buy a couple of games on steam and epic
On console, that is kind of a thing
Yes
It does exist on PC too
But that's on like origin and the humble store
Oh, and PS live thing
Those are still not subscription-type stores, right? Not too familiar with them, but you still buy single games or bundles of games?
And soon we'll have stadia and the xbox service
They're all subscription style
But aside from humble, you immediately get access to a ton of games
I think sony's model is the most interesting
Because if you have a fast enough connection you don't need a PS4 to play PS4 games
do steam keys bought before a game becomes unbuyable on steam work?
if so then there could be people stockpiling rocket league keys, selling them for a markup
i cant see them cancelling keys without causing a massive shitstorm
this whole thing is just a giant can of worms
this happens, there are websites that live on this practice and ignoring that you are not allowed to resell the keys
That's what I meant, eivl
but for the unbuyable part, you have to have it in your lib before it gets pulled
oh. yeah i might have missread it π
And yeah g2a, the shadiest site ever, is probably full of those keys now
God I hate g2a
i also. but I did not want to be the first to name them
It's worth naming them to point out how shitty they are tbh
I feel bad for streamers that take G2A deals, because g2a has really good marketing people
