#ot1-perplexing-regexing

1 messages · Page 553 of 1

low chasm
#

Id recommend xubuntu or lubuntu if you want a lightweight distro

subtle dagger
#

I just want a snappy experience

#

I have 4gb ram and a hdd

low chasm
#

Alright

#

What about your cpu?

latent scaffold
#

That's not how it works

low chasm
#

^

subtle dagger
#

I have a penguin sliver n5000 with integrated intel uhd 605

low chasm
#

Ah

subtle dagger
#

Also now that ik that’s not how it’s work I won’t try kde

low chasm
#

Xubuntu should give you a snappy experience

latent scaffold
#

RAM is where most of your issues will come from

low chasm
#

^

subtle dagger
#

Yea I figured that

latent scaffold
#

You can tweak Plasma to use less RAM, though

low chasm
#

I'd recommend using xubuntu, lubuntu, or just using a WM such as openbox

#

Openbox will be the lightest

subtle dagger
#

Is that easy to customizes

low chasm
#

You can make it look however you want

subtle dagger
#

All wm are, the questions is, how hard is it

low chasm
#

Xubuntu uses xfce, and that's really customizable too

low chasm
#

You'll have to know how to edit config files, and know your way around Linux

#

But nothing expert level

subtle dagger
#

I think that’s something I will do another time

low chasm
#

Yeah, i wouldn't recommend openbox to a new user

subtle dagger
#

But I do plan on use a wm, just not now

low chasm
#

Why not go with xubuntu?

#

Xfce is pretty customizable

subtle dagger
#

Il compared with lubuntu

low chasm
#

Alright

subtle dagger
#

There both customizable so it’s a matter of which is faster

last mantle
#

Qt da best

latent scaffold
#

Eh not really

#

I mean XFCE is preferable over LXQt

last mantle
#

ok

wary dagger
#

you can make a bootable hard drive with linux in it

sinful river
lunar crescent
#

we don't tolerate talking about hacking in this sever

mellow spire
#

you don't need to ask that in every channel, thankyou!

dusky bone
#

What is ethical hacking ?

#

How can i learn it

#

what are the requirements for it?

gritty zinc
#

If you don't know what it is, how come you want to learn it?

dusky bone
#

just felt cool

#

lol

#

I do have a little bit of understanding about it

#

very little very very very little

#

just wanted to listen from you guys

#

is it related with Cyber security? or what

rough sapphire
#

White hat hacking?

dusky bone
#

hu?

rough sapphire
#

yes

inland wolf
#

Ok

misty yacht
#

oonga boonga im hackerman

lunar shore
# dusky bone hu?

White Hat hacking is like legal hacking , where you test other people's like, application/website for them , and find any sort of penetration points, and get paid

narrow cape
#

You should start with easy CTFs. Spoiler alert: offsec can be quiet boring though

ruby fox
#

Long long ago ,so long ago, no one know how long ago, I spoke on this server

rough sapphire
#

Nice

winter terrace
#

i will beat all of you in hangman fight me cowards

twin charm
#

omg @ruby fox

#

I remember you!!

#

I remember you rick rolling that dude.

scarlet wind
#

define 'that dude'

vapid nymph
wraith hound
#

Did you just fork it?

vapid nymph
#

its so long the website broke

wraith hound
#

Because it's at 1k for me

vapid nymph
wraith hound
#

LOL

vapid nymph
#

.gh repo microsoft/vscode-python

median domeBOT
vapid nymph
#

WAT

#

.source gh

median domeBOT
#
Command: github

Commands for finding information related to GitHub.

Source Code
vapid nymph
#

https://api.github.com/repos/microsoft/vscode-python

#

ohhh

#

.gh repo DonJayamanne/pythonVSCode

median domeBOT
#

This extension is now maintained in the Microsoft fork.

vapid nymph
wraith hound
#

Noice

vapid nymph
#

lmfao i have both vscode and vscode insiders running at once

wraith hound
#

@young shoal When is public static void main used in code?

young shoal
#

entry point for a java program

wraith hound
#

So you do that when you're starting a new java program? I see

rich moon
#

java so weird

#

when their entry point also has to be in a class

lunar shore
acoustic moss
#

Which argument?

latent scaffold
#

String[] args

lunar shore
#

^

latent scaffold
#

I'm pretty sure it's String args[] tho

lunar shore
#

Yeah I said

#

I hate java, and I don't know much about it

acoustic moss
#

both are valid

#

String[] args and String args[]

#

String[] args is preferred

latent scaffold
#

weird

acoustic moss
#

the two aren't always exactly equivalent

#

String[] a, b; would create two String arrays

#

String a[], b would create one String array and one String

rich moon
#

imagine using java tho

#

where everything must be in a class

acoustic moss
#

yes

rich moon
#

my only problem with java. once ppl learn it they make everything a class

latent scaffold
#

love classess

#

but Java overdoes it

lunar shore
#

Python is object oriented but you dont have to make everything be a class

#

Whenever a language is purely something, and the interpreter doesn't help it , you know it's bad

#

Yes

#

except, java doesn't

#

idk it sucks

acoustic moss
#

lol

#

tbf
you could call python even more OO then java

#

because not everything is an object in java

lunar shore
acoustic moss
#

?

#

functions are very much objects in python

#

in fact

#

i think we have a nice big tag about it too

#

!fao did i get right

royal lakeBOT
#

Calling vs. Referencing functions

When assigning a new name to a function, storing it in a container, or passing it as an argument, a common mistake made is to call the function. Instead of getting the actual function, you'll get its return value.

In Python you can treat function names just like any other variable. Assume there was a function called now that returns the current time. If you did x = now(), the current time would be assigned to x, but if you did x = now, the function now itself would be assigned to x. x and now would both equally reference the function.

Examples

# assigning new name

