#ot1-perplexing-regexing

1 messages Β· Page 486 of 1

eternal wing
#

no

#

^spanish

#

haha

terse sluice
#

how spanish are you?

frozen thorn
#

please speak English to the best of your ability.

terse sluice
#

great song btw

eternal wing
#

0 spanish.

but I took three years and eat mexican food 3x a week xD

terse sluice
#

lol

frozen thorn
#

I'm jealou

floral viper
#

do you turn spanish by eating mexican food?

#

I think I might be at risk

eternal wing
#

LOL

#

mexican food is forsure in S tier for me

floral viper
#

How do you tell? what are the first signs?

frozen thorn
#

and how did you learn to write in Spanish?

eternal wing
#

when mariachi music makes you hungry, you know you are in too deep

floral viper
#

Also how can you tell if you are turning Spanish or Portuguese?

eternal wing
#

I cannot speak spanish. I just have fragments from high school LOL

frozen thorn
#

so boring

eternal wing
#

si, senior

frozen thorn
#

my classes are so easy wtf.

#

except math

eternal wing
#

my classes are easy too 😎

frozen thorn
#

I wonder if I should get my AS in CS first or just apply to transfer to an uni

eternal wing
#

uni is expensive lol

#

I did not even do CC first, big regret LOL

mild abyss
#

I wonder if I should get my AS in CS first or just apply to transfer to an uni
@frozen thorn hard to decide

frozen thorn
#

yeah. I have like 2 sems left

#

maybe I should finish GE pattern and get AS in CS. That's what I decided for now

eternal wing
#

uni overrated imo, plenty of good instructors elsewhere as well.

Although generally the quality of education should be at least a bit higher

frozen thorn
#

Yeah

#

After I transfer, I believe there is only 10 courses left for BS in CS

mild abyss
#
  1. thats a lot
frozen thorn
#

hmm

mild abyss
frozen thorn
#

is that a joke? lol

mild abyss
#

idk if i am even joking or wondering why i think it is a lot

#

maybe just braindead.

floral viper
#

10 courses is a lot

#

that's about a full years of study here

rich moon
#

depends on the courses tho

#

bc if they are all intro or for non majors

#

its kind of not worth

#

prob start looking at phys or math department for numerical methods or sth if thats the case

tall canopy
#

@tall canopy

rough sapphire
#

hello

#

@rough sapphire i am new

tall canopy
#

ok

#

haha yes

#

@everyon e

rich moon
#

bAnNeD

tall canopy
#

haha yes

#

@tall canopy

#

thats me

#

ok ill stop

silver ruin
#

Big brain name

inland wolf
#

y

#

o

eternal wing
#

what is the actual issue?

inland wolf
#

im trying to install manjaro

#

and i need to partition my disk

#

when i try to shrink the volume

#

its only letting me shrink 5gb

eternal wing
#

it is probably full

inland wolf
#

nop

#

not full

eternal wing
#

that just proves it is full

inland wolf
eternal wing
#

hmmmmm

inland wolf
#

5000 mb is not 50gb

#

tis very weird

eternal wing
#

well that is a very small drive, so I would be hesitant to partition it

inland wolf
#

and there are recovery partitions taking upto 13gb of space

#

bruh

eternal wing
#

I do not really think this is an issue, but probably a safe guard to prevent you from shrinking your drive too much

topaz aurora
#

Windows has protections against shrinking drives too little

inland wolf
#

yea but whats with the amount of recovery drives?

#

theres like 5

#

and i ran reagentc /info

#

bisk told me to

eternal wing
#

bisk is a pro at this haha

topaz aurora
#

I've had to defragment mine/disable swap/disable recovery to get to shrink 150 GBs

inland wolf
#

its an ssd btw

#

re status disabled

eternal wing
#

yeah, this could be tricky. I generally would not shrink it if it was my drive xD

inland wolf
#

well i woulnt need to shrink if those revoery partitions werent fat

eternal wing
#

I dont really want to give disk advice because I would not play around too much with this on my system. Kinda risky

inland wolf
#

hm

#

it only gives me the help option

eternal wing
#

Bisk is probably your best bet.

yes, windows protects you from destroying your system xD

inland wolf
#

bisk is my best bet

#

but hes offline 😒

#

i have reset it several times before

eternal wing
#

personally I recommend not messing with it, but I would trust bisk's guidance.

But this is the type of thing I do not play with on windows, it can be easy to make a mistake and do damage

inland wolf
#

thats why, according to bisk, there are so many partitions

#

hmm ok

eternal wing
#

I would not recommend a dual boot with that little storage as well

inland wolf
#

hm

tall canopy
#

guys

#

what u doin

#

I would not recommend a dual boot with that little storage as well
@eternal wing dual boot always gets screwed IMO

gentle moss
#

hello

#

someone wanted me?

#

oh, to remove the recovery partition you'd have to use diskpart

#

still not sure why you're not able to shrink the partition lower than 5gb though

#

and i don't really recommend removing the recovery partition

#

thinking about it you might be able to solve your partition resize problem by using diskpart

mild abyss
#

i plan to use a separate drive. but i am wondering where to install the grub boot loader. should it be on /?

gentle moss
#

install grub on which ever drive you're booting from first.

#

(obvs)

mild abyss
#

they say if i install it into boot efi of windows, it will mess things up.

#

so okay it is root then

gentle moss
#

i think i've heard of the windows bootloader messing up grub during updates? not sure.

#

i virtualise Β¬_Β¬

mild abyss
#

yeah. i mean most of the tutorials i found installed the bootloader on /

#

i just asked here for further clarifications

summer rampart
#

this is a psa
anyone unable to launch discord after a system update today on arch should rollback opera-ffmpeg-codecs to 85.0.4183.102-1-x86_64
https://bugs.archlinux.org/task/68364
this has been a psa

gentle moss
#

:o

edgy crest
#

:0

mild abyss
#

whut happened

edgy crest
#

idk, i didnt have a prob, maybe its only for arch ig

mild abyss
#

discord canary wont have those kind of problems i guess (i hope)

gentle moss
#

what happened? arch being bleeding edge

mild abyss
#

🩸

rough sapphire
#

If you update discord in arch based systems it breaks ig

#

and that is due to opera-ffmped-codecs ig

strong valley
#

HHII

#

