#development

1 messages ยท Page 33 of 1

storm plume
#

and it gave me text decloration

#

but i have

font-size: 1.7em;
color: #fff;
text-transform: uppercase;
float: left;
margin: 0;
text-decoration: none;
}```
#

and it still shows the line under the header

thin hull
#

because its in a body tag?

storm plume
#

its in <body> <header>

#

<h1><div class="logo">

#

i mean <h1 class="logo">

thin hull
#

take the footer out of the body tag

storm plume
#
<div class="container">
    <h1 class="logo>
#

ok

#

now the footer is gone, but the decloration is till there

#

decoration

#
                <h1 class="logo"><a href="{{ url_for('home') }}"><b>Bored Corner</b></a></h1>```
thin hull
#

I dont even know.....

storm plume
#

its very messed up

#

idk why

thin hull
#

ยฏ_(ใƒ„)_/ยฏ

storm plume
#

or i could replace it with an image, but the thing is after that theres the footer problem

#

where the stupid footer wont work with CSS

thin hull
#

are you using footer {stuff} or .footer {stuff}?

storm plume
#

footer {stuff}

thin hull
#

ok good

storm plume
#

but it doesnt want to work with ANYTHING...

#

also the text padding i was using padding-top and it doesnt do anything

#

and i add padding and it doesnt move down?

thin hull
#

add more?

storm plume
#

i went from 10px to 100px and no change

#

ima try to do it with an image and see how it goes

#

@thin hull just to make sure the alt is for the alternative text to be displayed if image cant be loaded right?

thin hull
#

yes

storm plume
#

ok

#

ok this looks a bit ugly lol

thin hull
#

are they in the header?

storm plume
#

yeah

#

the code

#

@thin hull

thin hull
#

??

storm plume
#

its in the header code

thin hull
#

ok... do they have padding on them or something?

storm plume
#

nope

#
.menu {
float: right;
margin-top: 8px;
}

.menu li {
display: inline;
}

.menu li + li {
margin-left: 35px;
}

.menu li a {
color: #444;
text-decoration: none;
}```
thin hull
#

idk

storm plume
#

i have no idea either

#

css doesnt want to work...

thin hull
#

are the classes matched?

thin hull
storm plume
#

@thin hull everything is matched...

#

or can you help me rewrite the whole thing lol

thin hull
#

im already doing something right now, sorry

storm plume
#

oh ok

storm plume
#

@thin hull i found out, IT DOES WORK. When I edit the css in chrome, but for some reason when I edit in np++ it doesnt save to the file

#

thats why it wasnt updating

#

but I still cannot find out why its not updating the file...

thin hull
#

did you save?

storm plume
#

i have been pressing save and NP++ says it has saved

#

then i check chrome, and it wasnt there

#

and i decide to paste the same code from NP++ to chrome and IT WORKS.

thin hull
#

did you re-open the html page in chrome?

storm plume
#

i reloaded it

#

but for some reason it doesnt want to work with my code

#

@thin hull i reloaded and it disappeared...

thin hull
#

because you edited what it used, not the file....

storm plume
#

yeah i saved it again when its not running

#

still doesnt want to work with it

#

@thin hull if i exit and reopen the code is still there

#

ima relaunch everything

#

yep same problem

#

the file is saved, but the webpage decides not to follow it

thin hull
#

is it included in the html?

storm plume
#

yes

#

and something weird is going on

#

i moved the file out, relaunched and the css is STILL on the webpage

#

i moved to my desktop and somehow its still accessing a css file???

#

@thin hull it seems like theres a Ghost file i cannot see

#

i renamed the path on the html and it disappeared, renamed it and it reappeared

#

even though the file does not exist

#

@thin hull ok it seems im not the only one with this issue, its an issue with FLASK itself

thin hull
#

ok then

storm plume
#

still dont know how to resolve lol

grand hornet
#

I don't understand why you're not just coding with mamp or wamp and using livereload

storm plume
#

@grand hornet im working with Flask

grand hornet
#

So basically you're coding directly into chrome devtools

storm plume
#

Python import flask and NP++

#

i can use VS code if you want

#

@grand hornet do you know why its grabbing the css when it first created not when i update it?

#

@thin hull FINALLY i found out, i needed to FORCE the refresh by using SHIFT+f5 and it finally shows up!!!

#

literally 3 hours for this

thin hull
#

.....

storm plume
#

changed so much code for nothing

#

i was using f5 and thought it would refresh

#

but i needed to "force" it

grand hornet
#

CTRL + F5 not shift

#

Whatever you're doing, it's wrong. You should have no cache enabled for local environment

storm plume
#

Shift f5 worked for me

#

apparently CTRL f5 also works

#

ok so i need to force the refresh every time i update my css

grand hornet
#

๐Ÿคฆ

storm plume
#

if i just refresh it nothing happens

#

i need to force everytime

grand hornet
#

Or disable caching

storm plume
#

in chrome>

#

?

thin hull
#

FINALLY DONE MY FUCKING LIST! now I only need to update it whenever Intel or AMD release a new socket...

#

also apparently Socket TR4 is also known as Socket SP3r2...

#

.... apparently since i used indexes... i get IndexOutOfRangeExceptions.... so now i have to go through and change all 57 lines to use Add() instead..... someone shoot me now...

thin hull
#

just over half way done....

thin hull
#

right... the value i grab starts at one and my list starts at 0....

storm plume
#

@dapper laurel ty

candid mural
#

me and a friend are having this debate of what is good code...
i think it's not having thousands of files to make a program work. but having enough so everybody can work on the project without modifying the same files.
he is thinking it's having one class do one thing.
the example is a countdown script. he wants a static class separated from either our model - view - controller classes.
i want it to be included in the controller since it interact with the logics. and also because we are only two working on this project...
what are your thoughts on this ?

proper gale
#

@candid mural nobody follows MVC

#

nobody.

#

one class does one thing, and all of the thing related to it.

#

a timer is can make itself, time itself, and looks like a timer, not just one of them.

candid mural
#

so you would rather have 30 files for 30 classes ?

proper gale
#

60

#

header and implementation

#

30 in an integrated language.

candid mural
#

c#

proper gale
#

30

whole quail
#

Don't make a new class unless you actually need one

#

If you actually read what your code does a lot of the time you will find that you really don't need a class for it

#

Unless you are using java

#

But then just don't use java

#

If you are using any other language don't create a class unless the class is actually going to do something

#

Most likely there's a better feature in the language to do exactly what you want

#

For your countdown script example you probably only need 1 class anyway lol

#

2 at most

nocturne galleon
#

Alright, So I am developing a fiverr like platform for a specific community. Freelancers will be primarily developers. I would like a system that allows the clients to pay a couple bucks extra to have a repo created that is hosted internally on my platforms servers. And I would like them to be able to give the developers they hire access to that repo so that when they pay a developer for a product, they can also get manage the source in case they want updates or something later say from another developer. But I would also like it to be easy for the developer to commit to the repo. I also need customizability like automatic branch creation for each developer that gets access to the repo so that the master is never actually touched without the client merging them in an easy interface. The Issue with this is that I cant use enterprise git. as the cost is per seat which would be in theory per developer or per both developer and client. Which I cant charge both clients and developers monthly to cover the costs of that. I know there is alternative repo management systems but I have no experience with any of them. Managers such as Nexus and what not. Does anyone have experience with systems like these and if so can You give advice on what I should use for this project. Appreciated.

thin hull
#

well, apparently temperature is a REALLY difficult thing to get, and the people who have done have had to do it based on the ARCHITECTURE OF THE CPU, so... if i want to get the temperature of a CPU in my program..... I have A LOT of code to write.....

thin hull
#

yay, the easiest way to do what i want involves changing licenses i think? legal stuff is confusing ๐Ÿ˜•

thin hull
proper gale
#

@thin hull The Mozilla Public Licence V2.0 allows you to modify, distribute,SUBLICENCE, place warranty, and use patent claims disallows the use trademarks and holding them libable for damages, you also must include the copyright and licence, disclose the source licenced under that, and include the origional.

#

if you use only their unmodified code from Github, you have no licence changes to do irregardless of what one you use.

thin hull
#

thanks, now I just need to be ABLE to work, my drive failed so I have to deal with that right now, thanks for the help tho!

proper gale
#

yea, i had to learn how to read that shit myself.

#

its a pain, but for the most part, if its on github, you can use it.

storm plume
#

Can someone help me with positioning a twitter embed?

#

its default is on the left

#

using CSS i tried many things and it wont move....

#

heres the html

            <div class="twitter_widget">
                <a class="twitter-timeline" data-width="260" data-height="300" href="https://twitter.com/bored_corner">Tweets by Bored Corner Community Twitter</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> 
            </div>```
