#development

1 messages · Page 37 of 1

split condor
#

I understand. That's why I added "how you have it setup"

#

Implying changing it could help reduce load and improve the speed/operating cost of your app

nocturne galleon
#

Im already at a point where any further optimization would not decrease cost or speed any

#

well cost wouldnt decrease anyways, im not charged for bandwidth because I own the racks and rent out datacenter space, i am only charged for the space

#

Although, if you have any other ideas besides caching that could improve performance, im all ears ❤

split condor
#

Ok. Just letting you know in-case you didn't know. ~80ms is just a bit speedier than ~600ms per request.

nocturne galleon
#

but im not getting 600ish response times per request

#

i can enable caching if you think it will speed up response by that much also, but its not going to

split condor
#

Every single request I have made to that API is about ~600ms

#

Unless you're going over some in-house networking when actually running it; caching these images on Cloudflare's edge will make a difference

nocturne galleon
#

ip based. discord and google dont get delayed, but its still in the 200s

#

ill enable enable cf caching and see what happens

#

¯_(ツ)_/¯

split condor
#

Maybe I'm missing some info on how the app is running, but just from what I'm gathered it would help out.

nocturne galleon
#

you are probably missing something, but maybe not

#

i guess we will find out in a few minutes

split condor
#

I know GCP (So Discord) -> Cloudflare is over a private network, but I believe the client is making requests not Discord

nocturne galleon
#

i think its discord to client

#

i dont see how this would help

split condor
#

Is there a public server where the bot is running I could join?

nocturne galleon
#

yeah of course

split condor
#

PM an invite (:

nocturne galleon
#

click me

split condor
#

oh, ok

#

cool

nocturne galleon
#

im friends with teh owner

proper gale
#

@glad terrace how exactly were you lied to?

#

i can see shady sales tactics, but is it not compatable with Ubuntu or something?

glad terrace
#

Told me it was the best deal he could get me. Then I find a coupon code on the checkout page for even less.

proper gale
#

thats just sly sales things, and he may not have known of that coupon.

glad terrace
#

I'll probably buy a Lenovo. I don't fuck around with companies that pull that shit. Does nothing but piss me off.

proper gale
#

yea, i was going to recommend Lenovo

#

my school has a full lenovo fleet of student laptops with Ubuntu, they run it great (T4x0 series)

#

do you really need a 6 core?

glad terrace
#

No but I want it

#

Lenovo has an amazing coupon code atm

proper gale
#

i could strongly recommend the T sereis laptops from Lenovo, but they max at a quad core

glad terrace
#

20% off thinkpads

#

That's $500 off a 2500 laptop

#

But basically I want to develop all my stuff in docker containers for my server but run everything on my laptop along with my IDE and whatever else I may be running.

proper gale
#

a quad core should be able to handle that.

nocturne galleon
#

Will this rig be good enough for hosting servers for a game I am working on(police simulator)

Intel® Xeon® Gold 6126
192 GB DDR4 ECC
1TB SSD + 4TB HDD
Windows Server 2016
SSD and Hard Drive are in a Hardware Raid 6

fallow lantern
#

depends what you game you are working on needs

#

192GB ram, what are you trying to run? 😂

nocturne galleon
#

Basicly it's a Cop/EMS simulator

fallow lantern
#

mc 2.0?

nocturne galleon
#

And I was planning to make all of players be on 2 servers(Europe and America, for now)

#

And if it goed well, 400 players per server, we can make some nice callouts

fallow lantern
#

why windows though, if you really only need a host for your game, why not a linux server?

nocturne galleon
#

cuz i am a noob with linux

#

but I can contact 1and1 to change it

fallow lantern
#

well, we can't know if that cpu/ram will be overkill or not without knowing what 1 user uses from a certain machine as reference though

nocturne galleon
#

Game is in pre-development(trying to get the team in full strength)

fallow lantern
#

if its like a mc server with resources, then you will need the ram/cpu power for 400 players

tropic sapphire
#

@fallow lantern they said its a "Cop/EMS sim"

100% get linux on it.

nimble kestrel
#

@glad terrace you can also very easily install ubuntu (or any linux version, any OS if you think about it like that) on any laptop or pc using the installer ISO, Rufus USB mounting software (make sure to select DD mode when you start creating the bootable USB) and a Flash drive (preferrably 8GB)

glad terrace
#

Installing linux isn't the issue. It's just hardware compatibility.

nimble kestrel
#

I've never had compatibility issues past 32 and 64 bit

proper gale
#

@fallow lantern with minecraft, it is single thread dependent, and because Java, a 9900k with 64GB would be the top of the line machine to run it on.

glad terrace
#

I'm checking out maxed out Thinkpad T480/580's currently

#

It's not 6 cores but sacrificing that I can get 32GB ram.

proper gale
#

but in reality, you would want to spread that load across multiple MCserver instances with something like bungeecord, which would make a higher core count/higher ram amount situations make more sense.

#

IMHO, 32GB matters more than those 2 more cores.

glad terrace
#

Yeah

#

Especially for the docker containers

proper gale
#

source: has a 8 core (1700x) 64GB desktop, 4 core (7700hq) 16GB laptop, and 4 core (4790k) 32GB desktop.

#

yes my main desktop is the fastest, but the more noticeable difference is between the latter two.

glad terrace
#

Want to replicate my entire server's services/sites locally. They wont be under any load locally but they will use a ton of memory lol.

proper gale
#

another option, but probably not the preferable one, is straight up two laptops.

glad terrace
#

Nope lol

#

I'm good there

proper gale
#

i do that, works fine, just heavy AF.

glad terrace
#

Yeah lol

tropic sapphire
#

RAM does matter more if you're running a swarm of containers. at work i'll hit 14GB used while working on our main product

thats our main api, redis, websockets server, rabbitmq. plus code, studio 3t and chrome

proper gale
#

now, if this was a desktop, 2990wx

tropic sapphire
#

docker is still only singlecore unless the program you run in it is made for multi core

proper gale
#

only 14GB? i hit like 20 from chrome alone.

tropic sapphire
#

I tend to not have much open at work 😛

#

the website and then a few documentation + zendesk

proper gale
#

100+ tabs of stack overflow will destroy your ram

ionic hull
#

That is why I bought 16gb ram ddr4 😂

#

And I am a web dev

proper gale
#

only 16GB?

nimble kestrel
#

I have a 60 GB vps in the cloud that I run all of my webservers etc. on. I also use that along with chromium-browser to have my 9001 tabs open

proper gale
#

8001*

nimble kestrel
#

oh yes sorry

native shoal
#

how expensive is that 60 GB vps

#

actually, I am wondering what is cheapest but reliable host provider for an OpenVPN server to run on?

#

I've identified that should any of my local equipment go down, I essentially also lose my OpenVPN access back home since it's a virtualized system.

nimble kestrel
#

28 euros a month, hosted in germany

#

@native shoal

#

But I don't know about the openvpn part for that vps

eager birch
#

@nimble kestrel Contabo? 😉

nimble kestrel
#

Mhm it's great for my experiments 60 GB minecraft server

worldly yoke
tropic sapphire
#

@nimble kestrel have you considered moving them into fargate? Or even s3 and lambda?

Would be super cheap

glad terrace
#

Finding memory leaks in chrome is not all that fun... Lol

tropic sapphire
#

@glad terrace nope, Chrome used to be so lite.

glad terrace
#

I found a couple small ones in our app but there is also a lot of code out of our control which appears to be the majority of the leaks...

tropic sapphire
#

@glad terrace yeah memory leaks are sometimes super hard to find, we have one in out main product api.

From time to time heap stack errors, luckily pm2 restarts on a crash ;)

I'll find out what does it one day.

glad terrace
#

Turns out I was misled... There aren't any major memory leaks. I was led on a wild goose chase lol. I found a couple very tiny ones but the problem wasn't getting better. Ended up being a completely separate issue.... No wonder I was having difficulty finding any lol.

proper gale
#

valgrind?

glad terrace
#

Just Chromium Dev Tools.

proper gale
#

if you are talking about writing stuff in C++, valgrind will find basically all your memory leaks, its a great piece of software.

#

does a hell of a lot more too, but the feature i use it for the most.

#

^ assuming you dont know what it is, if you do, why are you not using it?

gentle veldt
#

ping me when u can help

vestal glen
#

wrong quotes for JSON

gentle veldt
#

thanks

nocturne galleon
#

im p sure that's an outdated library @gentle veldt

#

I'd use Eris

gentle veldt
#

i'm making a discord bot

nimble kestrel
#

Get node.js and discord.js

gentle veldt
#

ik

#

i did

#

