#programming

1 messages · Page 8 of 1

mild grove
#

I see it, but I dont know what it is lol

clear lodge
#

what do you mean by myspace vibe?

mild grove
#

I mean like it still looks like its from 1980 lol

#

IMO

clear lodge
#

its the font and the border

#

or borders*

#

have a look here

#

browse some sites

surreal bronze
#

Is good

clear lodge
#

find the major differences

mild grove
#

okay

#

sorry, had to step away for a second

#

About to have to get ready for work too lol

#

@clear lodge Any idea on how to make my scroll bar look better lol?

clear lodge
#

yes

#

hold on

mild grove
#

Also, yes. I am using sourced content for the scroll bar lmfao

#
  /* Customize the scroll bar track */
  .simplebar-track {
    background-color: #000000;
    border-radius: 25px;
  }
  
  /* Customize the scroll bar thumb */
  .simplebar-scrollbar:before {
    background-color: #292828;
    border-radius: 25px;
  }
  
  /* Customize the scroll bar thumb on hover */
  .simplebar-scrollbar:hover:before {
    background-color: #555;
  }
  
  /* Add a smooth transition effect */
  .simplebar-scrollbar {
    transition: background-color 0.3s;
  }

This doesnt seem to change anything within the scoll bar class

clear lodge
#
/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* track */
::-webkit-scrollbar-track {
    background-color: green;
}

/* handle */
::-webkit-scrollbar-thumb {
    background-color: blue;
}

::-webkit-scrollbar-thumb:hover {
    background-color: red;
}
#

replace the $vars with whatever you want

mild grove
#

okay, and I remove this from my html?

#

::

clear lodge
#

no, just copy this whole block

mild grove
clear lodge
#

oh yeah remove that

mild grove
#

okay

#

and change the var to whatever, and just place that class withing the same div I have for my scroll bar?

clear lodge
#

no you dont have to do that, the ::-webkit-foo already selects the scrollbar

mild grove
#

oh okay

#

Although, it doesnt seem to change anything lol

clear lodge
#

show code?

