#ot1-perplexing-regexing

1 messages ยท Page 377 of 1

rough sapphire
#

There's a lot in Hunters that I see and it just doesn't feel realistic. It feels more for casual viewing as opposed to something more in-depth like Mr. Robot, Westworld, or generally just something.. better.

quaint rivet
#

i have mixed feelings on mr. robot

#

it was good, but the ending felt rushed.

wooden silo
#

I didn't see the ending yet, so please don't spoil it.

slate quail
#

@wooden silo yeah I'm just watching it for the first time and I'm loving it

quaint rivet
#

i wont spoil anything

wooden silo
#

Thanks.

quaint rivet
#

its a good show, for sure watch it

wooden silo
#

I watched like half of the last season.

slate quail
#

someone told me Mr. Robot was better than Person of Interest but it did not entice me similarly

rough sapphire
#

@quaint rivet Rushed? Definitely not rushed. Everything was definitely on purpose.

wooden silo
#

Person of Interest is more of a classical police procedural, isn't it?

quaint rivet
#

i cant really go into detail here

slate quail
#

in essence yeah

rough sapphire
#

It's hard going from Mr. Robot to anything else and expecting anything to stack up

wooden silo
#

So it's a bit of an apples and oranges situation.

rough sapphire
#

i honestly didn't get the hype for mr robot

#

bored me halfway through the show

quaint rivet
#

if you want to move to DMs id love to ask some questions i feel went over my head, or maybe i wasnt paying enough attention

rough sapphire
#

Sure, go for it

slate quail
#

they presented them as similar options because they were both had some thematic orientation at computing and subterfuge

wooden silo
#

It's a nice combination of concepts that appeal to me. Hacking, conspiracy, psychological, mystery, plot twists, etc.

slate quail
#

they were not similar options

wooden silo
#

@slate quail Yeah, for sure.

rough sapphire
#

@wooden silo those are all things i'm interested in, but the show still managed to bore me

slate quail
#

mostly I was just looking for an excuse to talk about person of interest which is my favorite show

rough sapphire
#

also i feel like the unreliable narrator trope was used wayyy too often to create plot twists just for the sake of plot twists

wooden silo
#

I think I watched one episode of Person of Interest, but I don't really like police procedurals too much. James Spader is great, though.

slate quail
#

spader...

#

that's Blacklist

#

Person of Interest is Emerson

wooden silo
#

Oh lol

#

.<

#

Sorry

slate quail
#

:P

#

those are VERY different shows (Robot and Blacklist)

wooden silo
#

Oh yeah, I watched one episode of each

#

Neither was my jam I think

rough sapphire
#

Blacklist was very much just a "I gots a person on my list. Ya gots to go kill 'em, capiche?"

slate quail
#

unfortunate but understandable

rough sapphire
#

Maybe there was a story in there, I have no idea

gentle moss
#

James Spader made Blacklist lovely

slate quail
#

Blacklist I think is best enjoyed as "we like James Spader let's let him say cool things"

#

everything else is irrelevant

rough sapphire
#

It's like anything Nicolas Cage is in

#

He doesn't actually act, he just plays as himself

gentle moss
#

i did quite like dembe

#

he was a cool character for how little he said

slate quail
#

who was I talking about last night that just acts as himself...

#

oh oh

#

Jim Carrey

gentle moss
#

i mean, he's a method actor

#

so it helps that he acts like a total cock all the time

#

he is apparently a nightmare to work with

#

not cage, carrey

wooden silo
#

Jim Carrey seems like a huge douche

slate quail
#

and then there's the polar opposite who is Johnny Depp who is never himself

wooden silo
#

I also seem to recall that he has some rather unscientific beliefs

#

Which is probably why Depp is the superior actor

slate quail
#

amen

gentle moss
#

yes but we are setting the bar pretttttttyyyyyy fucking low here

quaint rivet
#

carrey was the best part of the sonic movie imo, not that i went into that with high expectations haha

slate quail
#

side question, why did Adam Sandler make so many movies about a washed up and/or mentally challenged middle aged man who meets a beautiful woman and all his dreams come true?

wooden silo
#

A Sonic movie seems like the ideal context for an actor like Jim Carrey

rough sapphire
#

@slate quail Have you seen Adam Sandler?

undone berry
#

because people watch those movies

rough sapphire
#

He's pretty much got the same cast of friends in everything he makes

#

because we all empathize with the washed up mentally challenged middle aged man who would like to meet a beautiful woman.

#

looks around room for agreement

#

He's pretty much the emphasis of washed up

quaint rivet
#

nervous laughter

gentle moss
#

AND YET HE STILL MAKES STUFF

undone berry
#

he's had a few reasonable movies in the past few years

#

I think

rough sapphire
#

scratches head

gentle moss
#

AND PEOPLE STAR IN THEM

dense stratus
#

perhaps same reason Seth Rogan makes lots of movies about a dude that likes taking drugs

undone berry
#

Adam Sandler makes a shit ton of money still

slate quail
#

yeah what Bisk said! he's like... loaded

undone berry
#

don't see why he'd stop

slate quail
#

but

gentle moss
#

i think sandler just made huge bank and milked himself heavily when he was big

slate quail
#

you couldn't tell from looking at him

rough sapphire
#

Sure, and there's probably a market for bad movies

plucky ridge
#

Might be why he's STILL loaded, though

rough sapphire
#

Look at Sharknado

dense stratus
#

don't forget the Hanukkah song

rough sapphire
#

oh gosh, not that one

plucky ridge
#

Not sure if he's a huge frivolous spender or not

gentle moss
#

i mean it's not like Sandler pulled a fucking Love Guru

quaint rivet
#

billy madison is prob my fav sandler film

#

no real reason

plucky ridge
#

Happy Gilmore beats it for me

undone berry
#

anyway, Sandler has had good/ok movies recently - e.g Uncut Gems

rough sapphire
#

Yo, i will say that Rob Schneider appearances in his movies are epic.

undone berry
#

and there's a nother

dense stratus
#

How about Uncut Gems?

slate quail
#

Happy Gilmore ๐Ÿ‘Œ

rough sapphire
#

JOO CAN DO IT

undone berry
#

Uncut Gems and another movie from the last few years have been reasonably decent

gentle moss
#

and on the same note, Nic cage has some great movies too

quaint rivet
#

youre gonna die clown ๐Ÿ˜ฉ ๐Ÿ‘Œ

gentle moss
#

like.... like...

rough sapphire
#

@gentle moss Which ones, exactly... ?

#

hahaha

gentle moss
#

Con Air, Face/Off

#

uhhhhhhhh

dense stratus
#

Nice to see some of the funnier ones do serious acting roles

gentle moss
#

i quite liked the Gone in 60 Seconds remake

undone berry
#

Nic Cage has an Oscar

dense stratus
#

Love, love, love Melissa McArthy

gentle moss
#

Lord of War also another good one

rough sapphire
#

@gentle moss Aren't those like, 15-20+ years old though lol
Yes, Lord of War was the only one that came to mind

#

what was that movie where Rob Schneider switched bodies with that teenage girl. that was classic.

#

Anything recent outside of LoW? Not really, no

gentle moss
#

hm

#

well he is making that new one

rough sapphire
#

that new one

quaint rivet
#

i almost said freaky friday

undone berry
#

The National Treasure movies are pretty good for what they are

rough sapphire
#

I didn't think they were all that great tbh

gentle moss
#

yeah

#

the new one

undone berry
#

they aren't thrilling, but they're solid family friendly action movies

gentle moss
#

where Nic Cage stars as an older Nic Cage who is trying to get into acting but is constantly ridiculed by younger Nic Cage for being a shit actor

rough sapphire
#

@gentle moss I think Will Smith plays that one, and it's already been released

quaint rivet
#

anyone seen color from space? any good?

rough sapphire
#

Something about a clone or something

slate quail
#

was the clone raised in West Philly?

gentle moss
#

Cage would star as actor Nicolas Cage. The character is desperate to get a role in a new Quentin Tarantino movie while also dealing with a strained relationship with his teenage daughter. He also occasionally talks to an egotistical 1990s version of himself who rides him for making too many crappy movies and for not being a star anymore.

The Cage character is also under a mountain of debt and finds himself forced to make an appearance at the birthday party of a Mexican billionaire who happens to be a fan of the actor's work and secretly hopes to show him a script on which he's been working.