heres the CSS

.twitter_widget {
position: fixed;
top: 1px;
right: 1px;

}```

I tried many more but nothing seems to move it...

#

wait nvm, i just realized i didnt link the HTML file to the CSS

nocturne galleon
#

^

swift niche
#

-snip-

rotund bramble
#

Anyone know how to add the python path to VSCode?

"python.pythonPath": "C:/.../..." doesn't seem to be working

I did it properly on my desktop, but my desktop is currently unavailable.

prisma obsidian
#

@rotund bramble it should just work if python is in your normal terminal path

nocturne galleon
waxen sedge
#

yo, anyone decent with coding?

#

you should check out my post and help me over in #tech-support if you are

ionic hull
#

@waxen sedge if it is related to coding, post it here

storm plume
#

I cannot center my text in footer(HTML, CSS)
Everytime I add a margin, it creates a white space under the footer. I have made DIV with a margin bottom so it wont go out, but the div does NOTHING.

#

The footer is colored, and when I add margin to the list it creates white space under footer

proper saddle
#

Have you tried using padding instead?

swift niche
#

Can anyone tell me why my %localappdata%\Program\Python\Python36\DLLs folder keeps getting deleted?

nocturne galleon
#

Idk

ionic hull
#

I bought the 1 day use

#

If anyone wants to use it I will pm the account

small kelp
#

Is anyone good with lua or has worked with lua sockets?

fringe oasis
#

havent touch Lua sence Computercraft minecraft mod lol

#

been wanting to use Pico 8

proper gale
#

thats all i used Lua for, horrid language.

proper saddle
#

I think source uses Lua for scripting

whole quail
#

Lua can be really powerful lol

#

Once you understand the language really well it does actually shine in a lot of ways

#

Just no one ever gives it a chance unless they are forced to use it

lone monolith
#

I hate it it's so annoying

whole quail
#

Lua tables are so cool when you get used to them

#

They're very powerful

#

You can basically put anything in them

obtuse pecan
#

Is Floatplane still under development?

proper gale
#

yes

obtuse pecan
#

I'm interested in how it serves video

#

do they place the transcoding burden on the creator?

#

do they try to save on egress by serving smaller resolutions when possible or just serve the same res all the time?

#

Disregarding the total lack of notoriety, is it at least a technically viable alternative for Youtubers who were completely demonetized or post dangerous or offensive material?

whole quail
#

That's kinda the goal

#

To be a second source of income outside of youtube

#

But if it's actually not appropriate of course it won't be allowed

obtuse pecan
#

Curation is not a bad thing

#

I think mousetrap mondays was an interesting case. the guy shows dead mice and constantly got flagged

#

There's nothing about that in youtube's policy

#

but if you get flagged a lot, youtube is going to find it hard to believe you're not some kind of baddie, like a spammer, pirate, uploading porn, etc

#

Machine learning is going to reflect the mores of the masses. Curation can do better

#

but Vidme apparently did not survive their attempt to be a youtube alternative

#

And I'm suspicous it was that they hosted in a wasteful way

#

I think floatplane could achieve storage/cpu/egress costs 100th of Youtube's on a per-second-of-original-video basis by supporting fewer platforms, sticking with the best-in-class compression, and putting some of the transcoding burden on creators

#

Asking creators to transcode their content to AV1 at multiple resolutions is not a crazy idea when your creators are mostly enthusiasts that build powerful computers

whole quail
#

Floatplane isn't a youtube alternative

#

It's to supplement other platforms

#

Also floatplane transcodes it serverside

#

It works a lot like youtube

#

Just with a better bitrate and simpler player

#

Also costs aren't an issue when the people using the service pay for it

obtuse pecan
#

They still are an issue

whole quail
#

Not really, the hosting costs won't be outrageous

#

How often will things be uploaded?

#

It will be creators who are already established

#

So not that often

obtuse pecan
#

the biggest hosting cost will likely be egress. Aws charges about $0.1/GB

whole quail
#

And unless it costs like 5 cents each view for hosting they will be fine

obtuse pecan
#

That's probably why they aren't doing 4k, because 1 view would be about a GB

#

With some limitations though, their current monthly price probably would allow them to break even on hosting

whole quail
#

They already break even

#

They have for a long time

obtuse pecan
#

Well that's good news

whole quail
#

I'm pretty sure it's not just even but an actual revenue source

obtuse pecan
#

I wish them luck really, and I hope they do eventually open up to more creators, and add some better discovery features

whole quail
#

I don't think you understand what it is

#

There are no discovery features

obtuse pecan
#

yeah, that's a problem isn't it?

whole quail
#

No...

obtuse pecan
#

probably the only reason I haven't yet tried it

whole quail
#

You have to pay money for each creator

#

What are they going to do

obtuse pecan
#

what kinds of videos exactly can you find there? I have no idea

#

There aren't even thumbnails

whole quail
#

Advertise other creators and then popup saying "Just pay for a month of access now to watch the video"

#

It's not a youtube replacement

#

It's to supplement other sources

obtuse pecan
#

Is that what creators really need?

whole quail
#

Also btw there are thumbnails lol

#

Yes because youtube ad revenue is nothing

#

If your key audience pay some money per month to have early access then that's a lot of money you wouldn't have had otherwise, or perhaps a few dollars in ad revenue sacrificed at most

obtuse pecan
#

Sorry If I'm blind here, I'm new to this community, where in floatplane media can you browse thumbnails, descriptions, or even names of content to decide if you'd like to subscribe?

whole quail
#

You don't, because you don't subscribe unless you already know the content creator

#

No one is going to pay for a month of early access to a content creator they don't know just because the website suggested it to them anyway

obtuse pecan
#

Sure, but leaving the discovery completely to other platforms seems strange

whole quail
#

Not at all

#

You have to pay to access a new creators videos

#

Why would anyone pay for a month based of some thumbnails

obtuse pecan
#

mainly the problem I see with YouTube isn't the paltry ad revenue, but the vague, out-of-touch rules, enforced in a shoot-from-the-hip kind of way.

#

Maybe that's not the problem creators have with it

whole quail
#

If that creator wants to make money by using floatplane then that's fine, but they have to actually have a fan base before hand

#

Would you expect patreon to advertise on creators pages other creators pages?

obtuse pecan
#

I've discovered a few creators that way

#

Well, I'm disappointed floatplane isn't trying to be a youtube alternative.

#

With self-funding comes the possibility of freedom

#

Especially if you can drive operational costs very low

whole quail
#

It has never tried to be a youtube alternative

#

That's been made very clear since it was started

obtuse pecan
#

I basically want "Youtube Adults" with guns, porn, dangerous chemistry, and offensive politics, where the viewers pay for a slimmed-down operation instead of advertisers

#

No rules except the laws of the country you're connecting from

#

One of these days, I hope the market for that is big enough that a company actually does it

#

with just regular hosting and a suite of apps, not wierd blockchain hosting

vestal glen
#

ah, so liveleaks

obtuse pecan
#

Maybe I should give liveleaks a chance. I always thought it was more clickbait than interesting creators

nocturne galleon
#

hey can you share software here

limpid reef
#

@nocturne galleon I'd guess we can share our development projects here, if that's what you mean. Like links to Github projects and what not, if we need to reference something.

thorny galleon
#

probably because floatplane doesn't want most of what you said

river light
#

what's the best C ide that isn't bug prone?

proper gale
#

@river light heavyweight or lightweight?

nocturne galleon
#

would this be where i post my idea for something I wanna make for my loop?

river light
#

@proper gale anything simple with a debugger

#

codeblocks keeps bugging out both on linux and windows

proper gale
#

Can you use intellij?

#

@river light

hasty sail
#

CLion for sure

#

Intellij doesn't support C afaik, that's what CLion is for

river light
#

never tried it, will try now

hasty sail
#

let us know how it goes or if you encounter any problems

river light
#

hang on do I have to pay for this?

#

Is there a free community edition?

proper gale
#

@hasty sail oh you dont say (look at my status)
Just happens to be basically the same in terms of how you go about using it.
and IntelliJ is the much more commonly used IDE.

#

@river light Clion is a paid IDE, if you are a student you can get a free licence, like i do.

#

if you are a student, you can use the free trial while you get a licence.

#

PS: HS is fine too, i am in HS, just use the manual review method.

hasty sail
#

I know that they are basically the same, but as you can't use IntelliJ for C, let's not recommend that for C

#

IIRC few years ago IntelliJ could be used for C aswell

proper gale
#

it could

#

and i was not

#

i was asking if they could use IDEA, beacuse if so, you can use CLion, if not, you cant.

hasty sail
#

okay, my bad then

#

but intellij and clion are quite intuitive to use from my experience

proper gale
#

They are

river light
#

alright, installling clion

#

well, getting a student account was easy

#

thought I did need to ask my school to do something

thorny galleon
#

does anyone know if it's possible to remove a quad flat package IC without a hot air station
would like to properly scan this PCB, but this QFP sticks up so much that it won't focus properly

proper gale
#

@river light be warned about CLion, it will demolish your CPU.

river light
#

how bad are we talking about? my laptop is a i7-4720 HQ

restive sundial
#

i had CLion and my ryzen 7 1700x was just fine, hell even my laptop

#

my laptops cpu is Intel core i7-6700HQ

main wyvern
#

I've ran Jetbrain's IDEs on a dual core pentium before, it'll run fine on a laptop

proper gale
#

it will work fine

river light
#

ok

#

well

#

when I press the run button and then the run button on the config window nothing happens

#

am I missing something?

#

Do I have to download a compiler?

molten breach
#

@hasty sail most C++ development environments can be used for C

#

since a C++ compiler is usually capable of compiling native C code

#

(For example, Visual Studio can compile C code in a C++ project)

hasty sail
#

yes, but IntelliJ does not support C++ either AFAIK

proper gale
#

IntelliJ supports neither

#

Clion supports both.

river light
#

I can't run anything for some reason on clion

proper gale
#

you setup a compiler?

#

@river light

thin hull
#

Does anyone mind testing something for me on an intel system? (trying to figure out if a weird bug is due to being run on an AMD system)

#

ping me when you reply pls, I wont be checking discord a lot

vestal glen
#

what kind of intel system?

thin hull
#

something running windows, and preferably something recent

whole quail
#

What do you need tested?

#

How recent

#

I have a 6700k

thin hull
#

that would work great

#

ill work on getting you a build if you want

whole quail
#

What is it you need tested

#

I'm not doing anything critical atm, just writing an anti cheat and creating a keep alive system but I suck with encryption and don't know how I should implement it

thin hull
#

The program itself right now detects info about the systems CPU, for some reason on my AMD system, the L2 Cache speed is being detected as either null or False

whole quail
#

Were you the guy making a hardware info reader?

#

I saw someone in here doing that

thin hull
#

yeah, might be

#

my drive failed so i kinda had to stop for a bit

whole quail
#

Also if anyone knows something about cryptography please help point me towards a solution

#

Yeah that was you

thin hull
whole quail
#

For my problem I need a way to encrypt and decrypt communications between a client and server

#

I need a nice implementation I can do in C++

#

Without any heavy libraries

thin hull
whole quail
#

If it's a virus I'm reversing the shit out of it

#

I know how it works under the hood

#

And the theory

#

I kinda want to know an easy implementation so I don't have to write it myself because I kinda need it to actually work

thin hull
#

fine by me, its open source anyways

whole quail
#

I mean if it's not a virus idc what it's doing enough to find out

#

And I suck and reversing shit

thin hull
#

just tell me what you get for the L2 cache speed

whole quail
#

Also really annoyingly my cpu won't overclock now

thin hull
#

rip, ok, ill look into that

whole quail
#

Not with this

#

I mean in general

#

It stopped working and your program reminded me

#

Now I'm sad again

thin hull
#

oh lol

#

๐Ÿ˜ฆ

whole quail
#

I want a 4.5 oc but for some random reason it fails

#

I'd flash the bios but I'm lazy

thin hull
#

alright, well, thanks for testing that for me!

whole quail
#

Program looks cool

thin hull
#

thanks

whole quail
#

btw some stats change from null to different things like to be filled by oem on and off

thin hull
#

what things specifically?

whole quail
#

cpu load was one

#

Now it's not happening

#

rip

#

Good luck with that one

#

I'm hurting just thinking about debugging that

thin hull
#

cpu load updates twice a second based on a WMI property.... why the fuck would it be "to be filled by oem" ? I know some things do that but load? wtf....

whole quail
#

There was null, null%, large number%, To be filled by oem

#

All in load percentage

#

Oh and cpu base clock did it

#

Those 2

thin hull
#

im gonna have to put a check for that stuff...

whole quail
#

I think you can find 2 of the bugs for load

#

Since it had both null and null%

#

One is the string as null and one is a null number cast successfully

thin hull
whole quail
#

And for base clock it had different numbers

#

That's it

#

The array was corrupting

#

Out of bounds memory

thin hull
#

ok....

whole quail
#

Yeah good luck finding out why but your array was incomplete

#

Something error'd in the assignment of the values and it all broke

thin hull
#

its actually a list, im using a list since I didnt want to deal with having to pre-define all the elements of an array, AND the max size

whole quail
#

That makes even more sense

#

The list is shorter than 26 but bigger than 17

#

How big is the list normally?

main wyvern
#

that purple text on grey background is bloody impossible to read

thin hull
#

52.... or something around there

whole quail
#

You have 43 to 51 errors

#

LOL

thin hull
#

the text color is either dodger blue or whatever your windows 10 accent color is

whole quail
#

Oh btw I am half asleep I did the maths wrong, you only have 27 to 18 errors

thin hull
#

and the best part is, this is the C# version.... im still planning to do the same thing in C++....

whole quail
#

So 18 to 27 errors occurred while assigning items to the list

#

That's some bug

#

hahaha

thin hull
#

๐Ÿ˜ซ

whole quail
#

I'm having trouble repeating it again too

#

I repeated it twice

#

It happened and then I closed and reopened it

#

Twice it happened but not once since

#

Now I feel better about what I'm writing atm xd

thin hull
#

skyrim is looking really good rn....

main wyvern
#

npm is drunk

vestal glen
#

node gyp you mean

main wyvern
#

eh, its still part of npm

#

xD

thorny galleon
#

does anyone here have experience with compression? i've got a zstandard compressed file that i've decompressed, but it's a large (3.6GB decomp) package of game assets

#

how can i split this large package up into individual files?

#

there's also a 514KB "manifest" file

fallow zephyr
vestal glen
#

why shouldn't it?

fallow zephyr
#

thought you couldn't just have a million semicolons just hanging there like that

#

oh

river light
#

@proper gale I think I did

#

since I had to install a compiler for codeblocks

#

but doesn't jetbrain apps come with inbuilt compilers?

proper gale
#

@river light what OS are you on?

whole quail
#

I need some help with C++, I'm creating a function signature for a function that has optional parameters, it won't work and when I don't have the optional parameter on the function call I get a stack overflow

#

@proper gale maybe you know?

proper gale
#

Post the code

whole quail
#

What part?

#

Or parts

proper gale
#

the part in question

whole quail
#

The whole thing is far too large to post and I don't really want to anyway

#
typedef NTSTATUS(NTAPI *pNtReadVirtualMemory)(HANDLE, PVOID, PVOID, ULONG, PULONG);
#
NTSTATUS NTAPI MyNtReadVirtualMemory(HANDLE pHandle, PVOID baseAddr, PVOID buffer, ULONG bytesToRead, PULONG bytesRead)
{
    //MessageBoxA(NULL, "Read Detected", "FAC", MB_OK);
    _NtReadVirtualMemory.reset();
    NTSTATUS retVal = NtReadVirtualMemory(pHandle, baseAddr, buffer, bytesToRead, bytesRead);
    _NtReadVirtualMemory.reHook();
    return retVal;
}
proper gale
#

this is a callback or?

whole quail
#

For a hook

proper gale
#

so a normal function with optional, you just have void func(int param = -1)

#

i dont see any default params here.

#

default/optional.

whole quail
#

NtReadVirtualMemory has an optional for the last parameter

#

Which I am hooking

proper gale
#

so bytesRead is optional?

#

check if nullptr, if so, ignore it.

#

you should be using bytesToRead as bound

whole quail
#

I'm passing all of those through to the actual function

#

I have nothing to do with them

#

But I can't ignore it

#

If I don't have it I can't call NtReadVirtualMemory

proper gale
#

So the library is broken?

whole quail
#

No, I am using a function pointer for it

#
pNtReadVirtualMemory NtReadVirtualMemory;
#
NtReadVirtualMemory = (pNtReadVirtualMemory)GetProcAddress(module, "NtReadVirtualMemory");
proper gale
#

How does it break then?

whole quail
#

When something else calls NtReadVirtualMemory in the process it stack overflows at my function

#

When it doesn't have the optional param

#

Which I assume is because my function doesn't have it optional, but I can't call the function without a param since I use a function signature

#

If I just give it NULL I get a stack overflow in the function I hooked

#

I can just make a second function signature without it I think, but I really don't want to do that because I'll have to do it a lot

river light
#

@proper gale windows 8.1

whole quail
#

Maybe my error is somewhere else

proper gale
#

stack overflow or seg fault?

whole quail
#

stack overflow

#

Everytime

proper gale
#

how?

#

SO is not that common a thing

whole quail
#

Yep

#

I think it's to do with the extra param

#

Because I'm testing now and some weird shit happens

#

wait what

#

It's stack overflowing on VirtualProtect

#

But if I put a MessageBox before it the error doesn't happen

#

Or at least isn't reported

#

wtf???

#

okay wtf I somehow fixed that by commenting out VirtualProtect

#

But how the fuck does VirtualProtect cause a SO????????

#

Now I'm getting access violation

#

I assume this error is because of the problem with function signatures

#

I think I might have an idea what is happening

proper gale
#

@river light download mingw-w64

#

I can get you a link in a minute

#

I recommend the posix seh version

river light
#

wait I think I already have mingw installed when I had codeblocks

#

yeah, I have mingw

river light
#

well, I've added mingw to the toolchains

#

what now?

proper gale
#

Should work

fleet sable
#
USE Northwnd
GO

SELECT Orders.OrderID AS Ordernr, Categories.CategoryName AS Kategori, Products.ProductName AS Produkt, Products.UnitsInStock AS 'Pรฅ Lager', [Order Details].UnitPrice AS Pris, [Order Details].Quantity AS Antal, convert(varchar(10), Orders.OrderDate, 110) AS Dato
FROM dbo.Orders
        INNER JOIN dbo.[Order Details]
            ON [Order Details].OrderID = Orders.OrderID
        INNER JOIN dbo.Products
            ON Products.ProductID = [Order Details].ProductID
        INNER JOIN dbo.Categories
            ON Categories.CategoryID = Products.CategoryID
        WHERE Categories.CategoryName = 'Seafood' AND Products.UnitsInStock > 0 AND Orders.OrderDate >= '1996-10-1' AND Orders.OrderDate <= '1996-10-31' ORDER BY Orders.OrderDate

Our teacher said this was the hardest assignment he had....

cyan niche
#

that doesn't look like a good query.

fleet sable
#

Nope

#

It is really bad

#

But he got mad when i told him it would be better to do it other ways

cyan niche
#

too many joins

fleet sable
#

His reasoning for not listening to me was he had more experience with production databases

#

But yeah, it's a lot of joins for very little data

cyan niche
#

I probably have more experience with production databases.

#

At least your joining on indexed fields so whatevs.

fleet sable
#

You are properly more clever, but i'm sure he has more years with it xD

#

He is 66

#

And worked with databases for 19 years :3

#

And was a teacher in it for the rest of the years

cyan niche
#

psh

fleet sable
#

But as i said, the chance that you could do it better is pretty big

cyan niche
#

The cool thing about programming is that when you're wrong, it's easy to show how.

proper saddle
thin hull
#

anyone see the live share beta video? i think it looks pretty cool, the presenters dont look nearly as cool tho

proper gale
#

@proper saddle is one resharper?

vast harbor
#

whats wrong with my code
Private Sub cboTeamSelection_Change()
If usr.Results.cboTeamSelection.Value = ("Broncos") Then
UsrResults.BackColor = RGB(153, 0, 51)
UsrResults.lblTeam.BackColor = RGB(255, 192, 0)
ElseIf usr.Results.cboTeamSelection.Value = ("Cowboys") Then
UsrResults.BackColor = RGB(153, 0, 51)
UsrResults.lblTeam.BackColor = RGB(255, 192, 0)
ElseIf usr.Results.cboTeamSelection.Value = ("Titans") Then
UsrResults.BackColor = RGB(153, 0, 51)
UsrResults.lblTeam.BackColor = RGB(255, 192, 0)
ElseIf usr.Results.cboTeamSelection.Value = ("Cutters") Then
UsrResults.BackColor = RGB(153, 0, 51)
UsrResults.lblTeam.BackColor = RGB(255, 192, 0)
End If
End Sub

tropic grail
#

It's not in a code bracket:

Private Sub cboTeamSelection_Change()
    If usr.Results.cboTeamSelection.Value = ("Broncos") Then
        UsrResults.BackColor = RGB(153, 0, 51)
        UsrResults.lblTeam.BackColor = RGB(255, 192, 0)
    ElseIf usr.Results.cboTeamSelection.Value = ("Cowboys") Then
        UsrResults.BackColor = RGB(153, 0, 51)
        UsrResults.lblTeam.BackColor = RGB(255, 192, 0)
    ElseIf usr.Results.cboTeamSelection.Value = ("Titans") Then
        UsrResults.BackColor = RGB(153, 0, 51)
        UsrResults.lblTeam.BackColor = RGB(255, 192, 0)
    ElseIf usr.Results.cboTeamSelection.Value = ("Cutters") Then
        UsrResults.BackColor = RGB(153, 0, 51)
        UsrResults.lblTeam.BackColor = RGB(255, 192, 0)
    End If
End Sub
vast harbor
#

still doesn't work and when debugging, the second line highlights in yellow. BTW in excel

#

@tropic grail

tropic grail
#

No, I posted your code in a bracket, so I could read it.

#

usr.Results vs UsrResults perhaps.

vast harbor
#

Thank you @tropic grail works now ๐Ÿ˜ƒ

tropic grail
#

๐Ÿ‘Œ

thorny galleon
#

is it possible to MITM TLSv1.2 like Fiddler does with HTTPS?

#

trying to read some packets from a game

cyan niche
#

wireshark?

tropic grail
#

It's possible to MITM anything. Ask NSA.

whole quail
#

Yes just use wireshark

#

Wireshark is really powerful

acoustic hill
#

lol

#

you gotta get something like mitm proxy and a custom ca that you trust with a wildcard certificate on your target.

#

it's easy enough to do really if you know what you're doing.

thorny galleon
#

which i don't ๐Ÿ‘‰ ๐Ÿ‘‰

ionic hull
#

๐Ÿค”

nocturne galleon
#

@tropic grail how do you insert code in bracket on Discord? (Tag me if you reply)

cyan niche
#

test

#

@tropic grail triple accent `