mild grove
#
  .scroll-bar::-webkit-scrollbar {
    width: 100px;
  }

  /* track */
  .scroll-bar::-webkit-scrollbar-track {
    background-color: green;
  }

  /* handle */
  .scroll-bar::-webkit-scrollbar-thumb {
    background-color: blue;
  }

  .scroll-bar::-webkit-scrollbar-thumb:hover {
    background-color: red;
  }```
clear lodge
#

remove .scroll-bar

#

refresh

mild grove
#

ahh

clear lodge
#

100px is a very wide scrollbarbtw 😛

#

oh its just mock

mild grove
#

Yeah I like to play around with it before I post it live lol

clear lodge
#

beautiful

mild grove
#

lmfao

clear lodge
#

😄

#

its very unique

#

haha

#

well there you go, now just make it nicey 😄

mild grove
#

I try to learn as much as I can before I post live lol

#

Thank you!

#

Looks so much better now lol

clear lodge
#

yes

#

maybe use the same width as the border around your picture

mild grove
#

yeah was thinking that, along with possibly making it shorter, but I'm not sure what id have to add to do that

clear lodge
#

the height of the white line will decrease as your page becomes 'taller'

#

its automatic

mild grove
#

ahh

clear lodge
#

you can probably add a fixed height but you may not want to do that, as this is an indication as to how much space there would be to scroll

mild grove
#

yeah

#

I get what youre saying

#

Here I'm going to make this live so you can see it

#

there its live

clear lodge
#

yeah looks good 😄

mild grove
#

Alright, I've invested almost too much time this morning on this lol

#

I have to get ready for work lol

clear lodge
#

glhf!

mild grove
#

Thank you for your help!

#

I will definetly be coming to you later if I have any issues, also if you have any ideas for the site feel free to dm me lol

clear lodge
mild grove
#

i know i know

clear lodge
#

hahah

mild grove
#

Its just a place holder lol

clear lodge
#

😉

mild grove
#

Still gotta figure out some things with that damn paragraph

#

Lmfao

brazen eagle
nimble cape
#

how to master a programming language

surreal bronze
#

Program in it

clear lodge
#

The support is pretty good, all major browers have partial support for it ( excl ios but whatever you know )! There are just some things like auto dark and light theme detections you cant use on it or something like that? I never looked into that

mild grove
#

Alright, after a long day at work I think I am ready to continue my programming journey

#

Guess I'll work on getting rid of those <br> tags lol @clear lodge

strange furnace
#

does anyone have a good tutorial information in explaining how to code ocr and export the desire info into excel

mild grove
#

@clear lodge you there?

#

or @surreal bronze or @vestal carbon or @brazen eagle

Question for you, do you think that adding a logo to my home page would be too much, or no?

#

I think it would take away from the astetic

#

imo

clear lodge
#

no, adding your branding clearly is a good choice. Idk what your logo looks like

mild grove
#

I'm just saying lol

clear lodge
#

top left in the nav is a good / usual place

#

if you prefer to display it in a more subtle way

mild grove
#

So put it within the navbar to the right of "Contact?"

clear lodge
#

I would get rid of that border around nav and put your logo to the far left

mild grove
#

okay I getcha

#

Lets see what the site looks like without a border on the nav bar lol

clear lodge
#

usually my nav consists of: branding ( logo ) - nav links on desktop, or a hamburger that expands into a menu on small devices

mild grove
clear lodge
#

see how most platforms do it

mild grove
#

Yeah

clear lodge
#

with some variation in exact placement but you get the idea

mild grove
#

Yeah logo to the left, nav to the right

#

New Zeland eh?

clear lodge
#

yep. Or branding - nav links in center - something else to the right ( a contact button for example )

mild grove
#

Zealand*

clear lodge
#

just have fun with the composition

#

well spotted haha

mild grove
#

I'm a ex-military gotta have them ⭐eyes⭐ lmfao

clear lodge
#

one thing you have to take into account is that your nav links will not all fit on a mobile screen

mild grove
#

So a hamburger

#

would be ideal

clear lodge
#

its gonna look funky if you dont implement a solution for that

#

for instance yes

mild grove
#

Okay

#

Now to create some branding lol

#

What are good dimentions for a logo?

clear lodge
#

if you want to use it in your nav, youre going to have limited space. So consider that

#

not too many details in your logo - it wont look good if your space is 50x50 pixels or whatever

mild grove
#

Okay

clear lodge
#

personally I think the razer logo looks terrible by itself , but even more so when its small like this

#

it this were my site, I would opt to not have this small logo in the nav but implement it somewhere bigger

#

nasa has a complex logo but see how they opted to implement it much larger. Works way better imo

mild grove
#

I get where youre going

mild grove
#

Working on updating the nav bar now, then when I'm done work. I'll probably start working on the Logo/Brand and see what it looks like

clear lodge
#

branding encompasses all of the websites "vibe" /design and how you present yourself / your services etc. Its a big and important thing to think about your strategy for this 🙂 the logo may be one of the last things to create, because if you're going to iterate through styles on your site, you might find the logo you make now wont fit well with any branding you decide on later. You could use a placeholder for the logo for now

mild grove
#

Hey, anyone understand nodejs, and react?

#

trying to run this, and it keeps giving me error messages

#

Note: This is all strictly from the nodejs library

vestal carbon
#

please read line 5 of the errors

mild grove
#

there is a file lol

vestal carbon
#

onedrive can probably be causing errors, can you try it outside of onedrive?

mild grove
#

Thats the thing, I cant seem to get to my desktop without running through OneDrive

#

(Installed via command line)

lyric mirage
#

Where do you use OneDrive?

Personal computer, or a school/college?

mild grove
#

Wait, I may have found the issue...

#

You see what I see?

vestal carbon
#

you're missing a folder

mild grove
#

mhmm

#

lmfao

vestal carbon
#

cd plaig

mild grove
#

yup

#

lmfao

#

I didn't even see that lol

#

Thanks for yalls help!

brazen eagle
#

Further proof that computers are stupid and could never take over the world

clear lodge
#

Jumping into react already 😅 good luck!

rich pine
#

Any idea how to make winPEAS listen to me and not output colors ?
I m trying to create my own parser for it since one provided in it's git repo doesn't work for one reason or another but dealing with color-encoding noise is nerve-wracking.

lyric mirage
#

Powershell?

# out foreground and background colour.

onyx merlin
lyric mirage
#

Or that

#

That seems easier.

onyx merlin
#

See if it works, I just did some googlin

lyric mirage
#

I was gonna suggest editing out the python colorama or termcolor

onyx merlin
#

It's Python?

rich pine
#

mate doesn't work I've tried it and forgot copying it over from another channel

#

.exe and .bat both output encoding noise with their respective nocolor enabled

lyric mirage
#

Isn't there a python script?

rich pine
#

hol up I might know what's fu- fricking with it however I doubt it's gonna work

rich pine
#

nope still doesn't work even when the env var is outta play

#

seems like there is a pattern to this beforementioned noise. I will just regex it and then process it how I wish.
However the fact that the notcolor option works this way is.......
it's meh
Also one other question. Any idea how supply two or more parameters to the suggested in-memory injection commands mentioned in the README.md?
I m rather asking somebody who's done it than "what ifs" I've already tried plethora ways and they didn't work.
Edit: yep sed is the way. Who needs tools to work as intended when you can fix them ;p
I'm most definitely NOT insulting winPEAS creator. Working or not, PEAS is one hell of useful software

lilac holly
#

I have an interesting question. lets say that I created a basic python C2 server and the machine that executes the payload which is a reverse TCP and connects to my C2. Now I want the client program to host a proxy server so on my local machine that is running the listener starts a local proxy server that I can for ex add to my proxychains.conf file so any traffic I use for proxychains gets proxied to the client and out from its side or internet if you will how will that be made in python the proxy part?

mild grove
#

Hey guys a few things. Firstly, I just recently bough a Flipper Zero ( Currently being shipped to my house ), I have also had a Raspberry Pi computer that I bought awhile back that is just sitting around in a box currently.

I was wondering if you guys could think of any projects I could start that includes these products. I understand that the Flipper Zero allows for scripts to be written and saved to the MicroSD card but what about the Raspberry Pi Computer? Anything I could use that for?

surreal bronze
hexed mural
# mild grove Hey guys a few things. Firstly, I just recently bough a Flipper Zero ( Currently...

one project i did with the raspberry pi was to make a website where i can control my LED strips. this also involved some minor electronics stuff tho. i then made multiple modes like color cycle, static, etc. was really fun cuz initially these LED strips could only be used with predefined colors on a shitty remote.
speaking of remote, cuz flipper has wifi capabilities you could make a script for it, to control the LEDs. then you dont need to open the website (or what ever you wanna do to control them)

i can search the tutorial that i used if you want (for the electronics setup and testing with PiGPIO).

lilac holly
#

alright so I'm in an instance of mysql. I'm running this set of commands: SELECT * FROM users WHERE username = 'admin'

This gives me what's in the screenshot. My question is, is there a way to go further into the database and into that admin. Or is this about as far as it goes? Like is 'admin' just a part of the table and not something that I can look into, the way I looked into 'users'?

#

and when I use SELECT * FROM admin I don't get anything, so I'm assuming that's what's going on

#

nvm I figured it out

#

something that was staring me in the face haha

onyx merlin
clear lodge
#

any Tailwind users in here? I'd love to hear your experiences / opinions on Tailwind vs modular CSS / SMACCS

brazen eagle
#

Tailwind seems to be a way for people to use CSS without knowing CSS 😉

clear lodge
#

yeah that is my thought so far. Written by CSS haters, for CSS haters. I'm doing a project with it now because apparently clients love it? I'm trying really hard to stay open minded and see what all the fuss is about but I can't exactly see a real benefit yet... but according to their own words:

Now I know what you're thinking, "this is an atrocity, what a horrible mess!" and you're right, it's kind of ugly. In fact it's just about impossible to think this is a good idea the first time you see it — you have to actually try it.

they have successfully baited me into trying it at least

#

but maybe its just Now I know what you're thinking, "this is an atrocity, what a horrible mess!" and you're right, full stop 😂

#

but Ill do it some more. Maybe its just a 'change is scary and stupid' knee jerk response 🥲

viral lagoon
#

Well written

wheat inlet
#

hey guys

#

any one can help me?

#
Traceback (most recent call last):
  File "---/server.py", line 5, in <module>
    conn.bind(ip, 666)
TypeError: socket.bind() takes exactly one argument (2 given)
#

i try to execult my server in python but...

surreal bronze
#

Have you researched the usage for bind()?

wheat inlet
#

i found the problem

#

i miss to put (())

surreal bronze
wheat inlet
#

tuple cast

surreal bronze
#

Yes, because thats the address format

wheat inlet
#

okok, thanks bro

brazen eagle
surreal bronze
#

what if you have some JS that uses the classname 🤔

chrome carbon
#

But in the end, it's just CSS with extra steps, as always!

#

And I hate using "inline classes", would rather use actual inline style in that case...

magic falcon
chrome carbon
clear lodge
#

Ive heard some people say that but I dont really get that argument though. Im defenitely biased so maybe thats the problem, but I dont see how learning tailwinds 6838384848 classes ( and that color palette system....? ) is easier than learning what I feel are already very intuitive CSS properties.

#

Why is 'text-red-200' easier than 'color: actualcolor' 🤔

#

Ill say I guess I can see how TW is somewhat convenient when you have a nice collection of reusable components. But I still find myself constantly wanting to going back to classic implementations

clear lodge
clear lodge
clear lodge
clear lodge
#

its certainly explicit yeah........ 😂 ( poking fun, if anyone thinks they should have this amount of styles on a checkbox they are insane in the first place, no matter the stack )

lilac holly
#

is that real?

#

I think I just asked a dumb question, because that class. there's no way

#

Just restarted Javascript today. Excited. Planning on sticking with it for a good while this time around

clear lodge
#

these are a multitude of classes, you can definitely do it, I think it's real, but..

#

oh lmao they use the same gif in the readme

clear lodge
#

what are you planning to use? A particular framework you have in mind or just doing some vanilla?

lilac holly
#

Haha yea just vanilla for now. Just get my feet wet and understand the concepts of programming better. I figure it would also help with stuff like SSRF and other web hacking stuff

#

I'm using this lol

#

Nothing too fancy

#

Also I do like Web Development as a hobby, so

#

Bro what is that cover

clear lodge
#

I think its great to get a really good grasp on vanilla before using frameworks

#

a mistake to jump into a framework before that imho

#

how old is that book?

#

web moves fast, haha

lilac holly
clear lodge
#

heheh

#

I suppose a lot of the basic knowledge is transferable even if its maybe outdated. Some tags we don't really use anymore for example, but it doesn't matter too much to understand how HTML works

#

the DOM remains the DOM no matter what 😄

lilac holly
#

Lol it's from like 2011

I know quite a bit about HTML5 and CSS3 already, so it's really for the Javascript

clear lodge
#

oof thats p old though hahaha

lilac holly
#

And yea I don't think a lot of it is much different. A lot of the same semantics as now a days

#

Why did I think HTML5 was brand new

magic falcon
clear lodge
#

yeah thats what I said 😉

lilac holly
#

It's fun

magic falcon
#

Underlying may be the wrong word - HTML5 is still being sent to the browser to render, the framework is usually kicking the HTML to the client based on templates, which can get horrifically (and stupidly) complicated (RE: ASP.NET 2.0)

clear lodge
#

especially when you get started with DOM manipulation in vanilla JS that will be useful Carlitoes

#

you encounter DOM manipulation a lot more in vanilla than when you use frameworks

magic falcon
#

Remember that DOM manipulation is typically done client side to alter presentation - it doesn't actually change anything on the server

lilac holly
#

Niiiice. Lots to learn. I'm readyblobfingerguns

brazen eagle
#

My advice would be start with vanilla, and only introduce a framework once it starts getting too complex

chrome carbon
brazen eagle
#

Yeah it's not magic, just upsetting levels of quackery

magic falcon
brazen eagle
#

I mean boost is mostly being integrated into the standard as well 😉

magic falcon
#

That's true. Can't wait for the Networking TS to finally be fully integrated

lilac holly
#

I've dabbled in Bootstrap but that's about it. I've always enjoyed the idea of creating my pages from scratch tho. But maybe I'll be interested in frameworks once I understand them more

clear lodge
#

You could try something like React and experience the difference in building a site / app vanilla vs react(ive). You dont have to do any manual DOM manipulation anymore which is nice but that can feel weird at first. You'll have to focus more on state, passing props around etc. Imo its a pretty different experience. If youre not used ( yet ) to creating reusable components it can be a little weird at first. You could try native web components ( is still vanilla ) before moving to React and co to bridge that a little bit without having to learn all framework specific shennanigans

#

Which are useful shennanigans* btw. But its a lot of extra you need to learn

lilac holly
#

Yea, see, I have an interest in learning all of that but it probably won't happen any time soon. Like I said, web dev is more of a hobby for me and the main reason I wanna become proficient in JS is to better understand programming concepts and to possibly give me an edge in web hacking

I don't plan on putting much more effort into web dev other than this book I'm studying about Javascript, since the main premise of the book is web development

#

So while I do enjoy web dev, I'm much more interested in knowing enough about it as a way to be able to break things haha

clear lodge
#

Yeah that makes sense 🙂

signal igloo
#

Hey ,
Is there anyone who has passed the scrum dev certification?

true pumice
signal igloo
#

i ll pass it in exactly 3 days

#

and i m wondering what does it contain

lilac holly
#


def main():
    banner = '''

▒███████▒ ▒█████   ███▄ ▄███▓ ▄▄▄▄    ██▓▓█████ 
▒ ▒ ▒ ▄▀░▒██▒  ██▒▓██▒▀█▀ ██▒▓█████▄ ▓██▒▓█   ▀ 
░ ▒ ▄▀▒░ ▒██░  ██▒▓██    ▓██░▒██▒ ▄██▒██▒▒███   
  ▄▀▒   ░▒██   ██░▒██    ▒██ ▒██░█▀  ░██░▒▓█  ▄ 
▒███████▒░ ████▓▒░▒██▒   ░██▒░▓█  ▀█▓░██░░▒████▒
░▒▒ ▓░▒░▒░ ▒░▒░▒░ ░ ▒░   ░  ░░▒▓███▀▒░▓  ░░ ▒░ ░
░░▒ ▒ ░ ▒  ░ ▒ ▒░ ░  ░      ░▒░▒   ░  ▒ ░ ░ ░  ░
░ ░ ░ ░ ░░ ░ ░ ▒  ░      ░    ░    ░  ▒ ░   ░   
  ░ ░        ░ ░         ░    ░       ░     ░  ░
░                                  ░            

    '''
    print(Anime.Fade(
        text=banner,
        color=Colors.green_to_yellow,
        mode=1,
        interval=0.100,
        enter=True,
        hide_cursor=True
    ))

    time.sleep(10)



main()```

```md
Traceback (most recent call last):
  File "c:\Users\Not7e\Desktop\main.py", line 104, in <module>
    main()
  File "c:\Users\Not7e\Desktop\main.py", line 34, in main
    print(Anime.Fade(
  File "C:\Users\Not7e\AppData\Local\Programs\Python\Python310\lib\site-packages\pystyle\__init__.py", line 561, in Fade
    Anime._anime(text, color, mode, interval)
  File "C:\Users\Not7e\AppData\Local\Programs\Python\Python310\lib\site-packages\pystyle\__init__.py", line 667, in _anime
    _stdout.write(mode(color, text))
TypeError: 'int' object is not callable```
#

