#voice-chat-text-0

1 messages Β· Page 195 of 1

dark ermine
#

Mf mf drive isn't booting ;-; I didn't make a most recent backup. I'll figure it out it shouldn't be broken.

vocal basin
#

so, basically, .sort()+bisect if you're doing it in memory (you would need to also implement correct version sorting)
and some SQL magic if it's stored in database

dark ermine
#

Woo I got it to work. Let me make that backup real quick. Then I'll show you what's up.

#

Okay so I should do this to make a database with a more defined scope?

vocal basin
#

how many separate processes are you accessing this data from?

#

you'll have to do pre-processing anyway, but concurrency is still an important question

#

because for multiple process access this might more difficult (you would need a proper database)

dark ermine
#

The CSV from MITRE is terribly formatted.

I'm going to need only 2 of the many columns they have. Rather than just the data I showed you there's things like comments and more. I just need the CVE name and the description, then I'll grab that for all of the browsers in my scope then work on the next part which is passing that data in the browser to use an event.

#

Do you mean how many clients will be accessing the database by comparing their own items in it?

vocal basin
#

no, server-side processes

dark ermine
vocal basin
#

WSGI runners would normally spawn many processes

dark ermine
#

Server side Ontop of running the web browser these programs are being ran to inspect the packets for my database.

#

That's why I'm not sure about keeping an exact database of the parsed information.

vocal basin
#

fepher and gorris

dark ermine
#

Perhaps rather a CSV of it that can be read as text so that the browser can check if it's info is contained that way. Alternatively, I could send the browser info to the database and have it send back only results with that info in it, but there is a security issue and ethical concern in doing so. So that's why I'm opting for having it be checked in the browser.

Which keep in mind is contrary to just about everything else in the project except for the c sniffer I had to write bc the python library was no good compared to it.

rugged root
dark ermine
#

The out I shared containing only the two lines was going to be used as a daemon to do things based when those events happened. But in shifting the operation to be more security conscious and ethically sound. It's an in depth look at awareness of WLAN security. I'm writing it as a professional PoC awareness paper.

vocal basin
#

diagramming time

#

idk what the lower part would be, but a general idea is something like this

#

I'm surprised "diagramming" is a word that spellcheck accepts

rugged root
vocal basin
#

you can gradually improve compatibility of your app with bun

dark ermine
#

I appreciate you making something like that to plot it out.

I may have to re evaluate my concern for transmitting the user data, and just use a database. I'm already doing it for the other browser info, which literally contains info from the client header anyways.

The point is to not allow vulnerable clients to be connected anyways.

#

So the concern isn't too big of an attacker noticed that my server has deemed the client as vulnerable, or was even looking, because if they are they will be kicked off anyways. However if an attacker is on the network and is sniffing and has a 0day, they would be able to exploit a client that the sever figured was fine.

vocal basin
noble solstice
#

You guys know lot of about development! feel dump

vocal basin
noble solstice
#

I want to improve but i am not improving!

dark ermine
# vocal basin so, if you're willing to do work no one wants, you can automate tracking whether...

I'd like to first focus on getting a general functional program for this last part here.

This paper is the first part of something I'd like to do.

After finishing this I would like to talk about ways to mitigate this data being taken and abused. I was originally planning on showing the actual abuse that can happen but I have another way of proving that bad could be done without showing how to do it. This is to highlight some areas that security could be improved on WLAN to protect the clients.

Essentially the framework that is built now can go onto a wireless network and clients can connect, be fingerprinted and potentially exploited. That's no good. I'd like to bring notion to that and talk about how to protect yourself. As well as highlight what is currently possible in terms of concerns rather than exact functionality.

vocal basin
#

that's the main way

dark ermine
#

I was just updating my apt repo, I'm gonna back up my project and see if I can show you what I'm currently working with, if there's anything I failed to mention.

noble solstice
dark ermine
noble solstice
#

I am just confuse lot of things to learn!

#

I am not able to learn anything in depth!

#

i build many projects

dark ermine
#

Start with something small

#

Maybe something that helps you out, makes a task on your computer easier.

#

Learn what an API is and how you can use it.

#

APIs can be fun to make projects with. You can use them to solve simple tasks you may want to accomplish but don't know how to program full scale yourself.

vocal basin
noble solstice
#

like give me some technology example how much thing i need to learn and how much in depth

vocal basin
#

learn asyncio

#

(for Python)

noble solstice
#

lot of resources and i don't want to stuck on loop

dark ermine
#

I think everyone has their own problems, but they will be solved one day. I've been programming for a long time, yet my GitHub is barren. Why? Because my paranoid ass has always had the problem of being scared to share my projects because of what I have focused my research on. I haven't wanted people to use my code for bad.

Now I understand, people can figure that code out on their own, without seeing my code, and that there are different ways to share concepts. This is an understanding I am just now learning after a decade of doing this. This project I have been talking about shows that, I am trying to share this big thing, in a safe way while having the same effect.

vocal basin
noble solstice
#

Nope all projects are related to ml and ai

vocal basin
#

is there any common functionality in them?

#

if yes, you can factor it out into a library

noble solstice
vocal basin
#

you can create a web UI for projects you made previously

#