little knoll
nocturne galleon
#

Thank you @Sacrieur#8297

tropic grail
#

^

nocturne galleon
#

AFTC.JS Version 1.6.21 released! (42kb)

Every function/class has taken a review and many have had a minor update. Some of the major components such as AFTC.Audio and AFTC.Color have had a major revamp. And not to mention each and every function and component now has a codepen example.

github: https://github.com/DarceyLloyd/AFTC.js

npm: https://www.npmjs.com/package/aftc.js

codepen: https://codepen.io/AllForTheCode/pens/public/?grid_type=list

Code on...

CodePen

Web Developer 18 Years commercial experience, html, css, javascript, as3, php, xml, json, mysql, etc

proper saddle
whole quail
#

Interesting

#

I'm not sure if a deal will happen but honestly it wouldn't effect me in any negative way at all

#

But I can definitely see why some people wouldn't like the move

proper saddle
#

Yeah, I'm using Microsoft products when developing anyway. :p

lethal osprey
#

I'm not using MS products at all but I'm not against this one. If it was Google or Apple then I'd hate it, but MS doesn't seem to be overrun with PC culture and doesn't continually try to shove platforms together (F*ing FireBase I hate you) and then just give up on them (Hangouts...?)

#

Honestly when GH suggested I add a CoC to a new project I was about to stop using it right then and there. They seem to have cut that out but still left a bad taste.