How do I fix this

earnest swallow
#

Read the error and act accordingly

lilac holly
#

Ive tried

lilac holly
earnest swallow
#

You're probably sending an int as a parameter when you should send a function

true pumice
#

@lilac holly Have you read what that function's option takes?

#

Firstly, you're converting an integer to an integer

#

Secondly, it says the object of "int" is not callable

#

Remove int(1) and just replace it with 1

lilac holly
#

It say's mode take "any" idk what that means

true pumice
#

Can you send the module name?

#

And is it optional?

quasi turtle
#

properly debug your code see what it’s doing to determine roughly the issue, go to the line mentioned in the error or where you believe the issue may lie. probably the best thing to do as no one can see the module used

#

in detail

vapid cipher
#

Anyone know how I’d automate commands after getting a reverse shell?

distant kindle
#

if you are using python you could write something like that

#

and then use sock.send() to send commands

distant kindle
true pumice
wispy kestrelBOT
#

Gave +1 Rep to @hazy loom

lilac holly
lilac holly
#

why can't I favourite this channel

hasty moth
#

Hey, maybe someone in here knows what might be up with this. Someone using a go tool i wrote reported they get the following error during a Get Request my tool makes:

tls: failed to verify certificate: x509: certificate signed by unknown authority

They also reported they use PopOS. Could some security feature (i imagine something like application containers or something) cause this issue? Golang should use the system cert store by default, so if they do not have any problems in the browser with the cert, in theory the application should also not have a problem.

magic falcon
#

This is usually caused by a self signed certificate. The browser may be using a different cert store for validation than your application is.

hasty moth
#

Could it also be an out of date cert store? They said it was PopOS 20.4 and i'm not familiar when/how debian/ubuntu based systems update their cert store.

#

i assumed some kind of proxy might have added some kind of self signed cert, too, but they said they do not have any proxy set up on their system.

magic falcon
#

That should still be supported. If you can determine which cert is failing that will help you troubleshoot as well.

#

If PopOS was using a reverse proxy, you'd just point your package manager to use that as a source, and it would auto-resolve to the correct load balanced server.

gleaming ice
#

Had a question about some coding. I am creating for the first time a discord bot that will track player inactivity and send one warning after so many days and then after another set of day a final warning and kick.

#

now when I test it in replit or visual studio i get this:

#
    check_inactivity.start()
  File "/home/runner/Discord-Activity-Bot/venv/lib/python3.10/site-packages/discord/ext/tasks/__init__.py", line 398, in start
    self._task = asyncio.create_task(self._loop(*args, **kwargs))
  File "/nix/store/hd4cc9rh83j291r5539hkf6qd8lgiikb-python3-3.10.8/lib/python3.10/asyncio/tasks.py", line 336, in create_task
    loop = events.get_running_loop()
RuntimeError: no running event loop```
#

Now i took a look at my code and the sub routine and the run code for the sub routine where both correct but yest this tells me that it was not

hard sky
#

Did you start the event loop before running your bot ? If yes, then personally I don't see from where the error can be comming

gleaming ice
#

yeah the event loop is on line 23 and the bot.run is on line 72

#
check_inactivity.start()
bot.run(TOKEN)```
#

This is line 70 though 72

#

and the intital loop is

#
async def check_inactivity():
    for guild in bot.guilds:
        inactive_days_1 = guild.get_member(guild.owner_id).activity_days_1
        inactive_days_2 = guild.get_member(guild.owner_id).activity_days_2```
hard sky
#

As last possibility from my view, maybe there is a problem in the import, but if it was the case, I think the error message would be different.. Can you show your import pls ?

surreal bronze
#

Full code please

gleaming ice
#

I have figured out the mess in my code. Because I am learning how to code bots there is one question that you all may be able to answer. How do i allow for user commands to run bot commands

#

code:

#
async def on_message(message): #establishes the messaging and time the code to the parameters set 
    if not message.author.bot:
        last_seen[message.author.id] = datetime.now()

    await bot.process_commands(message)


@bot.command()
@commands.has_permissions(administrator=True)
async def set_activity_days(ctx, inactive_days_1: int, inactive_days_2: int): #Commands to set the inactive day for the 1st and 2nd days 
    """Set the number of inactive days for warning and kick"""
    member = ctx.guild.get_member(ctx.guild.owner_id)
    member.activity_days_1 = inactive_days_1
    member.activity_days_2 = inactive_days_2
    await ctx.send("Activity days set successfully!")

@bot.command()
@commands.has_permissions(administrator=True)
async def set_extended_absence(ctx, member: discord.Member, extended_absence: bool):
    """Set the extended absence status for a member"""
    member.activity_extended_absence = extended_absence
    await ctx.send(f"Extended absence status for {member.display_name} updated successfully!")```
surreal bronze
#

How do i allow for user commands to run bot commands

#

Just remove the has_permissions wrapper

gleaming ice
#

okay, will do. Like I said I am completly new at this and learning as well as taking notes. but just to make sure the command to access inactive days and would be something like this "!inactive_days_1, inactive_days2, and extended_absence as the user bot commands to configure the code? like I said I am just learning and wanted some practice so forgive me for sounding like a complete newbie

surreal bronze
#

it would be !set_activity_days

gleaming ice
fiery mauve
#

Who knows Java programming?

magic falcon
#

You will get a better answer to your question if you just ask your question

vapid cipher
#

Trying to automate metasploit. I’m using a script that generates a resource file and runs msf with the resource file. However, im now stuck at the meterpreter session. How do I issue commands to the meterpreter as it doesn’t receive commands from the resource file?

wraith tulip
#

I am having trouble extracting substring from a string with delimiter using sed, below is the origional string format:
This is/a testing string/with bracket (and|vertical slash)/filename (100).extension
Below are the cmd i use to extract the last two items:
file_name=`echo $str | rev | cut -d '/' -f 1 | rev` last_folder=`echo $str | rev | cut -d '/' -f 2 | rev`
Below is the cmd I use to remove the file name from the string:
site=`echo $str | sed 's#'"\b$file_name\b"#""'#gi'` | sed 's#'"/"*'$##'
But when I try to use the same format to remove the /with bracket (and|vertical slash) part, it isn't removed.

dense thistle
whole yacht
ember ridge
wispy kestrelBOT
#

Gave +1 Rep to @hazy loom

amber raven
#

hey im learning python over the summer, and im trying to make this rock paper scissor game. but when input my option, nothing happens and the exit code is 0
`
import random

choices = ["rock", "paper", "scissors"]
computer = random.choices(choices)
seperator = ","
player = input("Rock, Paper or Scissors?: ")
if player not in choices:
player = input("Rock, Paper or Scissors?: ").lower()

if player == computer:
print("you chose: ",player)
print("computer chose: ",seperator.join(computer))
print("It's a draw!")
elif player == "rock":
if computer == "paper":
print("you chose: ", player)
print("computer chose: ", seperator.join(computer))
print("You lost!")
elif player == "paper":
if computer == "scissors":
print("you chose: ", player)
print("computer chose: ", seperator.join(computer))
print("You lost!")
elif player == "scissors":
if computer == "rock":
print("you chose: ", player)
print("computer chose: ", seperator.join(computer))
print("You lost!")

elif player == "rock":
if computer == "scissors":
print("you chose: ", player)
print("computer chose: ", seperator.join(computer))
print("You won!")
elif player == "paper":
if computer == "rock":
print("you chose: ", player)
print("computer chose: ", seperator.join(computer))
print("You won!")
elif player == "scissors":
if computer == "paper":
print("you chose: ", player)
print("computer chose: ", seperator.join(computer))
print("You won!")

`

clear lodge
#

I'm not a python dev so Im just guessing a bit here ( not too familiar with python ). I think you need random.choice(choices) perhaps instead of choices ( just reading the docs, that return a list whereas .choice() returns 1 element

#

also I think you're missing a .lower() in this top line:

player = input("Rock, Paper or Scissors?: ")
if player not in choices:
    player = input("Rock, Paper or Scissors?: ").lower()  

if you input Rock now, it would fail I think because the input isnt lowercased

#

but . I think thats a minor side issue for now

brazen eagle
clear lodge
#

life is harsh

#

😉 whaha

brazen eagle
#

the prints for what you and the computer chose only need to be done once

#

you'll probably want to create a function to determine win/loss, then report the results of that

amber raven
#

ahh ty guyss

wispy kestrelBOT
#

Gave +1 Rep to @brazen eagle

true pumice
surreal bronze
#

sigh @magic falcon

obtuse crown
#

I have hints also

#

But don't know how to adjust these things

magic falcon
#

Do you really think that we wouldn't notice you just asked in a different channel? You were already told that we can't help you with class projects.

obtuse crown
#

Oh

#

Sure

#

I can't understand it

#

My bad

magic falcon
#

Then talk to your instructor

#

If you don't understand what you need to do for the project, the instructor is your best source of help.

obtuse crown
#

But he is not helping us

#

So that's why I asked you guys

magic falcon
#

In many schools, asking for help from the internet like this is considered cheating.

obtuse crown
#

Ahhh

#

Ok ok

#

Don't tell me

#

But I'm university student not school

magic falcon
#

University is a type of school.

obtuse crown
#

Sure

magic falcon
#

I would advise you to stop asking here, and go ask the instructor.

obtuse crown
#

I also said sure

#

So why are you arguing with me

surreal bronze
obtuse crown
#

I also said it's my bad I can't understand this

magic falcon
#

and, it's a reference to the verification of the solution. So, a hamiltonian graph problem may have an optimal solution that was found quickly by chance. But verification of the solution requires a complete state space exploration