and got rid of that error

#

but there's another error

#

i do have auth.json

#

and package.json

timber violet
#

This may seem like a dumb question, but...
Do you have the correct token?

Discord gives you a lot of strings and i know i grabbed the wrong one when i tried making a bot the first time.

#

it also may behoove you to use discord.js alone without the Winston thing.
here is quick template that may help you:

#
const Discord = require("discord.js");
const client = new Discord.Client();



client.on("message", (message) => {    
    if(message.content === 'ping'){
        message.channel.send('pong');
    }
    
});


client.on("ready", () => {  
    console.log("Online!");
});

client.on('disconnect', function(erMsg, code) {
    console.log('----- Bot disconnected from Discord with code', code, 'for reason:', erMsg, '-----');
    client.connect();
});

client.login("ERT2NTA1NjE1MDgzMzcyNTc0.DgLpAg.nogWEU8M55CINIRyS_hidIit5hM");
#

at client.login swap your token with the real looking fake one that i placed there.

#

@gentle veldt

#
gentle veldt
#

ok

#

thanks

tropic grail
#

You can build a Discord bot in more ways than Discord.js and NodeJS

flat fiber
#

The bot that I built is based on c#

ionic hull
#

You can do it in php if you wanted

#

But only true r3tards would do that

timber violet
#

they are all just wrappers for the api

ionic hull
#

Yea

timber violet
#

you could probably even use curl commands if you were inclined to do so

nocturne galleon
#

Multi threading an application had to be the more boring parts of programming ;-;

proper gale
#

@nocturne galleon and frustrating, cant forget about that part.

timber anchor
#

possibly a stupid question but could i run Net beans on Linux

proper gale
#

yes

timber anchor
#

@proper gale shot my dude ❤

proper gale
#

hmm?

timber anchor
#

u answered to slight stupid question

kind portal
#

question about java: Im making simple apps as a part of my school course, but the one thing that is bugging me is that I have to manually restart the code whenever it finishes. Any command like Basics GOTO LineNumberHere that could run the app from the beginning?

timber violet
#

A while loop?

#

Goto doesnt exist in java

kind portal
#

It used to though. Thats why Im asking if theres anything that can just restart the app

#

Like a single statement or something

#

Wait, putting the whole thing into a loop would work for this one

#

as its a couple of lines

timber violet
#

Alright that's good then

#

You could also call the 'main' method
Be aware though, if you do this too much you will encounter a stack overflow error.

glad terrace
#

@proper gale I've never said anything about writing C++... It's Chromium... A web browser. It's JavaScript I'm using.

nocturne galleon
#

Could anyone help, I have made a discord bot that runs on a backend of MySQL and I want to add a rank system depending on how many points you have, I currently have points for the user saved but is there a way of doing a if and else if statements for everything in a different table?

rotund bramble
#

As far as discord bots go, if it were me, I recommend Node and JS, at least to handle command routing, because you're interacting with their API and it's just easier with JS. If you need to do anything with heavy calculations like image rendering, Node isn't gonna be great for that, so I recommend having a separate python server or something.

Also, you don't need discord JS. It's FAR easier to interact with Discord's API directly.

#

But for the most part, discord bots are just shuffling data around and doing basic computations with basic conditionals. You likely won't run into issues with a 1 CPU server until you hit about 4,000-5,000 users.

#

And if you do, you just setup a load balancing server to spin up new instances. It'll cost a little more, but hopefully by that point if you have a server that big, someone would be willing to cough up a few bucks for one.

#

Actually, you could even just run the server locally at your house since it will likely only be interacting with Discord and users won't be interacting with it directly, so it would save you money if you have a pc laying around already.

glad terrace
#

@nocturne galleon Wouldn't you just run a separate SQL command with a join or SELECT rankName FROM ranks WHERE rankLow <= userPoints AND rankHigh >= userPoints.

#

Or something similar

nocturne galleon
#

@glad terrace Thanks man i just got not get the SQL query correct i will give it a try now

#

!points

#

!points

ionic hull
#

Doesn't seem to be working 🤔

glad terrace
vestal glen
#

so you can quick order your foods now?

glad terrace
#

lol no

#

I program their digital menu boards. That just switches to their directory depending on the project I'm working on at the time.

#

The second screen are all terminal commands

proper gale
#

@glad terrace then how does memory leak? Just is garbage collextes, ?

#

And it is written I'm C/C++ afaik

glad terrace
#

Garbage collection is based on the principle of cleaning up data that is no longer referenced from the main application. There are times when objects are created and references are still incorrectly held due to one thing or another therefore they never get collected. Garbage collection is NOT an end all be all.

#

That is a decent article.

timber violet
#

@glad terrace
Couple things.. that stream deck looks cool and i want one now.
Also how do those menu boards work? If you dont mind explaining... im a little interested about what resteraunts ask of you and what tools you use to fulfill their requests.

glad terrace
#

Not sure what exactly I can say... We get designs from the clients and then we make them happen. It's a program because there are also franchisee's that may not have the same products as another store so each store can log on and add/remove categories and the entire menu can be reformatted based on those choices and the designs provided for those scenarios.

#

I will also say I would be considered a Web Developer lol

#

There are some very large multinational companies that constantly try to get information from us on how we do things exactly. I'd probably wind up fired for answering anything specific.

proper gale
#

im aware of how memory can be incorrectly held, that entire article sounds more like problems with JS implementation and/or features and idiotic developers than actual GC memory leek problems.

#

also, when i think of a memory leek im thinking of memory that can no longer be referenced. IE: last pointer goes out of scope without deleting memory, the classic leek.

glad terrace
#

Yeah, the 'leak' ended up not being a leak but a video encoding issue. Someone else told me it was a leak so I spent a day and a half chasing ghosts until someone actually brought the memory usage on the devices and when I saw it.... it wasn't approaching anywhere near maximum... (Like 50-60%) The only 'leak' which was visible was an array that kept getting the addition of timeout ID's and clearing them when certain things happened but then never clearing the array. It was that minuscule the things I was finding lol. At that rate it was only like 120KB an hour of additional memory and the app restarts during certain times to display different content... so not a real issue. But yeah, memory leaks with JS are really just programming mistakes.

proper gale
#

even in GC languaes, im super pedantic with memory, thanks C++. that approach to memory usually keeps most of these problems from being problems.

glad terrace
#

Definitely a good trait to have. Our stuff runs on custom hardware so performance issues do arise but its usually just things being done in a way that's bad lol.

proper gale
#

a good GC does help too, based on what that article said some JS GCs seem horrid.

nova moth
#

Hi!

#

Any C++ devs searching for a project?

wheat dock
#

what kind of project

proper gale
#

I have one already, so not me

nocturne galleon
#

I’m looking for some peeps to help me on EaseOS. A Debian based Linux distribution. It’s a mash up of windows/Mac/ and Linux. DM me of interested.

nova moth
#

It's a modification of game that is SP, but I want to make it MP

ionic hull
#

What game?

#

@nova moth

nova moth
#

ETS2

ionic hull
#

You can get source code for that in github

nova moth
#

For what?

ionic hull
#

The ets2mp v1 was leaked or something

#

You can use it as a base

nova moth
#

But that is for 2012 version of the game

#

I have the base

#

Mostly

ionic hull
#

Well, now it is just a matter of making it work

#

And then implement whatever you want

#

Because making from scratch will be time consuming

nova moth
#

Another thing is that the game engine has been changed since then

#

I think

ionic hull
#

There must be similarities

nova moth
#

Yeah

#

Found it, but that doesn't help me

#

I still need help from more devs

odd cypress
#

You said you already got the base. Which tools did you use to "explore" the game engine?

#

@nova moth

nova moth
#

Cheat Engine and IDA

odd cypress
#

Free or pro version of IDA?

nova moth
#

Pro

#

Mainly CheatEngine

#

Other guys used IDA

#

ANd sen me the offsets

odd cypress
#

I used CheatEngine too to extract some addresses of pointers which contain information about lights, speed, etc.

nova moth
#

In ETS?

odd cypress
#

Yes, that's right.

nova moth
#

Have knowledge of C++ and willing to make another MP mod work?

odd cypress
#

I have moderate knowledge of C++ (focused on higher languages) and would love it to make another MP mod, but I think I don't have enough time.

#

But we could try it.

ionic hull
#

Can you manipulate memory in the ets2mp?

#

Or does it have protection

#

You could make some trainer for the multiplayer

nova moth
#

I want to make another mod for MP

odd cypress
#

I tried to manipulate the rendering (overlay) but it crashed.

#

(sometimes)

#

and sometimes it worked

#

The real ETS2MP is using DLL-injection too.

