#voice-chat-text-0
1 messages · Page 145 of 1
last time I had issues like that, it was only 15 minutes
there are ways to do that
with buildkit
I was installing evcxr_jupyter
at least six times
I couldn't use the cache either
docker-engine -- always
Docker Desktop -- almost always
gotcha
iirc, if your company is too big or you earn >$10M a year, you'll have to pay for Docker Desktop
yes, there's also dockerhub
which is a separate story
Schedule, talks and talk submissions for Chaos Communication Camp 2023
why did I have to see this again, this is so surreal
someone else did
I'm not using win 11
the only time I ever encountered win 11 myself was someone else's VM
I'm almost sure I used win 2000 more than win 11
Me was last non-NT, right?
I think I've somehow almost skipped "the best Windows to ever exist" (7)
Krisp might be applied after the threshold, I guess?
xp -> vista -> 8.1 -> 10 -> 8 -> 8.1 -> 10
!stream 500168097852948482
✅ @desert wolf can now stream until <t:1686453181:f>.
why is there SPARC on the stream
oh, wow, there's a Russian company whose acronym's third letter stands for SPARC
database in Aecor?
(to save scores)
"should I translate my pathetic attempt at data storage into Aecor?"
also known as type-coercing not-equals (in Erlang)
stop making functional languages
create dysfunctional languages instead
cargo watch -cx test
given how it's just file watch, can probably be made to work with non-Rust
0, 1
the while syntax sugar
pretty much the whole actual strong power of C's for is being able to call continue
@verbal zenith pyright/pylance
also, that, yes
(i.e. use VS Code)
pyright just works
I had exactly one issue when it was dumb
and it's fixed now
finally, it's grey
pyinstaller is marked by AVs
by default
no more tuple covariance-contravariance confusion
just use mkdocs instead
I have no clue if mkdocs does any auto-generation
@verbal zenith just external tools in search
not lint specifically
@desert wolf I think Discord sometimes cuts it if it deems the contents too static
(don't know if it's the case here)
still beta
not rc
so, no, not yet
@verbal zenith iirc, also new generics syntax
variance is inferred
this one actually adds something
you couldn't make generic type aliases before
normal type aliases existed for a long time
seems like they actually had to introduce new syntax
or else it'd get so much uglier
though I think they could've added Point: TypeAlias[T] = ...
another weak keyword
>>> type Mutually = Recursive
>>> type Recursive = Mutually
>>> Mutually
Mutually
>>> Recursive
Recursive
>>> Mutually.__value__
Recursive
>>> Recursive.__value__
Mutually
- lazy evaluation
just like from __future__ import annotations
annotations makes their execution delayed
Python Enhancement Proposals (PEPs)
I uninstalled the Rust plugin
actually, I completely uninstalled Rust toolchain from both of my host machines
now it's all in Docker
no pylint
no problems
> the name is a recursive acronym for "Pip Installs Packages"
quite easy to guess
(for some reason I never looked it up before)
oh, wow
I have 6GB test database I forgot to delete
since January 2021
I have 9.2GB of raw graph data
which is, like, still worth keeping for research
(I decided to check how much space my PyCharm directory takes up)
!e
class C:
class D:
pass
match C.D:
case C.D:
print('yes')
print(C.D)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | yes
002 | <class '__main__.C.D'>
oh
so it does work
!e
class C:
class D:
pass
match 5:
case C.D:
print('yes')
print(C.D)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
<class '__main__.C.D'>
pyright refuses to accept this too
this works fine
I reduced the project count to 200
"let that Sync in" is the most pun-ful commit message I made so far, I think
(composed in one message)
"minor type fix", 94 files changed
"quacceleration"
"Quacking._unQuack"
"The Great renaming", 1 digit changed
"python vibes"
"rectangle disaster"
"nanocommit", 135 files changed
"↑↑↓↓←→←→\🦆\💀"
"remove nothing"
"ub"
timeout is the most sane way
def halts(f) -> bool:
raise NotImplementedError
def example():
if halts(example):
while True:
...
@lavish rover
"Aecor community"
officially recognised by copilot
AI development: best practices
jo
anyone wanna help me i am trying to get better at python
and dont really know what i should code
!kindling
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
@somber heath say something
hello how are you doing
can you say something i want to test my headset
@turbid sandal
are u hearing something
which key should i keep it
it is not working
delay
what is this
7006+789\1234567890-
FOUND IT
@sour willow
HOW IS IT GOING
@somber heath WILL THIS SETTING BE THERE IN PERSONAL TALKS ALSO
probably to avoid cutting out the voice abruptly
yeah i got it
are you free i got a problem
what problem?
check this code
this is not wrkin in gui
does renaming the class Main to something else change the error?
haven't checked
as far as the Java code I saw works, the app class is almost never called Main
maybe that's the reason why
(though I doubt it should matter)
but the code still work in itellij
Ionic Bonding
Lithium + Chlorine
`[Li] -> {2,1}
[Cl] -> {2,8,7}
[Ci]⁺¹ [Li]⁻¹ [Li] [Cl] `
Potassium + Bromine
`[K] -> {2,8,8,1}
[Br] -> {2,8,18,7}
[K]⁺¹ [Br]⁻¹ [K] [Br]`
do you still have .class files in your source directory?
delete *.class from src
ok
leave only what IntelliJ shows as GuiVersion and Main
(which are GuiVersion.java and Main.java in the filesystem)
no
what about calling just java Main?
generally, it's better to build using the IDE itself
just to avoid getting garbage files in /src/
but it may not be necessary a person who is viewing the code have a ide
i always use it
but on github i have to globally avlaible
is there any changes you would suggest in the github file
you can also run this from /src/ to put the result into the /out/ directory:
javac -d ../out/debug/Main/ Main.java
getting a more proper configuration might require a build system (gradle? something else? idk)
it's probably a good idea to have an actual git repository at the root of the project
instead of copying the code over to GitHub
from next project i will add the git repe at the beginning only
with contents of these two files inside the .gitignore
https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
https://github.com/github/gitignore/blob/main/Java.gitignore
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.
why im muted
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
i must be 3days in the server to have the ability to speak
imagine
@somber heath do u know the recursion bro ?
@turbid sandal
hi
Sorry, I was mentally occupied when you asked. I am familiar with it, and I can muddle my way through it, but there are restrictions to it in Python. Using a list as a stack is often a more arbitrarily scalable approach.
If you're expecting a very deep recursion, you'll need to negotiate with Python.
I don't like recursive patterns.
@graceful eagle 👋
yo
@somber heath what about the approximatly problems
do u know it
Write a Python program to calculate the difference between the squared sum of the first n natural numbers and the sum of squared first n natural numbers.(default value of number=2).
Test Data:
If sum_difference(12)
Expected Output :
5434
like that
@somber heath love just listening to you talk lol
approximatly result
not fixed
ok dont care about it
this is a real approximately problem
school
xD
I WANT TO ASK IF U KNOW APPROXIMATLY problems
wait bro
!code
@echo garden just try not to be pretentious. No offense. Humility is your friend
hello
👍
@echo garden 1000% better quality audio now
@somber heath can you hear my southern accent? Its nice huh? lol
yeah i have to send 50 messages so I'm just kind of sending what ever
yes
that was me
the customtkinter
comment he read
@echo garden the custom tkinter is way better looking ui
its the same almost as far as the setup as tkinter
its built on top
what is your favorite GUI libraries to use?
i can try
doubt i'll be much help
I'm relatively new to python in general
import tkinter as tk
class App:
def __init__(self):
self.root = tk.Tk()
def run(self):
self.root.mainloop()
if __name__ == '__main__':
App().run()```
oh
so the grid is working but the order is not correct?
ok
so the way you add the new checkboxes could you not add the initial checkboxes using similar process just do it on the initial for loop
I'm not entirely sure i understand what the app is doing let me run it one sec
so these are the checkboxes i added are there suppose to be default ones before when the app initializes?
yes
the image i took out because i didnt have it\
@wary vine 👋
says drinks
i understand let me see what i can do i think i can get that if i am understanding correctly
@echo garden i think i may know why im testing now
@echo garden i will send it to you when im finished
ok
k
oh ok thanks i hadnt used it before
yeah i see the issue
but not sure how to fix yet
ok i got you bud
@leaden bloom 👋
@echo garden
i did it
you needed your idx outside of the function
@turbid sandal were you the kid on yesterday?
@turbid sandal ask @somber heath about your file extension issue you were having yesterday?
lo;l
he got you
@turbid sandal your humor is on a whole other level
@somber heath ask him about his file extension issue from yesterday
do it!
call me fort
Element 118 has emerged from controversy in the late 1990s to be named after super heavy element pioneer Yuri Oganessian - a living person.
More element videos: http://bit.ly/118elements
Super heavy elements: http://bit.ly/super_heavy
Nihonian: https://youtu.be/-HcSEKuYGM8
Moscovium: https://youtu.be/ewQAJtbgr7w
Tennessine: https://youtu.be/1RGl...
[Mg] -> {2,8,2}
[F] -> {2,7}
[F]⁻¹ [Mg]⁺² [Mg] [F]₂
[Ca] -> {2,8,8,2}
[O] -> {2,6}
[O]⁻² [Ca]⁺² [O] [Ca]
Thanks for watching please subscribe, like, and comment!
I did not create this song the song is the sole property of musician and pianist Tom Lehrer, I do not claim any rights to this video, the lyrics, and the soundtrack that is played in it. Consider this free advertising.
This is the element song by Tom Lehrer please enjoy.
----------------...
Provided to YouTube by JAY Records
The Pirates of Penzance: Overture · New D'Oyly Carte Opera Orchestra
The Pirates of Penzance
℗ 2001 JAY Productions Ltd.
Released on: 1991-11-01
Main Artist: New D'Oyly Carte Opera Orchestra
Composer: Gilbert & Sullivan
Music Publisher: Public Domain
Auto-generated by YouTube.
yes
thats because i added the index outside of the function
so now the new checkboxes would need an index variable fed into it
great job though
now im pretty sure, i can figure out how to get the gui right from here
thanks
yeah but i tried like 10 things that didnt work first
you might can if you can enumerate the for loop within the function
@white coral 👋
hi
!voice @white coral @sharp finch
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I don't understand a lot of things because I'm not a native English speaker
ok
same here
I was looking for discord programming channels where I could find someone with whom I could prepare for my high school exams
ohhh
I will be AFK for a bit longer chow
@pale swan 👋
can anyone help me with this question?
no I can't I am just beginner I wish I could
@gusty ledge 👋
I dont have permission to unmute
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@bold scroll 👋
yeah
@radiant charm 👋
why dont i have the permissions to speak in vc
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
!e py a, b, c = 1, 2, 3 a, b, c = a + b, b + c, c + a print(a, b, c)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
3 5 4
A,b,c has to be even then we can play a turn
And score increases by 1 in each turn
A= a+c/2
B=b+a/2
C=b+c/2
In each turn
Score increases by 1
If any of a,BC is odd return the score
sup
@grim marsh 👋
Hello!
An nth-rank tensor in m-dimensional space is a mathematical object that has n indices and m^n components and obeys certain transformation rules. Each index of a tensor ranges over the number of dimensions of space. However, the dimension of the space is largely irrelevant in most tensor equations (with the notable exception of the contracted Kro...
MathWorld
MathWorld is an online mathematics reference work, created and largely written by Eric W. Weisstein. It is sponsored by and licensed to Wolfram Research
Eric W. Weisstein
mathematician and encyclopedist who created and maintains the encyclopedias MathWorld and ScienceWorld. In addition, he is the author of the CRC Concise Encyclopedia
An nth-rank tensor in m-dimensional space is a mathematical object that has n indices and m^n components and obeys certain transformation rules. Each index of a tensor ranges over the number of dimensions of space. However, the dimension of the space is largely irrelevant in most tensor equations (with the notable exception of the contracted Kro...
tensor is like the math that happens between each layer for each node so for example if you have inputs of (0.1, 0.5) and one node in the next layer it would be y_hat = (w1 * 0.1) + (w2 * 0.5) + b and this happens for every node and every layer in the network once calc is done for all layers, the end result is compared to the acutal result using something like MSQ, then the error is backpropagated through the networks weights to adjust using gradient decent by the chain rule to accurately adjust weights
this is only one example of a Linear Regression alg
essentially a tensor in Linear Regresson, super simplified would be y = wx +b where as you are given the y and x and the model's goal is to find the ideal w and b
@echo garden my mic not working
i know in general what a tensor is
what kinda data are you trying to process and whats your goal?
video data has to be broken into each pixel as a value
those pixel values are the inputs
for a video to be used in a neural network each frame's pixels are given a value usually either 0-1 for greyscale or 0-255 normalized for color so that the input(each frame) are able to be used in the neural network's math calculations
lol im not sure
but np
#lang racket
(require file/glob)
(struct target (name src build-fn))
(define VERSION 0.0)
(define PROJECT null)
(define LANGUAGE null)
(define (require-minimum-version ver)
(when (VERSION . < . ver)
(raise (format "The current version is too low try a version >=~a" ver) #t)))
(define (project! name lang)
(set! PROJECT name)
(set! LANGUAGE lang))
(define (new-target name src (lang null))
(define language LANGUAGE)
(when (not (null? lang))
(set! language lang))
(define build-fn (match language
['cc]))
)
(define (main)
(require-minimum-version 0.1)
(project! "Schemake Test" "C")
)
(main)
A tensor is a generalization of scalars, vectors, and matrices to an arbitrary number of indices
Tensor
leads to the concept of a tensor field. In some areas, tensor fields are so ubiquitous that they are often simply called "tensors". Tullio Levi-Civita and
Metric tensor
numbers), and a metric tensor on M consists of a metric tensor at each point p of M that varies smoothly with p. A metric tensor g is positive-definite
@whole bear hy
Failed to get response.
TTP
Look up TTP in Wiktionary, the free dictionary. TTP may refer to: Tractatus Theologico-Politicus, a book by the philosopher Baruch Spinoza Thrombotic
Terrorist Tactics, Techniques, and Procedures
Tactics, Techniques, and Procedures (TTPs) is an essential concept in terrorism and cyber security studies. The role of TTPs in terrorism analysis is to identify
Callback that prints metrics to stdout.
nooo
The Drake equation is a probabilistic argument used to estimate the number of active, communicative extraterrestrial civilizations in the Milky Way Galaxy.The equation was formulated in 1961 by Frank Drake, not for purposes of quantifying the number of civilizations, but as a way to stimulate scientific dialogue at the first scientific meeting o...
Failed to get response.
Post-mortem photography
Post-mortem photography is the practice of photographing the recently deceased. Various cultures use and have used this practice, though the best-studied
Post Mortem: No One Dies in Skarnes
Post Mortem: No One Dies in Skarnes (Norwegian: Post Mortem: ingen dør i Skarnes) is a 2021 Norwegian-language Netflix Original drama television series
quite a bit tbh
its a good go to
there are unknown unknowns
but its a good vector
ie. sebnsible to test to remove most low level vulns
hmmm but if i code a custom CNC / root kit / virus its unknown
they can still be detected though by the way you interact with the OS / file system / api calls etc
lol its been a while since i looked 😄
some would rely on external control / commands before they do anything malicious
meh im dumb 😛 😄
i do stupid shit all the time 😄
isnt the where wisdom comes from? doing stupid shit and knowing not to do it again 😄
😄
link analysers are useful for avoiding leaking stuff and fingerprinting
bit.ly links are great for scraping ip addresses 😉
bounce from one url to another and log details inbetween
i use them to find the destination when i dont want to click a link
gtk3
libnotify
libxss
nspr
nss
libappindicator-gtk3 (optional) - Systray indicator support
libpulse (optional) - Pulseaudio support
xdg-utils (optional) - Open files
A TURN server is a media relay/proxy that allows peers to exchange UDP or TCP media traffic when one or both parties are behind NAT.0 It is a protocol for relaying network traffic that allows a client to obtain IP addresses and ports from such a relay. A complete solution requires a means by which a client can obtain a transport address from which it can receive media from any peer that can send packets to the public Internet.1 ICE (Interactive Connectivity Establishment) is a framework that allows endpoints to discover paths through which they can exchange media, such as via a TURN server, where direct routing between those devices may not be possible, e.g. when a device is on a private network or is behind a NAT.0
brave search 😉
top result in brave is "AI" generated and provides sources
If a host is located behind a NAT, then in certain situations it can be impossible for that host to communicate directly with other hosts (peers). In these situations, it is necessary for the host to use the services of an intermediate node that acts as a communication relay. This specification defines a protocol, called TURN (Traversal Using Re...
When a direct communication path cannot be found, it is necessary to use the services of an intermediate host that acts as a relay for the packets. This relay typically sits in the public Internet and relays packets between two hosts that both sit behind NATs.
idk if he can?
u need to verify
thats not how you ask for help
lol
Ctbl
dude, give your enter key a rest
why?
how about no?
if you can't publicly describe the reason why you can't send the code, I probably shouldn't help you
I think that, to a certain extent, DMing total strangers on a public discord server should be held up to the same standards as messages on the server itself
if anyone is helping to violate ToS, DMs or otherwise
the problem isn't only that they spread and store information on the server itself
but also that they generally use the server as a platform to do this
fun fact: it's possible to find who's the author of a deleted message if that message is ping-replied to
(mentions:1115075654250152067 in search)
@midnight agate can hear
I heard
(processing)
I avoid learning about signals (intentionally)
I will find Bryan Cantrill's quote about signals later
I think it's in his talk on Zones/Jails/etc.
but that talk is 100 minutes long
without transcript
well that'd be third/fourth years in the University
and I quit after four months
I learned enough for now
when I need to deal with signals, I just go and figure out
I don't want to use them when I don't have to, because I shouldn't
the place where I encounter signals the most and in their (so far) worst way, is stopping containers in docker compose
it just doesn't work, it never works
it should be hidden and put away as far as possible
as far as I know it, it's neither a human- nor a process-friendly mechanism
for almost all systems, even most part of the OS, signal handling shouldn't be a routine thing that developer worries about
if a code base, at a first glance, just digs into signals all over the place, something is definitely wrong
it's under-abstracted
developer shouldn't be thinking "we should handle SIGTERM/SIGINT/etc."
developer should be thinking "we should handle graceful shutdown"
if I see the word "SIGTERM" in the source code of a discord bot, something went extremely wrong, abstraction-wise
sometimes that's handled by config
or by actual metrics
ubuntu likes to block waiting for NIC to connect to internet
name seems familiar
I didn't do much actual Unix/Linux systems work
config, daemon management, etc.
it's difficult (and probably more difficult than it should be)
so now it's all just Docker, because I'd rather not deal with it, for now
the most of host config I did was turning this off
I have two NICs
one is never used
for whatever reason, ubuntu waits for both not for either
software engineering's definition is still unclear
I don't remember doing much of anything other than programming in the past ~month
after chess got mentioned, I decided to play the bot (because I'm bad at playing other people)
can't hear background if there's any
or, like
it gets mostly removed
by either noise or echo cancellation
brb (will be back in 4~7 minutes)
Heyo
back
even without an AI, you can get quite horrific results, see npm leftpad
@midnight agate have you seen it before?
so, this code has 2'047'861 weekly downloads
'use strict';
module.exports = leftPad;
var cache = [
'',
' ',
' ',
' ',
' ',
' ',
' ',
' ',
' ',
' '
];
function leftPad (str, len, ch) {
// convert `str` to a `string`
str = str + '';
// `len` is the `pad`'s length now
len = len - str.length;
// doesn't need to pad
if (len <= 0) return str;
// `ch` defaults to `' '`
if (!ch && ch !== 0) ch = ' ';
// convert `ch` to a `string` cuz it could be a number
ch = ch + '';
// cache common use cases
if (ch === ' ' && len < 10) return cache[len] + str;
// `pad` starts with an empty string
var pad = '';
// loop
while (true) {
// add `ch` to `pad` if `len` is odd
if (len & 1) pad += ch;
// divide `len` by 2, ditch the remainder
len >>= 1;
// "double" the `ch` so this operation count grows logarithmically on `len`
// each time `ch` is "doubled", the `len` would need to be "doubled" too
// similar to finding a value in binary search tree, hence O(log(n))
if (len) ch += ch;
// `len` is 0, exit the loop
else break;
}
// pad `str`!
return pad + str;
}
(this is the replacement)
Found 99 vulnerabilities (84 moderately irrelevant, 15 highly irrelevant)
@midnight agate there were two functions
before and after the pull
this is after
before was simpler
iirc, both are wrong
key-like data is of more value to the attacker
I have two computers, one of which acts as a cloud
but now I have a problem that some data is "cloud"-only
(so I should somehow sync it down to the PC I use)
I should read this and auto-download all my code
https://docs.gitea.com/development/api-usage
Enabling/configuring API access
auto-fetch rather
I have a server running Gitea
and a PC
the problem is that some code is fully on server
(because I normally don't develop on the PC)
VS Code remote
the server is basically just a second PC but it has Linux on it
(and it has no peripheral stuff for user interaction, so accessed only via the network)
I prefer Git
SVN is more centralised, iirc
oh, Go supports compiling for Windows from Linux, apparently
Ooo, that's nice
if you're looking for something easy-to-deploy for code repositories, Gitea is probably a good option
"just don't ask about optimisation; it doesn't exist"
iirc, it never caches responses
custom render integration is easy but horrible on practice
GitHub/GitLab are good for their CI/CD, yes
gitea actions aren't released yet I think
though I think I remember that button existing
uses this
https://github.com/nektos/act
chessening
(very delayed reply)
https://lichess.org/Qe945sFm
Join the challenge or watch the game here.
@midnight agate if you're still interested in joining at some point
@round cradle 👋
link re-alived
https://lichess.org/RkRYjzDv
@blissful totem 👋
I think silence is better for now
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
do you guy's have job?
no, rematch timed out
still thinking how to properly approach this
I don't remember if Gitea allows fetching the code using the API key
(it definitely allows doing so using username-password)
cloning/fetching/etc.
fastapi uses it
Join the challenge or watch the game here.
multiple m1s I think
I'm choosing where to put the queen for most dumb last move
as it might've been apparent, I normally only play one openning as white
(Catalan but worse)
getting past move 6 requires actually learning
@vocal basin Hi
Hey @willow gate
hey
!e
from sys import getsizeof
base = "a" * 1000
print(getsizeof(base+"q"))
print(getsizeof(base+"й"))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1050
002 | 2076
TIL
it seems to be either [u8] or [u16] or [u32] depending on values
!e
from sys import getsizeof
base = "a" * 1000
print(getsizeof(base+chr(255)))
print(getsizeof(base+chr(256)))
print(getsizeof(base+chr(65535)))
print(getsizeof(base+chr(65536)))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1074
002 | 2076
003 | 2076
004 | 4080
hey af i need your help
i have a table in my python notebook and i want to copy it in powerpoint
how can i do this
?
Jupyter notebook?
yes
what format do you have the table as?
pandas data frame? numpy array?
no in a simple text/table form to be able to put it in a slide
so, just text? it's not structured in Python itself in any way, right?
yeah
chatgpt is suggesting something like this but it is creating a table from scratch when i already have the table
and i can't find anything online to do something similar
what type does product_summary_2019 have?
"product_summary_2019" is my table
print(type(product_summary_2019))
<class 'pandas.core.frame.DataFrame'>
do you need creation of the pptx fully automated or do you need to import the data into an existing presentation?
i could do with just a simple table
the later
currently trying to get either or this two to work
product_summary_2019.to_csv("output.csv")
product_summary_2019.to_excel("output.xlsx")
you can save the dataframe as xlsx, and then put it directly into PowerPoint
at first it will be very ugly because of cropping
this can be adjusted
thanks a ton af
csv -> xlsx can be done using Excel or other tools
why do i always try to solve problems in the most complex of ways lol 😭
it is indeed very ugly
🥲
there might be issues with how it parses the CSV
because of wrong delimeters
my guess for the proper CSV export would be something like this
product_summary_2019.to_csv("output.csv", sep=';', decimal=',')
i did it in xlsx and it seems to be fine
now i have to figure out a way to copy table design from one table to this one
yes, exporting directly to xlsx is a more proper way
ill go look it up
you can extract nothing from the list
like extracting Err from an iterator can be done in Rust with .collect
@lavish rover they already are integers so it works
(in Python)
yeah, maybe even better to pre-convert for explicitness
int(True) and only then do arithmetic weirdness
the operation which kind of "makes sense" to be expressed via comparison is implication
bool() -> bool()
bool() <= bool()
but it's just ugly
the arrow is pointing the wrong way
test/
if/
executes_the_body_if_the_condtion_is_true
skips_the_body_if_the_condtion_is_false
thinking how the code on stream might be re-arranged
so, like, closer to test-per-file and named tests
@lavish rover 
in Python, you can do it in part because it's very statement-heavy, relying on whitespace/newlines
tuple assignment, for example, doesn't work with :=
though returning tuples doesn't support that because (yield 0, 1) exists just fine
!e
def f():
print((yield 0, 1))
print(*f())
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | None
002 | (0, 1)
!e
def f():
print(yield 0, 1)
print(*f())
@vocal basin :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 2
002 | print(yield 0, 1)
003 | ^^^^^
004 | SyntaxError: invalid syntax
leaving this as an example of how it can go wrong anyway
it should have a better syntax error explanation
it fails because it's ambiguous not because it's wrong
so there likely was a choice made at some point to disallow such usage
!e
def f():
print(yield 0)
@vocal basin :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 2
002 | print(yield 0)
003 | ^^^^^
004 | SyntaxError: invalid syntax
though probably it better applies to:
!e
[x for x in 0, 1]
@vocal basin :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | [x for x in 0, 1]
003 | ^
004 | SyntaxError: invalid syntax
I think there are cases when it explicitly says that it doesn't understand and needs parentheses
(iirc, that relates to generators)
lambdas are surprisingly less painful syntax-wise than they could've been
join(strings, separator)?
(idk how the language handles methods and functions yet)
@somber heath Hello
implementing map?
I missed if something else happened
@verbal zenith pass the reference to the interpreter?
well, interpreter is needed to run the code, I'd assume
PyO3 has Python<'_> passed to functions
(interpreter)
@terse mulch 👋
hi
not sure how Python itself handles it
maybe some not-so-sane context switching as always
@somber heath look here
if it's a pythonic map, it shouldn't deal with ASTs
unless you're trying to make something like Lisp
src/common.rs line 4
pub type Ref<T> = Rc<RefCell<T>>;```
@verbal zenith maybe borrow?
idk
the Ref I know
https://doc.rust-lang.org/std/cell/struct.Ref.html
Wraps a borrowed reference to a value in a RefCell box. A wrapper type for an immutably borrowed value from a RefCell.
it's quadratic
I think
iirc, String is utf-8, it doesn't allow fast indexing
does the language have string mutability?
if not, then have all strings as Rc<String> not Ref<String>
force immutability
@verbal zenith does IteratorValue assume getting the next value is always possible without errors?
this looks like yes
pub struct IteratorValue(pub Ref<dyn Iterator<Item = Value>>);
to handle errors, it'd probably be better to not asume that
if the intention isn't to collect it, you don't collect
if you don't collect, you can't know in advance that there's no errors
pub struct IteratorValue(pub Ref<dyn Iterator<Item = Result<Value>>>);
PyCharm has commit history somewhere
(more easily accessible compared to VSC)
''''''from selenium import webdriver
from selenium.webdriver.common.by import By
browser = webdriver.Firefox(r'C:\Users\Dr Bola Asiru\Desktop\PraticalProjects\geckodriver-v0.33.0-win-aarch64')
browser.get('http://inventwithpython.com')
try:
elem = browser.find_element(By.CLASS_NAME, 'display-3')
print('Found <%s> element with that class name!' % elem.tag_name)
except:
print('Was not able to find an element with that name.')
''''''
why does this code still give me a deprecation warning
`
from selenium.webdriver.common.by import By
browser = webdriver.Firefox(r'C:\Users\Dr Bola Asiru\Desktop\PraticalProjects\geckodriver-v0.33.0-win-aarch64')
browser.get('http://inventwithpython.com')
try:
elem = browser.find_element(By.CLASS_NAME, 'display-3')
print('Found <%s> element with that class name!' % elem.tag_name)
except:
print('Was not able to find an element with that name.')
what warning, exactly?
DeprecationWarning: firefox_profile has been deprecated, please pass in an Options object
and whats a deprecation warning
python
looks like r'C:\Users\Dr Bola Asiru\Desktop\PraticalProjects\geckodriver-v0.33.0-win-aarch64' should be passed in differently
what do you mean
idk how to git this
I didn't encounter the same committing issue myself
add an extra branch so no code disappears out of existence
(temporarily)
((if that's the concern))
official docs have options = Options() in them
Still showing me that red line
I'd expect it to be
options = Options()
options.firefox_profile = r'C:\Users\Dr Bola Asiru\Desktop\PraticalProjects\geckodriver-v0.33.0-win-aarch64'
browser = webdriver.Firefox(options=options)
maybe just profile, not sure
where did you get this code from?
it looks extremely ancient
I just noticed % there
it doesn't show the warning, but it's deprecated too
omg it works
official docs just use webdriver.Chrome(), so I'd expect it to work for Firefox too
i remember i already put gecodriver.exe to my windows path
that's if you put it to path already
anyways thank you
where you might actually need Options(), is if you need to automate testing debug/experimental builds of your own websites/services
(to get the proper development configuration)
i was just about to give up on selenium and move on to something else
@verbal zenith get from commits
please give a link to the official docs
thanks
StringIterator would just be Chars
@verbal zenith clone after *
(*rc).clone()
@verbal zenith right should be &str not String
@verbal zenith does just right.as_ref() work?
@verbal zenith to_owned
instead of clone
@verbal zenith on the left only
@verbal zenith does to_string on left work?
this is so weird
@verbal zenith left.to_string()
I'd expect
@verbal zenith do you need to_string before repeat?
@verbal zenith StringIterator can just be Chars
@verbal zenith not as a field; just type StringIterator = Chars<'static>;
oh, wait
you might still need a wrapper
@verbal zenith return what it was, I forgot about it needing to return Values
@verbal zenith yes; without index
@verbal zenith do the magic that copilot suggested
@verbal zenith or what you wrote but with ?
@verbal zenith ? after next, and add to_string
@verbal zenith Some()
@verbal zenith iirc, no
@verbal zenith tbh, the Chars solution might fail because of not storing Rc with it
yes, exactly that
@verbal zenith for now, you can re-implement it for Rc the way it was for Ref before
idk if there's a better way without unsafe
well, you can extract the lifetime
@verbal zenith the problem will be because the language probably needs the iterator to outlive the string
so it does need to hold onto Rc somehow
!e
s = "abc"
i = iter(s)
del s
print(*i)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
a b c
like this in Python
@verbal zenith Chars holds onto a reference not Rc
idk how to safely express this in Rust
you can swap the Rc for some other Rc
if you store Rc and Chars in the same struct, that's not enough to ensure they point to the same thing
you can make a generator
hypothetically, it might work
brb
joman
how u doing ?
lol haha
i only know python just starting out
life of a coder hjaha only solving problems
yeah that is pretty cool
yeah it looks like python
yeah i just made like a simple website with python
nah streamlit
tryna become better at coding so i can make job from it
@verbal zenith do you know the Python way to solve this?
@verbal zenith Python allows fast indexing
@verbal zenith O(1) for getting an element s[i]
yes
awful
but may be safe enough
mod rc_chars {
pub struct RcChars {
_rc: std::rc::Rc<String>,
chars: Option<std::str::Chars<'static>>,
}
impl Iterator for RcChars {
type Item = String;
fn next(&mut self) -> Option<Self::Item> {
if let Some(ref mut chars) = self.chars {
Some(chars.next()?.to_string())
} else {
None
}
}
}
impl RcChars {
pub fn from_rc(rc: std::rc::Rc<String>) -> Self {
let mut new = Self {
_rc: rc,
chars: None,
};
new.chars = Some(unsafe { &*std::rc::Rc::as_ptr(&new._rc) }.chars());
new
}
}
}
from Rc::as_ptr docs:
The pointer is valid for as long there are strong counts in the
Rc.
self.chars' contents are only accessed as long as Self is valid
as long as Self is valid, Self::_rc is a valid strong reference too
drop order for _rc vs chars shouldn't matter
if it did, then we should have some serious questions to Chars implementation
seems like there's no weird things happening
unlike with Box
which needs Pin and stuff
we don't even need to unimplement Unpin
which would be necessary if the iterator owned the String
as a "drop-in replacement" for where I suggested to use Chars earlier
(it's not fully a replacement, because unlike the previous proposal, it works)
af do you know sql as well? im stuck somewhere 😭
i know a brute force method to solve a thing but can't do it efficiently
how to create a "and more" type frequency table
what do you mean?
how do i create a 2nd table like table from the first table?
just adding "and more" to everything except for "1"?
and whatever you SQL dialect's equivalent for ROW_NUMBER() is
no not that kind of change, the "2 and more" sales should have the sum of 2,3,4...n
cumulative sum?
yes
do you need to do that in SQL or in pandas?
either could work, once i understand the algo i'll translate
cumsum isn't working for a single column, also cumsum is adding things top down where as i kind a need it for bottom up
I think pandas allows separating the data frame into separate ones (based on columns) and then merge them back
idk how
no worries thanks for helping out, ill dig further
my efficiency has lowered need to take a break
https://www.beeradvocate.com/beer/profile/184/1402/ @rugged root
Holy shit, I don't think I've seen a proper beer that's 10%
@ashen plinth Yo
is this a bot
I'm limited in what I'm capable of understanding. Please ask your question again.
The video was relevant to a conversation taking place in the voice channel. 🙂
dammn, i'm sorry please forgive me
Beep beep boop boop.
@hexed stratus 👋
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@cinder dawn If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about the voice gate
it was awesome
nono i can talk i jus dont, thank you tho
though it leaves you in suspense
@north agate Check out the #voice-verification channel. That'll tell you what you need to know about the voice gate
Also you can always talk to us in here. If we're on VC, we're typically watching the chat
Going to try and call the vendor, see if they have an update for me
!stream 360284932469293056
✅ @ebon mist can now stream until <t:1686596381:f>.
def useful_information():
print("In case anyone else besides myself wasn't aware,")
print('In discord if you want to post code to a window like this,')
print('just got to the very first line on your code and press the tila key 3 times')
print('Followed by you the language the of the code such as python or javascript')
print('and then at the end of your code, press the tila key 3 times again.')
print('Then just copy and paste the code into the discord chat window.')
return````
This is pretty cool
I'll keep this in mind for next time
Is that pycharm?
!code
this is this
from turtle import *
N = 80
def f(x):
return 3.9*x*(1-x)
def g(x):
return 3.9*(x-x**2)
def h(x):
return 3.9*x-3.9*x*x
def jumpto(x, y):
penup(); goto(x,y)
def line(x1, y1, x2, y2):
jumpto(x1, y1)
pendown()
goto(x2, y2)
def coosys():
line(-1, 0, N+1, 0)
line(0, -0.1, 0, 1.1)
def plot(fun, start, color):
pencolor(color)
x = start
jumpto(0, x)
pendown()
dot(5)
for i in range(N):
x=fun(x)
goto(i+1,x)
dot(5)
def main():
reset()
setworldcoordinates(-1.0,-0.1, N+1, 1.1)
speed(0)
hideturtle()
coosys()
plot(f, 0.35, "blue")
plot(g, 0.35, "green")
plot(h, 0.35, "red")
# Now zoom in:
for s in range(100):
setworldcoordinates(0.5*s,-0.1, N+1, 1.1)
return "Done!"
if __name__ == "__main__":
main()
mainloop()
This is good
I like this
impl Token {
pub fn new(kind: TokenKind, span: Span, text: String) -> Token {
Token {
kind,
span,
text,
newline_before: false,
}
}
pub fn from_str(text: String, span: Span) -> Token {
Token {
kind: match text.as_ref() {
"and" => TokenKind::And,
"assert" => TokenKind::Assert,
"def" => TokenKind::Def,
"else" => TokenKind::Else,
"elif" => TokenKind::Elif,
"false" => TokenKind::False,
"if" => TokenKind::If,
"let" => TokenKind::Let,
"not" => TokenKind::Not,
"nothing" => TokenKind::Nothing,
"or" => TokenKind::Or,
"return" => TokenKind::Return,
"true" => TokenKind::True,
"while" => TokenKind::While,
"continue" => TokenKind::Continue,
"class" => TokenKind::Class,
"break" => TokenKind::Break,
"for" => TokenKind::For,
"in" => TokenKind::In,
_ => TokenKind::Identifier,
},
span,
text,
newline_before: false,
}
}
}
print('Hello world!')
impl Token {
pub fn new(kind: TokenKind, span: Span, text: String) -> Token {
Token {
kind,
span,
text,
newline_before: false,
}
}
pub fn from_str(text: String, span: Span) -> Token {
Token {
kind: match text.as_ref() {
"and" => TokenKind::And,
"assert" => TokenKind::Assert,
"def" => TokenKind::Def,
"else" => TokenKind::Else,
"elif" => TokenKind::Elif,
"false" => TokenKind::False,
"if" => TokenKind::If,
"let" => TokenKind::Let,
"not" => TokenKind::Not,
"nothing" => TokenKind::Nothing,
"or" => TokenKind::Or,
"return" => TokenKind::Return,
"true" => TokenKind::True,
"while" => TokenKind::While,
"continue" => TokenKind::Continue,
"class" => TokenKind::Class,
"break" => TokenKind::Break,
"for" => TokenKind::For,
"in" => TokenKind::In,
_ => TokenKind::Identifier,
},
span,
text,
newline_before: false,
}
}
}
print("Hello world!")
@verbal zenith if you want to mutate it, it should be inside refcell
@verbal zenith create a new if it's cheap enough
@verbal zenith what field are you trying to change?
maybe it should be outside this struct
or passed during creation
@midnight agate today's daily has some potential for optimisation
client.post(url)
.body("blah")
.await
# the above will become
client.post().body() ; await ;
# i want the lexer to turn it into
client.post().body().await ;
case '\n':
self.current_line += 1
refToCur = self.current_line
indent = calcIndent()
# Did they manually use semicolon?
if self.tokens[-1] == TokenType.SEMICOLON:
self.hasIndentChanged(indent)
return
if self.current_line != refToCur:
# we know that next line is not continued from previous
self.addToken(TokenType.SEMICOLON)
# figure out if next line is within same block/scope
self.hasIndentChanged(indent)
else:
# lets check if next line is continued
if self.isLineContinued(indent):
# if it is continued loop until we exit the continued lines
# will need to recalculate indent if continued
indent = self.untilLineEnd(indent)
# we are not inside a continued line block
self.addToken(TokenType.SEMICOLON)
self.hasIndentChanged(indent)
not yet aware of any solution for this that could be qualified as naïve
* any working solution
closest to naïve is quite tedious to implement
but it actually has performance benefits over more proper solutions
(||memory||)
looking at this and thinking how to generalise it for tree-like structures other than linked lists
(redundancy mechanism to restore the data structure if one node gets dropped
import numpy as np
from sklearn.decomposition import PCA
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
# Define the tensor dimensions
dims = ("dim1", "dim2", "dim3", "dim4")
# Create a random tensor
tensor = np.random.rand(*([10]*len(dims)))
# Map each parameter to a point in tensor space and self-label variables
x = []
y = []
z = []
for i, j, k, l in np.ndindex(tensor.shape):
coordinates = [i/10, j/10, k/10]
x.append(coordinates[0])
y.append(coordinates[1])
z.append(coordinates[2])
# Apply PCA to reduce the dimensionality to 3D
pca = PCA(n_components=3)
coords = np.column_stack((x, y, z))
coords_pca = pca.fit_transform(coords)
# Visualize the tensor coordinates as a scatter plot
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
ax.scatter(coords_pca[:, 0], coords_pca[:, 1], coords_pca[:, 2])
ax.set_xlabel('PCA 1')
ax.set_ylabel('PCA 2')
ax.set_zlabel('PCA 3')
plt.show()
print('Hello world!')
not much i can't really talk
yup
yeah you can't do it
hey opal
did you get back to yoru computer?
ya know , the reason we have products that don't last long is because they found you don't make money from a reliable product
nice
I hafta be quite my lady needs to work tomorrow
but i can type as loudly as i like
@wind raptoryou interested in AI programming?
did you take a look at my tensor code?
10^4 objects could be created from this code
yeah
the data can be stored and sifted, like this var=("henry", "3",
yeah
well i don't really know exactly how it parsed from the AI code helper im using
well
yeah but those coordinates have multiple arrays from their respective spots which can be used to create elements
yeah but AI programming require tensor input to function correctly
the premise is somewhat the same
Opal Earlier, i was playing with this and i laughed because the tensor model i made accumulated 7 gigs of data in a few moments, i laughed
memory
no no no
@near smelt 👋
it was my over zealous nature decided to see what would happen if you added 9 dimensions
👋
can you help me with some basic python. It will be quick. I just need a bit of help since the instructor is very confusing
I can't talk for some reason
not allowed unfortunately
my computer was trying to processes information as if it was trying to pass an over sized turd.
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
can we vc privately
I don't meet the criteria
unfortunately
@somber heath
yea vc in dms
lol
nothing
well it depends if "roll" produces a value that is printed immediately after its implemented it
i assume nothing because you not displaying in code
ok
well in the general imediate sense there may not be any value to display but have one waiting to be displayed
but it compiles correctly
no error
I got A
the first one
nothing happens; it is a command
apprears*
yeah
but it may not display when ROLL is called
where's is his variable?
die.roll may produce some data but that data is just in memory space.. thats it
BRUH
I got it wrong
fuck
dam, did it compile wrong
I did nothing appeared
dam
I don't even get a second chance
ouch
crap
I just got a 0
can I just do a group vc
I can't talk here
and it is kind of aggravating
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
we all go through it though
!e py import itertools print(repr(itertools.product))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
<class 'itertools.product'>
!e ```py
def func():
pass
print(repr(func))```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
<function func at 0x7f0c39b78680>
@somber heath can you add me when ur back
I got something to ask you
thank you sir
mindful can I vc with u rq just for a bit
@wind raptor
the verification will take a long time
since it isn't automated or by a bot but a real staff member has to go through and fix it
I promise it will be quick
just like a min or two
👍
that is all sir
thank you
🙏
It is automated by a bot. I am a staff member lol
There ya go
I don't do that outside of exceptional circumstances.
hey
Bloody hell !! i wanna speak
wht...come----? wht
wht r we suppose to talk here?
well i am married to ginny..uk
i am 18
lol
so when will i get to talk ?
ig i have done.....50
by now
idk...lol i got some doubts
language girl !
i will be back....once my headphones gets charged
whats the new thing with this server and underage , wasnt like this before
?
i mean pretty much everyone i have seen atleast is underage
man i hate this stupid arguments
no
the last time i had this 2 hour argument on this topic and bro this dude wouldn't accept anything i would say
literally every eclipse propves the fact that the earth is round
yo wassup af , hows minesweeper?
retired
fair enough
coincidentally, in the same month as two ex-top-1 players
Sitting a lot or working it a lot?
satisfying 😉
Hm. 👍
@ebon mist hi there
!e py a = [1, 2, 3] b = [4, 5, 6] c = a + b print(c)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
[1, 2, 3, 4, 5, 6]
c = [4, 3, 5, 7,9]
x=[2,2,2,4]
and their + is in solution variable
result = [43579, 2224]