#voice-chat-text-0
1 messages Β· Page 928 of 1
For the input above, your program should return 5 because that is the value of the node that is the LCA of the two nodes with values 6 and 4. You can assume the two nodes you are searching for in the tree will exist somewhere in the tree.
Input: ["[5, 2, 6, 1, #, 8, #]", "2", "6"]
Output: 5
Input: ["[5, 2, 6, 1, #, 8, 12, #, #, #, #, #, #, 3, #]", "3", "12"]
Output: 12
dayum =\
@dense ibex alive?
uhhh
can someone help me
i'm tryying to excecute this line of code
and getting this
@somber heath i hard u were really good
heard
!e py number_as_text = "5" #type str number_as_int = int(number_as_text) print(number_as_int)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
5
!e py num = "5.5" num = float(num) print(num)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
5.5
!e py print(type("5")) print(type(5)) print(type(5.0))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | <class 'str'>
002 | <class 'int'>
003 | <class 'float'>
anyone wanna play discord gold with me
Hey
Guys
Hello
I made a code
Which has 100 lines of code
And I am facing tab error
!indent
Indentation
Indentation is leading whitespace (spaces and tabs) at the beginning of a line of code. In the case of Python, they are used to determine the grouping of statements.
Spaces should be preferred over tabs. To be clear, this is in reference to the character itself, not the keys on a keyboard. Your editor/IDE should be configured to insert spaces when the TAB key is pressed. The amount of spaces should be a multiple of 4, except optionally in the case of continuation lines.
Example
def foo():
bar = 'baz' # indented one level
if bar == 'baz':
print('ham') # indented two levels
return bar # indented one level
The first line is not indented. The next two lines are indented to be inside of the function definition. They will only run when the function is called. The fourth line is indented to be inside the if statement, and will only run if the if statement evaluates to True. The fifth and last line is like the 2nd and 3rd and will always run when the function is called. It effectively closes the if statement above as no more lines can be inside the if statement below that line.
Indentation is used after:
1. Compound statements (eg. if, while, for, try, with, def, class, and their counterparts)
2. Continuation lines
More Info
1. Indentation style guide
2. Tabs or Spaces?
3. Official docs on indentation
Use space characters or tab characters for indentation. Never both in the one module.
Tom Lehrer on public domain (2020):
Use the above link and get the uninterrupted Lehrer TV-performance and The Tom Lehrer Collection from Amazon.com.
What am I looking at?
carpeting
I want a rug which matches
and which is not a floral design belonging to a boomer
Hey @mystic lily!
It looks like you tried to attach file type(s) that we do not allow (). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a.
Feel free to ask in #community-meta if you think this is a mistake.
LOL
it is very sad
now I have restarted
get more swap?
eli@parsley:~$ neofetch
_,met$$$$$gg. eli@parsley
,g$$$$$$$$$$$$$$$P. -----------
,g$$P" """Y$$.". OS: Debian GNU/Linux 11 (bullseye) x86_64
,$$P' `$$$. Host: OptiPlex 3020 01
',$$P ,ggs. `$$b: Kernel: 5.10.0-9-amd64
`d$$' ,$P"' . $$$ Uptime: 45 secs
$$P d$' , $$P Packages: 2823 (dpkg)
$$: $$. - ,d$$' Shell: bash 5.1.4
$$; Y$b._ _,d$P' Resolution: 1920x1080, 1680x1050
Y$$. `.`"Y$$$$P"' WM: i3
`$$b "-.__ Theme: Arc-Dark [GTK2/3]
`Y$$ Icons: Papirus [GTK2/3]
`Y$$. Terminal: gnome-terminal
`$$b. CPU: Intel i5-4570 (4) @ 3.600GHz
`Y$$b. GPU: NVIDIA GeForce GT 740
`"Y$b._ Memory: 1027MiB / 7909MiB
`"""
I making a multiplayer Porject
Choose Freedom. Choose Fedora. Pick a flavor of Fedora streamlined for your needs, and get to work right away.
no thx
As an website app
I like fedora π
dnf update -y && dnf upgrade -y && dnf autoremove -y π
I like pyqt5 π
@sinful igloo https://pypi.org/project/PyQt5/
!e print(5 > 6)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
False
Ok
(>= current_price
sellprice)
!e
print(float("3.14"))
print(float(" 3.14 "))
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
001 | 3.14
002 | 3.14
!e
print(float("3.14.1"))
@woeful salmon :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ValueError: could not convert string to float: '3.14.1'
0.000000342
Why can't I speak :sad:
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I need to chat 50 times to be able to speak???
50 messages, and 3 days in the server
OOOOOOO
oh, so no spam, decent messages for 3 days then
yeah
I will try
but do any of you know RASA?? Im in need of desperate help
what's RASA?
niver have I hearrrd of it, me lad
Yeh, I guess it isnt famous, Very low resources
is this it?
https://github.com/RasaHQ/rasa
@rugged root
i'm learning Emacs Lisp
and i'm confused
how the hell do you type a single slash
it did similar to repr() for the output line
what is EMACS LISP?
maybe try to use the equivalent to print() ?
its a lisp language made specifically to extend and configure emacs
i'm using emacs now so learning it but
that is weird behavior
lol
>>> 'a \\ b'
'a \\ b'
>>> print('a \\ b')
a \ b
does consecutive messages count as individual messages or just 1 block of messages?
these
are
separate
yeah
i
okay stopped
Accidentally hit voice chat there in case you're wondering haha...
can I tempt you?
#751591688538947646
#799641437645701151
#751592231726481530
#764232549840846858
Ahhh don't do this to me
lol
i:before {
content: '\A';
}
<style>
.style-display:after {
white-space: pre;
content: '\00000A\00003C/style\00003E';
}
</style>
<!-- ... -->
<pre class="style-display">* {
box-sizing: border-box;
}</pre>
</style>
I just need 9 more messages
Now 8
From 2019 when I started my university
2019- Started, Not like continuous python only
@regal agate is it pronounced "e-z" or '"ease" ?
e-z lol
o- o
What have you done
i didn't do anything
Why
ah
idk lol
That's so unintuitive
i mean
restart
nil kinda makes sense
but not t
Shoot
go on
Okay, that I can see
Still feels weird compared to every other language out there
I would like to learn family friendly English
also functions with a p prefix are predicate and return true or false (t or nil)
huh what?
so booleanp returns t when the argument given is a boolean for example
use keal not Kill forged in fire way
Why would booleanp nil return t then?
cuz it is considered boolean
in lisp
Is there a site where I can look for programmers to help build software?
Bcuz there is. Freaking Styron
oh
hay, hay, hay bale
Nice joke
fiver and upwork are a few famous ones o- o
but there's many other freelance websites you can hire people on
Is there any from British
^w^
Pls no
?
I hate this face
my happy face is ..... ...... *sniffle*
i am literally starting to cry irl so you know
We have a few links pinned in #career-advice, but beyond that I'm not sure. We don't really have a recruitment channel and discourage people recruiting here. Maybe Fivr?
Sorry! If I hurt your feelings. It is my fault. I should have adjusted it!
Bcuz of my school pressure
I got mad at you
Sorry
@primal yacht
Really sorry
Hey! Can you explain about your software
.... thank ...*sniffle* .... thank you ... it will be a bit before i can calm down
I am kinda
!stream 766969827113697310
β @zenith peak can now stream until <t:1636640690:f>.
i realise this , schools funky rules
I think the rain is screwing my connection.
It is fine for me
π they did inspect element on top of an already made for april fools pep
As I said. My connection.
thank you for your replyπΊ i will try with fivr ok thanks
It works for me even when it is raining
Happy to. Sorry I couldn't be more helpful
Hemlock
Mine has variable ideas on the subject as it applies.
I am use dumb wifi
thank you for your reply.
yes i can if you have time for me
I have time
Right now
Would be best if this was taken to DMs in this case
Yea
same is the case but my wifi is stable to some extends
print('Enter your name:')
x = input()
print('Hello, ' + x)
It have smallest wifi
in what sense it is small
It's the wired connection interacting with the water, I fear.
!e
class Ξ:
def __str__(self):
return type(self).__name__
print(A())
@woeful salmon :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 5, in <module>
003 | NameError: name 'A' is not defined
Not radio attenuation.
how do you run code here?
This is how small
print('Enter your age:')
x = input()
print(f'bob is {x} years old')
oo the jio one
No banana for scale?
lol
!e
class Ξ:
def __str__(self):
return type(self).__name__
print(A)
@rugged root :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 5, in <module>
003 | NameError: name 'A' is not defined
Ok, But I code in replit
\u0391 : GREEK CAPITAL LETTER ALPHA - Ξ
You are not allowed to use that command here. Please use the #bot-commands channel instead.
Hemlock! Is there any way to learn the friendliest English
!charinfo A
\u0041 : LATIN CAPITAL LETTER A - A
how much it costs u for a month
Friendliness can be contextual.
21 rupees
I should have seen that coming, Reap
now imagine someone contributing code with that in one of the class names
you will never know
For 30GB DAta
wht
@sinful igloo What is considered friendly or polite in one situation could be considered inappropriate in another.
Yea
sorry for my english, i use translate, i not understand your last message , but thanks for anyway
I am playing Smash Hit
He's talking about this site
Remote Server returned '552 5.6.0 Headers too large (32768 max)(at END OF DATA)'
I think this marks 50 messages ,atleast
Will this site replit share the code with a third party Or make the code public?
Because property rights matter
It would make it public unless you pay for private
Which in that case, you'd probably be better keeping your private code in GitHub, as they provide private repos for free
oh i see now
π€·ββοΈ and you can press . on a github repo to get a vs code instance in your browser
and commit your changes to your code from right there
Yep
yeah
Have you tried github.dev yet? Just press the dot key
@GitHub
1-how many years its take to learn programing and coding software ?
2-And are there educational centers on the Internet that provide a teacher to teach and answer inquiries and guidance?
Watermelon gas.
can somebody help me for my assignment?
everyone learns at different speeds and there's different kinds of software some can be easier to make than others same for languages
They also just announced vscode.dev, which can sync from GitHub or even open local files
https://code.visualstudio.com/blogs/2021/10/20/vscode-dev
ah yeah i saw that they made a teasing video for it what other sites it may support in future
so it might extend to bitbucket and gitlab repos as well in the future
who knows
can you do binary to ascii in python?
You can do binary to decimal to ascii.
Hey
You can to bytes to things.
!e
print(chr(int("01000000", 2)))
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
@
Have you ever played
I just finish binary to decimal
the problem is I don't know how to start in converting the decimal into ascii
I reached 4 checkpoints
Fancy fancy
!stream 604009849298223126
β @mystic lily can now stream until <t:1636642124:f>.
no that's illegal my prof gonna kill me hahaha
Hemlock
It is annoying how Microsoft can't seem to make up their mind though.
They replaced Visual Studio Online with GitHub Codespaces, and now they're very proud to announce vscode.dev as a complement to GitHub Codespaces
somebody help me please I was trying to do is to convert the decimal into ascii manually
@mystic lily you're supposed to buy high and sell low
Don't use bare excepts or Barry the Bare Exception Bear will get you.
o- o i thought codespaces were supposed to be full development environments on the cloud rather than just the editor
Is there any website will help me learning te comparing
names are confusing
do you guys available for dm?
What're you needing?
you can manually create a dictionary mapping each letter to its ascii value
cuz if you're now allowed to use chr then i'm guessing you can't import other things from standard lib either
Programming professors be like: "Do the thing. You are not allowed to use anything to achieve this."
candlestick_patterns = ["A", "B" ...]
for pattern in candlestick_patterns:
talib_method = getattr(talib, f"prefix{pattern}")
df_csv[pattern] = talib_method(low, high, whatever)
did you paint it youself? on a canvas? on a wall?
Pls
Oh god, the guilt!
Produced by @christopherbaklid
No! I made an paint software
Who wanna check it out
can someone help me with linked lists
how do you sound so gentle while threatening to hit someone's kid...
oh nvm
I mean ... Well, what do you consider a complete environment?
It's basically VSCode in a Docker container
I don't use it currently, but it supports everything I would need. I can even use apt to install that one extra dependency that I need
basically access to the os itself
rather than just the editor
Fair
I'm not available for a full-scale help session right now, but have you written your own class objects, yet?
I'm still partial to PyCharm, but they're now developing a browser client too
https://lp.jetbrains.com/projector/
how do you sort the linked list by miles?
from dataclasses import dataclass
from typing import Sized, Union
@dataclass
class TrainCar:
content:str
station:str
mile:int
next:Union[None, 'train']
@dataclass
class train:
size:int
speed: int
next: Union[None, TrainCar]
one = TrainCar("Bears","DC",550,None)
two = TrainCar("Bears","New York",251,one)
three = TrainCar("Bagels","Boston",109,two)
trains = train(size=3, speed=0,next=three)
#user input
lst= ['Tea', 'Boston',351]
content = lst[0]
station = lst[1]
distance = lst[2]
Ah. Like I said. I'm not available to help much right now. Maybe someone else can help. You may also like to avail yourself of the help chatroom system. #βο½how-to-get-help
can you not just use this?
ok thanks!
π that sounded kinda weird to me
yes it's very much a work in progress still. it's not quite passable yet
no like you can stick it into reaper sounded weird to me
xD
the above song itself kinda sounds like an old emo song's instrumentation o-o
Quayboard. The surfboard's lesser-known sibling.
Γ
Kowloon Walled City was an ungoverned and densely populated de jure Chinese enclave within the boundaries of Kowloon City, British Hong Kong. Originally a Chinese military fort, the walled city became an enclave after the New Territories were leased to the United Kingdom by China in 1898. Its population increased dramatically following the Japan...
Episode Originally Released: May 22nd, 2010
I had originally attempted to start Ancient DOS Games in 2008 on GameTrailers but only managed to get two episodes made before giving up due to working with extremely outdated hardware and software, not to mention not really going with a style that suited me...
ah
@vivid palm try restarting Discord completely. failing that, restart the device from the normal power off menu option (next to power off / shutdown)
tried reinstalling but squirrelupdate or w/e got mad bc it couldn't delete the folder
took a reboot
mm
Β―_(γ)_/Β―
yes and checked task mgr
well rebooting machine seems to have fixed it
discord auto launches and it must have reinstalled itself
windows does that all the time so annoying
all my settings are back to their original
Is that good?
https://www.theafricareport.com/125692/exclusive-will-the-mauritius-supreme-court-shake-up-internet-across-africa/
https://apnews.com/article/technology-business-africa-china-uganda-5462f03bbd75bf9724a26623295fbf0e
https://www.newtimes.co.rw/opinions/solvable-afrinic-crisis-could-derail-internet-development-africa
https://afrinic.net/20211015-update-on-legal-case-freeze-order-on-afrinic-bank-accounts-has-been-removed
Conflict between Afrinic and Cloud Innovation has fleshed out a major issue: who has the right to allocate IP addresses to Africa?
KAMPALA, Uganda (AP) β Outsiders have long profited from Africaβs riches of gold, diamonds, and even people.β―Digital resources have proven no different. Millions of internet addresses assigned to Africa have been waylaid, some fraudulently, including through insider machinations linked to a former top employee of the nonprofit that assigns the ...
no i did what i wanted to do
refresh makes discord a blank gray screen
restarting discord process/app didn't fix the vc connection
@rugged root have you used sharepoint sites yet?
i like
except for when files sometimes don't sync.. but other than that
Not yet.
It's on my list to do so, but haven't yet. I was originally going to back when I first re-wrote the Excel plugin
What am I listening to?
I'm not sure either. I just chime in from time to time
Is it like a podcast ?
Just us having a conversation
wait, but i dont see anyone glowing up when you talk
try reloading your client
i thought this was like a recording or something
no lol
bug
ya its fine now
you'll also see sometimes users are listed in vc even tho they're not there. and vice versa
we always talk about clothes in here π€£
its @gentle flint fault
I can't wait until I'm old enough to justify wearing black socks with sandals, just to drive people insane
Sigma male grindset
i accidentally called him john elton to my dad a few years back, we kept calling him that ever since
Did someone mention SharePoint?
@amber raptor Still doing good?
π
Is that your personal one drive on the bottom?
these are the corresponding buttons in web ui
no it's onedrive for business, or smth similar
Accounting is the sharepoint site name, AR is the name of the folder within
Are both hidden names Sharepoint libraries or is one your personal OneDrive?
windows is just displaying them differently
Bottom one is "normal" OneDrive
top is sharepoint synced folders, bottom is business onedrive, not personal
Top one is a synced SharePoint library
@wind cobalt where you from john elton?
By personal I meant your individual one drive account
vs a sharepoint shared library
I would get AR - Accounting out your personal One Drive Account and only use library one
notice the folder displayed as AR - Accounting is a shortcut, not an actual folder
the library one isn't syncing
since 11/1
What happens if you click sync again?
whereas when i access the folder from the shortcut in the onedrive folder, all contents are synced
Right Click, close it and setup sync again
well, that explains it
is gradle not similar to aws, azure, docker all those other things?
gradle is build process
shen/rab wanna help me in another vc?
I don't know enough about OneDrive any more except throw it all out when starts misbehaving
@rugged root dont trust him...he dosent have the best reputation.
its your reputation on the line
π€£
Not exactly
Gradle is like Maven - It manages the build and dependencies
Docker is similar to virtual machines
You can create resources on Azure - virtual machines for example
So - you can create a virtual machine on Azure that runs a Java application that was built with Gradle
thanks man
MCreator is open source software used to make Minecraft Java Edition mods, Bedrock Edition Add-Ons, and data packs using an intuitive easy-to-learn interface or with an integrated code editor. It is used worldwide by Minecraft players, mod developers, for education and by STEM workshops.
@scenic wind This'll probably make your life a whole lot easier
heyyy
Spook-ity!
@scenic wind https://github.com/mhxion/awesome-discord-communities/#java You're going to have an easier time getting help with gradle over in the Java servers.
ok thankyou
i got one
@whole bear #voice-verification
Ouch
you guys good with vi editor/vim?
hides Arch Linux in corner
Linux community could do with supporting only a few distros
under the rug
because how much work is time wasted dealing with different distros
Do you have a question about vim?
Arch Linux is best
Is it how to exit vi / vim ?
yea a couple of questions..im currently eating a sandiwch so ill post them after im finished
sandwich *
You don't exit
You just buy a new computer
Don't use snap
Seriously ...
true
hey hey hey
hay, hay, hay bale
no it isnt to exit π€£
im familiar with the insert mode and the other mode for commands
just a few questions when playing with it id like to answer to complete my knowledge
ill post as soon as im done eating

nope
i use 32-bit machine
for that application
dos box never worked with our app
Episode Originally Released: May 22nd, 2010
I had originally attempted to start Ancient DOS Games in 2008 on GameTrailers but only managed to get two episodes made before giving up due to working with extremely outdated hardware and software, not to mention not really going with a style that suited me...
yes bc it works on win10 so i see no reason it wouldn't on win11
foxpro?
yes
FoxPro was a text-based procedurally oriented programming language and database management system (DBMS), and it was also an object-oriented programming language, originally published by Fox Software and later by Microsoft, for MS-DOS, Windows, Macintosh, and UNIX. The final published release of FoxPro was 2.6. Development continued under the V...
Visual FoxPro was a Microsoft data-centric procedural programming language that subsequently became object-oriented.
It was derived from FoxPro (originally known as FoxBASE) which was developed by Fox Software beginning in 1984. Fox Technologies merged with Microsoft in 1992, after which the software acquired further features and the prefix "Vis...
π¦
Support this channel on Patreon:
https://www.patreon.com/8BitGuy1
Thanks go out to my guest stars:
Lazy Game Reviews
https://www.youtube.com/user/phreakindee
Modern Vintage Gamer
https://www.youtube.com/user/jimako123
Classic Gaming Quarterly
https://www.youtube.com/user/CGQuarterly
The Obsolete Geek
https://www.youtube.com/user/robivy64
In...
ok guys im back, in vi editor i press n inside of it and i get no previous regular expression in red at the bottom, what is this used for?(n)
@sweet lodge
Dear god this bag is friggin huge
n is next search result
You haven't specified what you're searching for
what situation woudl this be useful for? Thanks man
After you search for something, you can press n to go the next result (and the next one and the next one and so on...)
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
makes sense. Ill practice this later
ok next question might be a little more complicated because im using an online unix terminal(webinal-i know i could just use a VM since im on windows, but maybe its the vi editor itself so i thought id ask). Why sometimes when i press h and my cursor is over and highlighting the letter(in this instance the h, for hello inside of the file) and i hold the button in it goes to select(at the bottom, where insert would show if you were in insert mode), types a whole bunch of h's and, when they go in turns the select at the bottom to Insert
this is when im not in insert mode...so i shouldnt be able to put in any text
@sweet lodge
should this get me into select and insert? Or is it a problem with what im using?
i thought the only way to get into insert mode was by pressing i
I'm not sure
h is supposed to be "move the cursor left one character"
I can't get into insert mode by holding h on my computer (Ubuntu WSL)
Might be something different with your version of vim
@rugged root - What's in the bag?
good to know, probabaly an error with what im using
What food?
I thought it was the i key for insert mode
wtf
alright guys when i press v, it puts at the bottom, 'visual' instead of inset, i dont think this is a mode because theirs only command mode and insert mode, but what is this for/why would you use this?
I don't know I just work here
insert*
If using Vim, have it closed and run this in bash (or whatever, using the appropriate shell conventions)
mv -i ~/.vimrc ~/.vimrc.original
Reopening vim should then use the defaults
i dont think its vim, but its a online vi editor, i know all the commands are the same though
Ah ...
ok so you think this visual stuff is broke?
or is this a thing?
does anyone know what im talking about?
what site?
why would we need visual with this interface?π
webinal
you need an account though
it takes an email
Visual mode is for highlighting multiple characters at once. Great for yanking (copying), deleting, etc. and knowing what you are selecting.
Almost like accounting is a monthly thing
Thank you
ill try and get some practice with it
Is all your browser Add-ons told to NOT block ads, malware, etc. on that site?
no π€£
it blocks ads on malware on most sites
but i dont really know/havent got really strict into it(understand fully)
@primal yacht what are buffers for with vi editor? what situation could i use them in/would it be useful?
="404"
Since when do we allow multiple decimal points in accounting?
who said it's accounting hmmmmmmmmm?
fair enough
π
I only know how to use them when I have told vim to open multiple files at once
these are the receipts I gotta work through
not using Excel?
Wait
so what kind is the point of them, why does this feature exist?
yes
it does
but I never found out how to use it
Is total totaal?
yes
Fair enough
Datum is date
@raw carbon is my dad
vim index.html style.css script.js
Allows me to use:
:ls - list buffers
:bn - next buffer
:bp - previous buffer
:b1 - go to buffer 1 / etc.
Thank you @primal yacht
you can also just open one file and grep open stuff
these days I just use tabs for multiple files
This is for vi / vim .... are you caught up with the reason why it is being talked about
yes...you can do that in vim
without plugins?
of course
without custom ~/.vimrc ?
you can use :e with a glob
for making a new buffer?
yeah?
So, @jovial nexus, try :e NEW_OR_EXISTING_FILENAME_HERE then after that, try the :bX stuff
Also, :help / :help HELP_KEY (like :help :set) and :helpgrep SEARCH_TERM_HERE might be of use
is their any other commands/keys ont he keyboard apart from the obvious quit/save, ones i should try out?
and situations theyre good/useful for?
Thanks, I am not 100% at vim as of yet ... and my memory is not that good.
:q! close active buffer / file but do NOT save it
:w !python is same as this bash ... kinda
cat <<"EOF" | python -
CONTENT_OF_THE_CURRENT_BUFFER_WINDOW
GETS_PLACED_HERE
EVEN_IF_IT_IS_NOT_SAVED
IT_IS_THE_CURRENT_STATE_OF_THAT_BUFFER
EOF
i know this..π€£
is their ones i havent mentioned
like ive tried all the keys on the keyboard
and what in general is vim good for..ive only ever used this to put text on a https:// site after getting a certificate for a text file
If you got vim installed, you might also have vimtutor
this was in class
i dont have it at home
Windows 10 / 11 with WSL?
A Linux distro?
@jovial nexus .... Linux might have vimtutor already installed if you have vim installed, but if not, it probably is also with the same package manager that you get vim from
Windows 10 / 11 with WSL, same applies for getting vimtutor installed.
For Windows (I assume Win7+), there is also GVim you can install that provides better mouse support as well as system clipboard support.
also for linux
vim online works well for vimtutor
guys the ss comand in unix
does anyone know how to use it
Not familiar with the command
i get this as my output
i am on a private network on it though (college) not home...
is this normal?
@amber raptor doesn't msft own your soul
no idea
i just realised you have vim as your profile pic
XD yes
can you give me reasonable complex unix commands i can use and try that that i get an otput with
that are useful
outside of ls, cd, find
like good ones
mhhhh
What do you consider good?
make me think
cowsay is not really usefull...
nes hat are reasonably complex
Doesnβt mean I canβt yell at Azure
grep
maybe tr
We can like something but hate parts of it
indeed, i supposed he knows them
what does grep do?
ok
what does tr do, what should i type in?
@raw carbon https://www.youtube.com/watch?v=2dNGPkoDzh0
you can try ls | grep "py$" in a folder containing python files
awk and sed
what about a folder containing txt files
these are quite complex. also, knowing vim kind of makes them less usefull
ive heard awk, what does that do?
@rugged root - are PDF attachments allowed here?
yea i kind of dont want to take up too much of everyones time
i just want plain english terms for what they do, and something i can type in and see an output to kind of get used to this whole thing
Awk and sed are for searching and/or editing text
it's a utility to do complex operations. it defines a simple syntax that is almost a programming language
so you can imagine them as vim command mode
but optimized for text manipulation
and with a different syntax
sed is stream editor, like the :s/x/y command in vim
so theirs nothing really i can type in now which is quite complex without having some python files or something else, right now i only have a few directories i made and a few txt files π€£
you would do something like command_with_output | awk "here an awk program" and that would operate on the command output, to extract some marts, to modify them etc.
i did man grep and got like a whole bunch of information
MuseScore is a scorewriter for Windows, macOS, and Linux supporting a wide variety of file formats and input methods. It is released as free and open-source software under the GNU General Public License. MuseScore is accompanied by a freemium mobile score viewer and playback app, and an online score sharing platform.
(in vim, the full version has more parameters so you can define a start and ending line with searching)
mhm
for macos, the apple solution is much better
it is called guitar pro
if i remember well
cool
but it is for fretted instruments
which a low whistle is not
that's guitar
yes but you can put any sound
believe me, my father uses it
and i ensure you that it can play any music with almost any instrument
like even drums
regardless, since I'm on Linux, it hardly matters
thanks for the recommendation tho
@raw carbon https://en.wikipedia.org/wiki/Fipple
The term fipple specifies a variety of end-blown flute that includes the tin whistle and the recorder. The HornbostelβSachs system for classifying musical instruments places this group under the heading "Flutes with duct or duct flutes." The label "fipple flute" is frequently applied to members of the subgroup but there is no general agreement a...
eh
using software actually meant to run on my platform is a lot easier
shure
sure or shure ?
sure
Don't use jbutton
@unborn storm when you use the ss command what is your output in the terminal?
Use ybutton
lol it's fine
the thing is that muse score is a lot less powerfull
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class Gui implements ActionListener {
private int count = 0;
private JLabel label;
private JFrame frame;
private JPanel panel;
private JButton button;
public Gui() {
frame = new JFrame();
button = new JButton("Launch");
button.addActionListener(this);
button.setPreferredSize(new Dimension(100, 100));
label = new JLabel("Number of clicks: 0");
panel = new JPanel();
panel.setBorder(BorderFactory.createEmptyBorder(30, 30, 10, 30));
panel.setLayout(new GridLayout(0, 1));
panel.add(button);
panel.add(label);
frame.add(panel, BorderLayout.CENTER);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setResizable(false);
frame.setTitle("Our Gui");
frame.pack();
frame.setVisible(true);
frame.setSize(1152, 720);
frame.setLocationRelativeTo(null);
}
public static void main(String[] args){
new Gui();
}
@Override
public void actionPerformed(ActionEvent e) {
count++;
label.setText("Number of clicks: " + count);
}
}
it is zsh: command not found: ss
because i haven't installed it
and idk what it does
i need more cool unix commands, i only have ran 1...π€£
yes
ss
Socket Statistics. Shows information similar to netstat, ss can display more TCP and state information than other tools.
have you ran it before @sweet lodge
A long time ago
how about chmod, can i run that? and can someone explain it to me in plain enlgish what its used for? I always hear about it
chmod changes permissions for a file
what could i type
chmod <filename.txt.> ?
+w = for write in file?
yes
ok let me try
also chmod +x program
you should find a file that you cannot write on
it did nothing...
shure
I forgot
How do I specify user/group/all with chmod?
no idea, i never use it
i did ls before to try and see the file i was trying to change the permissions of
ok, try to write that
echo "#!/usr/bin/python\nprint("hello, world!")" > hello_world.py
oskar this vim stuff is going to be the end of me
then ls -l. you'll see that the file you created has r (you are allowed to read) and w (also to write)
@whole bear If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know
this is not vim
ls -l showed a bunch of stuff
this just writes the file containing :
#!/usr/bin/python
print("hello, world!")
atleast im getting some output
what output ?
it jut shows me all my files /directories lmao
yes
and the number i have
that is the purpose of ls -l
Here are a few books on bash/regex/scripting/etc
You can flip through them to see some commands/programs you can use
@rugged root - let me know if this isn't allowed and I'll remove it
then, if you try to run ./hello_world it will fail
because that file has no premission to be executed
ok but fast i dont have much time
alright check #code-help-voice-text
does anybody know anything about O(n) notation?
I need to figure out how to find the O(n) notation from looking a few lines of code
does anybody got a resource
hello sirsss
TYVM sirrr
@rugged root u a goddd i been looking for resources like these
Hope it helps!
<link>
hello
*** ii***
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
@terse needle :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | SyntaxError: not a chance
https://www.retrode.com/ I got one of those to dump the roms from my carts
the one on the left can do shit.
Ooooooooooooooooooooooooooooooooooooooooooooooo https://github.com/sanni/cartreader
@whole bear Lovefest was for our Valentine's event
oh
whats this
I recorded the top one
the bottom one was me experimenting with the reverb filter
hello
To my knowledge there isn't one.
wtf is that ???
π³
what does it do π€
hmm
why is it called "eggBOT" ?
where does the BOT comes from π€£
as far as i heard, it's just puts engraves stuff on the egg


ehhh imperial units
Oh hush
I love keyboard lights
From Chili KlausΒ΄ younger years - he plays When youΒ΄re smiling using a tenor and a soprano saw.
By the way ...
Piano Hans Esbjerg
Sax Jan Kaspersen
Bass Peter Vuust
Drums Lars Wagner
Ubuntu idk i use arch
Damn it, as soon as I sit down....
gtg
split the 03:00 AM time into 03:00 and AM
call the 03:00 time and the AM time_of_day
split time on the colon, into hours and minutes
if time_of_day is PM, then add 12 to the hours
now you have 24-hour time
combine hours and minutes into a single number, called time_concatenated or smth like that; in this case, 0300
check if time_concatenated is larger than or equal to 3 am (0300) and smaller than or equal to 8:30 am (0830)
if so, execute your code
@junior kayak
s
We talking about learning python
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Corey Schafer, Youtuber. Playlists for Python.
Sentdex.
Socratica.
Tech with Tim.
bot
Ah.
@vivid palm https://cdn.discordapp.com/attachments/412357430186344448/905819242484621322/teaser.png Not one I was considering in seriousness, but one of the...offcuts of the process.
I like that @somber heath !!
Mm. I do, too. Gaudy, but...it kind of works.
and the title
I cant talk looks like the mod force turn my mic off
how to verify?
awts see you in two days bro hahaha
def getting_classes_from_cur_cenerio(cur_class_OR_module: str, core_module: str):
regex = r"\w+"
if sys.platform == "win32":
cmd = [
"python",
"-c",
'import {},inspect; print([x[0] for x in inspect.getmembers(eval("{}")) if'
' inspect.isclass(x[1])])'.format(core_module, cur_class_OR_module),
]
else:
cmd = [
"python3",
"-c",
'import {},inspect; print([x[0] for x in inspect.getmembers(eval("{}")) if'
' inspect.isclass(x[1])])'.format(core_module, cur_class_OR_module),
]
if (
cur_class_OR_module != ''
): # reason being for instance we are writing a call that has no `cur_class_OR_module`
# for that also it would `like print` go and get the results by running `shell_cmd`.
if core_module in [x for x in sys.modules]:
try:
a = importlib.import_module(core_module)
globals()[core_module] = a
main_command = [
x[0]
for x in getmembers(eval('{}'.format(cur_class_OR_module)))
if isclass(x[1])
]
return main_command
except Exception:
pass
else:
main_results = subprocess.run(cmd, capture_output=True).stdout.decode(
"utf-8"
)
print(main_results)
attribute = re.findall(re.compile(regex), main_results)
return attribute
os.path
My internet is slow today
oh ,
Etc.
The University of Queensland is a research-intensive institution in the top 50 universities world-wide, offering choice and opportunity in undergraduate and postgraduate learning.
So there may be disbursements available from the government, and disbursements available from the educational institutions themselves.
Though I wouldn't put it past this government to be contemptuous toward anything that means they have to pay anyone.
Or letting you in through the door at all, for that matter.
@somber heath i was asking gaming
Given the fascist we have governing that side of things.
Genuine covid considerations aside.
ey emloke : )
Day going well?
having a hard time trying to make windows look nice
