#development

1 messages · Page 34 of 1

sterile tapir
#

Most people do stuff because they can not because they need to

#

It's a nice idea

ionic hull
#

If you have the extension and the password, you can see the decrypted message

ionic hull
#

@small escarp I write something in the chat, press ctrl + q, it shows a little message ( Copied to clipboard ) and you just paste it. I couldn't make it that the script inserts the encrypted text into the text area because discord has some kind of protection against $(textarea).val("some_text") and the 'e' and '0' are gone because someone changed my nickname in that server :/

finite locust
#

thats pretty cool

#

is it on github @ionic hull ?

ionic hull
#

@finite locust I made it yesterday because I was bored, I have no plans for this :l

#

I took discord's email template and put it there

finite locust
#

very cool

ionic hull
#

thanks

cloud knot
#

now all you need to hope for is that there are no backdoors in NSA approved RSA /3DES/AES/etc algorithms 😃

ionic hull
#

Everything has NSA backdoors :/

main wyvern
#

Not everything

tropic sapphire
#

@cloud knot Why would there be a backdoor? Backdoors they can use is a backdoor anyone can use.

Unless the back door is obscure and hard to find then the NSA notifies about it.

Remember they in charge of national security as well as offensive, blue team > red team.

cloud knot
#

@tropic sapphire recent example https://en.wikipedia.org/wiki/Dual_EC_DRBG

Dual_EC_DRBG (Dual Elliptic Curve Deterministic Random Bit Generator) is an algorithm that was presented as a cryptographically secure pseudorandom number generator (CSPRNG) using methods in elliptic curve cryptography. Despite wide public criticism, including a potential bac...

ionic hull
#

And the windows exploit that they had?

#

Not a backdoor, but they have the ability to do what they want

tropic sapphire
#

SMB had one for years yeah, though that encryption one is "not proven" but you're right probally was. seems dumb to weaken your own encryption though right?

tropic grail
#

NSA can crack any key relatively instantly.

ionic hull
#

Let me pivit the extension then :/

#

*chat with your side chicks when girl friend is around

tropic grail
#

When ya girl is NSA, and NSA is always watching...

hollow dune
#

Eyy, got my new discord bot working pretty good

#

It uses pcpartpicker to grab info, tho i think i will move motherboard info to motherboarddb.com

#

or atleast a pc>a_mobo to it

#

or something that signifies more advanced infos

civic mountain
#

nice

icy barn
#

Interesting

#

can we use it @ionic hull

dry lark
#

i have a simple question:
i have a loop (that i didnt make)
for %%i in ("D:\temp\osu!\Data\r"\*.osr) do (%%i timeout /t 1000)
for which the timeout part isnt working

#

even setting it to -1 doesnt work

mental hemlock
#

I can assume the language, but there’s overlap. Which language are you using?

dry lark
#

this is a .bat file that i grabbed from a forum

#

i have it as a semi-automatic restore process

mental hemlock
#

What are you trying to achieve, what ia the expected result, and what result did you get?

#

Is*

dry lark
#

i need to open all files in shown directory, while waiting a certain time between each one

#

what im getting is the script opening files at max speed, regardless of the number, said speed is about 5 files/s

mental hemlock
#

Try uppercase T

#

timeout /T 1000

dry lark
#

same result

#

im not the one that wrote it, i know nothing about this

#

i only know that it opens all files from a directory it's pointed at

mental hemlock
#

I’m not a master in batch programming, however, I’m going to say that the do part isn’t capable of using a do statement.

#

Atleast not directly.

#

For (statement) in (statement) do (statement), so my mistake there.

dry lark
#

it opens files just fine, it's just the timeout isnt working

#

i can screenshot what the console spits out but i dont think it will help

mental hemlock
#

Ehm. Perhaps use a ping delay?

dry lark
#

ok it's fixed

#

apparently i needed & between %%i and timeout

ionic hull
#

@icy barn ehm, I can put the code on GitHub when I have the time

mental hemlock
#

Not a master in bash scripts 🙈

dry lark
#

yeah considering i didnt know how batch files worked i wouldnt have known that timeout is a command and not a parameter

ionic hull
#

For the those who are using resumable.js + php, if you are interested I remade the php upload server because the default one is broken af, contact me if you need it :)

cloud knot
#

@ionic hull not interested, but just a minor note - considering the original is on github, why not make a fork of it on github and even consider sending a pull request ?

#