#

that's the new cage film

#

:D

rough sapphire
#

He whistled for an ice cream truck and when it came near, it had ice cream in the back and ICE in the mirror?

dense stratus
#

Cage was fairly okay in Moonstruck

gentle moss
#

Cage is informed by the CIA that the billionaire is actually a drug cartel kingpin who has kidnapped the daughter of a Mexican presidential nominee and Cage is subsequently recruited by the U.S. government to get intelligence.

rough sapphire
#

@gentle moss Sounds like a jokey version of Seven Psychopaths

gentle moss
#

man i fucking hype for this movie

#

especially if it comes with a commentary track

#

by nick cage

#

a movie about cage where he's yelled at by himself and then talks over the top of it

#

how much can you nest this?

undone berry
#

Does Cage think his movies are good - or does he sorta know they're crap?

dense stratus
#

Or what about Swordfish... No wait,that was Johnny Trev

rough sapphire
#

@gentle moss
Nicolas Cage yelling on screen

"So, right here I was told to yell... So I did"

#

Lord of War was pretty good

gentle moss
#

"And when I was playing me, I really had to feel that energy. Really hate myself for yelling at me."

opal timber
#

a movie about cage where he's yelled at by himself and then talks over the top of it
@gentle moss
so Face/Off? :p

dense stratus
#

WIkipedia says his Networth is $25 million. He must have done something right. Some people don't make that in a whole week.

gentle moss
#

oh never get him wrong

#

he's a hard working actor

dense stratus
#

Maybe he has to work so hard because he isn't all that good.. But they can't all be Christopher Walkin

gentle moss
#

he is credited as an actor 103 movies

rough sapphire
#

@gentle moss That's a weird way of spelling "He plays any movie he can, regardless of if it's trash."

pine vector
#

Lord of War is probably the best. Leaving Las Vegas was good too...

gentle moss
#

Lord of War was definitely better than i was expecting tbh

#

very memorable intro too

pine vector
#

Face/Off. ehh...lots of one-liners for sure, but it hasn't aged well. ;D

rough sapphire
#

"I want to take his face... off"

opal timber
#

lmao its such an absurd concept

gentle moss
#

HIS FACE...... OFF

pine vector
#

the "hate to see you go. love to watch you leave." is the best line in the whole movie. ๐Ÿคฃ

opal timber
#

I liked Next but I was also young when I saw it

pine vector
#

it asked too much suspension of belief. like merely swapping Travolta's face with Cage's, also simultaneously changed their body shapes. hehe

gentle moss
#

oh jesus it's reverse order

#

for a second i saw "DEADFALL" and fucking closed it

opal timber
#

rotten tomatoes has FACE/OFF at 92%

#

what a year that must have been

gentle moss
#

you've gotta take that shit with a pinch of salt for older stuff though

#

because stuff taken outside of the context of when it was released can gain cult status etc

#

which does ratings bumps

pine vector
#

for the time, it was a bit "esoteric" as a plot. which helped it stand out.

gentle moss
#

LORD OF WAR AT 32

#

jesus christ

pine vector
#

compared to other large budget films*

gentle moss
#

THE ROCK ranked above it

#

jesus

pine vector
#

horrible movie.

gentle moss
#

that list is pure RT dogshit

pine vector
#

at least ed harris redeemed himself after that. ๐Ÿ˜„

gusty oar
#

is there anybody know java

royal lakeBOT
#

Asking good questions will yield a much higher chance of a quick response:

โ€ข Don't ask to ask your question, just go ahead and tell us your problem.
โ€ข Don't ask if anyone is knowledgeable in some area, filtering serves no purpose.
โ€ข Try to solve the problem on your own first, we're not going to write code for you.
โ€ข Show us the code you've tried and any errors or unexpected results it's giving.
โ€ข Be patient while we're helping you.

You can find a much more detailed explanation on our website.

rough sapphire
#

nothing

#

just ignore that

undone berry
#

yeah

#

you completely took that out of context

plucky ridge
#

@rough sapphire @undone berry While I appreciate the concern for how things look on the server, I'd really prefer if you guys would leave stuff like that to mods and admins to handle

rough sapphire
#

yeah don't be pydis police

#

slaps myself

dense stratus
#

The tags are a nice tool, and perhaps quite useful especially for those without the patience to merely type in the directions necessary

undone berry
#

asking-to-ask is such a common thing everywhere on the internet, that typing out a friendly message every time gets tedious quickly

plucky ridge
#

Sure but it doesn't even have to be much

#

"Is there something specific you're wanting to know?" Then drop the tag

undone berry
#

I just mean that the tag here is probably fine - especially as Snof is here fairly often and knows people are largely friendly

plucky ridge
#

Sure but I'm a big proponent of sticking to habits. Repetition will make it so that it becomes second nature, even in places where you don't technically need it

wooden silo
#

@undone berry Regulars will learn not to do it, so you won't have to tell them repeatedly. Newbies deserve to be treated as individuals and not have standardized messages thrown at them. If you don't feel like typing out a proper message, don't feel obliged to, just don't make others feel unwelcome.

undone berry
#

The tag wasn't mine, and I generally do type out a message if someone askstoask- but I also don't actually help here too often. I just think a helper using the !ask tag doesn't make anyone feel unwelcome and saves them having to type out a message for the millionth time - I think the bot message is friendly enough that it shouldn't put anyone off

plucky ridge
#

Sure but it's a case of leading by example

wooden silo
#

It's impersonal. And while it might be the millionth time for the helper, it's the first time for the new person.

plucky ridge
#

We have users and regulars that use the tag as well, and those are the people we want to encourage to develop the good habits

wooden silo
#

And even if it's common in other programming forums, we get a lot of people here with no previous exposure to programming before.

solid pollen
#

Creating a 1115 new files commit is a bad idea, right?

#

Question being, why does this gitignore doesn't ignore files generated by the C++ part

blissful oracle
#

@pale onyx here?

pale onyx
#

Yup.

blissful oracle
#

ok

pale onyx
#

OK, so did that fix anything?

#

(Moving dump)?

blissful oracle
#

yes dump has data in . it now but the problem is i need data in the return statement

pale onyx
#

BTW, please ping me if I don't see a message - I've got this channel muted.

#

OK, now for the return.

#

I'll have a quick look.

blissful oracle
#

ok thanks @pale onyx, really appreaciate your help

pale onyx
#

Where are you calling that function from?

blissful oracle
#

viewdidload

pale onyx
#

OK.

#

How about self.jobs = self.tempJobs after dump(self.tempJobs)? Does that update it?

#

Also, it should be return self.tempJobs, I think.

blissful oracle
#

ok let me try

#

still empty

#

@pale onyx is there any other solution? That's why is suggested the use of a completion handler

pale onyx
#

Do you have a link which shows how to use it?

#

Also, could you post the updated code (only the bit changed - the async function)

blissful oracle
#

db.collection("sevices").whereField("uid", isEqualTo: uid)
.getDocuments() { (querySnapshot, err) in
if let err = err {
print("Error getting documents: (err)")
} else {

                for document in querySnapshot!.documents {
                    
                    let titleTemp = document.get("title") as! String
                    let categoryTemp = document.get("category") as! String
                    let priceTemp = document.get("price") as! Double
                    let descriptionTemp = document.get("description") as! String
                    let locationTemp = document.get("location") as! GeoPoint
                    let uidTemp = document.get("uid") as! String
                    
                    let a=Job(title: titleTemp, category: categoryTemp, price: priceTemp, description: descriptionTemp, location: locationTemp, uid: uidTemp)
                    self.tempJobs.append(a)
                    
                }
                 
            }
            self.jobs = self.tempJobs
            
    }
   
    
    return self.tempJobs
}
pale onyx
#

BTW did you try a print(self.jobs)?

blissful oracle
#

let me check

#

still zero elements

pale onyx
#

Can you try the method shown in the link I sent?

blissful oracle
#

yes let me see

pale onyx
#

And did you follow the video tutorial you sent?

#

If so didn't it work?

blissful oracle
#

i mean i try to do it that way but i have trouble using completion handler

#

do you know how to implement that @pale onyx ?

pale onyx
#

Might be your swift version.

#

Which do you have?

blissful oracle
#

11.3

#

x code version

pale onyx
#

Did you try the stackoverflow answer's method?