EEEEEEEEEEEEEEEEEEEEEEEEEE

uneven pine
#

@peak flare what operating system are you using?

peak flare
#

windows 10

uneven pine
peak flare
#

yeah i used that

uneven pine
#

then send a screenshot of your drive map

peak flare
#

made a partition D from the C

#

installed a bunch of apps

#

deleted the apps, cuz C was too small

#

the deleted D and combined it to C

#

and now im downloading my apps again

mild abyss
#

@uneven pine why do you have two efi partitions πŸ‘€

quick ledge
#

the more, the better lemon_fingerguns_shades

mild abyss
#

the more, the better lemon_fingerguns_shades
@quick ledge so that means he will choose where to boot?

quick ledge
#

nah i was kidding

mild abyss
#

nah i was kidding
@quick ledge uhm since youre very good on linux

#

uhm

#

so this is still yet to happen, so i have two separate drives, one is already installed with windows. the other one is a blank drive. and i wanna install a linux distro. where should i put grub?

quick ledge
#

@quick ledge uhm since youre very good on linux
@mild abyss im not 😳

mild abyss
quick ledge
#

so this is still yet to happen, so i have two separate drives, one is already installed with windows. the other one is a blank drive. and i wanna install a linux distro. where should i put grub?
@mild abyss does the drive with windows have free space?

mild abyss
#

lets say i partitioned that it has free space about 1GB

uneven pine
#

@peak flare everything looks fine, what is the issue you're having?

#

sorry for the slow response, got distracted in another conversation

peak flare
#

idk

#

its there in my control panel apps

#

but i wont let me delete it or install it

rough sapphire
#

okay back to discord

#

discord_arch_electron works from the aur repository

quick ledge
#

i use discord canary

#

from the AUR

mild abyss
#

same

quick ledge
#

so this is still yet to happen, so i have two separate drives, one is already installed with windows. the other one is a blank drive. and i wanna install a linux distro. where should i put grub?
@mild abyss im not reaaly sure. im guessing install linux on the second drive and follow the gui installer. mark the efi as boot

rough sapphire
#

I think /dev/sda2 will be the boot partition of windows

mild abyss
#

@mild abyss im not reaaly sure. im guessing install linux on the second drive and follow the gui installer. mark the efi as boot
@quick ledge u mean the free space i made, i will make it into /boot/efi?

#

then point grub to install there?

quick ledge
#

hmmm no

#

mark the windows one

mild abyss
#

I think /dev/sda2 will be the boot partition of windows
@rough sapphire do you have any suggestions?

quick ledge
#

you can inatall on 2nd drive, but the drive should be always present on your system

mild abyss
#

yeah mine is always present on the system

edgy crest
mild abyss
#

maybe sudo grub-update will help me detect other OS

#

can i uninstall this default file manager? i only need dolphin
@edgy crest you can

edgy crest
mild abyss
#

also why isnt it working then
@edgy crest ah dont

quick ledge
#

@mild abyss im not reaaly sure. im guessing install linux on the second drive and follow the gui installer. mark the efi as boot
@quick ledge then you gotta change the boot order too

edgy crest
#

ohok

mild abyss
#

because xfce needs it

edgy crest
#

kk

mild abyss
#

okay thanks Vivekgurkan. i will try messing some things in december then

quick ledge
#

maybe sudo grub-update will help me detect other OS
@mild abyss you gotta do that at the end.
when you install grub you will create some confs in your OS
sudu grub-update will make it read the new changes in the conf or MBR or w/e

#

*sudo update-grub

mild abyss
#

okay. me will try that i will note it inside my mind

peak flare
#

@uneven pine thx for helping i was able to delete it

uneven pine
#

@peak flare well I didn't really do anything but glad you figured out out

graceful basin
#

*Text* or _Text_
Text

**Text**
Text

> Text

Text


__Text__
Text

~~Text~~
Text

||Text||
||Text||

`Text`
Text
@heady storm

heady storm
#

@graceful basin thanks bro

#

πŸ‘

rough sapphire
#

||
||

mild abyss
#

**

**

heady storm
#

@mild abyss thanksπŸ˜€ I'll sure check it out

calm dawn
#
this is red
#

nope

topaz aurora
#

So I figured it'd be pretty hard to add an export list mechanism to my LISP

#

Turns out that's not true

quick ledge
#

πŸ‘

topaz aurora
#

I can basically just take a snapshot of the current execution environment, running the given module that has a (provide func1 func2 func3) macro that saves stuff to another mapping internally, before ultimately doing set operations against the new environment, old environment, and the export list

quick ledge
#

sounds cool

#

but what's an export list mechanism?

topaz aurora
#

Basically tells you what can be imported from a module

quick ledge
#

ahhh

topaz aurora
#

Python has one through specifying __all__ although that works for star imports

quick ledge
#

yeah, thought of that when you explained what it is

gleaming thicket
#

Is there a conversational going on?

inland wolf
#

@gentle moss i tried ur command reagentc /info

gentle moss
#

recovery's disabled. πŸ‘Œ

inland wolf
#

yes

gleaming thicket
#

Is there a conversational going on?
@gleaming thicket I'll take that as a yes

inland wolf
#

so can i just force delete all the partitions?

gentle moss
#

carefully, but probably.

quick ledge
#

( @gleaming thicket regardless of whether there is any conversation going on, image dumps are not appreciated here, ty)

inland wolf
#

probably?

#

bug

gleaming thicket
#

Ya I give up

inland wolf
#

brug*

gentle moss
#

as long as you're not going to hold me liable for anything you do to your system

#

yes it's fine to delete all the recovery partitions.

inland wolf
#

uh

#

hm

gleaming thicket
#

Looks like I am going to be the only one finding that image cursed today

inland wolf
#

but didnt u say that resetting needs recovery partitions?

gentle moss
#

it does need a recovery partition

#

but it doesn't mean you need one to run windows.

inland wolf
#

brug

#

if i reinstall windows

#

will it remove all those partitions?

quick ledge
#

It will probably add another one

gentle moss
#

when you install windows you're asked what partition you want to install it on

#

if you remove all the existing partitions so the drive is empty

#

and install windows again from scratch

#

it'll install windows + 1 recovery partition

inland wolf
#

bru its a laptop so it came preinstalled with windows

#

i didnt choose partitions

