#development

1 messages · Page 40 of 1

rigid jewel
#

you could maybe checkout Asus Tinker Board

solemn spade
#

Have one of those too

#

It’s got a LOT of software issues

#

Also wanted to make something thin that’s why I was thinking like 4 pi zeros

rigid jewel
#

yea unfortunately a lot of your problems just may be software issues

#

yea the problem is the interface is terrible for pi zero

#

to cluster them

#

the bandwidth is garbage

#

it would make performance way worse, not better

#

everything goes through the USB

solemn spade
#

Was thinking of making a custom interface board using the USB go to make a bunch of USB Ethernet adapters

rigid jewel
#

which makes it just terrible for cluster

solemn spade
#

All in board interconnected

rigid jewel
#

its still slooooow

#

for GPU level stuff

#

the latency would be so bad

#

only other thing i could suggest is go to a Latte Panda

#

but its not cheap

solemn spade
#

Well I was thinking that may be a problem but what if I used an composite panel and had one pi do one color so like one for red one for blue one fore green

rigid jewel
#

with Latte Panda im sure all your problems would go away

#

being it is x86

solemn spade
#

Ya but it’s like $800

rigid jewel
#

noo

solemn spade
#

Would like one

rigid jewel
#

its way cheaper than that

solemn spade
#

Sorry the alpha

#

Is like $80p

#

0

rigid jewel
#

you wouldnt need the alpha

#

the Alpha is like Macbook level hardware

solemn spade
#

Um

#

The GPU on that is only 200mhz faster than the pi

#

The tinkerboard has a fast GPU

rigid jewel
#

yea but its an Intel GPU it will be way more optimized

solemn spade
#

The tinkerboard has a (if I remember right) 700mhz GPU

rigid jewel
#

yea the tinkerboard is more comparable for sure

#

tinkerboard is 32 bit though too

solemn spade
#

Ya but for retro you don’t really need the 64bit until you hit like GameCube

rigid jewel
#

there is another board i am trying to remember what it is

solemn spade
#

Unless the Nintendo ds needs 64bit.....

#

Don’t know actually

#

Do note though the reason I was thinking cluster pi zeros it to make it tiny had held,

#

Like fit in pocket

rigid jewel
#

the Udoo Ultra

#

probablly hard to find though

#

yea I get what you are saying about cluster, i just dont think there is enough latency, especially considering your talking about 4 of them

#

and I am not even sure you could leverage the GPUs in such a way with cluster

#

CPUs yes, but the GPU interconnect would be way to slow to improve performance

#

and even with CPUs you would need special software that can leverage the load balance

#

you cant just throw off the shelf software at a cluster and it works

solemn spade
#

Well that’s what I was asking was if it was possible to cluster the GPU

rigid jewel
#

I doubt there is any easy way it could be done, and i suspect it would not yeild better results, thats about the best I can say

solemn spade
#

Would love a cheeper latte panda alpha without all the extra stuff.... like just the processor, GPIO and like a USB WI-FI and hdmi

rigid jewel
#

yea what is the cheapest model is like 300$ USD or something?

solemn spade
#

Alas will never happen

#

Ya

#

Err

rigid jewel
#

379$ ya thats high but its great hardware too

#

if i recall its comparable to what recent macbooks have

solemn spade
#

Witch is quite sad actually

#

Though the problem with the latte panda alpha is it need like a 70w power supply....

#

Not very good for a mobile console

nocturne galleon
#

Hey All,

So I'm looking for preferably a professional opinion, but if you have some information to add it would be appreciated,
It's based around system security. I'm not that well versed in this feild so I may get things wrong.

Goal:
To have a completely encrypted system, where system admins can't access a users data until they are given permission (I don't want this to be a trust system).

My current thoughts are:
The user has a username and password, this is used to encrypt their files, only a salted hash is stored in the system.
They would also be given a key, which when given to admins would allow them to access the account .

How:
When the user creates an account their password is sent over https/ssl this is userd to create their salted hash, it is also asymetrically encrypted, the system owns the public key and retains the cipher, and the private key is sent to the user (email/text/mail) never stored in the system, this means when the user sends the admins their private key they will be able to discover their password, and in turn decrypt their data.
When the user changes their password they will recieve a new key, and if they wish to remove admin access they also need to change their password.
I expect admin access to be very infrequent normally only once.
This system would also be public knowledge so users know their data is safe.

Are their any issues with this idea, what concerns would a user have and is it the best way to achieve this 'secured backdoor' ?
or could you point me in a more appropriate direction ?

nocturne galleon
#

@last ingot Thanks for the response,
I understand email isn’t secure, and there is a risk there, however I believe it would be minimal, partially because it doesn’t directly mean anything, if someone had malicious access to the database, they would have to know the stages of encryption in the right order(which is entirely possible), if it was an external ‘attack’ they wouldn’t have access to the data as the system holds the cipher, therefore they wouldn’t get the users password to decrypt the data, only admin/staff would. this could also be mitigated by the ciphers being kept on an offline device making the process manual, however it would be infrequent so it’s a viable option even at scale.

The user needs to have this key stored as a physical object, also the service I’m looking to provide would mean the users would be happy for admin/company staff to access the data if their key has been supplied, before supplying the key, as a selling point of the service, I would like as much data to be encrypted as possible. There would be some private/sensitive data, but the end user would understand that given certain circumstances (controlled by them) admin/staff have access to the data.

#

I hope that makes sense, it’s pretty early and I’m a bit asleep

round dome
#

you can always set your own mail server up and use PGP

#

assuming the recipient does the same

nocturne galleon
#

does anyone has experience with huawei roms?

sacred shuttle
#
function checkServerList(req, res, next) {
    for (i = 0; i < userServerList.length; i++) {
        for(x = 0; x < botServerList.length; x++) {
            if(userServerList[i] === botServerList[x]) {
                userFilterServerList1.push(userServerList[i])
            }
        }
    }
}

Why isn't this working?

#

@ me

vestal glen
#

what would working be and what is it doing instead?

nocturne galleon
#

Put some logs in there to see what logic is being used at runtime...

#
function checkServerList(req, res, next) {
    console.log("userServerList: ", userServerList);
    console.log("botServerList: ", botServerList);
    
    // Loop through the server list
    for (i = 0; i < userServerList.length; i++) {
        
        // Check to see if any of the bot's server
        // list matches the current user server list
        for(x = 0; x < botServerList.length; x++) {
            
            // A match, push to the filtered list
            if(userServerList[i] === botServerList[x]) {
                console.log("Match Found with: ", userServerList[i]);
                userFilterServerList1.push(userServerList[i])
                console.log("Pushed to filter list.");
            }
        }
    }

    console.log("userFilterServerList1: ", userFilterServerList1);
}
#

@sacred shuttle

sacred shuttle
#

At the start userServerList and botServerList are empty. This code is basically checking which guilds my bot and the user are in.

#

WIll try that @nocturne galleon

nocturne galleon
#

If they are both empty, no looping will happen... It will just skip those loops.

sacred shuttle
#

Oops those are filled I mean

#

Didn't read it correctly 😂

nocturne galleon
#

Ok, good 👍

hidden dagger
#

hello anyone can help me?

#
 Toggle = 0
#MaxThreadsPerHotkey 2

XButton2::
   Toggle := !Toggle
     While Toggle{
        Click
        sleep 88.351456
    }
return
#

this script is on toggle how am i able to change it to hold

#

i want it to be when i'm holding the button it works while i remove my hands it stops working

#

there might be an ez fix but i'm no expert 😐

round dome
#

You should probably do some research before trying to get the answer spoonfed to you, you won't learn anything otherwise.

#MaxThreadsPerHotkey 2

~XButton2::        ; You might not want '~'
while GetKeyState("XButton2")
{
    Click
    Sleep 1
}
return
lapis granite
#

I hate TCP

native shoal
#

@lapis granite TCP is good. The retransmits save the day

lapis granite
#

I know @native shoal 😄

#

Just had implemented my own TCP protocol

#

That's why I hated it when I was finished

#

Because it isn't really fun to figure our what byte belongs to what packet

#

But I ended up with something like: AA AA BB BB CC .... DD DD where:

#
  • AA: The length (two bytes forming a 16 bit int)
#
  • BB: The packet ID
#
  • CC: The payload (can vary in length, there can also be no payload)