#

In computational complexity theory, a problem is NP-complete when:

It is a decision problem, meaning that for any input to the problem, the output is either "yes" or "no".
When the answer is "yes", this can be demonstrated through the existence of a short (polynomial length) solution.
The correctness of each solution can be verified quickly (na...

surreal bronze
#

interesting, say you found an algorithm for it - can you ever actully prove that it is the most optimal without knowing if a more optimal algorithm exist?

#

and how can we know for sure if a more optimal algorithm exists

magic falcon
#

it depends on how you can categorize the problem

#

is it reducable to another known problem type? What is the asymptotic analysis of the algorithm?

#

As a comparison, you can look at the naive matrix multiplication problem compared to strassen's algorithm

surreal bronze
#

If you had a problem that you could decompose into 2 smaller problems, and one of thoes problems was another known type with O(N^2) - then am I right in saying the overall problem could not be more efficent than O(N^2)

magic falcon
#

yes, worst case scenario - what's the time spent in each algorithm? what's the dominating part ofo the overall implementation? that will determine big-O

lilac holly
#

hi

old lodge
#

how can I program a tool that finds subdomains using python

royal bay
#

Regex

cursive orchid
inland hazel
prisma prairie
#

Does anybody give advice for improving Python from beginner to the next level?

brazen eagle
#

Practice, practice, and practice more

#

Also learn to write unit tests

hard sky
#

You can begin with little exercice like find a word in a table etc... and then do project (create a calculator with interface, create a file modificater etc...), You can ask ChatGPT to give you exercice/project of different level and then ask him to explain/show solution.

glass tree
#

Which programming language should I start with to start ethical hacking journey?

#

Is programming languages are most used and why?

#

Can anyone pls help me?

hard sky
#

Personally I think Python,Javascript and C/C++ is good; python for made/undesrtand some scipt, JS cause lot of web page are made with it, and C/++ to understand low level programming, understand how memory is managed etc...

raw bay
#

for quick results python, when you want to dig deeper, id go for c and asm

magic falcon
true pumice
wispy kestrelBOT
#

Gave +1 Rep to @magic falcon

true pumice
#

Hm?

glass tree
glass tree
magic falcon
glass tree
#

Then do you recommend having a besic knowledge of networking?

surreal bronze
#

I personally would

royal bay
#

Cisco 🙌

inland hazel
#

does coding require programming?? /joke

surreal bronze
#

yay it worked

old lodge
surreal bronze
#

Testing indivual parts of source code

brazen eagle
inland hazel
#

we do a little test driven development

glass tree
#

Is Html or Css strictly needed for Ethical hacking or pentesting??

#

Or just basic knowledge of it can be inportant?

wraith latch
#

Knowledge of scripting languages can be helpful but any over the other isn't strictly needed. The examples you mentioned are used for webpage/webapps and might not be so relevant when your target doesn't use any of those.

lilac holly
#

Is there a way to just completely disable my lockscreen? So that when I boot the computer up it wont ask for a password/pin itll just start. For windows 10 / 11

#

I tried through the registry

clear lodge
#

kinda unrelated but the github homepage is kinda cool. I accidentally landed on it, one of those sites you use all the time but never seen the homepage 😂

#

the dsign is fancy but all the animations are a little annoying though

#

looks spiffy, little annoying to use

wraith latch
dense thistle
#

hello!
can i achieve the same thing in python3 as in python2?

#

seems like the new print function removes non printable characters

upper otter
junior jacinth
#

Good day to you 👋🏽 this job is my passion.

wispy kestrelBOT
#

Gave +1 Rep to @upper otter

upper otter
#

np

royal bay
#

Hi talented people, curious here. Iv written client and server side reverse shell in python today. Can i use this on tryhackme?

wraith latch
#

Only those you have permission to "attack"

royal bay
wispy kestrelBOT
#

Gave +1 Rep to @wraith latch

magic falcon
royal bay
magic falcon
true pumice
#

Complete the task how you want to.
As long as you get the correct answer and understand the theory, it's fine.

It is up to you how closely you follow a room, but if you constantly take alternative paths and ignore the room content, that's on you for not learning I'm afraid:(

It is important to note: the tryhackme rooms are not a playground for testing attacks that are not specified in the room you are completing. Please do not boot rooms to deploy malware, viruses, perform denial of service attacks or anything of the sort. This is against our terms.

royal bay
wispy kestrelBOT
#

Gave +1 Rep to @true pumice

lilac holly
earnest swallow
#

Why aren't you using an IDE?

tardy spire
#

why dont you use another IDE ( visual studio code ...)

upper otter
#

You probably have a syntax error in your code, idk what php syntax is. Besides that you should check mysqli_query’s return value

surreal bronze
#

Sorry we can't help you with school work, please ask your teacher - it's their job 🙂

verbal forge
wispy kestrelBOT
#

Gave +1 Rep to @upper otter

tardy spire
#

what do you mean

magic falcon
#

Do not ask for help with coursework or exams. Your first line of help with anything school related should be the instructor.

magic falcon
verbal forge
tardy spire
verbal forge
#

the problem is on $data1 while loop

tardy spire
#

nice

granite lynx
#

i am weak in programming part

#

should I focus on programming more?

earnest swallow
brazen eagle
lilac holly
hollow sorrel
lilac holly
granite lynx
#

its never enough

hollow sorrel
tranquil flame
lilac holly
#

yo guys!!!

#

i just made such a silly game!!

#

dont ya think?

#

theres the code to the game!

#

such a silly game

#

isnt it so cool!

tranquil flame
lilac holly
#

kk yeah lol

magic falcon
#

You sure you want to post some malicious code?

#

@lilac holly

lilac holly
#

💀 💀 💀
anyone with 2 braincells can look at that and see its malicious lmao

#

also btw juun,

magic falcon
#

There is some person out there who doesn't know anything, and WILL run it because they dont' know better.

lilac holly
#

rules say nothing abt malicious code 😉
lmao but abt malicious viruses

magic falcon
#

Rule 17.

lilac holly
#

not misleading whatsoever 💀 i literally said funni haha game so silly

#

its not like i sent it as executable

magic falcon
#

Definitionally, saying "haha its silly" is deceptive. Because it's not silly, it's a malicious snippet.

lilac holly
#

LMAo😭 😭 😭

brazen eagle
lilac holly
#

lmao

#

rules say no malicious FILES or VIRUSES

#

i sent a piece of code that deletes kernel32 if you get a question wrong lmao
its so simple that a non coder could read it and see its bad.
also juun said someone could be dumb enough to copy and paste it and run it...
but you need a python IDE to do that.
and if you have that, YOU WOULD BE ABLE TO READ IT LMAOOOO

#

so no, it was not deceptive whatsoever.

true pumice
lilac holly
#

just sayin🤷‍♂️

true pumice
#

Did someone spike your cheerios with sugar or something

lilac holly
#

yes...

#

im on a shugar high😩

magic falcon
#

Last warning, stop trolling.

true pumice
#

I’ll amend the rules to include posting malicious code.

You would be surprised with how many people run files without actually checking

#

Even if they have the IDE’s installed haha, welcome to Cyber Security

lilac holly
#

oop didnt mean to reply to him

#

it would be entirely diff if it was a file

magic falcon
#

It woudl be exactly the same if it was a file.

true pumice
#

It would be, but we also have to follow the terms of service written by Discord

#

Discord doesn’t allow the promotion or sharing of malicious code, following the terms of service stops our Discord from getting in trouble :)

lilac holly
#

oh yeah, I entirely get that.

lilac holly
#

also I haven't been trolling at all this entire time.
ive just been explaining that what i did was not against your rules.

#

all i did was share a silly piece of code which was basically computer russian roulette

true pumice
#

We appreciate it — I hope you can see it from our point of view, especially as you’re not the first person to send code like this here and say it wasn’t against the rules (which is why the rules exist*) 🙂

We would appreciate it if you could refrain from sending anything malicious, I’ll look to updating the rules later tonight

lilac holly
#

ye sure ofc

true pumice
#

Cool thanks blobfingerguns I appreciate you for understanding 😎

brazen eagle
tranquil flame
#

On another note, CS50 is a wonderful CS course free from Harvard. I'm taking it right now and would recommend it to everyone.

brazen eagle
#

Is that like cs100 for absolute beginners?

tranquil flame
untold ferry
#

when should I learn programming for hacking?

soft ice
tranquil flame
brazen eagle
tranquil valley
wraith latch
# tranquil valley Do you think freecodecamp is a good starting point?

I know you didn't ask me, but feel I can add some input.

It all depends on what type of learner you are (you may find that you fit in multiple categories).
The 4 most predomenant learner types are:
Visual
Auditory
Read/Write
Kinaesthetic

I'll include a link to a resource I find explains these types the best https://web.wlu.ca/learning_resources/pdfs/Learning_Styles.pdf

Once you've identified what learner type(s) suite you best, you can then start looking around for learning resources that nurture that. I think we can all agree that THM suit kinaesthetic learners very well and that YouTube channels like John Hammond's suit Visual learners very well.

Lots of resources out there to teach us a thing or two about the subject we're interested in 🙂
The pinned messages contain some resources people have collated before

tranquil valley
#

Thanks for your explanations! @wraith latch

wispy kestrelBOT
#

Gave +1 Rep to @wraith latch

surreal bronze
brazen eagle
surreal bronze
#

Sure, you can still have a preference but there isn't an scientific evidence to backup the actull efficiency

#

But if it makes learning more enjoyable than definitely

wraith latch
brazen eagle
#

well, there are some styles that I have trouble dealing with 🙂

tranquil flame
#

Went back to my old code for creating a pyramid and XD for (int j = 0; j < n + i - n + 1; j++)

brazen eagle
#

So i+1

tranquil flame
# brazen eagle So `i+1`

Exactly but instead of sitting down and figuring out what I was doing old me just experimented and brute forced it, then probably said "if it works it works".

untold ferry
#

Week 0 of CS50 feels so boring...

daring oyster
magic falcon
daring oyster
forest delta
#

Could somebody help me out with the installation and set up of the Streamify tool by Kit4py?

feral tree
#

hi guys ... is there anyone here that knows a bit about PHP

clear lodge
#

ask your question

feral tree
#

do u mind going into voice channel?

clear lodge
#

I wont. Im just letting you know that people are going to be more likely to help you if you just post your question 🙂

magic falcon
#

I don't have time to go into voice, but if you just ask your question you'll likely get more answers from the community than the 1 or 2 opinions from a voice chat

feral tree
#

ok but because i wanted to include some screenshots

clear lodge
#

you can post screenshots here

feral tree
#

in Natas game of ovethewire site in here

#

when u show up the source files u get this help

magic falcon
#

THM has some rooms on PHP local file inclusion, maybe you could try those and see if they make sense to you

feral tree
#

i know what is LFI but i am asking a pure php programming question

magic falcon
#

Your question is largely unrelated to PHP. It's a web request question.

#

How the server handles the request is what you're after, and I know i've seen very similar content in one of the CTF rooms

feral tree
#

ty so much

brazen eagle
#

Yeah it's a common theme

paper lily
#

/../../ should help 😉

copper pelican
#

console.log('I need some help')

slim jasper
#

I want to masters in DSA but i am still confused in resources
Anyone can give me a better roadmap.

hallow silo
#

Can anyone explain why --prompt=Bloodhound is not setting my venv prefix to Bloodhound?

#

I am know I am probably doing something silly, but I haven't figured out why it is not cooperating...

#

my pyvenv.cfg even has

include-system-site-packages = false
version = 3.11.4
prompt = 'Bloodhound'
executable = /usr/bin/python3.11
command = /usr/bin/python3 -m venv --prompt="Bloodhound" /home/purp/Tools/bloodhound/.venv```
#

Test my environment?

#

I got the same result. I don't think using the relative path or the absolute path is the issue

hallow silo
#

It works as expected.

hallow silo
#

😂 Well that doesn't fix the issue haha. I wonder if it might have something to do with the virual machine I am running it in.

untold gate
#

so

#

const firstarray = document.querySelector("firstarray")
let data = ["Joe", "Mama", "Ted", "Roosevelt"];
let list = document.querySelector("firstarray")
function newtext(){
for (i = 0; i <data.length; ++i) {
let li = document.createElement('li');
li.innerText = data[i];
list.appendChild(li)
}
}

#

is throwing an error

#

javastuff.js:9 Uncaught TypeError: Cannot read properties of null (reading 'appendChild')
at newtext (javastuff.js:9:10)
at HTMLButtonElemen

#

and idk whats going on or why it is

tranquil flame
#

Do you have a tag called "First array"?

clear lodge
#

a little hint, when you use querySelector and want to find a classname, you need to write the selector as a CSS selector

also please write codeblocks in backticks for readibility 😄

#

start at the beginning and confirm if you actually have the correct element selected

untold gate
#

gotcha, thanks! will start finding where i tagged the wrong element!

clear lodge
#

good luck 😄

#

have fun

untold gate
#

ill try, javascript has been increasing my appriciation of python by so much lol so simplistic

clear lodge
#

carefully go through your code line by line, you are querying and assigning the same list element twice. There are some more issues but step by step 🙂

#

javascript is the best btw 🔫 😉

untold gate
#

its been fun for sure lol

#

So yea that first line isnt even needed

clear lodge
#

yes. But when we query a DOM element and assign it to a var, we never use let in JS ( not literally never, to clarify ), so the const from your first line was correct

untold gate
#

oh

clear lodge
#

I get your line of thinking and why you chose let though. Hang on a sec, let me find some resources. JS is a little funny

untold gate
#

wait, were all uses of let in this incorrect? also adding some backtick notes to make it easier

clear lodge
#

not all of them

#

let someArray = ["foo","faa"]; is fine

#

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const

here is some more in depth information about let vs const in JS but... also dont overwhelm yourself I think. Just have some fun and make stuff work, then refactor and improve later

The const declaration declares block-scoped local variables. The value of a constant can't be changed through reassignment using the assignment operator, but if a constant is an object, its properties can be added, updated, or removed.

untold gate
#

ok, so const arnt reassignable, and are set values. let is changeable value and is used in the body of the for loop

#

oh i see what i did wrong now

#

the variable im trying to change is an ul, idk why i am having the loop create an li when it just needs to change whats in the ul

#

oh god

clear lodge
#

hmm no thats fine, for every list item you need to create a li element and append it to the ul and set the innertext of the li*

untold gate
#

ohh

clear lodge
#

the problem here ( Uncaught TypeError: Cannot read properties of null (reading 'appendChild') ) is that its trying to append your li to an element but that (target)element doesn't exist.

untold gate
#

<ul id="firstarray"></ul> this is the target element 🤔 so would i appendChild("firstarray")?

clear lodge
#

The selector is not correct. Irs a very very small thing but will make all the difference 😉

#

answer in here, spoiler in case you want to figure it out yourself a little longer

|| if you use querySelector, select the element as a CSS selector. In this case you would need to use: document.querySelector("#firstarray"); --> so use #. Alternatively you can use document.getElementById("firstarray") where you dont need the # ||

untold gate
#

I wont look at that for 10 minutes, ill spend 10 minutes googling before i click it

#

if in 10 minutes its not solved ill check

clear lodge
#

yeah awesome ^^

untold gate
#

So, after a very quick google, i realized every example code i seen had a #, so i added that, and now two more even scarier errors have confronted me 🤣

clear lodge
#

haha

untold gate
#

Uncaught TypeError: document.getElementById(...) is not a function

#

Uncaught ReferenceError: Cannot access 'data' before initialization

#

after i tried a # i went back and checked and realized getElement looks nicer

#

but now it doesnt exist

clear lodge
#

it seems like you are using 2 different things mixed

#

either use;

document.getElementById("foo"); --->>>>>> NO #
document.querySelector("#some-id");

#

FWIW I would use getElementById since that is what you are doing. You are finding an element by its ID, so this is the most intuitive method ( in my opinion )

untold gate
#

Im convinced flask and js hate me. Fixed the error, refreshed. now it cant find the js file lmao what is this maddness

#

[18/Jul/2023 18:09:37] "GET /javastuff.js HTTP/1.1" 404 - It was just working 🤦‍♂️ ok lets try to change how it finds the javascript file then lol

#

skipped the flask run for now, just going to the straight static file until this bug is found

clear lodge
#

good idea

untold gate
#

so, const firstarray = document.getElementById("firstarray") is comming back saying its not a function

#

well that getElementByID is not a function

clear lodge
#

yeah that is a little odd

#

is there a typo somewhere?

#

maybe you are trying to query an element before the DOM is loaded

untold gate
#

That does seem to be a problem. becouse when the button is clicked it pops up Uncaught ReferenceError: Cannot access 'data' before initialization

clear lodge
#

right

untold gate
#

Im slowly developing a new found fear of javascript

clear lodge
#

its not hard to fix, just google js onload event and you'll find answers

untold gate
#

gotcha, will do!

clear lodge
north dagger
#

Hi

true pumice
#

Hello

tranquil flame
#

I don't understand why this prints a pyramid with the base at the bottom: ```

#include <stdio.h>

void pyramid(int n);

int main (void)
{
int height = get_int("height:");
pyramid(height);
return 0;
}

void pyramid(int n)
{
if (n==0)
{
return;
}
pyramid(n-1);

for (int i=0; i<n;i++)
{
    printf("#");
}
printf("\n");

}```

#

Shouldn't the pyramid have it's base at the top then whittle down

magic falcon
#

Because recursion

tranquil flame
#

Right but the function gets called at pyramid(n-1) don't we get n-1 hashes printed first, then -1 and so on

magic falcon
#

Walk through it with pen and paper

tranquil flame
magic falcon
#

If you aren't going to take my advice and actually walk through it, my advice doesn't change

tranquil flame
#

pyramid n-1 ignores the for loop until it reaches base case?

surreal bronze
magic falcon
#

Trace the code path on paper, writing changes, outputs and function calls in the order they appear - your question will be self answering

surreal bronze
tranquil flame
surreal bronze
#

yes, and what called the function with n=0 ?

magic falcon
#

as a point of order, C/C++ functions that have a return type of void technically return 0.

surreal bronze
#

ah, never programmed in it

tranquil flame
#

I think the piece I was missing is after we hit n = 0, pyramid (1) still needs to be executed and so forth

surreal bronze
#

exactly 🙂

#

LIFO!

weary quest
#

Good

cursive orchid
#

how is this possible

#

using express in node

#

i cannot for the life of me figure out where this is being logged from

#

i got rid of all my middleware too so its none of that

chrome carbon
cursive orchid
#

well i mean

#

i can't send the whole project lol

#

was just seeing if anyone had maybe encountered something like this before with express

chrome carbon
#

I haven't, but I know JavaScript well enough to know it behaves weirdly sometimes.
Is it only in the specified endpoint this happens, or is it every endpoint?

cursive orchid
#

it seems to be only this route

router.use(middleware.verifyJWT);

router.get('/', (req, res) => {
  const data = {
    test: 1,
  };

  return res.status(200).json(data);
});
#

so i guess i'll just go through that middleware line by line adding console.logs to see where it happens

#

only happens on non-200 error codes too

chrome carbon
cursive orchid
#

oh wait, when i remove the return next(response) lines, and just make it return response it doesn't log that

#

i thought i could do this but maybe i misunderstood how express uses this middleware

chrome carbon
surreal bronze
#

This of any use?

cursive orchid
clear lodge
# cursive orchid oh wait, when i remove the `return next(response)` lines, and just make it `retu...

https://www.geeksforgeeks.org/when-to-use-next-and-return-next-in-node-js/

maybe this helps in regards to that ( just for understanding what is happening )

clear lodge
#

just post your problem here?

tranquil flame
#

Quick question, in this output on line 1459 is that the actual implementation of the printf function in the stdio library? ==693277== ==693277== Conditional jump or move depends on uninitialised value(s) ==693277== at 0x48C24B8: __printf_buffer (vfprintf-process-arg.c:58) ==693277== by 0x48C2D90: __vfprintf_internal (vfprintf-internal.c:1459) ==693277== by 0x48B8BDA: printf (printf.c:33) ==693277== by 0x109168: main (in /home/kali/Documents/programming/cs50/garbage) ==693277==

#

and if it is, could I then by extension knowing where it is in memory modify the instructions at that location

burnt glen
#

dear C gods, suppose I have this code

int pid;
    
pid = fork();
if(pid == 0) {
    //child
    printf("child id: %d\n", getpid());
}
else if (pid > 0) {
    //parent
    printf("parent pid: %d", getpid());
    sleep(3);
    kill(pid, SIGTERM);
}

why does parent pid print after 3 seconds have passed?

magic falcon
#

IO is has its own buffer

#

writing to stdout doesn't necessarily flush the buffer and force the write

wispy kestrelBOT
#

Gave +1 Rep to @magic falcon

errant jasper
stark thicket
#

Hi,
So im tryna make a P2P chat app in the style of crypto (no centralised server). The plan is to have to bits of code talk to each other and once they have established communication they will send encrypted messages. the issue i am having in the first place is trying to get the 2 sets of code to talk across the web (im in aus and my friend is in america), the client can send requests out to the other client IP (in this case it acts as a server) but the server (ill call it a server from now on but it its the "other client" that is being connected to) cant get the requests (I assume this is due to the router not knowing where to send the traffic to there for dropping it). the plan is to make this simple to setup and not need either user to setup portforwarding to their device

wraith latch
# stark thicket Hi, So im tryna make a P2P chat app in the style of crypto (no centralised serv...

I've not got any experience in making such an app, but would suggest you look at online resources. When I look for phrases such as "how to make a p2p chat app" I see lots of youtube videos and articles that go over this in detail.

Based on that I think you need to start with figuring out how to make a p2p network in whatever language you've chosen, then factor in how to encrypt/decrypt messages etc.

#

In this video I will build a real-time & offline-first P2P messaging application using Gun.js & React.

The app that we will be building is a messaging app. We will be building both the server (Express) as well as the client (React).

Code:
https://github.com/dabit3/react-p2p-messaging

Blog post:
https://dabit3.hashnode.dev/how-to-build-a-decen...

▶ Play video
#

Can't vouch for the content here though, just wanted to give you an example ^^

stark thicket
#

thanks, that may be the answer

#

and also im doing it in python

wraith latch
#

I feel like you may need to use sockets? Not sure though sorry, just shooting in the dark here. Good luck though!

stark thicket
#

the issue is when the person (say my friend) trys to connect to me, my router does not know where to send the traffic to therefore it cant connect. and i dont want to port forward, its supposed to be plug and play on networks you cant access the router on

magic falcon
stark thicket
stark thicket
#

im curious as to how i can use that possibly in my app

#

thats cool

#

now to work out how its used in python

cursive orchid
#

i've made a login system but i need to test (not pentest) it for errors etc. is there any framework for this typa thing?

stark thicket
#

flask, django iirc are 2 good ones

sonic patrol
#

hello

#

could someone help me how to run these file *just by relative path only

#

i using venv in python *currently the only way i can run just by calling full abspath

#

*because i dont want to mess up my code with others -> so i want to use the relative paths only. Thanks

surreal bronze
#

Sorry, you mean absolute path?

#

And just open a terminal in pycharm and make sure your in the same folder, then run it

#

But how exactly will it mess up the code with others

thin lynx
#

Honest & logical
what you guys do think?
https://www.youtube.com/watch?v=cxySUFEn9Vg

Will ChatGPT replace developers? Or will it just be a tool? In this video I share my opinion on this revolutionary technology ...


I teach developers how to successful create freedom through freelancing and software products. Either through one avenue such as Freelancing or through building software products that generate income, or both. ...

▶ Play video
chrome carbon
wind abyss
#

anyone here know how to use dirbuster in kali linux

#

I'm trying to use the command, "dirbuster&" to open it up while keeping the terminal usable, but dirbuster just blocks the entire terminal

#

nvm im a fkin idiot

#

(Just had to drag the window away and saw the terminal)

burnt glen
#

hello guys, I need help understanding IPC in C.
I have this code: https://pastebin.com/hamYxBuK
my understanding is that I should have TEST written on STDOUT of the main process. Apparently my understanding is wrong, since nothing is printed out. What do I not understand here?

update: system(command); returns 0

cursive orchid
brazen eagle
#

For python, there's pytest

#

For java there's junit, C# has xUnit

cursive orchid
# brazen eagle For which language ?

it’s express in node. i’m aware of libraries for testing, i have jest setup. but i’m looking for things to check in a signup/verify/login

brazen eagle
#

Jest should be able to

#

have you looked at Playwright?

cursive orchid
#

e.g., signup with username already taken, signup with bad chars in username etc.

#

i have not, i’ll look into it

brazen eagle
#

yeah you want an integration test, or an end-to-end test

#

there's also Cypress

#

depends if you have a UI involved I guess

#

if you're purely on API testing, then Postman is capable as well

tranquil flame
# weak lagoon Why can't it?

Besides the great point he brought up in the video of AI right now not knowing how to implement things without direction, AI also lacks the human elements of creativity and problem solving that an I/O machine just can't provide (for now?)

chrome carbon
# weak lagoon Why can't it?

Extending on @tranquil flame's brilliant response, AI (or Machine Learning as it was called until about a year ago...) requires already known answers, it can be used to mix old answers into new ones, but it cannot verify if the answer is valid. It will never be able to without human input, because the AI don't know how it's "supposed" to work. Unless we write tests it understands.

AI will change the way we work, but it'll not be this huge impact everyone is talking about.

solar palm
#

It can't verify if the answer is valid -> That is only true for the LLM's that are the hype now, they are language models that bluff their way into thinking they are talking like a human. In general though, computers are very good at verifying if things are valid, computer-assisted proofs have been used for decades in mathematics and other sciences and are much more diligent/accurate than humans at proving formal things. So taking a more general approach to AI, there will almost certainly come a point where they can talk like LLM-based chatbots can now, while at the same time understanding the concepts they are talking about, that would be the point where AGI (Artificial General Intelligence) becomes as good as humans in reasoning. But rest assured, they will only be as good as us for a very brief moment. After that, they will be better at everything humans can do or will achieve 😉

#

People say humans have 'unique' properties like creativity and imagination etc, keep in mind those all arise from a network of interconnected neurons that aren't creative or imaginative by themselves, just like a neural network in a chip or in software isn't. But this might be getting a bit off topic for this channel.

lilac holly
lilac holly
#

Is learning C++ necessary for starting to learn cyber security?

waxen ibex
#

What are some necessary languages to learn for pentesting?
BASH, Python, and PowerShell seem like no-brainers, but I’ve spent less than a year in the tech industry, so I’m try to learn things that are useful

brazen eagle
#

Programming knowledge isn't strictly necessary, but it helps to understand how things work.

tranquil flame
#

battlesnakes is a cool one

surreal bronze
mighty holly
scarlet briar
#

Is there a tryhackme-like site that teaches C? If not what's a good site to learn C?

true pumice
#

There’s a few websites that take a gamified approach, check out the pins

magic falcon
waxen ibex
#

I’ve also found books to be insanely worth the money. I purchased an O’Reilly book on Python, and so far it has proven excellent

weak lagoon
#

If you want something more interactive that is web based you could try codecademy or datacamp.

#

Both sites are very similar to try hack me with categorised lessons, learning paths for each language split into introduction | intermediate | advanced, and you get a certificate of completion at the end if you pay for a subscription.

weak lagoon
crude chasm
#

Anyone have some good practices when it comes to cleaning up things with ansible?

For example, you installed some packages and scripts etc on an instance, but then you want to remove everything associated with that.

Do you reverse the previous tasks/roles ? or is there any other way of doing this without having to do this in a multiple-steps way.

#

Not quite "programming" but no devops channel seems to exist 🙂

novel onyx
#

@crude chasm nice Lt Cmdr Data image

brazen eagle
crude chasm
tulip patrol
#

hello

brazen eagle
#

hi

timber fable
#

are there any cool ideas for a pentesting tool ?

molten lynx
lilac holly
surreal bronze
#

nice!

cursive orchid
molten lynx
#

So instead of (Type: 1) or (Type: 65), print the name of the type

grizzled solstice
#

someone can maybe help me to call a function from an address i got from GetProcAddress() and parameters of a specific type? for some reason when trying to call a function from dxgkrnl.sys it causes a BSOD with SYSTEM SERVICE EXCEPTION

rich verge
#

def handle_response(response, data_name):
    if response.status_code == 200:
        return response.json()
    print(f"Error in {data_name}:", response.status_code)
    print(response.text)
    return None

def search_by_number(api_key, query):
    url = f"https://api.companieshouse.gov.uk/company/{query}"
    response = session.get(url)
    return handle_response(response, "Company Info")

def search_by_name(api_key, query):
    url = f"https://api.companieshouse.gov.uk/search/companies?q={query}"
    response = session.get(url)
    data = handle_response(response, "Company Search")
    if data:
        if 'items' in data:
            return data['items'][0]
    return None```
#
menu = """
1. Search by Company Number
2. Search by Company Name
3. Exit
Enter your choice: """

api_key = "[REDACTED]"
headers = {'Authorization': 'Basic ' + api_key}

with requests.Session() as session:
    session.auth = (api_key, '')
    
    while True:
        choice = input(menu)
        
        if choice == '1':
            query = input("Enter Company Number: ")
            company_data = search_by_number(api_key, query)
            if company_data:
                extracted_company_data = {k: company_data.get(k, 'N/A') for k in ['company_name', 'company_number']}
                print("Company Information:", *[f"{k.replace('_', ' ').title()}: {v}" for k, v in extracted_company_data.items()], sep='\n')
        
        elif choice == '2':
            query = input("Enter Company Name: ")
            company_data = search_by_name(api_key, query)
            if company_data:
                print("Company Information:")
                print(f"Company Name: {company_data.get('title', 'N/A')}")
                print(f"Company Number: {company_data.get('company_number', 'N/A')}")
                
                if 'address' in company_data:
                    address = company_data['address']
                    print(f"Address: {address.get('premises', '')} {address.get('address_line_1', '')} {address.get('address_line_2', '')}")
                    print(f"City: {address.get('locality', 'N/A')}")
                    print(f"Postal Code: {address.get('postal_code', 'N/A')}")
            
        else:
            print("Invalid choice. Exiting.")
            break```

What I've been working on lately
chrome carbon
brazen eagle
magic falcon
brazen eagle
#

Also yeah

tardy spade
#

Hey i need som help. I fry to do a iframe how covers the entire page. Can you help me?

chrome carbon
tardy spade
tardy spade
#

i got it

<iframe src="https://test.com/" height="100%" width="100%"></iframe>

clear lodge
#

width="100vw" is the correct syntax

#

So add the = and quotes

#

If you wanna do it inline

tardy spade
#

ok thanks for the help and guidens

clear lodge
#

What are you building?

brazen eagle
clear lodge
#

yeh thats why I asked

#

oh I misread your comment

#

I'm curious what they are trying to do filling the full view with an iframe, is what I mean

clear lodge
#

it may or may not be a little suspicious :p

brazen eagle
#

Totally is

#

At least I know what I'd use it for and it's probably not very nice

clear lodge
#

100vh unskippable non mutable autoplay videos on landing 😄

#

crime against web users

brazen eagle
#

The best rickroll

chrome carbon
brazen eagle
#

Yeah but that's less fun

lilac holly
#

can anyone add json format recording feature to this tool by opening a pull request?
the biggest thing to be aware of is that when -l is in live mode it scans every 5 seconds, and will save every device it finds to a file every time
https://github.com/HalilDeniz/NetProbe

GitHub

Network Scanner. Contribute to HalilDeniz/NetProbe development by creating an account on GitHub.

pastel crescent
#

i wanna learn java script from three links you have given do i have to do all three or any one if so which one is best to learn frm

clear lodge
#

It doesn't matter too much imo. Pick whatever free hello-world like tutorial on YT that you like. I think the main important thing is to actually write code and not to keep copying tutorials until infinity ( some people fall into this trap, its called tutorial hell ). Personally I like https://courses.webdevsimplified.com/, he has a YT channel as well. Just keep in mind that the main thing is for you to actually do projects 🙂 it doesn't matter if they aren't good at first. Just start making a simple site or some other fun thing!

If you have any JS or general html/css questions, you can always ask here. I love to help in this regard *to an extent 😉

sturdy dock
#

anyone doing DSA in JAVA ..?

brazen eagle
#

Either way, don't reinvent the wheel and use a proper lib

#

I think bouncy castle is the de facto standard for Java

#

@clear lodge since you enjoy CSS shenanigans, I submit https://cohost.org/lunasorcery/post/2465593-testing-your-animati

#

Enjoy

paper timber
brazen eagle
nimble warren
#

There is a site which runs some scripts and provide data. I want to have the alert whenever the data is provided but the catch is the alert feature is for premium users. So i was thinking will it be possible to create alerts using python requests? Like making get/post requests and extracting the data from html. I tried poking around but the site ended up saying error in running the scripts. Any heads up about it?

surreal bronze
#

hmmm not sure I understand your query, would you mind giving an example?

brazen eagle
brazen eagle
surreal bronze
tranquil flame
nimble warren
#

I want to request the page using python and get that data

clear lodge
#

we just gave you resources in general

brazen eagle
sharp rose
#

Heya, I'm struggling to access a flask app I started inside a docker container. I started the app on 0.0.0.0:5000, I exposed said port in the Dockerfile and used docker run -p 5000:5000 IMAGE to run the container. Neither google nor chatgpt have proven helpful :/
Would appreciate any ideas :)