gentle moss
#

so you don't have the install media?

inland wolf
#

no

gentle moss
#

like a win10 cd

inland wolf
#

but i can get that right?

#

windows 10 media creation tool?

gentle moss
#

not for free iirc

inland wolf
#

the tool is free

graceful basin
#

ye, media creation tool is free

inland wolf
#

yea

gentle moss
#

oh nice, well done microsoft.

inland wolf
#

lol

gentle moss
#

what is the problem you're trying to solve again?

#

you want to shrink the windows partition?

inland wolf
#

lma

#

im trying to get manjaro

#

yes i need partitions

#

is 128gb too less for a manjaro dualboot?

gentle moss
#

have you tried using the command line diskpart instead of disk manager?

inland wolf
#

cuz im getting cold feet now

#

uh no

#

i entered diskpart

#

but thats it

#

i didnt know any commands

#

lol

gentle moss
inland wolf
#

thx

gentle moss
#

make sure to launch cmd as admin

inland wolf
#

kay

#

oh yea

#

also

#

the c drive doesnt let me shrink more than 5gb

#

tho it has 53gb left

#

a lot of problems

#

it makes me want to not get manjaro

gentle moss
#

yeah, but is that in diskpart too?

#

not just diskmanager

inland wolf
#

oh I didn't check that

#

I'll do that next time

#

thx a lot

worldly grail
#

how is codingplusplus for a blog name ?

solid pollen
#

Sounds good if you do a C++ blog :P

worldly grail
#

not just c++ but the whole programming

#

thinking of some names

#

need help

#

im thinking one more

simple sand
#

How can I make it so that my every screenshot doesn't get saved in desktop

worldly grail
#

?

#

windows ?

simple sand
#

no mac

worldly grail
#

idk on windows when u take a ss with (win+printscreen) the screenshot is sent to clipboard

scenic blaze
#

yawn

#

I don't know how anyone sticks to a regular WFH schedule

honest star
#

The answer is poorly

scenic blaze
#

I'm lucky I have a boss that doesn't care which days or times I work as long as projects are moving along on schedule

#

How's everyone today?

arctic canopy
#

Hello

#

I'm new here

#

I know a little about python basics

#

and wish to expand my knowledge by learning more

worldly grail
#

do some projects

#

like web scraping or make a small game

scenic blaze
#

Check out the resources here, too

#

!resources

royal lakeBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

scenic blaze
#

Yessss

#

There were two items left for my coworkers baby shower

#

One of them cost 10 bucks, the other 1000

#

Got the 10 dollar one πŸ‘Œ

turbid nimbus
#

!resources

royal lakeBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

frozen thorn
#

I'm trying to link a html file with node js, but require is not defined at... even though I have installed it. rip

solid pollen
#

Did you import it, or whatever the JS equivalent is?

frozen thorn
#

No I didn't import anything

hoary steppe
#

wait what

#

u mean linking a node js/js file with htm;

#

html*

frozen thorn
#

Yeah. I have a node js script or smth so I can't load html file. I need to link html file in js

hoary steppe
#

in the html

#

in header type

frozen thorn
#

No, other way around

#

Something like this

hoary steppe
#

<script src="path or file name if in same path"></script>

frozen thorn
#
var http = require('http')

function onRequest(request, response){
  response.writeHead(200, {'Content-Type': 'text/plain'})
  response.write('index.html')
  response.end();
}

http.createServer(onRequest).listen(8000)
#

That should work. But require is not defined

bleak lintel
#

uh

#

how are you going to start a HTTP server in a browser

#

require is for node, when you are running javascript on the backend

hoary steppe
#

im confused

bleak lintel
#

node is for running code like python, on your computer or on a server. browser JS runs your JS on your clients browsers. for obvious reason you can't do stuff like boot up http servers or touch the filesystem at all, it's heavily sandboxed

hoary steppe
#

u can still use node as a backend

bleak lintel
#

yeah

#

that is what I am saying

hoary steppe
#

if u want to create a full browser

#

use express

frozen thorn
#

hmm. I'm pretty new to node js lol

hoary steppe
#

like django

bleak lintel
#

what

#

no valk

hoary steppe
#

full website*

#

oopsi

bleak lintel
#

I'm saying the difference between node is that node.js code cannot be run on the browser

#

yeah

#

To run that code above you need to install node.js separately from https://nodejs.org/en/, open a command line and run node myscript.js

hoary steppe
#

dont u need an init

bleak lintel
#

no

hoary steppe
#

oh ok

frozen thorn
#

is the content in index.html file?

bleak lintel
#

no

#

it is sending the literal string index.html

#

you are telling node to write the text index.html to the browser

#

which opens the file and then streams the file contents back to the browser

frozen thorn
#
var http = require('http'),
    fileSystem = require('fs'),
    path = require('path');

http.createServer(function(request, response) {
    var filePath = path.join(__dirname, 'myfile.mp3');
    var stat = fileSystem.statSync(filePath);

    response.writeHead(200, {
        'Content-Type': 'audio/mpeg',
        'Content-Length': stat.size
    });

    var readStream = fileSystem.createReadStream(filePath);
    // We replaced all the event handlers with a simple call to readStream.pipe()
    readStream.pipe(response);
})
.listen(2000);
#

that right

bleak lintel
#

well, you'll need to edit it

frozen thorn
#

Yeah

bleak lintel
#

and ideally understand it

frozen thorn
#

If I run it, require is not defined even though I installed it. Am I understanding this wrong?

bleak lintel
#

well are you running it in the browser

#

you can't do that

#

you need to run node.js code in the command line

#

using node script.js

#

similar to running python scripts

#

https://nodejs.dev/learn i highly recommend this resource

frozen thorn
#

Yeah. I meant running in the browser or smth. I have it online with

bleak lintel
#

node.js code does not work in the browser

hoary steppe
#

nodejs is javascript outside browser.

bleak lintel
#

yep

#

it does use the same engine under the hood, but there are fundamental differences because node has no sandboxing

frozen thorn
#

What if I added another js file? that's not node

bleak lintel
#

huh?

#

well

#

you need to separate your definition of node.js code and browser js code

hoary steppe
#

node js is javascript but like lets say nodejs is modified

bleak lintel
#

eh

#

bad definition

#

node.js code runs on your backend to process your data and works like python.