nova moth
#

It is difficult to go around "memory violation error"

#

What I'm going to do

#

But I think I can make it better

odd cypress
#

Can you send me a screenshot of your code (private if you want) you used for manipulating the memory?

nova moth
#

It's not working

#

Giving me some strange errors

odd cypress
#

I would inspect the code for trying to find the problem.

nova moth
#

like "undefined refernce"

#

When it is defined in a header

nocturne galleon
#

I’m looking for some peeps to help me on EaseOS. A Debian based Linux distribution. It’s a mash up of windows/Mac/ and Linux. DM me if interested.

velvet mirage
#

Anyone good with css/html/php because i'm having an issue updating my database login stuff on my website. when changing the logins i save to config.php, it saved it in the document upon opening the page i went to open, its saying my old mysql database: Access denied for user '***********_admin'@'fakeip.1.1.1' (using password: YES) --> while my login in the config.php is 12344@DatBoi.Ip but is still trying to connect to my old database WHY?

#

sorry for bad grammar on 2 hours of sleep trying to figure this out

proper saddle
#

Finally getting around to a project.
It's a Blog API.

fresh jacinth
#

@velvet mirage did you get that sorted

kindred valve
#

hey all

#

is there any person with good html knowledge?

nocturne galleon
#

Any Unity developer wanting to work for free on a project

austere sphinx
#

Would depend highly on the project @nocturne galleon

velvet mirage
#

@fresh jacinth kinda got it to work but now another issue

#

Lol never ends

shell zephyr
#

@kindred valve still need help with HTML?

kindred valve
#

@shell zephyr. Yeah kinda. Got that issur I checked my code and found 816 lines. When checked code through browser found 846 lines at least. Tried to find that line in a files I usef (all of them) not found. So how the hell do I edit it then xD

nocturne galleon
#

@austere sphinx Police Simulator

brazen sluice
#

so i have to make a website for school in html, but i dont understand anything, its due next friday and i've been told loads of these tags are outdated and not supported. My fontsize wont update, no matter what i do and it changes per browser (chrome at school but firefox on my own home computer)

#

one of my pages i link to has the same font size all over, even though i have a font tag

#

am i doing it wrong or is it just broken

zenith bramble
#

size, color and face attributes should be in the font tag

brazen sluice
#

arent they?

zenith bramble
#

no, they are in the p tag in line 2

brazen sluice
#

but if i dont put them in the p tag they also dont work

#

my friend told me to put them in the <p> tag

zenith bramble
#

also html tag goes in the 1st line

brazen sluice
#

that didnt make the font size change

#

i dont think im being graded on how the code looks, but more on how the site works

#

looks like fonttags just arent supported

#

at all

zenith bramble
#

@brazen sluice it turns out the size values you're using are too high, use lower values

#

from 1 to 7

brazen sluice
#

huh

#

thanks

#

that worked

zenith bramble
#

np

austere sphinx
#

@nocturne galleon Your going to have to provide more detail than that, a name tells me very little.

brazen sluice
#

@last ingot its dutch so idk, its the 4th year of highschool

#

im 16 now, but i failed one year so most people are 15

nocturne galleon
#

I’m looking for some peeps to help me on EaseOS. A Debian based Linux distribution. It’s a mash up of windows/Mac/ and Linux. DM me if interested.

odd cypress
#

EaseOS = Linux with Wine and Mac-ish design?

hearty jasper
#

anyone with jquery knowledge?

proper gale
#

@nocturne galleon what specifically?

#

im not familiar with that specific OS, but i am with Ubuntu, which is also Debian based.

plucky sinew
#

Morning all

#

so who is clued up with php and could possibly assist me

brazen sluice
#

heyo peeps, im back with more problems around Html

#

i just want the Home on the top to be red, and the other links white or a different colour, first i had the <head> tag also as a <body> tag, but that didnt work because then the links in the 2nd <body> tag also were red (or dark pink)

fallow lantern
#

There are a few things wrong

brazen sluice
#

like how it should work? or just how i worded it

fallow lantern
#

head tag is for including/defining things

#

not to write html

#

like the a tag

brazen sluice
#

aah

#

well i had a body tag there before

fallow lantern
#

All elements to create the content of the actual page should be withing the body

brazen sluice
#

but that fucked shit up because 2 body tags dont work for some reason

fallow lantern
#

you want to first create a nav element, to write the navigation

#

in the body

brazen sluice
#

nav element?

#

what would that look like in code?

fallow lantern
#

you can't have 2x body elements indeed

brazen sluice
#

so is there a way to have my links have different colours?

fallow lantern
#
<body>

<header>
<h1>City Gallery</h1>
</header>

<nav>
London<br>
Paris<br>
Tokyo
</nav>

<section>
<h1>London</h1>
<p>London is the capital city of England. It is the most populous city in the United Kingdom,
with a metropolitan area of over 13 million inhabitants.</p>
<p>Standing on the River Thames, London has been a major settlement for two millennia,
its history going back to its founding by the Romans, who named it Londinium.</p>
</section>

<footer>
Copyright :copyright: W3Schools.com
</footer>

</body>
#

thats a normal layout

vestal glen
#

<main>

brazen sluice
#

but there is no way to have my links have different colours? i dont really mind how the section looks

vestal glen
#

you can with CSS

fallow lantern
brazen sluice
#

im linking to different webpages anyway

#

@vestal glen how would i do that?

vestal glen
#

by using CSS, mostly

brazen sluice
#

ah

vestal glen
#

I'm happy to answer more specific CSS questions, but if you're not familiar with CSS, familiarize yourself with that first, for example with https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/CSS_basics

brazen sluice
#

the thing is, i cant make the site using css, like pure css

vestal glen
#

hm?

brazen sluice
#

its a html focussed task, and i dont have the time to learn html (im already struggeling with html alone)

vestal glen
#

well, you can't change colors with HTML

brazen sluice
#

Rip

vestal glen
#