FastAPI for web, asyncio.subprocess for calling other scripts (if they can't be integrated as libraries)

vocal basin
wise loom
vocal basin
#

faster for what?

frozen echo
#

!e

#include <stdio.h>

int main() {
    char ch, s1[100], s2[100];
    printf("Input : \n");
    scanf("%c", &ch);
    scanf("%s", s1);
    scanf(" %[^\n]", s2); // Corrected scanf format

    printf("\nOutput : \n");
    printf("%c\n", ch);
    printf("%s\n", s1);
    printf("%s", s2);
    return 0;
}
wise cargoBOT
#

@frozen echo :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 3
002 |     int main() {
003 |         ^^^^
004 | SyntaxError: invalid syntax
wise loom
vocal basin
#

5x is from this

#

same article lol

#

tl;dr:
react in some conditions gets x5
bun Elysia twice faster than node Fastify for simple requests
bun has slightly smaller memory footprint generally

#

(* react server-side rendering)

#

some of the differences might be coming from V8 vs JSC

#

but idk

#

afaik, just before Node, there were some niche server-side/cli tools built with JSC too

dark ermine
#

Okay I got a screenshot I can show you now, I was doing a few things and I am currently at work.

#

This image should sort of give an idea of what's going to happen, except since I'm debugging I'm using user input to make sure that I can get the data im ooking for.

#

But yeah first of all I'd like to cut this file down.

oblique ridge
dark ermine
#

The .json file I am parsing is 212MiB.

dark ermine
# dark ermine This image should sort of give an idea of what's going to happen, except since I...

I should note that this means the clients environment is potentially vulnerable to the listed CVEs.

Just that they show up in the output doesn't 100% mean they're effected but if the clients browser version is infact within range of the CVE then they are likely to be affected.

The reason why I say it doesn't currently necessarily mean they're effected is because the search terms aren't tight enough.

dry jasper
#

DJ Tiesto

vocal basin
#

is there like a !rule thing but for that?

rugged root
#

Strangely no

vocal basin
#

it can't be used to reply to a message ig

#

i.e. non-contextual

rugged root
#

@whole bear Would you mind changing your nickname to conform to our nickname policy? See the #rules channel for details on that

vocal basin
#

"average webcam mic"

dry jasper
#

billionen

vocal basin
#
one       one          one
thousand  thousand     thousand
million   million      million
milliard  billion      milliard
billion   trillion     trillion
billiard  quadrillion  quadrillion
oblique ridge
#

1
1.000
1.000.000
1.000.000.000
1.000.000.000.000

vocal basin
#

added third column for what USSR used

dark ermine
#

do you see what I'm workin with?

Could you explain to me how I should parse this file down again? The 280K CSV entries has already been converted to JSON but I can always restart and parse a proper CSV.

I do want to mention a problem I may have is the columns, I only want the CVE name and not the Description. In my python code the fields I'm grabbing are using the json lib and item.get() for field 2 and field 3.

vocal basin
#

wrong ping

#

what does JSON data look like?

dark ermine
#

Sorry I'm bad at Discord 🀑

#

I'll show you

#

Gonna take from my phone

#

The field 2 is being checked to ensure that the item is an entry and not a candidate.

#

Yeah it's UGLY. Because it's a CSV to JSON.

vocal basin
#

what do fields represent?

dark ermine
#

I will just switch back to the CSV library if I can get it working. I think there's something wrong with the file though because I couldn't open it with the CSV module in python. It was saying the encoding is wrong, when it isn't.

#

I'll show you

dry jasper
#

@dark ermine looks like a cool project, what are you working on?

dark ermine
#

So I'm checking to see if the browser version is within the third column there; Description. If the information is found within the description column, it checks to see if the second column says it is an entry. If it is an entry, display the CVE from the first column and the description of the CVE.

But for now I need to re orient myself to overcome the challenge.

dry jasper
rugged root
#

!tvmute 1016611697903009814 1d Intentionally trolling with a bad mic (despite having a good one) and being irritating isn't acceptable in VC. Random, interrupting, and disruptive comments are also unacceptable. If you cannot fix your behavior by the time the mute expires, you will lose your voice permissions.

dark ermine
# dry jasper <@943661888334614598> looks like a cool project, what are you working on?

I'm working on a professional WLAN security awareness PoC paper.

Right now I'm working on the server-side vulnerability detection aspect that is the final part needed to string my project together.

I want to show how when a client connects to the network things can happen against their will and behind their consciousness that can negatively effect their data security. This project will also be booting them off to protect against lateral movement in light of securing your WLAN further.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied voice mute to @whole bear until <t:1696435088:f> (1 day).

thin fox
#

hi

dry jasper
#

so you check the version of the client and if there is a CVE for that version or how are you testing it?

#

@dark ermine

vocal basin
dark ermine
#

Check MITRE cve

noble solstice
dark ermine
#

They have a CSV I think it's the legacy. That's the document I shared in my latest image.

dark ermine
#

Specifically I am trying to use JavaScript environment variables to determine the version rather than the header info from PHP. Even though they shouldn't be different.

Then the server can tell if the person who just connected is vulnerable to a publicly available CVE and could exploit it via the event daemon but in this case it will just say hey, this client is vulnerable in this many ways via the browser vector, kick em off!

I could also implement the same kind of checks for the services running in the device too to go further than just checking the browser.

wise cargoBOT
#

schema/v5.0/CVE_JSON_5.0_schema.json lines 82 to 87

"version": {
    "description": "A single version of a product, as expressed in its own version numbering scheme.",
    "type": "string",
    "minLength": 1,
    "maxLength": 1024
},```
`schema/v5.0/CVE_JSON_5.0_schema.json` line 93
```json
"product": {```
vocal basin
#

currently extracting the archive to see what it looks like

#

apparently it's broken generally

dark ermine
#

Yeah that's tough. Thanks for your effort in helping. I am fully confident I will find a solution, but I'm sure you know the feeling where you want to take a step back and see if anyone can offer advice to help you get there. It's kind of like taking a break, without taking a break. It's just good to see if anyone else has anything they can put towards solving this challenge.

#

I figured that there are people who would appreciate thinking about solving a good challenge.

vocal basin
#

this

#
{
    "vendor": "Google",
    "product": "Chrome",
    "versions": [
        {
            "version": "116.0.5845.187",
            "status": "affected",
            "lessThan": "116.0.5845.187",
            "versionType": "custom"
        }
    ]
}
dark ermine
#

My goal is to determine if my browser version is vulnerable to a CVE found in one of these lists,

The challenge is that currently the CVE list is full of all CVEs, not just browser CVEs. I have to find a way to break that down, so that I can more easily compare the information needed to achieve the aforementioned goal

vocal basin
#

if you're dealing with recent CVEs, JSON source option is simplest to use, because it already has browser versions parsed

#

it is currently below 2GB in unpacked size

#

you can first generate the list of mentioned products in the archive

#

then filter out everything that's not a browser

dark ermine
#

That's a decent JSON file. I suppose I would like to have the Descriptions of them too. That's why I'm using MITREs CSV file that I converted into JSON using an online converter.

vocal basin
#

oh, wow

dark ermine
vocal basin
dark ermine
# vocal basin oh, wow

I got Unicode errors when trying to parse the original CSV from MITRE. That's why I converted it to JSON.

#

I understand

vocal basin
#
import json
from pathlib import Path

source = Path(r"cvelistV5-main/cves")

for sub in source.iterdir():
    if not sub.name.isdigit():
        continue
    year = int(sub.name)
    for cve in sub.rglob("*.json"):
        _ = json.loads(cve.read_bytes())
#

this doesn't raise the error somehow

rugged root
#

Needing to focus on this report thing

dark ermine
#

Is that reading from a file you downloaded from git?

dark ermine
#

Alright. So what's going on? I just want to make sure that I'm not lollygagging while you're working to aid me.

I just have has another crack at using the CSV from MITRE, however eventually I do get a Unicode error when reading line by line.

vocal basin
#

csv doesn't seem to contain easily accessible product/version information

dark ermine
#

Grabbing that file now.

Also, did you see my screenshot of the CSV file I am using? It does.

dark ermine
#

That repository seems like it's exactly where MITRE put their info so that's a good resource thanks

#

It's extracting atm

vocal basin
#

there are 32087 separate products mentioned

#

there are several different Chomes too

dark ermine
#

Jesus Christ though I've got to parse this somehow? I'm guessing the code you just recently shared works well with this. I actually wouldn't know where to start without that. It's weird the CVEs are so broken up but it's neat

#

I'd like to check for the most common browsers, to showcase how this could be a danger in a high traffic area like an airport or hotel.

vocal basin
#

just using "Chrome" should be fine for most cases

#

wait, is bot reacting to "danger"?

#

yes it does

vocal basin
#

so, I filtered only ones which had "product": "Chrome"
this is what the beginning of the file looks like

{'CVE-2010-3917': [{'status': 'affected', 'version': 'before 3.0'}],
 'CVE-2011-1802': [{'status': 'affected',
                    'version': 'before Blink M11 and M12'}],
 'CVE-2011-1803': [{'status': 'affected',
                    'version': 'before Blink M11 and M12'}],
 'CVE-2011-1805': [{'lessThan': '11.0.0.0',
                    'status': 'affected',
                    'version': 'unspecified',
                    'versionType': 'custom'}],
...
#

as you can see, format even here isn't consistent

#

most are either "lessThan", "before ..." or "prior to ..."

#

first is easiest to parse

dark ermine
#

Sorry for the late response I got a customer. Checking out your responses now.

#

Okay, so you've got a list of products that I can use to check the versions for vulns?

That is an issue with how it is formatted. But just another part to add to completing the challenge.

#

Yeah I kept taking stabs at it but I'm mentally exhausted. This is a really hard challange it is the last thing I need to finish up! Been working on it for a few days. Still working on it now.

#

I appreciate the help and advice here guys πŸ™‚

#

I'm using the CVE list from GitHub now, well trying to. Here is an apparent problem:

dark ermine
#

However, if you check out the CVE list downloaded from GitHub, go check out cves/2006/1xxx and you will find CVE-2006-1101.json.

Upon inspecting this JSON file it shows seemingly no evidence of a browser vulnerability or a similar description as provided from the CSV list that I can't parse that was converted to JSON.

#

It even has MITRE as the provider in the metadata for the info.

vocal basin
#

I managed to extract 1681 Chrome-related CVEs with versions

dark ermine
#

Can you show me what you got going on? Can you give an example for searching Firefox 82.0.3? Or you're saying still can't search by version number yet.

#

I don't mind though, it's huge if you're able to get a list of CVEs directly by name of the browser.

#

Figuring out how to parse the descriptions for versions is the best step after that, but I'll take it as it comes.

vocal basin
#

that one is only for Chrome

dark ermine
#

I just switched to discord on my linux desktop, I didnt have it installed here as this is my development platform for the project. Whatever though it makes it easier to collaborate and share infromaton.

vocal basin
#
chrome_cves: dict[str, list] = {}
for sub in source.iterdir():
    if not sub.name.isdigit():
        continue
    year = int(sub.name)
    for cve in sub.rglob("*.json"):
        data: dict = json.loads(cve.read_bytes())
        containers: dict | None = data.get("containers")
        if containers is None:
            continue
        cna: dict | None = containers.get("cna")
        if cna is None:
            continue
        affected: list[dict] | None = cna.get("affected")
        if affected is None:
            continue
        for entry in affected:
            product = entry.get("product")
            if product is None:
                continue
            if product == "Chrome":
                chrome_cves[data["cveMetadata"]["cveId"]] = entry["versions"]
with open("chrome_cves.py", "w", encoding="utf-8") as f:
    f.write("chrome_cves = ")
    pprint(chrome_cves, stream=f)
dark ermine
#

Okay I get you.

#
import json
from pathlib import Path
from pprint import pprint

chrome_cves: dict[str, list] = {}
for sub in source.iterdir():
    if not sub.name.isdigit():
        continue
    year = int(sub.name)
    for cve in sub.rglob("*.json"):
        data: dict = json.loads(cve.read_bytes())
        containers: dict | None = data.get("containers")
        if containers is None:
            continue
        cna: dict | None = containers.get("cna")
        if cna is None:
            continue
        affected: list[dict] | None = cna.get("affected")
        if affected is None:
            continue
        for entry in affected:
            product = entry.get("product")
            if product is None:
                continue
            if product == "Chrome":
                chrome_cves[data["cveMetadata"]["cveId"]] = entry["versions"]
with open("chrome_cves.py", "w", encoding="utf-8") as f:
    f.write("chrome_cves = ")
    pprint(chrome_cves, stream=f)

got this error:

  File "/home/pilot/Desktop/Projects/CVE List/try2.py", line 6, in <module>
    for sub in source.iterdir():
NameError: name 'source' is not defined

Did I add the wrong libraries?

#

Oh let me check and see if theyre even installed

vocal basin
#

inner iteration can be simplified to this, as most entries are correct enough for it

data: dict = json.loads(cve.read_bytes())
containers: dict = data["containers"]
cna: dict = containers["cna"]
affected: list[dict] = cna.get("affected", [])
for entry in affected:
    product = entry.get("product")
    if product == "Chrome":
        chrome_cves[data["cveMetadata"]["cveId"]] = entry["versions"]
dark ermine
#

oh I see its in the with open() at the end

vocal basin
#
source = Path(r"cvelistV5-main/cves")
#

!d pathlib.Path

wise cargoBOT
#

class pathlib.Path(*pathsegments)```
A subclass of [`PurePath`](https://docs.python.org/3/library/pathlib.html#pathlib.PurePath), this class represents concrete paths of the system’s path flavour (instantiating it creates either a [`PosixPath`](https://docs.python.org/3/library/pathlib.html#pathlib.PosixPath) or a [`WindowsPath`](https://docs.python.org/3/library/pathlib.html#pathlib.WindowsPath)):

```py
>>> Path('setup.py')
PosixPath('setup.py')
```  *pathsegments* is specified similarly to [`PurePath`](https://docs.python.org/3/library/pathlib.html#pathlib.PurePath).
dark ermine
#

Hold on I am trying to slap it all together correctly

#

Im just having a bit of trouble with that my workspace is all over the place

#

I got your script to run without errors, However I received no output.

What was your process to gather CVES only related to chrome? Asking to understand the steps to replicate as I move forward

#

I greatly think that parsing the CSV file may be of more use than the github repo, honestly. The only thing stopping me from using that though is the fact that probably about 30 results in when the file is being read a get a unicode error I have no idea how to fix. So like, I do personally feel that it would be better to go after the CSV file, but I just can't at the moment due to one unforseen error that actually hinders my ability to move forward with that method.

I wonder if there is a solution. I mean, this CVE list was prepared by an orginization who specializes in concatinating this kind of information so I would expect I should be able to easily parse it.

#

This code shows the issue:


def parse_csv_file(file_path):
    with open(file_path, 'r') as file:
        reader = csv.reader(file)
        for row in reader:
            # Process each row here
            print(row)
            input('Continue[ENTER]')

# Replace 'file_path' with the actual path to your CSV file
file_path = 'allitems.csv'
parse_csv_file(file_path)```
I can press enter to read a line of the document.
#

after pressing continue to a certain point I get the

  File "/home/pilot/Desktop/Projects/CVE List/try3.py", line 13, in <module>
    parse_csv_file(file_path)
  File "/home/pilot/Desktop/Projects/CVE List/try3.py", line 6, in parse_csv_file
    for row in reader:
  File "/usr/lib/python3.10/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 4499: invalid start byte

error.

#

If I could get past this bob is my uncle.

vocal basin
#

(almost) each entry in data["containers"]["cna"]["affected"] has entry["product"] and entry["versions"]

flint hill
#

@rugged root poke poke

rugged root
#

Sup?

flint hill
#

got a minite to vc

rugged root
#

Give me like... 5 min

dark ermine
#

Thanks for the help

broken ruin
#

does anyone know how to filter out chracters from a message before it is sent

somber heath
#

@subtle valley πŸ‘‹

subtle valley
#

Good evening

#

Lol that was about to be my question

#

thanks

somber heath
#

!voice

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

subtle valley
#

Ive got the time by a long shot but not the messages lol i lurk

#

Oh well, this is good enough, i really was just looking for company while i work anyway

#

What are u guys workin on? If anything?

#

No

#

(currently eating some)

subtle valley
#

Hey

obsidian dragon
#

are you there @vocal basin ?
where is my h3 element going?

#
  const folderPath = 'articles/';
  const fileNames = [
    '23_10_04.txt',
    '23_10_03.txt',
    // Add more file names as needed
  ];

  // Sort fileNames in descending order
  fileNames.sort(function (a, b) {
    return b.localeCompare(a);
  });

  // Function to load file content using AJAX
  function loadFile(fileName) {
    $.ajax({
      url: folderPath + fileName,
      success: function (fileContent) {
        const lines = fileContent.split('\n');

        if (lines.length > 0) {
          const firstLine = lines[0];
          const restOfContent = lines.slice(1).join('<br>'); // Use <br> to separate lines

          // Create an <h3> element for the first line
          const h3Element = $('<h3>' + firstLine + '</h3>');

          fileTitle.html(h3Element);
          contentDiv.html(restOfContent);
        }
      }
    });
  }

  // Load the first file initially
  loadFile(fileNames[0]);

  // Create links for other files, including the currently loaded file
  fileNames.forEach(function (fileName, index) {
    const listItem = $('<li></li>');
    const link = $('<a href="#">' + fileName.split('.')[0] + '</a>');

    link.on('click', function () {
      loadFile(fileName);
    });

    listItem.append(link);
    archiveLinks.append(listItem);

    // If it's the currently loaded file, add a marker
    if (fileName === currentFileName) {
      link.addClass('current-file'); // You can define a CSS class for this
    }
  });
});
obsidian dragon
#

so the first line is supposed to be h3

warped raft
#

hello @somber heath

#

i have been lonely

#

fact was kind of amazing

somber heath
#

@wispy forge πŸ‘‹

#

@grim parcel πŸ‘‹

grim parcel
#

Hi

#

I just joined

#

could anyone of you guys help me with learning new things in python?

#

I could make functions, calculators and dictonaries

somber heath
#

What would you like to learn about, specifically?

#

@summer blaze πŸ‘‹

fervent grail
#

Hello

#

I have some problem

#

hello ?

#

um

wind raptor
#

Hi

fervent grail
#

i got some error

#

yeah i post they in python help

#

this is the link

wind raptor
#

Thanks

fervent grail
#

can you guys what going on with my module ? cause i can't do get frame from my webcam

dry jasper
#

capture = cv.VideoCapture(0+cv.CAP_DSHOW)

fervent grail
#

lemmi test it

#

now i got this error

#

[ WARN:0@2.302] global cap.cpp:344 cv::VideoCapture::open VIDEOIO(DSHOW): backend is generally available but can't be used to capture by index

#

the same error

#

i test the one too

wise loom
#

so like /dev/video1 ?

fervent grail
#

Also
i try the
cv.VideoCapture (1)
but it says
[ERROR:0@1.914] global obsensor_uvc_stream_channel.cpp:156 cv::obsensor::getStreamChannelGroup Camera index out of range

wise loom
#

why doesn't he install v4l and then v4l2-ctl --list-devices

#

so he can see the actual camera devices

dry jasper
#

capture = cv.VideoCapture(1+cv.CAP_DSHOW)

wise loom
#

@wind raptor do you have me muted?

fervent grail
wise loom
#

@wind raptor thanks

dry jasper
#

capture = cv.VideoCapture(1,cv.CAP_DSHOW)

fervent grail
dry jasper
#

capture = cv.VideoCapture(0,cv.CAP_DSHOW)

fervent grail
#

returns
[ WARN:0@2.110] global cap.cpp:344 cv::VideoCapture::open VIDEOIO(DSHOW): backend is generally available but can't be used to capture by index

wise loom
wind raptor
#

cv.CAP_MSMF

fervent grail
tender orchid
#

I think the problem is with cv.imshow (frame). Try cv.imshow ("random name", frame)

fervent grail
# wind raptor cv.CAP_MSMF

this one returns this
[ WARN:0@2.205] global cap_msmf.cpp:471 anonymous-namespace'::SourceReaderCB::OnReadSample videoio(MSMF): OnReadSample() is called with error status: -1072875772 [ WARN:0@2.212] global cap_msmf.cpp:483 anonymous-namespace'::SourceReaderCB::OnReadSample videoio(MSMF): async ReadSample() call is failed with error status: -1072875772
[ WARN:1@2.217] global cap_msmf.cpp:1759 CvCapture_MSMF::grabFrame videoio(MSMF): can't grab frame. Error: -1072875772

fervent grail
#

so cv.imshow is not problem

wind raptor
#

It's good advice

loud anvil
#

is the machine linux or windows

fervent grail
# tender orchid I think the problem is with cv.imshow (frame). Try cv.imshow ("random name", fra...

so oke i try but this it returns the same error many times
[ WARN:1@3.303] global cap_msmf.cpp:1759 CvCapture_MSMF::grabFrame videoio(MSMF): can't grab frame. Error: -1072875772
None
[ WARN:1@3.334] global cap_msmf.cpp:1759 CvCapture_MSMF::grabFrame videoio(MSMF): can't grab frame. Error: -1072875772
None
[ WARN:1@3.366] global cap_msmf.cpp:1759 CvCapture_MSMF::grabFrame videoio(MSMF): can't grab frame. Error: -1072875772
None
[ WARN:1@3.397] global cap_msmf.cpp:1759 CvCapture_MSMF::grabFrame videoio(MSMF): can't grab frame. Error: -1072875772
None
[ WARN:1@3.429] global cap_msmf.cpp:1759 CvCapture_MSMF::grabFrame videoio(MSMF): can't grab frame. Error: -1072875772
None...
It has continue too, So it's not problem
problem is i can't get frame from my webcam

fervent grail
#

i checked it, it works

#

yeah

#

yeah

#

i have install it

#

already

#

lemmi test

#

problem isn't it

#

i mean problem isn't it cause i test it

tender orchid
#

try these three captures:

capture = cv.VideoCapture(0, cv.CAP_DSHOW)

capture = cv.VideoCapture(0, cv.CAP_MSMF)

capture = cv.VideoCapture(0, cv.CAP_VFW)

fervent grail
#

k

fervent grail
tender orchid
#

Check your web cam permissions

fervent grail
loud anvil
#

and firewall

fervent grail
#

i try but

#

it doesn't work guys

loud anvil
#

:((

fervent grail
#

Yeah but it returns None always

tender orchid
#

is your web cam working with other applications?

fervent grail
#

yeah

wind raptor
#

Did you install the webcam's actual drivers or are you just using the stock windows generic ones?

fervent grail
wind raptor
#

Have you tried turning your entire pc off and then on again?

#

That's the last thing I can think of to debug

#

Windows sucks sometimes and needs a reboot

loud anvil
#

cv.imshow("Frame", frame) can u add this

wind raptor
#

You do need this for it to work ^^

fervent grail
fervent grail
wind raptor
#

Please listen to @loud anvil also

#

It's important for it to work

fervent grail
wind raptor
#

but it needs to stay there

#

not delete after it doesn't work

#

Syntax: cv2.imshow(window_name, image)

fervent grail
tender orchid
wind raptor
# fervent grail I know

Ok awesome. Your original response to the suggestion made me think you didn't implement it. My bad.

loud anvil
#

maybe run the python terminal with admin privileges

wind raptor
#

If you had this result:
None
None
None
...

and no error, it was probably working if you hadn't implemented the suggestion yet.

fervent grail
#

Also It means frame is NoneType so i can't do image processing

loud anvil
#

somebody from stackof suggested to run the windows camera app when the program is running

#

and add the time delay after cv.VideoCapture()

wind raptor
#

Have you tried just a minimal script? @fervent grail

import cv2

cap = cv2.VideoCapture(0, cv2.CAP_DSHOW)
while True:
    ret, frame = cap.read()
    cv2.imshow('frame', frame)
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break
cap.release()
cv2.destroyAllWindows()
obsidian dragon
#
// Function to load and process text files from the "articles" folder
async function loadAndProcessTextFiles() {
  fileNames.sort((a, b) => parseInt(b) - parseInt(a)); // Sort in descending order numerically
  const contentDiv = document.getElementById('content'); // Reference to the "content" div

  for (const fileName of fileNames) {
    try {
      const response = await fetch(folderPath + fileName);

      if (!response.ok) {
        throw new Error(`Failed to fetch ${fileName}`);
      }

      const text = await response.text();

      // Split the content by lines
      const lines = text.split('\n');

      // Create a new <h3> element for the first line and add it to the "content" div
      const heading = document.createElement('h3');
      heading.textContent = lines[0];
      contentDiv.appendChild(heading);

      // Process the rest of the lines, replacing new lines with <br> tags
      for (let i = 1; i < lines.length; i++) {
        const paragraph = document.createElement('p');
        paragraph.innerHTML = lines[i].replace(/\n/g, '<br>'); // Replace new lines with <br> tags
        contentDiv.appendChild(paragraph);
      }
    } catch (error) {
      console.error(error);
    }
  }
}

// Execute the function on document load
document.addEventListener('DOMContentLoaded', loadAndProcessTextFiles);
wise loom
#

@fervent grail which user are running your program under? Have you tried running it under the root user? Maybe it’s a permission problem

fervent grail
obsidian dragon
wise loom
fervent grail
wise loom
wise loom
tender orchid
obsidian dragon
#

I tried, it seems to work

#

grayscale cam

fervent grail
wise loom
fervent grail
obsidian dragon
#

does your camera open normally

fervent grail
#

Yeah

wise loom
#

@fervent grail how’d you install opencv for python on windows?

fervent grail
#

pip install opencv-python

#

And it's lastest version of that package

wind raptor
wind raptor
#
<body>
  <nav>
    Osyra's News
    <span style="float:right" id="archiveBtn">View Archives</span>
    <div id="archiveDiv">
      <ul id="archiveLinks"></ul>
    </div>
  </nav>
  <main>
    <h3 id="fileTitle"></h3>
    <div id="content"></div>
  </main>
  <script src="script.js"></script>
</body>
tacit patio
#

Hey guys , What's up ??

fervent grail
wise loom
# fervent grail And it's lastest version of that package

Yeah if this was me. I’d probably try a few different package versions(maybe it’s some bug introduced in recent versions). If that doesn’t work I’d clone the disk store the backup somewhere, wipe out the entire machine and try on a fresh Windows install. If that doesn’t work either.. I’d conclude there’s something wrong with the camera and I’d just get an external USB camera instead.

tacit patio
#

Syria , You ??

still olive
#

Anyone doing sth interesting?

fervent grail
tacit patio
#

I'm a beginner in Python . I've finished a course and I wanna to practice but I don't know what to do , any Ideas?

#

Note: I learned Python for Django Framework to be a backend developer

#

I can hear if you want to talk in the voice chat

fervent grail
wise loom
tacit patio
#

Actually no , I will see them

#

My main question is how to practice . I'm struggling to know what to do

wise loom
toxic arch
#

is anyone speaking in vc?

#

i cant hear anyone

tacit patio
#

I have projects ideas from the Youtube but I feel like I can't do anything

tacit patio
tender orchid
toxic arch
#

going good

obsidian dragon
#

const link = $('<a href="#">' + fileName.split('.')[0] + '</a>');

fervent grail
toxic arch
#

@obsidian dragon your mic is very hard to understand

wise loom
# tacit patio I feel like googling everthing is like cheating and I get depressed 😦

Keep a cheatsheet and notes. Realize that there’s a cognitive load attached to every new library or framework you choose to use. Make sure to be organized in your notes, refer to your notes, keep readily available small examples of how to do certain things.

update: your notes should be a big text file and your editor should be able to read and search through this file.

tacit patio
tacit patio
obsidian dragon
tacit patio
tacit patio
toxic arch
#

i dont know know javascript

wise loom
tacit patio
tender orchid
tacit patio
toxic arch
#

its push i think

#

yeahh

tacit patio
toxic arch
tacit patio
#

I don't have a BS degree I just study by myself

toxic arch
#

j query

#

?

#

nah im just unware of web development

fervent grail
tacit patio
fervent grail
#

Hmm

wind raptor
#

This is my nightmare:

<div class="container">
  <div class="grid">
    <div class="row-center">
      <div class="col-md-6">
        <h1>Hello</h1>
      </div>
    </div>
  </div>
</div>
tender orchid
tacit patio
obsidian dragon
fervent grail
#

HEY GUYS MY MODULE WORKS NOW

wise loom
fervent grail
#

@wind raptor thank you so much ❀️

wind raptor
fervent grail
#

yeah

wind raptor
#

I hate when that's what fixes something facepalm

fervent grail
#

you was right

vocal basin
#

"I like OpenCL because it auto-restarts the PC if something goes wrong. How? It BSODs."

mighty robin
#

cant stream initial d

#

😭

terse needle
#

discord wont detect my mic brb

mighty robin
#

sad

steep juniper
#
import csv

with open('input1.csv', 'r') as f:
    x = f.read().split(',')
    x2 = x
    for i in x2:
        print(f'{i} {x.count(i)}')
        x2 = [z for z in x2 if z != i]
        print(x2)
mighty robin
#

lol

#

i slept in the desk

somber heath
#

@thorny gorge πŸ‘‹

somber heath
#

@devout oxideπŸ‘‹

#

@latent flame πŸ‘‹

#

@teal bane πŸ‘‹

latent flame
#

hello

#

everyone

#

what are you're guys fields?

teal bane
#

ok so i guess ive sent less than 50 messages

latent flame
#

me too

#

lol

#

i love aplles

#

apples*

teal bane
#

yeah, im just tryna figure out how to structure some data. Figured id ask some programmers.

#

yeah right.

latent flame
#

oh data structure aint for me bruv

#

but i wish at times

#

I am going to start a research project on drones tho

#

which is pretty cool

#

I've done one for RC

#

made it go self-driving mode

#

like tesla

teal bane
#

i say "structure data" what im asking is like... how do i represent this like complex web of... possibilities. In short Im trying to write some code that goes through all the towers and upgrades in BTD6 and like... link them all together with like which units can beat which waves when combined, and their combined cost

somber heath
#

@earnest chasm πŸ‘‹

earnest chasm
#

yo!

somber heath
#

@gentle egret πŸ‘‹

#

!voice

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

earnest chasm
#

ya

gentle egret
#

hello

latent flame
#

welcome

gentle egret
#

what yall doin?

latent flame
#

good hbu

earnest chasm
#

hate to ask for help but I cant for the life of me figure out how to run github files

gentle egret
#

@somber heath

latent flame
earnest chasm
#

ok, projects

#

just any I try

latent flame
#

adios everyone

earnest chasm
#

Im trying to run a c++ ide curently but Ive tried to run a python node coder too

#

the python node coder was kinda like geometry nodes in blender or shader nodes

fervent grail
#

have you install python ?

earnest chasm
#

yea

#

In the computer I tried it on

#

on

gentle egret
#

@somber heath Would you be able to give some advice on why an array im trying to run in python keeps returning an error?

fervent grail
#

send your error in chat @gentle egret

gentle egret
#

ive tried v stack, append etc

earnest chasm
#

I gotta go to bed but you guys have a nice night

somber heath
#

@digital bay πŸ‘‹

earnest chasm
#

ill try later

fervent grail
gentle egret
#

all the other values that are being fed in are 8,1 and this one I think is 8,- but even when I reshaped it to 8,1 it gave the same error

#

would u recommend an easier way to add strings to an existing array then it doesnt have to be that exact way

fervent grail
#

hmm, can you send full code ?

fervent grail
gentle egret
#

So I have the table which I made and im trying to put row titles on each row hence why Im trying to add strings to the array

fervent grail
gentle egret
fervent grail
#

just send output

gentle egret
somber heath
#

@S2 πŸ‘‹

gentle egret
#

is it possible to use two datasets in a tabulate table maybe?

#

hmm ok, good thing is I have a few days to figure this last part out lol

somber heath
gentle egret
#

will do

somber heath
#

!e py import numpy as np np.array([(1, 2), (1, 2, 3)])

wise cargoBOT
#

@somber heath :x: Your 3.12 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 2, in <module>
003 |     np.array([(1, 2), (1, 2, 3)])
004 | ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
somber heath
#

@obsidian island πŸ‘‹

fervent grail
#

!e
import numpy as np
np.array([(1, 2, 4), (1, 2, 3)])

wise cargoBOT
#

@fervent grail :warning: Your 3.12 eval job has completed with return code 0.

[No output]
fervent grail
#

!e
import numpy as np
x = np.array([(1, 2, 4), (1, 2, 3)])
print (x)

wise cargoBOT
#

@fervent grail :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | [[1 2 4]
002 |  [1 2 3]]
fervent grail
#

The problem is

#

you have to use same shape in the both

gentle egret
obsidian island
#

Anyone know how to fix persion issues on the server??

fervent grail
#

!e
import numpy as np
x = np.array([("Hello", "Wow", 4), (1, 2, 3)], dtype="object")
print (x)

wise cargoBOT
#

@fervent grail :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | [['Hello' 'Wow' 4]
002 |  [1 2 3]]
fervent grail
#

can you see ?

gentle egret
#

so I think the issue maybe is that the calculation going in is 5 and the string is 8

fervent grail
#

so you have to make their shape the same one

#

!e
import numpy as np
row = ("Nice", 7)
x = np.array([("Hello", "Wow", 4), (1, 2, 3), row], dtype="object")
print (x)

wise cargoBOT
#

@fervent grail :white_check_mark: Your 3.12 eval job has completed with return code 0.

[('Hello', 'Wow', 4) (1, 2, 3) ('Nice', 7)]
fervent grail
#

what the hell

#

oh

gentle egret
#

or vice versa

fervent grail
#

if you want to resize use this syntax : YOUR_ARRAY.resize (shape)

#

!e
import numpy as np
row = ("Nice", 7)
x = np.array([("Hello", "Wow", 4), (1, 2, 3), row], dtype="object")
print (x.shape)

wise cargoBOT
#

@fervent grail :white_check_mark: Your 3.12 eval job has completed with return code 0.

(3,)
fervent grail
#

but note this you can do only possible reshaping like 4x4 -> 16, 2x8, 8x2, and more

gentle egret
#

the array returns 8 values though, so why is the shape returning as 5?

#

wait nvr mind

#

I think I figured it out

fervent grail
#

oh nice

gentle egret
# fervent grail oh nice

one last thing, say I want to add a string at the beggining of each calculation would I use append?

fervent grail
#

yeah

#

like

#

numpy.append ()

#

syntax : numpy.append(arr, values, axis=None)

#

returns a new array with new values

#

no problems ?

gentle egret
# fervent grail no problems ?

issue is i need to append for each of the calculations in the array since theyre calculated in the array and not their own seperate arrays whats the best way to do that?

#

use a for loop for data[i] perhaps?

fervent grail
#

like what you want to get as output if you don't want to use append ?

gentle egret
#

its not liking it being a string

fervent grail
#

that's wrong

#

if you want to do that

gentle egret
#

Yea im trying to add a string at the front of each element

fervent grail
#

i think i have module about this problem

#

so wait a minute

gentle egret
#

ok

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied timeout to @fervent grail until <t:1696490012:f> (10 minutes) (reason: newlines spam - sent 148 newlines).

The <@&831776746206265384> have been alerted for review.

gentle egret
#

damn lol

lofty echo
#

Lmao

#

Does anybody need help with any projects or need any projects here to help

lofty echo
#

Okay

#

If you do just dm me

cerulean bloom
#

hey

#

cant speak bc of havinbg sent less than 50 msgs lol

wind raptor
#

@hasty blaze

#

!voice

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

cerulean bloom
#

hey

hasty blaze
#

I cant

cerulean bloom
#

I tried verifying,but it said that I need to send 50 msgs lol

#

you guys talking to me

#

lol

#

@wind raptor I feel that it is very overwhelming at first

hasty blaze
#

Yes

#

I can speak

#

Very bad

cerulean bloom
#

do you guys work as devs

#

?

#

oh ok

#

Im a 3rd year compsci student

hasty blaze
#

Will we write

cerulean bloom
#

what did they make you do? @molten pewter

hasty blaze
#

?

#

Instead of talking

wind raptor
#

Yeah

cerulean bloom
#

@molten pewter did you graduate

#

?

#

ohh

#

yeah

#

lol

hasty blaze
#

Guyss

#

Let me talk

#

Alsooo

cerulean bloom
#

I sent you a fr

#

some of my teachers are useless

wise loom
cerulean bloom
#

indeed

wise loom
#

never complain about your teachers

cerulean bloom
hasty blaze
#

Indeed

#

Indeed

cerulean bloom
#

do you think it will replace jobs

#

like MERN

#

or django dev jobs

warped raft
#

@wind raptor

#

i have question

cerulean bloom
#

yeah

warped raft
#

open this link

#

at top there appears a green like thing what is it called

wind raptor
warped raft
#

i followed it

wind raptor
#

the login button?

warped raft
#

no when you scroll the page

#

it becomes long or short

cerulean bloom
#

hm

wind raptor
#

Oh, yeah it's like a progress bar that's filled based on page view location

warped raft
#

yeah

hasty blaze
#

guys

#

i have a question

#

may i ask?

cerulean bloom
#

what do you guys work as?

#

like what technology

hasty blaze
#

do u ever worked

#

with graph api?

#

facebook?

#

have u?

wind raptor
#

page progress bar?

warped raft
#

ok

hasty blaze
cerulean bloom
#

wdyt of web 3

#

?

hasty blaze
#

i wrote my ngrok link

#

and random verify token

cerulean bloom
#

I ask because there was this huge hype in it a few months ago

#

but now,not so much

hasty blaze
#

mak new what?

#

MAKE

cerulean bloom
#

like a login?

hasty blaze
#

D

#

thanks

cerulean bloom
#

a token works like a login pswd?

#

ah

hasty blaze
#

GUYS

#

LISTEN PLZ

#

WHAT IS VERIFY TOKEN

#

WHAT SHOULD I WRITE

#

axxaxa

#

πŸ˜‰

#

r u going to google

molten pewter
#

In computer systems, an access token contains the security credentials for a login session and identifies the user, the user's groups, the user's privileges, and, in some cases, a particular application. In some instances, one may be asked to enter an access token (e.g. 40 random characters) rather than the usual password (it therefore should be...

cerulean bloom
#

lemme reframe my question

#

is Ai worth the rrecent hype its getting

#

considering,that most jobs need a masters

#

or phD

#

I mean its definitely a good technology

#

but there is a barrier to entry

#

@wind raptor my question is in particular about learning AI

#

ML engineering I mean

#

hm

#

right

#

but rn I dont know development -back end or front end

hasty blaze
#

omg

hasty blaze
#

i need verify token

#

NOW HELP ME GUYS

#

u r talking a lot

gentle flint
#

in caps lock

hasty blaze
#

im not yelling

#

asking

gentle flint
#

you are when you use caps lock

hasty blaze
#

as student

#

from my teacher

gentle flint
#

that's yelling in text

hasty blaze
#

he is my new teacher

wind raptor
#

It's also very rude

hasty blaze
#

if i have micro premission

#

i would already solved my probelm

wind raptor
#

The stuff you are putting into the boxes is wrong. If you put the right stuff into them, it will work. We don't have access to generating your token and you'd have to check on grock for the callback.

hasty blaze
#

it says the same

#

3 days now i should wait

#

Teacher

wind raptor
#

Where you are you even entering this information?

cerulean bloom
#

Discover the best courses to build a career in AI | By Andrew Ng | Whether you’re a beginner or an experienced practitioner our world-class curriculum and unique teaching methodology will guide you through every stage of your AI journey.

#

@molten pewter @

hasty blaze
#

access_token - Is ganarated from facebook for 2 hours

#

and have some permission which u can set it

#

verify_token - idk

wind raptor
#

But what are you filling out? On what platform is the form located?

hasty blaze
#

Meta For Developers

#

have u use it?

wind raptor
#

No

hasty blaze
#

omg

#

Where is my teacher

wind raptor
#

I said I've been using Microsoft Graph API

hasty blaze
#

thanks bro

#

u dont need me

#

@molten pewter

#

teacher

#

i m getting kind a notification

wind raptor
#

You need to set up a verify token on ngrok. It's not the one from facebook.

hasty blaze
#

i have set

hasty blaze
wind raptor
#

That line of code isn't doing anything

hasty blaze
#

let me show continue

wind raptor
#

But I think ngrok itself needs to be configured to use that, according to the docs. You can check it on your server, but ngrok is a separate process, is it not?

hasty blaze
somber heath
#

Some say the elves are the most technologically superior, crafting the finest knives and arrows.

Others say the dwarves, with their massive factories and nigh-impenetrable armors hold the title.

However, it is the most unlikely of races whose ability eclipses them all...

Hobbits, with their innate prowess as Bag End developers, have the last word.

wind raptor
hasty blaze
#

i think

#

verify token is random number

wind raptor
#

It shouldn't be if you configure it

#

This is from the ngrok docs: ngrok http 80 --verify-webhook stripe --verify-webhook-secret "{webhook secret}"

#

You can set the secret on startup or in a config file

#

You wouldn't put stripe in there of course

hasty blaze
#

i dont have

#

webhook secret

wind raptor
#

Pretty sure that's your verify token

hasty blaze
#

ΠΆΠ’

#

nice

somber heath
#

@gentle flint Yoghurt rehab go okay?

hasty blaze
#

we r getting verify token

#

and how can we put verify token here

somber heath
#

@woeful summit πŸ‘‹

woeful summit
#

@somber heath

somber heath
#

@haughty fog πŸ‘‹

hasty blaze
whole bear
#

hi

somber heath
#

@whole bear πŸ‘‹

whole bear
#

what's up with voice verification

#

?

somber heath
#

!voice

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

whole bear
#

do I have to send 50 messages

#

?

#

ok

#

what?

#

omg

#

I 'm dead

#

ok

#

thanks

#

I'm starting my uni

#

i just joined

#

cs

#

haha

#

which country are u from guys?

#

damn

#

nicce

#

tell me

#

I don't like to guess

#

damn

#

aus

#

nice

#

ahhh

#

I thought It's programming so most of pple are Indian or some shit

rugged root
#

We do have a large Indian user base

whole bear
#

that's good

rugged root
#

Yeah folks from all over. India, Philippines, Pakistan, I think some from Russia, lots of the EU countries

whole bear
#

It will be fun now.

rugged root
#

Where are you from if you don't mind me asking?

whole bear
#

yah

#

whatthefrog this guy joined may 14 and still not verified

#

yah

#

his works speaks I guess

somber heath
#

@cedar rain πŸ‘‹

whole bear
#

good human

#

huh

rugged root
#

Never mind, have to track her down. One sec

whole bear
#

Are you guys are experianced in programming or you guys are also on learning stage?

rugged root
#

I'm always learning, but I do alright

molten pewter
gentle flint
gentle flint
somber heath
#

Put pants on the car.

#

So it doesn't have to have shorts.

#

@agile spear @halcyon nymph πŸ‘‹

halcyon nymph
#

what?

elfin moth
#

hi everyone

rugged root
#

A unique multiplayer game built on a free Web API. The best sandbox platform to learn a new skill or apply your knowledge in a fun and meaningful way. Use any programming language with our RESTful API to control the most powerful fleet in universe.

wise loom
sour willow
#

sup hem

#

fair on the topic of languages persian is also pretty nice

#

also how's c# going for ya hem

rugged root
sour willow
#

the link looks really familiar wouldn't doubt seeing this here before

#

or maybe I'm tripping

#

fair haven't touched programming in some time

#

I really wanna try and learn java from scratch but I can't handle learning things I already know

#

it's a bummer considering I haven't coded in the past 3 months haha

rugged root
#

!stream 533226806686384128

wise cargoBOT
#

βœ… @devout bloom can now stream until <t:1696520660:f>.

sour willow
#

reminds me of af

#

what console

#

oh the gaystation 5 is nice

#

mirage is meh

#

what is this autocomplete

#

the miraj was

#

it's easier though than the others

#

digital edition?

#

Xbox did it way better though

#

with their whole 360 support but I mean most of them have remastered as well so

#

yeah you can rt games I believe

#

the newer Xbox controllers will support adaptive triggers, etc....

#

with built in rechargeable battery support as well

#

no you have to buy a separate module for it

#

yeah seems like you hate all the accounting software you have to use at work lmfao

#

how's the wage?

#

oof hope it works out

hasty blaze
#

guys

devout bloom
#

This is the excel I was talking about
I need to save it on the database via dataframe
I can't make a JSONFIELD and save all in it
I have to make individual columns

how do I do it?????

hasty blaze
#

help me

#

Is the anyone worked with facebook graph API?

devout bloom
#

I wish I could help

hasty blaze
#

thanks

#

ia want to add webhook to it

#

but i am struggling how to get verify token

#

working with ngrok

#

it says still error

#

Are verify and access tokens are the same?

#

@rugged root

devout bloom
hasty blaze
#

ok

devout bloom
#

verify token gives you a new access token

hasty blaze
#

ok

#

how can i get

#

or where i will get

#

verify token

devout bloom
#

that I don't know sorry

hasty blaze
#

Connecting to Facebook Graph API:

It asks
Callback URL and Verify token

What is verify token?

rugged root
wise loom
#

@devout bloom why not store it on the filesystem?

mighty robin
#

guys plx i need HELP

#

how do i put my cellphone camera on my cv2 py file

wise loom
#

So both MongoDB and PostgreSQL can store JSON efficiently

#

PostgreSQL even has TOAST compression..

#

So Tomash's problem description was as follows:

I have a number of forms that are serialized in JSON format.
I would like to store them in a database. Whenever I add/remove some fields
in them I'd have to change all of them (like 280 of them).
wise loom
#

I had suggested to Tomash to implement some type of inheritance such that you can say things like:

base.json
{
  "common_field": "string"
}

derived.json
{
  "custom_field": "string",
  "inherit_from": "base.json"
}

and that would mean the form derived.json inherits from base.json , the two get merged so derived can inherit from base.

#

I don't know if Tomash already does this..

rugged root
#

Gotcha

#

It's sounding like it's a singular bulk JSON

#

And that's how it's received

wise loom
#

Oh so it's a big JSON with all forms, right.

rugged root
#

@devout bloom Is that right or am I misunderstanding?

#

My god, he's dead

devout bloom
#

it's a single file

#

with 14 thousand line of json code

#

gotta go time to eat

#

bye

rugged root
#

!paste

wise cargoBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

rugged root
#

@worldly ruin

worldly ruin
vocal basin
#

*each expects each to be an iterable

#

!e

print(*(each for each in range(1, 10) if each % 2 == 0), sep=', ')
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

2, 4, 6, 8
vocal basin
#

it might be simpler to use range(a, b, 2) there

#

but that requires first rounding up the start

worldly ruin
#

why is it in range 1, 10

rugged root
#

!e

ham = ["pork", "beef", "eggs"]
print(*ham, sep=', ')

spam = 2
print(spam, sep=', ')
vocal basin
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | pork, beef, eggs
002 | 2
worldly ruin
#

oh alr

vocal basin
#

!e

start = 1
end = 10 + 1
mod = 3
start = (start + mod - 1) // mod * mod
print(*range(start, end, mod), sep=', ')
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

3, 6, 9
tall ridge
vocal basin
#

!e

start = 0
end = 10 + 1
mod = 3
start = (start + mod - 1) // mod * mod
print(*range(start, end, mod), sep=', ')
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

0, 3, 6, 9
worldly ruin
#

this has to be the output

vocal basin
#

oh, so odd then even

#

then you don't even have to round up

#

!d range

wise cargoBOT
#

class range(stop)``````py

class range(start, stop[, step])```
The arguments to the range constructor must be integers (either built-in [`int`](https://docs.python.org/3/library/functions.html#int) or any object that implements the [`__index__()`](https://docs.python.org/3/reference/datamodel.html#object.__index__) special method). If the *step* argument is omitted, it defaults to `1`. If the *start* argument is omitted, it defaults to `0`. If *step* is zero, [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError) is raised.

For a positive *step*, the contents of a range `r` are determined by the formula `r[i] = start + step*i` where `i >= 0` and `r[i] < stop`.

For a negative *step*, the contents of the range are still determined by the formula `r[i] = start + step*i`, but the constraints are `i >= 0` and `r[i] > stop`.
vocal basin
#

look into how step works

#

!e

print(*range(5, 15, 3))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

5 8 11 14
worldly ruin
#

i have no clue

vocal basin
#

range yields values that look like this:

start
start+step
start+step*2
start+step*3
...
#

until it reaches or goes past end

worldly ruin
#

right

vocal basin
vocal basin
worldly ruin
#

uhh

#

ok so lets try again

#

im trying to remove last comma

#
## Nelyginiu lyginiu seka

nmb = int(input())
numbe = range(1, nmb+1)

for each in range(0, nmb+1):
    if each%2 != 0:
        print(each, end=",")
for each in range(1, nmb+1):
    if each%2 == 0:
        print(each, end=",")
        
sour willow
#

wsg af

vocal basin
#

@rugged root IBM reference, afaik

#

"this page left intentionally blank" or something like that they used to do

vocal basin
#

but that, unlike sep, requires storing extra state

sour willow
#

did you ever use those tensor cores on your 1080 or something?

vocal basin
worldly ruin
#

i have to use for

vocal basin
#

!e

first = True
for i in range(10):
    if first:
        first = False
    else:
        print(end=",")
    print(i, end="")
print()
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

0,1,2,3,4,5,6,7,8,9
vocal basin
#

this is one of the ways

#

study how this works

#

and you can try to integrate it into what you have
(and adjust approriately)

sour willow
#

sup rabbit

vocal basin
# vocal basin <@98195144192331776> IBM reference, afaik

An intentionally blank page or vacat page (from Latin: vacare for "being empty") is a page that has no content and may be unexpected. Such pages may serve purposes ranging from place-holding to space-filling and content separation. Sometimes, these pages carry a notice such as "This page intentionally left blank." Such notices typically appear i...

rugged root
#

And that makes sense

#

But the file itself was not blank

karmic obsidian
#

hey hi guys

#

I hv some questions

#

recently Google contacted me to change the name of pypi project...
my project was named TensorFlow1 and they were requesting to change the name ...
I told them that I am open compensation do y'll think that it's right thing to do?
or what ?

#

I am confused

#

and btw when you search for Tensorflow on pypi... you get my module first in the results rather than the legit tensorflow

#

can anyone tell me what's the right thing to do?

rugged root
#

I mean

#

You will lose that fight

#

I'd just change the name and be done with it

rugged root
gentle flint
ionic jasper
#

Is it good ?

#

@gentle flint ?

#

@light nacelle

#

@amber raptor

gentle flint
#

@ionic jasper ?

ionic jasper
#

@narrow salmon

#

Is it good

gentle flint
#

STOP

#

pinging

#

everyone

#

jesus christ

ionic jasper
#

Sorry

narrow salmon
ionic jasper
#

This

gentle flint
#

no it's disgusting

#

happy now

ionic jasper
#

Oh k

#

I

stuck furnace
#

Hello πŸ‘€

#

I'm not sure I understand sorry.

#

Can you stop pinging people though please.

ionic jasper
#

Peace πŸ•ŠοΈ

somber heath
#

@obtuse mural πŸ‘‹

calm burrow
#

i gotta go see u later opalmist

toxic niche
#

hello

waxen barn
#

@op\

#

@somber heath can you help me with something

#

I am trying to transfer my system files from my samsung 980 pro SSD to my samsung 990 pro SSD

#

I wanna do it so I can take the 980 out so I get my 32 lanes for my gpu back

#

beccause rn since I have two SSDs it cuts the lanes in half and I am only able to use 16 at the moment

#

@somber heath @Mr]

#

@rugged root

wise loom
#

@marble breach how's the studying going?

marble breach
marble breach
wise loom
somber heath
#

@waxen barn This is a little outside my usual realm of experience.

marble breach
#

Gonna head out to my home study server looks like I may actually have some leave of study support since I have wasted about 6 hours

marble breach
waxen barn
#

?

somber heath
#

I'd ask in ot.

#

Or a hardware-dedicated server.

waxen barn
#

ot?

#

do you have one in mind?

somber heath
wise cargoBOT
wise loom
#

πŸ‘‹

#

it's all about the database

#

always has been

#

@rugged tundra ^^

wise loom
wind raptor
wise loom
wind raptor
#

When you have to read through that book, I see why πŸ˜›

#

99% of my tough bugs are found by stepping through the program line by line and making sure the things are working the way I expect.

forest zodiac
#

hello chris

wind raptor
forest zodiac
#

where did gaming Buddhist go

wind raptor
#

Rebrand

#

I don't game much any more

#

lol

wise loom
wind raptor
#

That other 1% is talking to my duck

wise loom
wind raptor
#

yup

forest zodiac
wind raptor
#

doesn't seem like you wanted that one

forest zodiac
#

found on linkedin

alpine crow
#

lmao

#

bro knows his worth

hollow perch
#

why pip is broken

wise loom
hollow perch
wise loom
hollow perch
wise loom
somber heath
#

@grizzled ruin πŸ‘‹

grizzled ruin
#

hello can i talk ?

obsidian dragon
#

!voice

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

wise loom