def foo():
    return 'bar'

def spam():
    return 'eggs'

baz = foo
baz() # returns 'bar'

ham = spam
ham() # returns 'eggs'
# storing in container

import math
functions = [math.sqrt, math.factorial, math.log]
functions[0](25) # returns 5.0
# the above equivalent to math.sqrt(25)
# passing as argument

class C:
    builtin_open = staticmethod(open)

# open function is passed
# to the staticmethod class
acoustic moss
#

yep

royal lakeBOT
#

@west zephyr :white_check_mark: Your eval job has completed with return code 0.

<class 'function'>
lunar shore
#

what in the world

#

lol

acoustic moss
#

even a docstring is an object 😛

lunar shore
#

right

dark verge
acoustic moss
#

indeed

#

summoning @rugged echo

edgy crest
#

i have an objection

acoustic moss
#

splish splash your objection is objectively trash

edgy crest
#

i did not have an objection objected against you but you objectively trashed me

lunar shore
#

So many objects

#

lol

pallid ether
#

so umm

#

what is unwrap in rust

low chasm
#

Eyy

#

It's useful when you want to write stuff quickly

pallid ether
#

so its like some null handling thing?

low chasm
#

Read the rust book, it's the best rust tutorial out there

edgy crest
# pallid ether what is `unwrap` in rust

basically if you have a Result<T, E> calling unwrap on it will give you T and error out if it was E, and on Option<E> it will give the value inside Some() and if it is None it will error out

low chasm
#

I should go sleep, gn guys

edgy crest
#

gn

pallid ether
#

oh

edgy crest
#

unwrap is basically a quick way of unwrapping values inside a Result or Option

#

its not recommended in production unless you are absolutely sure that the Result or Option will have Ok or Some

latent scaffold
#

TL; DR: unwrap if you're lazy like me

edgy crest
#

same

#

lol

latent scaffold
#

tbh I've not even used much Rust lately

edgy crest
#

same

#

more like i dont find any use for it right now

lunar shore
#

Oh lol the unwrap thing in Rust is so similar to a function named "bind" in haskell , lol wow
So considering you have a value MyType 10 , you can extract that 10 and do whatever with it, using the bind function , it would look something like

main = do
  boundValue <- MyType 10
  print $ boundValue * 2 -- prints 20
pallid ether
#

umm

error: format argument must be a string literal
 --> DataTypes.rs:6:14
  |
6 |     println!(string);
  |              ^^^^^^
  |
#

sorry, just new to rust

#

what is this error for

edgy crest
#

println!("{}", string);

pallid ether
#

but why doesnt it work just with that

#

yk what im not even gonna question it

edgy crest
#

¯_(ツ)_/¯

acoustic moss
#

yeah

#

its kinda cring

#

ngl

pallid ether
#

rust has pointers?

edgy crest
#

techincally i guess

#

it has mutable references

inland wolf
#

yes

edgy crest
#

and raw pointers if you use unsafe block

inland wolf
#

and smart pointers

edgy crest
#

to communicate with C code

pallid ether
#

oh

edgy crest
#

yeah

pallid ether
#

btw what is &

edgy crest
#

reference

inland wolf
#

reference

#

nice

pallid ether
#

example?

#

i dont know what a reference is in rust

edgy crest
#

&variable will mean a reference to the memory where the variable is placed

inland wolf
#

it wont actually store the data of variable

edgy crest
#

you use this to make sure that a variable is not passed to some other block

pallid ether
#

ohh

inland wolf
#

yes

#

so u dont lose ownership

edgy crest
#

yes

pallid ether
inland wolf
#

and u can avoid cloning

#

u can dereference a reference to get its data

pallid ether
#

how do you dereference?

inland wolf
#

*variable

pallid ether
#

oh

#

this makes much more sense than cpp

inland wolf
#

but for using methods u dont need to dereference

#

u dont have to (*variable).some_method()
to get its method
variable.some_method() will work because rust automatically dereferences