blissful oracle
#

trying to understand how it works

pale onyx
#

It's very simple.

#

You send a callback function to it.

#

And it calls that function just like you're calling dump()

blissful oracle
#

yes but how? would you able to give me an example?

pale onyx
#

OK.

#

I'll do it for you - but you are going to struggle to do anything if you cannot understand the code.

#

That's why I'm hesitant to.

blissful oracle
#

i'll try to understand the code

pale onyx
#

Try this first:

class SecondViewController: UIViewController {

    @IBOutlet weak var tableView: UITableView!
    var jobs: [Job] = []
    var tempJobs: [Job] = []

    override func viewDidLoad() {
        super.viewDidLoad()

        tableView.delegate = self
        tableView.dataSource = self
        createArray()
        dump(self.jobs)
    }

    func createArray() -> [Job]{

        let uid:String = "1FCeXERAkJfzyhwCR5ZeYbq3Gun2"
        let db = Firestore.firestore()

        db.collection("sevices").whereField("uid", isEqualTo: uid)
            .getDocuments() { (querySnapshot, err) in
                if let err = err {
                    print("Error getting documents: (err)")
                } else {

                    for document in querySnapshot!.documents {

                        let titleTemp = document.get("title") as! String
                        let categoryTemp = document.get("category") as! String
                        let priceTemp = document.get("price") as! Double
                        let descriptionTemp = document.get("description") as! String
                        let locationTemp = document.get("location") as! GeoPoint
                        let uidTemp = document.get("uid") as! String

                        let a=Job(title: titleTemp, category: categoryTemp, price: priceTemp, description: descriptionTemp, location: locationTemp, uid: uidTemp)
                        self.tempJobs.append(a)

                    }

                    dump(self.tempJobs)
                    self.jobs = self.tempJobs

                }

        }
    }
}

Not sure if it'll work, but it's a simpler solution.

blissful oracle
#

ok let me see

#

When I try to dump self.jobs in the viewdidload it says it doesnt have any element

#

@pale onyx

pale onyx
#

Try just jobs.

#

@blissful oracle

blissful oracle
#

ok

#

doesnt work

#

still empty

#

@pale onyx what should i do?

pale onyx
#
class SecondViewController: UIViewController {

    @IBOutlet weak var tableView: UITableView!
    var jobs: [Job] = []
    var tempJobs: [Job] = []

    override func viewDidLoad() {
        super.viewDidLoad()

        tableView.delegate = self
        tableView.dataSource = self
        createArray()
        dump(jobs)
        dump(self.jobs)
    }

    func createArray() -> [Job]{

        let uid:String = "1FCeXERAkJfzyhwCR5ZeYbq3Gun2"
        let db = Firestore.firestore()

        db.collection("sevices").whereField("uid", isEqualTo: uid)
            .getDocuments() { (querySnapshot, err) in
                if let err = err {
                    print("Error getting documents: (err)")
                } else {

                    for document in querySnapshot!.documents {

                        let titleTemp = document.get("title") as! String
                        let categoryTemp = document.get("category") as! String
                        let priceTemp = document.get("price") as! Double
                        let descriptionTemp = document.get("description") as! String
                        let locationTemp = document.get("location") as! GeoPoint
                        let uidTemp = document.get("uid") as! String

                        let a=Job(title: titleTemp, category: categoryTemp, price: priceTemp, description: descriptionTemp, location: locationTemp, uid: uidTemp)
                        tempJobs.append(a)

                    }

                    dump(tempJobs)
                    jobs = tempJobs
                    self.jobs = tempJobs
                    dump(jobs)
                    dump(self.jobs)

                }

        }
    }
}

@blissful oracle I'm just trying a few things out - I'm not familiar with self in swift, so I want to make sure this easy method doesn't work at all before moving to the other way.

blissful oracle
#

ok

#

ill try it

#

it gives me this

low shadow
#