#
  • DD: End bytes, used for checking length (Can't use this to split packets because the payload might also contain the same values as the end bytes)
glad pagoda
#

are there any people who have a high knowledge of C#? im in my second semester and im studying C# right now and i have 0 knowledge and i need help

#

mostly windows form application

nocturne galleon
#

@glad pagoda if you have any questions let me know

wind rune
#

When you are coding an app for 3 months about to release, and someone beats you to the punch Pogey

nocturne galleon
#

Rip

#

F in chat

ionic hull
#

When you pay some Indians to make you a html template and they just grab something really shitty from some website and put your logo 😕 😕

nocturne galleon
#

Get way more for very cheap

#

And you get exactly what you want

ionic hull
#

I want something custom

#

Really really specific

nocturne galleon
#

Then take something that is close to what you want and make it what you want.

#

There's tens of thousands of html templates there.

edgy ferry
#

if anyone is experienced with flask pls ping

hasty portal
gusty cloud
#

hello fellas, need some help with lua

solid kayak
#
$what = "what";
echo $$what;
``````PHP
what
edgy ferry
obsidian bluff
#

import "tom" Are you practicing human trafficing?

novel spear
#

Does Tom.py exist in that directory?

#

Flask is attempting to run via Tom.py as your main file

#

You will have to be in a directory with that file for that command to make sense I believe

edgy ferry
#

yeah, i didnt run cmd in the directory tom.py was

#

@obsidian bluff no lol, the flask docs said dont name it flask, and thats the first thing that came up on my mind

nocturne galleon
#

anyone here know C ?

#

need help with smth

vestal glen
#

I know the whole alphabet.

nocturne galleon
#

im talking about the programming language but nevermind i fixed it myself

edgy ferry
#

that was pure sarcasm, clap clap

vestal glen
#

yeah, I think my message didn't get through

thin cobalt
#

how can I modify this VBScript file to only return the first IP address?

#
strComputer = "."

Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set IPConfigSet = objWMIService.ExecQuery("Select IPAddress from Win32_NetworkAdapterConfiguration WHERE IPEnabled = 'True'")

For Each IPConfig in IPConfigSet
 If Not IsNull(IPConfig.IPAddress) Then
 For i = LBound(IPConfig.IPAddress) to UBound(IPConfig.IPAddress)
  If Not Instr(IPConfig.IPAddress(i), ":") > 0 Then
  strMsg = strMsg & IPConfig.IPAddress(i) & vbcrlf
  End If
 Next
 End If
Next

Echo strMsg```
#

i know nothing about vbscript btw

novel spear
#

After it sets strmsg once you want to bail out of the loop. It is two nested loops though so you may want to switch it to a function and return then echo

#

That being said I am not positive about the order returned by that wmi service query. Is the first one always the one you want.

thin cobalt
#

yes

#

how do I exit the loop?

tepid crow
#

^released 6 hours ago btw.

native shoal
#

I checked for updates but none was available for me?

#

where is it

tropic grail
#

Might have already applied.

tepid crow
#

plus, google might have autoran the updater on your computer depending on the level of UAC you have set

#

if you run windows

vale hollow
#

Hi there

#

I wanted to make a website that look like a cmd

novel spear
#

It's not too much work. It's a monospace font with bright colors on a black background.

novel spear
#

If you mean the progressive loading that is a bit harder

#

Made an example for you

nocturne galleon
#

just google "wix terminal template"

orchid sorrel
#

Anyone have any clue about RegEx?

tropic grail
cloud knot
#

@tropic grail that and https://devdocs.io/ are my big developer bookmarks 😄

magic mauve
#

All I know about regex is that if you have a problem and you try to solve it with regex then you have problems... plural.

lapis granite
#

#RegEx denial of service

cobalt umbra
#

@cloud knot Damn, I'm a full time Front End Dev and I didn't know this

#

All the time I have wasted looking for docs..

cloud knot
#

@cobalt umbra best part is that it has search

cobalt umbra
#

Ofc

#

would be pretty pointless without it

cloud knot
#

well, it would still be centralized

cobalt umbra
#

No more searching through Angular's doc and Microsoft's

#

and Firefox's too

civic bough
#

Hmm no searching through the Apple SDK docs though. That’s unfortunate

vestal glen
#

probably a licensing issue^^

civic bough
#

Unfortunate considering the search on the Apple site is bad. (Sad, this is coming from an employee)

cloud knot
civic bough
#

@cloud knot yeah, but I believe it requires having Xcode downloaded. Which works for my machines. It’s when I’m teaching folks who might not have Xcode downloaded handy.

native shoal
#

@last ingot oh sorry, I guess I kinda skipped the first line somehow

#

tunnel vision

#

the chrome update thing

civic bough
#

Curious, has anyone had experience with CI offerings other than Jenkins.io?

tropic grail
#

...and because it's a feat of constant failure over the last 6 months at least, here's the newest update to the webstreamer I run: https://m.dooleylabs.com/

#

Finally took an hour to fix the color thing, lol. Now that it's intelligent, I can sleep terribly, lol.

jaunty surge
#

hi. i have 2 pdf forms and one in the making, that i fill and print, was wondering if there is a software in which i can make the forms and to automatically fill them with the data I insert in a interface(or something like that). I'm trying ms access, but it's kinda complicated but to implement the fields from the pdf forms in reports is as the saying goes a work of an old chinese man

native shoal
#

@jaunty surge you can try using autohotkey to automate the data input

jaunty surge
#

i was thinking of saving the data that i input in the fields to be able to access it from the "app"

solid horizon
#

hello developers

#

anyone know a fix for visual studio builds taking 40 seconds - 3 minutes? (C#, .net framework)

#

(this also happens on a console app w/ 7 lines of code)

solid horizon
#

<resolved>

spring radish
#

@solid horizon You should tell us how you solved it ^-^

#

Okay, so I'm trying to spawn an exe with Node.js's Child process spawn
And write input to it's stdin basaed upon the output of stdout
However, the only way I've so far managed to get this damn thing to even accept input is in you pass stdio inherit, process.stdin, a file read stream or a socket stream
Created a custom stream of any form didn't work as I don't have a file descriptor, which means stdio refuses it as input
https://nodejs.org/api/child_process.html#child_process_options_stdio

hasty portal
solid horizon
#

@spring radish updating visual studio (im using 2019 preview)

nocturne galleon
#

does anyone here know about the discord.py library?

tropic grail
#

I know disco.

nocturne galleon
#

I've been having a little trouble, I have a function that makes the bot send a message and then logout when you command it to. it sends the message but doesn't log out

#

heres the code

@client.event
async def on_message(message):
    # we do not want the bot to reply to itself
    if message.author == client.user:
        return

    if message.content.startswith('!hello'):
        msg = 'Hello {0.author.mention}'.format(message)
        await client.send_message(message.channel, msg)
    elif message.content.startswith('die bottom text'):
        msg = 'why do you treat me like this'
        await client.send_message(message.channel, msg)
        client.logout()
        print(client.is_logged_in)
tropic grail
#

Not too familiar with discord.py, but I'd do something close to this:

@client.event
def on_message(message):
    # we do not want the bot to reply to itself
    if message.author == client.user:
        return

    if message.content.startswith('!hello'):
        msg = 'Hello {}'.format(0.author.mention)
        client.send_message(message.channel, msg)
    elif message.content.startswith('die bottom text'):
        msg = 'why do you treat me like this'
        client.send_message(message.channel, msg)
        client.logout()
        print(client.is_logged_in)
nocturne galleon
#

Thanks, I’ll try it out when I get back on my pc

tropic grail
#

Probably not perfect, but it'd probably work halfway.

craggy acorn
#

wheres a good place to learn javascript? i cant find any good tutorials on youtube.

visual oasis
#

Ive started to learn html and his videos was the easiest for me to understand and follow along with

stiff karma
#

Does anyone know how to make a simple bot that will click something then reload the webpage?

bleak summit
#

@stiff karma click what?

stiff karma
#

A button

bleak summit
#

on a website?

stiff karma
#

On a webpahe

#

Yeah

bleak summit
#

Python + Selenium is exactly what you are looking for

stiff karma
#

Ok

bleak summit
#

or Selenium with the language of your choice, as long as there is a selenium binding for it

thin cobalt
#

I am wanting to load a custom cursor from a file in a WPF project

#

how do I get my cursor file recognized so i can just do Cursor="CustomCursor" in the XAML

#

my cursor file is called normal.cur

novel spear
#

if you want it right in the xaml I think you will need more work to hook that all up, not sure

half mica
#

So I been working on a website tracking/project management software. One feature I wanted to add is export reports to PDF and Excel. For PDF, I've seen FPDF and mPDF. My problem with them is they don't appear to be updated regularly.

Does anyone know of a good PDF generator/library that have been recently updated/maintained that I should use/look into?

novel spear
#

reporting frameworks like crystal reports are popular

#

stuff like https://ironpdf.com/ exists

#

but you mention mPDF so I assume you want PHP?

#

and free for noncommercial, or free for commerical, and which license is ok?

bleak summit
#

I was going to reccomend IronPDF.

graceful solstice
#

wanting to learn python...

#

any good websites?

#

tag me if you have any

raven kernel
#

@graceful solstice https://pythonprogramming.net/ is a good, or if you want something more interactive then https://groklearning.com/ is also great.

graceful solstice
#

Thanks!

raven kernel
#

np ,and if you need any help or have any questions then feel free to dm or ping me ans I'll try my best to help!

nocturne galleon
#

Does anyone here know Python? Need help really quick as I am stumped

#

@raven kernel are you aavailable?

nocturne galleon
#

Mind if I DM you please? >.<

#

@last ingot

nocturne galleon
#

This person is a God^ xD

nocturne galleon
#

@graceful solstice u know any other language?

worthy dirge
graceful solstice
#

@nocturne galleon yea c++

worthy dirge
#

Nah, I get used to intellisense

proper gale
#

@worthy dirge CLion does a better job, use that with clang and you have all your errors in the most understandable form.

#

honestly, Clang errors are much better than anything spat out by GCC or MSVC

worthy dirge
#
typedef struct string string;
struct string
{
    int length;
    char* content;
    void (*init)(string*,const char*);
    void (*print)(string*);
};
void print(string* a)
{
    printf("%s", a->content);
}
void init(string *a,const char *b)
{
    a->init = init;
    a->print = print;
    a->length = strlen(b);
    a->content = (char*)malloc(sizeof(char) * strlen(b));
    strcpy(a->content, b);
}

int main()
{
    string a;
    init(&a, "Hello world!\n");
    a.print(&a);
    a.init(&a, "bullshit!\n");
    a.print(&a);
    return 0;
}
#

Is this the right way to mimic object oriented in C

#

I want to make a.print without passing any argument, like *this pointer

proper gale
#

you cant really do that in C

worthy dirge
#

lol

deep scarab
#

y tho

nocturne galleon
#

main should be at the top @worthy dirge and functions at the bottom

worthy dirge
#

no

#

this way, you have to declare it before main

deep scarab
#

well for small programs like this it's fine

obsidian bluff
#

You can move the main function up and forward declare the functions below it.

#

but like why

worthy dirge
#

I found the biggest limitation to mimic OOP in C is actually you can never call an object to do something

#

You can only write a function and pass the object to it

#

fundamental difference

deep scarab
#

that's what c++ does tho...

worthy dirge
#

Yeah, in C, you can only do like i=get(&f) or i=get(f)

deep scarab
#

f.get() is just syntactic sugar for that

#

you can see in the assembly that it passes f as a pointer

worthy dirge
#

I know, it's actually the compiler helps to pass the address of f, so basically it is compiled down to procedural oriented

flint plover
#

Hey guys, I just did my first programming since high school (10 years ago) and made a Python Discord Bot. It's supposed to help you track your loss bonuses in CS:GO (not very practical, I know - but it's an excuse to learn). If anyone has any spare time to check it out/break my bot - please DM and I will invite you. Here is the GitHub https://github.com/dbouls/Bot_Wally

tropic grail
#

You've all been testing my bot for months kappA

deft badge
nocturne galleon
#

@worthy dirge just write the line void init(string *a,const char *b); before main and the function under main

worthy dirge
#

@nocturne galleon What do you mean

obsidian mirage
#

I am needing a very specific Bot and am willing to pay. So I’m looking for Bot Developer or someone who knows Python 3.6 and discord.py rewrite alike to assist me. It is a Moderation Bot with many functions most of which other Bots have just not All-in-One.

limpid reef
#

Hey @obsidian mirage - what kind of hourly rate did you have in the budget? You might be better looking on a subreddit though tbh.

obsidian mirage
#

I’ve looked but couldn’t find anyone.. I’m not sure but I’d say it’s probably worth $20 an hour

limpid reef
#

Ah, yeah I'll have to pass. I start at $60-$80 CAD per hour for basic web development work, so hopefully you find someone willing to work for that.

proper gale
#

@obsidian mirage are you set on using python? and what features are you looking for specifically?

obsidian mirage
#

No it doesn’t have to be Python if your able to do all features and provide new features and updates if I need them

#

@proper gale

proper gale
#

im still here

#

what features are you looking for?

#

@obsidian mirage

obsidian mirage
#

Most important being first
Moderation
•Customizable Auto-Moderation with Logs (bad words, duplicated text, server invites, external links, spam caps, & spam mention)
•Kick, Ban, Mute, Clear, & Warn Commands
•Slowmode
•Auto Assign Role upon Join & Role Reaction
•Customizable Welcome & Private Messages upon Joining as well as Customizable Goodbye Message
•YouTube, Twitch, & Mixer Streams & Video Notifications
•Report that Sends to Mod Log & Deletes Users Report
•Post Google Form Replies to Dedicated Channel
•Mod Mail (If Someone DM the Bot it Sends Message in My Support Channel for Mods)
•Cross-Server Announcements (When Mod Posts in Channel on My Server it Posts to Dedicated Channel in All Servers that is Setup)
•PUBG Mobile & ARK Mobile Patch Notes from Official Site
•Level System
•Steam Patch Notes for Games of Choice
•Server Stats (idle, offline, online, dnd)
•Giveaway with Create Start (Time Winners & Prize) End (Pick Winner for Giveaway with Inserted Message ID) ReRoll (Reroll Specified Giveaway) List (Shows All Current Giveaways)
•Bump Server with Banner Invite & Description [Include, Owner, Region Created, & Members Status (idle,offline,online,away,dnd,streaming,) Role, Bot, & Channel Amounts of Server] (Post in All Servers with Advertising Channel Setup)
•GitHub Notifications
•Ability to Add Custom Commands

tropic grail
#

LUL My bot does all that.

proper gale
#

all of it?

tropic grail
#

Except the giveaway and custom commands bs parts LUL

proper gale
#

ok, custom commands was the one i was really questioning.

#

its not all that hard if you use scripting, but thats a PITA in most cases.

tropic grail
#

I mean it could, but that'd be injectable. We do have a !tags bit that you can make "custom commands" with that output a static something.

#

That said, it's not public (yet), and when it is, there'll be requirements.

#

But yeah, @fervent orbit does all of that so far, lol. (except the advert bits)

proper gale
#

i mean, most of its not all that hard, and the rest is just specific APIs

tropic grail
#

The only thing, mine's written in Disco, not the inferior discord.py.

fervent orbitBOT
#
LTT Official

Owner: jake#0001
Created: 1 year, 4 months ago [2017-11-02]
Region: vip-us-west
Features: VIP_REGIONS, VANITY_URL, INVITE_SPLASH

❯ Members: 41466
status_online - 5096
status_invisible - 31457
status_away - 3796
status_dnd - 1117

#

LMG Floatboat is a moderation bot originally written by b1nzy,
but now maintained by Dooley_labs#0001.

Users

41530

Uptime

22 hours

#
Total Messages Sent

46513

Total Characters Sent

2978433

Total Deleted Messages

4066

Total Custom Emojis

4153

Total Mentions

7153

Total Attachments

232

Total Reactions

103

Most Used Reaction

:O_: (used 31 times)

Most Used Emoji

banHammer ( banHammer, used 378 times)

proper gale
#

i use Discord4J because im much more familiar with Java than i am Python

tropic grail
#

I utterly hate Java.

proper gale
#

i would use C++, but that seems like overkill

#

@obsidian mirage do you have any specifics on how you want the bot written? and what kind of timeline would you want?

tropic grail
#

@proper gale here's a feature that's almost ready to go live, but it's not updating the status of the bot (yet). It will eventually, lol. https://dooleylabs.com/thn1pw.png

proper gale
#

what is the feature?

tropic grail
#

It's going to replace @pastel burrow, but also update the bot's status. This was the first bit of the update I'm working on, but more changes have been done since then: https://dooleylabs.com/9ik2fn.png

proper gale
#

ahh

tropic grail
#

When I'm finished, it'll be closer to 10-14k.

proper gale
#

6k lines, not that large.

tropic grail
proper gale
#

oh, 6k in one night?

tropic grail
#

Yes.

proper gale
#

im usually working on complex things and debugging, so i dont get a lot of lines done per day

tropic grail
#

The bot has a web interface, lol.

#

Two DBs, a web interface, a backend worker for the interface, the actual bot that interfaces with the API, a background worker, and a stats tracker that makes things like !server, !info, and !stats work.

#

* flex flex *

obsidian mirage
#

The language doesn’t matter if you can provide support or add in features if needed. I have more but I don’t want to add it yet

#

@tropic grail what’s your bot

tropic grail
#

@fervent orbit

obsidian mirage
#

Is it public

tropic grail
#

Not yet, but the public version will have a few requirements.

obsidian mirage
#

Ok DM when available

quiet leaf
#

Would also like to see/contribute when it's made available

tropic grail
#

It's code won't be public, lol.

quiet leaf
#

womp womp

ember kiln
#

4.6k changes in one commit? I don't think that's how you're meant to use git...

proper gale
#

Should have at least 20k

native shoal
#

also helps if you leave no commit message too, while your at it

tropic grail
#

@ember kiln it was a large one, lol, but it took it pretty well. When I merge with main, I'm expecting like 16k changes.

#

I'm glad the bot functions at this point, lol.

cloud knot
#

nah, it should be "fixes"

novel spear
#

Just "fixed some stuff"

#

Or "various changes"

native shoal
#

better yet, make 1 commit a year for 5 years and then put "Years of experience with Github" on your resume to share during interviews

novel spear
#

I had a recruiter check my github activity one time

#

but "activity" includes when stuff is merged

#

so you look super active

native shoal
#

c# is very easy like Java but c++ is a big jump in difficulty without the overhead

nocturne galleon
#

Ik im very late @worthy dirge but if u declare the function name and inputs/outputs then a ; then main then write the function just like you’d write it on the top
Its way better when you write 1000 line code

#

@tropic grail do u have a college degree or did u learn from the internet??

#

Coding?

worthy dirge
#

@nocturne galleon Yes I will definitely put all declaration in a header file

tropic grail
#

@nocturne galleon niether. You don't need a college degree to code, either.

native shoal
#

The math they make students take for a CS degree is ridiculous

#

When will I ever need to use Trig math specifically in a program

ionic hull
#

I guess you'll use it when making games @native shoal

proper gale
#

@native shoal Rendering, you will use it in rendering.

nocturne galleon
#

Where did u learn to code then? @tropic grail

#

@worthy dirge i didnt mean put them in a header file , but thats ok , here is an example:

#
#include <stdio.h>
void testFunc(void);
int main void {
testFunc();
}
void testFunc(void) {
print("hello, world!");}

radiant jacinth
#

Anyone know where to look for remote job?

#

MEN stack

#

Except from: try udemy or any other freelance and then advance to fulltime remote

winged obsidian
#

Anybody else working with a development team that uses a Kanban board web service like Trello or Smartsheets Cards?
I'm looking for ways we can improve our workflow.

I am specifically interested in:
How you sort your cards, into what columns?
Do you use APIs for Git services to automatically enter cards?
Is there any must haves that we should be aware of?
Is there any tips and tricks for developers or designers individually?

Any advice would be greatly appreciated, I'll look into any suggestions.

nocturne galleon
#

@winged obsidian what technology stack are you working with? Azure devops is really good and includes all you need

#

And it's free for organizations up to 5 people.

radiant jacinth
#

@winged obsidian we use "Teamwork" it is free for the most part. In free version you can only open 8 projects.

There is kanban board and you name the columns, time logging and much more. Give it a try

supple abyss
#

hi guys, need some help with my C program

#

I want to round my array elements because they need to be ints, not floats

#

so far I have this:

#

....shit cant post screenshot because its a virtual machine....

#

oh and also convert them to q1.14 format which is done by bit-shifting 14 times

#

this is what I have now

#

my thought was that I would iterate through the array, first converting to q1.14 format by bit-shifting and then rounding the numbers

vestal glen
#

(what you should have is discord open in your browser and paste that code over in a code block with tripple ` )