browser code is delivered to your clients to run on their machines in a sandbox

hoary steppe
#

nodejs isnt even a language

#

nor a framework

#

o.o

bleak lintel
#

I mean it is

#

well, it's a runtime

#

JavaScript is the language in both situations

hoary steppe
#

Node.js is an open-source, cross-platform, back-end, JavaScript runtime environment that executes JavaScript code outside a web browser.

bleak lintel
#

yep

hoary steppe
#

and ig its also uses something called chrome engine v8

bleak lintel
#

both run on top of the v8 engine, but essentially node.js has no protections and browser JS does

#

yes

hoary steppe
#

ye

bleak lintel
#

super cool stuff

#

it uses JIT compiling

#

something that cpython may have one day!

hoary steppe
#

wait

#

if cpython get JIT compiling

#

will that be speed era

bleak lintel
#

well

#

read the thread title lol

#

the plan is outlined at uhhhhh

hoary steppe
#

jesus

#

interesting

#

i need to update

bleak lintel
#

lol

frozen thorn
#

Well I finally got it

#
const html = `<!DOCTYPE html>
<body>
  <h1>Hello World</h1></p>
</body>`

async function handleRequest(request) {
  return new Response(html, {
    headers: {
      "content-type": "text/html;charset=UTF-8",
    },
  })
}
#

^

bleak lintel
#

nice!

tranquil orchid
#

I didn't realise how good the v8 engine was until recently

#

Things got some insane speed

bleak lintel
#

yeah

#

it's bonkers

#

because of the JITing

tranquil orchid
#

Yeah JIT is wild

#

I need to read up on how it works a bit more

bleak lintel
#

it's fairly standard tbqh

#

V8 first generates an abstract syntax tree with its own parser. Then, Ignition, the V8 interpreter, generates bytecode from this syntax tree using the internal V8 bytecode format. TurboFan is the V8 optimizing compiler, it takes this bytecode and generates machine code from it. In other words, V8 compiles JavaScript directly to native machine code using just-in-time compilation before executing it. The compiled code is additionally optimized (and re-optimized) dynamically at runtime, based on heuristics of the code's execution profile. Optimization techniques used include inlining, elision of expensive runtime properties, and inline caching. The garbage collector is a generational incremental collector.

#

but the way it typically works is like

#

analyse the paths, figure out of the cost of compiling something outweighs running it in an interpreted mode

#

if so: do the thing

tranquil orchid
#

So it doesn't actually compile everything?

bleak lintel
#

depends on the implementation

#

most of the time the majority of the program is not compiled

#

but maybe you have an algorithm that costs

#

the speedup gained from compiling that (which is a fairly big cost) will by far outweigh interpreting the algorithm on every iteration

tranquil orchid
#

Hm that is pretty cool

young shoal
#

people are very very smart

#

at least some people

bleak lintel
#

lol

normal geode
#

Omg @bleak lintel is offline !!!

#

Is he sleeping???

#

Does he sleep ???

rough sapphire
terse sluice
#

wowee

#

here i am again

#

it almost feels as if i was in the channel name 2 days ago..

digital oracle
#

lol

eternal wing
#

Well, it sounds like you are holding them hostage.

Lemon: change ot twice if f1re is using himself against you xD

terse sluice
#

lol

#

i just finished about 25 pages of history assignments

#

this is what happens when you do everything the night before it's due

#

i have never typed faster in my life lol

#

now, time to sleep

#

goodnight all

eternal wing
#

that is the best way to assignment. haha gn

ancient stream
#

Wait.. I thought the trebuchet was our official weapon?

topaz aurora
#

@terse sluice is the trebuchet

ancient stream
#

Ooh do they shoot flaming projectiles?

quick ledge
#

If you haven't shot a flaming projectile in your life, are you even living?

ancient stream
#

I know right? Like one of my goals is to fire a tank

winter terrace
#

what did the tank do at work to you?

#

geez melinda, you gotta give harold some breathing room, he's still cleaning up his divorce with the panzer

ancient stream
#

XD

#

Being able to shoot a KV-2 with the 122mm canon would be a blast.

quick ledge
#

lmao

narrow pecan
#

Let’s use out weapon

pliant crystal
#

hello guys, what specs do the python pros need?

simple sand
#

huh?

pliant crystal
#

like what computer specs do the professionals have?

rich rover
#

Just as much as you need

#

It depends entirely on what you want to do

pliant crystal
#

oh ok. what if you need it for a software degree in college?

rich rover
#

You're talking about specs right?

#

Like memory and so?

pliant crystal
#

yeah

tranquil orchid
#

Depends what you're doing

rich rover
#

And you have a computer right?

tranquil orchid
#

Some developers could just use a laptop and be fine

pliant crystal
#

yeah

rich rover
#

Yeah, a laptop is all you need

#

What's your computer's specs?

tranquil orchid
#

For some areas anyway

#

But if you're into stuff like

#

data science

#

machine learning

#

etc

#

You'll want a better pc

tender silo
#

get something better than i5 thats all you will need

pliant crystal
#

actually buying a new laptop, but i'm choosing between a thinkpad, a latitude or asus. which do you guys prefer?

tender silo
#

ummm that actually depends on the specs πŸ˜…

#

the brand wont be of use if pc suck you know what i mean

pliant crystal
#

yeah

#

what laptops do you guys use? do you like it?

tender silo
#

i use something called g40 ig
it has an i7 processor, 6gb ram so its fine for me

#

but you cant do a lot with the coding wont be a problem

#

but watching youtube vids in 8k is something that i can only dream ofπŸ˜‚

pliant crystal
#

thats a powerful rig

tender silo
#

it also has 2gb graphics

pliant crystal
#

how long do you have it?

tender silo
#

but everythng has wear and tea

#

tear*

quick ledge
#

what's g40? is it the motherboard?

tender silo
#

how long do you have it?
@pliant crystal about 4 years now πŸ˜‚

pliant crystal
#

that's nice

tender silo
#

what's g40? is it the motherboard?
@quick ledge its the pc i dont remember the name

pliant crystal
#

its a lenovo, right?

tender silo
#

yea.

pliant crystal
#

do you have problems with the lenovo super fish incident?

quick ledge
#

wait I think there are Dell laptops named G30 or something

tender silo
#