how to not grep { or } , does ``` cat file | grep -v [}{]

#

work

blissful oracle
#

@low shadow

#

you are trying to see whats inside the file called "file" and then use a pipe to grep a specific word whithin the file

#

each operation you use is described in the man, so just do "man grep" and then look at its options

pale onyx
#

@blissful oracle

class SecondViewController: UIViewController {

    @IBOutlet weak var tableView: UITableView!
    var jobs: [Job] = []
    var tempJobs: [Job] = []

    override func viewDidLoad() {
        super.viewDidLoad()

        tableView.delegate = self
        tableView.dataSource = self
        createArray()
        dump(jobs)
        dump(self.jobs)
    }

    func createArray() -> [Job]{

        let uid:String = "1FCeXERAkJfzyhwCR5ZeYbq3Gun2"
        let db = Firestore.firestore()

        db.collection("sevices").whereField("uid", isEqualTo: uid)
            .getDocuments() { (querySnapshot, err) in
                if let err = err {
                    print("Error getting documents: (err)")
                } else {

                    for document in querySnapshot!.documents {

                        let titleTemp = document.get("title") as! String
                        let categoryTemp = document.get("category") as! String
                        let priceTemp = document.get("price") as! Double
                        let descriptionTemp = document.get("description") as! String
                        let locationTemp = document.get("location") as! GeoPoint
                        let uidTemp = document.get("uid") as! String

                        let a=Job(title: titleTemp, category: categoryTemp, price: priceTemp, description: descriptionTemp, location: locationTemp, uid: uidTemp)
                        self.tempJobs.append(a)

                    }

                    dump(self.tempJobs)
                    self.jobs = self.tempJobs
                    dump(self.jobs)

                }

        }
    }
}
blissful oracle
#

k, i'll try @pale onyx

#

3

  • 0 elements
    4
  • 0 elements
    1
    โ–ฟ 1 element
    โ–ฟ driver.Job #0
    • title: "Coder"
    • category: "Coding"
    • price: 10.99
    • description: "I develop IOS applications as a freelancer."
    • location: <FIRGeoPoint: (52.482900, 1.893460)> #1
      • super: NSObject
    • uid: "1FCeXERAkJfzyhwCR5ZeYbq3Gun2"
      2
      โ–ฟ 1 element
      โ–ฟ driver.Job #0
    • title: "Coder"
    • category: "Coding"
    • price: 10.99
    • description: "I develop IOS applications as a freelancer."
    • location: <FIRGeoPoint: (52.482900, 1.893460)> #1
      • super: NSObject
    • uid: "1FCeXERAkJfzyhwCR5ZeYbq3Gun2"
#

and

#

//
// SecondViewController.swift
// STSK
//
// Created by Snehdeep Singh on 02/02/2020.
// Copyright ยฉ๏ธ 2020 Snehdeep Singh. All rights reserved.
//

import UIKit
import Firebase
import FirebaseAuth
import MapKit
class SecondViewController: UIViewController {

@IBOutlet weak var tableView: UITableView!
var jobs: [Job] = []
var tempJobs: [Job] = []

override func viewDidLoad() {
    super.viewDidLoad()

    tableView.delegate = self
    tableView.dataSource = self
    createArray()
    print("3")
    dump(jobs)
    print("4")
    dump(self.jobs)
}

func createArray(){

    let uid:String = "1FCeXERAkJfzyhwCR5ZeYbq3Gun2"
    let db = Firestore.firestore()

    db.collection("sevices").whereField("uid", isEqualTo: uid)
        .getDocuments() { (querySnapshot, err) in
            if let err = err {
                print("Error getting documents: (err)")
            } else {

                for document in querySnapshot!.documents {

                    let titleTemp = document.get("title") as! String
                    let categoryTemp = document.get("category") as! String
                    let priceTemp = document.get("price") as! Double
                    let descriptionTemp = document.get("description") as! String
                    let locationTemp = document.get("location") as! GeoPoint
                    let uidTemp = document.get("uid") as! String

                    let a=Job(title: titleTemp, category: categoryTemp, price: priceTemp, description: descriptionTemp, location: locationTemp, uid: uidTemp)
                    self.tempJobs.append(a)

                }

print("1")
dump(self.tempJobs)
self.jobs = self.tempJobs
print("2")
dump(self.jobs)

            }

    }
}

}

#

this is the code, ive added some print statements @pale onyx

pale onyx
#

It worked?

blissful oracle
#

The first message is the output

#

no

#

3

  • 0 elements
    4
  • 0 elements
    1
    โ–ฟ 1 element
    โ–ฟ driver.Job #0
    • title: "Coder"
    • category: "Coding"
    • price: 10.99
    • description: "I develop IOS applications as a freelancer."
    • location: <FIRGeoPoint: (52.482900, 1.893460)> #1
      • super: NSObject
    • uid: "1FCeXERAkJfzyhwCR5ZeYbq3Gun2"
      2
      โ–ฟ 1 element
      โ–ฟ driver.Job #0
    • title: "Coder"
    • category: "Coding"
    • price: 10.99
    • description: "I develop IOS applications as a freelancer."
    • location: <FIRGeoPoint: (52.482900, 1.893460)> #1
      • super: NSObject
    • uid: "1FCeXERAkJfzyhwCR5ZeYbq3Gun2"
#

this is the output

#

of the console, as you can see the one in the viewdidload they dont have anything

pale onyx
#

I see why.

blissful oracle
#

Could you try to use a completion handler? I think thats the only way it can work

pale onyx
#

I'll have to watch the video and get back to you.

#

You could, of course, ask elsewhere in the meantime if you like.

blissful oracle
#

ok sounds good

#

i didnt found lot of people that knows swift

pale onyx
#

I don't either, TBH, but I think I know how to solve it.

#

It's worth a try!

blissful oracle
#

cool, i'll be waiting for the salvation ahaha, this is actual my third year uni project. It's an app that is like uber but provides different services such as different niches like plumbing jobs and other for the elderly people

pale onyx
#

Cool!

#

@blissful oracle Completion handlers seem simple - you pass a function to createArray which you call after jobs have been extracted. How about I "psuedocode" it and you fill it in? I'm not familiar with the syntax so it'll probably take me longer than you.

blissful oracle
#

yeah sure no problem

pale onyx
#

Probably will be a syntax error for the completion function I'm passing in:

override func viewDidLoad() {
        super.viewDidLoad()

        tableView.delegate = self
        tableView.dataSource = self
        createArray(
            {
                (result: Void) in
                    print("3")
                    dump(jobs)
                    print("4")
                    dump(self.jobs)
            }
        )
    }

    func createArray(completion: (result: Void) -> Void){

        let uid:String = "1FCeXERAkJfzyhwCR5ZeYbq3Gun2"
        let db = Firestore.firestore()

        db.collection("sevices").whereField("uid", isEqualTo: uid)
            .getDocuments() { (querySnapshot, err) in
                if let err = err {
                    print("Error getting documents: (err)")
                } else {

                    for document in querySnapshot!.documents {

                        let titleTemp = document.get("title") as! String
                        let categoryTemp = document.get("category") as! String
                        let priceTemp = document.get("price") as! Double
                        let descriptionTemp = document.get("description") as! String
                        let locationTemp = document.get("location") as! GeoPoint
                        let uidTemp = document.get("uid") as! String

                        let a=Job(title: titleTemp, category: categoryTemp, price: priceTemp, description: descriptionTemp, location: locationTemp, uid: uidTemp)
                        self.tempJobs.append(a)

                    }
print("1")
                    dump(self.tempJobs)
                    self.jobs = self.tempJobs
                    print("2")
                    dump(self.jobs)

                    completion()

                }

        }
    }
#

As you see we call the completion function after the jobs are done.

blissful oracle
#

ok let me see if it works

#

@pale onyx I am having trouble with syntax too since im learning

pale onyx
#

Ah right. Did my code give an error?

blissful oracle
#

yes few syntax errors

pale onyx
#

Ah I see how to fix it, I think.

#

Did you change the code at all?

#

Try this:

blissful oracle
#

nope, not yet. Sorry i'm still learning swift for the project even . thought they dont teach it in my uni

pale onyx
#
    override func viewDidLoad() {
        super.viewDidLoad()

        tableView.delegate = self
        tableView.dataSource = self
        createArray {
            print("3")
            dump(jobs)
            print("4")
            dump(self.jobs)
        }
    }

    func createArray(finished: () -> Void){

        let uid:String = "1FCeXERAkJfzyhwCR5ZeYbq3Gun2"
        let db = Firestore.firestore()

        db.collection("sevices").whereField("uid", isEqualTo: uid)
            .getDocuments() { (querySnapshot, err) in
                if let err = err {
                    print("Error getting documents: (err)")
                } else {

                    for document in querySnapshot!.documents {

                        let titleTemp = document.get("title") as! String
                        let categoryTemp = document.get("category") as! String
                        let priceTemp = document.get("price") as! Double
                        let descriptionTemp = document.get("description") as! String
                        let locationTemp = document.get("location") as! GeoPoint
                        let uidTemp = document.get("uid") as! String

                        let a=Job(title: titleTemp, category: categoryTemp, price: priceTemp, description: descriptionTemp, location: locationTemp, uid: uidTemp)
                        self.tempJobs.append(a)

                    }
print("1")
                    dump(self.tempJobs)
                    self.jobs = self.tempJobs
                    print("2")
                    dump(self.jobs)

                    finished()

                }

        }
    }
blissful oracle
#

This is . what I get

#

and also

#

this @pale onyx

pale onyx
#

Did you try the updated code @blissful oracle .

#

That should work.

blissful oracle
#

this is the updated code

pale onyx
#

No, just above.

#

@blissful oracle See it?

blissful oracle
#

ok, wait.

rough sapphire
#

lmao, why would they use an image with bent pins

#

jesus

sand goblet
#

Hahaha a dvi cable with bent pins

#

Do not want

blissful oracle
#

@pale onyx this is the new onw

#

one''

#

theres only one syntax error

pale onyx
#

Hmm, I'll have to look that one up.

blissful oracle
#

k thanks

pale onyx
bleak lintel
#

oh man swift

#

great stuff

blissful oracle
#

it worked man @pale onyx

#

thanks

pale onyx
#

Wahey!

#

First time using swift.

#

Not bad...

blissful oracle
#

lol congrats, what do you work on nowadays?

#

are you in uni>?

#

wait, how old are you

#

if you have any project that requires marketing count on me

pale onyx
#

Sure.

blissful oracle
#

I have a 10 million follower Instagram network

pale onyx
#

(I'd rather not have those there).

#

10 million?!

blissful oracle
#

and am an expert e-commerce marketer

#

@pale onyx yeah, i own various meme pages

pale onyx
#

Hehe.

#

Very cool.

blissful oracle
#

i know, it's for my e-commerce business

#

e-commerce is the key nowadays

pale onyx
#

Well you've got all the elements for success! All the best!

blissful oracle
#

yeah but facebook ads is hard

#

requires the right strategy . to generate sales

#

give it a try if you have some budget, search online "dropshipping"

pale onyx
#

Yup, I've seen stuff about it. I don't have any social media accounts, let alone successful ones.

blissful oracle
#

you are not on social media?

#

you miss a lot still

#

and you know that discord is still a social media like platform lol

rough sapphire
#

not really

pale onyx
#

Miss a lot of good and bad. Eventually I will if/when I need it.

blissful oracle
#

i mean . in a sense its not but in another it is

rough sapphire
#

i'm also not on social media, woohey

blissful oracle
#

what makes you guys not get on social media?

pale onyx
#

Nice. It's a personal choice, really.

#

Mostly not productive.

#

Unless you have a purpose for it - which I do not.

blissful oracle
#

true . productiveness decreases

pale onyx
#

You do, however.

blissful oracle
#

and depression increases

pale onyx
#

Yup, and that.

#

Many reasons.

blissful oracle
#

have you . guys ever went in the deep web?

pale onyx
#

Nope. Why?

blissful oracle
#

looks like an interesting place to be

pale onyx
#

And I've no interest in doing so.

#

Nah, not really.

#

Not that many people using it.

#

Only a few million IIRC.

blissful oracle
#

yes but you find some really skilled people there

pale onyx
#

Why would they market themselves on the deep web?

#

Not the kind of people you'd want to be working with, in most cases.

blissful oracle
#

they are mostly people with skills like hacking

#

I've always . been interested in cyber . security

#

so there you . can learn from the best

#

Teachers in the security course doesnt teach you .a lot appart from the laws

pale onyx
#

Hmm, eventually they will, surely?

blissful oracle
#

however it is illegal that part of the web so better not to get in there

pale onyx
#

It isn't

wide pine
#

the deep web is safe unless youre looking for some um

pale onyx
#

As long as you don't go to illegal sites.

wide pine
#

questionable things

#

i tried to go on the wikipedia once

#

interesting stuff

pale onyx
#

Wikipedia doesn't exist on the dark web.

blissful oracle
#

tell me more about your adventure ahah

#

@pale onyx i think it was a link / passage to get to somewhere else

#

a sort of fake wikipedia

wide pine
#

they have a wikipeedia thing

#

listing some sites

blissful oracle
#

what you can find in those sites?

rough sapphire
#

@pale onyx incorrect

#

they have multiple different versions of the hidden wiki

#

some more censored than the others

#

you can also access the wikipedia from an .onion

gusty oar
#

could we make good money via making mobile games

wide pine
#

if you are ea probably yes

gusty oar
#

hmm but no one will buy if i act like ea ๐Ÿ˜„

#

i don't have credit in users like ea ๐Ÿ˜„

blissful oracle
#

@pale onyx

#

inn the first there is the job but in the second isnt

#

why?

gusty oar
#

which language

blissful oracle
#

swift

gusty oar
#

ah got it

rough sapphire
#

Ally Sheedy was pretty dang cute in wargames Ngl

#

Just me or was she like really pretty

pale onyx
#

you can also access the wikipedia from an .onion
@rough sapphire Yup, but that's not the dark web. What I mean is that the Wikipedia isn't on the dark web, but you can still access it via the Tor network. In fact 93% (IIRC) users of Tor use it to browse the clear net anonymously.

rough sapphire
#

I was talking specifically about the Wikipedia hidden service

#

not accessing clearnet via tor routes

#

the former is, by definition, the "dark web"

gusty oar
#

why server icon changes constantly ๐Ÿ˜„

oak tangle
#

We wanted to have a cool icon for the Game Jam, but didn't have one yet

#

Now we do

plucky ridge
#

The Python server was peaceful. Until the Fire Nation attacked

oak tangle
#

I blame that bomb @tame terrace included in the banner.

plucky ridge
#

Thus begins the continued storyline of the various Python Discord branding

tame terrace
#

server icon changes is what keeps it interesting.

plucky ridge
#

Well that and the lovely staff

wide pine
#

yes

pearl horizon
#

top quality okhandbutflipped

gusty oar
#

ugh facebook sent me warning

#

some of my photo(actually meme about iphone and math) deleted from group by facebook

#

and i got banned from live

#

and group got warning too (group will deleted if i repeat that)

#

says "violating community rules"

#

i wonder what i violated

quaint rivet
#

COUNTRY ROADS

void salmon
#

indentation is usually the most easy to fix tho ngl

clear iris
#

COUNTRY ROADS
@quaint rivet
TAKE ME HOME

rough sapphire
#

@gusty oar stop๐Ÿ‘using๐Ÿ‘facebook๐Ÿ‘

#

or rather, stop letting facebook use you

stark prawn
#

The freaking card is currently listed for 300 euro on cardmarket :/

gusty oar
#

@gusty oar stop๐Ÿ‘using๐Ÿ‘facebook๐Ÿ‘
@rough sapphire ๐Ÿ˜„ you are true

low shadow
#

How to run cron job every time my computer start

rough sapphire
#

you should look into systemd units for that

#

they suit the job better than cron

gentle moss
#

and depending what you're doing you might want to look at bashrc

#

but probably what xx said

low shadow
#

this command isnt working

#
for i in { 1 .. 9535 }; do echo $i; done
gentle moss
#

@low shadow

#

echo "$i"

low shadow
#

well i got it now

#

someone posted to remove spaces

gentle moss
#

also don't put spaces in your range

low shadow
#

and it worked

gentle moss
#

:D

#

i think it's "good practice" to wrap something you want evaluated like that in quotes?

low shadow
#

ok

#

single quote doesnt work but double do

gentle moss
#

yeah, doubles

#

there's a difference between them

#

double quotes will interpolate stuff inside them

#

so with "$i" it will evaluate what i is

#

but '$i' will not evaluate i to its value and will just result in $i

#

there's a bit more to it than that but that's the general feel

low shadow
#

i know

#

i faced this problem before

#

so i know

lime gazelle
#

Do yall think this is a good enough laptop for coding?

#

Otherwise I'll wait and get a beefy XPS, but those cost 1.5k >

rough sapphire
#

any laptop is good enough for coding

#

as long as it can run vim

#

@stark prawn That seems like a weird edit

#

Considering Godzilla has had that ability for how long? Also, why is Godzilla even in MTG? Am I missing something here**?** ๐Ÿค”

stark prawn
#

It's a crossover where some of the monsters in the next set have alternate versions that are toho ip

rough sapphire
#

Huh. That's interesting

gentle moss
#

unrelated

#

but i always find the new godzilla movies kinda... weird?

stark prawn
gentle moss
#

like the original godzilla was about the very real threat and terror of nuclear war

#

but as that has fallen away

#

it's just gone weird

rough sapphire
#

@stark prawn That almost looks like a joke card

#

@stark prawn @rough sapphire I don't play MTG because I'm not a nerd like you guys, but doesn't this mean that corona card will be super rare and expensive?

gentle moss
#

i thought it was the dragon from that how to train a dragon thing

rough sapphire
#

@rough sapphire Yep

#

I haven't played in years.

stark prawn
#

People are already gouching it big time. It's probably overpriced right now though.

#

I don't actually see it being worth 300 bucks.

gentle moss
#

i don't play MTG but when i do play MTG it's Gwent

stark prawn
rough sapphire
#

nothing quite like a round of gwent

#

@gentle moss The only good Gwent was the one in 3. The off shoot game was trash.

#

off shoot?

gentle moss
#

i've only played 3

#

however i was thinking

#

"why the fuck is there MTG inside Witcher?"

#

then i was like

rough sapphire
#

@rough sapphire Yeah, the "Gwent" came they released. It was it's own thing

#

how could they have messed it up? assuming it followed the same mechanics

gentle moss
#

"why have i been playing MTG for 2 hours inside of a game that has tits?"

rough sapphire
#

It didn't have the same pace, and it generally wasn't the same feeling

#

i think going around and collecting the cards was one of the better parts of Witcher 3. quite a relaxing change of pace from killing monsters

gentle moss
#

i like the musical atmosphere of the game so i think i just got suckered in a bit

rough sapphire
#

It felt pretty good to get some of the higher up cards. Like Blue Eyes White Dragon Geralt and the others

gentle moss
#

i do get immersed quite well

#

all the ladies say so

stark prawn
#

So my laptop charger broke, I found one that fits, same volts but lower amps, is that safe to use?

gentle moss
#

ye

rough sapphire
#

yea

#

Probably, but I'd get a replacement ASAP

stark prawn
#

cool

gentle moss
#

maaaan...

#

i'm so garbage when it comes to that shit

#

"eh... 0.5amp over? it'll be fine."

stark prawn
#

It's like double.

gentle moss
#

so the new power block is 1/2 the amperage?

stark prawn
#

Yes

gentle moss
#

i mean...

#

the worst i can see happening is a hardware error due to lack of power and a hard crash

#

much like putting too small a PSU into a bigger machine

rough sapphire
#

Depending on where you're at, you should be able to order a charger and get it same day.

stark prawn
#

I've ordered one but delivery times have been unreliable these last few weeks.

#

Was just wondering If this would work without breaking the laptop even further for now.

rough sapphire
#

I personally wouldn't risk it, if that means anything.

gentle moss
#

i for one think it's a perfectly fine thing to do in terms of causing harm but may make the thing wobbly.

#

however, i am not a profess-

#

oh

#

:D

stark prawn
#

The thing is wobbly af already. Case is quite broken ๐Ÿ˜›

#

It's an old one.

lime gazelle
#

@rough sapphire Yes and no. You wouldn't code emulators on a chromebook, or bots on a chromebook

#

Or would you?

rough sapphire
#

I don't see why not

stark prawn
#

Why not?

rough sapphire
#

i have in the past perfectly fine

#

also @stark prawn using lower amperage charger is perfectly safe

#

all it does is provide less power

#

that's it

#

Though, if you're using a lot of power on the thing.. ๐Ÿ‘€

#

then the laptop just won't charge fast enough to keep up with the pace

#

so you might have to, idk, use sleep mode or something to charge

gentle moss
#

the way i was thinking about it is that most laptop chargers are over capable of delivering power based on the spec of the laptop

#

a Dell i7 and a Dell i3 needing the same amount of juice? please

#

and under powering something doesn't break it as much as make it not work proper like

#

in my old OC'd 6300 i had to swap out the PSU with some spare shit and i couldn't keep the clock speed up because shit would just fault all the fucking time

#

cpu misses a beat and everything goes to shit

quartz prawn
#

i love this servers icons lmao

thorn snow
#

Hey @dusky orchid, I got a rage picture for you

gentle moss
#

wtf

#

oh, spaceship hull

thorn snow
#

It's an Eve joke

rough sapphire
#

what you're looking at right now is riveting eve gameplay

gentle moss
#

i thought someone was actually going to repair the city of Hull

#

the heaving piece of shit that it is

thorn snow
#

I think all that is left there to do is a pod kill

dusky orchid
#

who'd bother with level 5

#

so many better options

#

unless they suddenly made the skill more useful since i've been away

lime gazelle
#

@rough sapphire Idk I feel 4 gigs of ram is too few. Although I'll admit, 200โ‚ฌ is stupid cheap.

#

I could always remove chrome OS and install arch...but still, 4gigs is too few.

quaint rivet
#

id argue 8 is too few

sand goblet
#

ChromeOS doesn't really need much RAM

#

it's super light

#

but of course it isn't designed to run normal applications

dusky orchid
#

lighter than most arch installs because some people cant help but be compelled to rice

sand goblet
#

I've revived decade-old laptops with chromeos

#

and those laptops weren't good when they were bought

lime gazelle
#

Idk, if I want 16 (and I do want 16) I'd have to pay 1k+

#

which is...too much.

sand goblet
#

Do you have to have a laptop?

dusky orchid
#

or just purchase an upgradeable laptop

lime gazelle
#

@sand goblet I have my work laptop, but I want my own too

#

Just to separate stuff.

#

And I don't have space for a tower

pine vector
#

on a budget, i'd look at refurbished. factory or factory authorized, as the quality of repairs is much better.

lime gazelle
#

I mean for refurbished I'd go with a macbook

#

They're not that expensive. Like

quaint rivet
#

macbooks pepeHands

lime gazelle
#

I mean they're good

#

they're not worth that much, but they're not rubbish

dusky orchid
#

agree sommersoft. i personally love direct refurbs, like with dell.

quaint rivet
#

also incredibly overpriced last time i looked

lime gazelle
#

Yes, that's why I said refurbished

#

They cost dirt cheap.

pine vector
#

not my cup of tea, but i don't knock people for getting macs. i definitely wouldn't buy a new mac though, personally. ๐Ÿ˜„

lime gazelle
#

A macbook pro 15'4 for 600โ‚ฌ

#

650*

sand goblet
#

that's not dirt cheap

lime gazelle
#

But still. That's dirt cheap.

sand goblet
#

that's just cheap for apple

lime gazelle
#

I mean

#

Yeah

#

It's almost a 60% discount

quaint rivet
#

i dont think i was knocking them, if that was directed at me

lime gazelle
#

Idk it seems very cheap. It isn't?

#

Also, I have no idea where to get a refurb dell

sand goblet
#

well they're old machines that people have cleaned up

#

they're not worth full price by any measure

lime gazelle
#

I'll save up and buy a shiny XPS or matebook pro

#

Or a tower, if I can fit it. That'd be nice.

dusky orchid
#

dell has a direct factory outlet

#

just search "dell outlet"

pine vector
#

i dont think i was knocking them, if that was directed at me

maybe i misunderstood the addition of pepe? sorry if that's the case.

lime gazelle
#

I think I'll pay a tad more for dell refurbs since I'm buying from italy

#

They don't seem to have an italian website

#

for that

quaint rivet
#

was knocking macbooks if anything

lime gazelle
#

or maybe not lol

quaint rivet
#

it doesnt affect me either way what people use

lime gazelle
#

I was wrong

dusky orchid
#

i personally wouldn't buy a latitude refurb

#

xps 13 is the sweet spot

pine vector
#

agreed. business machines are abused...

lime gazelle
#

Hmm

#

Only latitudes

pine vector
#

i'd go inspiron. XPSes lack ports, if you don't want to dock/adapter everywhere you go. ๐Ÿ˜‰

lime gazelle
#

I have an inspiron for work

#

it rocks

dusky orchid
#

they're pretty good for work yeah

#

they're just cheap lines that don't last super long

lime gazelle
#

Hmm...other good companies that sell refurbs?

#

Cause fuck it, I can get a nice latitude with 16 gigs for 600 odds

#

That doesn't sound too bad.

#

Also I want AMD not intel >:I

#

Fuck intel. Prof says they have backdoors in their CPUs.

dusky orchid
#

dell don't build amd systems yet

#

but they're coming

quaint rivet
#

did he say why he thinks that

#

ive never heard that

lime gazelle
#

GWhurpyShrug He didn't, but I believe him

#

Probably stupd.

dusky orchid
#

welcome to the age of misinformation lol

#

they don't build backdoors, but they're known to have a couple of more issues in their microcode than amd does atm

gentle moss
#

[15:59] Scragly: dell don't build amd systems yet
[16:00] Scragly: but they're coming

#

that or another mysterious brown envelope

pine vector
#

they're here... ๐Ÿ˜„

dusky orchid
#

are they

#

maybe i missed something

gentle moss
#

i think they ship some laptops now

#

and servers

dusky orchid
#

or maybe i'm looking too hard at only xps

#

because i love them

gentle moss
#

AMD's laptop chipsets must've been far too tasty to turn down

lime gazelle
#

GWgoaThinken okie frick. dell has no good refurbs. What else.

gentle moss
#

AMD APU's are the face of integrated graphics

dusky orchid
#

that doesn't work over here sommer

#

us models aren't here in aus sadkitty

pine vector
#

i would probably wait for the newer mobile Ryzens though. power consumption has been higher in the early models, from what i've seen.

dusky orchid
#

agreed

pine vector
#

@dusky orchid ๐Ÿ˜ฆ soz.

dusky orchid
#

looks like it's only inspirons though in your link

lime gazelle
#

No inspirons or xps in Italy >:I

dusky orchid
#

sad times

lime gazelle
#

Yes, truly.

#

I think I'll save and buy a new one

pine vector
#

thinkpads are another popular option. what OS are you wanting to run?

lime gazelle
#

Arch or Fedora

#

Also, no thinkpads in the refurb

#

Only latitudes

gentle moss
#

latitudes are not bad

#

imo anyway

#

well, the ones i saw in the late 00's / early 10's

dusky orchid
#

they're not bad, they're just not super amazing either

pine vector
#

k. just make sure you research the laptop model with linux support, before you finalize a purchase. driver issues abound...

dusky orchid
#

and if i ended up getting a laptop, i'd want it to replace my pc

pine vector
#

new lattitudes are fine. the refurbs, i would stay away from.

lime gazelle
#

I mean I want a laptop to replace my work one

#

keep work and downtime separated

#

Maybe have windows on my personal one so I can game more easily

rough sapphire
#

i recently gutted a latitude

#

it was ok for what it was at the time

#

only real issues with it were the trackpad and the weird touch bar media control thing

lime gazelle
#

Is following tutorials bad?

#

Cause there is a tutorial for a GB emu in C++ I think, and I'd like to follow it

#

but I know I wouldn't be able to do it on my own

opal timber
#

tutorials are helpful when you learn something from them

#

but if youre just copy/pasting code you're not likely to learn anything

rough sapphire
#

@lime gazelle have you written a chip8 emulator?

#

it's usually the starting point for writing your own emulator and has some great resources online

opal timber
#

I like to do tutorials then try to do something else related to the tut

rough sapphire
#

I followed this, it was pretty good as a resource

#

lots of code is omitted so you can't just blindly copy-paste, it does force you to think

#

(the important stuff is still there though)

opal timber
#

thats pretty nifty

#

did you complete it?

rough sapphire
#

i've written a few emulators, yeah

pine vector
rough sapphire
#

it all seems overwhelming at first but once you get into it it's just pure logic

lime gazelle
#

@rough sapphire I tried, gave up because I didn't know how to progress. Using rust didn't help, as I don't know the language

rough sapphire
#

haha talk about a crash course for a new language

lime gazelle
#

Yes

rough sapphire
#

yeah, i recommend using a language that you already know

lime gazelle
#

I think I'll pick it up again

#

Nah I feel in python it would sukck

rough sapphire
#

because then the difference between "is this a language error or logic error" gets much clearer

lime gazelle
#

I'm torn between C++ and Rust

#

I want to get into low level so why not with a CHIP8

lost radish
#

Sorry, but it didn't feel right to just outright DM you. I'm interrupting again.

lime gazelle
#

np

#

Cool!

#

I'll make a bot out of mine too, but I want to make an emulator first

lost radish
#

What kind?

lime gazelle
#

I'll finish the chip8 I started way back in August

#

Idk if I should continue with rust or switch to c++

#

I know neither

lost radish
#

CHIP8 looks technical. Fun. Hope all goes well. (And personally, I'd pick C++. I actually probably will, myself)

lime gazelle
#

You'll do it too?

#

I'll do mine, make super sure it works and then try to port it to the nds

#

Cause why the fuck not, I have one laying around, might as well use it

lost radish
#

I've read more about C++ than any other language. Besides Python. It just feels natural that that would be my next language.

#

Thought you meant C++. lol

#

Maybe I was looking at the wrong CHIP8 thing. I see what you mean now, about CHIP8 and emulation

lime gazelle
#

I don't understand

lost radish
#

nothing, its ok

lime gazelle
gusty oar
#

can anyone say am i right or wrong ?

#

24 mbps = 3 MBps = 3 MB/s

#

am i right ?

rough sapphire
#

"MBps" is not a thing but otherwise it sounds about right

#

my current connection is 20mbps and I get around 2.5 MB/s

gusty oar
#

yea seems legit

#

since mbps means megabit per second

#

and 1 byte is 8 bit :d

opal timber
#

yep thats right

#

companies often report speeds in Mb/s because the number is larger, even though everyone is more familiar with MB/s

rough sapphire
#

not entirely accurate

#

i mean, i'm sure that's a part of the reason, but we were using bits per sec to measure network speed far before the internet came about

#

because of the way modulation and demodulation works

gusty oar
#

because of the way modulation and demodulation works
@rough sapphire hmm seems logical

#

good info ๐Ÿ˜„

rough sapphire
#

also in the past bytes weren't always 8 bits

#

it's commonplace now, but there was a time where the common byte size was 4 bits instead

#

or was measured in octets instead

gusty oar
#

hmm 8 sounds more legit

#

i dunno why but

#

maybe we used to

undone berry
#

I think non-8 bytes still pop up occasionally

dense stratus
#

sounds like a nibble to me

quaint rivet
lime gazelle
#

GWsocksAngeryBob people on the C++ server say that Rust sucks.

fervent dock
#

which one are you on?

lime gazelle
#

together C and C++

#

Idk if they were trolling

#

in the lobby

rough sapphire
#

Yeah, looks like there is a type of hate from one community to another

lost radish
#

idk why, my mission is to learn as many languages as I can

lime gazelle
#

My mission is to..uh..be smart programmer

#

I feel dumb as fuck

fervent dock
#

which ones do you know already Hacky?

lost radish
#

You shouldn't. When you talk about your CHIP8 thing, I'm entirely lost.

#

I only started learning programming about 9 months ago, and it's not as if they're real languages, but Python, CSS, AutoHotKey, minor HTML

lime gazelle
#

I mean I never implemented it.

lost radish
#

Python would be the only one I feel comfortable saying I "know"

fervent dock
#

yeah, I haven't been doing Python for too long either, but it's the one I care about the most

lost radish
#

But I am able to work with existing PHP as well, albeit with more googling than I'd care to admit

#

I'm just resourceful, let's leave it at that

lime gazelle
#

all programming is googling

lost radish
#

lol truth

#

I also know English

lime gazelle
#

how did people manage before Google? GWgoaThinken

lost radish
#

Britannica? idk

lime gazelle
#

No seriously. How the fuck did someone write programs?

lost radish
#

@fervent dock I feel the same way. It's just so... easy. relatively speaking

lime gazelle
#

Like back in the day.

#

With no documentation and stuff

lost radish
#

Oh, programming. lol my bad

#

I have no clue

#

Listening to people talk about assembly is like listening to.. idk latin or something, for me

lime gazelle
#

same

lost radish
#

or any other low level lang

lime gazelle
#

But also they're fascinating

#

that's how stuff works

lost radish
#

xD tell me about it

rough sapphire
#

I'm gonna focus in low level languages

pine vector
lost radish
#

I tried learning C++ like a dozen times in my teens, but never got farther than an hour into the intro. But I remember a lot of the concepts and stuff, and math comes natural to me, so I think I got really lucky deciding to try Python when I did

lime gazelle
#

@pine vector I heard of it, yes, but never tried it

lost radish
#

You know what, I think I'll do that. I'll try reading up on C++ again

lime gazelle
#

@rough sapphire goodest of lucks!! I'll try too when I feel like it

lost radish
#

Been 10 years (at least), but what the hell

lime gazelle
#

rn I just wanna draw and have a fun time with the jam

rough sapphire
#

I'm reading 'The c programming language'

#

Started like 1 week ago

lime gazelle
#

@lost radish Honestly? Just choose a project and do it in C++.

#

Fuck reading.

rough sapphire
#

Good luck too Andrea

lime gazelle
#

Learn by doing

rough sapphire
#

I'm

#

The exercises are really good

lime gazelle
#

C sucks (idk)

rough sapphire
#

C is fine

#

Why do you think that C sucks?

lime gazelle
#

but C++ can do everything C can so you'd be more like... better off with C++

lost radish
#

I don't know the syntax yet. But that's how I learned Python. I followed a tutorial, and just started building a bot for a subreddit I mod in. (but the tutorial was for tic tac toe rofl)

lime gazelle
#

Idk if it sucks, but C++ has C compatibility so..

rough sapphire
#

Well, then you can write c code to run as C++ code

#

muahahaha

lime gazelle
#

Parkour!

lost radish
#

hardcore parkour

lime gazelle
#

But yes. Good luck! I'll focus on the jam and then I'll tackle rust

rough sapphire
#

The book is short, so it's not a big deal

lime gazelle
#

Oh and Pico 8, thanks sommersoft!

rough sapphire
#

It's good to know C because there are some interesting things that are done in it

pine vector
#

yw! hope you didn't have any plans this weekend. ๐Ÿ˜‰

lime gazelle
#

I wanted to draw

#

But I guess that will take a backseat

rough sapphire
#

Has anyone here read SICP?

pine vector
#

its a pretty cool project. i've only spectated on it, myself.

lime gazelle
#

@rough sapphire basically everything is done in C, that's partly why I wanted to learn it

rough sapphire
#

It's painfully hard

lime gazelle
#

sicp?

rough sapphire
#

yeah

lime gazelle
#

what's that?

rough sapphire
#

They used to use it as introduction to computer science in MIT

lime gazelle
#

@pine vector heck, now I need to fork out 20โ‚ฌ

pine vector
#

oh? i didn't know there was a cost associated...

lime gazelle
#

frick they have voxatron too

#

Should I get both?

#

Maybe I should do some research before spending money

pine vector
#

huh. i wonder if that's a new thing. i mean, i don't disagree with a developer getting paid for their work...at all. ๐Ÿ˜„

lime gazelle
#

Yeah, that's not a bad thing

#

I wish they offered a demo/community edition to try it out

#

But GWhurpyShrug I know how hard these things are to make

pine vector
#

the dev gives some pretty good talks (which is how i was introduced to it)

lime gazelle
#

research time!!

#

@fervent dock what other C/C++ server do you know of?

fervent dock
#

I wanted to recommend one, but it looks like they currently have no active invites

lime gazelle
#

oof well thanks anyway

#

I wonder how dosbox works.

frosty berry
#

MIT moved away from SICP and started teaching python instead years ago, and i read the teachers had been pushing for the changes for years before that, so not saying it's a bad book, a lot of people swear by it, but it might not be the best resource anymore

#

C is a nice language for being easy to learn, there is not much to it, it's much less complex than C++, not saying it's easy to learn, as there are subtleties, but there is not that much to learn.

#

and i'm not a C or C++ expert, but i know it's possible to write code that is valid in both languages, but behaves subtly different depending on which compiler you use

rough sapphire
#

Do you think i should take a intruductory course in CS or just go to the things i'm interested in?

undone berry
#

It depends on what your end goal is - personally I think doing something like MIT 6.001 is a pretty good choice

#

but its certainly not mandatory

frosty berry
#

it can be really useful to have some structure to your learning, and that doesn't prevent you from learning for your interests

rough sapphire
#

I want to go to compilers, architecture and etc

#

Not sure thought

frosty berry
#

you'll certainly want books on these specialized subjects if you really want to understand them, but the concepts are not easy to grasp, a good teacher can be really helpful.

rough sapphire
#

I need to learn it myself

#

Should i wait for university then?

#

I think i can ask for help in communities if i find myself stuck in anything that's too complex, no?

frosty berry
#

you don't need to wait, but it can be useful to go to university, is all i'm saying

#

you don't learn it all there anyway, there is just too much, but you get a good overview of the fundamentals

#

if you are able to keep focused on a subject for weeks and force yourself to persist when it becomes hard, without external obligations like school, then sure, you can certainly do without it, but a lot of peope fare better with more than just self discipline

rough sapphire
#

I think i'm gonna jump the introductory classes and go to architecture, Algorithms and Data Structures and the basics then

#

With introductory i mean the programming basics like recursion and etc

#

I i find that i can't understand a topic because i lack some understanding in another thing then i learn it

#

And school in my country is pretty shit in my opinion

#

So i will just review or learn the things to get into the university myself

#

Thanks tshirt

frosty berry
#

good luck ๐Ÿ™‚

gusty oar
#

how can we do "Fake News Detection Using Naรฏve Bayes Classifier"

#

anywhere tutorial

undone berry
#

you could ask in #data-science-and-ml - but that really sounds like it wouldn't be a successful project to me

#

unless your dataset wasn't relying on parsing news articles themselves

#

I guess I'm wrong

#

if IEEE published a paper about it

gusty oar
#

actually i found on 1000projects but

#

idk if its doable

undone berry
#

well, there's multiple papers on the subject - they aren't generally too difficult to read

gusty oar
#

hmm i downloaded this article now

#

i'll look thx ๐Ÿ˜„

#
news detection using naive Bayes classifier. This approach was
implemented as a software system and tested against a data set
of Facebook news posts. We achieved classification accuracy of
approximately 74% on the test set which is a decent result
considering the relative simplicity of the model. ```
#