proper gale
#

you dont like that they suggested it?

#

i think suggestions are fine, its when they force you to thats a problem.

cyan niche
#

I just use git command line

proper gale
#
                for (auto lib : librariesToLoad) {
                    auto handle = Internal::loadLibrary(lib.root_path().c_str());

                    Internal::implLibraries.emplace_back(handle);
                    auto loadFunc = Internal::getFuncAddress(handle, Internal::CecilFunctionLoaderSignature);
                    auto func = Platform::LoadFunc(loadFunc);

                    typedef void(* InitFunc)();
                    auto initFunc = InitFunc(func(handle, IMPL::INIT));
                    initFunc();

                    typedef std::vector<void*>(*AvailablePlatforms)();
                    auto avalablePlatforms = AvailablePlatforms(func(handle, IMPL::AVAILABLE_PLATFORMS));
                    auto platforms = avalablePlatforms();

                    for(auto platform : platforms){
                        auto cecilPlatform = new Platform(handle, func);
                        cecilPlatform->platformHandle = platform;
                        Internal::platforms.emplace_back(cecilPlatform);
                    }
                }```
#

@nocturne galleon this is actual machine lang, x86 mov 0x108(%rsp),%rcx ! 0x00007f7f1d21ee97 xor %fs:0x28,%rcx ! 0x00007f7f1d21ee9f mov %r8d,%eax ! 0x00007f7f1d21eea8 jne 0x7f7f1d21eecc # <__GI_raise+252> ! 0x00007f7f1d21eeab add $0x118,%rsp ! 0x00007f7f1d21eead retq ! 0x00007f7f1d21eeb4 nopl (%rax) ! 0x00007f7f1d21eeb5 mov 0x3abfa9(%rip),%rdx # 0x7f7f1d5cae68 ! 0x00007f7f1d21eeb8 neg %eax ! 0x00007f7f1d21eebf mov $0xffffffff,%r8d ! 0x00007f7f1d21eec1 mov %eax,%fs:(%rdx) ! 0x00007f7f1d21eec7 jmp 0x7f7f1d21ee80 # <__GI_raise+176> ! 0x00007f7f1d21eeca callq 0x7f7f1d314c80 # <__stack_chk_fail> ! 0x00007f7f1d21eecc nopw %cs:0x0(%rax,%rax,1) ! 0x00007f7f1d21eed1 nopl 0x0(%rax,%rax,1) ! 0x00007f7f1d21eedb test %edi,%edi ! 0x00007f7f1d21eee0 js 0x7f7f1d21eef0 # <killpg+16> ! 0x00007f7f1d21eee2

rose field
#

whoaw, a programming channel

timber violet
#

Im making a git server on my raspberry pi. What is the safest way to allow others to connect to the server? Right now I create separate user accounts and give each of them direct symbolic links to the repositories they should have access to which are all stored within one directory that only I have access to. Additionally, all users are restricted to git shell only.
I grant and deny user access through shellscripts
Grant:

#allow user org
#creates a symlink in the users home dir

chmod 770 /var/git/$2

cd /var/git/
setfacl -R -m u:$1:rXw $2
setfacl -R -m d:u:$1:rXw $2
setfacl -m u:$1:rX .

cd /home/gitUsers/$1
ln -s /var/git/$2 $2

Deny:


#remove access privledges to org for user

#denyUser user org

cd /var/git

setfacl -R -m u:$1:000 $2
setfacl -R -m d:u:$1:000 $2
setfacl -m u:$1:000 .

Is this a secure way to do this? will it prevent people from accessing repositories i don't give them access to? Is there anything else i should be worried about?

proper gale
#

@timber violet I would recommend using gitlab, it has a arm package for debian (not Ubuntu)

cyan niche
#

yeah gitlab is fantastic

swift niche
#

gitlab is great

#

I had some issues setting it up from the terminal, but I went through their website's setup process and it works great now

proper saddle
#

I'm probably going to be doing that for the entire week. :v

proper gale
#

@proper saddle that last episode of Steins;Gate 0, ...

tropic grail
#

No spoilers. I've not started it yet.

proper gale
#

i spoiled nothing.

tropic grail
#

You spoiled that it exists already.

proper gale
#

if you have watched it, you will know exactly what im talking about, if not, you wont know until you get to that episode.

#

wut?

tropic grail
#

I was completely unaware that it already started.

proper gale
#

...

tropic grail
#

I know it was delayed like forever.

#

So I got busy, abandoned the anime genre, and completely forgot about it.

#

Um... I can't unsee this ad...

proper gale
#

what ad?

tropic grail
#

"18+ **** sent straight from Japan with total privacy"...

proper gale
#

oh, that one.

#

i was about to

tropic grail
#

Got it for you. Can't leave download links to copyrighted content laying around and all.

proper gale
#

its not a download link though.

#

its a link to a site with torrent links.

tropic grail
#

piracy, shmiracy. kappA ยฏ_(ใƒ„)_/ยฏ

proper gale
#

ยฏ_(ใƒ„)_/ยฏ

proper saddle
#

Wut, it was because the variable wasn't capitalized, that wasn't my fault.

proper gale
#

generally is best-practice to use a different case style for const variables.

swift niche
graceful silo
tropic grail
#

gitlab Gitlab > Github

lethal osprey
#

GH has the advantage of having a bit of an SNS feel to it and it's an incredible concentration of projects, so for OSS stuff it's still superior to GL, but then again SourceForge is really coming back with their rework. I already have a GL server for our private stuff, but I could see switching to SourceForge from GitHub for our public/OSS stuff if GH goes down hill.

#

as far as functionality and lack of hipster BS I agree completely with @tropic grail that GL > GH. GL has gone from klunky to polished in the last ~4 years I've been maintaining an installation

tropic grail
#

Gitlab was bad, but it's really cleaned up.

lethal osprey
#

I wouldn't say bad, but it was a f*ing mess

#

installation used to be crazy

#

and updating

tropic grail
#

CSS used to break all the time.

lethal osprey
#

I remember this one time I didn't update for like 6 months because we had a project and I didn't want down time and they ended up updating a full major version some time between then (7 to 8?) and it took me like 2 days to finish updating

#

CSS breaking is the asset cache

#

and that was probably becuase of how they had you lock the git repository (which makes parts of it write protected) and the fact that Sprockets was (and still is...) garbage

#

Rails moved from Sprockets to WebPacker between Rails 4 and 5 and honestly WebPacker makes a lot more sense as long as you don't need strangely specific asset compilation chains

proper saddle
#

TBH, I don't really have a good excuse to switch to Gitlab because I mainly use .Net

lethal osprey
#

you can host .net projects on GL

#

not sure what .net really has to do with that

proper saddle
#

I know, but the main reason people are switching is because of Micro$oft

lethal osprey
#

they haven't even bought it yet...

proper saddle
#

And .Net is a MS technology.

lethal osprey
#

I think it would have more to do with people just not liking MS, but honestly at this point even though I don't use any MS stuff and haven't for well more than a decade I think they have a much more sane corporate culture and way better quality control than Google or Apple

cyan niche
#

Their developer stuff is great.

whole quail
#

Yeah as much as I hate visual studio for a giant ass list of reasons a lot of their developer support is really nice

#

Like I could rant for hours and hours about visual studio

#

I am only just holding off the urge to do that right now because I know people don't want the channel flooded with a thousand messages

proper saddle
#

It's official there's a banner when you visit github.com now.

dreamy finch
proper saddle
#

o:

#

7.5 billion...

#

That almost 4x of what it was valued at in 2015

cyan niche
#

Alright alright, but look what they did with xamarin

#

it's not the same category

#

They clearly have a different department dealing with developer stuff since it's way different quality.

#

I don't know who is working on Skype, like interns or something I guess.

#

plus if they tank it then gitlab gets popular so whatever, it's not like we have to wait four years for the discord equivalent to come out.

proper saddle
#

There's also Bitbucket

main wyvern
#

gitlab is better

graceful silo
lethal osprey
#

@graceful silo That's how all services work. You've never seen a Terms and Conditions agreement or a Privacy Policy?

graceful silo
#

Look at the screenshot again.

lethal osprey
#

what about it?

#

about contacting support?

#

that's to remove details of an existing account

graceful silo
lethal osprey
#

oh.... hahahahahhahaha

#

wtf

#

ok yeah that's amazingly confusing

graceful silo
#

They showed it with an accept button, which I clicked, then showed it again without an accept button ๐Ÿ˜‚

lethal osprey
#

it's like some sort of test

#

it's not an A/B test it's an A/-A test

#

"Will the user both accept AND decline!?"

tropic grail
#

Gitlab can't collect on a local install.

main wyvern
#

No sane person would use self hosted gitlab

#

Gogs ftw

thorny galleon
#

anyone have experience MITMing WebSocket Secure (wss://) connections?
it's essentially websockets over ssl
it's piss easy to MITM HTTPS with Fiddler, but this is a desktop application using WSS

whole quail
#

Wireshark is probably the easiest option

graceful silo
#

Maybe once I get my server up and running I'll set up local GitLab, but for now ยฏ_(ใƒ„)_/ยฏ

#

Not like I use git much if at all, at least not yet

proper gale
#

@main wyvern i most definitely use a self hosted Gitlab,

cyan niche
#

Do you even need a local gitlab?

#

Just backup your repos on some Unix box.

proper gale
#

It's my school's box.

cyan niche
#

O:

jovial cobalt
#

im going to post this here because i dont really know where to ask this question. so windows is popular because they have all the applications right?

#

why couldnt another company make an os specifically that runs windows applications?

#

like design a new os around being able to run at least some windows applications?

proper gale
#

@jovial cobalt 1st, then its windows. 2nd, copyright laws.

timber violet
#

wine is a thing: https://www.winehq.org/

whole quail
#

You could 100% create a version of linux that runs windows applications

#

You'd have to break a lot of copyright laws, get sued for 10s or 100s of millions and spend thousands or 10s of thousands of hours integrating the binaries you stole with linux

#

lmao

#

You would have to steal the binaries

#

It's simply not possible with our technology to reverse windows to the point that you could rewrite it

#

No matter how many billions you throw at it you'd need to do a lot before you even started on the project

#

My point exactly

thorny galleon
#

reactos can run quite a lot

whole quail
#

Both of them are no where near

thorny galleon
#

also, it's clean-room

whole quail
#

Sure win32 might be easy to implement

#

But anything further is going to be a giant time and money sink

#

Maybe even you get ntdll down to a degree

thorny galleon
#

reactos has started targeting NT6+

whole quail
#

Except they won't have all of ntdll working

thorny galleon
#

i think you're misunderstanding the point of reactos

whole quail
#

You've given that as an example of reverse engineering windows to allow things to work on other os?

#

That's no where near what you'd even start to need

thorny galleon
#

if you want an example of reverse engineering to work on another OS, look at WINE

#

wine is really fucking far along nowadays

whole quail
#

Both are no where near

thorny galleon
#

wtf do you mean?

whole quail
#

At most they have like 80% of the front facing apis

thorny galleon
#

you can run plenty of modern apps and games in wine

#

especially after 3.0

whole quail
#

I bet you I can pick a program I made right now and it won't work

thorny galleon
#

shit like Overwatch runs without patches

whole quail
#

I don't think you get it

#

That stuff is only a tiny drop in what full windows functionality would mean

thorny galleon
#

i think you're being deliberately obtuse and trying to imply that a lack of obscure features means an entire project is useless

#

wine and co are targeting full functionality

#

wtf is the point of them just stopping now

#

especially when so much runs in WINE already

whole quail
#

The fact that you're thinking of features means you have no clue

thorny galleon
#

you're boneheaded as fuck mate

#

if you randomly pick an application that utilizes something brought in by the very latest windows build, then no it probably won't work

#

but that's just cherry picking

#

and changes literally nothing

#

the project is still incredibly useful and far along for what its targeting

whole quail
#

Again, not about features

thorny galleon
#

then wtf are you even talking about dude

whole quail
#

That shit is so much easier to implement

#

It's how they work

thorny galleon
#

wine and reactos are not clones

#

they never were

#

they don't have to be spot-on

#

in fact that'd be infringement

whole quail
#

If I try and manipulate windows in a certain way will it behave the same? If not half the shit I'm making will break instantly

thorny galleon
#

the fuck even is your point here

#

that wine and reactos are pointless projects or smth?

whole quail
#

That they are no where near full compatibility and never will be

#

Which is what the original question was

thorny galleon
#

no shit

#

but they're far along

#

well, wine more so

whole quail
#

Far along in terms of themselves

#

Not in terms of windows

thorny galleon
#

far along in terms of running modern applications

#

you have to be running some weird as fuck bleeding edge shit for it to not work in a modern WINE version

#

and even then, why not just contribute and help fix it

whole quail
#

Again, shut up about features lmao

thorny galleon
#

wtf are you talking about then

#

it's a fucking reimplementation

#

it's supposed to run the programs in a similar environment

#

not a 1-1 byte for byte clone

whole quail
#

If you think windows is just a bunch of apis you have serious issues

thorny galleon
#

if it runs the programs properly

#

wine has succeeded

#

that's what its for

#

it's not supposed to run them in a perfectly simulated environment

whole quail
#

A lot of programs require manipulating different os functionality like anti cheat, anti virus, debugging, modding, cheating, malware, etc...

thorny galleon
#

wine is not an emulator

whole quail
#

I don't give a fuck about what wine does

thorny galleon
#

then you're a fucking dumbass who can't spent two seconds to actually figure out what wine's project goals are

#

same with reactos

whole quail
#

I'm saying that it isn't close to emulating windows

thorny galleon
#

it's not an emulator

#

neither are emulators

#

never has their goal been to emulate windows

whole quail
#

I know that, you're the idiot using wine as an example of emulation

#

Not me

thorny galleon
#

i'm using it as an example of something that is explicitly not emulation

little knoll
#

That discussion won't end well

thorny galleon
#

wine has never tried to emulate windows and it won't

#

because thats not what the project is about

whole quail
#

Then it's completely irrelevant to the question

thorny galleon
#

it's just to run the damn programs properly

whole quail
#

Why the fuck are you using it as an example when it has no relevance

#

They don't???

#

If there are applications that won't run then they don't run windows applications

#

And to get them to run would require a far larger amount of effort than it has taken to get those projects this far

little knoll
#

They do run Windows applications, just not all of them, like a older (or newer, for some specific cases) version of Windows would.

thorny galleon
#

"If there are applications that won't run then they don't run windows applications"

#

hahaha fucking hot take my man

#

windows 7 not running windows 10-specific applications?

#

clearly not windows

whole quail
#

...

little knoll
#

But then, MS is working hard to redirect their developers to C# and .NET framework that is multiplatform. So developers could easily port their apps on multiples platforms.

thorny galleon
#

windows isnt even 100% compatible with itself

#

how is wine supposed to be

whole quail
#

If you advertise as running windows applications and a windows application doesn't run you'd be able to be sued

thorny galleon
#

wine and reactos are zero-liability

#

they call that a license and a eula my man

#

finna sue microsoft because windows xp wont run my windows 7 drivers

whole quail
#

I don't care about wine and reactos because they do something completely different

thorny galleon
#

go use "Open"NT lmfao

#

that stupid amalgam of illegally leaked code

cyan niche
#

?

#

Lat time I tried to run league with wine it wouldn't render.

#

It would in single player vs ai

#

Wine just isn't a good replacement.

#

I also spent 2 hours getting my headphones audio to work so that's a thing.

#

I don't quite get ReactOS.

#

What's wrong with Linux?

#

So much developer effort wasted when the Linux kernel does it for you.

#

Emulation can be good. Just look at stuff like console emulators. Eventually they reach the point where every game is compatible. It's just a lot of time and effort to get there.

#

As for games idk people just need to make them for Linux because the compute requirements don't lend itself to emulation well.

#

Which people aren't inclined to do since it's a small market. It's held back by the configuration headache Linux has for average users.

thorny galleon
#

@cyan niche ...the Linux kernel doesn't run win32 applications..?

#

also, ReactOS is just sorta one of those things that "exists because it does" yaknow

#

maybe someone thought it would be a neat little thing to try work on with the idea of "well hey, even if i get nowhere, it's learning experience", then it just sorta snowballed

#

...like linux lol

#

idk, i think it's a net positive

#

wine benefits from reactos and vice versa

#

plus it's always good to have legal reverse engineering and documentation of proprietary software happening

cyan niche
#

It would be neat if that were baked into the kernel :p

#

Windows is doing that with Linux.

cyan niche
#

It's like a system on top of it

proper gale
#

first off, Linux is open source

#

second, WSL is a specially integrated Virtual machine on top of windows.

hallow siren
#

In Javascript, I'd like to do something once a boolean check is true. If it isn't, then I'd like it to try again. Something like..
when(function() { return global !== undefined; }, function() { alert('global is there!'); });
Is this available already or do I need to write something? It'd basically be a setTimeout when the check is false...

#

I've read a bit about promises but that seems to be for async stuff, not for retrying a check until it's true.

#

Yeah, exactly what I was thinking about.

#

But since someone made freaking leftPad, I figured someone might've done this already and there was a standard way that all the js gurus did it..

proper gale
#

while (!function()) { return global != nullptr; }

#

if i am not mistaken as to what you wanted.

hallow siren
#

A while loop sounds horribly inefficient.

proper gale
#

im thinking async or semi-async here.

#

wait, no, that would break horridly

#

you want to call a function, check return, and if it was true, do something, else, call again?

hallow siren
#

I'm thinking more like
function when(check, action) {
if( !check() ) {
setTimeout(function() { when( check, action); }, 500);
return;
}
action();
}

#

yeah, exactly roguelogix.

#

But I feel that there should be a better way of doing it than my code there.

proper gale
#
while (true) {
    if(function()){
        // do thing
    } else {
        // timeout
    }
}```
hallow siren
#