i dont even know what that is lol

#

wait I think there are Dell laptops named G30 or something
@quick ledge prolly idk

#

how do i know my pc model lol it only gives me a code

pliant crystal
#

like theres a virus thingy in lenovo laptops and everyone is angry and disappointed at lenovo or something

quick ledge
#

search the code on the internet

tender silo
#

like theres a virus thingy in lenovo laptops and everyone is angry and disappointed at lenovo or something
@pliant crystal actually i think i know what youre talking about

#

it installed shit on its own during the regular updates once

#

and then i cleared some stuff

#

so my pc stopped overheating

#

then i paid for mcafee shit never happened again

pliant crystal
#

is your pc all good now?

tender silo
#

yea...

#

theres this antivirus called saguzaro dont trust thatπŸ˜‚

#

it installs itself

quick ledge
#

search the code on the internet
try this monidagawd

tender silo
#

yea wait

pliant crystal
#

ok

#

nice, will consider a lenovo g40. thank you so much!

tender silo
#

i dont think that model is still under production also whats your budget

pliant crystal
#

i dont live in the us but it's around 700

quick ledge
#

I think you can get better specs for what monidagawd payed

#

because they bought it 4 years ago

tender silo
#

yea exactly

pliant crystal
#

right, forgot it was 4 years ago

tender silo
#

i still cant find my pc model 😦

quick ledge
#

how much did the laptop cost?

pliant crystal
#

i still cant find my pc model 😦
@tender silo did you try dxdiag?

tender silo
#

it was around 68000 inr which converts toaround 900 usd ig

mild abyss
#

i would rather buy a laptop with discrete graphics card

pliant crystal
#

wouldnt it drain the battery?

tender silo
#

@tender silo did you try dxdiag?
@pliant crystal whats that πŸ˜…

pliant crystal
#

type dxdiag in cmd

tender silo
#

yaaayyy i found iit

#

its 80E4

#

thenx @pliant crystal

pliant crystal
#

nice talking to you @tender silo and guys. thanks, i need to do stuff lol

cosmic lotus
#

Lol nice pfp

#

earl

pliant crystal
#

thanks

#

nice dog photo too

quick ledge
#

wouldnt it drain the battery?
@pliant crystal it will kinda switch off if you are not using it

#

so some power is saved

cosmic lotus
#

thanks

#

he has baguettes for sale

tender silo
#

he has baguettes for sale
@cosmic lotus im interested!

cosmic lotus
#

It is a great deal, traveller!

#

It only cost an arm and a leg!

quick ledge
#

You had me at baguette.

cosmic lotus
#

Perhaps you would like my other offer, traveller?

#

An arm and a leg!

#

For only a baguette!

tender silo
#

thats the same one ig -_- πŸ˜‚

quick ledge
#

I shall not part with my baguettes, thank you very much

mild abyss
#

Perhaps you would like my other offer, traveller?
@cosmic lotus hmm reminds me of Genshin impact

gentle moss
#

thanks pycharm

#

i didn't want to see the entire top third of my screen

cosmic lotus
#

It's like those sun visors on cars

#

except it doesn't cover the sun, but your code

rich rover
#

My debugger isn't working

#

It just starts and dies again

prime aspen
#

@viral parrot Is your name 'evil' with a typo and you kinda stick with it or there are some lore behind?

viral parrot
#

it is some lore behind it

#

so my birth name was Eivind Larsen

#

and when i was in high school i wrote en schools user authentication login system for Word Perfect

#

thats an old Novel application

#

from a list of names i generated four letter usernames

#

three from the first name and one from the last name

#

eiv + l

#

that was mine

#

after 10-20 user generations i had a collision

#

so i had to change it to do 3 + 3 making a 6 char username

#

but i kept mine

#

because i kinda liked it

prime aspen
#

pronounced AI-vol, right?

viral parrot
#

I have since change my surname

#

but still kept my username πŸ˜„

prime aspen
#

cool!

viral parrot
#

more like eyv-l

#

but TL;DR is that its not a typo, its just a username generated from my birth name

prime aspen
#

I gotta go

#

It's been fun chatting with you!

quick ledge
#

That is some pretty interesting lore.

#

I've always wondered

frozen thorn
#

Ouch. My neck hurts

#

neck snap

edgy crest
#

hm

sage arch
#

Does anyone know how to index in a matrix in javascript?
ex:
a=[[1,2],[3,4]], how would change/use the 3? in python I would use a[1][0] but that doesnt work

frozen thorn
#
a=[[1,2],[3,4]]

print(a[1][0]) # print 3

a[1][0] = 5

print(a) # print [[1,2],[5,4]]
#

That works for me

