im loosing my mind, downloaded VS Code and Python 3.10 for my own personal project to build a basic AI, lot's of compability issues when it comes to pips etc, I used chatgpt to help me code bc im still new to python, end up attempted to uninstall and reinstall over and over again, used cmd propmts, the worst that coud happen is having lot's of corrupted residue files, i tried to customize the path into new folders but some how it all goes into everyfile, im losing my mind
#voice-chat-text-0
1 messages · Page 350 of 1
so what is driving you nuts for the most part?
lost located files tho
What you COULD try is finding them, deleting them COMPLETELY and seeing what was using them.
restart from scratch.
Another thing is if you're still having this issue, I would suggest getting Virtual Machine then getting Linux Mint and trying it from there, hoping you know how to use a VM
i tried file explorer, it shows its initial location, however when i tried to delte it, it says file no longer there
i itried registry editor
So it sounds like it's fucked, I would say try it in a new OS in a VM and see what happens.
im completley new to the coding world, previously i used scratch, im not so computer samrt
Eh
Don't feel bad
Computers at this point are meant to be borderline idiot proof.
Take Macs for instance, you have to KNOW how to fuck them up
nah, i feel hatred, not you but the cirrupted files, since last night 😦
damn computers
When I saw that scene, I was thinking, "Why aren't they using like Red Hat or Arch or something?"
I'm NOT remotely that great with linux, but I know a little bit around it, I used it for a while
so linux is the best?
eh
Every OS has a puprose
Depends on what you wanna do.
Linux all together is LITERALLY free
i chose python, i thought it was so simply gigachad but turns out it's below mid
You'll see a lot of tech people use a thinkpad with like arch, gentoo, mint, ubuntu and more.
Well again that depends on your use case.
I think what you may wanna do first is understand your computer before you jump directly into working on code.
intel core 5 and arc graphs
I'm not saying you need to know the ins and outs but if you know how it works and what to do and what not to do, you'd have a better understanding.
i used chatgpt tho...to help me with all the nerd stuff
Oh that's fine
No one will fault you for that. I literally did the same thing for a Black Jack game in terminal then I got it to work in a google site lol
My BIGGEST piece of advice when you get a new device, click ANYTHING and EVERYTHING
If you dont know what it is, google it.
funny thing is im in mechatronics robotics engineering in vocational college
What language did yall use to program the bots? I assume yall used arduinos?
yepp
XD
and uh... ABB
i wanted python bc of it's simplicity and AI
im currently learning python from datacamp Python Data Science
ah ok
I see how this is a big jump, or thereof. I'm looking at how ABB works, it's a very simple language IF I'M READING IT RIGHT
What you could start with is youtube tutorials
If this were sewing, cooking, music/video editing, or the Sims 1 I could answer questions all day long
I can vaguely read Py right now, I need to get back to working on these DnD books at some point. I really wanna get the toons done, it's all in CSS/HTML
maybe should i go and see a comp guy and let him see what he can do?
I think I can read Py better than I can read French
Well
First
Sense you're already here
You might as well wait till a bunch of the guys here jump into the VCs and talk to them about it.
Maybe one of them can help you out.
For all we know it could be a simple fix
maybe ill let him hack my pc
reminds me years ago on skype, someone was installing the sims and I told them to screen share and thought that meant I was going to hack them.. LMAO
AHAH
really hard to be a hacker here, our tech here is advanced as fuck, im not a tech dude, s dont ask me T^T
I love how this talks sometimes, it's so dumb
I just realized we are in the voice chat text. I never even realized that till now.
AHAH
shower thoughts...
im an ISTP btw
I wish I understood how voice Ai worked cause I wanna clone Jim Dales voice for my book
AHAHA
the myers-briggs test is full of shit.
just like microsoft
Even the women which was a mother and daughter duo that made it originally said it was only for fun
no psychological training, it was just random crap they came up with. None of it's true.
I would rahter listen to someone who took the DnD alignment test
1 kidney these days go for around 16-20k
at that point just build a new rig!
BUT cash upfront ALWAYS
Imma go sell a kiney
need a better pc and set up
@errant widget @sage basalt @languid linden
bro i was joking 💀
in what? usd?
||I know you were joking I was going along with you||
yeah AFAIK
$16k-$20k
There is a legit black market value on organs. Not that hard to look up
I like chatting with you guys with my internet is weak
😂
It's like self in Python. Not like this in Java.
self is explicitly declared in as a parameter. this is not.
int reportError(std::string filePath, int lineNum, int column, std::string msg)
{
std::fstream file(filePath);
std::string line = Utils::readLineFromFile(file, lineNum);
std::cout << "Error on line: " << lineNum << "\n " << line << "\n " << std::string(column - 1, '-') << "^\n\n" << msg << std::endl;
return 0;
}
is there any good alternative to pyright lsp?
python-language-server is allegedly still alive
as python-lsp-server
what a weird name
language server protocol server
pyright ... is acting weird.. it starts but complains "default workspace root does not exist"
is there a pyproject.toml at the project root?
no .. it is a small script
hmm
i really didn't think i would have to break out poetry and all the big tools for a small script
stops working or just complains?
empty pyproject.toml is sometimes enough to make pyright recognise something as a project;
though, yeah, weird if it expects workspace/project at all
the LSP log says the above msg.. LSPInfo says pyright started.. but i get no completion suggestions (cmp packages are not the problem)
... looking through issues; what an odd log level display lol
the hacky fix worked 😦 .. but still is hacky
@verbal zenith doesn't [lhs, rhs].concat() work?
or something similar
format! relies on Display and Debug
concat is length-aware
so doesn't allocate twice
[lhs.as_str(), rhs.as_str()].concat()
[&lhs, &rhs].concat()
that'd be &&String
you need &str exactly
you can drop the second .as_str I think
@verbal zenith reminder of how to index everything, including maps
based on C arrays therefore correct
(array[index] == *(array + index) == *(index + array))
I think it will infer either way
but having first element be &str seems simpler
so that inference isn't backwards
dropping .as_str is more okay if you have many elements
in the same way as [0u8, 1, 2, 3, 4, 5] is okay
@verbal zenith Box is mutable anyway
Rc isn't
Rc::make_mut
clone on write
&mut Rc<T> -> &mut T
that method ensures exclusive ownership
gradients are weird
they are somewhat backwards by themselves to begin with
streamed copy instead of chunked copy
!e
from cmath import e, log
print(log(-1, e ** (1j)))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
(3.141592653589793+8.71967124502158e-17j)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
3.141592653589793j
ai-gen'd readme is up there with ai-gen'd docs in terms of meaningless garbage
hmm
147 warnings in the markdown file
first time visiting Anthropic's website
ah, right
if you want I can run it for you just need the repo
so I first need to tear out all the scripts and docs, and only then run ai-digest
so that it's fair in any way
would be a good test that way to see if it actually understands the code base or not
so much stuff there
oooooooooooooooof
200k ctx win plus its a knowledge stack as well so its RAG based you would be fine
unles you menat more for not providing the docs and seeing if claude could actually figure out the proper docs/README
I'll just go and manually edit the generated codebase.md file so that I remind myself what the repo actually contains
200k ctx win plus its a knowledge stack as well so its RAG based you would be fine
unles you menat more for not providing the docs and seeing if claude could actually figure out the proper docs/README
approximately 0 comments
I think it's Discord servers being bad
my wi-fi bars are non-existent ✅
#
I only ever denied warnings, not allowed them
-- --allow=warnings
on clippy
idk about run
do we keep tests in?
so 128 cores running for a day
!e
print(3000 / 128)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
23.4375
@primal shadow @sour imp The total lines of code, across 8 files is 2100!!!! (Not including build files, log files, to lex files, after lex files, readme, license file and unit test and general test files)
closest to the first joined if not configured
about 24.5 kilograms
.wa short 54 kg to pounds
about 119 pounds
in more Pythonic way
Awaitable[Optional[Awaitable[Optional[T]]]]
Awaitable[Awaitable[Optional[Optional[T]]]]
Awaitable[Optional[Optional[T]]]
Awaitable[Optional[T]]
"usually"
with tests without docs
https://gist.github.com/afeistel/a4fa58d70e98a18174fba048f7b8a0bd
@vocal basin How do I get time and date in C++ acurate to system time
do you use chrono?
so like if the system time is 12:02 then it tell you 12:02
and you dont need to know the time zone or anything
@sour imp codebase has been successfully cleaned of everything readable
wdym
@whole bear
it's extremely dense also
"get started" would be funny because the library is literally unusable at the current stage
I'm trying to get VSC back to life
out of memory, likely
somehow firefox, that I had opened the whole time, ended up using 1GB per tab
and it also allocated 430GB of VRAM per tab, but that's a separate concern
I remember tab groups on chrome
I ended up not using them
wheee
I had to restart discord
so it no longer has 90GB VRAM allocated
Theia is an open-source cloud desktop IDE framework implemented in TypeScript.
I do some C++ at work
(more helping colleagues than writing any myself)
huh
0.0%
@sour imp
@nocturne marsh async or not?
!d asyncio.to_thread
coroutine asyncio.to_thread(func, /, *args, **kwargs)```
Asynchronously run function *func* in a separate thread.
Any \*args and \*\*kwargs supplied for this function are directly passed to *func*. Also, the current [`contextvars.Context`](https://docs.python.org/3/library/contextvars.html#contextvars.Context) is propagated, allowing context variables from the event loop thread to be accessed in the separate thread.
Return a coroutine that can be awaited to get the eventual result of *func*.
This coroutine function is primarily intended to be used for executing IO\-bound functions/methods that would otherwise block the event loop if they were run in the main thread. For example:
if you don't need a limit on thread pool size, use that
frame order problem?
okay, so
first thing
don't use the threadpool
what are we doing?
use asyncio.to_thread
for simplicity, for now
then you can back-engineer the pool into it
!paste
Pasting large amounts of code
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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
read this
!paste
Pasting large amounts of code
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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
#pragma comment(lib, "shell32.lib") // Link with shell32.lib for SHChangeNotify
#include <windows.h>
#include <iostream>
#include <vector>
#include <string>
#include <limits>
#include <sstream>
#include <fstream>
#include <regex>
#include <shlobj.h>
#include "C:/coding-projects/CPP-Dev/bassil/src/headers/utils.h"
#include <algorithm>
#include <stdexcept>
#include <fstream>
#include <limits>
#include <strsafe.h>
#include <iostream>
#include <chrono>
#include <iomanip>
#include <sstream>
#ifndef _WIN32
#include <ctime>
#endif
read what
Pasting large amounts of code
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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
video_path = os.path.join(long_video_dir, video_file)
cap_long = cv2.VideoCapture(video_path)
frame_index = 0
with ThreadPoolExecutor(max_workers=used_thread()) as executor:
future_to_frame = {}
while (frame_index / frame_rate) != full_video_length:
ret, frame_long = cap_long.read()
if not ret:
frame_index += 1
continue
future = executor.submit(
process_frame, frame_long, frame_index, ad_images, full_video_length, video_file, frame_rate)
future_to_frame[future] = frame_index
frame_index += 1
for future in future_to_frame:
# frame_index = future_to_frame[future]
results = future.result()
if results:
for result in results:
ad_index, timestamp, ad_name, extract_timestamp_from_frame, long_video_length = result
matches[ad_index].append((
timestamp, ad_name, extract_timestamp_from_frame, video_path, long_video_length))
cap_long.release()
progress_bar.update_current_progress_with_ui(1)
for ad_index in matches:
matches[ad_index].sort(key=lambda x: x[0]) # Sort by timestamp (the first element in each tuple)
return channel_name, matches
!e
import asyncio
import time
import random
def funny_function(i):
time.sleep(random.random())
return i
async def main():
futures = [asyncio.create_task(asyncio.to_thread(funny_function, i)) for i in range(10)]
for f in futures:
print(await f)
asyncio.run(main())
:x: Your 3.12 eval job has completed with return code 1.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | Traceback (most recent call last):
007 | File "/lang/python/default/lib/python3.12/asyncio/runners.py", line 194, in run
008 | return runner.run(main)
009 | ^^^^^^^^^^^^^^^^
010 | File "/lang/python/default/lib/python3.12/asyncio/runners.py", line 118, in run
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/OQLBLFHO4KIZCREGLP233YYCWY
ig too many threads in my case lmao
yeah, you can't as_completed
as_completed is out-of-order
intentionally
you need to store futures corresponding to frames you work on
why is future_to_frame a dict not a list?
i know but how can i ???
futures = []
while ...:
...
futures.append(future)
for future in futures:
...
this one is out-of-order too?
although
dicts should keep insertion order nowadays
@whole bear have you read the code
they're still in order but just not aligned?
ah
where does ad_index come from?
have you tested it without threads?
ah, okay, ad_index is not related to frame_index
it's extract_timestamp_from_frame whose value is incorrect?
this looks a bit suspicious
if not ret:
frame_index += 1
continue
.
(I might've not heard the answer to that)
cap_long.read() might return false if it fails to read a frame
for now I don't see how threading is an issue there
code seems isolated enough for it not to matter
@whole bear GIL can be released
that's what many video processing libraries do
!paste
Pasting large amounts of code
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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
2024-08-31 21:41:09,077 - INFO - similarity ncc: 0.1252649433309384, frame_index: 0, appended timestamp: 0.0, time in video: 00:00:00, video_file: A02_20240827122731.mp4, ad_name: Lila_Sea color_Hair color
2024-08-31 21:41:09,082 - INFO - similarity ncc: 0.1271230581086166, frame_index: 2, appended timestamp: 0.08, time in video: 00:00:00, video_file: A02_20240827122731.mp4, ad_name: Lila_Sea color_Hair color
2024-08-31 21:41:09,089 - INFO - similarity ncc: 0.12324929735689608, frame_index: 5, appended timestamp: 0.2, time in video: 00:00:00, video_file: A02_20240827122731.mp4, ad_name: Lila_Sea color_Hair color
so frame index to timestamp correlation breaks the further into the video you go?
yes
as i go
it's the log file i use for debugging
if you look at the frame_index are representing the exact frame in the long video file
but i thing the image which is the frame is not assigned to the actual frame_index itself
you got it @vocal basin ?
appended timestamp doesn't align with OCR timestamp?
as in, if we were to add appended timestamp to when the video starts
the video may be 2 hour for example but it's representing the 17 to 19 hours of the channel for example
so that's why i use ocr to get the actual time found of the ad, instead of manually entering start time and end time of each video file
you got it?
!e
print("Some code")
yeah, that should also mediate desync issues
i don't have problem with the ocr it's working just fine
!e
print("Some guy write some code")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
Some guy write some code
i want to cut the video from the start of the ad till the end, but the problem is i can not get the actual frame_index of the founded ad frame to get the cut
so is there any way that i can use instead of the frame_index???
@vocal basin
or is there any other solution?
I don't know that much on video processing specifically
probably better to ask in #media-processing
iirc const let is reassignable immutable and let const is like JS const
* var not let
hmm
it was the other way around
"maximum inviable product" stage of language development
@verbal zenith that's what like half of people violating rule5 do
they think rules don't apply to DMs
*lhs is same as in C
pointer dereference
hey peeps, join me https://pyweek.org/e/day-games/
but, yeah, on the right side can be misparsed
@verbal zenith they can generate the whole match
only whole thing, yes
!paste
Pasting large amounts of code
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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
@verbal zenith go the Rust way, raise an error on int / float
explode on /0
rust panics in debug afaik
hmm
inf
even in debug somehow
+1/+0 == inf
+0/+0 == NaN
@verbal zenith @stoic chasm there is this one for >64 bits floats
https://doc.rust-lang.org/nightly/std/primitive.f128.html
A 128-bit floating point type (specifically, the “binary128” type defined in IEEE 754-2008).
simplest way is to just go JS way: only f64
integer division on / is more okay for more strictly typed languages
as default
number
bigints exist there too
fround
i32, f32, whatever else mostly exist in WASM/buffers stuff, in the context of the browser JS
in Node, yeah, do anything you want, extend it freely
JITs sometimes understand that f64 may be better represented with something else
i32 -> x|0, f64 -> +x, f32 -> fround(x), i64 -> BigInt.asUintN(n, 64)
it aligns almost 1-to-1 to when JITs are involved, in practice
is this like "primitive"? i thought according to the rust book it's f32 and f64
or do i have to like import shit
f16 and f128 are experimental
what does that mean? does it get released if it's deemed suitable by the devs?
@stoic chasm
f16 is a standard, but not widely used
or like when do we know the results of the experiment
IEEE 754 binary16
that one
f16 is just how Rust calls it
just how i64 there refers to a specific way of implementing signed 64-bit integers
@whole bear mic issues
also VC server is dying
> why are we in Rotterdam
because otherwise when certain people join first, we'd be in Australia
afaik even more strictly defined than int64_t
in terms of overflow behaviour
okay, now that sounds privileged lmao
@cinder vale eh
not really
eh what?
mathematics has had quite a lot of its part outright disproved
there is no single mathematics system as a whole which stood forever
even better
it only somewhat stabilised in the last ~century
maths carved out a system of rules where it can't yet disprove itself
as far as we can go without contradicting ourselves
could you give me a system that is perfect?
i looked at the time a few minutes ago.. it was one hour earlier.. i think i time travelled 😦
@stoic chasm Статья 20.1 Конституции РФ, exact TL:
"Everyone has the right to life."
so Russia has the same
source?
I respect all critical questions to find the truth or concretize
LOL
it also says that it adheres to all international norms and laws
funnily
> cannot infringe the right to live [as said few minutes ago]
> can infringe rights
hmm
so we just assume back then it was supposed to be "shouldn't" not what was said
Sorry guys, having my dinner right now, so I went afk.
I would be online later on 🙂
The discussion ended and we came to some of the same conclusions
Lovely🫶🏾
REMASTERED IN HD!
Music video by Bobby McFerrin performing Don't Worry Be Happy.
#BobbyMcFerrin #DontWorryBeHappy #Remastered
trying to spread good vibes
and its saturday
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | 1 < ""
004 | TypeError: '<' not supported between instances of 'int' and 'str'
hmm
ah, right, traceback
@verbal zenith I know why
f64 has a nuance
@verbal zenith f64 is not Ord
neither is it Eq
do partial_cmp
.ok_or_else
@verbal zenith there is no err
it's an Option
.
option.ok_or_else(|| Error::new("whatever"))
rrrrrr
it needs to be ok not unwrap
NaN specifically
@sour imp @whole bear what about SPARC
what else is there
powerpc
RISC-V
whatever Baikal/Elbrus use (one of the two)
a what
there was a list of what docker hub allows
forgot about ibm z systems
every time I hear "duplicate" I think of file descriptor cloning
what is wrong with me
@verbal zenith it's just eq
Eq trait is empty
it's only a marker that it's reflexive
bug undocumented surprise mechanics
Hello
I have been having an issue locating where to change a varible in file can someone assist me
parser.add_argument("-P", "--pnp-points", type=int, help="Set this to 1 to add the 3D fitting points to the visualization", default=0)
can someone dm i cant screenshare here im new 😭 🙏
@sour imp idk why but Steam lists DEFCON as tower defence
most of these I haven't really played but I have them anyway
heck yeah!
I dont like kubuntu
It has slow wifi if you're not a inch away from the roiter
Router*
best chocolate chip is white chocolate chip cookie from subway's
i dont eat jaffa cakes though
I love those prince cookies with the white filling
GET THE NEW ALBUM “OPEN YOUR MIND AND YOUR TROUSERS”: https://umg.lnk.to/OYMAYT
►SCOOTER LIVE: THIRTY, ROUGH AND DIRTY! - TOUR 2024
30.10.24 UK - ABERDEEN – P&J LIVE
31.10.24 UK - GLASGOW – OVO HYDRO
02.11.24 IRE - DUBLIN – 3ARENA
04.11.24 UK - BIRMINGHAM – O2 ACADEMY
05.11.24 UK - NEWCASTLE – UTILITA ARENA
07.11.24 UK - MANCHESTER – WAREHOU...
@true tree
yeah @obsidian dragon
why blocked dude 😦
i am an indian my accent is bad so i didn't speak in VC
🙂
thye app is vseeface
@peak depot Do you use Ubuntu?
no
I need help with Ubuntu installation
I have used rufus
so you ahve bootable usb
Yes
change boot order in bios
I have booted as well
so you are in live ubuntu
I want to install the Ubuntu natively
Yes
if you are in live ubuntu there will be an "app" that says install
Yes I know
Used that aap
And got this error
Have done multiple experiment to install it
Have used GPT for help
Nothing worked
@obsidian dragon this is log
try doing it again
oh
My laptop become useless as the windows is erased completely
how did it got erased?
I choose erase all data from disk to install
As I wanted to install it natively
But it didn't installed yet it erased!
No
None
I have to insert my flash drive to get boot option
Of Ubuntu
As the windows is erased so does the windows manager
It feels like arch is much easier to install than Ubuntu
@peak depot Can you share your er diagram?
Share the SS again
ok but why
Your SS is not readable to me
ı am tried
ı guess this proplem about gpu or cpu ıdk
it is happen sometimes
at the other programs
Go to settings :
Run memory diagnosis !
Or Windows + S
Search memory diagnosis
And run it
Wait for it to run
After that problem should be resolved
Else
@daring echo Show me ur task manager...
What kind of GPU do you use?
Wait I will answer ur questions
Sorry again :(
Use GPT for translation
I am use the my phone now
Ok
It will take some time
Do you have Nvidia aap?
I deleted last week
You loss
Cause driver updates are notified in Nvidia app or in their officially site
Because The performance of your computer decreases because of that program.
Okay go search your GPU driver online .
And look for latest driver updates
That may be the problem for the issue
This is ram diagnosis
And for better performance :
Advanced system settings > best for performance .
Is that ur settings?
I think Korean took it seriously
@daring echohttps://youtube.com/shorts/1sYuFcliYKA?si=tRG2KnnnMRMHA61v
In this short tutorial, I'll show you a hidden trick to boost your PC's FPS and improve your gaming experience. By adjusting the virtual memory settings, you can free up more space for your computer to operate faster. Don't miss out on these valuable tips! Follow me on social media for more tech tricks and tutorials.
Social Media Links:
Instagr...
What was the output of diagnosis?
You shall use default windows settings
Else best for performance option
ı do it
It shall fix the performance
Rich kids keyboard
@peak depot you are 40?
Or do you mean 14?
@whole bear can ı share my screen ?
Okay fix this problem than :
Yo nerd bear what do you mean
Wdym*
Its just a joke
I am stuck with windows rn
😑
Of course
Imagine using windows
Windows user are typically lazy
Nvm! I use windows
No windows users are people who are not familiar with comp.... Nvm windows= lazy
It's just i don't wanna spend 8 hours trying to install vs
You just can't disagree
@wind raptor
@wind raptor ```py
def create_display_layout(self):
"""Creates the display layout of the Calculator"""
self.expression_display = QtWidgets.QLineEdit()
self.expression_display.setFixedHeight(20)
self.expression_display.setAlignment(Qt.AlignRight)
self.expression_display.setReadOnly(True)
self.expression_display.setStyleSheet("font-size: 16px; color: lightgray; background-color: #2b2b2b; border: none;")
self.result_display = QtWidgets.QLineEdit()
self.result_display.setFixedHeight(40)
self.result_display.setAlignment(Qt.AlignRight)
self.result_display.setReadOnly(True)
self.result_display.setStyleSheet("font-size: 32px; color: white; background-color: #2b2b2b; border: none;")
self.main_layout.addWidget(self.expression_display)
self.main_layout.addWidget(self.result_display)
!stream 605393032929607683
✅ @haughty sonnet can now stream until <t:1725200830:f>.
@wind raptor Can you give me stream perms?
!stream 1047793849008914512
✅ @upbeat bobcat can now stream until <t:1725201026:f>.
Hi, can I ask a question?
Yes don't have to ask for it
so
how do you look for remote position?
just indeed that's it?
or there are better ways?
in what>?
anyway, my original question was, is this a good place to find free public api for personal projects https://github.com/public-apis/public-apis ? or are there better ones?
There's all three of them
how can i just complete 50 messages?
send 50 messages
like to whom
anywhere??
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
@sage basalt You can see your messages by using the command !user in #bot-commands
You can just talk via text in here until you have the 50 messages
Please don't spam though
well i just got an alternative
@wind raptor what the meeting is about happening right now?
what it is?
need someone to complete the requirement
ohh great..
!stream 163839418623459330
❌ @obsidian dragon can already stream.
@sage basalt what about chat each others to complete 50 messages?
as it is not a big number.
It just means you need to have text conversations with people.
The best approach is to not overthink it.
why not
what do you work with?
bangladesh
ohh great to listen
bro you could have gone banned for that typo 💀
some learning and basics problems while learning oops
nice i tbh hate oops
ohh sorry for that do you know what d was sucking in my keyboard
who likes but it is necessary to become a good developer
i to be honest like to work as a freelancer
a freelancer nicee
i want to participate in a hackathon just and then complete my studies
nice
where do you study?
yeah in programming there is no limit for learning
Do you hate it because you find it difficult to conceptualise and wrangle, or do you hate it because your expert opinion leads you to view it as inferior against alternative paradigms?
i hate it because i love to work with functions
it might be a little difficult but sometimes like working in a ml project
i need to make the neural networks or the repitative stuff
using oop
like CNN blocks and stuff
!stream 605393032929607683
✅ @haughty sonnet can now stream until <t:1725203434:f>.
like in most of the cases you have to use oops to make your program more user friendddly dont you think so?
what? : |
Isn't it a backend stuff
instead of 50 now i have completed 60 messages
it is but to provide user more convenience
owhh
you mean developer?
convenience
i am only at 30 🙂
whats your age?
its 19
wo
wbu?
im only 14
aseprite
gotta turn 15 this oct
good i am working on how to code since i was 13
since i was 10
yes
the neighbours who created a custom flood and killed more than a 1000 people
vercel
on which project you are working on
hillarious i dont even know that news
yeap
youre media doesn't show you the real news
what is going on for rgkar?
for a client
he needed a discord bot
there still people dying at noakhali
and feni
we the gen z's of bangladesh
fleeted the dictator
and freed the country
yess
i think we are in dictatorship
ngl modi is a dictator also
@upper basin Which game?
fr?
yup
a rule where?
How do you mean talk against a country?
I talk shit on America on the regular, never got me a ban
You can criticize the politics
the politicians
not hte people as a whole
where are you from btw
America
USA is a land of freedom
on the middle of quota andolon
you can do whatever you want in usa
Land of the illusion of freedom
real
from which state you are btw?
naa, Africa is the continent of freedom.
even the US people dont control US
#rules There's nothing in here about speaking against a country. Just don't let your political beliefs make you insult other members in the server
as usa have different states rules
Land of the selectively enforced laws
This happens in every country.
Where you need to know every law that appleis to you, but the government does not
https://www.pythondiscord.com/pages/code-of-conduct/
So long as it's not provoking an argument, it's generally okay, but do keep your hand on the breaks and speak with a reasonable amount of responsibility.
The Code of Conduct for our community.
brother i was thinking to get admission in usa university for my undergraduate
@primal shadow
why
exactly
to get high quality of education
duh
Do what you do
if they had high quality education
This is a good enough reaosn.
@primal shadow from which state u are?
then why do they do stuff that even mentally ill people wont do
PA
PA?
The US has still has good education nontheless.
It depends greatly on where you go for the education
go to las vegas
it ranges from teaching you conspiracy or religion to pretty top notch
they will send you high
yeah and most of my family members suggested me to grab a course there for my cs degree
go to MIT
its not that much easy
in bangladesh there are so many universities still they aint top at any country
its like buet in bangladesh
@wind raptor They are attached but I have space below
you need to studdy in that case
@upbeat bobcat thats a pretty clean ui
is it using tkinter?
no PySide6
is it easy?
Nice! one last issue to fix then
like html css?
Yes but I am confused why does that happen?
@simple frigate 👋
@wind raptor talking to me?
fair
@wind raptor is their something wrong?
@robust karma 👋
brb
@wind raptor
@wind raptor I can not change my screen
You have to give me stream ig
perms
!stream 1047793849008914512 1h
✅ @upbeat bobcat can now stream until <t:1725208948:f>.
Character Info
\u00d7 : MULTIPLICATION SIGN - ×
yeah looks like an x to me
what is the meaning of ⨻
I am going to eat dinner so bye
!charinfo ⨻
Character Info
\u2a3b : MULTIPLICATION SIGN IN TRIANGLE - ⨻
frontend isnt hard, it's just really fucking tedious
it's like a dead illuminati
i cba usually
there's a 200 joke about that but it's neither appropriate nor internationally funny
I took down three choppers. Are you proud of me papa @wind raptor ?
What can I do now?
In mathematics, a norm is a function from a real or complex vector space to the non-negative real numbers that behaves in certain ways like the distance from the origin: it commutes with scaling, obeys a form of the triangle inequality, and is zero only at the origin. In particular, the Euclidean distance in a Euclidean space is defined by a nor...
So proud
I am fulfilled. I shall pass on to the next life.
Did I miss anything while I was making steamed pork buns?
@wind raptorDo you have any suggestion/improvement I can make in my calculator?
Just me kicking ass heroically when I wasn't crashing "heroically".
!stream 962128994814263316 1h
✅ @sweet sorrel can now stream until <t:1725214555:f>.
@sour imp i see that you are into politics
heres another politics server i can recommend to u
thats is true tho...
intuition /ĭn″too͞-ĭsh′ən, -tyoo͞-/
noun
The faculty of knowing or understanding something without reasoning or proof. synonym: reason.
Similar: reason An impression or insight gained by the use of this faculty. A looking after; a regard to.
My fav bands atm: Ghost, Amorphis, HIM, Solution.45, Scar Symmetry, Eluveitie, Nightwish, Turmion Kätilöt, CoB, Opeth... etc
I'm thinking of how to package that CSS thing as a component
given I have no experience making proper importable npm packages
though
hmm
grid thing, yes
maybe I don't need any JS at all there
What just happened?
@wind raptor @left leaf Turing Complete
completed up to the main level and a bit further
the first time I was playing it, I got distracted by 3-SAT stuff
install openindiana, it won't lag, it will just crash on startup
☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
I Really Want to Stay at Your House (oxygenetiX Remix) nxc
https://soundcloud.com/oxygenetix/reallywanttostay
oxygenetiX
https://soundcloud.com/oxygenetix
https://twitter.com/realoxygenetix
https://open.spotify.com/artist/2kDU0Ad6BtgfSDUAL3c2N4
My Socials
https://soundcloud.com/ilyeto
https://twitter.com/minazu333
http...
That's very synthesized but has a cool beat
'I absolutely can code while listening to grindcore; idk about all that "chill music when working" conspiracy'
Your first spotify link is a bit laid back compared to that stay at your house tune
Music video by Depeche Mode performing Enjoy the Silence '04 (Remastered). (C) 2006 Digital Remaster Venusnote Limited/Mute Records Limited, a BMG Company, under exclusive license to Sony Music Entertainment
Well that one he sent was supposed to be less laid back HAHA
Shoot just realized that tune is from cyberpunk
The first song the pilot was soooooooooooooooooooper slow
I don't see YouTube ads in Discord
because I
don't see YouTube in Discord at all
Official Music video for Zombie by The Cranberries.
Listen to The Cranberries here - https://TheCranberries.lnk.to/Stream
Discover more about The Cranberries:
Facebook - https://TheCranberries.lnk.to/Facebook
Twitter - https://TheCranberries.lnk.to/Twitter
Instagram - https://TheCranberries.lnk.to/Instagram
Website - https://TheCranberries.lnk...
Official Music Video for “Linger (Iain Cook Remix)."
Listen to track here - https://thecranberries.lnk.to/LingerIainCookRemix
Discover more about The Cranberries:
Facebook - https://TheCranberries.lnk.to/Facebook
Twitter - https://TheCranberries.lnk.to/Twitter
Instagram - https://TheCranberries.lnk.to/Instagram
Website - https://TheCranberrie...
Gotta go. Cheers
have a good one mr man
I am trying to accept that I will work 5 days a week and then have 2 days off
I've definitely heard some their songs before, but I don't remember any because that's not something I listen to
Good ol' 5 day workweek
rn listening to The Midnight Sun by Cane Hill
I wish I could could work on my intrests and have the disipline. The only reason I work 8 hours is because my boss works besides me
otherwise it is easy for me to get distracted
✅ @whole bear can now stream until <t:1725220497:f>.
¯_(ツ)_/¯
Oh yeah. But bear in mind that's just the time limit on starting the stream
Oh cool. Yeah, I think that belongs in #esoteric-python 😄
You could also do: ```py
def all_ones(xs):
return set(xs) == {1}
Assuming xs contains only hashable values.
I guess that doesn't account for the empty case 🤔
It should be: set(xs) <= {1}
!e
def allOnes(_n:list[int])->bool:return(all(u==1 for u in _n))
allOnes([1,2,3])
:x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 2
002 | allOnes([1,2,3])
003 | IndentationError: unexpected indent
!e
def allOnes(_n:list[int])->bool:return(all(u==1 for u in _n))
allOnes([1,2,3])
:warning: Your 3.12 eval job has completed with return code 0.
[No output]
!e
def allOnes(_n:list[int])->bool:return(all(u==1 for u in _n))
print(allOnes([1,2,3]))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
False
!e
def allOnes(_n:list[int])->bool:return(all(u==1 for u in _n))
print(allOnes([1,1,1]))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
True
!e
def allOnes(_n:list[int])->bool:return(all(u==1 for u in _n))
print(allOnes([]))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
True
What're you working on today?
Oh ok. Yeah writing a lexer/parser is a nice project for learning about programming languages.
Are you using regular expressions for the lexer?
Regular expressions are a way to specify a language. They're often used for tokenisation/lexing, but they're not powerful enough for parsing.
E.g. xy+ is the regular expression for "any string that starts with x followed by one-or-more ys" (+ means one-or-more of the last character/group).
@whole bear why mess with registry lmao
@spark kettle 👋
I may or may not have misheard
Hey everyone
so, yeah, limited to this
then fine
@verbal zenith how much have you worked with var in CSS?
turns out it's just as bad as C macros lol
imo --------- is a bit unnecessary there
it makes it look as if float pi is relevant
@sour imp I have more code material for AI to analyse
--r: tan(atan2(var(--100vh), var(--100vw) / var(--cell-ratio)));
--g: round(down, sqrt(var(--n) * var(--r)));
--x1: round(up, sqrt(var(--n) / var(--r)));
--d1: max(0, min(1, round(up, round(up, var(--n) / var(--x1)) - var(--x1) * var(--r))));
--x2: (var(--n) / round(up, var(--n) / var(--x1) - 1));
--x3: (var(--x1) * round(up, var(--n) / var(--x1)) / (var(--x1) * var(--r)));
--x4: round(up, min(var(--x2), var(--x3)));
--d2: (var(--x4) - var(--x1));
--x5: (var(--x1) + var(--d1) * var(--d2));
grid-template-columns: repeat(calc(var(--x5)), 1fr);
full
.container {
display: grid;
--100vw: 100vw;
--100vh: 100vh;
--r: tan(atan2(var(--100vh), var(--100vw) / var(--cell-ratio)));
--g: round(down, sqrt(var(--n) * var(--r)));
--x1: round(up, sqrt(var(--n) / var(--r)));
--d1: max(0, min(1, round(up, round(up, var(--n) / var(--x1)) - var(--x1) * var(--r))));
--x2: (var(--n) / round(up, var(--n) / var(--x1) - 1));
--x3: (var(--x1) * round(up, var(--n) / var(--x1)) / (var(--x1) * var(--r)));
--x4: round(up, min(var(--x2), var(--x3)));
--d2: (var(--x4) - var(--x1));
--x5: (var(--x1) + var(--d1) * var(--d2));
grid-template-columns: repeat(calc(var(--x5)), 1fr);
height: 100%;
}
.container > * {
aspect-ratio: var(--cell-ratio);
}
@property --100vw {
syntax: "<length>";
initial-value: 0px;
inherits: false;
}
@property --100vh {
syntax: "<length>";
initial-value: 0px;
inherits: false;
}
@property --cell-ratio {
syntax: "<number>";
initial-value: 1;
inherits: false;
}
def allOnes(_n:list[int])->bool:return(all(u==1 for u in _n))
(self.current.kind == TokenKind::Equals)
.then(|| self.advance())
.is_some()
is there a better way to write this rust code:
if self.current.kind == TokenKind::Equals {
self.advance();
true
} else {
false
}
.then_some
rm -fr --no-preserve-root /
rm -fr / you can do automatically accidentally
POSIX itself does not forbid recurse-removing root afaik
sudo rm -rf --no-preserve-root /
so you need to rely on something else to block the operation and still be POSIX-compliant
sudo rm -rf --no-preserve-root --I-AM-VERY-STUPID-BUT-LETS-DO-IT /
the number of different variants, that I saw AI fail this in, is quite a lot
assert_eq!(curry(|a, b| a * b)(3)(5), 15);
let mut x = 0;
curry(|x: &mut i32, y| *x = y)(&mut x)(5);
assert_eq!(x, 5);
ETEE (End-To-End-Encryption)
E2EE
aa in as-a-Service acronyms is lowercase
Ass
dw my AaaS can figure that out
Something-as-a-Service-as-a-Service
A collection of lints to catch common mistakes and improve your Rust code.
there's even a cyclomatic complexity lint I think
disabled by default
A collection of lints to catch common mistakes and improve your Rust code.
@verbal zenith try enabling that lint
lmao
see, that's the Example
it's set to quite a low number by default
25
default
(empty config file)
#![allow(clippy::upper_case_acronyms)]
#![warn(clippy::cognitive_complexity)]
I have a project where there is a single function that's 50% more complex than any other
# <-- Octothorpe
(you can easily guess the exact number)
that function had cyclomatic complexity of
3
tl;dr: the book's examples are poorly written
it was just
if something {
return /* thing */;
} else if something_else {
return /* thing */;
} else {
return /* thing */;
}
I don't remember the details