edgy crest
#
fn main() {
    let my_var = 45;
    print_var(&my_var);
    println!("{}", my_var); // if you dont give reference to function, you cant use my_var here again
}
fn print_var(var: &i32) {
    println!("{}", var);
}```
#

read the owner ship chapter in the rust book it explains well

inland wolf
#

well its an integer so it will just copy

edgy crest
#

just an example gremlin

inland wolf
#

yes

pallid ether
#

is it recommended to let rust automatically deref?

inland wolf
#

yes

#

it wont deref mistakenly

#

u don't have to worry abt deref most of the time

edgy crest
#

also you only need to deref mutable references when you want to change the value

inland wolf
#

yes

edgy crest
#

other than that rust handles it

pallid ether
#

yes

#

i now like rust

edgy crest
#

nice

inland wolf
#

lol

pallid ether
#

should i use use std::io

lunar shore
#

io is io

latent scaffold
#

tokio io

acoustic moss
#

You may have forgotten closing a parentheses one day and are still writing in it.
-random redditor

edgy crest
#

wut

rough sapphire
#

what the hell udemy?? I saw a course for 15 bucks, then I logged in and now its 129$

latent scaffold
#

oops

last mantle
#

ok

inland wolf
#

ok

tribal aurora
radiant estuary
last mantle
#

e

rough sapphire
#

*impossible quiz

tribal aurora
latent scaffold
#

yes

radiant estuary
last mantle
#

tkinter

#

:(

finite sierra
#

!user

royal lakeBOT
#
anand#8837

hypesquad_balance

User information

Created: 4 years, 3 months and 11 days ago
Profile: @finite sierra
ID: 271586885346918400

Member information

Joined: 1 year, 8 minutes and 42 seconds ago
Roles: <@&542431903886606399>, <@&518565788744024082>, <@&463658397560995840>, <@&764802720779337729>, <@&267630620367257601>

Infractions

Total: 1
Active: 0

finite sierra
#

joined here 1 year ago, today lemon_hyperpleased

last mantle
#

happy cakeday

finite sierra
lunar shore
#

Damn haskell is impure lmao

latent scaffold
#

!user

royal lakeBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

latent scaffold
#

\😢

lunar shore
#

I didn't know like what the hell

tribal aurora
latent scaffold
#

yes happy 1 year birthday

finite sierra
#

thank you

#

now who buys me cake

tribal aurora
#

python ?

lunar shore
acoustic moss
#

just tell me your address bro

inland wolf
latent scaffold
#

ask your fatha when he comes back with the milk

last mantle
inland wolf
#

bruh

acoustic moss
finite sierra
#

😩

latent scaffold
#

maybe you can use the milk to make cake

last mantle
#

summon avery

lunar shore
latent scaffold
#

wot

acoustic moss
inland wolf
last mantle
#

lol

acoustic moss
#

who's candie

inland wolf
#

yuri's sister

acoustic moss
#

who's yuri

tribal aurora
inland wolf
#

candice's cousin

lunar shore
#

Like let's say, you wanna print in a function that's not IO :

launchTheNukes :: IO ()
launchTheNukes = putStrLn "BOOM!"

evilSucc :: Int -> Int
evilSucc x = unsafePerformIO $ do
  launchTheNukes
  pure (succ x)

Boom , evilSucc is not IO, but it still does an IO action , which is a side effect

acoustic moss
#

who's candice

inland wolf
#

joe's sister

acoustic moss
#

who's joe

inland wolf
#

candie's dad

acoustic moss
#

who's candie

inland wolf
#

yuri's sister

lunar shore
acoustic moss
#

who's yuri

inland wolf
#

candice's cousin

acoustic moss
#

who's candice

inland wolf
#

joe's sister

acoustic moss
#

who's joe

tribal aurora
#

stop

acoustic moss
#

ok

inland wolf
#

deez's son

#

ok

acoustic moss
#

i know deez

inland wolf
#

he has ligma

acoustic moss
inland wolf
#

ligma balls

acoustic moss
#

sure bro

lunar shore
inland wolf
#

bruh

last mantle
#

😞

radiant estuary
#

the joe family tree

radiant estuary
inland wolf
#

lol

acoustic moss
#

lmao

lunar crescent
#

lol

edgy crest
ruby fox
#

Huh

tribal aurora
rugged echo
rugged echo
rugged echo
floral dove
spice finch
#

i just

#

drank a not very strong beer

#

my mom tell me to

#

try it

#

ended up drinking the whole can

honest pawn
brazen ingot
#

ok done

mint lichen
#

this is kinda a stab in the dark but does anyone know at what temperatures most he3 fuses into he4 in stars?

last mantle
#

must be higher temps than H + H

#

but eh google is the best source

mint lichen
#

yeah, I've looked all over google but I just can't find anything whatsoever

#

wikipedia lists the temperatures for each he3->he4 branch, but with literally 0 sources, and I can't find anything about the core temperatures of various classes anyways

sweet ginkgo
#

Who does know Golang? I am interesting is there a point to study it for Web-development.

tardy rain
#

Its a backend, so sure

signal sigil
#

i need help

wraith hound
#

With what?

rough sapphire
#

Bought some udemy course... the site is so garbage. always top reviews, but then it turns out to be yet another indian dude who just rattles down terms and acronyms without explaining anything...

#

I wonder if he himself even understands any of it.

rough sapphire
#

"augmented startups"

mellow spire
#

ah

rough sapphire
#

you know them? i guess the practical parts are better

vapid nymph
#

NOOOO

mellow spire
#

nope idk them

vapid nymph
#

oh

#

aha

#

AHAHAHAHA

#

how the fuck did i fuck up my windows path

#

oh

#

shit

#

i remember how

#

yeah that was a dumb decision

rugged echo
latent scaffold
vapid nymph
#

nope!

#

but i got to where i can reset my path

#

just gotta do it

latent scaffold
#

I get an error with PowerShell in Windows Terminal

#

but it's a VM and so I have to open up cmd first

#

and then it works

vapid nymph
#

RESTORED

#

YAY

#

@latent scaffold tl;dr i cleared my system path env

latent scaffold
#

weird

#

Windows amirite

vapid nymph
#

lol

#

the issue was all of my non standard apps couldn't find powershell or cmd

rough sapphire
#

cold water tastes different than warm water idc

#

wait wrong server
still though
they taste different

distant hazel
#

i think temperature affects taste yes

#

different brands of bottled water also taste different

vapid nymph
#

@rough sapphire do you use vsc?

rough sapphire
#

whats VSC?

rough sapphire
vapid nymph
#

:blink:

vapid nymph
#

With a logo not unlike your pfp

runic lion
#

Is VSC > PyCharm?

#

(python beginner here that uses VS for c# dev)

rough sapphire
#

OH
yeah i get that a lot, but nah its just a design i made for my online persona, "the trickster"

rough sapphire
#

i havent used VSC myself but i have seen people code with it, i just think pycharm is more easy to the eye persay

runic lion
#

You know the vertical line shown by default in PyCharm that indicates max length for a line for scripts to be PEP8 compliant? Well i know I can disable it, but how important is it to actually wrap lines to that length in the real world?

#

When I first installed PyCharm I was like....wtf is this line doing here lol

rough sapphire
#

im not that advanced but it generally hasnt crossed my mind, i think youd be fine with or without it

rough sapphire
acoustic moss
#

As long as it stays around 120 chars you're fine imo

rough sapphire
acoustic moss
#

and well, if you're crossing that limit it is possible that the structure of your code is going wrong

#

for example, if you're like 4 levels of nesting in, you might want to extract the inner code to a separate function

rough sapphire
acoustic moss
#

if you're making 200 character long list comprehensions, it is likely unreadable too

#

so yeah

#

the char count isn't a hard limit

#

but it's sure as hell good to stay under it

runic lion
#

cool, thanks all

pallid ether
#

which one do you prefer?
let x = "42".parse::<u32>() or let x: u32 = "42".parse()

boreal sorrel
#

i usually end up typing the type-annotated one, but i think the first one is more readable

acoustic moss
#

same

subtle dagger
#

What’s is a good Linux distro that uses KDE

#

Plasma

last mantle
#

kubuntu

subtle dagger
#

Why do u say that

rough sapphire
#

cent is also good

subtle dagger
#

Ik consider thos

last mantle
subtle dagger
#

I was just ask for your reason on why you would recommend that

#

Or were u just saying that

#

@last mantle

last mantle
subtle dagger
#

Ok

latent scaffold
#

Nobody uses Cent anymore

rough sapphire
#

i used to do that before 4 years.

#

any precise reason @latent scaffold

latent scaffold
#

CentOS is horrible for desktops

#

Literally no single person I know has ever even considered using CentOS as a desktop

#

I see it from time to time on servers, but it's still kind of horrible

rough sapphire
#

ah i see.

#

alright. I didn't hate it on that time, but not sure, im not that much into changing OS a lot now a days, so you may be true.

latent scaffold
#

CentOS just isn't used anymore

#

Even on servers, it's kind of bad

#

Most people will prefer Debian or Ubuntu

#

RHEL, even

rough sapphire
#

yeah im personally fine with ubuntu

#

not much fancy ui user

latent scaffold
#

Eh, love KDE Plasma

last mantle
#

Qt FTW

dusk solstice
#

Helloo people

rough sapphire
#

goodbye , world

dusk solstice
#

If you want to learn Korean....You can join this server

last mantle
#

lol

dusk solstice
#

😂

frigid rivet
inland wolf
#

I doubt it's much different

twin charm
#

!paste

latent scaffold
#

ahaha I forgot how pretty Minecraft looks with shaders

#

Then of course... full screen in F1-mode

rough sapphire
#

You use edge?

latent scaffold
#

Yes, I use Edge

rough sapphire
#

I do too

latent scaffold
#

I love Edge

#

Even on Linux

inland wolf
#

saem

rough sapphire
#

but not using bing , use google on edge

latent scaffold
#

Yes, as do I

#

also openSUSE and Arch both have given me a new appreciation for the colors green and blue

rough sapphire
#

@latent scaffold can't see edge supporting linux

latent scaffold
#

DEV channel

rough sapphire
#

?

inland wolf
#

ye

#

its in the dev channel

rough sapphire
#

which dev channel?

rough sapphire
#

that official?

inland wolf
#

yes

latent scaffold
#

yes, it's official

rough sapphire
#

aight thanks

inland wolf
#

lol

rough sapphire
#

1

inland wolf
#

should be params = {order_id: order['orderId']}

twin charm
#

~~ crossposting ~~

latent scaffold
#

shotgunning

royal lakeBOT
spice crescent
#

.

lunar shore
#

You don't want it to be printed?

#

then just remove the console.log(r.data) i'm guessing

dry bone
#

hello

rough sapphire
#

hi

calm dawn
#

If I use a library licensed under GPL, can I use MIT for my project?

calm dawn
#

🦗

latent scaffold
#

guys look I made something I don't understand

calm dawn
#

👏 yay!

latent scaffold
#

I've got a headache

last mantle
#

C++ part , heh

latent scaffold
#

idk what I don't understand

#

but it's confusing as heck

last mantle
#

eh C++ looks nice

#

i can understand what you have written

#

button.show() huh

#

try button.move(x=, y=)

#

ah im blocked :(

latent scaffold
#
#include <QApplication>
#include <QPushButton>

int main(int argc, char *argv[]) {
    QApplication a(argc, argv);
    QPushButton button("Hello world!", nullptr);
    button.resize(200, 100);
    button.move(0, 0);
    button.show();
    return QApplication::exec();
}
last mantle
#

show() is not needed imo

latent scaffold
#

yes it is

#

without it, nothing pops up

last mantle
#

woah wait

#

where is your main window

#

lol

latent scaffold
#

I've not got a main window

#

I'm so confused, man

last mantle
#

ok so

#

ig you understood App

latent scaffold
#

I didn't make this

#

CLion did

last mantle
#

Ok so app just executes whatever you have made

#

It's not a widget per se

#

It doesn't show on screen

latent scaffold
#

yes

last mantle
#

Window, dialog, widget is where you have to place widgets etc

#

You can choose any

#

Note that QMainWindow has an inbuilt layout

#

And needs a central widget

#

So , better choose dialog

#

Ig in C++ its

#

QMainWindow root(parent=None)

#

Or whatever c uses

#

Oops make that QDialog

latent scaffold
#

;-;

#
#include <QApplication>
#include <QPushButton>
#include <QDialog>

int main(int argc, char *argv[]) {
    QApplication a(argc, argv);
    QDialog root(nullptr);
    root.showNormal();

    QPushButton button("Hello world!", nullptr);
    button.resize(200, 100);
    button.move(0, 0);
    // button.show();
    return QApplication::exec();
}
last mantle
#

Mmmmm

#

I guess

#

Run it

latent scaffold
#

yes and it shows a blank little window

last mantle
#

Good

latent scaffold
last mantle
#

Note: it's better to make a separate class that inherits QDialog

latent scaffold
#

oh boy

last mantle
#

Should I just give the py code for this?

#

Idk why you are using C++ lol

latent scaffold
#

uh I understand what you've said so far

last mantle
#

Goooood

latent scaffold
#
class MainWindow: QDialog {
    
}
last mantle
#

Yes if that's how c works

latent scaffold
#

I believe that's how inheritance works

last mantle
#

So how do you do the super thing

latent scaffold
#

uh

last mantle
#

If you want to understand things better use QtDesigner

edgy crest
#

shouldnt there be a proper tutorial

last mantle
#

There is none sadly

#

Qt is umm

#

Not popular

edgy crest
#

oof

last mantle
#

But it's very powerful

#

Tfw tkinter has better tutorials than PyQt5

edgy crest
#

😔

latent scaffold
#

What's super do lol

edgy crest
#

its just easier to make them

latent scaffold
#

I never delved too deep into OOP

edgy crest
#

for the tutorial guys

last mantle
#

super calls the parent clas

#

You can execute parent methods in the child class

#

In py, super().init(parent) is used

#

For the QDialog class

latent scaffold
#
class MainWindow: public QDialog {
    typedef QDialog super;
    
}
``` I think
last mantle
#