sage arch
#
function generate_field(){
  let simple_field=generate_simple_field();
  for (let i=0;i<field_height;i++){
    for (let j=0;j<field_width;i++){
      console.log(i);
      if (simple_field[i][j]=="bomb"){
frozen thorn
#

lol how did you use backward backticks

sage arch
#

haha I am using azerty, I dont know if it exists on qwerty

#

I am trying to create a minefield for a minesweeper game, but it says simple_field[i] doesnt exist

#

the simple_field is a matrix of 10 rows and 10 columns with zeros and "bomb" values

#

[["bomb",0],[0,0]]

#

field_height and field_width both are numbers (10)

wheat lynx
graceful basin
#

use references instead

#

better

narrow pecan
#

β€œIf it’s not fun, you don’t understand it well enough”

graceful basin
#

I understand pointers pretty well and really see no joy in them

narrow pecan
#

pretty well isn’t well enough hahah

graceful basin
#

though ```c
(float)&i

#

me and the bois invoking UB

narrow pecan
#

I know way too little C++ to understand that

graceful basin
#

the Cpp way would be std::reinterpret_cast<float>(i)

narrow pecan
#

Oh? What language is this, then?

graceful basin
#

because Cpp doesn't really use pointers

#

C/C++

#

works in both

#

just is bad in C++

#

it is also bad in C tbh, should be using memcpy

narrow pecan
#

Ah, I just knew too little C, then

graceful basin
#

cause memory alignment

narrow pecan
#

Or just use Python Β―_(ツ)_/Β―

graceful basin
#

does python let you reinterpret the bits of an int as a float

narrow pecan
#

I assume not

graceful basin
#

yes actually

narrow pecan
#

(Maybe?)

graceful basin
#

with struct

narrow pecan
#

Ah, you were trying to trick me hahah

graceful basin
#

I don't quite remember how though

#

no, I honestly forgot you could do that

narrow pecan
#

If I ever have that question, I’ll probably just simplify the program or stackle it

#

Hahah yeah

graceful basin
#

it is useful in some specific cases where you parsing binary files with floats in them

#

such as some sound formats

narrow pecan
#

(Stackle = tackle with stack overflow)

#

Hmm. I suppose

graceful basin
#

anyway, to get back on topic, if you are using * as either pointer declaration or pointer dereference in CPP you are doing it wrong

#

I guess if they mean std::shared_pointer and std::unique_pointer, those are pretty fun

narrow pecan
#

I’ll probably just have to revisit this once I know more about pointers hahah

wheat lynx
#

Oh yeah smart pointers sound pretty cool

#

I'm still trying to work through the basics of C++ though

#

It's fun to write stuff in python and then in C++ and see how much faster it is in C++

#

Gotta love that -Ofast speeeeed

young shoal
#

neeeeeeeeeeeeyooom

cosmic lotus
#

vrooooooooooooooomm

#

DDA or Bresenham for line drawing?

edgy crest
#

pencil

cosmic lotus
#

no, pen

edgy crest
#

digital drawing? meh

graceful basin
#

have the GPU do it

rough sapphire
#

on a scale of 1 to 10 how much do you rate your c++ knowledge

graceful basin
#

3

edgy crest
#

-3

high verge
#

2

rough sapphire
#

even the creator says 8

edgy crest
#

i can do cout and cin and thats it

high verge
#

i.e. 'i can make my arduino unconvincingly make beeping sounds'

graceful basin
#

honestly, the best reason to learn cpp is so you can understand cppcon talks

#

they are invariably excellent and interesting

cosmic lotus
#

have the GPU do it
I am using the GPU, I'm going to implement it in 3D

graceful basin
#

the GPU should have its own hardware for line drawing afaik

cosmic lotus
#

Yes OpenGL does that, but I'm only using fragment shaders

graceful basin
#

then test both and see which is faster

#

or just make one, see that it is good enough and never worry about it again

cosmic lotus
#

No

#

I NEED SPEED

#

I already have the DDA implemented, I'll go and do the Brensenham

lunar shore
#

Guys best languages for networking (except python)? Probably gonna need basic networking , so the shorter the code , the better

rough sapphire
#

you need more speed even though you have GPU?

lunar shore
#

Guys best languages for networking (except python)? Probably gonna need basic networking , so the shorter the code , the better
And probably faster than Python

graceful basin
#

raku

lunar shore
#

Raku?

graceful basin
#

raku.

lunar shore
#

Should check it out

graceful basin
#

haskell would probably work too

lunar shore
#

Haskell? I've not reached monads yet is it enough?

cosmic lotus
#

you need more speed even though you have GPU?
There is always the need for speedβ„’

graceful basin
#

nah, you would need monads for networking

lunar shore
#

Oh then

#

Raku

graceful basin
#

GPUs are slow if misused

cosmic lotus
#

That applies to anything really

#

like cows

simple sand
#

!eval

royal lakeBOT
#

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

hoary steppe
graceful basin
#

use puts or printf("%s"

#

so that you do not segfault when you pass "%d %d %d to PRINT

hoary steppe
graceful basin
#

no, for printing strings

hoary steppe
#

oh ok

#

thanks

graceful basin
#

yeah

hoary steppe
scenic blaze
#

What's the point?

hoary steppe
#

learning.practicing.and compiler always have a point

#

in short.simplifying

lunar shore
#

Valk so u "cin" and process the input afaik?

hoary steppe
#

i what

#

and process wat

lunar shore
#

You get the data , and process it?

#

Like scanf?

#

Or you read a file?

#

Or u have a lexer or something

hoary steppe
#

i dont understand

#

u read files

#

waht?

#

i have lexer and parser and so yeah

#

and an emitter

lunar shore
#

I see

hoary steppe
#

then read file and it will pass via all the classes

#

and generate the code

lunar shore
#

mhm yeah yeah I got it

frozen thorn
#

what does (int)(x) do in printf()?

hoary steppe
#

im not a c pro ok

#

but prob

frozen thorn
#

haha

lunar shore
#

(int)(x) will convert it to int and print x?

frozen thorn
#

not like that I think

hoary steppe
#

x is already an int

lunar shore
#

Well , I'm a C++ programmer , not C so ... yeah

hoary steppe
#

im not a pro ok..i chosen c cuz fast

#

and small

frozen thorn
#

Yeah I'm C++ programmer as well. Never seen that

hoary steppe
#

remove tHAT RADER

lunar shore
#

(int)(x) is basically gonna convert x to int

#

in C++*

hoary steppe
#

no not really

lunar shore
#

It is

hoary steppe
lunar shore
#

If it's an int , it will return an int . If it's a char , it will return the char code , and if it's a float , probably gonna floor it and return int

hoary steppe
#

i changed int and had another escape char and printed

#

0.00

lunar shore
#

You can change it to %s and it will return whatever it gets

hoary steppe
#

u can still get a float value even if there is an int

lunar shore
#

mhm , cause %d stands for decimal

#

So you can expect that to happen

hoary steppe
#

yep

#

anyways

#

im a pro

#

😎

lunar shore
#

So , (int)(x) will convert x to int

hoary steppe
#

x is an int from start idk why its converting it

#

lol

lunar shore
#

no not really
If u were a pro you wouldnt've said this 😎

hoary steppe
#

yeah im generating c bro 😎

lunar shore
#

u are reruling C?

#

lol

hoary steppe
#

compiler

#

compiling a sample lang

#

😎

lunar shore
#

Looks like Lua

edgy crest
#

lua

hoary steppe
#

noo

edgy crest
#

πŸ˜”

lunar shore
#

yes it does

#

It does look like Lua

hoary steppe
#

wanna see tokens?

#

the lang that is being compiled is a sample and a test

lunar shore
#

let and if and end are in lua , while in "your" lang it is LET and IF and ENDIF

#

Lua has then tho

hoary steppe
#

u do know there is langs that have same keywords too

#

u do right?

#

and even if it was a lua copy or whatever its a test

lunar shore
#

~~That is straight up copying 😎 ~~

hoary steppe
#

ok lemme change that to raderisNoob

rough sapphire
edgy crest
hoary steppe
#

true

strong valley
#

is there a bot which shows someone previous pfps?

lunar shore
#

You can make one :3

shell raptor
#

@hoary steppe Are you an Idris programmer? πŸ™‚

rough sapphire
#

looks like youtube-dl is shutdown

hoary steppe
#

i documented a little bit about idris..its a very interesting language

shell raptor
#

@hoary steppe I was asking because of your status :)

#

@rough sapphire finally ducky_party

hoary steppe
#

oh dont worry

#

my status is just a joke

#

πŸ‹

lunar shore
#

nice

#

so haskell is good in ur op

#

nice nice

hoary steppe
#

oops i forgot some ppl dont know what jokes are

lunar shore
#

Object Oriented Programming s?

shell raptor
#

yeah, functional programmers use that as a curse, obviously

#

*hits finger with hammer*
-- Java!

lunar shore
#

XD

rough sapphire
#

Can I post a meme

wooden silo
#

@rough sapphire Don't post the same question in multiple channels.

rough sapphire
#

Channels were just dead sorry

#

Trying my best to not get banned here

wooden silo
#

That doesn't matter at all.

#

In any case, don't drop memes randomly.

rough sapphire
#

Can I post the meme, it’s about server?

wooden silo
#

No.

rough sapphire
#

Ok

#

Understandable

high verge
#

Wait did youtube-dl get pulled from GitHub

#

I saw the DMCA but whew

#

Including those examples in the docs was a really stupid idea

rich moon
#

lmao what

#

youtube got github to remove the project?

high verge
#

Yeah looks like

#

And frankly they have a pretty good case

rich moon
#

lmao

high verge
#

Actually it was a distribution group not YouTube I think

hoary steppe
#

@high verge huh??

#

what happended to yt

honest star
#

Yeah, a recording group filed a DMCA against youtube-dl and it was taken off of github

bleak lintel
frozen thorn
#

Hmm. Discord members?

bleak lintel
#

yeah

small fossil
#

was insane to see the growth this year

bleak lintel
#

yes

#

very bonkers

#

lol wonder how much data metricity is storing right ow

#
   table_name    |    size
-----------------+------------
 users           | 121 MB
 messages        | 451 MB
 channels        | 544 kB
 categories      | 80 kB
 alembic_version | 8192 bytes
(5 rows)

wew

low chasm
#

Yeah, hi

rich rover
#

alright

shell raptor
#

@covert scroll Anything that easily compiles to machine code (C, C++, Rust, Haskell) will not require installing anything to run the program, I think. But it's not a really good criterion to choose a language.

low chasm
#

We were saying?

#

Don't you need to install c++?

covert scroll
#

Never heard of Rust and Haskell lol

low chasm
#

Rust is pretty good

shell raptor
#

πŸ€”

young shoal
#

rust is quite popular nowadays

wooden silo
#

@low chasm Not if you compile to a native binary.

low chasm
#

I've looked into it, seemed interesting to learn

#

@wooden silo Oh ok

shell raptor
#

right

young shoal
#

@ancient minnow we're in h ere

shell raptor
#

C, Rust and C++ can even run on some embedded stuff

low chasm
#

Cool

young shoal
#

ye, like arduinos etc

rich rover
#

rust is somewhat at a higher capability than python, but it doesn't stop the fact that python was made for the user to cope with easily

covert scroll
wooden silo
#

Rust is very cool.

low chasm
#

Do any of you know rust/c/c++?

ancient minnow
#

@ancient minnow we're in h ere
@young shoal oh I see

covert scroll
#

i hate managing with {} and []

shell raptor
#

Rust is very cool.

rich rover
#

Rust syntactically isn't so cool

low chasm
#

Yeah, isn't it similar to python in some ways? I may be wrong

young shoal
#

definitely many c/cpp programmers here

rich rover
#

but it's nice overall

ancient minnow
#

Do any of you know rust/c/c++?
@low chasm I know c++

wooden silo
#

@low chasm I haven't worked with them professionally, but I've used them for personal projects to various degrees.

low chasm
#

Cool

#

Im sticking with python for now, but am planning to learn Rust and C/C++

shell raptor
#

I like syntax in Rust so far (learning it). Maybe I'm just weird.

covert scroll
#

xD

young shoal
#

i only have enough cpp knowledge to read code from competitive programming solutions, i've never coded in it myself

low chasm
#

Yeah, the syntax wasn't horrible

wooden silo
#

I have no complaints about Rust syntax.

covert scroll
#

it looks really odd for me it looks like java idk why

wooden silo
#

It makes perfect sense for what it is, imo.

low chasm
#

Its sort of different, and I like that

rich rover
#

It's not as bad as cpp or c

covert scroll
#

cuz i know java has alot of [] {}

ancient minnow
#

i only have enough cpp knowledge to read code from competitive programming solutions, i've never coded in it myself
@young shoal do u program in Java?

rich rover
#

that's the only reason that makes it bearable

shell raptor
#

I like syntax in Rust so far (learning it). Maybe I'm just weird.
Except closures. All the languages secretly compete to invent the weirdest syntax for closures.

young shoal
#

yeah i use java for cp

low chasm
#

I know the extreme basics of c++ and Java

hoary steppe
#

planning to learn c and python

covert scroll
#

i only know print in java....

#

XD

fringe creek
#

I know some C in the context of programming arduinos with it, but not a lot

low chasm
#

I was going to learn more, but got distracted by some project

ancient minnow
#

yeah i use java for cp
@young shoal what do u mean with cp?

rich rover
#

Learn with one language first

young shoal
#

competitive programming

rich rover
#

too much to learn at once

covert scroll
#

ikr

ancient minnow
#

Ohh I see, that's cool

low chasm
#

Lol

wooden silo
#

Except closures. All the languages secretly compete to invent the weirdest syntax for closures.
@shell raptor It's better than Python's

rich rover
#

I don't understand anything in cp

hoary steppe
#

i learned some c by learning about compilers and interpreters and still

covert scroll
#

i wish we can learn all the Programing langs at once

low chasm
#

Cool

rich rover
#

It's just pure evil syntax that i can't even read

hoary steppe
#

even created a toy lisp like lang in c

#

eeeee

shell raptor
#

I like syntax in Rust so far (learning it). Maybe I'm just weird.
The part I like the most is the type system. It's kind of similar to Haskell's (if you include some experimental extensions or whatever)

hoary steppe
#

rust is interesting

low chasm
#

@rich rover I mean, the syntax isn't incredibly difficult

shell raptor
#

@hoary steppe @topaz aurora We are in the same cult

low chasm
#

It's easy enough when you get ahold of it

wooden silo
#

Rust's borrow checker is very cool

covert scroll
#

i like python's syntax maybe because i am use to it

hoary steppe
#

i like rust..in general

#

i will learn it someday

rich rover
#

That works for everything lol

low chasm
#

i like python's syntax maybe because i am use to it
@covert scroll Its simple, and thats appealing to many people

covert scroll
#

oh

wooden silo
#

Same level of control as C++, but with safety guaranteed.

shell raptor
#

Lisp's syntax is very simple, but it's not appealing to that many people :0

low chasm
#

well yeah

hoary steppe
#

yeah i can see why

low chasm
#

lol

hoary steppe
#

lisp is minimal.

covert scroll
#

is python powerful? wait what do we use python for? do we even use it or programing or just for kids xD

low chasm
#

Python is not minimal, but human readable and not overly complex

rich rover
#

no no noo

young shoal
#

python is quite powerful

hoary steppe
#

python is powerful..but slow

rich rover
#

Python is very very powerful

ancient minnow
#

is python powerful? wait what do we use python for? do we even use it or programing or just for kids xD
@covert scroll it's used for data science and shit

wooden silo
#

@covert scroll Python is a widely used language in commercial projects.

low chasm
#

Yeah its powerful

ancient minnow
#

Like ml

#

And webdev too

honest star
#

It's also a great language to "glue" other tech stacks together and for testing

wooden silo
#

@covert scroll It's mainly used as a web backend language, and for data science/machine learning applications.

hoary steppe
#

would python be like c++ if we dont count speed

#

in terms of power

low chasm
#

hmm?

ancient minnow
#

would python be like c++ if we dont count speed
@hoary steppe nah

young shoal
#

in cpu intensive applications (number crunching), python is like 200x slower than a lang like cpp. that's why you call compiled code from python (like numpy) to do it for you instead of writing pure python

rich rover
#

yes, somewhat

low chasm
#

Python can't interact with the OS like C /C++does

covert scroll
#

oh

ancient minnow
#

C++ can fuck with memory and shit

rough sapphire
#

you mean in terms of having a huge standard library?

ancient minnow
#

Python can't do that

low chasm
#

Yeah, python can't

young shoal
#

python's std lib is massive

rich rover
#

C++ is hard for that very reason

low chasm
#

Oh wait i gtg cya

covert scroll
#

Hmm is possible to make a OS with Python?

young shoal
#

no

covert scroll
#

and load in a pc

wooden silo
#

@hoary steppe All Turing-complete languages are capable of implementing any computable program.

shell raptor
#

@ancient minnow

C++ can fuck with memory and shit
Python can't do that
ctypes go brrr

hoary steppe
#

hm

rough sapphire
#

You need a language that interacts with the hardware to make an os

ancient minnow
#

@ancient minnow
ctypes go brrr
@shell raptor yes but that's cheating lol

rich rover
#

You can make an OS with python, but you need C implementations too

rough sapphire
#

You probably can with python, but you're gonna use lots of c or something

rich rover
#

Yeah

covert scroll
#

oh... to use the hardwere so python is not possible to use those

rich rover
#

You can't handle memory with Python

rough sapphire
#

and dementati, care if i ask what is your career?

wooden silo
#

@hoary steppe So all programming languages are essentially equally expressive. It's just that some languages can express themselves more compactly, or more readably.

young shoal
#

and some are much better than others in different cases

ancient minnow
#

It usually really depends on the libraries

wooden silo
#

@rough sapphire I'm a software engineer.

#

I work mainly in fintech.

rich rover
covert scroll
#

which programing langs has more support?

ancient minnow
#

Why are there so many people called gurkan in this server?

shell raptor
#

we all know that you're a stone statue lemon_unamused

covert scroll
#

like libraries

frozen thorn
#

It's a gurkult.

rich rover
#

It's a cult

#

we need more mods on our side btw

wooden silo
#

@shell raptor Why can't stone statues be software engineers?

shell raptor
#

@wooden silo I'm not saying that πŸ€·β€β™‚οΈ

young shoal
#

production speed would grind to a halt

rich rover
#

^

frozen thorn
#

nice lol

tranquil orchid
#

I feel like theres a bad pun in there somewhere

rich rover
#

I wanted to say something but i didn't want to be muted

frozen thorn
#

even though I don't get the pun

young shoal
#

smfh

shell raptor
#

unless it's something absolutely horrendous, you're probably not going to get muted πŸ™‚

covert scroll
#

I've been using Python for a while it doesnt seems like it needs really high level of math i was thinking programing langs needs high level of math

rich rover
#

@shell raptor also, you're bad at making puns

covert scroll
#

is that true or false

shell raptor
#

😿

#

I didn't make that many puns lately

frozen thorn
#

You haven't used high level of maths in python yet

young shoal
#

typically, computer graphics requires lin alg, and ML requires lots of math

#

you probably won't need to unless you go into those fields

rich rover
#

You're a good person then, i forgive you @shell raptor

honest star
#

soooo much linear algebra @_@

covert scroll
#

wait what is ML?

ancient minnow
#

Python usually uses a lot of math lol

young shoal
#

typically it's a lot of discrete math, which you probably are quite comfortable with already

rich rover
#

Machine learning

shell raptor
#

!note GurkanArven insulted my puns lemon_enraged

royal lakeBOT
#

:ok_hand: applied note to @rich rover.

young shoal
#

yikes

rich rover
#

oh shit

covert scroll
#

xD

young shoal
#

lmfao

rich rover
#

saw that

high verge
frozen thorn
#

Lmao I like this emoji. lemon_enraged

rich rover
#

Maybe improve your puns, and then come back here and have a second try

#

I'll pass it this first time

rough sapphire
#

What is the math needed for embedded development?

high verge
#

anything in particular?