#ot1-perplexing-regexing
1 messages · Page 202 of 1
Try probing the signal pin just for voltage when the servo is supposed to drive
signal to GND?
Yeah
rip
short didn't go through the pi so I would suspect it would be ok.
ok
you probably shorted rail to rail
is that ok?
sounds like what happened is the 5v came from the USB, to your probes, and back down into the USB GND
okay i get very little voltage without the script running
let me try with the script
lol its hard without a third hand
no voltage
Sounds like the PWM might not be working in the script
import RPi.GPIO as IO
import time
pinOut = 4
IO.setwarnings(False)
IO.setmode (IO.BCM)
IO.setup(pinOut,IO.OUT)
p = IO.PWM(pinOut,50)
def openFeeder():
print('open feeder')
p.start(2.5)
p.ChangeDutyCycle(7.5)
time.sleep(0.75)
p.ChangeDutyCycle(2.5)
time.sleep(0.5)```
And do you have it running so that it does print "open feeder"?
I mean, are you just running that exact script, as it appears in discord?
yes
Oh - that will never do anything
oh lol
The author wrote a different portion as a web service that actually calls the openFeeder function, that script, as it is, doesn't actually call it
well im planning on having the web service too
Looks like their link 404s
but he said run that script to make sure it works
oh
i bought all the stuff....
what do i do
Yeah ok, just add this line to the end of the script python openFeeder()
ok
that will call the function once
did it print "open feeder" where you ran the script this time?
yeah, no indent
k now you just have to make sure the servo is wired correctly and the pins are right
😻
like twitching?
yes
hm, I don't know how to prevent that
oh and what do i do about the dead link
I have some Pis and servos lying around that I'm going to have to mess around with now
model airplane servos...
try emailing the author
could i use web.archive.com
dead link is http://ogem.co/automatic-pet-feeder so wherever you can find that
okay thanks!
google cache had it
looks like it was just a link to their github gist anyway, which is up here https://gist.github.com/oscarmorrison
@tiny fiber what's it you working on?
automatic cat feeder
Lmao wth
what?
What is a cat feeder ?
you wanted a cow feeder?
😂
it feeds my cat at 4:00 AM so it doesnt bother me
Is it for a robot ?
raspberry pi and servo
google home pi
Can I see your github
yea, but i dont put stuff on it very much
Agh
Discord bots, node js programs
Webserver
My internet is kinda slow.. ignore the fact that messages are sent twice
😂
I deleted em
hes from incredibles 1. hes the teacher
Oh yeah
@crisp sierra when i run the code i get a boatload of errors
You need to run it as a Flask app, like with Flask installed and stuff
ill quicky show you the errors
Traceback (most recent call last):
File "/usr/bin/flask", line 11, in <module>
load_entry_point('Flask==0.12.1', 'console_scripts', 'flask')()
File "/usr/lib/python3/dist-packages/flask/cli.py", line 513, in main
cli.main(args=args, prog_name=name)
File "/usr/lib/python3/dist-packages/flask/cli.py", line 380, in main
return AppGroup.main(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args[1:], **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/flask/cli.py", line 423, in run_command
app = DispatchingApp(info.load_app, use_eager_loading=eager_loading)
File "/usr/lib/python3/dist-packages/flask/cli.py", line 152, in init
self._load_unlocked()
File "/usr/lib/python3/dist-packages/flask/cli.py", line 176, in _load_unlocked
self._app = rv = self.loader()
File "/usr/lib/python3/dist-packages/flask/cli.py", line 237, in load_app
rv = locate_app(self.app_import_path)
File "/usr/lib/python3/dist-packages/flask/cli.py", line 90, in locate_app
import(module)
File "/home/pi/Desktop/Cat.py", line 17
return jsonify(response='feeding the kitty '+str(time))
^
SyntaxError: 'return' outside function
you can actually move to a #help channel now since this is an actual python problem
k
and post Cat.py to http://paste.pydis.com/
@rough sapphire Talking about stuff you don't know about will never get you anywhere

there are bunch of lists of easiest program language. and python is always number one. just stfu
(he's muted now, sorry)
(hopefully tomorrow he can provide some more insightful input)
Is this a common occurance?
not by any means, no. Rain's just appeared today, and his demeanor is not one that we see frequently. if he'd like to make reasonable contributions to the community when he's unmuted we'd love to have him, if not he's probably not going to be here much longer
fair enough.
oh I stand corrected he's been here a couple, it was just today that we had some disagreements on what help channels ought to be used for
Yeah, flicking through the channels, I saw the comments...
he left
Lol
who even uses rust
i'm offended
me and the 2 other guys at mozilla use rust extensively
@prisma gust alright so far, about to do some more work
what about you
@prisma gust cool so far. I'm at a tech event and they have free WiFi and food here
Your pfp freaks me out sometimes lol

Lol
No
But it's free(WiFi + food)
👌
Cool beans: https://www.youtube.com/watch?v=nghuHvKLhJA
In this Python Programming Tutorial, we will be learning how to use f-strings to format strings. F-strings are new to Python3.6+ and are extremely useful onc...
fstrings great
oh boy...
having to pay for the mode that doesn't rape your retinas
i think it's time for a CSS injector
everyone did fine without dark themes since day 1 of the internet 😛 youll be fine if u dont wanna let the devs eat
not just asking for a pay model for actual features
people who ask for $ for a feature on the color scheme are just asking for a css injector, like stylish
what do you recommend?
vivaldi is my preference
it's like opera before opera was shit
also some nice features
I think it's well known that pretty much any browser extension will stead your data haha
also 'slurpage' is certainly an interesting term
Can you use ublock / privacy badger / etc on these other browsers
ah cool
it's built on the chrome engine iirc
Most things are these days
Except with VSCode
yeah, VSCode is p great
huh, might give vivaldi a go then
it's p cool
looks pretty alright
I use Vivaldi
i recommended it to @solar zealot and he likes it. i know a couple people who have been very happy with it
aw yeah joseph 👌
I just like my lights hehe
:P
ok if joseph uses it I'm in
:P
my entire room turns the same colour
right?
c:
Haha IDK if I want to know what % of my time I spend on Reddit
Oof
rip
stay strong
F
No of pants!
hi what did i do lmfao
Woah
hahaha
brilliant
I'm trying to think of ways to have a fancy gif avatar
this was one of them
it is not going well so far
@bleak lintel in the middle it kinda begins to look like Rags' avatar :o
haha :P
yup :D
holy moly
I think I may have generated something tolerable
am still awaiting animation generation to complete but
maybe it is a bit fast
maybe it should wait on the first frame for a second
yes
but it is certainly working like I want it to
Heat index hit 115F today gyn
hey @bleak lintel
I've got some time to stream that game if you are still interested in taking a look.
Oh sure, I'll be finishing up with this in a minute, ping me if you decide to go live
will do
next generation complete
I think you should slow it down and drop the last half of the frames
My phones data died for this 👌
That’s cool though
Ew
ew python
wait
snakes suck
my new avatar
N 👌 o 👌 d 👌 e 👌
look at it Jason ^-^
woah
I actually should use the version without the hackerman text
It would look cooler slowed down I think
^
I could slow it down but it would have a lower FPS and would be jumpy
I can try it though
You're forgetting Vdude
lmao
make a family tree 😏
don't forget Lord Greydude and Bytedude

half speed and more frames
welcome to distortion?
That’s a lot cooler in my expert opinion
what about this
5/7
Seems perfect.. Speed is okay and stuff
thank you jdude
@bleak lintel that's the best one
i have now updated my avatar everyone
Hahahahha
animated pfp's make my discord lag
good man
Upgrade from an ez bake oven as your pc then

@bleak lintel rename the bot Botdude
How has @bleak lintel not already claimed Jdude?
this dude meme is a mess and I will not partake in it.
lol
Wow.
really now 
It is
Only gotta put up a MLP pic
Correct.
lol
I hope I dont get femalish byt loving mlp
jason your avatar reminds me of something
here it is https://www.youtube.com/watch?v=krQAGILNrlQ
If you reminded me of my girlfriend I would immediately find a new girlfriend.
hmm
I don't know what kind of reaction you are aiming to achieve by doing this
Maybe something hilarious
for doing what...
Good good
lmao
@granite lake 👍 for using sunset shimmer, she's fucking awesome :D
Ywah
I think so
Also jealous you got Jdude before him
Now he is crying with his Emacs
I got changed
And yes I've had a girlfriend
I won't partake in your dude meme, I don't find it amusing.
You have also ruined the emacs meme by overusing it and now I find no humour in that.
I did not feel hurt by sharp asking if I had ever had a girlfriend, the answer is yes, I have and I do.
girls have cooties
they're icky
Grow up, kiddo
=[
I thought you were American
JasonJay
ouch 50/50 and you got the worst america
Oh right
At least it doesn't have trump
How do these off topic channels get such amazing names
And why are they using dashes instead of camelcase
or not camel case but the underscores
dunno
@bleak lintel Still around?
@trail crescent selected from a list of around 100 names every morning
@solar zealot I am indeed around but probably not for too much longer
oh it's low res enough :D
lol yeah
i like that youtube lets you scale down, unlike Twitch.
twitch makes my pc lag
weird
then again it doesn't surprise me, the twitch site is one of the biggest clusterfucks of technology in the consumer user space today.
their UI, their ethics (or lack thereof), their backend code, the frontend code.... it's just a colossal joke
lol exactly
i stopped really using twitch because the way the company behaves is really shitty
How so?
they do a number of scummy things
they have various ethic policies about streaming content and they let certain people slide because of the income that those people generate; and when other streamers point it out those people who parodied it / pointed it out get banned.
like logan paul and tiddy streamer shit get's okayed because mm $. but as soon as someone points out that that's a violation of TOS they ban those people.
very shady
and Alphabet isn't perfect but they're a lot less shitty. plus the web interface and backend (application) isn't complete garbage.
They ban the ppl that report it, or the streamers?
off the top of my head both?
Oh lol
i can think of streamers who have been
So they only ban money earners when they’re reported basically?
there's a particularly funny thing where this guy did a parody of tiddy streamers and one of them got super triggered by it and Twitch banned him.
they ban people who might shed light on their hypocrisy
basically
Yeah, from the stuff I've seen about them, it seems like they care more about money and growth than ethics
yup
there are also a lot of allegations that the twitch staff sleep with a lot of the titty streamers
basically the entire twitch staff is, allegedly, early 20s men
lot of corruption and stuff
Lol. Wut
So they're basically Uber
But not really
This is a different kind of fucked up
Though of course it depends what the allegations are based on
People start BS rumors all the time for the lulz
but there definitely is a lot of unjust banning
so I stopped using them
also youtube streaming for whatever reason performs much better for more people
it's because Alphabet knows what it's doing and it behaves like adults 👍
:P
well that's good :D
c:
How do u do it?
aren't pointers just variables. you specify it's a pointer of a type in the args
like
void foo(int *bar, int bluck){
*bar = *bar+bluck;
}
C has managed memory unlike python or java or C# or ..... so on
it will dereference it, so it gets the value at the memory address of bar
so you're assigning the value stored at the bar address to that value plus bluck
pointers are like boxes
the memory location is the box
I feel that metaphor breaks down when you talk about pointers to pointers
the pointer is an arrow pointing at box (the origin of the arrow is in another box)
or all the boxes just have numbers and the number of one of them is inside another one
pointers store the location of something, and you can use them to modify the contents at the location they "point" to
that's fair
it does break down after you have a pointer to a memory space that holds a pointer etc
imagine a book with 10,000 pages with 100 rows and 100 columns each, each containing two decimal digits
thats always how ive thought of it
pointers are a location
and you can use knowledge of the location to change what is at that location
a pointer is four of those cells, with a page number in the first two cells, a row number in the third cell, and a column number in the fourth cell
so a pointer to a pointer is a location of a location
which is why if you try to access something at a NULL pointer it throws an exception and dies :P
not always
welll
on the PDP-11 it was usually perfectly safe to access a null pointer
ok
depending on the memory model of the program it either pointed at an unused chunk of code, or a two-byte zero allocated specifically for that purpose
isn't there an isdigit function in ctype.h?
i guess my point was that generally speaking trying access something out of your memory bounds, that belongs to the system, like address 0, will cause the program to crash
there should be
its only for a single character but you can expand it for your strings
is this for a homework assignment?
theres a lot of overlap
in C you just have to do more boilerplate stuff
I actually like C a lot though
and once you get going with C
you can start playing with the ctypes module in python
cython 👌
mm
i mean you can do stuff dynamically in C
it's just....
more complicated
and has some limitations
but like in the C/C++/C# world you can dynamically load libraries and stuff
yeah you can do that
@rough sapphire any chance u know how to dynamically inherit classes without explicitly naming them? Was trying to do this ages ago and arrived at a hacky solution
i've totally done that in C#, and you can do that in C++
that sounds like unpredictable behavior
.....
yup
can you put definitions in lists?
that seems really hacky
@rough sapphire to be clear, the class to inherit from is chosen at point of definition
it won't change if l[1] changes
ok just making sure because it's not clear what that code is trying to accomplish
Rn it gets all the classes from all the modules in a directory, writes its own python script, and imports the script...
Oh I didn’t scroll
Known = type('Known', (Unknown2,), {})
for dynamic class generation
type(name, bases, namespace)
Ok but I wanna inherit it after the class instance has been created...
Is that possible?
no
:/
you could use base merging to make the new class
I think they mean add inheritance after creation
like
add inheritance
you could make a new class that inherits from both
yes
do something like
NewClass = type('NewClass', (NewInheritance, OldClass), {})
class NewClass(NewInheritance, OldClass): pass
type(name, bases, namepsace) is literally what
no need to complicate things so much
I really need to be on pc for this discussion :/
well technically the class statement calls __build_class__
type is the default metaclass, so yes it uses type
Any chance u guys will still be up in 7h?
>>> class A:
... pass
...
>>> type(A)
<class 'type'>
Ok I have to go cuz I have a tennis lesson at 9am and it’s 3:20am
@solar zealot any chance u remember ages ago when I was trying to do this?
goodnight (and good luck with that <6 hours of sleep)
@sullen thorn it rings a bell but not with any sort of clarity
blackhole? x-jokes?
in what linux distribution
no it ain't
it might be in arch but not ubuntu
oh it's just xjokes
yeah, a lot of screensavers do the same kind of thing
it seems like the effect would work better if it were slower
maybe it was written back when computers were slower

What helper do you use?
pikaur
huh, I don't know that one
It's basically a slightly more verbose pacaur
I hope I don't have to run the test suite for these packages again
yep, I do
whee 6000 tests
that worked @cosmic quiver, thanks
That took 5 hours last time I did it
haha wow
r/thinlyveiledadvertising
i found this on reddit
Man, why isn't there a fast, lightweight, immersive, Augmented Reality gaming headset that costs less than $250?
Too many questions
This guy's solving none of my problems
old
hey why isn't there a fast, lightweight, submersive, Augmented Reality scuba diver head gear that costs less than $250?

linux is also 26 years old and it's amazing
Speaking of fast, lightweight, submersive, Augmented reality sucba diver head gears
so not sure what you're tryna say with "old"
I age 26 years for breakfast
I've always wondered why no one has made a fast, lightweight, subversive, augmented reality riot head set for smashing the state
for less than $250
yeah dude that's fucked up
I've always wondered why no one has wondered why no one has wondered why no one has made a fast, lightweight, recursive, augmented reality head set for less than $250
Totes
i've always wondered what augmented means
to put it simply, modified
yeah, i've always wondered why
You can't directly convert currency like that
teach me how money works
Well, for example, I make in a month what an average romaniam might make in 1 and 1/2 months
but your cost of living might be far lower than mine
"purchasing power", is the phrase
so do i must have to buy thanos to convert maney?
it's just to take things with a pinch of salt where comparing different economies
a really easy way to do it is to use the Big Mac index
since Big Macs use the same ingredients across the world, the only difference in cost is stuff going on in each local economy right?
at least that's the theory
that's.... not how economics works
I mean yes, for currency exchange you could do that
but then saying a reality headset costs 310RON
ignores the economics
what is economics
nvm
i am gonna be rich af
legally
i already make 450 rons per day scanning some web apps
my paypal is full
if i had a credit card my wallet would be full too
funny, i have cards so my wallet doesn't get full
lol that sounds depressingly sad
Why? Carrying around cash is a pain.
Wallet? Cards? Nah, use Apple Pay
Not all of us can afford to be hipster trash Jo
Thank you bisk, very cool
I mean
😎
Give me a iphone X
Thank you bisk, very cool
Give me an iPhone X and I'll sell it and use the money to idk, buy a new laptop or smth
Maybe I'll just spend it on fancy food and booze
You don't know me, I'm a rebel.
Smash the state ✊
Thinkpad
jophy i think ur pfpic is broken
what
@sand goblet I took your advice after some thought and resigned as manager
For that server
Thanks

What server dis
Cool and good
Yeah ig
interested
wassup, fellow dude?
It's sweet over here
Just some really good stuff happening
Meeting people interested in same stuff as me and so on
👌
oh god another 45 minutes of this bullshit
Doing actual work would be easier than this level of trying to look busy
lol
hmmmm
time to pointlessly shred some documents while i sip unneeded coffee
that'll kill 12 minutes
@gentle moss no stop shredding them, instead rebuild the ones you shreddered last time
First 180 words about my "study and job orientation written"
5*180 remaining
yay
correction
6*180
😮
i fkin hate this
like it is support to help me but i already neared down to 3 things what i want to do
and it cant help me with that because it isnt that specific
like wtf is this
why do i have to do this
this is going to be the biggest waste of paper i have ever commited
and thats saying something
in other news i just realized i can type english faster than german
lol
I might try write a compression algorithm
no
Yes
no
Yes
I will write jzip
lol
no
Yes
Because?
sephs compression algoirhtm
Sca is already a file format though
For
compression algorithm of the seph
That's a bit long for a file extension
give me an idea then
yeah sounds about right for you
Thanks
Also I already named some or at least one of your projects
Be creative and original yourself
no
Yes
help an organiser of the exchange trip made a facebook page and this is the first thing posted to it
I regret this
lol
@tired osprey
write it all up
bring a shredder in when you go to hand it in
and then just feed it in page by page while looking at your teacher
tell them you learned that move from a pro.
👌
holy shit, i think the rain might be happening
:OOOOOO
my lawn is saved \o/
is that Left Shark @lone otter ?
yes
reppin dat left shark based
I saw a wiki edit from the U.S. House of Representatives the other day
where someone REMOVED left shark from the superbowl credits
oh shit this rain is getting real
getting some flashy flashy boom booms now
@gentle moss sounds like a good plan, but im getting a grade on this bs
😮
yeah
ouch
Guys how do companies generate unique non sequential userids in a way where they can be sure they haven’t issued the same one twice?
Oh is that what the snowflake thing is 😂😂
some use sequentially generated user ids
Do u have like a link for how to do snowflakes?
that is the swift code right?
No that’s the python code i think
that... isn't python
oh
that is a python 2 library lol
loks more promising https://github.com/SawdustSoftware/simpleflake
Idk I think the other one was simpler 😂
🤔
@granite lake i would have your avatar right now if i didn't have some of my family on discord >.>
does G know?
know what?
that you'd have that same avatar?
probably
good morning
fuck you Sky
look at this bad boy
Looks broken
so do you
rude
Hi
hiya
''.join([chr(x)for x in range(sum(b'..lol!!')//(sum(b'()')-sum(b'&&')),sum(b'hello world!!0')//(sum(b';$')-sum(b'&/')))])```
We use a discord bot which sends statistics to our stats server, which forwards them to datadog, where we graph them
I'm getting a bit disillusioned with datadog
and pydis will have to move away from it anyway
at least partially
Yeah
Does that mean we are going to have a new system for stats which is actually accessible by people like nix to make predictions about user growth because he is bored?
Probably not, I'm more worried about logging
Sad
i was using kairosdb / grafana a while back for pretty graphs, just wondered it there was a better solution
Sadly datadog won't let us buy logging separately, you have to also subscribe to infrastructure
I dunno dude, not my area
I mean, their logging is dirt cheap
What they provide for 2 euro/mo other companies provide for 60-300 euro/mo
But we would also have to add infrastructure for 30/mo
We don't need that service
So, again: that's a dumb business model lol
Why force users to spend 32$ when you only want the 2$ product?
I wish I had a good idea on how to fund this stuff for us lol
Spose it's worth a look
and patreon rewards as roles
Keep a silent patreon role on the server which will allow you to both fund projects on the server as well as "reward users"
Considering the amount of people who actually read #welcome the majority won't even know that it exists lol
since you're trying to keep it professional.
Even if they don't know about it
A lot of people do read it, or they read the DM they get on verification
It's better than nothing.
Yeah, I was one of the people that helped with that
One of their guys is on the API server
ahhhh sweet
patreon is one of the quickest ways of doing it, with a monthly income then to put towards server hosting etc, and an easy way for patreons to get some recognition for helping support, and roles can be just for vanity reasons
@sand goblet so can Patreon sync the roles automatically?
I'm making a discord mmo game
The tools in the gamemode are going to be named after IDE's and editors
Any name ideas?
(Medical style please)
mu
ScITE
spyder
Jupyter
😏
leafpad
cat
:^)
:^)
is :^) a editor ?
don't give me ideas
Im asking
He should have enough
stupidity is why my hostname is wubalubadubdub thanks to your boy @bleak lintel
no problem
yes, you are
how is your cli background blue tho?
my desktop is better
your desktop is probably windows vista home premium
lmao
wanna see it?
lol
windows 95 probably
Gdude uses kde
...
If I recall correctly
I might consider swicthing
i usually have discord/firefox in the second workspace though
you can open literally everything you usually can
there's nothing different
except it's minimal and tiled
So it comes with office installed ?
what
arch
haha
no.
arch comes with _____ installed.
fill in the blanks with the following strings:
"fuck all"
no, you have to install it with pacstrap first :P
a kernel comes with arch 
to be honest
buy the linux kernel and get a free arch for only $25
i wonder where pacstrap fucks off to once arch is installed
it stays on the archiso
the arch iso is arch with things that are not on arch
so one could say
arch literally comes with nothing
like
nothing
lol
why doesn't it just come with pacman instead
what if you want an arch system without pacman
:^)
is there a maximum hostname size?
hmm
if not, i want to make my hostname 1MB of /dev/urandom for the shits
let me check through linux
#define MAXHOSTNAMELEN 64 /* max length of hostname */
sorry @tulip palm
aww
i do stupid shit on my personal computer that i really should do in a VM but i don't
oof
like breaking a 512GB swapfile while it's in use

i've been bugged by this for ages now,
when you plug a new mouse (or something) into a computer
how does it get the drivers for it?
hm, i see
or you need to install them via the package manager and reconfigure it (e.g. for btrfs stuff)
a mouse should be generic enough to not need specialized new drivers, such stuff would already be available
also: drivers != GUI to configure the device
a driver should just get the thing going
also please rice your i3 mate @tulip palm :>
'DROPTABLE;
nice try
@tulip palm wew those are 🅱ig gaps
they are big gaps
i like big gaps
@rough sapphire can't really be bothered, i don't know what to do with it lmao
atleast remove the bar from each window at the top
Welcome to the finale of my series on the i3 Window Manager. In this final screencast, I'll teach you how to rice your desktop. "What does 'rice' mean?", you...