In this specific case, I want to make sure that some script from google tag manager have run and created their globals before calling them from server generated js code.

#

@proper gale Won't that block?

proper gale
#

yes

hallow siren
#

I don't want to block the entire page until the checks are true.

#

1 at a time though...

#

As I said about my code, there should be a better way of doing it.

proper gale
#

i thinking about C++, so, ignore me.

hallow siren
#

๐Ÿ˜ƒ

proper gale
#

c++ blocking is fine if another thread or that function is doing the work.

hallow siren
#

Yeah, but JS is single threaded so if I block then the page will stop responding and everything will grind to a halt.

proper gale
#

fantastic

hallow siren
#

What I want to do is not block but still do the check and execute once it succeeds.

#

And again, considering someone wrote a library for padding a string that kind of crashed the whole world, this should've been done 2 million times already, and probably by smarter people than me.

proper gale
#

cant use callbacks?

hallow siren
#

what event would I listen for?

#

I mean the tag might run and complete before the script is actually loaded and executed.

#

So I need to check that the script has actually run, and I have no control over that script.

#

I could take my code above and call an event when the check succeeds, but that'll give me pretty much the same result.

#

I don't control the other script.

#

And I know too little about promises.

hallow siren
#

Hmm. Yeah I could modify the tags in gym to issue a loaded event when they're done.