supple abyss
#
#include <math.h>

int main () {    //bit-shift the ints
    float array_decimal[16] = {0.785398, 0.463648, 0.244979, 0.124355,0.062419, 0.031240, 0.014624, 0.007812, 0.003906, 0.001953, 0.000977, 0.000488, 0.000244, 0.000122, 0.000061, 0.000031};
    
    int i;
    
    for (i=0; i<16; i++) {
    
        i = i<<14;
        
        printf ("New values are:\t %f\n", array_decimal[i]);
    }
    
return 0;
}```
vestal glen
#

backticks, not appostrophes

#

but thanks 😃

#

so right now you're bit shifting the index and not the actual value?

supple abyss
#

ohhhhhhh

#

shit yeah you're right

#

got confused because we usually use i for the array index

#

but I still have no idea how I can bit-shift the values?

vestal glen
#

you get the value and then you bit shift it?

supple abyss
#

and how do you do that?

#

sorry for the stupid questions...

vestal glen
#

I mean, you are bit shifting, just that you are bit shifting the index. You are also retrieving the value later on in your code, so you seem to have the ingredients?

#

(I've never had the pleasure of hearing about q1.14 or at least haven't remembered it, but if you want to bit shift, you bit shift...)

supple abyss
#

array_decimal = array_decimal << 14; doesnt work haha

vestal glen
#

is that how you read the value at a specific index?

#

because you got that down in your print call as mentioned...

supple abyss
#

array_decimal[i] would access a specific array index

#

afaik

vestal glen
#

yes

#

so use that.

supple abyss
#
   array_decimal[i] = array_decimal[i] << 14;
                      ~~~~~~~~~~~~~~~~ ^~```