Idk man

#

Anyways

#

Umm make your button in that now

edgy crest
#

just use godot lol

last mantle
#

godot is not as good as Qt 😎

edgy crest
#

easier to make things

#

without having them look like tkinter

last mantle
#

Same with Qt

terse bough
#

you guys, good afternoon, uh, in the beginning, did you guys struggle with loop "for"?

last mantle
#

No

edgy crest
#

though in my case i just use SDL since i have gotten too used to it

last mantle
#

I struggled with while heh

#

Long ago

edgy crest
#

long ago for me too

#

i think i had problems with both loops

terse bough
#

dude, wtf is "for c in range", wtf is "c"? I know it's a variable, but... uh, how can we use it on code, it seems to work in some codes, but, in others

edgy crest
#

just using them more made me understand them

terse bough
#

like a list, its ok, to print it

last mantle
#

Bruh js for loops are literally a subset of while loop

#

Why is it even there ;-;

latent scaffold
#

I am confused

edgy crest
last mantle
#

@latent scaffold go on

latent scaffold
#

I've got... a window but no button

edgy crest
#

at first iteration its the first value of the thing you looping on, then after that the second.. etc

latent scaffold
#

What's the supper for, again?

last mantle
#

It probably needs a layout

#

Been a while since I used stuff without layouts