its actually not bad

#

%74 accuracy

undone berry
#

I want to see the dataset for it

#

accuracy doesn't tell us much without more info about the dataset

gusty oar
undone berry
#

naive bayes in general isn't too difficult to grasp

#

if you step through the bayesian logic stuff slowly

#

trying to jump right in can be a bit confusing

gusty oar
undone berry
#

yeah, I'm reading the paper now

gusty oar
#

๐Ÿ˜„ okay

undone berry
#

their overall results are pretty good - although I always find it amusing if they could get better accuracy by just always predicting true

#

huh - my understanding of Bayes is apparently pretty rubbish actually - I didn't realise it was super relevant for NLP, but it is

gusty oar
#

yeah results are pretty decent

#

how they determine accuracy ? are they asking news staff if its fake ๐Ÿ˜„

undone berry
#

They don't go into too much detail about the dataset. Apparently it comes from Buzzfeed

#

classified as accurate or not

gusty oar
#

they can actually add satire websites like , worldnewsdailyreport

undone berry
#

thats the paper's source for the dataset

gusty oar
#

hmm good source for benefit

#

why they don't publish open project about that :d

#

i wish they did

undone berry
#

you can find random examples with a google search of naive bayes for fake news detection site:github.com

gusty oar
#

oh thanks ๐Ÿ™‚