#

ahhh so apparently you cant bitshift a float

#

technically you can but you need typecast and other difficult stuff

proper gale
glad pagoda
#

Are there any experienced and actuallt good people at C#

#

Pls hit me up

#

I have a test tomorrow

native shoal
#

@glad pagoda I'd like to be experienced in c# someday

#

just need the right teacher

deep scarab
#

@supple abyss

int n = *(int*)(&array_decimal[i]);
n <<= 14;
array_decimal[i] = *(float*)&n;
#

this is sketchy tho

#

not sure why you would want to bit shift floats

supple abyss
#

@deep scarab yeah you're right. I first converted them to q1.14 and then did the shifting

#

But thanks!

nocturne galleon
#

@glad pagoda feel free to message me anytime

mortal owl
#

Does anyone else know how to perform precise floating point addition?

For example, the following code:

print(.1 + .2)

Produces the following output:

> 0.30000000000000004

worthy dirge
#

@supple abyss Why not simply *100000

#

And you output the value as int

#

And why do you include<math.h>

visual tapir
#

@mortal owl afaik you can't really compare floats for equality

#

if (float_1 == float_2) //this will not work

mortal owl
#

Hmm, that may be true. I'm using Python 3. Should've mentioned that.

visual tapir
#

I don't thinkn it would work in python either

#

it's got to do with the way the floats are rounded and stored in memory

#

You could also do something like this:
(Taken from stackoverflow):

def isclose(a, b, rel_tol=1e-09, abs_tol=0.0):
    return abs(a-b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol)
#

btw this is a standard libary function for python 3.5

#

Also, i have a question: In C++, how to best check if a string is only decimal numbers and then convert it into an integer?

worthy dirge
#

You first check the ASCII for each character. And then you get each digit, *10for the previous digit following each new digit.

deep scarab
#

stringstream

#
std::stringstream ss("123")
int n;

if (!(ss >> n)) 
{
    // ss doesn't contain a valid integer
}
novel spear
#

you tell it what precision you want, and it makes it happen

mortal owl
#

Ah, thanks, this is what I'm looking for. I'll read up on it tommorrow, thanks.

novel spear
#

keeping in mind that math with them can be slower and they use more memory

#

but they should be as precise as using ints, within the specified precision and rules

glad pagoda
#

Guys pls contact me if u are experienced with C#

#

I have a test in 1 hour and 15 minutes

deep scarab
#

gl

proper gale
#

@glad pagoda Java count?

glad pagoda
#

I mean java script is almost the same as C#

supple abyss
#

@worthy dirge because we are doing CPU simulations and the cpu doesn't know how to multiply, hence why we are doing bit shifting and using only ints

proper gale
#

nononono, not JS, Java.

supple abyss
#

@worthy dirge included math.h because I used atan previously to calculate an array

proper gale
#

Java is to Javascript as Car is to carpet.

#

@glad pagoda

#

anyway, i have experience with Java, so i may be able to help ya.

worthy dirge
#

You are doing CPU simulations and not allowed to use float, then why can you use atan LOL

proper gale
#

if you are simulating/emulating a CPU, you should be able to use anything the platform you are on has available.

#

IE, an add op should be translated to an add op.

#

not a pile of bitshift BS that mimics that add op.

supple abyss
#

@worthy dirge no-no I just used it to calculate the array which I then converted to ints and used the indices for calcution. Don't really need math.h now anymore

#

@proper gale we aren't simulating a modern cpu, we are doing it with x-toy

#

A very basic 16 bit cpu with 255 memory slots

#

And it has 16 instructions, which don't include multiplication

worthy dirge
#

ok

proper gale
#

ok, i still dont see why you cant use whatever you want host side so long as the result is correct

supple abyss
#

I can but then we translate the c code to assembler

proper gale
#

the so long as the result is correct way of solving problems is what makes everything work as it does now.

#

no compiler allowed?

supple abyss
#

We are the compiler

proper gale
#

fun fun, just check the link in assembler from a gcc output

#