#

Gym = gtm

hallow siren
#

Done, tested, deployed.

#

Ended up with:

#
function when(condition, action, interval) {
    if (interval === undefined)
        interval = 100;
    if (!condition()) {
        setTimeout(function () { when(condition, action, interval); }, interval);
        return;
    }
    action();
}
#

Simple but it works.

#

when(function() { return typeof(ga) !== 'undefined';}, function() { ga('ecommerce:addTransaction', โ€ฆ

hallow siren
#

Oh, true. ๐Ÿ˜ƒ

#

And done. Thanks @dapper laurel

nocturne galleon
#

Anyone know about Raid array and veracrypt compatibility?

cyan niche
#

o:

nocturne galleon
#

Help guys vs went oof I created a Windows form in an empty CLR Visual C++ project

proper gale
#

dont worry, i expected that.

nocturne galleon
#

Why doesn't my css fontsize change my the size of my text

#
<div class="instagram"> 
         
            <a href="https://www.youtube.com/embed/videoseries?list=PLwGSEkTLkQ0O0BDcAwEehMb1f2ed1mh3t">INSTAGRAM</a>
         
         </div>
         
#
.instagram {
    padding:0;
    margin:0;
    position:relative;
    left:50%;
    top:50%;
    transform:translate(-50%,0);
    width:100px;
    text-align:center;
    animation:instagramp 4s;
    font-family: 'Open Sans', sans-serif;
    font-style: italic
    font-size:xx-large;
#

please @ me

tropic grail
#

@nocturne galleon try an actual number.

nocturne galleon
#

with like the px?

#

cuz on w3 it says u can only use a word size or like 15px

#

i trried both and it doesnt change

civic mountain
#

@nocturne galleon try inspecting it and see if it has applied the attribute

#

Could just be error-ing out

main wyvern
#

its ignoring it

#

due to the line above missing the ;

#

@nocturne galleon ^

tropic grail
#

^

main wyvern
#

its always the damn semicolons

nocturne galleon
#

Sweet bro thanks. I was on mobile this whole time and didnt recognize it. Thanks guy!!

tropic sapphire
#

@main wyvern use a linter and it will add them for you ๐Ÿ˜ƒ

tropic sapphire
#

@hallow siren

why not set a default in the args?

function when(condition, action, interval= 100) {
    if (!condition()) {
        setTimeout(function () { when(condition, action, interval); }, interval);
        return;
    }
    action();
}
vestal glen
#

(might as well use arrow functions then. So I assume the reason is backward compat...)

hallow siren
#

@tropic sapphire The honest answer is that I didn't use a default value in the function definition because my javascript fu is weak and I had no idea it was supported. ๐Ÿ˜ƒ

tropic sapphire
#

@hallow siren fair enough, not sure how long thats actually been in JS though. I know it is support is es6 as thats what I use at work.

vestal glen
#

and the || thing is essentially the old way of doing it before default params are supported.

nocturne galleon
#

hey

#
var endCount = 10;

function first(){
    if(endCount > loopCount){
    document.write("Loop Cycle Running");
    second();
}else{
    document.write("Loop Cycle Complete");
}
}

function second(){
    loopCount = loopCount + 1
    first();
}```
hallow siren
#

Feels like you're overcomplicating stuff @nocturne galleon . No reason for recursion here.

nocturne galleon
#

i made this for shits and giggles

#

i am super proud of it

civic mountain
#

just like make a forloop

#

๐Ÿ‘Œ

proper gale
#

@nocturne galleon how about this?

for(int i = 0; i < 10; i++){
    std::cout << "Loop Running" << std::endl;
}
std::cout << "Loop Done" << std::endl;```
solar niche
#

Is Assembly help allowed in here?

timber violet
#

Yes

solar niche
#

The code Assembly

civic mountain
#

yeah but you may find better help in the coding den

#

Has a lot more people with assembly knowledge

ionic hull
#

I have a question, I have a static video in a server, and that video is protected by a parameter ( if php doesn't validate the parameter, it doesn't show the file ), how do I do that in nginx ?

#

It is like a generated url that is valid for X time ( ip based )

cyan niche
#

No, we don't allow inferior languages >:(

tropic grail
#

@ionic hull I'm sure there's some documentation online somewhere, but PHP is the same no matter what backend you use.

ionic hull
#

@tropic grail php isn't the problem here. I need to know how to configure nginx to serve static content if hash in parameter is good

#

And I can't serve it over with php because files can be 1gb

#

Or more

tropic grail
#

Hmm.

ionic hull
#

Yeahhh

#

Big companies do that

#

I wanna know too

#

It is crucial to my project

proper gale
#

Personal Home Page Hates Programmers

small escarp
#

@ionic hull what you're looking for is internal redirects

#

see X-Accel-Redirect

#

basically, you set up an static url to the file that can only be accesed by an appropriate redirection which can only be sent by the server itself

#

not the browser

#

so the php (or whatever language) process the video file url, verifies the permissions and then "internally redirects" to the real file

#

then nginx takes over and php is free to serve more people

ionic hull
#

@small escarp @dapper laurel thanks!

nocturne galleon
#
    document.write("I am the first <br />");
    doSecond();
}

function doSecond(){
    document.write("I am the next <br />");
    doFirst();
}

doFirst();``` this script killed my computer for like 20 seconds lol
proper gale
#

yea, infinite recursion until you hit stack overflow, ofc it would...

celest elk
#

get better pc

#

get quantum pc that can compute faster than light so that it can kill your computer faster

tropic sapphire
#

if you just want to lock the CPU at 100% you can do it node with

const cluster = require('cluster');
if (cluster.isMaster) {
    const numWorkers = require('os').cpus().length;
    for (let i = 0; i < numWorkers; i++) {
        cluster.fork();
    }
    cluster.on('exit', (worker, code, signal) => {
        console.log(`worker ${worker.id} finished`)
    });
} else {
    console.log('child started')
    while(true){
       for(let i = 0; i < 10**10; i++){
        c = Math.sqrt((i**2)+(i**2))
    } 
    }
    
}```
proper saddle
#

If I wanted to do that, I'd just fold protein. :v

tropic sapphire
#

@proper saddle that's true. Doesn't something good with that cpu time.

I used to do it on my work laptop over nights and the week end. Just I reinstalled my Linux. I'll have to set it back up

swift niche
#

Is there a free version of VMWare, or are they all trials?

little knoll
#

You have Workstation Player

#

Or ESXi (vm host server)

proper gale
#

@tropic sapphire or, you can just run a specific bash command

sick willow
#

has someone with RTC(real time connection) Servers and remote codding experience
im going to write a programm like teamviewer but with no gui on the slave side...

nocturne galleon
#

be me

#

coding in css

#

use () but doesnt realize it

#

wondering why code isnt working

#

check attributes and semi colons and checks out

#

div tag checks out

#

fucking realize it

#

i wasnt using the correct type of parenthesis

small escarp
#

@sick willow ssh?

sick willow
#

@small escarp whats with ssh
thats totally diffrent
and i dont want any port forwarding at the slave side

proper gale
#

are you trying to do CLI interaction?

#

@sick willow

sick willow
#

@proper gale nop

#

@proper gale like teamviewer

proper gale
#

double ping, nice!

#

i believe that nomachine has this functionality.

sick willow
#

id just want no gui at the slave and the slave passwords ar automaticly going to get listet in my db

proper gale
#

i believe nomachine enterprise has the functionality you are looking for.

cyan niche
#

Man I should learn web development sometime.

proper gale
#

@cyan niche or you could save yourself the pain and not.

cyan niche
#

But it sounds useful.

#

JavaScript is weird tho.

#

I don't get it.

proper gale
#

is sane development not?

#

@cyan niche

tropic sapphire
#

@cyan niche Sajavscript is great I use node at work for all our servers and serverless apis.

The hardest thing I found about learning JavaScript is it's asynchronous.

Learn promises.

proper gale
#

async is easy

#

making it faster, that is hard.

nocturne galleon
#

speaking of javascript

#

i need some help on that

cyan niche
#

I live in the world of async.

#

but it's like I primarily use statically typed languages and not a very liberal use of callback functions

#

I've edited javascript before but it's like a whole new world.

tropic sapphire
#

@cyan niche at work I use a functional style in JavaScript, if you're interested look into rambda module.

cyan niche
#

I was actually looking into dart2 given my background :p

tropic sapphire
#

@cyan niche looks like python with types

cyan niche
#

I love python :3

tropic sapphire
#

Same, sad I had to stop when I got my job 9 months ago, they use nodeJs.

I do miss python.

mystic steeple
#

lol

#

Battle Royal all the things!

cyan niche
#

@tropic sapphire I use a shitty proprietary language, so I'm always thrilled about using python

weak lintel
#

m2SyA5J

#

join for tech stuff

timber violet
#

using discord.js is it possible to read the description of a rich text presence?

weak lintel
lament hatch
#

someone dev in SAS ?

compact wraith
#

The next Elder Scrolls is ES VI. It is all written in JavaScript.

ionic hull
#

And php for the transactions

compact wraith
#

I wonder when someone will get what I did

cloud knot
#

@compact wraith the joke about the ECMAScript 6 ? i did get it

#

just a note, last 3 hours of the pocket primer humble book bundle

shrewd siren
#

Hi all

#

I'm experiencing an issue with Powershell passing trailing spaces within arguments and I'm quite restricted on what I can do due to contractual agreements. Is there a way to resolve this?

Input:
Powershell Start-Process 'C:\Program Files\Folder\program.exe' -Verb runAs -ArgumentList @('"parameter with spaces"', '-minimize')

Expected Passed Parameters:

"parameter with spaces"`
"-minimize"

Actual Passed Parameters:

"parameter with spaces "
"-minimize "

Limitations

Program.exe must be ran from a program already running as admin (in this case powershell)
Not allowed to change default Execution Policy away from Restricted. So no Powershell scripts
Not allowed to install/execute external programs
Works if made into a shortcut (.lnk) on the Desktop

Any advice would be appreciated. Thanks in advance

cloud knot
#

@dapper laurel i buy these bundles for $15 even if i find 1 hidden gem in them, as usually these ebooks are $15 or more anyway for 1 title

proper gale
#

^ 3.3+, will get you started, then you get the specification.

cloud knot
elfin mica
#

does anyone here know where the Xcode Simulator filesystem is?

#

I want to check if it's possible to copy a SMS database with a whole folder structure in it to view old messages in the Simulator

elfin mica
mighty fossil
#

Anyone here good at VB

#

2010

#

I'm super fucked

ionic hull
#

We're all fucked

cloud knot
#

@frosty lark good thing it doesn't react to Pong! too ๐Ÿ˜„

frosty lark
#

@cloud knot yeah cuz discord's API doesn't like to be recursive

nocturne galleon
#

Should I get a rasberry pi to host my discord bots on it?

#

My devs are going to be making a security bot for my server, if anyone wants to be a dev for my server please DM me, these are the following plans and the features we might be doing:

#

ENTIRE server lockdown, 1 command to revoke all invite links and lockdown all the channels to protect the server against "heavy raid"
A seperate command for single channel lockdown, after you lockdown it lets you edit the message and type in a reason why it's been locked down, like telling people to stop arguing. (Like Dyno's logs)
Account-age, customisable account age.
This is a really CRUCIAL feature that will help the server, have a feature to protect against staff destroying the server, so for example, if the staff member kicks 10+ members, the staff gets banned for suspicion of griefing. This also helps you and keeps you stress free.
And the basic mute and ban feature with logs like Dyno, I want to replace Dyno for our self bot.

cloud knot
#

@nocturne galleon well, a Pi 3B+ has good performance for tasks like that (it is a quadcore 1.4GHz CPU), has good WiFi, also 3B+ has gigabit ethernet (limited to ~300mbps tho), so it is not bad and uses small amount of power, so it is good thing for 24/7 operation

nocturne galleon
#

How many bots would you expect 1 of them to host?

cloud knot
#

that depends on how badly the bots are coded

#

but i would say a lot

nocturne galleon
#

Thanks ^

proper gale
#

@frosty lark shouldn't it ignore itself?

#

if needed, the bot could manually/interally push a command through processing if it needed to.

sterile tapir
#

@nocturne galleon The bot red is already made and is entirely customisable and you can have custom 'plugins' for instance a lockdown command, might be worth looking into for you needs

nocturne galleon
#

@sterile tapir Link?

sterile tapir
proper gale
#

@proper saddle the color one is fine if you remember the hex code like I do.

proper saddle
#

I don't think the HTML color picker lets you input the hex value

proper gale
#

hmmm

dense grail
#

I am falling into the dark side of c# reflection, access to private pars muhaha

small escarp
#

as long as it is in test, it's probably fine

#

or some heavy meta-library

ebon light
#

is anyone good with react jsx?

#

having a bit of trouble figuring out how each jsx file component knows when to render to which view if multiple files are being webpack bundled into a .js file

little knoll
#

Polyfill stuff, you could try to understand how it works but it's so complex that it would be totally useless.

#

Just continue to look at your JSX which is far more understandable than webpack bundled files

ebon light
#

ugh im so stupid

#

im bundling every js file when im wanting to separate files for each view

#

like mixing 5 colors of paint and wondering how to get each color
rather than not mixing them together

little knoll
#

I think you could just use your native JSX files with any modern web browser (like chrome) and it would work as expected (if your main js file is included on the HTML page)

ebon light
#

no transpiling required?

rare jolt
#

i don't think so

cloud knot
#

@ebon light webpack in general replaces "injected files" with webpack_require statements

#

so for example in angular one ads template metadata with string value, but webpack replaces it with webpack_require(somenumber) which references the compiled contests of the template

#

i highly doubt react is any different in this, as this is a webpack feature

ionic hull
#

I just made a browser extension that encrypts/decrypts discord messages

#

Kek

#

No more NSA spying

small escarp
#

cool

#

but 1. are keys stores in-browser? in-javascript?

#

and 2. what happened to the 'e' and the '0'?! o.O

cloud knot
#

"I just made a browser extension that encrypts/decrypts discord messages" - and the point is ? last time i checked, Discord is mostly used to talk with other people. So it is cool that it decrypts for you, but when others can't see your message either, then it makes no sense