pearl horizon
#

Word calendar? I've got an airplane calendar

grave phoenix
#

BuzzFeed News analysis
Yeah sure

neat salmon
#

What happened to your social distancing rules

#

I feel unsafe

#

const correctness have you washed you digital hands recently

lime gazelle
#

wait a second! Is celeste from the pico-8?!

rough sapphire
#

does this error out for anyone else?

solid pollen
#

Yep

gentle moss
#

ahhhhhhhhhhhhh facebook @undone berry

undone berry
#

What have they done?

gentle moss
#

"we're not banning political ads because if a politician wants to lie to everyone they should be allowed to."

undone berry
#

Ooof

#

Christ

gentle moss
#

i watched the deposition

#

that's literally their platform atm

#

political ads will be fact checked but not banned

undone berry
#

At some point they will be legislated. It'll just be done very very very shittily

gentle moss
#

i think twitter did it right

#

blanket political ad ban

undone berry
#

Yeah, I agree. Facebook are clearly just too greedy

#

At least they're open about being complete greedy uncaring fucks

gentle moss
#

their political ad revenue is hard to put a finger on

#

but it's not small

#

oh okay it's actually not that hard to put a finger on

#

2019/2020 spending on facebook was $800m

#

just political ads

undone berry
#

That also doesn't include ads masquerading as non political. So they're pretty flagrantly just grubbing after money at whatever cost