this is what it looks like in cmath ``` constexpr float
round(float __x)
{ return __builtin_roundf(__x); }

#

figure out what its pointing to, and call it.

#

boom, round function

worthy dirge
#

I came up with an idea to mimic oop in C. Like I need to do a.print instead of print(&a) , all I need is a pointer to itself. I can build a global vtable which stores the variable name and the it's memory address. All the functions first call the vtable to get the pointer

#

So dumb

proper gale
#

so, basically, you are being a C++ compiler?

worthy dirge
#

Yeah

#

Hate to memorize lots of keywords. It's my third year of CS, and I have learned C++. But I still like to use C

proper gale
#

y?

worthy dirge
#

¯_(ツ)_/¯ Maybe I'm dumb

nocturne galleon
#

@mortal owl ur problem can also be a memory error,its possible

glad pagoda
#

Guys

#

Help pls

#

I have two for loops

#

How do i compare both

#

To output it to a textboz

visual tapir
#

@glad pagoda can you write the loops here(start and end with three backticks`)

glad pagoda
#

I fuckd the test up

visual tapir
#

😢

mortal owl
#

@glad pagoda Can write out the code that's causing you trouble? @ me and I can try and look at it later this afternoon.

glad pagoda
#

@mortal owl man u are a bit late 😦 had my test at 9 am

#

its ok

#

i'll have a second chance the next time

mortal owl
#

Lol, i thought inmight try since no one else helped that i can see

glad pagoda
#

the assignment was

#

output the words in the sentence when they are spelled the same way when you reverse it

#

so for example

#

input bob is a nice guy

#

output bob

#

because if you reverse bob = bob

#

get it?

mortal owl
#

Hmm, yeah i see

glad pagoda
#

but i got lost in class

#

i had 2 for loops

#

1 to read the actual sentence and save it up in the string

#

and 1 does the same thing but it starts reading the sentence from the right

mortal owl
#

I'm not sure. You could sperate each word as part of an array then compare them to the original (also make it an array.)

glad pagoda
#

ye im not experienced at all

mortal owl
#

@glad pagoda Honesty, me neither. I'm still learning so this is student to student.

glad pagoda
#

i literally just started like 6/7 weeks

#

u? xD

mortal owl
#

On and off for a few months since im busy.

#

This link might help but if you haven't learned about arrays yet you're teacher might not like that, sorry

#

They may not want you to go ahead. If you haven't learned arrays yet

#

@glad pagoda

glad pagoda
#

hmm

proper gale
#

@glad pagoda you would want to split into the words, and then for each word iterate forward and backward at the same time (its much simpler than it sounds) comparing them.

glad pagoda
#

hmm

fervent thicket
#

I am trying to get Chartjs to work and I added the code they provided as test to make it work but i get an error on my console : Uncaught TypeError: Cannot read property 'getContext' of null at index.html:10

And the <script> tag I put is:

<script>
            var ctx = document.getElementById('myChart').getContext('2d');
            var chart = new Chart(ctx, {
            // The type of chart we want to create
            type: 'line',
        
            // The data for our dataset
            data: {
                labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
                datasets: [{
                    label: 'My First dataset',
                    backgroundColor: 'rgb(255, 99, 132)',
                    borderColor: 'rgb(255, 99, 132)',
                    data: [0, 10, 5, 2, 20, 30, 45]
                }]
            },
        
            // Configuration options go here
            options: {}
        });
            </script>```
line 10 being `var ctx = document.getElementById('myChart').getContext('2d');,` so im not what im doing wrong and im referencing their library from this link: `<script src="https://cdn.jsdelivr.net/npm/chart.js@2.8.0"></script>`
worthy dirge
#

First split individual words, copy each of them into an array A, use a pointer iterate from back and copy each character into a new array B, use strcmp(A,B)

proper gale
#

the loops that do the comparison would look something like this, java for(String word : words){ int wordLength = word.length(); boolean wrongFlag = false; for( int i = 0; i < wordLength; i++){ if(word.getCharacter(i) != word.getCharacter(wordLength - i)){ wrongFlag = true; } } if(!wrongFlag){ System.out.println(word); } }

#

split is a function of the string class afaik

#

yup, so, java String[] words = input.split(" ");

worthy dirge
#

You can split without a function easily, just check ASCII of a space

proper gale
#

yea, but this isn't C, we dont care about the upmost of efficiency.

#

ill show you how i would do this in C++ if i was doing it.

#
void stringThing(char* str) {
    int currentStartingIndex = 0;
    int currentEndingIndex = 0;
    do {
        if ((str[currentEndingIndex + 1] == ' '
             || str[currentEndingIndex + 1] == 0)
            && currentStartingIndex != currentEndingIndex) {
            // ok found a string
            for (int i = 0; i < (currentEndingIndex - currentStartingIndex + 1) / 2; ++i) {
                if (str[i] != str[currentEndingIndex - i]) {
                    goto wrong;
                }
            }
            for (int i = currentStartingIndex; i < currentEndingIndex; ++i) {
                std::cout << str[i];
            }
            std::cout << "\n";
            wrong:;
        }
        currentEndingIndex++;
    } while (str[currentEndingIndex] != 0);
}```
#

should work, thats my C++ version

worthy dirge
#

You can actually cut the iteration times of the for loop into half 😋

proper gale
#

oh, right, minimal difference though.

#

there

round dome
#

no offense but that code isn't optimized, ugly, and doesn't work properly FeelsAwkwardMan

obsidian bluff
#

seeing a goto statement in code is like hearing someone swear for the first time.

vestal glen
#

(Assembly is full of swearing, or are jumps not gotos?)

round dome
#

jumps (in assembly) are much better than gotos (in C)

#

but jumping in assembly isn't the same as jumping in C or C++

#

there's abstraction for a reason

proper gale
#

@round dome yes yes, i wrote it in like 2 minutes and didnt even compile it, i doubt it works right.

#

also, in this case, the goto makes a lot more sense to be than a flag or some shit

#

best solution for java that i forgot about, is named scope.

nocturne galleon
#

can someine define abstraction for me?

#

someone

vale maple
#

Goto should never be used. It is considered bad code and break/continue do the job as easily too.

deep scarab
#
bool is_palindrome(string s)
{
    int len = s.Length;
    for (int i = 0; i < len / 2; i++)
    {
        if (s[i] != s[len - i - 1])
            return false;
    }

    return true;
}

string sentence = "bob is a nice guy";
foreach (string s in sentence.Split(' '))
{
    if (is_palindrome(s))
        System.Console.WriteLn(s);
}
#

@glad pagoda @mortal owl @proper gale @worthy dirge

#

why do you guys make it so complicated

glad pagoda
#

i use console form btw

#

windows form

proper gale
#

because, dont worry about it

glad pagoda
#

ill try to re-write it

#

hold on boys

deep scarab
#

doesn't matter if you use winforms or console

#

the code is the same

glad pagoda
#

ye but i am not experienced at all

deep scarab
#

just where the output goes is different

glad pagoda
#

i barely know how to add 2 numbers together

#

in C#

deep scarab
#

a+b

#

???

glad pagoda
#

ok hold on

deep scarab
#

tbh winforms would be much harder when learning

#

since you have more to mess about with

glad pagoda
#

my teachers say that winforms are better jobwise

deep scarab
#

well i guess for gui apps

#

but i doubt you'll be making gui apps this early

#

best to learn the language first then move onto gui

glad pagoda
#

why cant i change

#

label's text

#

nvm

worthy dirge
#

What language is this

vale maple
#

I agree with integral and actually jobwise a logger would be best.

glad pagoda
#

C#

#

im just a noob trying to figure out

#

i just started my first semester programming

#

and i suck hard and i dont want to fail

worthy dirge
#

@deep scarab

deep scarab
#

c sharp

#

doesn't matter what language

#

the logic is the same

glad pagoda
#

alright

worthy dirge
#

No

glad pagoda
#

idk how to @ you integral

deep scarab
#

@nte then auto complete

glad pagoda
#

alright so you got the idea of what my assignment was right

worthy dirge
#

In c, split a string takes at least some 10 lines

glad pagoda
#

that i have to output every word which is the same when u reverse it

deep scarab
#

to split a string and print out palindromes?

glad pagoda
#

so for example

#

if you input

#

Hello my name is bob

#

output should be:

#

bob

deep scarab
#

yeah

glad pagoda
#

because that's the only word which stays the same when you reverse the sentence

deep scarab
#

@worthy dirge cool

#

but in c#, it's 1 line

#

¯_(ツ)_/¯

glad pagoda
#

i'll start writing under btn convert

#

and im stuck idk what to do

#

xd

deep scarab
#

reversing a sentence, is the same as splitting up the sentence into words, reversing the words and concating them

glad pagoda
#

do i start with a loop and save it in a string?

vale maple
#

Well you write your own split methode at some point and should just add IT as an include or how i do IT, have a while stringmanipulation package.
And i think my split methode is only 6 lines in C although admittingly unsafe.

deep scarab
#

it just sounds like your teacher wants you to find palindromes