(well unless the server isn't on github)

proper gale
#

@dry lark what are you trying to do?

#

bat may not be how you want to do it, depending.

ionic hull
#

@cloud knot I might do that :/

dry lark
#

i fixed it already its fine

#

@proper gale i only needed a way to open all files from a specific directory, one by one

proper gale
#

i know you fixed it, but why do you need to do that

#

and are you only opening the files?

dry lark
#

only opening them

#

the files are replays from a game called osu

proper gale
#

i got that it was osu

dry lark
#

once opened they are recorded onto the database

#

the reason i do that is because sometimes the game like to shit on me and make maps magically disappear from the database, taking all local scores along with it, luckily i always have backups of all local scores

proper gale
#

huh, if you are only opening them then that bat is fine, unless you want fully automatic.

dry lark
#

well, if it's possible to make an automatic backup process that would be nice too

#

opening them trough a batch file is as automatic as it gets

#

the game's local score database rebuilding is inadequate and unreliable

proper gale
#

register a startup process, then automatically list the directory and open all new files every few minutes, using a timeout in-between to keep CPU to a bare minimum

dry lark
#

i dont need it to open all new files every few minutes

#

i only need that when the game breaks

proper gale
#

right, this is for fully automatic

dry lark
#

besides, in order for the restore to happen, the game needs to be opened, and cannot be used while restore is happening (opened replays show the scorepage)

proper gale
#

also consider that unless you have a few hundred thousand, we are talking about an absolutely tiny amount of work.

dry lark
#

i have 3200 replays

proper gale
#

hundred thousand

#

3200, ezpz

#

its asking windows to open it, not even read anything

dry lark
#

the game needs to read it though

#

with delay at 0, the most it can do is 5 files/s

proper gale
#

thats because its bat

#

bash is linux, not windows

#

even a python script should easily be able to leave that bat script in the dust in terms of speed.

dry lark
#

im pretty sure it's the game limiting the opening of files, not the script

#

the reason i wanted the timeout is because at timeout 0 there were replays that were skipped over

#

because of how fast it was going

proper gale
#

now i see exactly what this is doing

#

so, if bash is good enough, continue with that, if you want fully automatic, i know how to do that.

dry lark
#

i have too many other problems with the game to go full automatic

tropic sapphire
#

@proper gale I would suggest a cron job rather than a timeout.

proper gale
#

thats Linux if i am not mistaken.

tropic sapphire
#

windows has scheduled tasks which provide the same functonality

dense grail
#

oh god installed visual studio in a native language windows.. these error messages

#

"Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'De beste treffer voor de overbelaste methode voor System.Collections.Generic.Dictionary<int,Timespinner.GameAbstractions.Inventory.InventoryOrb>.ContainsKey(int) heeft enkele ongeldige argumenten'"

sharp cipher
#

i hav ea question

#

what programming language should i learn first?

ionic hull
#

Python

dense grail
#

Greatly depends on what you want tho

mental hemlock
#

To be fair @dense grail even when it’s in a different language than English, the debugger is so clear you can fix everything quite easily

dense grail
#

yeh its not hard to fix, but these sentences just make no sence

mental hemlock
#

They do @dense grail

#

It’s telling you one of the methods you made is given the wrong type of parameters. In overload it also couldn’t find the correct method to use.

torpid knot
little knoll
#

XD

#

If it was a #networking job offer, I'd think they want to fix their servers (or install new ones instead of those inexistent ones linusKappa )

upbeat citrus
#

wow

#

is that the real Linus

dense grail
#

my colegues hate it, but i am a big fan of premature optimisations 😄

torpid knot
#

@little knoll yeah i think anticheat stuff is more about coding

#

it seems like their server connectivity issues are gone

#

btw @upbeat citrus dont tag staff

tropic grail
#

@upbeat citrus banHammer

upbeat citrus
#

Sorry

proper saddle
proper gale
#

@proper saddle what do you want to gain from it?

proper saddle
#

I already bought it. :v

#

And so far I'm really enjoying it. The instructors are really great!

ionic hull
#

🤔

thorn scaffold
#

I can't tell you how many times I've gotten an error is Visual Studio, looked over my code for two hours, then realized i deleted a semicolon

cloud knot
nocturne galleon
civic mountain
#

Wish I had any artistic talent feelsbadman

#

my art is scribbles and dull blocks of color

nocturne galleon
#

same

little knoll
#

Welp, that was too tempting, I bought this course and it looks really cool !

dense grail
#

wait that picture is a render? it though it was real..

proper gale
#

its a render

dense grail
#

dafuk only for 10euro lol

#

90% discount 😱

ionic hull
#

@dense grail you just got baited

dense grail
#

not really why?

#

i didnt buy it as i dont do anything with blender or any kind or art

willow matrix
#

I suggest looking up blender tutorials on youtube first

#

there are quite a few that show you how to make 3D scenes

nocturne galleon
#

@dense grail I think what he means by getting baited is that it says its 90% off all the time, the timer on the sale resets to 5 days and its the same on all their courses

dense grail
#

Heh, ah it's one of those timers

proper saddle
tropic grail
#

Guess they only dev for ie then.

vestal glen
proper saddle
#

The op for my tweet said that the one that looks the closets is edge.

tropic grail
#

Funny considering how Edge is literally an ie reskin with less features.

#

No OGG support at all.

foggy crane
#

@tropic grail are you able to pin messages to this channel?

#

You're so missing gif of ballmer going with his developers rant from the pins 😛

tropic grail
#

What do you need?

#

Kinda counts as a meme.

foggy crane
#

ah, bummer 😛

hollow narwhal
ionic hull
#

Where is the part where he dreams about code?

#

I'm really curious

stuck wedge
dense grail
#

i wish C# had default values for out parameters so you dont have to assign them a value in every code path

tropic grail
#

So, I learned something. Fuck mpm_event module. Discovered that the PHP module autodisables it, but in a situation without it installed, it leaves it enabled. The PHP module enables mpm_prefork instead, which is a lot cleaner. Why is this even a thing...

#

Basically, mpm_event creates about 20 threads per apache process, meaning like 40-80 unused threads. mpm_prefork doesn't do that, so there's like 5 threads per apache process. Yes, I'm aware some of you use nginx, but in this situation, apache is the better option. It's not up for discussion either, plebs. KappaGlasses

proper gale
#

@dense grail explain how you would want to write the code.

#

There is probably a way to do it already.

cloud knot
#

@tropic grail last time i checked, it was about thread safety

tropic grail
#

@cloud knot mind elaborating on that? I'm curious as to why there were so many, and from what I could find online, they claim it was for user connections, though with prefork a multitude of users can connect.

cloud knot
#

apache etc is not meant for PHP, and some of those mpm modules are not really good for PHP thread model

#

prefork is how apache 1.3 worked, and it is compatible with PHP modules

#

event or worker are meant to be used with CGI, so with PHP-FPM for example

tropic grail
#

@cloud knot right, but in a system without PHP, prefork wasn't the default enabled and it confused me as to why there were so many threads.

cloud knot
#

worker etc still create threads, just not single thread per single request

#

but rather single thread per group of requests

#

worker = "This Multi-Processing Module (MPM) implements a hybrid multi-process multi-threaded server. By using threads to serve requests, it is able to serve a large number of requests with fewer system resources than a process-based server. However, it retains much of the stability of a process-based server by keeping multiple processes available, each with many threads."

tropic grail
#

👌 as long as it looks nice in htop KappaWink

cloud knot
#

you do not want to see my htop lol

#

many docker things 😄

tropic grail
#

I have a docker thing running against my will kappA

small escarp
#

@dense grail wouldn't setting param = defaultVal; as one of the first lines work?

dense grail
#

yes or setting it before each return seperatly, would be cool if there was clean shortcut for that

weak lintel
#

can someone help me?

#

im making a programming language and my while loop isnt working

#
int y = 0;
while (prs[y] != "}end;"){
    // if statements
    y++;
}```
proper gale
#

@weak lintel need more code to help ya

weak lintel
#
void sts::compile(string fname, std::vector<string> prg, int psize){
    prs = parse(prg);

    system("compilecheck.sh");
    system("echo '#include <iostream>\\nint main(){' > stscompile/stscomp.cpp");

    for (int x = 0; x<=prs.size()-1; x++){
        string name = "";
        string val = "";
        // I want to wrap these three if statements in a while loop but I keep getting segmentation faults
        if ((prs[x]=="\tout") || (prs[x]=="out")){
            for (int y=0; y<=prs[x+1].size();y++){
                if (prs[x+1][y]!=';'){
                    val+=prs[x+1][y];
                }
            }

            string a = "echo '\tstd::cout << "; 
            const char *c = " << std::endl;' >> stscompile/stscomp.cpp";
            a+=val.c_str();
            a+=c;
            const char *prnc = a.c_str(); //kind of a hack, but it works. Makes c_str and concatinates.

            system(prnc);
        }
        else if ((prs[x]=="\tstr") || (prs[x]=="str")){
            system(declare('s',x).c_str());
        }
        else if ((prs[x]=="\tint") || (prs[x]=="int")){
            system(declare('i',x).c_str());
        }
    }

    system("echo '\treturn 0;\\n}\\n' >> stscompile/stscomp.cpp");

    system("g++ stscompile/stscomp.cpp -o stsprg.out");

    cout << "Successfully Compiled" << endl;

}
proper gale
#

@bright olive bot is still muting for this in here...

#

can you give code for the parse function plz.

#

you are also not giving types, so i dont see how this even compiles.

#

@untold flame @weak lintel got muted for posting code, i know the bot picked up newline spam, if you could unmute, that would be great, thx.

untold flame
#

👍

#

@weak lintel should be good now

#

i'll bug dooley to fix that

proper gale
#

jakk said he would fix it like 2 months ago

#

happened to me

untold flame
#

yea that's the problem. Jake said it

weak lintel
#

Lol

untold flame
#

😛

proper gale
#

suggested i just use pastebin, which i do, but it still shouldn't happen.

#

fair nuff.

#

anyway, what exactly is prs?

untold flame
#

we'll get it fixed

proper gale
#

@weak lintel does that code even compile?

weak lintel
#

Lol let me see

proper gale
#

unless prs is a variable from a greater scope, then it would work

#

still dont know what type it is

#

im guessing its an std::vector

weak lintel
#

It. Onpiles

proper gale
#

and if more specifically std::vectorstd::string then your comparisons will work, beacuse magik

weak lintel
proper gale
#

so, you get your seg fault because when x == prs.size() -1, in the internal for look you are iterating over prs[prs.size()] which is out of bounds.

weak lintel
#

Oh so what does that mean

proper gale
#

you are also iterating one past for y aswell

#

seg fault means you accessed memory you were not supposted to.

weak lintel
#

Ok

proper gale
#

generally

weak lintel
#

I get it now

#

So what would I do to fix it

#

(Mostly)

proper gale
#

make it not access where its not supposed to, how, idfk.

#

also, if you want an easy syntax OOP language, look at LUA

#

its also tiny, highly tested, super easy to embed and extend.

weak lintel
#

Thanks!

proper gale
#

python also has easy syntax

#

and i hear that Ruby is similar, though i have not used it myself.

#

i still prefer c-like syntax, but the libraries in C/C++ are complex as hell.

weak lintel
#

Not prs[y]

#

I couldn’t get interpreters working in python so I’m using C

proper gale
#

no, [] is very common array access syntax

weak lintel
#

++

proper gale
#

its the same in python and lua

weak lintel
#

Oh

proper gale
#

python is super easy to get the interpreter to work.

weak lintel
#

Really?

proper gale
#

you can write a class that you can use that has syntax of prs.at(y) that returns internallArray[index]

#

what OS are you on?

#

im guessing linux, as your directly used g++

weak lintel
#

Yea

proper gale
#

ubuntu?

weak lintel
#

Wait I thought a class couldn’t return anything

#

Yes

#

Only functions

proper gale
#

constructor cant, its functions can

#

sudo apt install python3 will install python3

#

python3 will bring up a live interpreter

weak lintel
#

But what about python 2 code?

#

Will it still work?

proper gale
#

remove the 3, and you have python 2

weak lintel
#

?

proper gale
#

sudo apt install python installs python2

weak lintel
#

Ok

proper gale
#

and python runs python 2

weak lintel
#

So what’s the difference between an interpreter and a live interpreter

#

@proper gale

proper gale
#

the live interpreter you are typing directly into it

#

and interpreter runtime still uses a file.

weak lintel
#

Doesn’t it slow python down?

proper gale
#

its good for testing stuff

#

and python is a slow language as is, soooo

bright olive
#

@tropic grail can u make the bot not delete really long messages in here

#

New line spam I think it is

tropic sapphire
#

@proper gale Python isn't THAT slow, and you gain a lot from lower develop to release time. In the business world speed to get a product out before you competitors is usally more import than how fast the product is.

proper gale
#

i didnt saw it was dead slow

#

but it is slow

#

i do personally use python, because it is good at exactly what you said

proper gale
#

@tropic sapphire you work with python a lot?

weak lintel
tropic sapphire
#

@proper gale not so much now, 10 months a go I got a node as a node JS developer. I do a lot of AWS lambda at work along with docker for our services running in fargate

#

not much python 😦

weak lintel
#

I am trying to build an automatic cat feeder that uses flask as the server. when I go to a certain webpage on my raspberry pi, 127.0.0.1:5000/open to be exact, the servo moves without issue. On other devices on my network, the site can't be reached, so I'm assuming I didn't make it available to the local network. this is the tutorial I am following: http://blog.oscarmorrison.com/how-to-make-a-rpi-powered-wifi-pet-feeder/ there is a dead link for the python server code so here is his git hub: https://gist.github.com/oscarmorrison/552a9a9fc2664bd3578cece680d77c9c

Oscar Morrison Blog

I was inspired by Peter Weissbrod's post: how to keep hungry tigers busy in the early morning to build my kitten Lillie an automatic feeder. I hoped to build this on a Sunday morning, so it was imperative to keep the design as minimal as possible. Parts Raspberry Pi (any

tropic grail
#

@weak lintel pastebin sites are your friend.

cloud knot
#

@weak lintel most likely you need to bind to 0.0.0.0

weak lintel
#

I figured it out

cloud knot
#

app.run(host= '0.0.0.0')

weak lintel
#

Yep

#

Thanks so much!

ionic hull
little knoll
#

Also, +1 for the message 👌

#

Wait...
What if... My screenshot was... A feature request... GWchadLENNYTHINK

devout lava
#

xD

analog briar
little knoll
#

Floatplane

main wyvern
#

oh god

#

/r/softwaregore time

jade nova
vestal glen
#

you need to pass a function to catch

#

currently you are passing the result of send(send_dm_error_embed) to catch.

cloud knot
#

is that just a normal promise ?

vestal glen
#

same with the then btw

cloud knot
#

then indeed, then and catch are supposed to be .then(function(){....code....})

vestal glen
#

you are immediately kicking, too

#

or .catch(() => ...code) for brevity 😉

cloud knot
#

well, i am not sure what kind of ECMAScript he uses

#

so i used the safest style

#

@jade nova in short, read articles about how to code promises

vestal glen
#

I mean, if they're running a node that doesn't support arrow functions........

#

(discord.js is a node lib, usually)

jade nova
#

I should also add a finally statement so that even if the dm fails to send, it will still kick the member so that they're not just like haha you can't remove me

vestal glen
#

...if those promises support .finally...

jade nova
#

o...

vestal glen
#

else you'll have to duplicate some calls, probably have two catches?

#

since a catch that returns a promise just continues the chain

modest orchid
#

Is there anyone, who is good with functions to onClick?

ionic hull
#

@modest orchid don't use onClick()

modest orchid
#

I had no idea on what to use instead, but I am bad at JS and jquery xD

ionic hull
#

Use jQuery

#

Plain js is a pain the ass

modest orchid
#

Still have no clue, on how to do else. I know how to do PHP, HTML and CSS, but, I need Jquery or JS for what I am doing

ionic hull
#

Search for jQuery onclick

#

Google is your friend

#

Search the docs

#

Ask on stackeroverlow

vestal glen
#

I mean, you can do it with just JS and addEventListener

mental hemlock
#

I wouldn’t go with onClick - it’s not as stable and not cross-interface. Rather go with an event handler

modest orchid
#

I fixed one thing, but, now another problem happens as soon as I add the new box

timber violet
#

with rcon is it possible to get the console to send all information instead of just a resposne to a previous command?

tropic grail
#

rcon doesn't allow commands to be sent to my knowledge.

timber violet
#

Yea... I ended up just reading from the log file

elfin mica
#

I got a question for ya guys

#

why does the Facebook app on an iPhone 6 Plus work better than in Chrome on a PC running Win 10, with 64 GB of RAM, 1080 TI and a watercooled Threadripper 1950X

#

is the website that unoptimized? I'm scrolling through my feed and it starts lagging like hell one quarter into every year

slate sigil
#

it could be a chrome extension try running it in incognito mode and see if that fixs it

elfin mica
#

hm, interesting theory

#

I'll check that now

#

okay, it is definitely a lot smoother

#

but I just tried to delete something a long way back in the feed, and it took really long time for the button to appear and disappear after being clicked on

#

haven't tried any other browser, but my guess is that it is a website thing, and I don't know why. Maybe the app handles the data loaded in a better more efficient way

dense grail
#

anyone good at higher level c# runtime casting? i am tring to cast a reflected object to IList<TEntry> but the trick here is that i cannot access TEntry except until at runtime where i can get it from Assembly.GetType.Single(t =t.FullName == "TEntry")

#

gues i have to construct the Type IList<TEntry> at runtime and then pass it to Convert.ChangeType()

#

oke apearntly it comes down to typeof(IList<>).MakeGenericType(TEntry); never saw such syntax before

gritty rain
#

On a bit of a security bent at the moment: Can anyone suggest an SSH key manager? Instead of storing the private keys in plaintext on your storage

cloud knot
#

what platform tho

dense grail
#

Azure keyvault

cloud knot
#

to be fair, if someone has access to your local private key file in your home folder, you are already f****

gritty rain
#

the recent npm breach of eslint-scope could have easily also read and transmitted contents of ~/.ssh 🤷

cloud knot
#

@gritty rain regenerate keys, invalidate the old ones.

timber violet
#

putty paegent? thats what i use... it encrypts the keys

proper saddle
half plover
#

Has anyone used Atom for coding C#

nocturne galleon
#

Just use an IDE for that

fair iron
#

Visual Studio FTW

cloud knot
#

Visual Studio Code you mean

#

Atom and Brackets lost the war against Visual Studio Code

#

and yes, Visual Studio Community is also free unless you are a relatively mid to big company

fair iron
#

Nope

#

Visual Studio

#

I heavily prefer VS when coding in C++ or C#

#

But yeah I use VS Code for everything else

opaque terrace
#

Since there is no dedicated #security or #infosec or alike channel, nor there are any #business related channels - gonna post here 😃

For a company that wants to form a proper security team, that consists of developers, what priority for the first hire should be? We are security minded and security and user data handling with all the GDPR stuff is big part of development and stuff, but we need to go deeper :)

  1. Security focused developer
  2. Security professional (pen tester/white hat/etc).
  3. business type security person.

My gut feeling says mix of 1 and 2, and closer to 2 if we had to choose.

#

Collecting info via various channels 😃

proper gale
#

@fair iron CLion FTW

lapis pebble
#

@opaque terrace If you can afford to have one person focused in security that will make a big difference. Better you ask first in the team if there is someone up to the task, but if you cannot find someone that already knows your systems... hire

#

At the same time how big is the company? If the team is small perhaps that person has to wear another hat and cannot do "security things all the time"

opaque terrace
#

If we had an infosec guy on staff - we would not look to hire or would knew exactly what we need to hire someone additionally

#

about 25-30-is, but we are gonna grow rapidly next few years

lapis pebble
#

You might have someone that hacks things and love to do it. And that person might just need space to grow

#

25-30, good number to have at least one IMHO

opaque terrace
#

we are at that crossroad when we need formal certifications, big business asks infosec and GDPR

#

so basically we need to start a security department

#

there are no security trained people on the team at this point

#

we do our best, but our best at this point is not enough 😃

lapis pebble
#

Things might be easier than it seems. Time ago I run a PCI-DSS certification and we just needed a bit of "love" and "focus"

#

Perhaps an infosec consultant to give your devs a "jumpstart"

opaque terrace
#

well, consultant might not be enough

#

it's insurance

#

and we are building a platform

#

so we handle crapload of 3rd party user data, payments and all dat jazz

lapis pebble
#

A consultant "might" help to put the seed of security in a bunch of devs, so they take care of it in a distributed manner, instead of having one person hunting devs with an axe saying: "VALIDATE YOUR INPUTSSS!!"

opaque terrace
#

so our feeling is we need a team member for comprehensive ongoing secutiry, security testing, automation of the said testing and so on

#

not just for the dev team, but in general

lapis pebble
#

True that, it is a general thing

opaque terrace
#

so the original question stands - who should we be looking for as our first hire? 😃

lapis pebble
#

I'll go with option 1. Security focused developer

#

Dear %Companies%, A single security minded Sys Admin is worth more than a handful of pentesters. Please start investing in the admins you already have. I say this as a pentester who has seen the impact that an empowered admin can have.

Retweets

902

Likes

1990

opaque terrace
#

true, but maybe as there is in the replies it's worth to bring a pen tester and teach the whole team? 😃

#

we actually do infrastructure as a code, so we don't really have a systems administrator - one of the guys is going into fulltime devops role right now 😃

lapis pebble
#

And when the team learns, what is the pen-tester gonna do?

#

In other news, IMHO, devops is a culture, not a role (but that's a thing for another day)

opaque terrace
#

well, maybe then a mix of 1&2 or even just a businessy type infosec guy

#

well, the guy will do infrastructure code and not really do any application development any more, idk what to call him 😄

#

we call him devops now

#

^-^

lapis pebble
#

Mr. Devops Smith

#

We used to work with no dedicated sysadmin, but when we hired a person focused on infrastructure, he pushed automation further than the dev team was used to.

opaque terrace
#

that we have in spades, the guy actually lives and breaths that stuff, so we are trully good on that front

#

testing, deploying, working on features - everything is automated 😃

lapis pebble
#

Great 😄

#

@opaque terrace Do you deploy using containers?

opaque terrace
#

not yet as I know

#

but we use AWS heavilly

tropic grail
#

@lapis pebble nice one, but companies never seem to realize that. I was (and still am) a security-minded sys.

lapis pebble
#

@tropic grail I’ve seen that a fair amount of times. When a company ignores their talent, but they are eager to pay 3x for a consultant to receive the same news someone already working for them could have told them.

#

In Greek there is a word for that: χαραμίζομαι to let your talent go wasted.

thorny galleon
#

are there any server engineering folks around?

#

need some info on REing WebSockets servers

#

pls @ me / DM me if you'd be able to help

granite citrus
cloud knot
#

@granite citrus rule no 1 - do not commit ever with a commit message saying "ahh" or anything useless like that 😃

granite citrus
#

look im tired, confused and i just needed to push it

granite citrus
#

@cloud knot

thin cobalt
fair iron
#

Discord uses its own theme

#

Not sure you can make it use another theme

#

Maybe with writing a custom plug in

thin cobalt
#

please elaborate

fair iron
#

Can't tell you much

#

It's just guesses

thin cobalt
#

what do you mean by plug in?

fair iron
#

You can write your own plug in for discord

main wyvern
#

Modifying the app is against the TOS

ionic hull
#

@thin cobalt discord uses html for its app, just search and change

lapis pebble
#

@granite citrus Nice bot! now you can clean it up and add some tests

granite citrus
#

tests?

lapis pebble
#

So you don't need to try it manually every time you make a change

thin cobalt
#

@ionic hull discord is based on Electron . I've looked therogh it's HTML and I haven't found where the title bar button assests are located. Any ideas where they are?

little knoll
#

There you go, just find where the code is called and you should be able to mod it.

#

(You may also be able to trigger the Mac OS theme)

#

Just replace Windows by MacOS and win by mac and it should replace the navbar and icons to MacOS ones

main wyvern
#

Thats bloody devtools, as soon as you reload or reopen the app, the change is gone.

#

And actually modifying the files of the app is against the TOS

lapis pebble
#

It is still very cool/funny that you can launch the devtools from the app

little knoll
#

@main wyvern Yeah I know, but it could help to find where everything is in the code or at least add some custom CSS stuff on it.

main wyvern
#

Still, modifying those files is against the TOS

lapis pebble
#

@little knoll Learn a bit about how electron apps are packaged. Not a bad thing to learn

little knoll
#

I know they are packaged in those bloody asar files (in the case of Discord) and probably minified as hell (as they are using webpack), and so even if he find the way how to modify everything, each update replaces the older files (to be exact, creates another folder containing the whole updated app). Best way to handle stuff, use BetterDiscord and create a plugin/theme for it. (and still, it's against their TOS)

I know Electron is good, but it's still an unoptimized node web app packager which consume more ram it will ever need (because of chromium) and so that's why I'm looking for lightweight integrations of chromium for node web app (like NW.js or UWP for Windows 10 devices)

fair iron
#

Wut

lapis pebble
#

Wow, my bad, the previous comment should have gone to @thin cobalt

fair iron
#

An Electron software is a web page running in an executable ?

lapis pebble
#

@little knoll sorry mate, got confused with who is who 😃

little knoll
#

@fair iron Basically, yes.

thin cobalt
#

I have a 7zip plugin that makes it unpkg asar files

little knoll
#

But there is a bit more stuff going on under the hood (like some APIs to access to some OS components which are normally not available on a web browser (in depth control of Audio input/output and stuff like this))

lapis pebble
#

There it comes, the thread creator 😄

#

@thin cobalt On one side, the idea seems futile, you will need to patch every update, plus doing something against the TOS. On the other side, you could automate that and it can be a nice side project

little knoll
#

Another thing you could do is to use Nativefier to create an executable that launch the web version of Discord and add your custom CSS at build time

#

Be warned thought, some features may not work as good as the native app.

lapis pebble
#

Good point, I don't know how well the web app supports some audio features

thin cobalt
#

@little knoll any idea where the file is located? I think I might have found a quick and dirty way to do it. There are image files of the title bar icons. I'm going to try replacing the windows ones with the mac ones

little knoll
#

C:\Users\*username*\AppData\Local\Discord\app-0.0.301\resources
You will have to update those files each time there is an update but if you find it and that you don't care, go for it.

thin cobalt
#

Thanks!

thin cobalt
#

i cant seem to find the file

#

its all JS, not HTML

upbeat citrus
#

I'm looking for people that can make a website: front end: html css
backend: nodejs with express

thin cobalt
#

i have a question for those of u who know about windows theming

#

my chrome without a theme

#

my chrome with a theme

#

chrome themes break my custom title bar icon. how do i fix this?

fair iron
#

Stop using custom windows themes

thin cobalt
#

Lol

ionic hull
#

What kind of server I need to have 3 sata discs ? Locally

#

Like

#

I don't wanna buy a 500$ server

#

What do I do?

#

3 sata disks with 8tb each

thin cobalt
#

Just use an old PC unless you need to rack mount

#

A @ionic hull

little knoll
#

Get a random Walmart PC with a Pentium and 4Gb of RAM and you should be fine.

#

(maybe just replace the power supply to be sure that the cheap one will not burn your HDDs (that happened a lot of time)

thin cobalt
#

Or even a used PC. My current NAS/ AD domain controller has a Pentium D from 2004

proper saddle
#
lapis pebble
#

A guide to selecting and building FreeNAS hardware, written by the FreeNAS Team, is long past overdue by now. For that, we apologize. The issue was the depth and complexity of the subject, as you’ll see by the extensive nature of this four part guide, due to the variety of ...

ionic hull
#

@lapis pebble a server with a shit ton of storage for big data backup and it must run some python scripts

little knoll
#

Maybe some GlusterFS (like Linus Petabyte project) should do the job

lapis pebble
#

FreeNAS is quite good, although the extra requirement of running some python scripts might be an issue because it is FreeBSD when you ssh to the box... and it is a bit different than linux

#

GlusterFS seems too much for just a box

#

FreeNAS also provides CIFS for windows if that's what you need

ionic hull
#

Probably I'll just run Linux on an old pc

#

And put the extra hard drives 1 by 1

#

When 1 of them is full, I'll just swap for another

nocturne galleon
#

anyone know how I could call a method in C# by typing it into a command line?

proper gale
#

@nocturne galleon only if you want to call the main function.

nocturne galleon
#

like in the main method I want to have a Console.ReadLine() and takes the input and try and call that method using the arguments I pass

proper gale
#

literally thousands of ways that can work, both internally and externally.

nocturne galleon
#

that doesnt help me

#

I want to know how to do it not how many ways there are of doing it

proper gale
#

point being, be more specific.

nocturne galleon
#

well.

#

I have tried searching how to do it on the internet and haven't found anything

#

I want a Console.ReadLine to take what i say as a method. eg: "function(arg1, arg2)" and for the console to then call that method that I typed with the arguments

proper gale
#

does it have to be c#?

nocturne galleon
#

yes

lapis pebble
#

@nocturne galleon Powershell? I'm rusty but try [system.Console]::ReadLine

quaint gazelle
#

does this work the way I want it to? It seems to work but...

void randomCycle() {
  uint16_t x = random(1, 8);
  if( x & 0b1 ) {
    digitalWrite(REDX, HIGH);
  } else {
    digitalWrite(REDX, LOW);
  }
  if( x >> 1 & 0b1 ) {
    digitalWrite(GREENX, HIGH);
  } else {
    digitalWrite(GREENX, LOW);
  }
  if( x >> 2 & 0b1 ) {
    digitalWrite(BLUEX, HIGH);
  } else {
    digitalWrite(BLUEX, LOW);
  }
}
``` Basically I want it to randomly turn on and off 3 LEDs to make all the possible different colors I could do a random for each one *but* that runs the risk of having a situation where they are *all* off. In order to get around this I use the binary numbers between 1 and 111 and check the first bit for red, second for green, and third for blue.
lapis pebble
#

@quaint gazelle between 000 and 111 I'd say. You can filter with x & 0x1, x & 0x2 and x & 0x4, you might want to refactor the repetitive if into another function (or a macro)

#

w8...

quaint gazelle
#

waits

lapis pebble
#

digitalWrite(REDX, x & 0x1 ? HIGH : LOW)

#

so you avoid repeating the if..., we just repeat the ternary operator that is smaller

quaint gazelle
#

I'm told by someone else that I could just do digitalWrite(REDX, x & 1) changing 1 to 2 and 4 respectively

lapis pebble
#

only if you're sure that HIGH and LOW are always defined as 0 and 1

#

I haven't checked that in Arduino

quaint gazelle
#

I mean, yes?

lapis pebble
#

yes, I just checked it and it seems they're defined as 0 and one

timber violet
#

@nocturne galleon when you read the input with console.readline(), compare the first part of the string with a list of function names then split the string on spaces, commas, or what ever you want the delimiter of arguments to be. You should now be able to call the function specified from the console with the arguments provided.

ionic hull
lapis pebble
#

I was impressed to see that PHP supports traits to build classes.

nocturne galleon
#

thanks @timber violet

gilded moon
#

yo, anyone here have experience building Python3 from source on Linux?

#

'''ModuleNotFoundError: No module named '_ctypes'
Makefile:1122: recipe for target 'install' failed
make: *** [install] Error 1
'''
you can tell when you've found some arcane wizardry when you jump right over Stackoverflow and end up right at bugs.python.org

#

turns out I just neede libffi-dev, all fixed

gusty girder
#

is there a room for hardware development (this?), or do I go to general? I'm looking for specific boards and I have no idea where to ask. (lipo usb C charging boards & usb-c output buck converters to 5v. All I find are micro or mini :/ )

fair iron
#

Stay here I think

gilded moon
#

@gusty girder USB C stuff is pretty scarce and expensive these days

#

@gusty girder because the big thing is are you planing to implement USB Power Delivery?

gusty girder
#

Yeah, I basically want a (universal) board so which I can plug old phone batteries into so it's a diy power bank

#

And I want it USB c because 2018 ^^

#

I can deal with output being USB A, but input (charging) I want to be C for sure

gilded moon
#

well then a buck converter isn't going to cut it, because it will put out different voltages

gusty girder
#

Huh? I used one to convert 12v to 5v, can't I use a step up to do 3.6 to 5? Just less amps.. (my knowledge of electronics is... Not very good)

gilded moon
#

yeah

#

do yourself a favor, go google USB Power Delivery

#

read about it for a good hour or so, and then ask your question again

gusty girder
#

Ait, will do. It'll have to wait till tomorrow, sleep first. Thanks for entertaining my question anyway.

tropic grail
bronze crater
#

Ay laddies, just some random scrub who wants to learn something like Web Developement; Html to god knows what comes after js

#

Worth it or NAH

#

?

vestal glen
#

Learning something you want to use is always worth it.

bronze crater
#

That rule doesn't always apply, but yeah I think so too.

proper gale
#

@bronze crater what do you want to do?

bronze crater
#
Web Developement
proper gale
#

web dev is the goto this is easy programming, right?

#

do you have some end goal project in mind that you want to do?

bronze crater
#

No

#

Web dev WEB DEV

proper gale
#

web dev is broad

bronze crater
#

No not* i'm thinking of it as a gateway to easy programming

proper gale
#

fucking knew it

bronze crater
#

not***

#

I meant i'm not***

#

I'm lagging so hard cause i have like 3 things running in the background

proper gale
#

well, im no web dev expert, but i would still say go ahead and learn it

bronze crater
#

That's exactly what i'm doing 😄

proper gale
#

granted you will use it for something

bronze crater
#

Just asking cause i'm guessing there'd be competition

#

Cause i'm not a very capable individual

proper gale
#

you want to get a job doing web dev?

bronze crater
#

Something of the sort*

#

But it'd be more personal

#

Do the circumstances matter?

proper gale
#

yes, people will look at things that say be a dev in 3 months or whatever, and are completely misled.

bronze crater
#

I know there's a lot of time that needs to be invested

#

Before you can be well...

proper gale
#

mmk, so long as you are ready for that.

bronze crater
#

Doing it at an acceptable level?

proper gale
#

there is no strict measure for acceptable.

bronze crater
#

Cause i'm somewhat inspired by the people around me

#

I know some people who do it as a hobby, but it ends up benefiting them as a part-time job

#

Not exactly acceptable, but certified would be the right word.

proper gale
#

right, i do it as a hobby now, but i plan to get a full time job programming.

bronze crater
#

Almost there.

proper gale
#

im already 5 years in to programming, and have another 3-6 before i get a job, probably.

bronze crater
#

^^ Hence the "lots of time needs to be invested"

proper gale
#

yes yes, but if its not a passion of yours, there are higher paying sections of programming.

#

if that is you goal

#

also, web dev is notorious for being not hard, but very frustrating.

bronze crater
#

I already know that feeling/

#

Miss one semicolon? Whatever you set didn't work

proper gale
#

not, that C++, is any, better.....

bronze crater
#

And that's only in css

#

My mistakes are always in css3 fml

#

whenever i make those styles or whatever, like setting a backgroun-

#

you get the idea

proper gale
#

yea, i have such a habit of C-style semicolons that i will put them in python by accident.

bronze crater
#
/*Global*/
.container{
  width:80%;
  margin:auto;
  overflow:hidden;
}

ul{
  margin:0;
  padding:0;
}

.button_1{
  height: 38px;
  background: #e8491d;
  border:0;
  padding-left: 20px;
  padding-right: 20px;
  color: #ffffff;
}
#

like in here

#

I constantly miss the colons at the ends

proper gale
#

wouldn't be a problem for me.

bronze crater
#

Yeah cause you're probably amazing at it

proper gale
#

here is a section of what i am working on, ```cpp
std::ifstream inputStream(path.string().c_str());
if (!inputStream.is_open()) {
throw FileNotFound(CUBIT_EXCEPTION_MESSAGE("could not find config file: " + path.string()));
}
std::string fileContents;
fileContents += (char*) (inputStream.rdbuf());

    std::shared_ptr<ConfigSectionBuilder> currentBuilder = baseSectionBuilder;```
bronze crater
#

Uhuh

#

kill me xd

#

python looks so easy in comparism to that*

proper gale
#

using python as an example, this is what mostly pep8 python, we have this ```python
def writeLibraryVersion(library, version):
library += "_version.txt"
if os.path.exists(library):
# cant open a non existent file
file = open(library, "w")
pass
else:
file = open(library, "x")
pass
file.write(version)
file.close()
pass

bronze crater
#

hm.

proper gale
#

if i write it my way, python def writeLibraryVersion(library: str, version: str): library += "_version.txt"; if (os.path.exists(library)): # cant open a non existent file file: IO = open(library, "w"); pass else: file: IO = open(library, "x"); pass file.write(version); file.close(); pass

#

looks similar because python is still C-style

bronze crater
#

wat

proper gale
#

oh, forgot a couple things.

#

also, C++ has a lot of syntax to it

#

and its not exactly the easiest language to read, but once you know what it is, its not all that bad

bronze crater
#

don't majority of programming languages do?

proper gale
#

C++ in particular has a lot, because its such a powerful language

bronze crater
#

when you're 5 years new to the internet and your little brain can't handle everything that exists

#

😄

lapis pebble
#

@proper gale Good morning 😃 I see too many pass there. They're not needed. Also the check if the file exists, you can omit it and use always "w" (you will truncate or create. You can also use a "context so you don't need to close the file.

proper gale
#

i know.
i do check, and use appropriate open.
i know.

#

btw, forgot to close both quote and parenthesis

lapis pebble
#
def writeLibraryVersion(library: str, version: str):
    with open(f'{library}_version.txt', 'w') as dst:
        dst.write(version)
proper gale
#

isn't it great that that does not work

#

also, fuck that syntax.

#

the with as dst is fine, i get that.

#

but the f'{library}_version.txt', fuck that.

lapis pebble
#

string interpolation... I like it in many languages that allow it. Ruby, now python, javascript, elixir...

proper gale
#

this is from a script to download libraries for a C++ project

#

i care much more about C readability than i do python readability.

#

meaning, python looks like C

#

has pass to dictate end of scope, what there is of scop that is, etc

lapis pebble
#

python looks like visual basic...<-- That's the first thing I said many years ago 😄 and even if it isn't very exact, it is the feeling

proper gale
lapis pebble
#

You don't need pass to dicatate end of scope. pass is a null operation

proper gale
#

i know exactly what it is

lapis pebble
#

Being python, they could have called it *spam" or eggs

proper gale
#

i am a C++ programmer, i will do thing like that because i want my brackets.

#

but python allowing as much other syntax as it does to be interchangable, doesnt allow brackets

lapis pebble
#

indentation..... I @@@@@ hated it in the beginning

proper gale
#

here is the C++ file i am working on literally right now, they are very similar styles.

lapis pebble
#

Well, if pass help you... What can I say, it is your script 😃

proper gale
#

its not like python is fast in the first place

#

i dont mind taking a couple cycles for it to look a bit better, not in python.

#

C++ i give no shits about compile time, and a whole lot about runtime speed.

#

consider python if __name__ == '__main__': # makes it easier for my C way of writing code. # whole file is in a C style, not a python one. main() pass

lapis pebble
#

That pass is cause me itches.... 😭

#

Muscle memory I guess

proper gale
#

now, if this was valid, i wouldn't have pass everywhere python if (__name__ == '__main__'):{ # makes it easier for my C way of writing code. # whole file is in a C style, not a python one. main() }

#

thats what i want it to look like

#

IDE yells at me for parenthesis, so it removes those for me.

lapis pebble
#
if __name__ ==  '__main__':
    main()

I'd say that's the pythonic way

proper gale
#

no, inlining main would be.

lapis pebble
#

inlining main? I'm confused

proper gale
#

not have a function called main, but rather treating the if statement as a main function.

#

i have that at the bottom of my script, so i can order the functions how i want, with my main code right at the top.

#

in C, you use headers for exactly that.

lapis pebble
#

You can call main directly. That if is used to avoid running the main code when importing the file (for reusability or tests)

#

You an even write all that code directly if you don't care about reusability, testing or the @@@@ main

proper gale
#

you don't say

lapis pebble
#

Don't follow that convention if it causes you itches 😃

proper gale
#

I don't, I'm fine with how I wrote the file

#

I wrote it

#

But it's not in a normal python style

lapis pebble
#

@proper gale What are you developing in C++?

proper gale
#

Right now, a library for a library

cloud knot
#

ROFL

#

when you look for a problem, and notice a few years old typo in apache project 😄

#

look at the end of line 31 😄

lapis pebble
#

@cloud knot good catch. If you "fix" that, everybody configuring the system with the typo, will need to change to use the right word.

#

Good dilema

cloud knot
#

@lapis pebble yeah, i ain't reporting that 😄

#

4 years nobody bothered to fix that, i am not going to mess with everyone 😄

lapis pebble
#

@cloud knot 😂

tropic sapphire
#

100% needs to be reported.

gilded moon
#

@proper gale don't forget

from __future__ import braces
thin cobalt
#

hey guys, im working on making my discord titlebar match my theme's (arc dark). Anybody know what file the titlebar is loading from? ive been modifying it with inspect element so far

#

this is my progress

cloud knot
#

isn't it in the inspector ?

#

i mean styles tab says the source from where the styles come from in every chromium based application

#

the 0.2b....css:16 is the file from which the style comes, and by clicking on that link it also shows you that file and line

#

that is a picture from random website tho

#

just FYI

#

can't be bothered figuring it out for discord 😛

nocturne galleon
#

Hey, I want to dev a autopilot for the game elite: dangerous. Version 1 should just be able to jump to a target basically, so aiming in the right direction, pressing j, then navigate a way from the sun and aiming again if a target is selected.

I looked around the web a bit, found a broken ahk script for it, and a few "starting points", basically people achieve what I try to do, by ether using stuff to detect certain outlines (like the sun and then deciding where to go),
or
detecting if specific pixels are a specific color or not, I imagine sort of like these arduino robots that have a color sensor to detect a line and through that moving a round a cuircut

#

question: what should i use

#

for example ahk scripts or a programming language that can detect outlines or something

cloud knot
#

nothing. it is against the game ToS and you will be banned

#

pretty much every game will ban you for using another software for controlling user actions

#

but in general they do not talk much about what gets you banned

#

you could in theory try to do what OBS does and grab screen

nocturne galleon
#

yes, a multiplayer game, and yes elite is sort of a multiplayer game, but if you only play for yourself or with some friends, in my mind it is "okay",

so I will try to do it anyways, if it is only for the sake of doing something in my freetime and not abusing it for the ingame credits

but thanks for the warning anyways 👍

cloud knot
#

but then you are pretty much programming a self-driving AI

nocturne galleon
#

that was sort of my plan :D

cloud knot
#

there was a guy doing a GTA5 AI

#

he has his sources i think

nocturne galleon
#

jup with the motorcycle

#

but he did it with machine learing

#

thats why the stream was on 247, showing how the program learned

cloud knot
#

his source code

nocturne galleon
#

thanks, I will look into it

#

that is pretty much a code for driving, it is very impressive and cool and all, but sadly no help

cloud knot
#

it was more about picture capture part

#

decision part is your job

#

and sending events you can again grab from his code

nocturne galleon
#

hey everyone, (in C#) I'm trying to make a program that creates new objects using a class i made during runtime but I dont want them all to have the same name since I am making multiple objects of the same class, how can I have it give the objects different names

lapis pebble
#

@tender yew what do you mean by name?

#

Does a name field in the class help?

tropic grail
#

@thin cobalt you know modding the Discord client (including CSS) isn't allowed by Discord, right?

thin cobalt
#

so betterDiscord isnt allowed?

tropic grail
#

BD is bannable.

#

At least, according to Discord Staff and ToS.

thin cobalt
#

damn it. i really like BD

tropic grail
#

As long as you don't make it known that you're using it, who's to know?

lapis pebble
#

Applications behave in a certain way, so another piece of software doing API calls in a different order or even different formatting of the same message can give the client away.

vast harbor
#
    <div id="mobile-menu-open" class="shadow-large">
        <i class="fa fa-bars" aria-hidden="true"></i>
    </div>
    <!-- End #mobile-menu-toggle -->
    <header>
        <div id="mobile-menu-close">
            <span>Close</span> <i class="fa fa-times" aria-hidden="true"></i>
        </div>
        <ul id="menu" class="shadow">
            <li>
                <a href="#Home">Home</a>
            </li>
            <li>
                <a href="#About">About</a>
            </li>
            <li>
                <a href="Blog.html">Blog</a>
            </li>
            <li>
                <a href="Projects.html">Projects</a>
            </li>
            <li>
                <a href="Forum/Index.html">Forum</a>
            </li>
            <li>
                <a href="#contact">Contact</a>
            </li>
        </ul>
    </header>
</body>```
#

how do i make it so this menu stays at the top of the screen when you scroll down??

lapis pebble
#

position: absolute fixed

vestal glen
#

or even fixed^^

lapis pebble
#

yep, fixed, I was wrong

#

position: fixed, top: 0; width: 100%, left: 0, right:0

vast harbor
#

­

#

­

little knoll
#

When position: fixed, width: 100% sets width to total children width and not window width, two fixes possible, width: 100vw (vw = 1% of viewport width, vh is the same for the height) or right: 0; left:0; which forces the left and the right sides of your div to be stick to the left and right sides of the viewport. The vw unit is the cleanest way to do it but as it is CSS3, some browser don't support it : https://caniuse.com/#feat=viewport-units
@vast harbor

vast harbor
#

thx for that @little knoll

#

@little knoll do i use the div id or the ul id for the css??

little knoll
#

The header tag may be the best one to use (if you want the full header to be fixed)

vast harbor
#

@little knoll thank you so much

#

made my life alot easier

little knoll
#

You're welcome ^^

severe sphinx
#

Potentially dumb question here. I'm working in an ubuntu server environment and I need to capture some terminal output for another server to pick up and monitor. I'm aware of methods to redirect terminal output to a file such as with using stuff like command > output.txt, but is there a way to do that only at a specific interval? For example, if I only want an update on the progress of a task every 60 seconds, can I have it output at that interval instead of flooding the file with overwrite commands all the time?

#

Or would it be better for the monitoring script to just try to read the file once every 60 seconds instead? Would the constant overwrite operations interfere with this read operation in any way?

lapis pebble
#

@severe sphinx You can filter the output of the file and read the important parts. You can "follow" the file with tail -f and then pipe it to a script that filters what you want.

little knoll
#

You can also look at GrayLog doc, they may have some tips for this kind of stuff (as it is a log monitoring app, a real-time one though...)

#

Or, you could use a script that take what you want from a output file which is launched every 60s via a Cron Job (probably not the cleanest thing to do though...)

severe sphinx
#

Thanks @lapis pebble AND @little knoll !

torpid knot
#

This is a code to operate a relay using google assistant. Is it possible to modify it so that when you say the specific word to turn on the relay, it goes on for like 1 second and then turns itself off? (same for the word to turn off the relay).
"```"
int relay = D0; //pin to which relay is connected
int boardLed = D7;
bool vin = LOW; //a virtual boolean variable

// setup() is run only once, it's where we set up GPIO and initialise peripherals
void setup() {

// Setup GPIO
pinMode(relay,OUTPUT); // relay pin is set as output
digitalWrite(relay,HIGH);
// Subscribe to events published by IFTTT using Particle.subscribe
Particle.subscribe("mylight_assistant_on", myHandler); //turning off function declaration
Particle.subscribe("mylight_assistant_off", thisHandler); //turning on function declaration
}

// loop() runs continuously, it's our infinite loop.
void loop() {
if (vin==HIGH)
{
digitalWrite(relay,LOW);
}
else if (vin==LOW)
{
digitalWrite(relay,HIGH);
}

}

//our events are called when IFTTT applets are triggered
void myHandler(const char *event, const char *data)
{
vin=LOW;
}
void thisHandler(const char *event, const char *data)
{
vin=HIGH;
}
"```"

#

also, would this code work on arduino too?

little knoll
#

1 - I'm not sure if I understood correctly, can you detail a bit much what this code do ?
2 - Maybe, maybe not, it depends on the language and if there is dependencies that are available on your Arduino.

torpid knot
#

Sure, when ill get home, I will explain better

little knoll
#

Ok 😃

lapis pebble
torpid knot
#

@little knoll That code gets flashed onto a raspberry pi (that has a relay module connected to it) and by using using IFTTT, you can "connect" your google assistant to this code so that when you say a special sentence, the raspberry pi operates the relay. (to turn on or off lights in this case. Example: you say to google "turn on bedroom lights" ,google replies "Ok, lights on" and the relay closes the contacts to turn on the light. Since i want to integrate this circuit to my existing electrical one, i would need the relay to, instead of staying on till i ask google to turn it off, to turn on and off.

#

@lapis pebble I was thinking about something a little bit simpler , like where it says digitalWrite(relay,LOW); to just add a delay (1000); and under it another digitalWrite(relay,HIGH);

#

so that when you ask google to "turn on the lights", the relay goes on and off

lapis pebble
#

That’s an option too. It will block the chip but it is only one second.

torpid knot
#

cause i think that the only way to integrate this into a room with a light controlled by 2 switches, i would have to change the switches to push buttons, make the relay operated by the raspberry pi a "momentary switch" and add another relay to connect the push buttons and the transformed relay of the pi

gilded moon
#

@torpid knot I would be very careful when you're dealing with a Rpi and anything related to mains voltage, good way to burn your house down

torpid knot
#

what could be the cause of a fire with that @gilded moon

brisk carbon
#

Anyone here know owt about phones and custom ROMs

little knoll
#

Just tell us your phone and what exactly you are searching. (I'm more the Stock/Pure Android guy, just saying)

rapid agate
#

wrong channel

little knoll
#

Damn, NTFS compression is working way better than I though! Activated it on a GitHub custom build of the UE4 and it nearly reduced disk space usage by 50% lafrChamp

lapis pebble
#

@little knoll How is performance? for example building UE4

little knoll
#

I didn't tested before compressing, launch and loading time looks about the same (on a XPS 15 9560, on a NVMe drive, i7 7700HQ, so probably no perf impact with this config)

#

I'm playing around with a custom UE4 4.19 build with NVIDIA SDKs integrated (Flow, Blast, HairWorks... Repo : https://github.com/MaximeDup/UnrealEngine (available for those who asked for the UE4 source code))

lapis pebble
#

I saw something similar on nvidia site, but I need a UE4 subscription.

little knoll
#

It's free and available to all btw

lapis pebble
#

You made me recover the password of my dusty epic games account 😄

#

I've only used Unity and at that time its source code wasn't available. We didn't care much about the engine source though. Good old times

lapis pebble
#

@little knoll What is your interest in UE?

little knoll
#

Their work on real time cinematic rendering stuff

#

I'm currently working with their new LiveLink feature to implement some kind of real time mocap on the cheap with some Kinect 2 sensors.

#

And I may try to implement a feature they shown at GDC 2016 where they used a iPad as a screen and gyroscope sensor to show a full UE4 scene rendered on a PC.

lapis pebble
#

And there they weren't using the raytracing extensions nvidia demonstrated this year. The quality is amazing.

little knoll
#

Yeah, that's why I'm really interested by what we can do in real time in the next year or so.

lapis pebble
#

Another surprise I guess (full of NDAs till there is something ready)

#

but the idea of discovering virtual worlds through a tablet/phone is nice. We did a demo with augmented reality where we drew a window into a virtual world and you could "walk inside", but AR environment tracking at that time wasn't very good and the experience couldn't last much

#

Everything was rendered on the phone

#

We had fun, but we didn't make a dollar 😭

little knoll
#

You may have more chances with those new SDKs and APIs for AR on phone, and even with some streaming API, you could use a PC instead of the phone for rendering ^^

#

Currently, my project is to build some open source app to transform some Kinect 2 sensors (which can be found at 20€ used nearly everywhere) as cheap mocap devices for indie games and/or movies studios. I'm in talk with a french Youtuber that I know which is making some videos about filming technologies and what Epic Games is doing with the UE4 is blowing his mind. So we may create a small, rendered in real time, video with the UE4 and some mocap/3D capture.

#

And we may offer it as a standalone VR experience for his YouTube viewers.

lapis pebble
#

Yea, hat was the idea. We knew apple was preparing AR, so we could gain the knowledge and be ready for the arrival of the official frameworks by using things like Kudan or Vuforia. Startup drama ensured and we run out of money :/

little knoll
#

At least you tried ¯_(ツ)_/¯

lapis pebble
#

And had good memories/fun. Your project looks cool. And you’re not alone plus you have a goal. 💯

plush stag
#

Would I be able to get some help regarding the possibility of posting html to the forum? This is related to the LTT Storage Rankings thread.

main wyvern
#

this may seem obvious, probably cause it is.... Have you tried? if so, did it work? no? yes? theres ur answer.

plush stag
#

I did, I tried both just posting my raw html and some BB code generated from an online utility to convert html to bb code.

#

I ended up with a post that was just full of html tags and the bb code one didn't have all the components I'm looking for. I need it to post tables with cells of varying width.

#

I'm reusing the python code from github listed in the storage rankings thread, updated the systems list, and the html I'm trying to post is generated by that script.

#

I'm curious if that ability has been removed or limited to certain users.

little knoll
#

Just try some plain text tables, you probably can use code tags to "disable" line wrap on your table. It's not the most 2018 way to do stuff, but it works.

plush stag
#

Is there a different way that you're posting code?
I put in a SUPER simple html table and I just get the html showing up in the post. If I add code tags I get the code displayed in a box like I would expect. It definitely isn't rendering the html like I'm hoping.

little knoll
plush stag
#

This is what I'm attempting to get.

little knoll
#

Well.. Idk how he done that (because yeah there is HTML tables.

Probably because he is (or was) an admin, he may have access to HTML tags.

plush stag
#

Any suggestion on who to talk to about who may be able to help with updating that? He is gone, and the other person who is named in the thread as looking after the thread seems to be MIA at least in that thread. I've got an updated set of stats and graphs for that thread that can be posted.

little knoll
#

Find a forum mod, mention one here may not be the best idea though.

#

PM them may also not be the best idea. (or maybe not, I don't use the forum enough to say for sure)

plush stag
#

One of the super mods is listed as the thread maintainer, no response since the weekend. I'll try another, and maybe see if I can find somewhere to post asking for help on the forum too.
This at least suggests that I'm not missing something obvious and I need to find someone with more access.

#

Thanks 😃

main wyvern
#

could just post an image of the table

lapis pebble
#

@main wyvern Spot on. 😄

main wyvern
coarse pebble
#

how about formatting in word/ rich text editor and pasting into the reply box:

plush stag
#

An image would be VERY long. It's got 150 builds to display. I'd either have to rebuild the python script to export images instead of the HTML that it already builds.

I'll try opening the html page in word and see if I can copy and paste it.

#

Opening in word messes with all the table cell sizing. The cells are sized to be proportional to the width of the bars.

ionic hull
#

Member count : a shit ton

storm storm
coarse pebble
#

@plush stag wonder if you can copy paste the html output (control a) and just paste into the comments box?

viral bramble
#

Hey, anyone have suggestions on earning the OCA certification (1Z0-80)?

lapis pebble
#

Are certifications still useful?

#

Like there were ever useful. Although perhaps useful is not the right word... worth your time sounds better.

bronze crater
#

Linux Server or Windows Server?

#

OS*

tropic grail
#

Linux.

#

I prefer Debian.

median charm
#

Depends on purpose but usually linux

tropic grail
#

@lapis pebble certifications are very useful.

bronze crater
#

I'm asking cause I just managed to get my hands on a remote Windows Server

#

and it's not that great.

#

And having experienced Linux, i wasn't sure whether I should go for Windows Server, cause i'm much more familiar with windows, or have Linux, cause of the cmd line

#

Also, is an intel atom fine for a small portable server?

#

Thanks for the advice kinda @median charm @tropic grail

tropic grail
#

Linux is a bit more maneuverable and customizable. Atom is fine for a small server.

#

Not the best, but fine. Will run Linux fine, at least.

bronze crater
#

Linux isn't very demanding anyways.

tropic grail
#

Especially with a custom kernel.

proper gale
#

@bronze crater Windows server is only good for some specific workloads, but its mostly used for platform specific applications.
im redoing my schools VM infrastructure with Microsoft Hyper-V because it is cheaper than KVM/Xen solutions, but its not quite as good of a hypervisor design from what i read about them.

tropic grail
#

@proper gale Jake and I have a word for you. Proxmox.

#

Debian-based gold.

proper gale
#

failover?

tropic grail
#

Never had an issue with it and loved it. And it's fast + free.

#

Failover what

proper gale
#

does it have failover clustering?

#

that is the reason we are moving off ESXI and onto Hyper-V

#

yup, it does

#

right now, i already have Hyper-V setup, and im not particularly keen to switching it because i dont really have the time to.

devout lava
#

I tried Proxmox... I think I'll stick with ESXi and Hyper-V 😄

tropic grail
#

weak

#

My proxmox setup beat all other VM software I'd paid for previously

rain bane
#

made my first program today

#

ok

#

yay

proper saddle
#

Hello World isn't a real program. danMAD

#

Change my mind.

tropic grail
proper saddle
lapis pebble
#

@tropic grail the only usefulness I’ve seen in certifications is not the cert per se but in the process of gettin one. It forces you to study since you’ve paid for the exam. It seems a good way to study if you cannot do it by yourself.

tropic grail
#

Many jobs require certification.

lapis pebble
#

Jobs in general or in software engineering?

tropic grail
#

yes

lapis pebble
#

In software engineering I’ve only seen: bachelor degree. Although they usually add: or equivalent experience.

lapis pebble
#

I might be living and moving in a bubble 🙄

lapis pebble
#

Anyway, @viral bramble If it is gonna help you get that job, and you've checked that the company deserves the investment. What can I say, go for it 😃

proper saddle
tropic grail
#

Best comment I've seen is the new ass tearing teradactyl.

foggy lava
#

so @devout lava did u see the code

devout lava
#

yea

foggy lava
#

so what do i do

devout lava
#

Imma paste it here quickly

Private Sub SD_Click(sender As Object, e As EventArgs) Handles SD.Click
        Dim fileReader As String
        fileReader = My.Computer.FileSystem.ReadAllText("C:\DECApps\BGInfo_Temp\BGIADSiteCode.txt")
        MsgBox(fileReader)
    End Sub
#

Hmm

foggy lava
#

the variables need to be two diffrent text files

devout lava
#

tbh...I don't know much about vbnet. GWcmeisterPeepoShrug

fickle pier
#

@smartpeople

foggy lava
#

yea i do software for DETNSW And they need it to be vb.net

timber root
#

I sent an application to Linus as a software programmer. they never replied. :sad: #natural-selection

fickle pier
#

#rip

timber root
#

ja. anyone else here writing a chess engine or a discord library?

lapis pebble
#

@timber root Perhaps that wasn't the right job for you but there are thousands of software engineering jobs.

timber root
#

ja im doing my masters now in computer science

#

but ty for the support haha i was just messing anyway

lapis pebble
#

@timber root Are you in Europe? Wanna work in Greece? Where I work we're hiring at all levels 😃

timber root
#

im norwegian

#

hows Greece doing btw?

lapis pebble
#

Burned 😦 in debt 😦

#

I stopped listening to the radio

timber root
#

that sucks

lapis pebble
#

If you were more senior I won't recommend it, but juniors usually have fun and learn a lot.

cloud knot
elder vale
#

who knows how to run windows programs on heroku

knotty needle
#

heroku is linux basically

#

you could try to use wine

#

but other than that you're pretty much unable

elder vale
#

it's just a bat file

#

but it needs squid and java and python to support it

#

it's a proxy software

weary knoll
#

As Omni said, Heroku applications runs inside Linux containers, so natively running Windows applications isn't supported.
There are proxy solutions you can run on Heroku, is the one you need special or are you just looking for a proxy @elder vale?

plucky sinew
#

so guys and girls. can anyone look at my site and see if there are any seo issues etc. its my first time building a website. next would be to takkle an api and ecommerce store XD

tropic grail
#

Time to break out the VPN

elder vale
#

@weary knoll i just need a proxy

#

i also got a linux version of that application but i doubt that heroku will let me to install it

proper saddle
#

za? thunking

weary knoll
#

@elder vale Heroku allows you to deploy Docker containers to the platform, so I'd imagine if you find a containerized version you'll be golden.

plucky sinew
#

yeah za

ionic hull
#

Any web designer? just html and css ? Paid jobs, pm me

hushed creek
#

I dabble..

#

By that I mean I've made a couple of websites

ionic hull
#

The thing is, I don't need a guy that made a couple of websites, I need someone with professional experience, and a lot of it.

#

I'm hiring because I need someone good

lapis pebble
#

I misunderstood your request too. When I read just HTML/CSS, I understand a small thing + nothing important.

latent perch
#

Same here, if you really want a big website you need at least some js or php. Only html+css is more like an online word document

main wyvern
#

in his defence, he asked for designer not developer

plucky sinew
#

true. but html + css would basically be a wordpress site just blander

lapis pebble
#

Or a static site. It is true that the word designer brings to my mind more of a UI web designer, than someone that can hack HTML/CSS

#

But I guess nowadays it is easy to ask for HTML/CSS if you do web design. At least know the limits and how the web works instead of painting on photoshop

plucky sinew
#

yeah that is true.

lapis pebble
#

One thing I've seen is people doing mostly HTML/CSS authors that know some JS (From an ex-colleague to the famous author of CSS secrets)

hushed creek
#

JS is basically a requirement alongside HTML/CSS now imo

#

It can make things so much smoother and nicer

ionic hull
#

I don't want a developer, I am a developer who seeks a better designer

#

Because I am shit at making templates

#

And don't have the time to learn

mental hemlock
#

html / css is front-end. Just use JS for interaction with api (perhaps using node.js?)_

nocturne galleon
cloud knot
proper gale
#

@mental hemlock heh, JS is frontend too. HTML and CSS are styling.

lapis pebble
#

@nocturne galleon Yes, I write a lot of ugly stuff there. It is nice to try things.

tidal tusk
#

Anyone wanna play with a script I made. It's dirty but I wanna see if someone can reduce it's size. PHP btw

#

I feel that I'm making too many curl requests in it

#

I'm not a coder by any means

north hare
#

Hey, anyone can help me out? jQuery and JS related

lapis pebble
#

@tidal tusk at least wrap curl setup & json decode in a function.

#

@north hare shoot

hushed creek
#

PHP linusPerfect

tropic sapphire
#

Who uses php anymore? Node <3

limpid reef
#

I do! But that's because I'm a WordPress holdout who refuses to touch the constantly outdated development world of JavaScript frameworks that seem to rotate out of fashion / version every 5 minutes.

#

Not saying Node or other frameworks aren't good - I mean, I love the Discord and Slack desktop apps and they're based on Electron - but I'm not going out of my way to rebuild a website from the ground up for my small business clients who are already using WordPress with a shitty theme. Instead, I'll migrate them to a theme with good support and features, then do a redesign there.

lapis pebble
#

A lot of people uses PHP, the language usually is the last of your problems

cloud knot
edgy geyser
#

they're great

#

I love web dev for dummies

#

copying and pasting from stackoverflow

#

cause its true

ionic hull
edgy geyser
#

for anyone here into data logging, I heavily suggest you use some sort of HTTP request log.

#

you can thank me later

lapis pebble
#

@edgy geyser Agree! Graylog here. But I've used graylog for some low volume python projects and it was perfect.

edgy geyser
#

I might take a look into Graylog for a dev environment

#

gives me things to tinker with

nocturne galleon
#

I do everything the incorrect way but as long as it works for me it's fine.

lapis pebble
#

@nocturne galleon how do you know they are incorrect?

nocturne galleon
#

Well I mean, it's not exactly "incorrect", it's just not doing it the way the documentation says to do, and fixing things without fixing the problem, just getting around it, for example, in the optimisation for my opengl renderer, unless I add some data that means nothing after adding the real data, it doesn't render the last thing added to the map

lapis pebble
#

Well, if that is for a demo or a toy project, you can live with that.

#

If you expect me to pay for your renderer/engine... then that's another issue

nocturne galleon
#

The fix was temporary to see if the rest of it works, I'll make fix it properly one day 😛

tropic sapphire
#

@limpid reef that's fair tbh. At work we build financial crm, front end isim angular 6 and the back end is node/ express in aws fargate wh8ch we are migrating over the lamda and will be pretty much fully server less.

But yeah WordPress and a theme is a the simplest way to get a website up.

I'm Not sure how nice node based cms are.

#

Means I get to play about with docker and things.

granite fog
#

I switched from wordpress to ghost for a blog personally, trying to get away from PHP

devout lava
#

why would anyone still use Wordpress

granite fog
#

😂 very true.

tropic sapphire
#

I don't have to do my blog any more :(

devout lava
tropic sapphire
#

It's running grav, flat file crm but has noposts

granite fog
#

My personal site is static HTML5/CSS3 😂

devout lava
#

Mine just runs jQuery for the background image

granite fog
#

I'm primarily a back end engineer at work, so styling isn't really what I'm good at

devout lava
granite fog
#

What do you mean? 😅

devout lava
#

you don't want to see the php powering it

granite fog
#

Oh🤮

devout lava
#

But AJAX is nice

granite fog
#

The software I work on is a .net back end, typescript front end using knockoutjs

devout lava
#

nice

#

I'm not really into development

#

😄

granite fog
#

Long term plan is moving it over to net core and finally getting it cross platform

devout lava
#

Nice

#

That'll be fun

#

I'm more into networking and systems 😄 I find them more fun

granite fog
#

There's still a lot of dependencies that aren't in coreclr though 😔

devout lava
#

Rip

granite fog
#

I can make my way around networking pretty well, I learnt a lot at my old job as they ran everything in house, had a massive 10gb network

devout lava
#

Ooh

#

Nice

granite fog
#

Was fun to see the huge redis caches fail over, copied ~30GB of data in ~6s 😂

devout lava
#

😄

#

I just have gigabit locally right now, that'll change when I move

granite fog
#

I'm glad that gigabit is more than enough for my use case 😂

devout lava
#

😄

lone monolith
#

30gb in 6s long time lol

devout lava
#

My home internet sucks though...

lone monolith
#

I used to get 100/100 at home and now I get like 40-50/10_17

granite fog
#

The 6s is the total downtime of the website whilst it fails over, I never actually looked at how long the copy took

#

I knew it was running at the full link speed, and that's all that mattered

devout lava
#

😄

lone monolith
#

Lol

granite fog
#

They've probably upgraded past 10gbit now anyway, they way over provision everything

lone monolith
#

That's a good thing

granite fog
#

64gb redis servers using 30gb ram at peak times, and there's 8 of them

lone monolith
#

Lol

granite fog
#

Took me a while to convince the sysadmins that they didn't need 16 cores each...

#

2 cores is more than enough for redis 😂

devout lava
#

Lol

lone monolith
#

Hahah

granite fog
#

And CPU load was still only 10% at peak times..

#

Redis is crazy optimized 😂

lone monolith
#

*only

#

That's still to big of a load

devout lava
#

Nah

lone monolith
#

It needs to be 1%

granite fog
#

The old caching servers averaged 60%,they ran ncached

#

Normal times it was about 1%

#

10% was black friday

lone monolith
#

What company was it

devout lava
#

My friend's dad is the head sysadmin...so they get to bring home a lot of the devices not used or servers... lucky

granite fog
#

I'm Not willing to share personal information

lone monolith
#

@devout lava hahah id love that

devout lava
#

My friend got a 48 port gigabit switch

#

With 4 SFP+ uplinks

#

From his dad's work... ;-; lucky. And apparently they use Dell switches

tropic sapphire
#

My use a redis cluster at work but it's managed by aws.

Most of our services run inside docker.

lapis pebble
#

@tropic sapphire do you use containers in AWS?

#

At work we had everything deployed in EC2, but for containers we moved our private cloud, and the first try we had at kubernetes was a total failure.