(well, you could about 10 years ago, but don't do that these days^^)

fallow lantern
#

@brazen sluice css is always following the structure you made in html

and you can do inline CSS or style block, or include

vestal glen
#

these days you're supposed to either link to a CSS file or use a <style> tag

brazen sluice
#

i mean, all the tags we have to use are outdated freak

#

and im using style tags

vestal glen
#

if you're using <style> tags you're using CSS

brazen sluice
#

really?

fallow lantern
#

yes

vestal glen
#

yes

brazen sluice
#

i thought css was with { and stuff

vestal glen
#

well, that's what usually ends up in the <style> tag^^

brazen sluice
#

i dont know half of these

vestal glen
#

well, the very last one is the one to change text color if you live in the antique

#

(which is synonymous for "this course is teaching you stuff that's no longer relevant")

fallow lantern
#

not even 1 html5 tag

#

back to 1990's

brazen sluice
#

yeah

#

the old teacher got fired

fallow lantern
#

for the better

brazen sluice
#

so they had to scram

fallow lantern
#

oh

brazen sluice
#

no as in

fallow lantern
#

rip now?

brazen sluice
#

i have a new one

#

and he got this paper with stuff to teach us

#

because he got hired on such a short notice he couldnt prepare stuff

#

the font tags dont work either

#

probs because this is old

fallow lantern
#

yea maybe not supported anymore

brazen sluice
#

I guess im fucked

fallow lantern
#

The <font> tag is not supported in HTML5. Use CSS instead.

#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
            "http://www.w3.org/TR/html4/strict.dtd">
#

use this as doctype

#

this should support font

brazen sluice
#

my doctype is html

fallow lantern
#

thats html5

#

and doesn't support font

#

tag

brazen sluice
#

im confused

#

it does work

#

my font size, colour and face are all working

fallow lantern
brazen sluice
#

guess im not using html5 then

#

because it does work

fallow lantern
#

maybe browser ignores it, but it shouldn't work

brazen sluice
#

welp, guess i gotta club my teacher over the head with html

fallow lantern
#

you can always tell him, either you get points for the research, or he's hating your ass for being a know all

brazen sluice
#

Òof

fallow lantern
#

or ask him, tell him what you found, and he should just like it that you are researching so much

brazen sluice
#

ill try that, imma go do some dutch home work now tho

fallow lantern
#

most teachers are more lax in points if they see you doing some effort

brazen sluice
#

thanks for all the help tho ❤

fallow lantern
#

np, gl

vestal glen
#

(the reason <font> works in html5 is because of quirks mode, which is a backward compatibility mode that all browsers have, so you're effectively no longer writing html5, but just something that happens to look correct in your browser 😉 )

glad terrace
#

I don't get why everyone spits out w3schools stuff. So often the documentation on mozilla.org is so much better.

timber violet
#

Because w3schools still shows up in google searches.

glad terrace
#

If you search "HTML documentation" mozilla is #1

#

And I'm not just saying this because I'm a mozilla fan... I don't use Firefox at all. It's a legit unbiased opinion.

vestal glen
#

well, it helps that both ms and google are now directly contributing to MDN

timber violet
#

it depends on what you are searching for

#

btw im not arguing that one is better than the other... just that for certain searches w3 ranks higher than mdn

tight fractal
#

Could anyone help me with some JS stuff quickly

#

I have a slider in HTML declared with <input type="range" min="1" max="100" value="1" class="slider" id="myRange">.
I also have an included JS file, that is checking for the slider value change with a function like this: slider.on("change", function() { console.log(slider.fscaleTo(0, 127)); output.sendMessage([176,1,slider.fscaleTo(0, 127)]);
So the function value I would like to input to the HTML slider is declared as slider.value. How would I pass that to the html file?

vestal glen
#

you want to change the max in the html once it's loaded?

#

or the value?

#

because the html is something JS gets loaded into...

tight fractal
#

I want to change it dinamically when the JS detects change event it updates

vestal glen
#

well, it seems like you're using some kind of framework, so you'd probably want to use that to do that.

glad terrace
#

@timber violet Yeah, W3 schools does frequently show up higher in results but the information it gives is usually worse than mozilla's site. I append mozilla to every search cause of it lol

vestal glen
#

I use duckduckgo and just do !mdn because I know I want to read it on MDN

glad terrace
#

@tight fractal With your slider issue I'm not sure what you're asking. What exactly are you trying to do? It's pretty unclear to me. You're trying to update 'it' on the change event so what is it? If 'it' is the slider what about the slider are you trying to change? It's value should be updated automatically whenever you slide it. Overall it's just not enough information to help with whatever problem you're having.

nocturne galleon
#
print("Did you know Discord has markdown?") ```
#

I mean

woeful basin
#

say, having a website fixed inside another is called embedding, right?

#

for someone who doesn't know about web coding, would it be too complicated to make a website with just embedded websites in predefined sizes?

vestal glen
#

it may also be called "framing"

proper gale
#

@nocturne galleon yes

glad terrace
woeful basin
#

thanks!

#

what would be the best way to create a page that contains multiple iframes of predetermined sizes?

#

for personal use only

#

I'm trying with notepad++ to make a custom one

#

when I inserted a twitch chat it says twitch rejected the connection

#

any way to work around this?

glad terrace
#

uhh

vestal glen
#

Not really, no

#

If a page doesn't want to be framed the browser won't frame it

#

For twitch for example you have to use their embeds explicitly

glad terrace
#

IDK why but it did not like any of my messages linking to twitch

#

LMG Showboat kept saying "Censored" to me... I said nothing wrong lol

crimson vault
#

So I am coding a drag and drop but I cannot find why upon placing the third object they all go back to different places but the 4th object hasnt been placed yet. Can someone check this and see if ive done anything wrong?? @ me if you figure out whats wrong

granite fog
#

@glad terrace you wont be able to embed twitch chat because it sends an X-Frame-Options: SAMEORIGIN header which prevents embedding on any sites that aren't twitch

nocturne galleon
#

Looking for developers! C++ and Python. Working on EaseOS. A new Linux Debian based distro. DM me if interested.

crimson vault
#

i cannot find a way to fix it

pulsar bough
#

Anyone know how to extract a certain line from a text file (i.e after said text/line grab next full line and then) in C#

tropic sapphire
#

Use regex?

pulsar bough
#

I found what I was looking for (File.ReadLines(path).Skip(14).Take(1).First();)

vernal viper
#

Can someone help me with php?

ionic hull
#

Sure, what is problem @vernal viper

jagged bluff
#

System.out.print("dab");

timber violet
#

Dont forget the newline

nocturne galleon
#

i print like this : print("i do swift")

nocturne galleon
#

Looking for staff!!! All programming languages preferred. Working on EaseOS. Elegance, simplicity, and compatibility combined to make EaseOS. Based on Linux Debian. With the looks of MacOS X, and the compatibility of Windows, and the apps of Linux Debian, it all came together to make this. Devs wanted! APPLY HERE!!!:: https://docs.google.com/forms/d/e/1FAIpQLSe-EBKc-oGIoy1HxtUhiEvEFZpTHq1gXe3w1OC7FOWH2GR99Q/viewform?usp=pp_url

rotund bramble
#

console.log(linusdab);

glad terrace
#

What do you're guy's office setups look like? Does anyone here use monitor arms? I'm having some trouble determining which ones would be best. I decided instead of getting a fancy laptop I'm just going to deck out my office ($2,000 USD budget) and throw a NVMe drive on my desktop and upgrade it to 32gb ram and dual boot linux. Already purchased a Vertdesk V3 as I'm tall and it seemed to be the most stable at high heights. I have 1 Acer 27" K272HUL and It's been pretty good so far. I want to add 2 more monitors with the same 2560x1440 resolution which shouldn't be hard to figure out...

glad terrace
#

Well then... Looks like my current monitor is on sale on newegg... It's the cheapest QHD screen I see. I was going to wait until black friday to buy the extra 2 but at that price...

ionic hull
#

Simple

#

RYZEN 3 2200g
16 GB ram ddr4
No graphics card

nocturne galleon
#

The IGP supports two screens?

#

Neat

nocturne galleon
#

I feel like a ryzen 3 and 16 gb of ram is a bottleneck on the ram

#

But idk

cobalt topaz
#

gotta feed the chrome monster

little knoll
#

Everyone who say Chrome is eating way too much ram never saw Premiere Pro or After Effect running

cobalt topaz
#

yeah bc my pc cant even run those

little knoll
#

¯_(ツ)_/¯

ionic hull
#

Online ide

#

Soo

#

RAM is needed

#

Because chrome speeds up things when a lot of ram is available

nocturne galleon
#

Trackers, ads... also websites are a lot more pretty now

#

Images resolution is much bigger, PNGs ar widely used

proper gale
#

@glad terrace home office count?
I have a large desk with three monitors sitting on it (24" each, 5760x1080 total) and a fourth (cheapo spare monitor) on a bookshelf above them.

#

@little knoll you ever run a Jetbrains IDE?

#

@dapper laurel need to, no, but because of the layers of abstraction stacked on top of each other, it does.

glad terrace
#

@proper gale Yeah this is for my home office.

#

I also purchased a Haworth Fern chair about a year ago and love it. I might get the stool base for it.

#

I have one 27" monitor and want to stick with that size and resolution though. Might get 2 curved screens and put one on either side of my main screen.

#

I'm just unsure whether 1 mount holding all screens or 1 for each would be more stable

#

I also run JetBrains everything. lol

#

My work offered to pay for it and I told them no because I want to own the software myself lol.

little knoll
#

@proper gale I've tried once, it was like driving a tank as a shopping cart. My main "IDE" was Atom but I recently switched to VS Code which is way lighter and faster and finally have a Atom theme and kb shortcut package

lavish gale
#

Does anyone know any good tutorials for Powershell programming?

#

I'm just looking to rebuild my website scraper

ionic hull
#

Python

nocturne galleon
#

i have a ballmer peak rn, my code works at first run, AMA

ionic hull
#

Code working at first run? Better check it again just to be sure because that is almost impossible

nocturne galleon
#

and i did it again

#

works perfectly fine

#

inb4 i've ran only two tests :^)

tropic sapphire
#

@ionic hull I use function style using ramda in node, a lot of the time my functions work first time. It's when it's all put together the problems start :P

proper gale
#

@glad terrace what computer you got to run them IDEs?

#

@little knoll Jetbrains doesnt compete in the light weight IDE category at all. the IDEA platform is a heavyweight among heavyweights, and i love it.

winged obsidian
#

Hey guys, looking for some opinions on Synergy 1/2

#

for a development workflow of course, I am constantly switching between 2 PCs in particular currently

#

Thought about just whipping up something with socket communication but would rather not reinvent the wheel considering how cheap it is. But if it is garbage I would rather avoid it.

glad terrace
#

@proper gale my work laptop is a high end mid 2015 MacBook Pro. My desktop has an i7-7700k 16gb ram (will be expanding to 32gb) 256 and 1TB SSDs (will be adding a 512gb NVMe) and a GTX-1080.

proper gale
#

Why nvme?

glad terrace
#

Just cause =P

proper gale
#

Fair nuff

glad terrace
#

I'll be putting Linux on it too hahaha

proper gale
#

For a workstation machine, look at threadripper

#

My 1700x helped the responsiveness of clion a lot vs my 3770k

#

Specifically the auto complete

glad terrace
#

I game more on it than anything

proper gale
#

Work desktop, no?

glad terrace
#

No

#

My personal desktop

proper gale
#

if ya wanna talk gaming, my desktop does that too

#

1080p144, CPU has no problems.

glad terrace
#

My main monitor is 1440p at 60hz

proper gale
#

CPU really doesn't matter at 60hz

#

If you use this computer for work with jetbrains ides, I highly recommend more than a quad core.

#

Be it an am4, tr4, sp3, 1151, etc.

glad terrace
#

I really have zero issues running them. In fact I actually use the Ultimate (basically all in one) IDE from them without issue.

proper gale
#

I have the student license, and use IDEA ultimate among others

glad terrace
#

Bah I don't qualify for that anymore lol

proper gale
#

I still got a few years for it

glad terrace
#

I will say they didn't apply my graduate license discount so they gave me 6 months free.

proper gale
#

Kek

glad terrace
#

I love them

proper gale
#

Started with idea, staying with idea.

glad terrace
#

Same here. Used it at my internship. My first actual job they said I could use whatever I wanted. I tried sublime and atom. Bought the JetBrains all products pack and never looked back.

#

I even converted 2 people at work to WebStorm/PHPStorm.

#

😂

split condor
#

I've found a quad core CPU has worked out alright using IntelliJ. Maybe I'm not using it intensely enough though.

glad terrace
#

They give me shit all the time cause I tell them shit like "Well if you have a fancy IDE like me you could do this or it would tell you this and that wouldn't happen."

#

The git integration is impossible to beat lol

#

Like certain individuals doing merge conflicts and leaving in HEAD tags -.-

#

Or using let and const in an app that has to use ES5 because that portion of the app isn't transpiled to ES5

proper gale
#

@split condor not sure what to tell you, here is a graph of CLion on a small project, it eats the CPU.

ionic hull
#

@glad terrace can you crack phpstorm?

#

Broke guy right here

maiden verge
#

someone here has experience with mongoose?

glad terrace
#

@ionic hull Not only is that outside my current skillset but even if it was... no lol.

#

It is only $8.90 a month though if you can justify it.

kindred valve
#

hey any java script/css pros here ? 😄

glad terrace
#

Depends what you need... lol

kindred valve
#

I got that pop up image window

#

like album thingy

#

and was wondering how do I add text description below the image

#

like each image u scroll got different description

glad terrace
#

That varies on how the component is structured, framework, etc.

#

Do you have an example?

kindred valve
#

got all the files only on local drive

#

hmm

#

I used that thing

#

read so I could delete links xD

#

dont want to get banned for smth xD

#

all I want to add is text below

glad terrace
#

<div>TEXT HERE</div> after the image

#

Or if you want it over the image

#

well

#

same thing

#

but make the container position relative and the div with the text position:absolute; bottom: <distance>;

#

Does any of that make sense?

kindred valve
#

mby 😄 let me try havent even though of smth simple like that 😄

#

nah not working as it is adding text on main page not popup

#

oh ok foudn the right place

#

eeem, @glad terrace how to find hidden text ?:D

glad terrace
#

Are you using some kind of website builder?

kindred valve
#

no

glad terrace
#

Where is the image in ralation to that description in the html?

kindred valve
#

found the place in html where that part << should be

#

all is there

glad terrace
#

so what does 'filtr-item a' look like>

#

?

#

you can just PM me

glad terrace
#

We got it all sorted out now I think lol

limpid reef
#

oh windows subsystem for linux, how you make me sad. it's been a long time since I've had to build something from source. :S

glad terrace
#

@limpid reef Hahaha yeah... Thats why I started with a windows PC at my current job. Everyone else was on a mac except for one other guy. I switched a week later. The other guy switched a month after that. Now everyone uses a mac lol. All the devs anyways.

#

Takes like 20 minutes to compile on a windows pc. about 45 seconds to a minute on a mac or linux machine.

limpid reef
#

Hmmm weird - only took 5 minutes to ./configure, make, and make install on my i7-4790K system with 24GB RAM. Unfortunately, Windows Subsystem for Linux doesn't like building with the --enable-optimizations flag though, so my python3.6 is unoptimized 😛

fast imp
#

Hello... Any NodeJS/JS legends online, who can maybe take a look at this for me?:
https://stackoverflow.com/questions/53223862/nodejs-and-google-calendar-api-export-event-data-to-application

I have asked this question. I am not sure where to go or what to do really.. 😃 hope someone has a spare moment 😃

little knoll
#

@fast imp maybe you should look at ES6 import/export, you'll have less chance having export issues with ES6 syntax (IMO)

fast imp
#

roger 😃 thx

sweet stirrup
#

Hay everyone,
I want to play some music via online radio with a link available .
I want to embed it in html5
Can anyone help me.

little knoll
#

Just use this link as a source for a audio tag

proper gale
#

@glad terrace what are you compiling that takes 20minutes vs 45-60 seconds?

#

ive had link time differences of 10 vs 40 seconds, but 1200 vs 60, doubt.

glad terrace
#

I suppose it wouldn't totally be considered compiling but... It's a dynamic web app that gets minified and zips up a bunch of assets that get mapped files to their location generated and archives and the app itself to be deployed all across America. The assets themselves are about 2GB.

proper gale
#

sounds like a problem with the difference between the UNIX and DOS filesystem

#

and the OS filesystem implementation.

glad terrace
#

Probably

proper gale
#

assuming same/similar hardware

glad terrace
#

Windows is absolute garbage for it

#

Better hardware in the Windows machines

#

actually

proper gale
#

from the commandline both Mac and Linux have one root directory '/'

#

with windows each mounted virtual drive (partition, .vdhx, etc) has its own root, the problems this can cause alone

#

and in general the windows file system is slow iirc.

nova moth
#

Any c++ devs?

#

Wht this code returns this and creashes before returning me a real value:
BYTE * BASE = programModule.modBaseAddr;

double * XCor;
XCor = (double *) (BASE + 19315432);

cout << "XCor:" << XCor << endl;
cout << "&XCor:" << &XCor << endl;
cout << "*XCor:" << *XCor << endl;
#

Any ideas?

proper gale
#

@nova moth why is XCor a pointer?

nova moth
#

What can it be?

proper gale
#

the print outs you are getting is the current pointer value, the pointers location, then you try to dereference an invalid pointer.

#

why are you touching pointers if you dont know what they are?

nova moth
#

I need to know what value is at BASE + 19315432

#

But as a double

#

I know what they are. Just never done what I'm trying now and I'm a bit confussed

#

a bit = A LOT

proper gale
#

why 19315432 byte offset?

nova moth
#

Need to read what is there

proper gale
#

you are 100% sure that is the address?

#

also, its your case

nova moth
#

I'm reading from another program's heap memory

#

Yes

proper gale
#

you are casing to a double, writing that to a pointer (as the address), then reading from that

#

cast to a double* and you are good

#

(double*)(BASE + offset)

nova moth
#

I thought I cast BASE to double *

#

I had missed to place the *

proper gale
#

see if that gives you what you expect

nova moth
#

It is there

#

This the code I sent as text

proper gale
#

should work given your address is correct

#

still dont see the point of checking the address of the stack variable.

nova moth
#

Not working

upbeat folio
#

Need a sanity check on this: Is it correct to say that, when working with large datasets (~500,000 records), sorting the data in the interest of performing a binary search is only worthwhile if the data is going to be searched more than once?

nova moth
#

LEt's say yes

#

If I do less than 50 searches in that sort of a database I won't bother sorting it.

upbeat folio
#

That's about what I was figuring, but wanted to make sure I had my head on right. Thanks!

nova moth
#

OK

#

Why is this an error

#

I don't want to intialize it

deep scarab
#

well for starters, read the msdn on readprocessmemory

#

because your arguments are wrong

nova moth
#

I readed it

#

And now it says memory access violation

#

But I open the process with ALL_ACCESS

deep scarab
#

i wonder why

#
BOOL WINAPI ReadProcessMemory(
  _In_  HANDLE  hProcess,
  _In_  LPCVOID lpBaseAddress,
  _Out_ LPVOID  lpBuffer,
  _In_  SIZE_T  nSize,
  _Out_ SIZE_T  *lpNumberOfBytesRead
);
#

the 3rd argument is the value read from lpBaseAddress

#

it's trying to write to that argument

#

but XCorVal is uninitialised

#

so it's just gonna be some random address

#

hence why you get a memory access violation

nova moth
#

What it has to be?

#

Really want to know

deep scarab
#

learn c++ first

#

because you clearly don't know what you're doing

fresh lance
#

Oh good there's a dev channel

#

Now I can complain a lot

#

:^)

fresh lance
#

this stupid cmdlet and its stupid --prefix param

#

had me searching for a few hours on "how the hell did they import this cmdlet out of literally nothing"

#

doesn't help that the existing code was 5 years old, awful, and written by the people we're replacing

nocturne galleon
#

}
else
{

obsidian bluff
#

everyone disliked that

burnt stump
#

Nice icon, @fresh lance

#

that brings back memories 😥

kind portal
#

Alright lads, need a bit of help with java.

#

I have made a table, you know, the ones made by doing so:

int[] table = new int[number];```
#

How do I list all of the variables in a System.out.print?

#

Just realised I could use a loop for that, but is there any way to list all values?

deep scarab
#
for(int i : table) {
    System.out.println(i);
}
kind portal
#

Thanks

undone parcel
#

Hi guys, goodnight. Some one knows how i can to assign a value of a variable that is being referenced by a pointer to another? (in different functions) - using C

deep scarab
#

provide some code? @undone parcel

undone parcel
#

just a sec

undone parcel
#

I thought better at what i was trying to do, and notice that was unnecessary. @deep scarab thanks.

analog maple
#

while true; do

#

echo Bash4ever

#

done

glad terrace
#

lol

#

Bash on Ubuntu on Windows

proper gale
#

jesus fuck no, boot ubuntu instead

round dome
#

ubuntu yuck

tropic sapphire
#

@last ingot that is nice. I use dark reader on chrome/Firefox to make everything have a dark theme.

glad terrace
#

@proper gale It was only a joke but yeah, I agree. I used to use that a while back though lmao.

arctic nebula
#

Anyone got any idea for beginner programming challenges for neural networks

proper gale
#

@arctic nebula how beginner?

arctic nebula
#

Quite an experienced programmer however extremely new to neural networks. Almost done a tic tac toe game and looking for other stuff to do now.

#

@proper gale Tagged you so you see it. Not nagging fyi

proper gale
#

then challenges in what way?

round dome
#

OCR, wall collision

#

Bot for any game

ionic hull
#

@last ingot I was in the same position, play games or work

#

Now I am 17 and I am a web freelancer, no time for games

#

Bought a new PC without GPU

#

If I'm not working, I am learning bullshit js libraries or new stuff

#

Both sometimes

#

Mainly backend

#

You get to the point that you can just copy the whole codebase and change a few rhings

#

Because it is repetitive as fuck

hallow flume
#

is this the right chat to ask for programming help?

deep scarab
#

probs

hallow flume
#

y'know what, dont worry i figured it out on my own 😂

glad terrace
#

@ionic hull I'm planning on purchasing a ~500GB NVMe drive to keep linux on separately for work so I can boot into linux or windows depending on what I'm doing.

lean island
#

If you've got a decently powerful gaming rig and are just doing webdev or other light dev just put linux in a VM. Also means you can isolate projects inside their own dedicated VMs if you want to, or try lots of distributions, or other fun things

glad terrace
#

I put a $2000 USD budget on upgrading my office. So far I've spent $680 on a Sit/Stand desk. I already have an $800 office chair and think I'm going to pick up the Alienware 34" ultrawide monitor and a couple monitor arms for that and my other monitor. Should put me right at that 2K mark

#

I will use a VM to at least try out some new distros (thanks for the advice never thought of that) but I'm a little bit of a performance snob and have to have a real install lol.

#

My desktop isn't super special but it't probably better than average. i7-7700k, GTX 1080, 16GB ram (want to upgrade to 32gb)

lean island
#

Not far from mine except for RAM. I'm on an i7 7800X, GTX1080, and 72GB RAM

#

But really, most linux os's run great on very little hardware, so can comfortably run on 8-12GB and 6 of your 8 threads (leaving 4-8GB and 2 threads for the OS to sit in the background and not die).

Trying different distros can be really interesting. If you're using Ubuntu (and statistically, you probably are) try Fedora (or CentOS), and perhaps Manjaro. Or go full masochist and install Gentoo

glad terrace
#

Manjaro is one that really caught my eye I think. Thats the one that is basically easy mode Archlinux right?

#

I currently use Ubuntu haha. But yea, I'll be running a bunch of docker containers to basically run a clone of my server for web dev work and easy deployability and testing. Not sure that I would completely trust a VM to replicate it well enough but then again that's what docker is for lol. But also performance...

tropic grail
#

@last ingot spammy there bud. Single/condensed messages are nice...

deep scarab
#

bind enter to shift enter

#

problem solved

#

;^)

proper gale
#

@last ingot besides that i recommend not arguing with a mod [specifically over how to mod], constant patrol is not going to happen. it being 20 hours later is purfectly reasonable.

timber violet
#

i have been working on a music bot recently for discord and have run into a bit of an issue. Occasionally the stream will not resume after a song ends. There dont seem to be any errors and the bot still lights up in the chat as if it were still making noise.

Its strange because this only happens intermittently. When it does happen, the only solution is to restart the bot twice. Why twice? i dont know.
i use discord.js and ts
anyways here is what i believe to be the relevant code :

#
 this.connection = await this.connectToVoice();
        var end = async function () {
            setTimeout(() => {
                var t = this.account.popNextSong();
                this.dispatcher = null;
                this.dispatcher = this.connection.playArbitraryInput(t.audioURL);
                this.dispatcher.on('end', end);
                this.channel.send(this.makeEmbed(t));
            }, this.delay);
        }.bind(this);
        await end();
carmine eagle
#

I’ve bought an internet domain (___.com). I want to host a website from a raspberry pi. What would be the pest solution?

vestal glen
#

to have a static IP

carmine eagle
#

@last ingot I’ve also heard of noip. Don’t they create their own domain? I want to use my existing domain. I haven’t read a lot about it, but both services would redirect the domain to the raspberry pi without changing the domain. e.g. test.com would not result in 88.865.755.76. Am I right?

carmine eagle
#

Is this service free?

limpid reef
glad terrace
#

@carmine eagle You can use CloudFlare DNS management to do what you're looking for. You just would run a update script on the RPi every few minutes to ensure it stays updated.

#

It is free and a ton of other features.

crude vessel
#

So I'm trying to make a website using node js and I have a digital ocean droplet ready but I'm a little lost on how to make the site actually viewable and not on local host. I've done it before with python using nginx and gunicorn. Anyone able to point me in the right direction?

proper gale
#

+1 for cloudflare

nocturne galleon
#

Highly recommend cloudflare, especially if you're hosting on your home network. It masks the originating IP and offers DDOS protection.

little knoll
#

@crude vessel you should look at some guide about using Nginx as a node app proxy and how link it to a domain name (or just use your droplet IP as the app address in your web browser)

crude vessel
#

hmm okay ty

little knoll
#

You just have to "proxy" the node app port (most of the time it's port 3000) with Nginx to the default http port (80) and your Nginx server will also confirm that requests from port 80 come from the correct domain name (in the case you are using a domain name)

#

If there is any specific setup involved in your app infrastructure, don't hesitate to send a small drawing showing how your app is setup on your droplet, it will help us guiding you in the right direction ;)

carmine eagle
#

Thank you everyone!

velvet mirage
#

Anyone that knows php and mysql can you play dm me

#

I'm having an issue with mysql tables ect

#

After moving my website to a different host

crude vessel
#

many thanks guys

prisma holly
#

Can someone help me generate a couple CTFs (capture the flags) flags?
I need someone with python installed and I currently am not on a computer with python installed
here is the resource https://github.com/ss8651twtw/flag-generator
I just need a couple flags so that I may run my own game of capture the flag
If you would like to learn more about CTFs then liveOverFlow on youtube has a great variety of videos on what it is
it's basically a way to have fun being a penetration tester but also by putting your skills to use
the point of the game is to try and get the flag.. quite obvious but in order to do so you will need to use some penetration testing software and there are two main types of CTFs challenges:Attack-defence CTFs consisting of two teams, one team who defends a network or server, and another who attack it. A jeopardy-style CTFs consisting of completing different challenges from categories in order to earn points. Learn more at https://www.cybersecuritychallenge.org.uk/competitions/capture-the-flag

#

dm me if you wanna help me

elfin mica
#

Does someone know about a website that emulates how other websites look like on certain iOS / Android devices? And also lets you download what you see as a PDF or at least PNG/JPEG?
Did a lot of publishing work in CMS and want to mock up the product, but screenshotting everything is a royal pain in the ass.

ionic hull
#

That would require using webdrivers for each browser, that is a pain in the ass

#

I doubt that there is one

elfin mica
#

I mean, you can easily find websites that scan other websites and compile them to PDF, but they never get everything right. Is that why?

#

I bet I could make my own if I knew javascript.

#

Worst case scenario, I would have to screenshot everything for the iPhone mockup on my iPhone, but PDF > PNG in terms of quality.

elfin mica
ionic hull
#

@elfin mica you need python

#

And selenium

#

Or c#

elfin mica
#

@ionic hull actually no. Turns out iOS has an automatic PDF-maker built in. WTF

#

Sometimes I want to hate Apple more than they deserve. This is top tier shit

#

It’s automatic, and it makes perfect PDFs from websites

#

How is this even possible

round dome
slender bolt
#

uh you can download websites on some android skins

ionic hull
#

I was suggesting something more automatic

cloud knot
#

@elfin mica OS X and iOS render in PDF (not kidding)

elfin mica
#

@cloud knot interesting! That makes a lot of sense then.

proper gale
#

@cloud knot Jobs talked about this a lot with the Mac OS 10.0 release, its actually quite well done.

upbeat folio
#

Is it worth using a managed service to put up a web server, or should I just build the (probably serverless) infrastructure myself on AWS?

proper gale
#

the fuck is serverless?

upbeat folio
#

~the cloud~

proper gale
#

the not my datacenter

upbeat folio
#

Basically, instead of a traditional server running a LAMP stack or something like that

#

You would, for instance, rely on API Gateway and Lambda on top of a data layer (I’d probably do Aurora, but Dynamo would work just as well) to serve your website, rather than using a dedicated server.

#

For simpler stuff (e.g. running a blog), it works pretty well.

proper gale
#

yea, i see why

#

but its not "serverless"

#

its shared servers

upbeat folio
#

Well no. Nothing is truly serverless, but that’s the buzzword.

proper gale
#

about as accurate as Deeplearning

#

what would AWS cost?

upbeat folio
#

Cheap. If you don’t have a lot of traffic, your main cost would be DNS fees

#

(could probably actually make it pay for itself with Google ads)

proper gale
#

shared web hosting is cheap too

upbeat folio
#

Aye. We’re talking just a few dollars’ difference per month, if even that.

#

Though if I went AWS, I’d also be able to familiarize myself with the platform a bit more, which is very marketable.

nova moth
#

Hello!
Can somebody explain to me why this is an error?
error C4700: uninitialized local variable 'XCorVal' used

proper gale
#

@nova moth why, or what?

nova moth
#

Why this is an error

proper gale
#

what language?

#

ahh, thats an MSVC error

#

@nova moth when memory is allocated on the stack, quite commonly this is on top of what was just there from the previous call, so you will get random data in the variables location

#

so, attempting to use it without settings its value will give you a "random" value, not 0 as you may expect

nova moth
#

I know

#

I don't care what is in there

#

I give it to function to write in it

proper gale
#

its complaining about you taking a reference/pointer to it?

#

what is the code

nova moth
#

it was declared as follows:
double *XCorVal;

#

The language is C++

#

I know

proper gale
#

how is it being used?

nova moth
#

I give it to ReadProccessMemoy()

proper gale
#

Visual Studio should be giving you the exact line its complaning

#

post your exact code.

nova moth
#

I made it work

#

just declared like:
double XCorVal;

#

And gave it to ReadProccessMemory() like %XCorVal

proper gale
#

&XCorVal*

#

what are you reading though, that call sounds extremely dangerous.

nova moth
#

Reading my location in a game

proper gale
#

hmm

nova moth
#

I'm not using it to cheat

nova moth
#

Can I ask another stupid question?

#

In what types can a cordinate be saved? I think it should be double or float

granite fog
#

Realistically you only need 6dp worth of precision, that will get you within 10cm at the equator

#

Even at 6 the chance of accuracy losses from GPS is very high

nova moth
#

I'm talking for a game

proper gale
#

@nova moth could be double, float, int, long long, and for the latter two the unsigned variant as well.

#

@last ingot hmm?

nova moth
#

The value it shows in-game is 35.23....

#

So ...

proper gale
#

double or float

#

if you could get the memory where you expect it to be, i can tell you what it is

nova moth
#

U got it

#

I've got it

#

CheayEngine says it's double

#

But when run as a double in my program it gives me some number, which value is below 1

nocturne galleon
#

I'm not using it to cheat. References variable type from cheat engine.

nova moth
#

I'm trying to make a SP game into a MP one

#

For that I need to reverse-engineer some parts of it and to find where variables are stored

nocturne galleon
#

queen I don't care. Just what it sounded like lol

#

Been a long time since I've dabbled in C++

nova moth
#

Yeah

nocturne galleon
#

I've been working in C# and React.js lately

nova moth
#

Cool

proper gale
#

i have my main project, which is a Voxel engine

#

its a long way off from anything showing up, but im working on it

#

and thats about it.

nova moth
#

I'm interested too

nocturne galleon
#

Minecraft is a voxel engine

proper gale
#

a bad one, but yes, it is

nocturne galleon
#

Ace of Spades was one

#

Space Engineers

proper gale
#

@last ingot as @.what#0878 said, minecraft is a Voxel Engine, sadly minecraft is a bad one.
what im trying to make, is basically a better minecraft, built from the ground up using currently bleeding edge technologies and techniques, who knows how long it will take me to get it to a working point though.

#

C++20

#

C++20, with LuaJIT for scripting

#

i plan to extend it to be interoperable with Java aswell

#

for all its faults, Java handles runtime code changes really well

#

remember that its a voxel engine, so its less of write a game, think more similar to minecraft without content

#

so, yes

#

you can extend it in C++, as that will be the first way

#

but most definitely the hardest.

proper gale
#

@last ingot the language itself, is not the problem.

#

And as soon as I get base level stuff done, yes, people can help.

obtuse night
#

I am looking for a new laptop for around £500 (I am in the UK) and do extremely basic programming as a hobby in languages such as Python and Java. Will a laptop with an i3 8130u with 8gb ram and an SSD be ok or do you think I will need a i5 8250u laptop? The programming I do is stuff like a simple tic tac toe game, password generator/cracker etc.

#

Please @ me if anyone replies

ionic hull
#

@obtuse night it will do just right

lean island
#

@obtuse night You can program quite fine on anything from the last 20 years or so, if it can boot a linux distro with even just a command line interface then it can be used to program quite comfortably.

glad terrace
#

@obtuse night Find a used Thinkpad. Those things are awesome.

proper gale
#

^ the good idea

obtuse night
#

im back, thanks for all the replies. I am currently looking for a Thinkpad, however most of those in my area have been damaged lots. I am still looking though

nocturne galleon
#

Wow more devs! I got your back!

#

Or in simple terms. Ask me is you need help

#

(And other devs)

ionic hull
#

How do I get a shit ton of upvotes in stackeroverflow?

shut plinth
#

don't ask about the forbidden arts

glad terrace
#

@ionic hull Post the best answer on a common issue that hasn't been answered yet.

#

😛

shut plinth
#

I think you meant recommend some stupid library or write a damn essay

nocturne galleon
#

Oh wow okay

#

Well, @last ingot if you were a real developer you would not say that kind of stuff. I kindly say for you to leave this chat alone for you are either not a seasonal developer and/or are trying to be the leader that you cannot be. Thank you

#

Okay it is good to know that you are not just some random person joined int this chat, I do have to say that this code life is real

#

This is good validation and you have earned some respect from me

obsidian bluff
#

Is there a faster way to do:

git pull
git stash pop```
?
tropic grail
#

Not particularly.

vale hollow
#

Hi there !

#

Anyone could help me with HTML ?

vestal glen
#

if you state what help you need the probability increases immensely.

vale hollow
#

Yeah maybe

#

Is it possible to hide some line in my website with a password ?
I mean, my website has only the index page, but there is 3 links that I want to password protect (hide it with a password or when you click it ask a password without seeing the link behind )

vestal glen
#

do you have any kind of server backend? So can you run php or perl or js or python or ruby etc.?

vale hollow
#

Sadly no, I just have a free domain name with 10gb storage

vestal glen
#

(probably would support php though)

#

uh, what you can do

#

is to have a JSON file with the actual links in it and password protect that via server config

#

(HTTP basic auth)

#

and then load that in via JS, triggering the basic auth for the pw and username, and then replace the link contents if the file is loaded successfully

vale hollow
#

🤕

vestal glen
#

(this is client side JS)

#

html itself doesn't have any access management, but HTTP does, so that's one way to do it...

vale hollow
#

I will work on that, thanks for the precise answer !

nocturne galleon
#

Just setup an .htaccess file

#

Something like this:

.htaccess

AuthType Basic
AuthName "Password Protected Area"
AuthUserFile /path/to/.htpasswd
Require valid-user

.htpasswd

test:dGRkPurkuWmW2
#

And put it in a sub-folder called "protected" or "admin" or something

#

@vale hollow

vestal glen
#

that's assuming it's a server with htaccess files enabled and supported.

ionic hull
#

Free hosting usually lets you have .htaccess files

#

And they usually provide cpanel

#

And there is a page on cpanell to set passwords in a folder

stiff gull
#

One thing that bothers me a bit from all the RTX reviews is that none of em mention the increased CUDA version and the new Mesh Shader pipeline

#

which is epic for VR stuff

#

its all "muh RTX"

#

and then everyone bases it on Battlefields implementation

#

RTX is super ideal for realtime AO

#

could be done with basically no performance loss

#

so I feel LMG didn't do the reviews justice really.. They're paving the way for real time raytracing which is major

#

can I notify any of the LMG staff about this? (or someone).. I really think they should add a bit of justice to their RTX review or at least explain that this is major for the future rather than just shitting on NVIDIA for this

glad terrace
#

@stiff gull Honestly they probably are aware and on top of that don't care. For the premium it's not worth the money unless you're trying to do some super heavy lifting and just need that extra bump.

stiff gull
#

It just hurts to see a valuable effort to forward the graphics industry to something that can actually reach realtime photorealism (in time) to be so shit upon.

#

ofc this is only the first generation of this tech

proper gale
#

It's slow, and raster methods are really good at faking it.

stiff gull
#

but if they get only shit about it they'll just remove it and forget about it rather than improve it

#

@proper gale rasterisation only gets you so far

glad terrace
#

It will be a thing in the future but like all new tech it's called the bleeding edge for a reason.

stiff gull
#

especially lighting wise

proper gale
#

It's damn painful

#

Lighting is very costly to compute regardless of method.

stiff gull
#

doing realtime GI is a very big pain on rasterisation

#

through raytracing its done a lot faster

glad terrace
#

Part of the issue is there were no games that supported it at launch.

#

Why pay for a feature you couldn't use?

proper gale
#

Most raster methods are limited by draw calls and the GPU's speed

stiff gull
#

couldn't use "yet" and then not everyone is a gamer.. If I still had a old GPU instead of my GTX1080 I would've bought one to have fun with those features myself

#

still really wanna try out mesh shaders but I can't

proper gale
#

Dual+ GPU vulkan could help this by using a secondary card to do some additional renders.

#

Ex: shadowmaps

glad terrace
#

NVIDIA absolutely failed by all standards of a proper product launch. Period.

stiff gull
#

@proper gale you'll still be bound by problems like shadow bias and resolution

#

cascade shadow mapping, how decent it is for now is still quite expensive

#

requiring N renders of the scene for shadow data

proper gale
#

Yes, but it's damn good, so Ray tracing needs to be fucking fast to match it.

stiff gull
#

its super cheap for rays to shadow test

#

though that'll get you hard shadows

#

and don't forget that it runs parallel to the rasterisation

#

its a whole separate processing unit

proper gale
#

I primarily see Ray tracing only being a thing is slow single player games, until a xx60 class card can do 60hz at a reasonable resolution

stiff gull
#

so if you spent 10 ms on a frame, that's 10 ms you can also raytrace

#

@proper gale I think we just need to 'know' that BF's implemenation for RTX is flawed

proper gale
#

On bleeding edge Nvidia hardware

stiff gull
#

if they had gone for realtime AO that wouldn't have cut their FPS into more than half

#

rather than trying realtime scene reflections

#

which is wayy beyond the budget for RTX

#

at 1080p60 you get a 7 rays per frame budget

#

realtime AO takes 2-3

proper gale
#

7 rays will get you 3 pixels tops.

stiff gull
#

7 rays per pixel

#

-per frame

#

ofc if you scale up the resolution that drops hard

#

but still 10 gigarays is a lot of "free" processing power

#

they just don't need to use it overzealously

#

like BF did

glad terrace
#

I've been a BF fan for a long time. I own every version except V and wont be buying it.

stiff gull
#

I just hope there's some smarter game devs out there that can realise its potential rather than abuse it

#

I'd make a demo but sadly I lack the hardware for it

#

(also quite busy with my current project)

#

I mean I have nothing against Battlefield but they just completely wrecked their RTX stuff

#

the video mentions them staying about 60FPS but apparently they removed some of their optimisations

glad terrace
#

Quite frankly I'm not sure I could care less about fancier lighting and I know I'm not the only one. It shouldn't be the main focus of their cards.

stiff gull
#

I mean they could literally use RTX as a performance booster instead

#

lets say they didn't do all that stupid reflections stuff

#

just the normal game

#

now instead of using SSAO which drains performance, they could use RTX on parallel as a free boost to replace that

#

now you have better AO and more FPS

glad terrace
#

But did they?

stiff gull
#

no, but that's the stupid thing, if they did that RTX would be in way better light already

#

"RTX, better visuals AND more fps!?"

glad terrace
#

There ya go! Coulda, shoulda, wouldn't, didn't! lol 😃

#

I personally want more horsepower. Not fancier lights on my car's dashboard.

stiff gull
#

but that IS more horsepower

#

you just have to use it efficiently

#

its like getting extra cores on a CPU

#

but you actually have to UTILISE those cores for more power

glad terrace
#

not my fault they aren't so no... not really. If I don't get any benefit from it then there is no real value.

stiff gull
#

well then why get a GPU with OpenCL or CUDA cores if they aren't used anyways

waxen summit
#

IIRC BFV was also developed on non RTX cards. So while it's the first, I think we'll see later properly what RTX can bring.

stiff gull
#

it has a "RTX enhanced" feature

#

which enables the special stuff, its built upon it

#

so you won't be able to enable it on non-RTX cards

#

not that you even WANT to enable it on RTX cards with that FPS...

waxen summit
#

Doesn't BFV use the Direct X 12 Ray tracing stuff ?

#

Which doesn't need RTX cards.

stiff gull
#

it does need RTX cards

#

its a specific extension on those cards that allow for it

#

VK_NVX_raytracing GLSL_NVX_raytracing SPV_NVX_raytracing

#

and whatever the Dx12 flag is (can't find it)

#

anyhow DXR works through that specific flag

#

so your card needs to support it

#

which is basically only the RTX cards and their workstation variants

waxen summit
#

For devs, they might have allowed it. As they also had access to DRX before the version was out.

stiff gull
#

there was a emulation for DXR through some SDk

#

but its working through compute and really slow

waxen summit
#

Which could be good enough to develop stuff.

stiff gull
#

yeah but not for release

#

which is what I'm saying

#

BF requires RTX

nocturne galleon
#

Hey guys. I'd really appreciate it if any of you have time if you could reply to my post on the forum. Thanks 😃 https://linustechtips.com/main/topic/1000886-game-dev-mobile-workstation-recommendations/?tab=comments#comment-12013814
(Forum post is about deving. Trying to post this link in the right channel)

proper gale
#

@stiff gull those extensions are Vulkan only.

stiff gull
#

well I'm only really using Dx11 so I haven't too much experience with the others but I know there are query flags for every API

#

same with OpenGL/Vulkan/Dx12

nocturne galleon
#

anyone any good with CAD? I need some relatively simple work done and will pay someone

balmy cedar
#

Does development also include programming?

deep scarab
#

sure

little knoll
#

@nocturne galleon I have a degree in CAD design, mainly using SolidWorks (or Autodesk Inventor) with metric system. Just tell me what are your needs, if that's urgent or when you want it in the best case and your budget. Also, tell me if you only need the 3d model or if drawings are also needed and if yes, in what format :)

#

You can PM me if you prefer :)

fresh lance
#

Client user: "You need to write a user guide so I know how to use your app"

#

Client user: "I didn't follow your instructions and it won't work. Fix it."

fresh lance
#

a python application that takes information from our access management system and reconciles access with our ticketing system, making sure that everyone who gained new access to an application requested it through a ticket

#

so yeah

#

not just "make it simpler lol"

fresh lance
#

...none, it's a very specific use case

#

it's not just writing a webserver

cloud knot
ionic hull
#

That looks awesome

nocturne galleon
#

Wow

dreamy finch
#

Anyone here mess with OpenACC and getting code to run on Nvidia GPUs?
I had to write a program as a final project that calculates multiplication matrices, a problem set that benefits from parallelization. Supposedly my GPU can calculate it faster than my CPU but when running it on my CPU it's almost instant. So... idk.