latent scaffold
#
#include <QApplication>
#include <QPushButton>
#include <QDialog>

class MainWindow: public QDialog {
    typedef QDialog super;
public:
    MainWindow() {
        QPushButton button("Hello world!", nullptr);
        button.resize(200, 100);
        button.move(0, 0);
        button.show();
    }
};

int main(int argc, char *argv[]) {
    QApplication app(argc, argv);
    MainWindow window;
    window.showNormal();
    return QApplication::exec();
}
edgy crest
terse bough
#

Oh, ok

last mantle
#

button.show() is not needed if

#

Ig

latent scaffold
#

¯_(ツ)_/¯

last mantle
#

Do you want to start with layouts right now

#

It's better imo

#

Include QVBoxLayout

latent scaffold
#

uhuh

last mantle
#

Then layout.addWidget(button)

#

And

#

super.setLayout(layout)

#

layout being the instance of QVBoxLayout

latent scaffold
#
No viable conversion from 'QPushButton' to 'QWidget *'
last mantle
#

Eh what

#

Idk what that is lol

#

Just use python 😩

latent scaffold
#

layout.addWidget(button)

last mantle
#

I still don't know why that's happening

#

Learn Qt in py and then use on cpp

#

That's the best way

latent scaffold
#

;-;

#

basically addWidget wants QWidget

#

but I give it QPushButton

last mantle
#

QPushButton is a widget

calm dawn
#

is C++ doing a::b() like Python doing a.b()?

latent scaffold
#

ah

#

pointers

#

QWidget * vs QWidget

latent scaffold
calm dawn
#

wow

#

weirdness

latent scaffold
#

ah. that did nothing

#
#include <QApplication>
#include <QPushButton>
#include <QDialog>
#include <QVBoxLayout>

class MainWindow: public QDialog {
    typedef QDialog super;

public:
    MainWindow() {
        QVBoxLayout layout;

        QPushButton button("Hello world!", nullptr);
        button.resize(200, 100);
        button.move(0, 0);
        button.show();

        layout.addWidget(&button);
        super::setLayout(&layout);
    }
};

int main(int argc, char *argv[]) {
    QApplication app(argc, argv);

    MainWindow window;
    window.showNormal();

    return QApplication::exec();
}
last mantle
#

example app in PyQt6

latent scaffold
#

;-;

last mantle
#

Well ig the only way now is to refer Qt docs

#

Byeee

edgy crest
#

that sidebar looks sick

wraith hound
#

^

inland wolf
#

ikr

last mantle
#

it moves ;)

inland wolf
#

damn

#

i wonder how many lines of code that was

latent scaffold
#

my head hurts

inland wolf
#

relatble

last mantle
inland wolf
#

damn

last mantle
#

its all QML

inland wolf
#

oh i see

#

can u give me a snippet

#

i want to see how it looks

last mantle
#
import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.Controls.Material 2.15
import QtQuick.Controls 2.15