glad pagoda
#

yes

#

palindromes

deep scarab
#

then you can just use my code

#

it's pretty simple

glad pagoda
#

yeah but you dont have that on windows form

deep scarab
#

so the only event you need is the OnClick event for the button

#

doesn't matter

#

winforms is still c#

glad pagoda
#

then what do i use

#

oooooh wait

#

you just have a string

#

oh ok

deep scarab
#

in your event make sure the input isn't empty

#

if it is, show a messagebox and return

vale maple
#

strtok(string, delimiter); actually exists too

glad pagoda
#

bare with me man im a noob

#

bool is_palindrome(string s)
{
int len = s.Length;
for (int i = 0; i < len / 2; i++)
{
if (s[i] != s[len - i - 1])
return false;
}

return true;

}

string sentence = "bob is a nice guy";
foreach (string s in sentence.Split(' '))
{
if (is_palindrome(s))
System.Console.WriteLn(s);
}

deep scarab
#

else, find the palindromes

glad pagoda
#

so you directly start with a boolean

#

hmm

deep scarab
#

that's a function

glad pagoda
#

it returns only a yes / no value

#

right

deep scarab
#

true/false

glad pagoda
#

but

deep scarab
#

but yeah

glad pagoda
#

i dont get it

#

should i not ssave the sentence in a string as soon as the button is pressed

deep scarab
#

why would you need to?

glad pagoda
#

why not?

deep scarab
#

the user will input it in the textbox

#

so you can just do textbox.Text or something

glad pagoda
#

so if it's in the textbox it doesnt have to get saved

deep scarab
#

it's already saved in the textbox

#
string sentence = textbox.Text;
#

you could do that if you want

glad pagoda
#

ye i have it called input

#

input.text

#

alright

#

so

#

so that means

#

what ever is in the text box rn, is automatically string sentence?

deep scarab
#

.Text will get whatever's in the textbox

glad pagoda
#

@deep scarab if im annoying your ass jsut tell me

#

ah ye thanks for that edit

#

i was confused as fuck

#

xd

deep scarab
#

so when the user clicks the button, you want to get the text and output the palindromes

#

you also want to check that it's not empty

glad pagoda
#

if " "

#

something like that?

deep scarab
#

that's not an empty string

#

that's a string with a space

glad pagoda
#

""

#

''

deep scarab
#

which?

glad pagoda
#

well idk u are the prof man xd

deep scarab
#

which do you think is right?

glad pagoda
#

i got no clue unless i google

deep scarab
#

well google

glad pagoda
#

i do know that different variables got different ones

deep scarab
#

not gonna learn if i tell you

glad pagoda
#

Empty()

#

or ""

#

how do i make sure that my string gives a message box saying '' no input '' for example when my string is empty

#

nvm got it

#

can someone explain me what this char[] temp thing means

#

and the chararray?

novel spear
#

@glad pagoda C# has a method called string.isnullorempty and isnullorwhitespace

#

you can also use a regex to validate

#

a char[] is an array of (I think) unicode characters, it has no wrapper to be a "string"

nocturne galleon
#

What do you want to do @glad pagoda?

novel spear
#

is this a homework assignment?

#

the reason I ask is the prof could want you to manually do checks, or they could want you to use the functions built in

#

in real life you would use one of: a regex, string.isNullOrEmpty, or string.IsNullOrWhitespace

#

a prof may want you do things like loop over each character and check if they are whitespace

glad pagoda
#

no i have a test that i had to output palindromes but i literally had n oidea how to

#

so i have to take the test again over two weeks

#

thats why im trying to figure it out at home

nocturne galleon
#

yo how do i build a vr game?

novel spear
#

use unity with the VR stuff

#

@glad pagoda Feel free to pm me (can you do that, I forget) and we can work out the assignment together

#

it sounds like you are missing some core concepts

nocturne galleon
#

can i use unreal for ve

#

vr?

novel spear
#

yes

#

unreal and unity both do VR

glad pagoda
#

I have a html test rn

#

Anyone who can help

#

Who is good and experienced

ionic hull
#

@glad pagoda what do you need?

obsidian bluff
sleek narwhal
#

Hi guys! I'm studying IT for a year now. Recently I've started using C# for my school project. Comparing it to what I was using previously which was C++ it feels nice. Anyways... I got hyped aaaaand really wanted to code my first mobile game. Can anyone recommend me what environment should I use? I was thinking about xamarin with CocoSharp/Coco2dx. What do you think about using Unity in combo with C#? I would like to learn as much as I can but I also would like to avoid writing the whole engine by myself. I got an idea for my first game and it will be based on well-known "Achtung die curve" game with my modifications. Can you help?

novel spear
#

If you are familiar with c# unity is cool but unity is also particular in a particular way

#

But its likely the best bet

#

For mobile c# game dev

#

Other options don't use c#

#

Or are more code and less game focused like the libraries you mentioned

#

There are some nice SDL bindings for c# as well if you want to go the graphics library route

#

And modern SDL is pretty decent on mobile

#

But it isn't a game engine its just a library

proper gale
#

@sleek narwhal C# has its problems, for engines i would say Unity for C# and sense you know C++, Unreal.

#

no language is perfect, the main fault of C# is also its biggest advantage, its garbage collected.

cloud knot
#

@sleek narwhal depends on what you consider mobile game development. You are pretty much tied to Xamarin tools to do mobile development in C#. Android uses Java and Kotlin as base languages; iOS uses Objective C and Swift. C# was the main language for Windows Phone 7-10, but obviously that is a dead platform

thin cobalt
#

having a strange problem

#

i made a screensaver in VS, and it works on my local machine

#

however when I copy it to a different PC it does not work

cloud knot
#

you probably didn't do a release build ? (just an idea, never did a visual studio build)

thin cobalt
#

oh yeah i will try that

#

thanks

cloud knot
#

it might be also missing some dependencies

#

like Visual Studio C++ Runtime and such ?

thin cobalt
#

already have all of those

cloud knot
novel spear
#

kotlin is amazing btw

#

its like if someone took java and said lets make this feel like javascript but be statically typed and have solid syntax and language helpers

#

and be functional

vestal glen
#

