#ot2-the-original-pubsta

652 messages · Page 30 of 1

pine rapids
#

but im a noob

#

is it gonna be hard

round moss
#

you don't need the more complicated features or the linear algebra, opencv just uses it as a convenient way of manipulating multidimensional arrays

pine rapids
#

ok

round moss
#

it really isn't horrible, but I can understand if you start out confused

#

did you learn about regular lists?

#

just the [1, 3, 4, 5]

pine rapids
#

yeah

round moss
#

did you ever try to put a list into another list like [[1]]

pine rapids
#

ye

round moss
#

then you should be fine

#

numpy is just a more powerful version of that

#

and by powerful I mean easy

pine rapids
#

so i should only do specific stuff in numpy?

round moss
#

you can do whatever you want more or less

#

I don't really know what you mean by specific

#

there are some confusing things in numpy, like the 3 arg form of np.where

pine rapids
#

ok

#

like how would i know what i need to learn for opencv

round moss
#

use opencv and google what you want to do or ask in a help channel about it. That's more or less how I went about it

pine rapids
#

ok ty

#

alr

wide totem
#

!pypi google

clever salmonBOT
wide totem
#

!pypi numpy

clever salmonBOT
#

NumPy is the fundamental package for array computing with Python.

round moss
#

and if you find it boring, just stop and try something else. What was fun for me doesn't have to be fun for you

#

!pypi opencv-python

clever salmonBOT
languid osprey
#

Is there a way to get rounded corners on openbox?

languid osprey
#

Cool

#

Hm

#

Thanks :D

#

I'll check that out

wide totem
#

@bright leaf hellllp ill listen

#

So lost here

bright leaf
#

🤔 What is that

wide totem
#

Android gplay store

#

I tried clearing cache and data, won't authenticate at all

full marlin
#

Can’t relate I have an iPhone

bright leaf
#

no clue sorry

full marlin
#

lmao

wide totem
#

I am signed into my account, that's the problem

wide totem
#

Damn it

bright leaf
#

I don't, I just dont know how to fix that error

wide totem
#

Ah

#

Hhhhh

#

Oh ffs

#

Aight

#

This is fun

full marlin
#

Is there a customer service number?

#

that you can call? So they fix it?

wide totem
#

Lo

#

Wait

#

I have a pixel

#

So that's actually possible

wide totem
#

@full marlin @bright leaf it really liked a password change

#

like, really really

#

really really really

bright leaf
#

👀

novel briar
#

Can anyone pleaseee help me with a few things if so dm me

wide totem
#

@wicked hollow will you be here in like 10 hours and could help me with git

wicked hollow
#

Probably not, that's the middle of the work day for me

wide totem
#

Ah okay

wicked hollow
#

But I'm sure there will be someone around who can

wide totem
#

Sheesh go to sleep

wicked hollow
#

2 AM here, heh

wide totem
#

don't tell me to sleep tho

#

1:45 am here

wicked hollow
#

Cute.

#

There actually are timezones that are 15 minutes off from an hour

#

None around GMT - 5, though

wide totem
#

So its actually 2 am for you or you rounded slightly?

wicked hollow
#

Rounded.

wide totem
#

Oh okay

wicked hollow
#

It's currently 11:30 AM in Nepal, though

wide totem
#

Hm

#

I should sleep tho

dusky cliff
#

11:15 am for me 🥴

wide totem
#

School at 8/30 am

#

Pretend that's a :

#

I don't wanna edit

dusky cliff
#

alr

wide totem
#

Ty

wide totem
#

Lmao

wicked hollow
#

lol

wide totem
#

I need to sleep

#

Also

#

On Wednesday I'm wiping my raspberry pi 3

#

And replacing the SD card

#

Because ffs it's starting to have so serious issues

#

It mounted in read only yesterday it seems

median blade
#

damn

hallow imp
#

"grow your projects" can i advertise my bot? eyes_zoom

echo flower
#

that should clean the corruption

warped maple
tranquil ridge
#

no, i dont think so

#

but i think you can share the features as a project in off topic

somber belfry
#

No, we dont allow advertisements for bots.

#

@hallow imp , @warped maple

lucid osprey
#

but advertise link the source code btw

somber belfry
#

Showcasing opensource projects is fine.

warped maple
somber belfry
lucid osprey
#

vivekji

keen burrow
#

Vivekji indeed

lucid osprey
#

ima call you vivekji 🙏 because

respect staff members and their..
💯

#

lol hahaha you even changed your name to vivekji

keen burrow
#

Yep, he did

#

He did...

lucid osprey
#

:Salute:

tranquil ridge
#

no changing names of other people

somber belfry
#

Abusekarys

#

always abusing

lucid osprey
#

wait akarys changed ur username

#

?

#

like by using the bot command?

#

.topic

rustic harborBOT
#
**What is the most useless talent that you have?**

Suggest more topics here!

keen burrow
#

I didn't do anything

#

No proof or whatsoever

dusky cliff
#

sure

lucid osprey
#

😉

dusky cliff
#

we totally trust you akarys

#

totally

lucid osprey
#

akarys baiyya we believe you

lucid osprey
# rustic harbor

Its very difficult to press on "show message" over and over again 🥴

short hound
#

Yo is there a name for the language/pseudo language that command line interfaces use? Specifically looking for windows command line

#

I'm tempted to call the windows cmd language "Batch" because the files are called "batch files"

#

I'm really just looking for a good book on becoming a cmd superuser

fair creek
#

#Create a function to combine the values of the important columns into a single string
def get_important_features(data):
important_features = []
for i in range(0, data.shape[0]):
important_features.append(data['Actors'][i]+' '+data['Director'][i]+' '+data['Genre'][i]+' '+data['Title'][i])

return important_features                                                                                              #Create a column to hold the combined strings

df['important_features'] = get_important_features(df)

#Show the data
df.head(3)
This is my code although i am getting below error: Traceback (most recent call last)
<ipython-input-10-50d23e3e0015> in <module>()
1 #Create a column to hold the combined strings
----> 2 df['important_features'] = get_important_features(df)
3
4 #Show the data
5 df.head(3)