magic falcon
#

If you run netstat or ss on the host, can you see the open port?

sharp rose
#

found my mistake. Instead of running it with CMD ["flask",...] I should have just done CMD ["python", "server.py"] yep

lilac holly
tight gull
#

help ive been getting this error:
UnboundLocalError: cannot access local variable 'socket' where it is not associated with a value

and the code is:

import socket
import threading
import os

print("welcome to blah blah password manage!")
print("you are currently at the home page")

def ping():
    socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    socket.connect((host, port)
    socket.send("ping".encode("utf-8"))
    s = socket.recv(1200).decode("utf-8")
    print(s)
    socket.close()
#

but when i check the code there isnt any problem, i even rewrote the whole ping function

rapid pawn
#

Again I'm very basic in python, but the way I see it you referring to socket but you never gave a value to socket before referring that's what I understand from the error msg

solid ingot
#

Just guessing, but it might be because you're naming the variable socket (same name as module)

#

Can't seem to see any other problem with the code

tight gull
#

there is no variables with the name socket thats code it self copypasted from my text editor

solid ingot
#

First line in the ping function

#

I may be wrong about it

#

Not on pc, so I can't test

tight gull
#

yeah, thats the first time its initiated and thats the line the error is calling

tight gull
solid ingot
#

I meant to try renaming it to something else

tight gull
#

alright

#

somehow... it worked

#

i dont understand why but it worked

solid ingot
#

The mysteries of programming

tight gull
solid ingot
#

@tight gull

#

I get the same error in this piece of code

#

I assume what the issue is, is that when you tried doing
socket = socket.socket..
It thought you were referring to the local socket variable (the one you just created) and not the module

tight gull
#

ohhh

#

since it was inside a function

solid ingot
#

Probably best to not name variables the same as global variables or modules to avoid issues like that

tight gull
#

yeah

solid ingot
tight gull
#

been using the same program you used too, although switched to termux when i discovered it

solid ingot
#

I don't think I'll ever be in a situation where I'd need to use python from my phone but I guess it's nice to have

tight gull
solid ingot
#

I think you're meant to push it to production before testing

clear lodge
#

That way you can learn about them for the future too 🙂

#

There is probably a list

solid ingot
#

Just realised I've never used anonymous functions in python yet

#

Use them all the time in js/ts

magic falcon
novel onyx
#

reading the error message with a view of socket is like i 'm not associated with a value, i live independently

dire mason
frosty bison
#

shooting a blind shot here.

I'm modifying a dos music tracker (adlib tracker 2, git:jsf/at2) .
It's written in pascal, I once knew a dude named pascal.. and that's the end of my pascal history...

Anyone who can give me a clue on something to look for in the pascal source to figure out where the function I want to edit is in the source?

I'm looking to find a certain function in the source, and I simply don't have a clue what to look for.
the function is pretty much:

currentStepInPatternEditor = 1
If keyPressed is in keysThatAreNotes:
currentStepInPatternEditor += 1

Simply, when I insert a note, it advances one step inside the pattern editor.
Depending on how it looks I'll change this to toggle between 0-8 steps, or if it's too much of a bother I'll just set the step to 0.
Won't be using pascal once I'm done with setting this thing up how I want it since I mainly track on the 6581/8580 chips but have a few soundblaster tunes coming up and thought I would make my experience in the tracker as pleasant as possible.

Anyone who can give me a clue on something to look for in the pascal code to figure out where the function I want to edit is in the source?

lilac holly
#

Are there any other features?

brazen eagle
# lilac holly Are there any other features?

You do realize there are very few ethical uses for a denial of service script, and very many unethical ones. You were also previously warned to not promote your GitHub and related software in this channel.

lilac holly
brazen eagle
#

Yes.

#

It may have legitimate uses, but the primary one seems to be to set up a flood

lilac holly
brazen eagle
#

Keep the DoS shit in the maldev channel then at the very least

lilac holly
#

and soon i will write a tool like hping3, maybe i will update this tool accordingly

brazen eagle
#

And at least add the proper disclaimers on your repo, because you will be held responsible for misuse of your tooling

heavy rampart
#

If anyone is interested in learning C# check this course on freecodecamp. It's a free course and you'll get a certificate from Microsoft on completion.

https://youtu.be/6GQAE7iLOhY

Learn how to earn a free C# certification! freeCodeCamp has teamed up with Microsoft up to bring you a new free professional certification: the Foundational C# Certification. The course is a text based course, not a video course. This professional certification includes 35 hours of text-based training and interactive coding challenges all from M...

▶ Play video
alpine drift
#

hi everyone, i'm trying to make a packet sniffer(like wireshark) in python for a school project, obviously a lot less complex, but I was wondering if anyone had any like tips or suggestions or anything for it. I've started making it a couple days ago so im not too far in either. Any help would be appreciated 😁

#

actually wait, it says this for complexity

true pumice
surreal bronze
#
for line in file.readlines():
    print(line)
        
while line := file.readline():
    print(line)

are there any benefits to using the walrus operator over a simple for loop?

#

except to look fancy

#

okay so not in my example however,

# read chunks of 32 chars/bytes from the file until we reach EOF
    while chunk := file.read(32):

vs

for chunk in file.read(32)

where using := allows you to loop over the entire file in 32-byte chunks insteadf of looping over the first 32 bytes

brazen eagle
#

Interesting, thanks for the update

cursive orchid
#

that’s actually very useful

#

i forgot they added that

magic falcon
# surreal bronze okay so not in my example however, ```py # read chunks of 32 chars/bytes from th...

have you verified this behavior? file.read() doesn't seem to advance the file pointer on repeated calls..... and that seems to be a fundamental misuse of the walrus. := looks like its intended use is to store the result of an expression for later use so that the function call doesn't have to be repeated to access the data (common example is if (l := len(list)) < 10: print(l) instead of if len(list) < 10: print(len(list))

surreal bronze
#

the use of the walrus operator is to assign a value to a variable in the middle of an expression, like with that while loop

#
➜ cat test
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
ccccccccccccccccccccccccccccccc
ddddddddddddddddddddddddddddddd
➜  cat juun.py 
with open('test') as file:
    while chunk := file.read(32):
        print(f'New chunk: {chunk}')
➜ python juun.py 
New chunk: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

New chunk: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb

New chunk: ccccccccccccccccccccccccccccccc

New chunk: ddddddddddddddddddddddddddddddd

➜  
cosmic mason
#

Wait, that‘s sick.

#

Cool stuff.

magic falcon
#

@icy bobcat

mylist = range().append(range())
result = [x for y in mylist: x = process(y)]

should be fairly close to what you want

lilac holly
gusty dock
#

Are there any good places to learn programming? I'm more talking about places similar to THM, whereas they'd teach the basics, and give you exercises to work something towards, so you could develop on your own. Anyone knows any good ones?

tepid glen
gusty dock
#

yeah I saw for beginners and then there's advanced course, but nothing in between, and not as big and as deep as THM itself is, just for programming

tepid glen
#

Think for python the médium level it would be those rooms like Django and stuff but don't know something deep as thm but for programming

#

Maybe udemy but you'll have to filter what is good and what is not

gusty dock
#

Ooh

wispy kestrelBOT
#

Gave +1 Rep to @tepid glen

short bronze
#

Before I read it, I felt like most tutorials were like "this is a variable, that is a for loop, OK great now go build the moon lander or something"

#

It helped me get past that "I have all the pieces but what do I do with them" stage

gusty dock
#

Oh, I see, thank you for your input!

#

You can automate the same things you can do in Python in bash and powershell, right?

vapid cloak
#

Anyone watch The Primeagen on YouTube?

#

That guy is legit ha

vapid cloak
vapid cloak
#

And just Google and read help and examples from websites as you go

#

That’s my recommendation

#

There are websites like hackerrank and leet code, but I’m not really a fan because they generally focus on solving abstract problems. But you can learn stuff from those websites too

magic falcon
#

you learn the techniques of problem solving from the abstract problems

clear lodge
#

Doing projects like James said and a bit of leetcode here and there could help too. Leetcode is kind of different but you learn a different type of problem solving that is part of programming as a whole

magic falcon
#

having a project is super useful and good, but a lot of being a good programmer comes from being exposed to lots of different types of problems

vapid cloak
#

Yeah, I agree data structs and algos are important but only to the extent you can use them

magic falcon
#

which you may not ordinarily get making your dnd character creator webapp

#

not even DS&A..... that teaches how data is organized and how to build efficient algoritms. But problem solving itself is slightly different. It's the mental flexibiility of adapting things you know to things you don't yet know

vapid cloak
#

Ah I see what you’re saying juun

#

I agree

#

I guess I just prefer to get that mental flexibility by solving my own interesting problems and not just trying to calculate the value of pi for absolutely no reason

clear lodge
#

Hehe. I found leetcode very helpful in really being forced to learn ( JS in my case ) methods and their effects. Especially with array methods. It helps to intimitely learn the specifics of a language in my experience

#

If you dont have a CS background ( like myself ) its good to do so

#

But I do agree leetcode problems by themselves are kinda... like whatever often. I havent come across problems like that much in day to day work but it will help you improve overall

vapid cloak
#

Yeah, I never got into leetcode much, but I grinded out problems on hackerrank. I hated that stuff haha. Useful in the abstract but super boring for me

clear lodge
#

It can also help with job interviews. Just on a practical level

vapid cloak
#

Oh for sure

#

Sigh…. I am not looking forward to my next technical interview haha. I’m great at working problems but I just don’t feel like refreshing my memory on ds&a just to pass an interview but it is what it is ha

clear lodge
#

Haha yeah. Its not super fun but.. gotta do what you gotta do

vapid cloak
#

But that website I linked above has a great course on that stuff. I think it’s free so I’ll probably take it

clear lodge
#

Its also a little annoying that you dont know often what type of tech interview its gonna be

vapid cloak
#

Yeah like whiteboard or take home?

clear lodge
#

Sometimes they wanna drill you on like framework specific lifecycle hooks or design patterns, sometimes its takehome, sometimes they want you to solve a leetcode type issue

#

These are all quite different things ya know. You can prepare for one thing and then .. they ask about a totally different area

vapid cloak
#

Haha yeah

clear lodge
#

And then sometimes its just behavioural 🙃

vapid cloak
#

I think that’s why it’s important to just be super nice, honest, and laid back. If you know your stuff, it seems like those details could be discussed and explained out.

clear lodge
#

Yeah

#

As long as you can talk to a human you can turn the conversation

#

I had 1 interview where they made me do a proctored test before talking to me at all and my score just wasnt enough, because they asked about stuff that wasnt my area. Its fine I guess, just means the fit probably wasnt right anyway

vapid cloak
#

Holy smokes

#

That’s really dumb

clear lodge
#

Their loss tbh but.. I wasnt super excited about working for them after that anyway whaha

vapid cloak
#

Yeah, sounds like it worked out ha

#

I have very limited experience in terms of having worked only for a few small companies

#

So I haven’t gotten a taste of what you’re describing yet

clear lodge
#

Ive only ever worked at 1 company as a dev

#

But doing consultancy so still go through the interviewing process

vapid cloak
#

Ah, I see

clear lodge
#

Every time we need a new client I mean

#

Im going to divorce from my employer now though. Got a fantastic offer ( one of which I feel like I messsed up the tech interview badly but apparently not ) but my boss is being a total ass about it unfortunately

#

So either way its done

vapid cloak
#

That’s awesome, but sucks your boss is being a prick lol

clear lodge
#

Yep

vapid cloak
#

I had a similar disappointment with my management last time I was promoted. It’s complicated and we’ve settled our differences but man

clear lodge
#

That sucks ....

vapid cloak
#

Yeah, ha. It is what it is.

#

If anything I have even more job security now because they trust me even more

clear lodge
#

Did it drag on for long?

vapid cloak
#

About 6 months lol

clear lodge
#

Oh god

vapid cloak
#

Lmao

#

Yeah….

#

In office too so no hiding at home haha

clear lodge
#

😬😬

vapid cloak
#

They were probably worried that I was going to do something brash because the boss totally disrespected me. But I just played it cool the whole time

#

Lol

clear lodge
#

Smart

vapid cloak
#

Yeah. It’s never good to lose control or act out of pure emotion unless it’s positive

#

At least that’s how I do things

#

Generally lol

#

But it’s quite difficult when someone is literally gaslighting you, disrespecting you, and manipulating you all while paying you $30k under the market rate 🙂

clear lodge
#

Sounds very relatable

#

Hahaha

vapid cloak
#

Hahaha

#

Yeah, my uncle told me that when someone has no cards to play that’s when they get upset

#

Because they have no leverage

clear lodge
#

My boss is in the 'if I cant win, everyone else must lose' mode. Unfortunately I am in a very difficult spot right now and he... well he is a sociopath at the least so theres no 'reasoning' on a human level. I dont have the same type of business or legal knowledge so it will be a little tricky to navigate the coming few weeks. My visa is dependent on him so I cant like.. push too hard maybe? I dont know. We'll see what happens.

vapid cloak
#

Yikes

clear lodge
#

Im basically a hostage

#

Whaha

vapid cloak
#

Yeah, tread very carefully

clear lodge
#

Yeah I will

#

Live and learn

vapid cloak
#

Just be as nice and respectful as you can, but make sure you politely draw your line in the sand in case he tries to make it personal. Just know internally that you have dignity and just smile and nod to whatever he says. You don’t need to agree with it, but it will show him that you’re in control and you won’t operate on his level

#

That’s my advice anyway

clear lodge
#

Ty 😊

#

It will all be fine eventually and at the end there is freedom

vapid cloak
#

Yeah, for sure

#

Like when my boss said that I wasn’t a software engineer, after disagreeing with him the first time, he basically repeated the statement and I essentially just said, “ok.” Lol

#

It’s like whatever man lol

clear lodge
#

Lol

vapid cloak
#

Anyway, this is kinda depressing we should probably switch gears unless you want to stay on this ha

clear lodge
#

Programming is fun

vapid cloak
#

Lol

#

Yay

clear lodge
#

All I wanna do is just write code and work in a team

vapid cloak
#

Hahaha

clear lodge
#

🥳🥳

vapid cloak
#

Actually, hey, I think I’m going to get a workout in. It was really nice chatting dolphin. I’ll see you next time 🙂

clear lodge
#

Same 😄 enjoy the workout!

vapid cloak
#

Thanks, will do 🙂👍

brazen eagle
#

Keep an archive in case things mysteriously disappear

clear lodge
#

definitely, thanks

brazen eagle
#

wife had a messy breakup with a previous employer, lawyers were all to happy to have the archived emails

true pumice
brazen eagle
#

Probably illegal though, can be considered destruction of evidence

magic falcon
brazen eagle
#

This is true, hence why you should archive