gentle moss
#

yeah

gusty oar
undone berry
#

I've got to resort to black coffee because there's a 30m queue for the coop

#

V sad

rough sapphire
#

same thing in Italy

#

1-2 hour queue in most supermarkets now

frosty berry
#

i just went to the supermarket (amsterdam), i hadn't gone in more than a week, they give a cleaned up cart to everybody now, want it or not, but there was more people in the shop that seems reasonable, despite rules to stay at least 1.5m appart, it was not always possible. and not everybody was really careful about it

undone berry
#

Practically everywhere here limits the number of people allowed in - so the queues outside take forever to get in, but inside is pretty quiet - to the extent that there are lots of staff just standing around

oak tangle
#

@frosty berry Yes, I share that frustration. There are still people trying to go with their families as well.

frosty berry
#

๐Ÿ˜ things seem not to be tooo bad in netherlands still, but if people aren't more careful, i'm not sure the current mesure are going to be enough to contain it

oak tangle
#

Things are pretty grim, if you look at fatality rates per week and compare it to a year or even two years (large flu epidemic) ago

#

However, our healthcare system isn't yet overrun

#

In part because our healthcare policies are different

fervent dock
#

I'm not sure at all why this happens - I went to a small local shop yesterday at noon and it was packed, there were massive queues at the tills