3 frames
/usr/local/lib/python3.7/dist-packages/pandas/core/internals/construction.py in sanitize_index(data, index)
746 if len(data) != len(index):
747 raise ValueError(
--> 748 "Length of values "
749 f"({len(data)}) "
750 "does not match length of index "

ValueError: Length of values (1) does not match length of index (1000)
Please help

full marlin
fair creek
lucid osprey
#

hi~~

jovial island
#

.topic

rustic harborBOT
#
**If you could be anyone else for one day, who would it be?**

Suggest more topics here!

jovial island
#

.topic

rustic harborBOT
#
**What Easter tradition do you enjoy most?**

Suggest more topics here!

zinc vale
#

ooof

blissful coral
jovial island
#

non

blissful coral
#

well, dont then

languid osprey
jovial island
#

@languid osprey how is the language going?

languid osprey
#

Im planning to start coding it next month

#

I need to finalize the features

jovial island
#

ok

languid osprey
#

I'm planning to make it in rust for speed

jovial island
#

i wanna make a language that is very generous and accepts both colons and indentations, or semicolons and braces,

round moss
#

php

languid osprey
#

Lol

#

PHP allows that? I haven't ever used it

#

I want my language to have optional type declaration

jovial island
#

oh

round moss
#

well, IDK if its actually indentation

if ($pred):
    $obj->method();
endif;
languid osprey
#

Hm

round moss
#

this is at least approximately correct syntax

languid osprey
#

Cool

round moss
#

also nim

jovial island
#

and i wanna make it either static with type inference like rust, or dynamic

#

maybe static with type inference

languid osprey
#

I'm planning on dynamic

round moss
#
if cond: (
    obj.hello,
    atr.bye,
)
languid osprey
#

Ooh

round moss
#

you can also just do the python thing

languid osprey
#

So like how python handles types?

round moss
#

\o

languid osprey
#

I'm planning on something like ```
x = 10
// or
x: Int = 10

-- public
func my_func(num: Int) -> Int:
return num

wide totem
#

Hello lak~~

round moss
#

gradual typing?

wide totem
round moss
#

or just type hints

wide totem
#

done deleting

round moss
#

or full on dynamic typing, but types are used for dispatch like in julia

#

or full static typing with inference, like haskell

languid osprey
# round moss or just type hints

Hm, well its mostly type hints, but if you declare the type like this py x: Int = 10 You cant do x = "Thing" Because you already declared it as an int, while on the other hand, if you do x = 10 You can do ```
x = "Thing"

languid osprey
#

I want the syntax to be simple

#

With a lot of optional things that may be useful in some cases

round moss
#

if I have a program that looks like this

x: Int = 5
sleep(10)
x = 'a'
``` does it error before or after the sleep is done
balmy cape
#

It never errors

languid osprey
#

Hm, Its interpreted, so at the third line when you try to change it to a string

#

I have a lot to figure out lol

round moss
#

I see, so the julia approach

languid osprey
#

I've never used julia, but yeah ig

balmy cape
#

You could make a class that enforces typing

round moss
#

good option, julia is quite smart

languid osprey
#

Cool

round moss
#

we aren't talking about python

balmy cape
#

:d

#

sinful

languid osprey
#

Lol, I'm planning out my own language that I'm planning to make

#

I also want match statements similar to rust, ```
match somethign:
case 1:
// Do code
case "two":
// do code

fluid haven
#

int

languid osprey
#

Hm?

round moss
#

raku would be an example where it errors before the sleep,

my $x = 4;
sleep(10);
$x = 100;
```^ fine
```perl
my Int $x = 4;
sleep(10)
$x = "100";
``` ^error before running
```perl
my Int(Any) $x = 4;
sleep(10)
$x = "100";
```^fine
```perl
my Int(Any) $x = 4;
sleep(10)
$x = "hello";
```^error after the sleep
languid osprey
#

Ooh

#

Thats cool

round moss
#

this is called gradual typing

languid osprey
#

Ive never used raku

languid osprey
round moss
#

I would be surprised if you had tbh

#

it is not the most popular language

languid osprey
#

Oh

gusty horizon
#

butterflies are pretty cool

languid osprey
#

Im planning on adding something like this as well ```
x = "STRING"

@x
func randcase(self):
random_chars = ""

for char in self.characters:
match random.randchoice(1, 2):
1:
new_chars += char.to_upper()
2:
new_chars += char.to_lower()

return random_chars

#

So you can add your own functions into different variables

#

So a custom string method

#

Lol

#

I want to add something called function signing as well, where you can sign functions with different attributes, like below ```
// Makes public
-- public
func myfunc():
// do code

// Makes it a testing function
-- test
func testingfunc():
// do code
And its also used inside objects
obj Test:
--initialize // Functions signed by this are executed when the object is initialized, can have multiple of these
func myfunc(self):
...

upbeat sandal
#

Why is this ot name a thing

wide totem
#

👀

blissful coral
#

Christians : You Heretics-

wide totem
junior holly
#

poor jesus

uncut sail
#

leave him be, the whole cross thing was enough 😠

wide totem
#

hm

#

I wonder

#

oh that was a horrible idea

#

actually

#

that got blocked by my filters so uh

#

@storm birch pls delete it

storm birch
wide totem
#

attachment link uwuifed

storm birch
#

lol

wide totem
#

pls delete

#

ty

storm birch
#

ok, sure lol.

odd sphinx
#

this is so sad

full marlin
#

What is

#

the channel being dead?

jovial island
#

JESUS USES DISCORD

BOTTOM TEXT

odd sphinx
#

lol

jovial island
#

!unmute jesus

slow valve
fluid plank
short hound
#

Man the open() syntax is screwing with my head

unreal sigil
#

what about it?

short hound
#

Maybe I'm just misreading but It's used to create files and read/write from them?

#

Why would I have to open a file that's not created yet?

unreal sigil
#

It can be used to create and open a file if it doesn't exist

#

But you can just open a file that already exists

short hound
#

Is that the only way to create files that don't exist?

unreal sigil
#

Not at all, one other way that comes to mind would be executing some commands in the command line via a python program

#

There would be plenty of other ways

short hound
#

I think I'm just having trouble with open() not immediately returning an error if there isn't an existing file to open.

#

Not logically but

unreal sigil
#

it can, it depends on what mode you use

short hound
#

Morally

unreal sigil
#

It will only create the file if it doesn't find it if you specify it to do so

#

well actually, trying to remember which modes did and didn't

#

I know for sure reading will throw an error if it's not found

#

and most of the time when you're working with a file you'll be reading then writing some value to it, so the reading first will throw the error if the file doesn't exist

#

write I can't remember if only w+ creates the file or if both w+ and w do

short hound
#

Wait w+?

unreal sigil
#

Reading and writing

#

keep in mind it'll still truncate the file upon opening it

short hound
#

Huh okay thanks you learn something new every day

somber belfry
#

r and r+ errors out

wide totem
#

@somber belfry can you give context on this channel name

#

This is as much as I could produce.

median blade
#

poor vivek

somber belfry
#

that's pretty much it

#

except, it's a different user

wide totem
#

Oh

#

Smh

wide totem
somber belfry
#

hmmmmmmmm, sure

proper python
#
float AngleToPoint(Vector2 point)
    {
        float angle;
        if (point.x == transform.position.x)
            angle = point.y > transform.position.y ? 90 : 270;
        else
            angle = Mathf.Atan((point.y - transform.position.y) / (point.x - transform.position.x)) * 180.0f / Mathf.PI;

        if (point.x - transform.position.x < 0)
            angle += 180;

        return angle;
    }

    Vector2 AngleToDir(float angle)
    {
        if (angle == 90)
            return new Vector2(0, 1);
        else if (angle == 270)
            return new Vector2(0, -1);
            
        Vector2 angleDir = new Vector2(1, Mathf.Tan(angle / 180.0f * Mathf.PI));
        if (angle > 270 || angle < 90)
            angleDir.x *= -1;

        return angleDir;
    }

so i have this, and i know for a fact that one or both of these functions don't work. any ideas?

#

nvm, got it working

odd sphinx
#

nice

median blade
lucid osprey
urban viper
#

Disappointed there's no enterprise in there tbh

median blade
worn sluice
#

intellij-idea-charm-ultimate-professional-education-enterprise-premium-household-edition

lucid osprey
#

I request the mods to pin this this beauty

worn sluice
#

!otn lemon_hearteyes

slow valve
#

adds every single Intellij product

worn sluice
#

@Moderator

lucid osprey
#

same

wide totem
#

Did before I even replied here

lucid osprey
#

o ic

worn sluice
#

epic

lucid osprey
#

I upvoted it

worn sluice
#

upvoted

#

replied

lucid osprey
#

yaay

lament kestrel
#

C'mon, someone add my vanity otname

median blade
#

!otn its-all-spaghettified

lament kestrel
#

!otn it-s-just-more-spaghetti

echo fern
#

first time using IntelliJ, what does this do?

#

like, what does it actually add compared to normal Java project, or compared with a Kotlin project?

round moss
#

My personal suggestion is use gradle for everything

#

I think it just adds kotlin as a dependency be default

ripe hedge
echo fern
#

hmm, that's probably a good idea

round moss
#

are you trying to mod MC or learn kotlin?

ripe hedge
#

yeah

#

lol

#

you can make plugins for mc with kotlin tho

#

with like spigot or something like that

round moss
#

you can make mods as well with kotlin

echo fern
round moss
#

then the project setup is very different

dusky cliff
#

Pol

ripe hedge
#

Yeah

dusky cliff
#

*lol

echo fern
round moss
#

for forge there is an article somewhere

ripe hedge
#

yes use fabric

#

its next gen

wide totem
#

oh i just realized this name changed early than normal

ripe hedge
#

its nice

wide totem
#

used to be jesus has been muted

#

hm

ripe hedge
#

fabric is also a lot quicker and stable

wide totem
#

👀

round moss
#

fabric has its issues

ripe hedge
#

yes

#

thats true

wide totem
#

so is there a command to force a change or

ripe hedge
#

forge has its issues as well they all have issues

round moss
#

such as lack of common APIs (is there a consensus on fluid units yet)

ripe hedge
#

Yeah

echo fern
#

ehh, maybe I'll look at Fabric in another year

ripe hedge
#

yeah

#

start with forge prob

#

so you can learn all of that

round moss
#

new forge is pretty fancy tbh

echo fern
#

I've played a Fabric pack lately and it's still pretty lacking. Though performance was nice, but that's probably related to having few mods.

round moss
#

yeah, I am just waiting with making more mods until either modloader gets a useful majority

#

also I just don't have the motivation to finish the things I started

echo fern
#

relatable

ripe hedge
#

@echo fern do you know Java

#

or CS

echo fern
#

wow, the minecraftforge site is taking literally minutes to load plaintext pages for me

echo fern
ripe hedge
#

ok then you should prob be fine

echo fern
#

it was the first language I learned, though I don't code in it as much as in... anything else

round moss
#

what I appreciate about java is that despite not writing any meaningful java code for like 3 years, I still remember all of it

echo fern
#

ah yes, Java PTSD

dusky cliff
#

Lmfao

round moss
#

Kotlin is too complicated and full of unobvious symbols

#

the separation between constructor and class needs to a lot clearer than ){

ripe hedge
#

well I am learning rust right now and I have never worked with a type language other than kotlin but I never really knew kotlin that well

round moss
#

the rust type system is very unique

ripe hedge
#

Yes it is

#

its taking a bit to do but I am getting it

#

but now I am playing factorio

dusky cliff
#

Id never heard the name factorio before this week and now im seeing it everywhere 🥴

round moss
#

I really want to use rust, but every single project taking dozens of minutes to setup due to cargo not caching builds is just bad design

echo fern
#

doesn't cargo cache builds?

ripe hedge
#

I just use intelliJ

#

so I dont have to do all of that

dusky cliff
round moss
#

you don't cleanbuild all the time, but if you add a dependency, you best be ready to take a walk, since your CPU is gonna be at 100% for the forseeable future

echo fern
#

ah yes, the sweet smell of Java development

BUILD FAILED in 38s
dusky cliff
#

Lol

round moss
#

also the lack of polymorphism over some things, everything exists in normal, mut, pinned, rc, arc, .. variants

echo fern
#

oh god no, it's failing due to not being able to download forge

#

which is fair, because the site really is lagging

#
> Could not resolve dependency: net.minecraftforge:forge:1.12.2-14.23.5.2855:userdev3

wait what

#

why did I get a different error the second time

round moss
#

why are you using 1.12?

echo fern
#

I'm most familiar with it (1.16 is IMO not very developed yet) and that's where there are some modpacks I can contribute to

round moss
#

honestly, it is much harder, since forge no longer supports that version (at all pretty much), and recently it was changed to use a different project setup entirely

#

so a lot of things are outdated

echo fern
#

actually, nevermind, I was doing the wrong thing

#

well, the right way still has a problem of the site hovering on the edge of being down, but at least it's right

#

😩

Step 2: Set up your Text Editor

Before we begin Minecraft modding, we’ll need to download some tools.

First, for this guide, we are going to download the Eclipse IDE, one of the most popular professional text editors for Java in the world.

#

encountered this in the wild

civic plank
#

this is so good

balmy cape
#

Thats actually really good :D

gilded herald
echo fern
wheat rock
#

light theme 🥴

tribal tinsel
#

I've been at work for over 10 hours. Because I was tok lazy to go and decided to hang out with a person who needed to do some work in our lab. And so we broke a server.

wheat rock
#

That's a server motherboard

#

👀

echo fern
#

I don't really get why people complain about tabs vs spaces considering that if one really cares, they can configure their linter to convert one to the other

tribal tinsel
#

We were only applying thermal paste. But somehow one processor doesn't see third of its connected RAM

wheat rock
#

Are they 128gb

#

In total

#

Or 1tb 🥴

echo fern
#

oh god, I finally got gradle to work. I needed to delete my entire .gradle folder (not just the relevant cache) before it stopped failing trying to open some corrupted zip file

balmy cape
#

Have you tried applying gentle force?

echo fern
#

I mean, it's still failing

#

but for an understandable reason now

wheat rock
#

F

#

My Corsair vengeance just snaps in :D

tribal tinsel
#

293GB total when normally working. It's one of our lab machines

wheat rock
#

Ic

#

Xeon?

tribal tinsel
#

I have no idea what is inside this. I only run stuff on Vcenter on that machine. Or even not. Idk which machine is that. I'm just here for fun XD

wheat rock
#

Oh xd

tribal tinsel
#

Okay, seems like only one is broken and just breaks the other 2 in its group

#

278GB remaining.
Trying once more in yet another slot but we don't have any hope for it

wide totem
#

Hmmmm

#

@short cliff was the channel name manually changed?

#

Or is there a command to force a name change

grim seal
#

a load of butterflies came and flipped the bits

languid osprey
#

Lol

wide totem
#

i'm just curious how

#

was this already on the list so an admin chose one at random and just changed it, or was it changed with a bot command, or, was it changed from an int e (as joe says, internal eval)

grim seal
#

the butterflies!

#

M-x butterfly

wide totem
#

!src butterflies

clever salmonBOT
#
Bad argument

Unable to convert 'butterflies' to valid command, tag, or Cog.

wide totem
#

👀 😔

#

!src M-x

clever salmonBOT
#
Bad argument

Unable to convert 'M-x' to valid command, tag, or Cog.

wide totem
grim seal
#

emacs 🙂

wide totem
#

so you automated discord to change the name, tos violation lemon_eyes

languid osprey
#

mhm

grim seal
#

flew by the discord datacenter

#

and flipped the bits

#

duh

wide totem
#

because flipping bits is a huge issue

grim seal
#

you can't report butterflies

#

they just fly away

wide totem
#

time travel would like to have a word with you

grim seal
#

but yeah there was a huge butterfly infestation in a GCP data center and all the bits were flipped

wide totem
#

hm, i wonder what would happen if every bit was actually flipped

grim seal
#

i mean

#

corruption

#

lol

wide totem
#

yeah

grim seal
#

well I guess there is a non-zero chance that bits could be flipped into a valid filesystem

#

kinda relates to how computers in space work

#

run multiple independent systems, compare results, select majority answer

wide totem
#

dang

blissful coral
#

@grim seal Parity bit?

#

being 7 bits, if everyone of them were flipped, the parity bit would still work there

grim seal
#

like the data is still gone

#

it's just you now know it's gone because of corruption

#

RAID plays into that though and allows for restoration

blissful coral
#

hm...wasn't there some story of Jeff Dean dealing with a similar problem?

wide totem
#

i mean

grim seal
#

by building on top of parity bits

wide totem
#

if every bit was flipped

#

you just flip the entire thing

grim seal
#

lol

wide totem
#

because in this situation, we know every bit was flipped

blissful coral
#

Like I think when Google was going big, there were weird bugs that seemed not to originate from code and dean found out some cosmic rays from space were responsible for fliiping some bits

wide totem
#

😝

grim seal
wide totem
#

oh yeah

#

that's why there's ecim ram or whatever it is

blissful coral
languid osprey
#

Hi :D

blissful coral
#

Google didn't; hence the problem

grim seal
blissful coral
#

Id rather have one super strong radiation proof than 3 computers with nothing

wide totem
blissful coral
grim seal
wide totem
#

!ot

clever salmonBOT
wide totem
#

THE TWO REAL LEMONS

languid osprey
#

LMAO

wide totem
#

no i totally wasn't stalking when it changed ty

grim seal
#

spacex also use linux 🙂

blissful coral
blissful coral
wide totem
#

really was not stalking the name change

blissful coral
#

It was one of the reasons he was kicked from PayPal. He wanted to use Microsoft than Linux. But much of Paypal infra was for Open Source so they got into the argument

daring jay
#

Question. Who are the real lemons? Lemon and ____?

grim seal
#

SpaceX uses an Actor-Judge system to provide triple redundancy to its rockets and spacecraft. The Falcon 9 has 3 dual core x86 processors running an instance of linux on each core. The flight software is written in C/C++ and runs in the x86 environment. For each calculation/decision, the "flight string" compares the results from both cores. If there is a inconsistency, the string is bad and doesn't send any commands. If both cores return the same response, the string sends the command to the various microcontrollers on the rocket that control things like the engines and grid fins.

The microcontrollers, running on PowerPC processors, received three commands from the three flight strings. They act as a judge to choose the correct course of actions. If all three strings are in agreement the microcontroller executes the command, but if 1 of the 3 is bad, it will go with the strings that have previously been correct. The Falcon 9 can successfully complete its mission with a single flight string.

The triple redundancy gives the system radiation tolerance without the need for expensive rad hardened components. SpaceX tests all flight software on what can be called a table rocket. They lay out all the computers and flight controllers on the Falcon 9 on a table and connect them like they would be on the actual rocket. They then run a complete simulated flight on the components, monitoring performance and potential failures.

SpaceX engineers perform what they call "Cutting the strings" where they randomly shut off a flight computer mid simulation, to see how it responds.

languid osprey
#

I microwave my milk

wide totem
#

@mods spam

grim seal
wide totem
#

👀 giving discord money smh

languid osprey
#

Lol

wide totem
daring jay
#

Why are you frustrated?

#

It's a cute sticker.

wide totem
#

aside from the irony of me using a sticker

civic plank
#

does someone here work with react
if so im confused, how does react link different routes without refreshing the page?

like it will move to another route such as /about or /contact without reloading the page. and usually that only works if there is an href="#contact" on the page

proper python
#

do lancebot command suggestions that get rejected get closed or ignored?

daring jay
#

Yeah, closed.

proper python
#

huh

#

so there's a chance

daring jay
#

A chance of what?

proper python
#

my suggestion getting approved

#

cuz i submitted it like 3 weeks ago

daring jay
#

What number is it?

proper python
#

i just assumed that it got rejected, and so they did nothing with it

#

#599

daring jay
#

They probably just didn't see it.

echo fern
#

yay, finally

#

strictly speaking, the fact that I didn't get an authorization screen here means that anyone who's capable of downloading and installing Forge's MDK can play minecraft 😅

#

but they probably deserve it for that

daring jay
#

That's cool!

#

(I'll pretend to understand that code stuff at the bottom)

echo fern
#

at the bottom is actually a perfectly normal log of a modded minecraft installation

#

you see this every time you launch modded minecraft if you're using a launcher that can show it

daring jay
#

Interesting.

dusky cliff
echo fern
#

why is mods I specified as dependencies not loaded at runtime?..

#

most likely I'm missing something and compile <...> is treated as a compiletime-only dep

echo fern
#
[06:22:16] [Client thread/DEBUG] [FML]: Examining file buildcraft-6.0.8-dev.jar for potential mods

pithink

#

and then it doesn't find it

echo fern
#

aaaaah
it's called runtime, of course it is

wide totem
#

[FML]

#

best log ever

echo fern
#

forge mod loader

#

why the hell is it not working

wide totem
#

dude

#

if you're gonna say why the hell

#

that's my fucking job thank you

wide totem
full marlin
#

I have never seen confused reptile be confused

#

normally he has the answer to all my ds/algos problems

wide totem
#

OK I GOT IT

#

STOPPPPPP I SHOULD'VE SUDOED IT

#

I DID IT AGAIN SMH

echo fern
#

something is happening, maybe it'll even work this time

#

aaaaaaaaaa

Could not resolve all files for configuration ':compileClasspath'.
> Could not find mezz.jei:jei_1.12.2:4.16.1.301_mapped_snapshot_20171003-1.12.
  Searched in the following locations:

echo fern
#

oh wow

#

a new error

#
Caused by: java.lang.IllegalAccessError: tried to access method net.minecraft.client.renderer.texture.TextureMap.initMissingImage()V from class mezz.jei.gui.textures.JeiTextureMap
#

huh

#

actually, that's still progress

#

because it means the mod got included at runtime, yes!

wide totem
#

function isn't public, duh

echo fern
#

I suspect I messed up the forge version for the jei version

#

well, the opposite

severe trout
#

;-; use fabric...

echo fern
#

oh

#

it looks like this is an actual issue with JEI and forgegradle

#

The issue has been previously mentioned in #2009. However, @mezz closed the issue as solved, but the issue still persists (it was probably reintroduced with 4.16.1).
don't you love issues that pop up after being fixed

#

Okay so apparently the only solution to this problem is downgrading to ForgeGradle 2.3, since FG3 doesn't have good support for ATs. I am closing this issue to mark it as solved (and to avoid cluttering the feed).
😔

echo fern
#

wtf

#

I'm using ForgeGradle 2.3 now, definitely, but now the same methods don't work

#
    // compile against the JEI API but do not include it at runtime
    deobf "mezz.jei:jei_${mc_version}:${jei_version}:api"
    // at runtime, use the full JEI jar
    runtime "mezz.jei:jei_${mc_version}:${jei_version}"

neither deobf nor runtime are recognized, and this is a sample from JEI's wiki, for FG2.3

#

oooh, got it, wrong place

#

YYYESSS

#

it only took a few hours and a different Forge version

dusky cliff
#

nice

echo fern
#

What's the difference between deobfProvided and deobfCompile? More importantly, how am I supposed to find out?.. pithink

#

COFH know where it's at, lmao

odd sphinx
#

same

serene oar
#

What projects have you guys done?

lucid osprey
#

check my github

#

it aint much, but its honest work (no copy pasting 👀)

odd sphinx
#

lol

lucid osprey
#

thats the shittiest repo

#

but the code works lol

#

wow hahah

odd sphinx
#

lol

proper python
#

do you ever not understand a thing and than come back 2 years later like oh yeah no this totally makes sense i was a dumbass

lucid osprey
#

maybe

proper python
#

might as well pull the allnighter

lucid osprey
#

In the meantime, @Chrisjl#2655 will be taking care of a Super Secret Project™️
still waiting to know what the project is...

tranquil ridge
#

sad

severe trout
#

i was thinking of making something like that but never had the time to do it lemon_pensive

lucid osprey
tranquil ridge
#

dam you doing ml?

lucid osprey
#

tf

#

its just a dict with the input and the functions

severe trout
#

that looks like ML ngl

lucid osprey
#

lol

tranquil ridge
#

i thought the porject was using some lib or api but its a neural network from scratch from the looks of it

lucid osprey
severe trout
#

i thought it was ML too lol

lucid osprey
#

you can flip a coin

tranquil ridge
#

ye some linear regression

lucid osprey
#

damn what is this

severe trout
#
def isPrime():
        number = int(tell("enter number to find out whether it is a prime number or not:"))
        item_list = []
        factor_list = []
        for i in range(number + 1):
            if i == 0:
                pass
            else:
                item_list.append(i)
        length = len(item_list) + 1
        for i in range(len(item_list)):
            length -= 1
            for a in range(len(item_list)):
                if item_list[a] * length == number:
                    factor_list.append(item_list[a])
                else:
                    pass
        say("the factors of "+str(number)+" are: "+str(factor_list))
        if len(factor_list) == 2:
            say(True)
        else:
            say(False)
``` ouch...
lucid osprey
#

lmfao

severe trout
#

you know...

lucid osprey
#

I wrote that code when my mind was in an elevated state. now I cant understand it

severe trout
#
import sympy
sympy.isprime(11)
#

and even if you make your own, why is it sooo long 👀

lucid osprey
#

thats cheating

tranquil ridge
lucid osprey
#

@sand drum

lucid osprey
sand drum
severe trout
# lucid osprey thats cheating
num = int(input('What number would you like to test: '))
rep=2
while reps <= num:
    if num%reps == 0:
        return False
    else:
        reps+=1
return True
``` inefficient but shorter than yours...
lucid osprey
sand drum
lucid osprey
#

anyway, I agree that my code is shit 🤣 thats why I wrote it

sand drum
#

what do you want

jovial island
#

if you could have any pupersower

#

what would it bean

lucid osprey
sand drum
#

i dont want to read

lucid osprey
#

take credit

severe trout
sand drum
#

@tranquil ridge i wrote that code

#

the complete ai version is written by me

tranquil ridge
#

nice

jovial island
lucid osprey
tranquil ridge
#

idk, anything about ml so

lucid osprey
sand drum
jovial island
#

i cant say anything cause i suck but sorr if i came off as harsh

#

im not here to be a dick

jovial island
sand drum
lucid osprey
jovial island
tranquil ridge
jovial island
lucid osprey
#

ye

severe trout
tranquil ridge
#

hmmk havent checked that out thanks

lucid osprey
#

lmfao I'm not proud of it. but its damn funny 🤣

sand drum
tranquil ridge
#

thanks

jovial island
#

wait im new but can i propose a solution

tranquil ridge
sand drum
#

@tranquil ridge but coursera is best

lucid osprey
#

dont you dare create a pwull request on my repo. that code is legendary.

jovial island
#

zing

tranquil ridge
#

its kinda slow so i was only able to watch till linear regress

sand drum
lucid osprey
severe trout
#

i would like to contribute more cursed code tbh 🙃

sand drum
#

byy i am gtg

severe trout
#

cya

lucid osprey
#

I like looking at it an wondering how tf it worked even tho its really taking up a lot of time and memory 🤣

severe trout
#

1 liner solutions when :D

#

f efficiency, it just needs to be 1 line

jovial island
#

else if 1
else if 2
else if 3
else if 4
goes on for infinity

lucid osprey
#

this is another one of my cringe code (idk why I even created a function)

def finder():
    while True:
        number = int(input("enter number: "))
        for i in range(11):
            answer = number * i
            print(str(number)+(" x ")+str(i)+str(" = ")+str(answer))
    finder()
finder()
severe trout
#

this is better

lucid osprey
#

multiples finder 🤣

jovial island
#

if (chungus = 69)
delete system32

severe trout
#

where did you get the 11 from 👀

lucid osprey
severe trout
#

oh nvm

lucid osprey
#

0 to 10

#

inclusive

severe trout
#

it's a multiplication table lol

lucid osprey
#

but my fav one is the nearest perfect square finder

#

could be useful if I was in 5th grade

#

.topc

#

.topic

rustic harborBOT
#
**What is your earliest memory of Easter?**

Suggest more topics here!

lucid osprey
#

didnt you just ask that...

#

idk what easter is. sry

rich cargo
#

😅

severe trout
lucid osprey
#

lists are my favourite

#

I use 'em a lot

severe trout
#

yes

lucid osprey
#

best data structure ever (data type?)

median blade
#

stacks

lucid osprey
#

ew

median blade
#

hmm no queues

severe trout
#
def perfect_square_finder(num):
    return int(num**(1/2)) == num**(1/2)
#

cringe code because no lists :D

lucid osprey
#

damn

#

did you just..

#

damn

severe trout
#

no, it doesn't have lists

#

that code is cringe

echo fern
median blade
#

damn

severe trout
#

that's a universal rule 😤

median blade
#

damn

lucid osprey
#

haha

languid osprey
#

Lol

round moss
jovial island
#

weird rule

#

dont like

odd sphinx
#

no

lucid osprey
#

is vivek a mod?

somber belfry
#

no?

#

yes?

#

idk?

lucid osprey
#

lol

somber belfry
#

lolll

lucid osprey
#

r/clevercomebacks

odd sphinx
#

perhaps

echo fern
#

is vivek a plugin

lucid osprey
#

vivek is an object

wide totem
#

vivek is not a raspberry pi, can confirm

wide totem
odd sphinx
#

is that sys.stdout?

wide totem
#

no

#

its a variable named stdout

echo fern
#

from std import stdout

keen burrow
#

from System.out import print

languid osprey
#

Lol

serene oar
#

@keen burrow do you have any oop projects ideas?

keen burrow
#

Uuhh

#

API wrapper?

serene oar
#

No?

#

Idk how those works

languid osprey
#

An API wrapper is a good idea

#

Have you ever used an API?

serene oar
#

Don't think so

languid osprey
#

What a wrapper does is basically allows the interaction with the API to be more simple

serene oar
languid osprey
#

Alright, so an API is basically something that you can send HTTP requests to in return for data

#

Now, you'd usually have to parse and retrieve the data thats in r

crisp vessel
#

I tried searching for long earlier and I can't find resources

serene oar
#

I see

odd sphinx
#

this is actually what discord.py deals with internally if im right

languid osprey
#

But, there are API wrappers which make this easier, and take most of the work away

odd sphinx
#

the discord api is just a bunch of endpoints innit?

languid osprey
#

Discord.py is an API wrapper that interacts with discords api

lucid osprey
#

wrapper nvm

#

wait a secon

serene oar
#

I don't want to make discord bots 😫

lucid osprey
#

lol I thought I got disconnected from wifi

languid osprey
#

So instead of doing all that, you could do something like this ```py
class MyAPIWrapper:
def init(self):
...
def get_weather(self):
requests.get("https://weather.com/myweather")
# Handle data
return weather

keen burrow
dusky cliff
languid osprey
#

Now, this makes it easier to interact with my example weather API

odd sphinx
languid osprey
#

Now, what you could do is take an already existing API, and write a wrapper around it

odd sphinx
#

u can make a cat api wrapper

serene oar
#

Aren't api so big?

languid osprey
#

It doesn't have to be great, get it to work first, read about how an API works first, how to handle the data, read into the requests module

serene oar
#

Or there are small ones?

keen burrow
#

Depends on the API

languid osprey
keen burrow
#

They are some with very few endpoints

dusky cliff
#

weatherapis can actually be a pretty good starting point imo

languid osprey
#

Yeah

dusky cliff
#

they won't be overwhelmingly large

serene oar
#

Noice

languid osprey
#

Take a look at rapidapi.com, pick an API, and write a wrapper for it

#

But yeah, I have to eat lunch now, cyaaa guys

lucid osprey
#

byee

serene oar
#

I should learn request first pithink

keen burrow
#

Probably :D

#

You can also make a small utility project that interact with an API

odd sphinx
#

and how http works

keen burrow
#

Are you looking to do a portfolio project?

serene oar
#

Nope practice only

odd sphinx
#

isnt requests also a wrapper for bare http requests?

serene oar
#

plottwist

lucid osprey
#

o

serene oar
lucid osprey
#

guys!!! my vlc rich presence is working

odd sphinx
#

damn

keen burrow
somber belfry
#

why dont you make your private ip static?

keen burrow
#

Because my isp sucks

#

Oh wait

#

Did the joke just fly above me

somber belfry
#

no?

lucid osprey
#

you mean an r/woooosh?

somber belfry
#

there is no joke, I think

wide totem
#

Oof

keen burrow
#

Ah

#

The goal is to make the public ip dynamic

wide totem
#

Hm

keen burrow
#

Lemme rephrase that

somber belfry
#

Cloudflare DDNS is a configurable Docker service updating your CloudFlare DNS records periodically to match your local IP address.

#

local IP = private ip???

languid osprey
#

Iiiim back :D

keen burrow
#

My public ip is dynamic because my isp sucks

somber belfry
#

right?

keen burrow
#

Nah, the local public ip

somber belfry
#

what's a local public ip 😭 ?

keen burrow
#

The public ip of your current network

somber belfry
#

so... just a normal public ip?

keen burrow
#

Yeah

#

But like

#

The local one

#

Local to the machine running the container

#

So basically, no matter what the ip is, the cloudflare records will point to it

somber belfry
#

nice

wide totem
#

just set up a static one internally?

rare dawn
jovial island
#

@languid osprey i'm making my own api :D

split spire
#

@rare dawn thanks!

languid osprey
wide totem
jovial island
#

i need to figure out how to manage tokens next :D

languid osprey
#

cool

echo fern
#

Does the registry of all the registries contain itself? pithink

languid osprey
#

hm

serene oar
#

@languid osprey do you know where I can find small api to wrap?

serene oar
#

I can't find any on Google lemon_pensive

languid osprey
#

Theres plenty there

serene oar
#

Ty

echo fern
#

getAttackDamage returns the base damage of the tool. Note that most tools ask for an integer damage amount in their constructor, which means the resulting damage is (float) materialDamage + (int) toolDamage + 1.
Minecraft do be cursed in places

echo fern
#

FabricModelPredicateProviderRegistry
also, good old Java names

echo fern
#

meanwhile in the comments on a tutorial

wide totem
worn sluice
#

Hmmmmmm

#

Should I do mint or manjaro (I’m new to Linux as in never used it)

#

I think imma use virtual box

#

As vm

#

But garuda KDE dragonized look sexy

#

hmmmmmmmmmmmmmmmmmm

#

@Linux Users

#

Garuda gnome kinda hot to

languid osprey
#

But mint is a great choice for beginners

#

If your going with manjaro I recommend the KDE version

worn sluice
#

Mint then?

#

looks pretty nice

#

Sounds pretty nice

#

All around nice

languid osprey
#

Depends

#

I recommend trying them both out on a VM and see what suits you

#

Or if your not using VM,s just test them from the USB

shadow elk
#

@wicked hollow

wicked hollow
wicked hollow
#

The original Bourne shell source used a bunch of macros to pretend C was Algol.

shadow elk
#

jesus

languid osprey
#

Lol

wicked hollow
#

The level of fanaticism you need to have to persist with that the whole way through writing a shell, pushing through the constant impedance mismatches between the two languages

#

Incredible.

shadow elk
#

Yikes. Thankfully, you can't do anything remotely like that in Python.

#

oh wait

wide totem
#

@grim seal where is yo macbook

languid osprey
#

Lmfao

#

the void

zealous tide
#

"Some people are so poor, they only have money"

  • Bob Marley
past cave
#

when someone is trying to break into your vps 😳

crimson beacon
#

didn't know ur screenshot quality goes down when someone tries to break into ur vps

serene oar
#

@languid osprey do you have an api wrapper you created on your own?
I want to have a reference

jovial island
past cave
#

i'm good, i just find the idea of someone trying funny

#

it's like that because i'm using a github service which logs into my vps and does a pull request every time i push

#

it doesn't support ssh keys

wide totem
past cave
#

you're welcome, if you want to break into my vps now it should be easier

crimson beacon
past cave
#

oh god i hope not

dusky cliff
#

tpyos are cringe

past cave
#

i use termius for that exact reason, used to use the basic windows ssh

dim root
#

@limber pollen need some help, am building a package for pure-lang for a piston, and needed to cross check if my build was right:

#!/usr/bin/env bash

PREFIX=$(realpath $(dirname $0))

# Installing LLVM and clang (the latter is optional but recommended)
curl "https://releases.llvm.org/3.4.2/llvm-3.4.2.src.tar.gz" -o llvm.tar.gz
curl "https://releases.llvm.org/3.4.2/cfe-3.4.2.src.tar.gz" -o clang.tar.gz
tar xfvz llvm.tar.gz
tar xfvz clang.tar.gz && mv clang llvm/tools/clang
rm llvm.tar.gz && rm clang.tar.gz
cd llvm

# Building and installing - LLVM and clang
./configure --enable-shared --enable-optimized --enable-targets=host-only --prefix "$PREFIX"
make -j$(nproc)
make install -j$(nproc)

# Installing Pure
curl "https://github.com/agraef/pure-lang/releases/download/pure-0.68/pure-0.68.tar.gz" -o pure.tar.gz
tar xzf pure.tar.gz
rm pure.tar.gz

# Building and installing pure-lang
./configure --enable-release --prefix "$PREFIX"
make -j$(nproc)
make install -j$(nproc)
#

here it is

#

should i share the repo of the piston?

limber pollen
#

I can't say I'm entirely familiar with it

dim root
languid osprey
nova ember
shadow elk
#

no

#

I just didn't include the empty space of the terminal in the screenshot, as it serves no purpose

nova ember
#

Oh okay

echo fern
#

my modding education sure is proceeding fast - I made an item that crashes the client on rightclick

#

might be all clients in render distance, actually

languid osprey
#

Lol

keen burrow
#

Haha nice

#

I really wonder how the fuck do you make a whole game crash

wide totem
keen burrow
#

Like, shouldn’t the game catch errors

daring jay
#

It should, but it didn't.

keen burrow
#

Even if an event trigger a NPE, don’t stop the whole game

echo fern
mossy marsh
#

hi
anyone who uses linux as his/her main os?

echo fern
#

(for a projectile the item created on rightclick)

keen burrow
#

Can’t it like.. not render it..

keen burrow
mossy marsh
keen burrow
#

Custom Manjaro KDE

mossy marsh
#

good

#

i have an old pc
and i think windows is not good for it so i want to buy a new hdd or sdd and install linux on it

#

how much capacity shall i have for an average ubuntu or parrot os install?

keen burrow
#

Less than 1Gb I believe

#

well, it depends if you do a full install or not

mossy marsh
#

do you think 500gb can do it?

keen burrow
#

For sure

#

Mine is running on 250Gb

mossy marsh
#

i mean yea a full install that if i ever tried to changed to an other pc, it would make any trouble

mossy marsh
keen burrow
#

Yeah, NVMe

mossy marsh
#

well as i said my pc have an intel core dual and 2gb of ram
I am not gonna do all my work on it, but i might do a little of my coding on it. as i have researched, among ubuntu, parrot and kali, parrot uses the least amount of hardware resources. do you think it can handle linux?

languid osprey
#

Linux should work perfectly on that hardware

mossy marsh
#

and as i see, manjaro uses even less, so that is another chose i can make

mossy marsh
languid osprey
#

I'd recommend a manjaro install with either xfce or kde

mossy marsh
languid osprey
#

Hm, I'm pretty sure xfce is lighter on resources, but they both should work fine on your hardware

mossy marsh
#

alright then, thank you all for the help

wide totem
#

xfce

tranquil ridge
#

parrot is not meant for daily use iirc

#

like kali

mossy marsh
tranquil ridge
#

mk

mossy marsh
#

what does mk means?

tranquil ridge
#

mutation of ok

echo fern
#

...&mut ok?

tranquil ridge
languid osprey
tranquil ridge
#

not a reference

#

mut ok

echo fern
#

test 2, let's see if I get another crash now

#

hmm, maybe I should see if there's a fabric mod like VanillaFix that makes crashes only crash to main menu

#

though it won't help me with this, as I still need to recompile the methods

#

I didn't even get to click this time, the already flying entity crashed me 😔

jovial island
echo fern
#

I did it, yay!

tranquil ridge
echo fern
#

now I only need to fix, like

#

every hacky solution I did along the way

tranquil ridge
#

no need to fix

#

hacky all the way

echo fern
#

for one, I probably need my own EntityRenderer subclass, since using ThrownItemEntityRenderer just because it was there is... not the right solution

#

or ThrownEntity at all

#

since, y'know

#

it makes my rays fall down 😔

tranquil ridge
#

no idk java 😔

echo fern
#

I wish it was Java that's the problem, it's Minecraft's wonderful structure

tranquil ridge
#

lol

#

i am a pythonacean

#

well m,ore rust than py so pystacean?

#

pystacean.

dusky cliff
#

pystachio

languid osprey
#

lmfao

kindred ocean
#

just to ask, anyone want to be my coding buddy?
im making a mini operating system,
python of course,
and might need help.
ping me
if im online

lucid osprey
#

joe uses a macbook? lmfao

languid osprey
#

lol

#

ban

keen burrow
#

He does

vague shadow
#

Windows NT gang

lucid osprey
#

arch linux on a MacBook?

keen burrow
#

He has both iirc

lucid osprey
#

ooh

clever salmonBOT
#

Hey @fading herald!

It looks like you tried to attach file type(s) that we do not allow (.fwl). 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.

wide totem
languid osprey
#

lmao

safe compass
#

Can I share my vbScript here? I don't want you to download it

clever salmonBOT
#

Hey @safe compass!

It looks like you tried to attach file type(s) that we do not allow (.vbs). 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.

safe compass
#

Aww...

#

:<

fiery robin
#

is this to prevent malicious content from being uploaded

jovial island
#

Yeah

jovial island
#

.topic

rustic harborBOT
#
**What is your favourite place that you have visited?**

Suggest more topics here!

jovial island
#

idk

jovial island
#

@grim seal you have a macbook!!!!!!!

grim seal
#

yeah

jovial island
#

I'm trying to work out my body more take care of myself. Does anyone have any recommendations for work out equipment for back muscles?

dusky spoke
#

Do you hate it when your computer gets destroyed by a main battle tank? Do not worry anymore. This tutorial will inform you of the risks involved with main battle tanks near your computer and show you how to improve your computer rig to resist any type of ammunition shot at it. With this tutorial, your computer will be safe from all kinetic ener...

▶ Play video
languid osprey
#

huh

kindred ocean
#

anyone want to give me more knowledge in python like teaching me? im a beginner

full marlin
kindred ocean
#

its what im abuot to do -.-