#voice-chat-text-0
1 messages Β· Page 121 of 1
I think you might have to accept that this is something you won't be able to do with the type system.
overloads are only hints unless you do some black magic
match arg:
case 'A':
...
case str() | 'B':
...
brb
they are ordered so they can overlap
I think
first matched is what typesystem will take, ig
@pulsar island
maybe enums?
https://docs.djangoproject.com/en/4.2/ref/models/fields/#enumeration-types
there's match if you have py 3.10+
Python Enhancement Proposals (PEPs)
apparently, engineering job actually requires engineering, i.e. solving design problems not just applying existing tools
sounds like that should be a paid internship/contract not an interview
that's why you have microservices
autonomy both in development and deployment
it comes from thoughts like "let's put all people know DataBases in one team"
which doesn't turn out good if taken literally or to an extreme
Hi i can't hear why??
You're deafened
on a phone it might be more difficult to toggle
I live in fear of the day we have a .chatgpt integration
.uwugpt, LP special
.uwu Just passing the output of ChatGPT to .uwu pipeline
just passing the output of chatgpt t-to .uwu p-pipewine
LP was suggesting making .uwu AI-based
in some sense, programming is an action of explaining what to do
with varying degrees of declarativity
I think to "understand" something is just to have a general model of it.
AI has no fundamental restrictions against understanding
I like how the AI acts stoned until I ask about literally anything technical, and then suddenly the entire personality evaporates.
as for practical, quite a lot
main one being "understanding" by the model isn't yet useful
yes, enums are appropriate for stuff like A or B or C or ...
if "understanding" helps the model do whatever we asked it for, there's nothing reliably stopping it from
...
there are reasons why captchas aren't solved by AIs
one being:
if you're making an AI to solve captcha, you're probably either working towards improving captchas or you're working against it (as in ToS violation type stuff)
Has anybody ever heard of mid journey?
Big time!!
I have a friend using Ai to write all his blog articles with preselected keywords (SEO)
sounds like active vandalism towards blog writing
@midnight agate if this can be explained to GPT;
though right now I doubt I can explain it to a human with my current level of knowledge;
I think I should just write a proper learning course and only then try to feed it to the AI
I missed the fun part, I guess
@midnight agate Just gotta let you know that your speaking voice is fucking amazing lmao
@midnight agate seems like, it finally learned that comments are not something to overuse?
@midnight agate you just sound cool man.
making a course sounds fun
πΆοΈ
tests taking too much time
I'm too used to seeing 0.00s because most of the tests don't deal with 1000+ iterations
I know I shouldn't have that much compute heavy tests
will fix later
class Battery(models.TextChoices):
status = models.CharField(default="")
level = models.IntField(default=0)
@property
def status(self):
if self.level =>85
return self.status("Green")
elif self.level 55<=>85
return self.status("Yellow")
elseif self.level <55
return self.status("Red")
it doesn't parse
if level >= 85:
return ...
elif level >= 55:
return ...
else:
return ...
or match
Hi guys
but in python it'll be uglier
sadly
match level:
case int() if 85 <= level:
return ...
case int() if 55 <= level < 85:
return ...
case int() if level < 55:
return ...
case _:
raise ValueError("invalid level value") # panic!
3.10 is enough
it's python anyway
Django doesn't use a custom language
for execution
unlike Flask
Flask can't async
"fixed"
TDD or just unit tests?
there is TDD as red-green-refactor cycle
with smallest steps possible
there's a generalisation which is just writing tests first
TDD says you can't write two failing tests until you make one of them pass
which is unrealistic, I'd say
TDD works for small and simple things like algorithms and data structures
or something, for which the tests are obvious
@north yew What is that sausage mixed with lamb and beef maybe?? They're like these spicy burgers??
more like a burger
No, I had a Serbian friend and they made these burgers that you could only get in Serbia. im just trying to figure out what they were lol.
Pljeskavica
I can't really apply TDD to what I do right now because the project relies on the type system rather than the data validation
translating code to implement data structures on top of a distributed storage from Python into Rust
so, like, asynchronous trees, list, etc.
I'm writing in a very Haskell-like style
the big advantage from using Rust is that I can implement both for sync and for async, and for any other
not that
like
yes
how hard Rust is to learn depends on what you apply it to
for functional programming, it's easy
for systems programming, it's easy
suppose you have this
def stack_length(stack: Stack | None) -> int:
if stack is None:
return 0
else:
return 1 + stack_length(stack.rest)
async_stack_length: Callable[[Awaitable[AsyncStack] | None], Awaitable[int]]
async def async_stack_length(stack: Awaitable[AsyncStack] | None) -> int:
if stack is None:
return 0
else:
return 1 + await async_stack_length((await stack).rest)
but what if instead you could just do
def t_stack_length(t_stack: T[TStack] | None, t: Type[T]) -> T[int]:
if t_stack is None:
return t.pure(0)
else:
return (
t_stack
.map(lambda stack: stack.rest)
.bind(t_stack_length)
.map(lambda length: length + 1)
)
where T could represent either sync or async
[8, 6, 4, 4, 9, 5, 2, 9, 6, 1, 5, 10, 2, 10, 7, 3, 3, 8, 1, 7]
[8, 6, 4, 4, 9, 5, 2, 9, 6, 1, 5, 10, 2, 10, 7, 3, 3, 8, 1, 7]
['β', 'β', 'β', 'β', 'β', 'β', 'β', 'β', 'β', 'β', 'β', 'β', 'β', 'β', 'β', 'β', 'β', 'β', 'β', 'β']
when i use pyautogui, it says that "AttributeError: partially initialized module 'pyautogui' has no attribute 'moveTo' (most likely due to a circular import)" any idea on what this is?
what python version?
I think this invite is white-listed
https://discord.gg/rust-lang-community
what OS are you running it on?
it's local, right? (not something like replit)
what version of pyautogui are you using?
i dont know, how can i find that?
shown in pip freeze
Settings/local.py line 23
SECRET_KEY = 'django-insecure-okc1n%x5k8_=a_dag$75a55g_#rpg&**^76x5mu@fp^xsxxqs&'```
oof
@pulsar island that's motivating. You have no idea how much I needed to hear that x)
Effort *
I'm here, I was just considering switching careers as I'm struggling with a leak x)
As in a memory leak, I'm coding with C.
It's the language I use the most yes.
Hahahaha
It's brutal.
Yup, that's what's happening rn
It's part of a school program. I literally have to recode Wolfenstein in C. (That's the very first fps game ever made)
They do hate us
I'm using pure c. No game engines no nothing.
T-T
the only thing i'm allowed to use is a graphic library
a very bad one called mlx
You too!
Good luck for your interview
You got this!
My progress for the wolfenstein game x)
Still have a long way to go x)
yup
I agree
Hahahaha
Wow
That's overwhelming
And for like viego they would have to customize it's ult for every other existing champion
that's crazzy
That
That must be such a stressful job
no way
NO WAY
I thought they got paid very well
yikes
damn
Ive read about the drama going on with riot
I don't want to do gaming x)
Eventually I would like to switch to AI
Smart
You too!
Sure thing
Hey! @midnight agate
Hahaha
Did you get your coffee?
Cool music
Hey! @somber heath
Well, in the grand scheme of it all we're all just behaving according to the chemicals in our brains.
so judging normally is very illogical
I'm here
@sick harbor π
why is the 2nd edition expensive???
@somber heath Join us in Voice Chat-O
Um Yeah
Just having a little problem here
To do with...?
Amazon book prices are generally a mess because of their algorithm
Sir,can you help me with installing the python plugin for InteliJ IDEA
IDE
That's not something I'm familiar with.
google?
Panic.
in the disco
it's a pile of sh**
I'm about to pee in my pants
all you're basically doing here is asking others to Google it for you
More than I needed to know, but you do you.
are you f***kin kidding me
so what we would do is google it
I know
but then you might as well google it yourself
do it myself!
okay
letz see
third result
"python | intellij idea documentation"
you could also google how to install plugin in intellij
presumably you install other plugins the same way as the python plugin
see
install plugins
need to install the base intepreter
what does it say
well, then do that
teaches how to install plugins
which is what you want, isn't it
then what do you want
this is the problem
so your question here was actually "can you help me configure the python interpreter in the python module for intelllij"
somewhat similar to that
have you tried googling that
em no
"configure interpreter python plugin intellij"
it's up to you
yeah I know
but you can run into similar issues anywhere
fixing them is something you're going to have to learn if you keep programming
and this is a perfect example
narrow down the issue, google it for steps to try
try those
narrow down the issue further
until you have a working solution
Keep asking questions, though. But yes, it does do to look up instructions first, try to follow them, then, if you're still having trouble, ask for help.
just a newbie
okay
I follow you advice becuz you're an adult
fyi googling this gave the following as the top result:
https://www.jetbrains.com/help/idea/configuring-local-python-interpreters.html
which is exactly what you seem to be trying to do
People are going to be more amendable to helping if you demonstrate that you've tried and just got stuck. π
kinda yeah
Never seen this before. Kind of neat
Still looking into Elm (because I'm a glutton for punishment), and found a couple games (albeit simple ones) in the language: https://github.com/MartinSnyder/elm-snake/blob/master/src/Snake.elm
Try out Elm: A delightful language with friendly error messages, great performance, small assets, and no runtime exceptions.
it might be ugly sometimes but it's consistent
view : Model -> Html Msg
view model =
div []
[ button [ onClick Decrement ] [ text "-" ]
, div [] [ text (String.fromInt model) ]
, button [ onClick Increment ] [ text "+" ]
]
type Msg
= Increment
| Decrement
update : Msg -> Model -> Model
update msg model =
case msg of
Increment ->
model + 1
Decrement ->
model - 1
I wonder if rustfmt can be configured to format like that
{ ...
; ...
; ...
}
until I have an automated tool to format Rust like this, I'm not using it
You can possibly customize it?
Elm has a formatter that comes with it
So it can do it for you if you hate writing the style
fork it rather
It is an intentional design choice that there are no configuration options for gofmt. The benefit of eliminating bike shed discussion about formatting choices is considered to be more important than the cost of not permitting people to use their preferred style. The usual saying is that gofmt isn't anybody's preferred style, but it's adequate for everybody.
The String Formatting Language in Python is a powerful way to tailor the display of strings and other data structures. This string formatting mini language works for f-strings and .format().
Take a look at some of these examples!
>>> my_num = 2134234523
>>> print(f"{my_num:,}")
2,134,234,523
>>> my_smaller_num = -30.0532234
>>> print(f"{my_smaller_num:=09.2f}")
-00030.05
>>> my_str = "Center me!"
>>> print(f"{my_str:-^20}")
-----Center me!-----
>>> repr_str = "Spam \t Ham"
>>> print(f"{repr_str!r}")
'Spam \t Ham'
Full Specification & Resources
String Formatting Mini Language Specification
pyformat.info
!zen one way
Errors should never pass silently.
π
there's % but it's deprecated
you should know how to read it and replace with modern methods but not how to write it
!zen be one
Now is better than never.
oml
This `model` record does not have a `pasword` field:
68| , viewInput "password" "Password" model.pasword Password
^^^^^^^
This is usually a typo. Here are the `model` fields that are most similar:
{ password : String
, name : String
, passwordAgain : String
}
So maybe pasword should be password?
erlang+haskell
I wonder if there's something actually usable of this sort for erlang's area of application
π
"there are two types of languages: functional and functioning"
3 minutes per year of downtime
at most
Erlang focuses on lightweight processes
How can we build large self-healing scalable systems?
In this talk I will outline the architectural principles needed for building scalable fault-tolerant systems. I'll talk about building systems from small isolated parallel components which communicate though well-defined protocols.
Programs will have errors in them and will fail so I'll tal...
"er(r)" vs "go"
"one is to think before doing, another is the opposite"
Erlang is dynamically typed
so, like:
you might get any data, you have to deal with it as appropriate as you can
reading through this because I realised I have stuff that might be useful to other people if written down
https://rust-lang.github.io/mdBook/guide/creating.html
Create book from markdown files. Like Gitbook but implemented in Rust
view : Model -> Html Msg
view model =
div []
[ viewInput "text" "Name" model.name Name
, viewInput "password" "Password" model.password Password
, viewInput "password" "Re-enter Password" model.passwordAgain PasswordAgain
, viewValidation model
]
viewInput : String -> String -> String -> (String -> msg) -> Html msg
viewInput t p v toMsg =
input [ type_ t, placeholder p, value v, onInput toMsg ] []
viewValidation : Model -> Html msg
viewValidation model =
if model.password == model.passwordAgain then
div [ style "color" "green" ] [ text "OK" ]
else
div [ style "color" "red" ] [ text "Passwords do not match!" ]
Anatomy of a book
course on implementing and using Monads in Rust
will be done in ~40 years, I guess
align everything, make automatic formatters unhappy
viewValidation model =
if model.password == model.passwordAgain
then div [ style "color" "green" ] [ text "OK" ]
else div [ style "color" "red" ] [ text "Passwords do not match!" ]
type Msg
= Name String
| Password String
| PasswordAgain String
update : Msg -> Model -> Model
update msg model =
case msg of
Name name ->
{ model | name = name }
Password password ->
{ model | password = password }
PasswordAgain password ->
{ model | passwordAgain = password }
if is actually just a specific case of pattern matching expression
github pages
if you want back-end, then just pay
"== should be either Equal or NotEqual enum not boolean"
match bool(condition):
case True:
...
case False:
...
match None:
case _ if condition:
...
case _:
...
match condition:
case c if c:
...
case _:
...
!e
match:
case _:
...
@vocal basin :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | match:
003 | ^
004 | SyntaxError: invalid syntax
needs None or object() not to error
__match_args__ or something
!e
match = catch = 5
match match:
case case:
print("what")
@uncut meteor :white_check_mark: Your 3.11 eval job has completed with return code 0.
5
!e
import keyword
print(keyword.softkwlist)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
['_', 'case', 'match']
!e
match = case = 5
match match:
case case: print("what")
@uncut meteor :white_check_mark: Your 3.11 eval job has completed with return code 0.
what
!e
match = catch = 5
match match:; case case: print("what")
@rugged root :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 3
002 | match match:; case case: print("what")
003 | ^
004 | SyntaxError: invalid syntax
!e
match = "what"
match match:
case case: print(case)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
what
She's being too gentle
@woeful wyvern you don't really need to update all three at the same time
if you have
library
library user
library user
install off of git
yes
yes
a specific commit also
this is what I do
with private repositories, you will have problems if you do Docker and stuff
I want to use a new feature of httpie. This feature is in the github repo https://github.com/jkbr/httpie but not in the release on the python package index https://pypi.python.org/pypi/httpie
How...
requirements.txt
your_library @ git+https://repository_site/username/your_library.git@65656b40c6971253284f34752ffc86a0d29902b3
this is what I use
I have no idea how to do this with a private repo and Dockerfile
have git configured via ENV
temporary ENV
and for transitive dependencies I have two options for each library:
library installs no commit-specific deps
library[full] installs everything it depends on
bottom comment
Language H is a proprietary, procedural programming language created by NCR based on COBOL. The first compiler was developed in August 1962 to run on the National-Elliott 405M and produce object code for the National-Elliott 803B. It is believed that the "H" stands for John C Harwell.
STERLING
UNOBTAINABLE
INADMISSIBLE
RADICES
SEEN-CHARACTER
OBEY
what would "FILING" keyword be used for
day2/main.cbl lines 1 to 4
IDENTIFICATION Division.
PROGRAM-ID. Aoc2022Day7Part2.
AUTHOR "GDWR"
DATE-WRITTEN "07-12-22"```
I don't question the purpose of "STERLING", it doesn't need one
let's revive language H
(again)
;compiler !epython book = input("what is your favorite book?: ") print(book) print("My name is {}, I'm {}".format("John",36))
print(f"My name is {name}, I'm {age}.")
are you a programmer? or engineer?@tender swallow
I think I should try using MongoDB at some point
I helped more people with it than I've written lines of my own MongoDB-related code (which is zero)
Ryan Dahl?
well ....i like to call myself a programmer....but i am not working or anything....soo yh i am getting there u can say
like, I know I should use motor if I ever use it in Python
That was the Dino I was thinking of
@tender swallowsame me too
but i am working on uk side projects of my own
cool mate
that is really cool
soo whtsup with this section....like is it for offtopic chats or wht ?
yeah
cool
pretty much you do can anything as long its not inappropriate
ig i have to complete my 50 msgs....to able to turn on my mic there....lol
i can't spell
"sock puppet" always reminds me of Bryan Cantrill doing OpenSolaris community impressions
https://www.youtube.com/watch?v=-zRN7XLCRhc&t=1767s
Fork Yeah! The Rise and Development of illumos
Bryan M. Cantrill, Joyent
In August 2010, illumos, a new OpenSolaris derivative, was born. While not at the time intended to be a fork, Oracle sealed the fate of illumos when it elected to close OpenSolaris: by choosing to cease its contributions, Oracle promoted illumos from a downstream reposit...
yup that is correct
lol.....i dont do inappropriate
soo yh ig i have lost the count....lol
should
i
type
things
this
way
to
no don't do that
lol...sry
@tender swallow Don't spam please 
sry bro...my bad
Spamming to meet any criteria will get you temporarily or permanently banned from voice, and potentially the community.
just keep typing like the way you were earlier
at some point I should revive the meme page I had with Oracle-related memes
ohk roger tht......my bad....
yh ....roger tht
soo i suppose everyone here is probably programmers ...ryt ?
@vernal warren
SyntaxError: invalid decimal literal
103545 INFO: Matplotlib backend "svg": ignored
Traceback (most recent call last):
File "<string>", line 12, in <module>
File "C:\Users\Pc\AppData\Local\Programs\Python\Python310\lib\site-packages\matplotlib\backends\backend_svg.py", line 11, in <module>
import uuid
File "C:\Users\Pc\AppData\Local\Programs\Python\Python310\lib\site-packages\uuid.py", line 138
if not 0 <= time_low < 1<<32L:
^
SyntaxError: invalid decimal literal
103893 INFO: Matplotlib backend "template": ignored
Traceback (most recent call last):
File "<string>", line 12, in <module>
File "C:\Users\Pc\AppData\Local\Programs\Python\Python310\lib\site-packages\matplotlib\backends\backend_template.py", line 34, in <module>
from matplotlib.backend_bases import (
File "C:\Users\Pc\AppData\Local\Programs\Python\Python310\lib\site-packages\matplotlib\backend_bases.py", line 45, in <module>
from matplotlib import (
File "C:\Users\Pc\AppData\Local\Programs\Python\Python310\lib\site-packages\matplotlib\backend_tools.py", line 19, in <module>
import uuid
File "C:\Users\Pc\AppData\Local\Programs\Python\Python310\lib\site-packages\uuid.py", line 138
if not 0 <= time_low < 1<<32L:
^
SyntaxError: invalid decimal literal
>>> 1<<32L
File "<stdin>", line 1
1<<32L
^
SyntaxError: invalid decimal literal
please post your code
@glad sandal
if i wrote just import pandas and try to convert it to exe igot this
looks like py2?
looks like you installed uuid when you shouldn't have
pip uninstall uuid
@glad sandal Language H
ok i will try
let's create Language# H#
and introduce nullable STERLING
syntax:
STERLING????????????????
@terse needle how well moderated is that server?
I guess we could add it to the whitelist Β―_(γ)_/Β―
Not against it, just not sure how relevant it is
Quackages.
"just use illumos"
@woeful wyvern pip install -r requirements.txt
what are deploying on
this is how to specify a commit
just have setup.py
requirements.txt
py2sqlite @ git+https://github.com/antudic/py2sqlite.git```
you don't need to manually build a wheel out of it, pip will do it automatically
ooh thank you it's solved
if you pre-build the wheel you don't have to build it on every pip install
I think that involves having a package repository in one form or another, so can't "just install off of git"
haven't yet looked into if there's an easy way to do that for non-PyPI packages
(non-PyPI as in not hosted at PyPI)
Hunting for Switzerlandβs Hidden Mountain Fortresses
Exclusive! Grab the NordVPN deal βΌΒ https://nordvpn.com/johnnyharris Try it risk-free now with a 30-day money-back guarantee!
I went to Switzerland to hunt for bunkers, something Iβve been planning and dreaming about for years. The result wasnβt just a wild trip through the mountains. It was...
can't you put the wheel in the git repo?
sounds like an awful idea
unless used with LFS
"military-grade: cheap and simple enough to be used by military"
I have more or less the same view on it as this answer provides
I suspect the reason is that a wheel is basically a "compiled artifact", so you wouldn't usually find those committed into a git repository
https://stackoverflow.com/a/72487748
I wonder if usage with Git-LFS is sane in any capacity there
@glad sandal sΓ€po vill veta var du befinner dig
"Ooga booga poor people"
del is a keyword, not a function
You use it to "delete" variables, usually I only use it in lists/dicts
For example, instead of doing mylist.remove(mylist[index]) you can do del mylist[index]
I hate printers
I'll be on call in a bit
But I just have to let everyone know
I hate printers
fax
(written in C)
wnna play code clash?
no thx
thats cool
Cop a βThe More You Knowβ T-shirt!
Theyβre dope af!
β¬οΈβ¬οΈβ¬οΈβ¬οΈ
https://amzn.to/3dztn7g
Hemlock is now a single sound soundboard of "No"
if people use it instead of external ones, there's a benefit:
you can disable it
I'm totally for this becoming a de-facto monopoly on soundboards used by discord users
<? print $paginakop?>
what a clickbaity title
not to mention the very descriptive content
query($sql = "select * from tractorpullingwekerom_nl_paginas where itemby = '$paginaid' order by positie desc"); while ($row=mysqli_fetch_array($result)){ $itemfoto="images/noimgitem.jpg?curtime=".time()."'"; $id=$row["id"]; $titel=$row["titel"]; $filepage=$row["pagina"]; $fotopagina = str_replace("_"," ", $filepage); $selection = "tractorpullingwekerom_nl_afbeeldingen"; $result2=$db_init->query($sql = "select * from $selection where pagina='$id' and itemfoto='x' order by positie"); while ($row=mysqli_fetch_array($result2)){ $afbeeldingtitel=$row["titel"]; $itemfoto="images/".$fotopagina."-".$afbeeldingtitel."-item.jpg"; } print ""; print ""; } ?>
on the page
bye.
incorporating leap seconds reliably is unreasonable
they are unpredictable
too chaotic
panic! in the kernel
wth are these names
LX changed to L for a minute
another one on the "Australia's always on fire" topic
@somber heath https://en.wikipedia.org/wiki/Centralia_mine_fire
The Centralia mine fire is a coal-seam fire that has been burning in the labyrinth of abandoned coal mines underneath the borough of Centralia, Pennsylvania, United States, since at least May 27, 1962. Its original cause and start date are still a matter of debate. It is burning in underground coal mines at depths of up to 300 ft (90 m) over an ...
Burning Mountain, the common name for Mount Wingen, is a hill near Wingen, New South Wales, Australia, approximately 224 km (139 mi) north of Sydney just off the New England Highway. It takes its name from a smouldering coal seam running underground through the sandstone. Burning Mountain is contained within the Burning Mountain Nature Reserve, ...
6000 years old.
always look on the bright side of life~
Eric from the Monty Python film is singing at RSA
https://www.youtube.com/watch?v=Xo8g6yM0mVc
To see additional RSA Conference 2023 livestreamed content throughout the week, visit our Full Agenda here: https://www.rsaconference.com/usa/agenda/full-agenda
For more RSA Conference 2023 event information, visit our website at https://www.rsaconference.com/usa
!e
print(f"{.5:0%}")
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
50.000000%
my code sucks
!epython score = "you scored {:.0%}" # this line tells you the percentage! print(score.format(0.50)) # the format is displaying the number of the %
@faint raven :white_check_mark: Your 3.11 eval job has completed with return code 0.
you scored 50%
!epython print(f"{:.50%}")
@faint raven :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | print(f"{:.50%}")
003 | ^
004 | SyntaxError: f-string: expression required before ':'
@glad sandal commercial or closed-source?
Talking some kind of enterprise FOSS slack for admins?
if you want to forbid the second, go with GPL
I don't think charging for a open-source code is sane idea
have you seen the world we live in?
in "the world we live in" developers charge for support and closed-source extended features
yes, and people also charge for FOSS
then it's not FOSS
Pip install scrapy
whats foss?
syapo
umlaut
@vocal basin thank you friend
no, it's neither
so weird
go go VS Code
another funny thing is when your terminal starts to be 100 times slower
though the real fun starts when reloading doesn't help
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
to pay for open-source, you need your profit to depend on open-source
this # formatting is so cursed...
what has gone wrong there
TOML
I think it's just an error/typo
Create book from markdown files. Like Gitbook but implemented in Rust
hi
hello my friend
I can't work (hireability-wise) so I don't really have any option for now other than doing random quasi-open-source stuff
the more I hear stories like that, the more I lose faith in academia specifically and humanity generally
the best thing about the project I work on right now is that AIs have absolutely no clue how to make things like that
well, one of good things
Well now I'm curious
jobs:
test:
name: ${{ matrix.os }} / ${{ matrix.nsq-version }} / Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os:
- Ubuntu
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
nsq-version:
- "nsq-1.1.0.linux-amd64.go1.10.3"
- "nsq-1.2.0.linux-amd64.go1.12.9"
- "nsq-1.2.1.linux-amd64.go1.16.6"
include:
- os: Ubuntu
python-version: "3.12-dev"
nsq-version: "nsq-1.2.1.linux-amd64.go1.16.6"
there's too much specific and hard design choices which can't be solved generically
like, it requires actual thinking and domain-specific considerations almost everywhere
it's also in Rust, so AI is going to get so many things so much wrong
Discord should have an option to open any chat to the right, not what it has right now
technically there is a way:
pop out the stream
Hey, I'm in high school and I'd like to know what you would recommend me to look into if I want to get a job in programming. I know the basics of java and python. Thanks and sorry if my english is kinda bad, I'm from Germany
π
π
No no your English is just fine. For job stuff, I usually point folks to the #career-advice channel. They'd be able to guide you to job resources or advice than I could offer
unittests:
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11']
runs-on: ubuntu-latest
name: Unit tests, Python ${{ matrix.python-version }}
steps:
- name: Check out source repository
uses: actions/checkout@v2
- name: Set up Python environment
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install packages
run: python -m pip install .[test]
- name: Run unittests
run: python -m pytest tests
3.12 seems to not have rc yet
testing is not TDD
not all unit testing is TDD
just don't worry about TDD if it's not beneficial/fun/any good for you
but writing unit tests is quite useful and generally relatively simple, if done correctly
for game dev, extract as much as possible into unit testable parts
you can also add monitoring and validation for the system (the game)
@rugged root a test at a time not tests
that preferably should happen in production too
if that doesn't hinder the performance too much
go go Sphinx
3.5 is the oldest one I worked with
"so for my little world, 3.4 is prehistoric"
learn all three ways (asyncio, threading, multiprocessing) and more
and learn when to apply them
3.12 isn't rc
it's a
!user
Created: <t:1580002257:R>
Profile: @dense ibex
ID: 670802831678373908
Joined: <t:1609774606:R>
Roles: <@&267630620367257601>, <@&764245844798079016>, <@&764802720779337729>, <@&463658397560995840>, <@&897568414044938310>, <@&542431903886606399>
Messages: 13,842
Activity blocks: 3,487
Total: 4
Active: 0
Thx
these three aren't all what exists
at least, there are also actor models/message passing/etc.
!pypi build
for building there's caching
@dense ibex
if it's in docker build phase, this might help sometimes:
https://docs.docker.com/build/cache/
if the issue is that you have to "rebuild everything"
this sacrifices reliability for optimisation
what you're doing sounds like what you shouldn't be doing
adding dev container functionality on top is faster than installing stuff into a dev container
wdym "buster is old", it's only 2019
not as bad as having to use ubuntu 14
so, like, the way I use it (and what Rabbit was talking about earlier) is this not using base images
this
@lucid blade
there are some whitelisted servers
think discord wouldn't die... it't too big
too much lock-in rather than too big
and for privacy reasons I think it would be an improvement
hate the 50 messages requirement... I'd like to talk, but I'm missing that...
where is the devcon?
https://defcon.org/ this one?
YEH
already watched some ccc talks
do you have talks that I can watch wich are interesting?
like titles would be realy great
When we heard Hack All The Things, we took it as a challenge. So at DEF CON this year we're doing exactly that, we're hacking everything. We've taken all of our previous experience exploiting embedded devices and used it to bring you a presentation filled with more exploits than ever beforeβ’. This presentation will feature exploits for over 20 d...
why would you get into trouble?
understood π
can you tell me some channels in voice where to find good talks?
The real official channel of the chaos computer club, operated by the CCC VOC (https://c3voc.de)
!e ```python
score = "you scored {:.0%} on your drug test"
print(score.format(1.0))
i literally pass my brug test!```
@faint raven :white_check_mark: Your 3.11 eval job has completed with return code 0.
you scored 100% in your drug test
@worthy cypress π
hellooo @somber heath
@whole bear You good?
hey!
guys can you help me with a problem compiling my code?
actually it works in the ide, but not when i package it in an ee
exe
1 sec
headphones
auto-py-to-exe
im using that one
actually...
it runs , but many
maaaaaaaaaaaaaany times
it runs itself and never do anything
i mean it opens itself many times
and use a lot of memory
but does not do anything
i think i do
should i remove it?
its setted to 5000
what ?
oh yes
1 sec
The depth of the recursion stack
Yes that won't be enough if your function never reaches a point where it stops calling itself
!code
Can you show us the code where you have that function?
`
how?
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
I don't use Python to exe software, so I may be of limited help, but let's take a look.
tks
if lang == 'en':
for ent in doc.ents:
print(ent.text, ent.label_)
os.system("main2.exe")
else:
os.system("main2.exe")
Are you sure this piece of code is correct?
Because you're calling main2.exe anyways
The only difference is you're printing something
those programs are my translators
they are lready compyiled
then why it runs in the ide?
thanksss
but it does run in the ide
not i n the exe
yes it is
it is in the same folder
yes
yes i do
how can i solve?
im compiling it again
Itβs a much cleaner solution.
@feral valeπ
Yahoy.
I don't, no. #databases.
Okiedoke
@wintry mothπ
You can use ChatGPT if you don't care about the answer it gives you being right or not.
We're doomed.
I dotn have permission to speak idk why π
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
player_id | score | time_duration
Dm i need more time to talk
SELECT * FROM Attempts ORDER BY score, time_duration LIMIT 1;
I'm listening.
Mr. Hemlock comes here quite regularly.
About half an hour ago.
@rapid chasm
Yes.
@lost remnantπ
hii
Hemwok
Howlers.
"Ah, yes. A headache. Let's go stare into a screen."
Dogs roll in poo.
Washing your hands is a reasonable after-petting action.
True dat
You'll want to check the #voice-verification channel
That'll tell you what you need to know about the voice gate
That's fact
@rugged root isn't this awesome
=> (import functools)
=> (defn [functools.cache] fib [n]
... (match n
... 0 0
... 1 1
... _ (+ (fib (- n 1)) (fib (- n 2)))
... )
... )
=> (fib 100)
354224848179261915075
=>
I understand it, but I hate it
Define D drive.
But I think that's my irritation with prefix operators
they're the best part
I'm not a fan of the way decorators are implemented but i'm not sure how else they would do it
I think decorators are more suited to pythons syntax and really in hy we should be using macros
So in the case of:
because python decorators are very lisp macro inspired
(match n
0 0
1 1
...)
That's just saying if 0 then 0 and if 1 then 1?
yes
And since it's just the value it just returns it
it just evaluates whats on the right hand side if it matches the left hand side
and they are implicitly returned
Hold on
yes
Not following that
How do you mean?
if it matches 0 it evals 0 and returns it
Patreon to support this channel, Hi-res images or just for prompts: https://www.patreon.com/user?u=87233464
Instagram: https://www.instagram.com/demonflyingfox
Twitter: https://twitter.com/demonflyingfox
Made with and sponsored by @d-id
Studio.d-id.com
#ai #harrypotter #balenciaga
In another universe, Harry Potter and his Hogwarts friends are weight lifters not wizards.
@terse needle https://package.elm-lang.org/packages/elm/core/latest/Basics#Never For some reason this isn't clicking in my brain
(FastChatEnv) PS D:\Users\nasan\FastChat> python download-model.py anon8231489123/vicuna-13b-GPTQ-4bit-128g
Traceback (most recent call last):
File "D:\Users\nasan\FastChat\download-model.py", line 196, in <module>
links, sha256, is_lora = get_download_links_from_huggingface(model, branch)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Users\nasan\FastChat\download-model.py", line 130, in get_download_links_from_huggingface
fname = dict[i]['path']
~~~~^^^
Pastebin.pl is a website where you can store code/text online for a set period of time and share to anybody on earth
Yo.
sigh.. another script rebuild.. turns out building an async framework to run nonasync i/o requests speed things up a little bit.. offered a layered timeout for batch runs, but overal introduced some flakeyness.. so back to rewriting a refined processpool, threadpool version.. working ok so far..
mostly due to a subprocess call burried in the nonasync section.. it didnt like that, and trying to feather async to it didnt really seem functional or ideal
sadly the async packages for snmp arent session bound.. so it would hammering devices with a new session every request that are grouped.. walks, bulkgets are fine.. requires a lot of reprocessing.. but for testing they introduce a monkey wrench for what im doing
where as now i can keep a session alive while waiting on its turn in tests..
I once guessed a coin toss eleven times in a row. So for $20 a pop, I'd be $220 up on the deal.
We didn't try for twelve.
My friends started to get a little weirded out.
TypeError: sqlalchemy.sql.elements.TextClause.bindparams() argument after ** must be a mapping, not list

@dense ibexTeach them for extra credit.
@wintry beacon
Oh man. I just realised.
You know how they made the movie "A Dog's Purpose"?
A Cat's Purpose.
Alternatively, A Cat's Purrpose.
Lame
Yess! Next big hit!
What is a cat's purpose though?
Wow, in my last article I already showed you how to set up the Vicuna model on your local computer, but the results were not as good asβ¦
py -0p
(FastChatEnv) PS D:\Users\nasan\FastChat\repositories\GPTQ-for-LLaMa> py -0p
-
D:\venvs\FastChatEnv\Scripts\python.exe
-V:3.11 C:\Python311\python.exe
-V:3.10 D:\Users\nasan\anaconda3\python.exe
-V:3.9 C:\ProgramData\Anaconda3\python.exe
-V:ContinuumAnalytics/Anaconda39-64 C:\ProgramData\Anaconda3\python.exe
py -3.10 [other stuff you need to do]
(FastChatEnv) PS D:\Users\nasan\FastChat\repositories\GPTQ-for-LLaMa> python -V
Python 3.11.0
(FastChatEnv) PS D:\Users\nasan\FastChat\repositories\GPTQ-for-LLaMa> py -3.10 [other
stuff you need to do]
D:\Users\nasan\anaconda3\python.exe: can't open file 'D:\Users\nasan\FastChat\repositories\GPTQ-for-LLaMa\[other': [Errno 2] No such file or directory
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
"StOrAgE iS cHeAp..."
python setup_cuda.py install
'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8'
!stream 762972477479059489
β @safe pumice can now stream until <t:1682608966:f>.
A friend of mine keeps trying to get me to work on a quant trading project, but im too much of a noob.
Ilya Sutskever (Hebrew: ΧΧΧΧΧ Χ‘ΧΧ¦Χ§ΧΧ¨; born 1985/86) is an Israeli-Canadian computer scientist working in machine learning, who co-founded and serves as Chief Scientist of OpenAI.He has made several major contributions to the field of deep learning. He is the co-inventor, with Alex Krizhevsky and Geoffrey Hinton, of AlexNet, a convolutional neur...
Oh you should check out Freddy the robot π
This film shows Freddy the Robot assembling a toy car and boat from a pile of parts. Find out more about Freddy the robot developed in the 1970s at the University of Edinburgh here: https://www.nms.ac.uk/freddy
Planner demonstration video clips and Freddy-II robot footage from AIAI projects used with permission of Director of AIAI at the Univer...
It could assemble a toy car from parts scattered on a table.
This is back in the 1970s at my alma mater (University of Edinburgh): https://www.aiai.ed.ac.uk/project/freddy/
Speaker: Joshua Marpet
Facial Recognition sucks. But it's getting better. Big brother is watching, and he is interested in what you do, where you go, and who you talk to. Whether it's Deep Packet Inspection, or Facial Recognition, the idea of personalization as applied to privacy invasion is a fascinating and cogent issue.
Governments are ...
You can use a technique called "smoothing" for stuff outside the training data.
This is one approach: https://en.wikipedia.org/wiki/GoodβTuring_frequency_estimation
Although I think what Hemlock is talking about is giving the model agency to explore its environment.
if you get any weird output please post it here ... https://www.reddit.com/r/WTFAI/
A model-based agent acting in a partially observable environment has to make decisions about how best to gain information about that environment.
This is classic agent-based AI stuff π
The model we typically use for uncertain environments is something called a "Markov decision process" (MDP). So that's a term you could search for.
Anokhi, just wondering, what was your route into AI/ML?
You guys should look into drones and LiDAR. Theyβve been using LiDAR on drones recently to 3D scan areas to build 3d models. Thereβs been a few companies doing the cloud processing and using AI for things like maps.
I fly a cinelog 25
photoscan
Surveying is also a kind of a gated field, so itβs tough to sell LiDAR to avg consumers.
KD vector math.
Here is the latest AR4 robot: https://youtu.be/RckTj0h5LnE
https://www.anninrobotics.com/
All gear drive motors and drivers available at https://www.omc-stepperonline.com/?tracking=59c1139e8987b
Powered by Linode GPU Instances - Giving Scientists, artists, and engineers access to on-demand cloud GPUs for parallel processing workloads.
Visit https://linode.com/csf for $100 60-day credits.
Patreon: https://www.patreon.com/ctrl_shift_face
Twitter: https://twitter.com/ctrl_shift_face
FaceShiftLabs: https://www.patreon.com/faceshiftlabs
M...
I just miss in game trading, but it turns out that creates black market economies. The future sucks ππ
i still think gaming was 100x better in the 90s
Same!
Things that look like exponential growth often turn out to actually be logistic growth π
I tend to take the economic view, that new technology is essentially just improvements in efficiency, and those improvements eventually have diminishing returns.
theres DNA hard drives.
There's a scheme in London to use waste heat from the London Underground to heat buildings π
Ah we switched to a heat-pump based dryer recently, from gas powered.
Even in fairly low temperatures they can work reasonably well apparently.
Thermal camera?
Well all matter gives off radiation. The frequency of the radiation is proportional to the temperature.
We are little lamps.
need to increase my voltage
That's how you can detect heat using an infrared camera.
start using nokia 3310
Want ChatGPT query bot in Discord?
With the freeware O&O ShutUp10++, unwanted Windows 10 and 11 features can be disabled and the transfer of sensitive personal data onto Microsoft prevented.
Something I think would be cool is an AI powered tool for front-end testing. I.e. you give it an screenshot of a web page, and a textual description of features that should be present, and it tells you whether that is the case.
yo
Hi LX
@woeful wyvern π
@silver sluice I used to go to a MMA gym where the coach constantly made political jokes. It kind of felt the same.
I like political jokes, but I dont say them around people who are uncomfortable with them
(Im from the balkans, our politics are different btw)
My county is going to have its 5th election in the span of 2 years lol
SELECT missionId, score, totalTime FROM Session WHERE teamId=53 GROUP BY missionId ORDER BY score, totalTime;
When you group by, you need to aggregate the groups.
SELECT missionId, score, totalTime FROM Session WHERE teamId=53 GROUP BY missionId, score, totalTime ORDER BY score, totalTime;
Can you remind me what result you want?
SELECT missionId, score, totalTime FROM Session WHERE teamId=53 GROUP BY missionId, score, totalTime ORDER BY score DESC, totalTime LIMIT 20;
SELECT
s.score,
DISTINCT s.missionId,
s.totalTime
FROM
Sesssion s
WHERE
s.teamId = ?
GROUP BY
s.score DESC,
s.totalTime ASC;
SELECT s.score, DISTINCT s.missionId, s.totalTime FROM Sesssion s WHERE s.teamId = 53 GROUP BY s.score DESC, s.totalTime ASC;
a greg ate gregs
!otn a a greg ate gregs
:ok_hand: Added a-greg-ate-gregs to the names list.
Cya
cya
select p.id, p.mission_id, p.scores, p.total_time from ( select mission_id, max(scores) as mx from sessions where team_id=? group by mission_id) t join session p on p.mission_id=t.mission_id and p.scores = t.scores order by p.total_time where p.team_id=?
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '=t.missionId and p.scores=t.scores order by p.total_time' at line 1
@mystic lily Will depend on the kind of site it is
And their terms and conditions
Ideally if you can use their API, that'd be best
@teal jetty Sup
will there's no api and donno about t and c
What're the sites?
select p.id, p.missionId, p.score, p.totalTime from ( select missionId, max(score) as mx from Session where teamId=53 group by missionId) t join Session p on p.missionId=t.missionId and p.score = t.mx order by p.totalTime;
sites like betfair
@rugged root are you busy rn?
sure
select p.id, p.missionId, p.score, p.totalTime from ( select missionId, max(score) as mx from Session where teamId=53 group by missionId) t join Session p on p.missionId=t.missionId and p.score = t.mx WHERE p.teamid=53 order by p.totalTime;
SELECT * FROM Session WHERE teamId=53 ORDER BY missionId, score DESC, totalTime
SELECT * FROM ( SELECT *, ROW_NUMBER() OVER (PARTITION BY missionId ORDER BY score DESC, totalTime) AS ranking FROM Session WHERE teamId = 53 ) ranked_sessions WHERE ranking = 1;
@worthy cypress Do you have the code I can look at?
cya guys.
can i ask what are you programming?
The IT Crowd New Emergency Number! Ever thought 999 was too difficult to remember? Well try this...
Subscribe to the Official YouTube Channel http://www.bit.ly/SUBSCRIBE_THEITCROWD
WATCH More Bonus Clips The IT Crowd here: http://bit.ly/BONUS_CLIPS_ITCROWD
hello
This is a Huntsman spider, very common in Australia and like to invade homes!
If you like Australia or gaming, be sure to drop me a follow on twitch at https://www.twitch.tv/colvie_channel
Check out this video next: https://www.youtube.com/watch?v=VRE_bpF8pe4&t=23s
Follow me:
β‘οΈ Instagram: @colvie_channel
β‘οΈ Twitter: @Colvie_Channel
@faint pivot Enjoying my crappy old let's plays?
Yeahahha the letsplay list is impeccable π
Bah, not really
idk its nostalgic
Oh yeah?
True, looking back I do need to play through some of those again
kaizo mario 2
The spider - mankindβs most ancient and deadly nemesis. As a licensed Kill It With Fire exterminator, itβs time to fight back! Assemble your arsenal of increasingly excessive weapons, track spiders across suburbia, and burn everything in your path!To defeat spiders you must exploit their one weakness: FIRE. Or bullets. Or explosions, throwing st...
$14.99
2382
68
I never did finish Kaizo 2 did I
Maybe I should do that again... see if I'm even capable of it
Whahahaha, good luck in advance
How can you see who clicks on your 'connected apps'? never knew it was possible
no headphones ahhaha
Weird
my life is built around audio problems, i'm not shocked
let me try again with another YT video
hear anything?
weird
sussy discord ngl
thanks for letting me know before I truly embarrass myself
- test
@rugged root you done a voice over?