(it's like someone took java and said "let's make it not java because there's legal issues there" >_>)

novel spear
#

well if that was all they tried to do they went well above and beyond

#

WELL above and beyond

#

its both functional and avoids being verbose and uses language features to get common patterns out of your way

#

and some of the best features C# stole from other languages

#

plus nested functions, data classes, great null operators from C#, etc

#

and quick and easy lambdas

#

C# as it stands now has a lot of features bit is a bit verbose. they plan on fixing that

#

and yea yea "you call that verbose? look at rust?" but yea

proper gale
#

@novel spear its almost as if a competent company made it.

#

oh wait, one did

novel spear
#

jetbrains?

#

they know like

#

atleast six languages very well

#

like well enough to make resharper

#

with how useful it is it clearly is made by people who actually use it

#

and they have various IDEs on top which also do a good job with their respective langs

proper gale
#

im using CLion right now

#

and im actually having one hell of an issue, that in no way pertains to CLion

#

using VK_KHR_display

#

it works when on tty6 (command line) but not tty2 (Gnome)

novel spear
#

oh, idk any vulkin stuff

#

Just GL then I gave up and got libraries or engines to do things for me

#

because drivers are quirky and make me hate my life

proper gale
#

GL drivers are, VK drivers are not

gaunt tiger
#

malloc(1048576 * 128);

proper gale
#

why are there magic numbers in malloc?

gaunt tiger
#

Gotta allocate a dangling 128gb of memory somehow

proper gale
#

oh, that is 128GB

novel spear
#

malloc(4294967295)

ancient cave
#

Because I am confident in my abilities with C++, what would be a good GUI library you would recommend that works cross-platform?

cloud knot
#

@proper gale Google made Go and Dart, not Kotlin 😃

#

they are just the primary user of Kotlin

proper gale
#

I was calling jetbrains a good company

cloud knot
#

i still do not understand why 3 Russians made company in Prague, Czech Republic, but oh well 😄

graceful solstice
#

Anyone experienced in Java? hmu plis

proper gale
#

@graceful solstice I am

ancient cave
#

I’m experienced in Java as well

nocturne galleon
#

@proper gale how many languages do you know?

proper gale
#

depends on how you count them

#

but for your normal way, 3.

#

C++, Java, and python

nocturne galleon
#

can you help me with smth python related?

proper gale
#

maybe

#

@nocturne galleon

nocturne galleon
#

im tryna use Social Engineering tool but i keep getting this error Metasploit path not found. These payloads will be disabled.
[!] Please configure Metasploit's path in the /etc/setoolkit/set.config file.

#

i have metaspoit

#

but i cant configure the path

#

its a python filt

#

file

obsidian bluff
#

My bet is that setcore.py and set.config are 2 totally different things and that you're supposed to create /etc/setoolkit/set.config yourself if it doesn't exist

#

Maybe you can find an example config somewhere and work on that

nocturne galleon
#

i dont know a thing about config filrs

#

files

obsidian bluff
#

I don't mean to be a dick, but if you can't handle a config file. Maybe you shouldn't be messing with something like metasploit. You can ask other people but they're just going hold your hand all the time, if they even want to do that, and then you still accomplish nothing. I'd advise you to revisit whatever you're doing when you've gotten skilled enough.

errant sable
#

.

main root
#

Uhh can anyone give me a tip for a good site about lambda? (java) that's a thing i don't really understand 😐

novel spear
#

Think of a lambda like a mini function inside your function

#

and that function can be passed around like a variable, for others to execute, without fully knowing what it does

#

it removes the need for creating like a whole class for one function basically

#

does this help? it focuses on "why does java need this?"

#

lemme know if you want a different sort of explanation and I will try to find it

obsidian bluff
#

jUsT uSE fUNctIoN pOiNTerS

novel spear
#

java doesnt have em

#

if they are reading that and curious, the diff would be that lambdas can capture scope and be locally defined in a function so they are more powerful.
You can do things like (syntax is wrong) var PersonNameLength = something(); sortBy(x => person.Name.Length > PersonNameLengthMax)

#

or whatever

#

this allows you to write neat functional code too, but im getting ahead of your question, so check the link first

#

(with great power comes great responsibility though)

novel spear
#

a function pointer is a pointer to a specific method, a class is a container with pointers to methods plural

#

and sure you can have an inner class with one method, but thats not the same as a function pointer

#

like they can functionally be used the same but anyone who dealt with events in old java will tell you it aint fun

main root
#

Do you use them in python for anonymous classes too?

#

Oh yes.

#

Already first paragraph tells it xd

#

But they look fairly different compared to java :/

feral tide
#

Anybody know a simple solution for running a script in the background on Linux? (Single terminal only, don't want it sitting there stopping me from running other things in the meantime.)

cloud knot
#

put & after the command ?

feral tide
#

Yeah, I can work with that. Thanks. :P

cloud knot
#

@feral tide you might also want to use screen or tmux to have "multiple terminals" within your one terminal

wheat dock
#

anyone ever work with C# In linux? (either mono or .net)

nocturne galleon
#

@wheat dock @last ingot use .NET Core for cross platform software (even Linux) in C#

obsidian bluff
#

Better yet: Don't use .NET 👀

nocturne galleon
#

Haters gonna hate

proper saddle
#

Yeah, vanilla c# Master race.

novel spear
#

yea .net core is on linux now

#

I think sql server is on linux now too?

#

Microsoft just gave up on selling servers as an OS and decided servers as a service was more profitable

feral tide
#

@last ingot
Having issues with Cron..
I know it's running a script, but the script isnt doing everything...

Important lines are:
#typical response httpd not running
apachectl restart >log.txt
Service pihole-FTL start

Now it leaves the typical response log, as I expect, but doesn't restart the Apache service.
And the FTL line doesn't seem to run either. The rest of the script runs fine.

Both lines run if I open a terminal and type them out and hit enter, just not through con.

feral tide
#

I'm using the system Cron so, I assume so?.

#

@last ingot

feral tide
#

@last ingot
Cron runs a bash script.

rancid wren
#

so... i am doing some Python recently, had to use lambda functions but didnt really know what they were (managed to use them successfully, i just didnt know why i needed it), happened across this, makes sense now haha, thanks

nocturne galleon
#

tip for newbies py if you dont understand something , learn it as if it is what it is, dont try to understand

round dome
feral tide
#

@last ingot
ive got the system crontab trying to do it too, same result.
all they're doing is running the bash script which i know is running due to apachectl writing the log.
its just...not doing what its ment to be doing.
if it didnt have permissions, apachectl would error, and output that to the log.
but its giving the same output as if i run it as root, just... not actually restarting.

#

path to .sh:
/Startup/startup.sh

system crontab line:
@reboot Debian-exim /Startup/startup.sh

bash script imporant lines:

echo "flushing services"
apachectl restart >log.txt
service pihole-FTL start >logFTL.txt

feral tide
#

@wary sequoia
random, but.. ideas?

feral tide
#

@honest carbon

wary sequoia
#

whats it say in log.txt?

wary sequoia
#

i dont know if it will help, but when i write scripts i put in the exact path of both logs and binaries

#

i dont think it matters if you run the script manually in your shell, but a cron? idk if it follows PATH or not

nocturne galleon
#

i dont have nitro, look at my profile picture

feral tide
#

@wary sequoia
The log outputs the expected response "httpd not running, trying to start it."

Same as if I'd had run it.

And Cron logs show it run the bash script, so not much help there.

wary sequoia
#

in the script do

#
echo $?```
bleak summit
#

@feral tide Whats the issue

feral tide
#

@last ingot
For some reason it doesn't start correctly the first time. Clashes with lighttpd.
Flushing the service fixes the issue.

feral tide
#

@wary sequoia
0

feral tide
#

@last ingot
Yeah, but shouldn't matter at that point, hence why flushing works.

junior finch
#

A quick question about Google Drive:

It is possible to embed a Gdrive into an html website (via an iframe) - but if the folder contains a subfolder there is a problem:

You would think the subfolder opens up in the iframe again? NAH - it opens in a new tab ...
Any idea how to get an embedded google drive to open it's subfolders in the same iframe again?
Couldn't find a solution online

vestal glen
#

you can disallow it to open things in a new tab, but that'll probably just lead to it not doing anything at all

junior finch
#

Links are already set to open in the same tab - is that what you are talking about?

I'm gonna be honest - I have barely any expierence with html

#

This would be the example for the embedded google drive

The folder "yikes" would open in a new tab on click (Please ingore the nameing, it's just for testing GWqlabsYaoLUL)

vestal glen
#

that <base> is outside the iframe though? Plus, you want google drive to not open links in a new tab?

#

but that will probably just lead to it not opening the folder when clicking on it.

cloud knot
#

@junior finch you won't be able to do that. Google has various protections

#

x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block

#

Drive sends those headers

tropic grail
#

@wary sequoia apache2ctl you mean

wary sequoia
#

dunno, im copying and pasting from his own script

#

maybe that command works for him

#

it returned 0, so obviously its doing its job

#

problem is deeper, like apache itself

#

gotta check those logs

tropic grail
#

If you're using iframes you really shouldn't because there's so much shit that exists now in browsers to break them. Can't do a php require/include?

wary sequoia
#
    FINDPOOL=$(/usr/bin/tmsh show ltm pool $POOL 2> /dev/null | grep $POOL | awk {'print $2'})
    if [[ $POOL != $FINDPOOL ]]; then
        echo "WARNING: Name validation on pool $POOL failed! Please modify the POOL setting with a valid pool name.";
        exit 1;
    fi
    POOLMEM=$(tmsh show ltm pool $POOL members 2> /dev/null | grep "Ltm::Pool Member" | awk {'print $4'} | cut -d':' -f1)
elif [[ ! -z $NODE ]]; then
    FINDNODE=$(/usr/bin/tmsh show ltm node $NODE 2> /dev/null | grep $NODE | awk {'print $2'})
    if [[ $NODE != $FINDNODE ]]; then
        echo "WARNING: IP validation for node $NODE failed! Please modify the NODE setting with a valid node IP.";
        exit 1;
    fi
fi```
#

i put exit codes in my shit

#

tropic grail
#

exit 137

#

init 1

wary sequoia
#

i got pissed when i was working network ops and made a bash script to run on F5s which take packet captures on its own and stops them during server health failures

#

took a while to write cause i was a noob

#

saved so much time later ^_^

#

you know how it goes.... incident ticket "why is there a failure once every 2 days at a random time. please run network trace"

#

but like 50% of the script is data validation because i wanted other techs to use it

#

xD

#

the nice part is that the script can be way more aggressive in health checking than the production F5 settings

#

so it would upset the issue and we found it faster

astral forge
#

Can uBlock Origin use a wildcard as a subdomain? I want to target a CSS class on all of Reddit except for actual post threads.

Currently my plan is for reddit.com/r/*|$document Basically block the CSS element on all subreddit pages but not on the actual threads.

#

I would love to block Reddit entirely for productivity purposes but it breaks a ton of web searches. Heck, I had to disable some filters to read stuff about uBlock. Reddit is way too centralized at this point. Way too much word of mouth stuff there.

native shoal
#

what's wrong with reddit?

wary sequoia
#

its too liberal

native shoal
#

because of the spez guy?

#

he's a running meme on some subreddits

rancid plover
#

i was told to join this discord for a little bit of c++ help?

#

for context, it's like basic for loop/while loop/ if statements, i just don't know what's wrong w/ my code

nocturne galleon
#

@rancid plover you might list it here and then try on the forum.

rancid plover
#

ok, i'll try that

wary sequoia
#

Not spez. The bulk of the community

proper gale
#

@rancid plover i can help

rancid plover
#

i got it figure out, but thank you though @proper gale

proper gale
#

mmk

mild remnant
#

Anyone in here right now that is super savvy in Git & Github that could help me out?

next haven
#

whats your issue?

#

im no pro but ill see if i can help

mild remnant
#

Thanks!

So I have this private repo on github where there's a bunch of directories that are git clones from other repos I don't own. I've modified the contents of these git clones and some of them automatically were added as submodules and some weren't (I don't know why, I didn't even really know submodules were a thing, I just wanted to git clone them in, really) so when I push my sort of root repo to github some of these subdirectories (or submodules as they are now) don't actually contain any code. So if I clone my root repo somewhere they'll either be empty (that's what I got when I tried) or contain the current-commit state files of the original repo they came from.

#

In my repo, I just want all these git clones to be considered basically normal directories.
But it'd also be useful if they were themselves local git-repos that I could maybe merge from their root repos if they were updated.

#

I hope that makes sense, I'm very tired. Sorry for wall of text.

next haven
#

git clone ... --recursive

#

does that do what you want?

mild remnant
#

You'll have to elaborate on that a little bit. Do you mean I should use this when trying to clone my own repo somewhere or use this when cloning these other "submodules" into my own repo?

next haven
#

You would use that when cloning your repo somewhere.

mild remnant
#

I see.

#

Let me maybe give that a shot real quick

#

One minute

next haven
#

^^ that too but it depends on your version of git. We have an older version at work so i use --recursive

mild remnant
#

I think I have the latest version of git

#

Which one should I use?

#

I just tried both and in both cases I ended up with empty directories for the submodules

next haven
#

I would use --recursive-submodules if you are running the latest

mild remnant
#

Yeah both methods gave me empty directories :/

#

I don't even think github bothers to store any of the contents of these folders

#

In the repo on github they're not links, they're just folders with a "sub-directory" icon, un-clickable

#

Yeah like I said, I didn't even know submodules were a thing really.

#

I just had my repo, and in the working folders I just did git clone LINK

#

And some of those clones are just normal directories

#

Some of them became submodules automatically somehow

#

I have no idea what's going on

#

I probably would have done that if I had known haha

#

Damn.

#

What happens though if I make changes in these submodules that I can't really push anywhere because they're not forks of a repo?

#

I kinda just want my repo to fetch all the files and not care that they're git clone repos and then if I were to actually browse to those git clone repos myself and git fetch or merge something inside of them, my main repo would not care, it'd just treat them as normal files in my repo.

That'd be optimal for me kind of... I think? If that's even possible

#

So

#

I've changed them ALL

#

To some degree at least

#

And there's quite a few of them at this point so

#

Ugh

#

All these clones are modules in a framework that I've changed configs for, added things to etc. Probably over 20 of them

#

Yeah you're probably right.

#

Although forks can't be private right?

#

Is there any way to have .git directories in these subdirs I have and have my repo not recognize them as submodules?

glad pagoda
#

anyone good with html

#

webdeve

#

hmu

astral frost
#

@glad pagoda html or html/css?

timid widget
#

oh noice

#

devs

#

im primarily c# / js

vagrant wigeon
#

Does anyone here by any chance use Node-RED?

novel spear
#

"In the last year, How to exit the Vim editor has made up about .005% of question traffic: that is, one out of every 20,000 visits to Stack Overflow questions. That means during peak traffic hours on weekdays, there are about 80 people per hour that need help getting out of Vim."

cloud knot
#

might grab this pack

#

the Xamarin and C# books might be useful

proper saddle
#

Xamarin is interesting...

spice fog
deep scarab
#

ie8 lul

cursive oyster
#

😹

#

Do web dev rly continue trying to support ie ?

feral tide
#

@cursive oyster
No
Even Microsoft doesn't support it.

proper saddle
nocturne galleon
#

lmao vsc is the more superior product

silver wigeon
#

Github is hard to use'

nocturne galleon
#

no

#

its easy

#

git clone

#

git add

#

git commit

#

git push

#

learn those or just use a gui

#

and a bunch of other things

silver wigeon
#

oh okay
nice

#

next monday i will have a test of it

#

thanks

tropic grail
#

@nocturne galleon spammy there bud...

proper saddle
#

Did he get muted by the bot? omegalul

tropic grail
#

They will be soon enough

nocturne galleon
#

Idea development

#

The heat from PC is moved on a heatsink with ridges like a grill and used for bite size steaks

#

Developing ideas

#

Eheheheheheeheheheh

proper gale
#

@nocturne galleon you talking mad shit for someone within grilling distance

nocturne galleon
#

wait is vs 2019 fully out? or is it still in a pre-release stage?

nocturne galleon
#

Fully out, general availability hit yesterday

nocturne galleon
#

@proper gale jumps on grill REEEEE

worthy dirge
#

But it still has a preview in the version, am I correct

#

It fix a ton of intellisence bugs of remote Linux programming

proper gale
#

intellisence is shit anyway

#

anyone here worked with the Unigine Engine?

nocturne galleon
#

is that a typo?, no i didnt

proper gale
#

that to me or?

nocturne galleon
#

yes

proper gale
#

no, Unigine, the engine used for the Unigine bencharmarks (Heaven, Valley, Superposition)

#

its the only C++ engine i could find that has an upfront pay model and runs on linux.

#

i was asking if there is anyone with experiance with the engine.

#

its not commonly use for games, and focuses more on professional applications

#

though you can use it to make games, and they have. see Oil Rush.

thin cobalt
#

so I have some icons

#

i want to cover up the gradients except where the icons are

proper gale
#

hmm?

thin cobalt
#

that way I can make the icons transparent on hover

#

and it will show the part under the icon

nocturne galleon
#

@proper gale I think I've seen one or two mentions of it on r/gamedev but I don't know anyone who actually uses it - if you want C++, is there a particular reason you don't want to use UE4? That supports Linux

nocturne galleon
#

@nocturne galleon he said he wanted an upfront pay model

chilly oxide
#

is there a chat for programming?

#

I want to ask something

nocturne galleon
#

@chilly oxide yes, you're in it lol

chilly oxide
#

oh ok

#

So I was thinking of making a program that can create ironically a program for a school. There are about 20-30 courses all of them having standard level and higher level with some exceptions. What I want the program to do is to take the courses the students will have and making a flawless course plan. Like which hour goes each course. How complex is it?

#

I am looking forward to making this no matter how hard it might be, I just want a challenge

bleak summit
#

Thats not a simple question to answer

chilly oxide
#

Well simple. I mean @bleak summit is it do able at least

bleak summit
#

Yeah it's doable, we sent humans to the moon with computers, it's well within the realm of computing technology to write a program that schedules classes

chilly oxide
#

@bleak summit I am a beginner in java, so I dont know if its that easy

#

well I think if I set my mind to something I can achieve it so I am going to try my best

bleak summit
#

How "easy" it is is the complicated question

chilly oxide
#

by making a flow chart for starters

#

also @bleak summit what are some good ides for java because I tried eclipse and I wouldnt say its my favorite

#

I heard intellij is good but its not free

bleak summit
#

Unsure, I don't use java

proper gale
#

@nocturne galleon yes, 5% royalties on a mostly unrelated product.
i would much rather pay $1000/yr vs (depending on size) $10,000-$40,000 or more per installation. so unigine would be significantly cheaper for me to use.

#

@chilly oxide it's good, and its free.

chilly oxide
#

which one @proper gale

proper gale
#

Idea community

#

Few things need the ultimate version

chilly oxide
#

when I downloaded it it said trial or pay

#

I am going to try it right now again

#

you mean the intelij idea one ?

proper gale
#

Yes

chilly oxide
proper gale
#

What you don't get are the Enterprise features

#

Which, you don't need I for are just starting out

chilly oxide
#

whats the create associations part? it has .java in it

#

do I press it

#

found it nevermind

#

@proper gale it says evaluation is for free for 30 days

proper gale
#

Then you downloaded the wrong version

chilly oxide
#

its intellij idea

#

can you just send me a link?

proper gale
novel spear
#

That moment when one of your Devs gets a 4k monitor without scaling and pulls your software up

#

And it's bad

#

Guess we ain't supporting native 4k yet

#

Technical debt is contractors who left ten years ago slapping a Gui together with fixed pixel offset code

proper gale
#

heh

#

always use relative cordinate.

novel spear
#

Tell that to the contractors who left ten years ago lol

full berry
#

anyone here knows how to create a virtual network adapter for an application (so that the application itself has its own IP address)?

cosmic turtle
#

Can I complain about JavaScript here? I like complaining about odd JavaScript things.