Window {
    Material.theme: Material.Dark

    id: window
    width: 1080
    height: 720
    minimumHeight: 720
    minimumWidth: 1080
    visible: true
    color: "#00000000"

    Rectangle {
        id: mainRect
        color: "#323232"
        anchors.fill: parent
        anchors.rightMargin: 10
        anchors.leftMargin: 10
        anchors.bottomMargin: 10
        anchors.topMargin: 10

        Rectangle {
            id: topRect
            x: 0
            y: 0
            height: 66
            color: "#1f1f1f"
            anchors.left: parent.left
            anchors.right: parent.right
            anchors.top: parent.top
            anchors.topMargin: 0
            anchors.leftMargin: 0
            anchors.rightMargin: 0```
inland wolf
#

hmm

last mantle
#

this is mine

inland wolf
#

i think ill still stick to flutter

#

how do u handle button clicks @last mantle

#

and other events

last mantle
#

onButtonClicked:

#

and stuff like that

inland wolf
#

intereting

last mantle
#

flutter is nice, dart sucks

inland wolf
#

no

vapid nymph
#

DISCORD IS CHANGING THEIR ICON

#

@low chasm sorry I forgot I don't use Ot0 anymore

#

SAY GOOD BYE TO BLURPLE

low chasm
#

lmao

sterile sapphire
#

hi herbert

low chasm
#

haha

sterile sapphire
vapid nymph
#

YEAH IT'S FUGLY

#

@bleak lintel so is pydis gonna rebrand too

bleak lintel
#

and why

vapid nymph
#

The primary color change

bleak lintel
#

we are not discord by any means, so no

vapid nymph
#

Just cause the blurple won't be the primary discord color anymore it seems

bleak lintel
#

blurple is our primary colour

vapid nymph
#

Ah

#

Then the actual edit would be the snippet on the site that mentions it

wraith hound
vapid nymph
#

yes

wraith hound
#

Or maybe they uploaded a different picture to the store

vapid nymph
quartz owl
#

Idk man

wraith hound
#

Looks normal for me

#

@vapid nymph Take that

vapid nymph
#

aight

#

here's proof

#

that's linked in the store

#

for me

wraith hound
#

Maybe their beta color is different

#

The same way canary color is different

#

Or smth

#

But Discord isn't changing from blurple

#

That I knowfor sure

quartz owl
#

The logo was different too

#

Idk I’m on iPhone rn maybe it’s a play store thing

wraith hound
#

This didn't change

#

So I say that discord's branding aint changing

vapid nymph
tardy rain
#

Blurple is the actual name lmao

quartz owl
#

Yea discord is epic like that

#

How do you make your background actually black tho

wraith hound
#

Smh

quartz owl
wraith hound
quartz owl
#

Yea

wraith hound
#

It's only possible on mobile

#

Android

quartz owl
#

Well sucks to suck

wraith hound
#

You have to click the name of dark mode 10 times quickly

#

In settings

vapid nymph
quartz owl
#

Tbh if that’s the new logo I’m gonna be disappointed

#

It looks kinda bad

wraith hound
#

mhm

harsh tundra
# vapid nymph

It certainly glows more on dark theme than it does on light. I don't have beta but I see the new logo in Play Store

vapid nymph
#

its ugly imo

harsh tundra
#

Yep, toned down stuff looked way better

#

They could've adjusted saturation only a bit, but they messed up other parameters as well

sterile sapphire
#

i don't like it

harsh tundra
#

It's just so much in your face. Especially since the logo colour is normally a colour used in the themes (eg send button) - if they change the theme as well, it would be too distracting :/

tawdry jacinth
last mantle
#

For base PyQt, real python has a very good tutorial on it

#

For that app specifically, you can do it manually but it takes time

#

So, you can use base PyQt with QtDesigner

#

Or if you want to make things simpler, use Pyside2 with QtQuick

#

Using QtCreator / QDesignStudio

#

Which uses QML for the UI, python for the backend

#

@tawdry jacinth

#

For QML, KDAB has a very good tutorial but it's in C++

#

Not that much of a problem tho

runic lion
latent scaffold
runic lion
#

yeah, the code is so much more readable than my current setup

latent scaffold
#

It's CLion with Materiel Atom Dark

#

and the background is an image of Castiel haha

runic lion
#

nice! looks great, thank you

latent scaffold
#

yep lol

wild sequoia
#

cheese

rough sapphire
#

what's a simple word for saying "stacked on top of each other"

rough sapphire
#

nice.. can you give me another one

#

I have boxes.. at most, one box can be stacked on another

latent scaffold
rough sapphire
#

uh no

acoustic moss
#

bruh

latent scaffold
#

yes?

inland wolf
#

well rounded

last mantle
#

@latent scaffold

#

using QML

latent scaffold
#

;-;

#

I tried making something earlier

#

it looks weird

last mantle
#

best thing is, Qt comes with material theme, fusion theme etc by default

latent scaffold
#

lmfao

#

I definitely gotta work on the layout more

#

TL; DR: Qt Creator is kind of cool

last mantle
#

haha

#

use it and then you will understand

latent scaffold
#

use wot

last mantle
#

just how "cool" it is

#

QtCreator

latent scaffold
#

I have \🤔

#

that's how I got that layout

last mantle
#

mhm but you haven't gotten to the bugs yet

latent scaffold
#

\🤔

#

I use CLion for the code, Qt Creator for the design

last mantle
#

bruh thats Qt Designer lol

#

not QtCreator

latent scaffold
#

no that's Qt Creator

last mantle
#

no

#

its the Designer

latent scaffold
last mantle
#

ik its called Creator

#

but what you are using in Designer

latent scaffold
#

Designer doesn't work for me tho

last mantle
#

eh?

inland wolf
#

hm

last mantle
#

you are using it..

inland wolf
#

lol

latent scaffold
#

I can design using it

#

but the code won't work

#

like...

#

it won't generate code

last mantle
#

well yeah

latent scaffold
#

like it's bugged

last mantle
#

you have to load the file in py or C++

#

its not bugged lol

latent scaffold
#

it is

#

it comes up with an error

last mantle
#

show it

#

this is QtCreator

latent scaffold
#

that's what I'm using

last mantle
#

its clearly different from what you are using

latent scaffold
#

It looks different but it's literally Qt Creator

#

Qt Designer is different for me

last mantle
#

the app is called QtCreator

#

you are using the designer for .ui files

latent scaffold
last mantle
#

im using the creator for .qml files

latent scaffold
#

:L

#

yes but I'm still using Qt Creator

last mantle
#

fine whatever

latent scaffold
#

lol

#

Qt is a little annoying sometimes ngl

#

like

#

Idk how to add a border to things

last mantle
#

border is usually a property than a widget

latent scaffold
#

Even with like adding border color

rough sapphire
#

hey you guys

last mantle
#

increase the border size

latent scaffold
#

but how do you set border size

#

:(

last mantle
#

find it out

#

why do you need a border tho

#

i dont think any app uses borders nowadays

latent scaffold
#

because I want borders

last mantle
#

ok

#

fine

latent scaffold
#

I mean of the different elements

#

like I want the text box to have a border

last mantle
#

i suggest you start with a Qt tutorial before jumping into Designer

latent scaffold
#

:(

last mantle
#

because you know how to arrange widgets

#

and will figure some other stuff out too

#

but when you resize the window, everything goes to shit

latent scaffold
#

;-;

rich moon
#

welp i should have used ninja instead of make

#

like holy sht make is slow

rough sapphire
rich moon
#

i just didnt call make with multiple cores

#

but its llvm which is big ass project

rough sapphire
rich moon
#

yeah ninja defaults to multiple cores i think

#

while make u have to specifiy

#

and i frogot to specify so i think its running on one core

latent scaffold
#

I watched a tutorial on Qt

#

I've learned nothing useful

inland wolf
#

bruh

lunar shore
#

Okay

#

so what's the kernel size

#

kernel_size: An integer or tuple/list of 2 integers, specifying the height and width of the 2D convolution window. Can be a single integer to specify the same value for all spatial dimensions.

#

I don't quite understand this 😅

rough sapphire
#

yeah hold on

#

ah i got it

lunar shore
#

?

rough sapphire
#

i'll show an image hold on

lunar shore
#

kk

rough sapphire
lunar shore
#

That's basically the filter size, isn't it?

#

Oh wait

rough sapphire
#

so this filter size is 3*3 or 3*3*1 if we consider channel as 1. kernel means this 3

#

kernel_size: An integer or tuple/list of 2 integers, specifying the height and width of the 2D convolution window. Can be a single integer to specify the same value for all spatial dimensions.
now read this

lunar shore
#

Ooooooh so it's the size of the filter bascially?

rough sapphire
#

yes

lunar shore
rough sapphire
#

some authors name them dimensions of filter

#

yeah. and you know that channel size is supposed to be same right?

lunar shore
#

The channel size should be the same as the image channel size, right?

rough sapphire
#

yes

lunar shore
#

And filters argument is the AMOUNT of these filters?

#

Or the channels?

rough sapphire
#

so lets say its rbg image
it must have size of
a*b so our filter can be z*z*3

#

z means 3 or 4 or whatever. kernel size basically.

rough sapphire
lunar shore
#

Yeah . But then , I have a b&w image , meaning it's just 1 dimensional . So that means my kernel size should be z * z * 1, or z * z?

rough sapphire
#

and your kernel size is z. your filter dimensions are z*z*1

lunar shore
#

Thanks for the information, appreciate it
But also , what's a good kernel size for face recognition

#

So i have like 46-47 of each image , and I want to umm .. train it

#

3 by 3 is okay? 10 by 10? 20 by 20? Or should I just tweak it?

rough sapphire
rough sapphire
lunar shore
#

Hmm , ic . so (3, 3) . And the filters?

rough sapphire
#

you can make filters big in later layers

lunar shore
#

It's the amount of filters so I can literally do whatever I want?

#

Or is that ... restrained too?

rough sapphire
#

also i tell you what, if you have time, you can watch andrew ng's video, if you want playlist link i can give you. he literally started explaining from 0.

lunar shore
#

I know about feed forward and concurrent nns , so I know the basics. But ig I have to watch a video on convolutionals

rough sapphire
lunar shore
#

Overfitting ig

#

Well , I guess just putting it on ... like ... 10 is alright?

#

it's basics face recognition

lunar shore
#

Oooo

#

Thanks, surely will check that out

so ig I'll try it on 10?

rough sapphire
#

for dog species recognition.

#

and vgg16 is already proven great in performance.

lunar shore
#

Ah

#

My laptop is not like the most performant laptop , it has medium-low graphics card , and decent CPU . But ig I can do at least 70% accuracy with some optimizations

lunar shore
#

Video memory? 6 gb

#

Ram? 12

rough sapphire
#

you can use colab if you want to use nice gpu. i think 11/12 gbs. cuda works on it.

lunar shore
#

yeah I've used colab , but this is somehow better in some cases

#

ig I can TRAIN in colab, TEST locally

#

But it's not a lot of images anyway, just like, 5 different faces

#

46-47 imgs each

rough sapphire
#

yeah you can train in colab and save to drive

#

and then take in your pc

#

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 465.19.01 Driver Version: 460.32.03 CUDA Version: 11.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 Tesla T4 Off | 00000000:00:04.0 Off | 0 |
| N/A 42C P8 10W / 70W | 3MiB / 15109MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+

lunar shore
#

Oooo

rough sapphire
#

it gives Tesla with 15gb

lunar shore
#

16 gb? That's ALOT

#

wow

#

still alot

rough sapphire
#

yeah i know!

last mantle
#

which GPU is that

lunar shore
#

Colab's gpu ig

#

?

rough sapphire
#

also you can integrate drive with it and use it

#

yeah colab's gpu

lunar shore
#

So

#

Basically

#

I need one conv2d, one flatten layer, one dense with activation, and max pooling?

lunar shore
#

46 images, 5 categories, resized to 50*50

#

46 each

#

actually

rough sapphire
#

oh okay.
umm again im weak on practical aspect so i can't comment on that but i think you may need more than that.

lunar shore
#

more layers?

rough sapphire
#

yeah

#

more conv2d may help

lunar shore
#

O...Oh ...
So where should I put it exactly? after the flatten? after the dense? after the max pooling?

rough sapphire
#

before flatten

#

we put conv2d kinda always before flatten. once they're flatten they're flatten

lunar shore
#

Right

rough sapphire
#

so yeah you can put after max pooling

lunar shore
#

So the conv2d applies the filter to the image itself?

rough sapphire
#

also any need of max pooling?

lunar shore
#

I doubt actually

rough sapphire
#

because its just 50*50

lunar shore
#

Yeah

#

So does Conv2D apply the filter to the thing?

rough sapphire
#

yeah

lunar shore
#

So it reduces the size ig

#

Or does it?

rough sapphire
#

wait i'll just show my model for number recognition

rough sapphire
lunar shore
#

Ooo

rough sapphire
#

jesus this site

lunar shore
#

the keras site?

rough sapphire
#

hold on this is loading

lunar shore
#

oh okay

rough sapphire
#

no nvidia place where the notebooks are

lunar shore
#

Oh

#

Also

#

one quick q

rough sapphire
#

sure

lunar shore
#
import tensorflow as tf
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Activation, Conv2D

model = Sequential()

model.add(Conv2D(10, 3, input_shape=(50, 50)))

Here's my model so far, what should I make the input shape of the next Conv2D?

#

50*50? 45*45?

rough sapphire
#

the simple logic is, as we increase layers,
we make filters big and their numbers less

lunar shore
#

Oh so we kinda make a batch filter

#

Hm

#

But the filters affect the image size, right?

#

That changes the input shape

#

And how would I change the input shape corresponding to the previous layer?

rough sapphire
lunar shore
#

Yeah, but how much?

rough sapphire
#

depends on kernel size, stride and padding

lunar shore
#

3*3 kernel size, I haven't defined any padding

rough sapphire
#

so it will make it small

lunar shore
#

I need to put input shape for all layers, right?

#

Not just the first, right????

rough sapphire
#
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import (
    Dense,
    Conv2D,
    MaxPool2D,
    Flatten,
    Dropout,
    BatchNormalization,
)

model = Sequential()
model.add(Conv2D(75, (3, 3), strides=1, padding="same", activation="relu", 
                 input_shape=(28, 28, 1)))
model.add(BatchNormalization())
model.add(MaxPool2D((2, 2), strides=2, padding="same"))
model.add(Conv2D(50, (3, 3), strides=1, padding="same", activation="relu"))
model.add(Dropout(0.2))
model.add(BatchNormalization())
model.add(MaxPool2D((2, 2), strides=2, padding="same"))
model.add(Conv2D(25, (3, 3), strides=1, padding="same", activation="relu"))
model.add(BatchNormalization())
model.add(MaxPool2D((2, 2), strides=2, padding="same"))
model.add(Flatten())
model.add(Dense(units=512, activation="relu"))
model.add(Dropout(0.3))
model.add(Dense(units=num_classes, activation="softmax"))

thats the model i used for ASL

lunar shore
#

Hmmm

#

So you have a conv2d with A LOT of filters apparently . then after some normalization and maxpooling another conv2d with ALOT of filters again, wow

rough sapphire
#

yeah wait i'll show image

lunar shore
#

oooo

#

Well , I don't know most of the layer types anyway, lol . Just conv2d, maxpooling and dense, a little bit flatten . But ig I can still do stuff with them, can't i?

#

Why did I say "does' lol

rough sapphire
#

you can! but i personally prefer learning them before. you know dropping out?

lunar shore
#

n...no 😅

rough sapphire
#

Dropout is a technique for preventing overfitting. Dropout randomly selects a subset of neurons and turns them off, so that they do not participate in forward or backward propagation in that particular pass. This helps to make sure that the network is robust and redundant, and does not rely on any one area to come up with answers.

lunar shore
#

Oh so basically anti-overfit

#

But I would need more epochs then

#

because it selects randomly at first ig

rough sapphire
#

yeah.
i'll say try to make basic models first and see out it goes, may be more number of epoch may help.

lunar shore
#

Well , telling the difference between faces is a basic model isn't it? Usually the first projects are between a cat and dog, arent they?

rough sapphire
#

and if you want, you can also augment vgg.

lunar shore
#

ooo

rough sapphire
#

and then AlexNet came and deep learning came in pictures with hella layers

lunar shore
#

Ooo

#

Welp

#

AI is hard ig lol

rough sapphire
#

noi noi, its aight, chill it out!
you'll learn in no time.
i dont think i could answer this much before 15 days, its all thanks to andrew.

#

you can see this video for famous models

#

Take the Deep Learning Specialization: http://bit.ly/2VMlo09
Check out all our courses: https://www.deeplearning.ai
Subscribe to The Batch, our weekly newsletter: https://www.deeplearning.ai/thebatch

Follow us:
Twitter: https://twitter.com/deeplearningai_
Facebook: https://www.facebook.com/deeplearningHQ/
Linkedin: https://www.linkedin.com/com...

▶ Play video
lunar shore
#

Ooooo

rough sapphire
lunar shore
#

I've also watched Luis Serrano's NN series, well not all of it , but ig it was clear

lunar shore
rough sapphire
#

thats LeNet, even this has 2 convNets.
and 2 FCs at the end

lunar shore
#

Damn

rough sapphire
#

and thats i think before 2000s

lunar shore
#

wow

rough sapphire
#

theres a lot to learn, just learn them out make a notes of them and you'll learn keras in no time.

#

you can even do stuff like augmentation which comes in handy.

#

basically
use pre trained model and add your layers to it.

lunar shore
#

Oh

#

Hmm

#

that's creative too

#

!bm 838663239470022657

#

Um , is the command something else