#

are people still trying to stock up?

rough sapphire
#

yes

oak tangle
#

Well, you want to make sure that you have enough pasta

#

20 kg of pasta isn't enough!

rough sapphire
#

pasta with tho sace

oak tangle
#

and rice, I need at least 100kg of rice

rough sapphire
#

what about wheat ?

oak tangle
#

and three trees worth of toilet paper

#

yeah, I could use some flour right now, but it's partly sold out

rough sapphire
#

does linux terminal supports emojis ?

oak tangle
#

that depends on the terminal emulator and the font you're using, but I haven't used one that does not support emojis

#

It's just that my current font has a limit range of them

rough sapphire
#

I am using noto sans mono

#

should i try pasting a emoji in it ?

#

๐Ÿ˜„

#

\๐Ÿ˜„

#

why unicode emoji not show up

#

\๐Ÿ˜„

frosty berry
#

the emoji completion plugin i use in vim in my urxvt config

#
URxvt.font:  xft:Monospace:pixelsize=15:autohint=true, \
             xft:Noto Color Emoji:pixelsize=12, \
             xft:Emoji One, \
             xft:Symbola
#

the part about fonts in my .Xresources

pearl horizon
#

For those who use Semantic Versioning in their software -- how often do you create releases? More specifically when during the initial development/alpha stage?

#

I feel like I should be bumping the version number for every little fix, or new feature merge. Should I really be releasing that much? I tend to in practice just build up a few small things, then release. Or when merging a larger feature, going for a minor release bump

echo grail
#

Hey guys, so, I'm using Streamlabs OBS for the first time, how do I make it so I only record part of my monitor? I don't want to record the whole monitor.

frosty berry
#

please don't ask in multiple channels

echo grail
#

It's okay. It got answered already.

#

Thanks though!

lone verge
#

Oh cool

#

OBS is pretty cool

summer vector
#

I just pasted an emoji on my powershell

#

And, whoop

lime gazelle
rough sapphire
#

they are tho

#

the laptops you get for that price are 2x as weak in performance