#development

1 messages Β· Page 29 of 1

hasty sail
#

but no

whole quail
#

???

hasty sail
#

from my experience people who start with C kind of stick to that for a long time

whole quail
#

If you do that, you're problem isn't C

hasty sail
#

because they have to deal with things that should be abstract

#

for example a set data type

whole quail
#

It's most likely lack of motivation or stupidity

#

Which would result in a worse scenario with Python

hasty sail
#

when writing a program, you shouldn't need to implement set by yourself every time

whole quail
#

Because now they can suddenly do enough to cause some damage

hasty sail
#

yes, you should know what happens in the background

whole quail
#

@hasty sail we're not at the point of writing a program

#

We're still at the point of learning

hasty sail
#

yes

whole quail
#

Which means trying to understand and implement things

#

Not trying to make something

hasty sail
#

no

#

you should be able to actually build solutions

#

not implement a set

whole quail
#

That's literally code monkey

hasty sail
#

no it is not

whole quail
#

Able to build solutions

hasty sail
#

yes

whole quail
#

Literally code monkey

hasty sail
#

you are quite stupid if you think that

#

I have learned C for ~1h and I know more about what happens in the background than people who started learning from how some abstractions are built

whole quail
#

If you think that building solutions is the important part of programming, you are either still learning or a code monkey

#

Almost anyone can learn to do that

hasty sail
#

almost, yes

#

but it is not that common to write actual effective solutions and write clean code

#

solving problems effectively and cleanly is the key

whole quail
#

That's the key to building software

#

Not good software

#

But software

#

And cost effective software

hasty sail
#

yes, good software

whole quail
#

That's where code monkeys are good

hasty sail
#

good software is scaleable, extensible, flexible, effective

whole quail
#

They can build something that works and maybe look into the future a bit

hasty sail
#

or you are just sad that codemonkeys can actually do something

whole quail
#

Code monkeys are important though?

#

Code monkeys are the majority of what is wanted

#

And the majority of programmers

hasty sail
#

I haven't seen anyone who I would classify as a code monkey by your description

whole quail
#

???

hasty sail
#

maybe I just haven't worked with any of them then

whole quail
#

You yourself have literally seem to have that mentality

#

It's not bad, there's just a difference between learning to program to make things and learning to program to learn things

hasty sail
#

you can take a look at my github if you want to

whole quail
#

I don't care about your code

hasty sail
#

the thing is

#

learning theory it self is useless

#

if you can't practically use it

grand hornet
#

This whole conversation is basically "Wtf"

whole quail
#

Practically applying ideas with code is pretty straight forward

#

Once you have worked out how to solve a problem programmatically

hasty sail
#

yeah, I can't be bothered to explain things to you anymore πŸ˜„

whole quail
#

You haven't explained a single thing lol

nocturne galleon
#

I really can't stand web development, backend OR frontend.

#

I'm trying to implement online multiplayer in my game, and allow players to host their own servers. I'd also like to allow players to log into ONE account and have that be the way to authenticate with a server - nothing else.

#

So I have a webserver and a REST API that handles logins and stuff like that and both the client and the server talk with it to query user information

#

client logs in sending a username/password pair over SSL to the server, server checks it, let's em in, and sends back a user token. Client sends the user token with all requests to the game servers, and the game server uses it to get the user ID which is then used to look for save data and other content on the game server for that user.

#

Only thing is, this backend API that actually HANDLES user logins is insanely annoying to program and use.

#

And coding the HTML/JS frontend is even worse

#

because JS just...gahh. I hate it.

#

If anyone could recommend a free, open-source solution that does what I need to achieve this...it'd be greatly appreciated

little knoll
#

What do you use as your backend ? NodeJS ? Or some other language/framework ?

nocturne galleon
#

I use C#. I wrote my own HTTP server to handle the incoming requests

#

my current setup is a CentOS 7 server with nginx that handles things like SSL and simply uses a reverse proxy to forward inbound requests to the API running on a different port and not visible to the outside world

#

so when you go to https://watercolorgames.net/api/whatever, your request goes from your PC to the nginx proxy which is how you get SSL, and the nginx proxy forwards it to the API's webserver which actually handles the request

#

though I'm thinking of making it so Discord handles authentication for the game servers

#

and killing off this API entirely and using the nginx reverse proxy to point to apache+php which will host something like phpbb or drupal

#

The main issue now is how does one get OAuth2 (through discord's APIs) to throw the token back at you when the user's logged in so that the token can be accepted by the game client right then and there without you having to copy the token from a web browser into the game (like I've seen some programs do)

little knoll
#

This redirect from your web browser to an app is simple, the callback url for your auth form simply redirects to a basic web server running on the app that gets the callback call and then do some stuff with it.

small escarp
#

oh god, if you want speed (for a realtime game) please dont use apache + php

little knoll
#

To simplify this login nightmare, you could use a auth library. I tried to find one for C# but I didn't found anything useful. The only auth library that I know is Passport.JS for node, maybe search for C# equivalent.
And Nginx can do PHP. You don't need Apache for this.

small escarp
#

btw, what you're trying to do is basically implement your own OAuth2 server

#

there are libs/apis for that

#

hence, doing it with your own server or doing it with discord would be exactly the same thing

#

as far as the client - private server are concerned

nocturne galleon
#

@small escarp the apache+php thing wouldn't be used by the game

#

it'd be the website lol

small escarp
#

well, if you're running them in the same machine, they are using the same resources

nocturne galleon
#

also I'm aware nginx can do php but it's insanely hard and annoying to configure compared to Apache.

#

Unless someone wants to configure it to work properly for me based on what community frontend I decide to use then I'm using apache

little knoll
#

Not that much, just install php-fpm and then just look at a site config. It just 5 lines of config file to add

nocturne galleon
#

I mean I've gotten it to at least try to use php

#

but certain CMS software wouldn't work properly in nginx

small escarp
#

gotta love those digitalocean tutorials

nocturne galleon
#

yep I use em a lot

#

but there's one that goes over how to set up vnc

#

don't follow it directly unless you're really cautious about shutting down the vnc server when you're not using it.

little knoll
#

What are those CMS that require Apache?

nocturne galleon
#

The server they make you install...

#

it limits your password...

#

to a max of 8 characters...

#

and I forgot to turn off the vnc server...

#

and someone was able to VERY EASILY brute-force their way in

#

and trashed the server

#

and I accidentally left my Discord open on the server (was using it to get around school restrictions, mwahahaha)

#

so they tried to break up with my boyfriend using it too

#

and leaked ssh credentials and shit on my discord guild

#

all while I was asleep

small escarp
#

leaked ssh credentials?

#

weren't they password protected?

nocturne galleon
#

Luckily the guys who did it are incredibly memified and hated in my community so everyone pitched in to help recover everything that was damaged

small escarp
#

and why did the server had a graphical interface at all?

#

(and why did the server have personal ssh credentials to begin with)

nocturne galleon
#

@small escarp Because I wanted to get around my school blocking Discord, and without writing a bot you can't use Discord through SSH.

small escarp
#

interesting

#

no more 8 char passwords

nocturne galleon
#

these same guys who hacked me actually hacked PowerPoint OS Network (look it up)

small escarp
#

also, note that servers are typically based on non-preemptive kernels

nocturne galleon
#

and they wrote a song about it.

#

A SONG.

small escarp
#

so they make awful "interactive computers"

nocturne galleon
#

I run CentOS now (before, I ran Ubuntu) with SELinux and not a single password in sight below 50 characters.

#

(Also the SSH credentials they leaked were for an account THEY created which had sudo privileges on that server.)

#

(Anyone could have used them to totally raid it.)

#

(But instead one of the people on my guild logged in and shut the entire thing down and reported the incident to another one of our sysops who was awake at the time)

nocturne galleon
#

I wonder what software the LTT forums use

#

...and now easy it is to customize/theme

little knoll
#

(from the footer)

timid widget
#

not easy at all

grand hornet
#

I need some help with some basic terminology

#

I have a PHP class with a list of directories I am importing files from and exporting to a diffrent directory

#

public $sassInDirectory; public $sassOutDirectory; public $jsInDirectory; public $jsOutDirectory;

#

Can I create an array and call it something like public $workspacePaths;

#

Or what should I even name that array

#

Because what I plan to do is have this class then itterate over each directory and then create the directory if it does not yet exist

#

Does that make sense to do?

nocturne galleon
#

I'm not good with JS, how would I go about extracting the value of access_token from this URL?

http://localhost:3254/itch_callback#access_token=my_itchio_token_you_no_getsies
hasty sail
#

are you using just plain js or some framework?

nocturne galleon
#

plain JS.

#

I want the code to be as compact as possible because it's embedded into a tiny C# webserver that just waits for an OAuth2 callback, grabs the token, and brings it into the game I'm working on

hasty sail
#

regex?

nocturne galleon
#

usually I'd parse the url on the server-side but itch.io decided to put the token after the # character in the url and the browser doesn't send that part of the url to the server

#

I uh also don't know regex lol

little knoll
#

You could try a window.location.hash but it only works when you are on the actual page. (if script is loaded from the same url)
If not, you will have to use regex.

nocturne galleon
#

ahh it'll be embedded in the html of the returned response so I should be fine

#

so just extract the hash and send to the server through ajax - bam.

worldly vale
#

var token = window.location.hash.match('(#access_token=)(.+)')

nocturne galleon
#

thank you πŸ˜„

#

that code seems to have broken

#

because when the token was sent to the server it came in as that

#

(see the _token value under Locals)

timid widget
proper saddle
#

@nocturne galleon Is that an API or MVC project? :U

timid widget
#

looks like WebSockets

proper saddle
#

Oh...

timid widget
#

not even SignalR websockets

#

like raw

proper saddle
#

Never used them, and probably never will in the foreseeable future.

timid widget
#

WebSockets are cool, but Microsoft doesn't have a good standard for them IMO. Nobody has corrected me yet tho

proper saddle
#

I need to look into Monogame after finding out that it can make 3D games, I'd only seen 2D games up til now.

proper saddle
#

Eh, I guess I'll stick with Unity.

nocturne galleon
#

@proper saddle it's not either

#

I wrote my own webserver

#

embedded into my game

#

for the sole purpose of accepting an OAuth2 callback

nocturne galleon
#

also yes it can do 3D

#

but it's WAY harder

#

To the point where I'll be using UE4 if I ever decide to do 3D.

nocturne tusk
#

Does anyone know any good and free website/mobile app UI designer? I know Adobe XD but it's not free

graceful silo
#

Windows or Mac?

little knoll
#

https://designer.io/
It's multiplatform (even available from the web), paid equivalent are better tho (Sketch or Adobe XD).

nocturne tusk
#

@graceful silo Windows

#

@little knoll Thanks!

little knoll
#

You're welcome !

worldly vale
crude mason
#

Poi

timid widget
tranquil creek
#

how about not making peoples browser mine your bitcoins? @karmic sinew

#

@untold flame maybe check into this?

untold flame
#

hm?

tranquil creek
#

he posted a link to a site that he claims is a game he made, but it has a trojan (javascript) that makes the clients computer mine cryptocurrency for him

#

tldr the site is infected

untold flame
#

Have proof? I'm testing it out and my CPU is fine. not showing any higher usage than normal

#

im familier with coinhive and all that

tranquil creek
#

i posted a screenshot

untold flame
#

ah i see the FAQ now

tranquil creek
#

but the user is not informed immediately asfter opening the link and just starts doing it

untold flame
#

from what I can tell it only starts when you "opt in" with the checkbox? I'll remove the link for now and if they put it up again I'll ask them to put a warning

tranquil creek
#

as you can see from my screenshot i got the popup immediately after opening the link

untold flame
#

funnily enough i can't get it to start taxing my system.

tranquil creek
#

well I checked the web and some people have trouble removing it

untold flame
#

i assume that it just scanned the code and saw the call to coinhive. thats how most anti-miners do it

#

all good now though πŸ‘ thanks for tagging me

tranquil creek
#

thx for looking into it

karmic sinew
#

It only starts once you accept it. Anti viruses see the js includes in the page and get angry

#

I’m planning on moving it to a separate page so users who don’t opt in won’t see the warning

winged zodiac
strange horizon
#

a friend of mine has done quite a bit of coding and developing over the past fast few years, but only in java, c# and the occasional bit of python. now, he got a commodore 64 and wanted to do some serious codeing on it, not just BASIC. i advised him assembler, but told him its quite far from OOP programming...............

#

the next day he came to me, asking how to make a class and how to give it methods....

#

i laughed my ass off

#

told him to be carefull with what he asks bare metal programmers

timid widget
#

shame these bare metal programmers you speak of are backwards asf and cant make anything useful

winged zodiac
#

True that

untold flame
#

@karmic sinew that's fine. Might want to post a more obvious warning.

karmic sinew
#

im also planning on using Adsense once they approve me

nocturne galleon
#

whos learning kotlin

#

?

winged zodiac
#

Anyone know how to make two css grids so that there would be two collumns and two rows

graceful silo
#

So like this:

___________
|    |    |
|____|____|
|    |    |
|____|____|
untold pilot
#

lol

#

yikes how long did that take u to make

graceful silo
#

like 30 seconds lol

untold pilot
#

oh

#

ok

#

xd

#
_________
|         |        |
|         |        |
_________
#

WTF

#

RIP

untold pilot
#

i give up

#

i got bio to study

#

lol

grand hornet
#

What do you guys think of this design? Using bootstrap but made some changes to it. This UI shows the admin all the website competition submissions.

graceful silo
#

Pretty decent

hollow fulcrum
#
___________
|    |    |
|____|____|
|    |    |
|____|____|
timid widget
#

this bastard because i google stack overflow

obsidian bluff
#

That guy: "Python's where it's at! You can do almost anything with it!"
Me: Fuck off

empty dune
#

lol

#

what's your poison?

obsidian bluff
#

I refuse to use python

empty dune
#

Fair enough.

#

But please don't say php is where it's at πŸ˜‰

obsidian bluff
#

I might consider it someday

#

But for now I'm focussing C/C++

empty dune
#

die hard πŸ˜„ I like it

obsidian bluff
#

To my own detriment

empty dune
#

You really hate yourself to learn C πŸ˜„

#

I respect that.

#

It's a real man's language

obsidian bluff
#

I don't wanna judge other people for using languages with more abstraction

#

I'm personally not comfortable blindly depending on something that's actually very complex

#

I want to at least sort of know how it works

empty dune
#

Makes sense

#

I remember in Electronics class in high school. The teacher always said that you can confidently say "this is how a radio works" instead of "it works fine"

#

I think a lot of people miss that these days. Ask questions, learn more, wonder, imagine. You know what I mean?

obsidian bluff
#

I'm not sure

#

I think what you're describing is a very new and modern way of thinking

#

relatively

empty dune
#

I don't think it's that new.

#

I just think it's being reborn

obsidian bluff
#

It was always the special types who thought about things. Regular people didn't really bother with it

#

You know... The Newtons and the Descartes of the world

#

I don't think thinking scientifically has ever been something for your average person

#

I will only use a library when I am convinced I'll either never be able to code it (or shouldn't, think crypto) or if I'm certain I would be able to code it if I had the time.

#

At least that's what I've been trying to do

#

Not going to claim it's productive

#

But I have managed to do some cool things

#

And I've learned a lot from it

#

I don't really have any experience with developing applications that are suited for general audiences.

#

I don't want to go up levels before I've been to rock bottom... I'm basically just slowly digging down and I want to work my way back up.

#

One of the goals I've set is to at some point be able to type out a program byte for byte, no linker, no compiler, just instructions typed in as bytes and a manually created PE header. It would probably call a function like MessageBoxA saying "Hello World!". I'd love to be able to do that

#

It's totally pointless and nobody who doesn't understand it will be impressed by it but I still think it would be cool to be able to do it.

#

Anyone looking at it would think to themselves "Wow you've achieved literally nothing". But I would disagree.

#

I'm just ranting at this point

#

Anyone got some thoughts on that rant?

#

I get the feeling @whole quail would get where I'm coming from

empty dune
#

Sounds like a valid goal.

#

Do it up

#

πŸ˜„

small escarp
#

hope you are testing all your implementations πŸ˜‰

whole quail
#

As long as you understand what you're doing and can seperate learning from actual development for a client

#

If you like learning

#

Learn everything you want

#

There's never going to be harm in learning too much

#

It sounds like a good goal too

#

It's nothing too crazy and it's achievable while also letting you learn a lot

#

I'd hire the guy who wants to learn about things over a guy who learns a standard and follows it strictly

#

For high level positions

#

For low level positions you don't need good developers

#

Average or mediocore devs are fine for the majority of things

#

And it's fine to not be an above average developer

#

But if you want to bring something special and make a difference you've got to do things that make you irreplacable

#

Like spending 10 years of your life learning things that might seem unnecessary so that you can give a unique aspect to your work

#

The things I'm doing atm I couldn't ever do without spending years doing that seemingly unnecessary stuff I did. Because of that I'm able to build a service that is so unique it hasn't been explored much if at all.

timid widget
#

Pace yourself though. Learning all the languages at once won't get you anywhere

#

tries writing C# in a JRE enviroment

whole quail
#

If you're in a hurry you're not learning for learning, you're learning to do something

small escarp
#

if you truly want to learn because of learning, then you should learn haskell

#

haskell is a plus in any resume just because of it, no need to apply it anywhere, it just says a lot about you

whole quail
#

There's no harm in learning older languages

#

Actually quite helpful when learning about more general comp science to look back at history because the present is so god damn complicated now compared to decades ago

small escarp
#

the harm is that time is finite

#

you can only learn so much

#

concepts from functional and object oriented languages are more interesting, useful and mentally challenging

#

also, there is somuch more to software dev than writing code

#

project management, team building, testing, verification, etc.

#

that is another set of challenges a sw should master if they want to work in the industry in a great role

#

also, expressive languages make development easier, not more complicated πŸ˜‰ hence leaving room to make more complex systems

graceful silo
#

Concurrency is a blessing and a curse

timid widget
#

this so much

small escarp
#

:S

#

so code that needs to be tested...(?)

#

that typically means they are doing it wrong

#

if you don't like tests, you should join us at machine learning

#

every bug is a regularizer

#

40-50 lines of code..... ouch! that can never be good, in any context

#

yes, but it takes experience to see it

#

sadly, not every lead has it

#

c#?

#

those are awful

#

you should screenshot them and send them to WTF

#

(if legal)

#

a research lab

#
  • startup
#

saving whales

#

(no, in Chile)

#

they are quite harsh (and it's for Ruby so, context...) but they are decent guidelines

#

even if I don't follow them, thinking about them sometimes helps simplify things

timid widget
#

@warm frigate "this function looks simliar to 2-3 others, make it one function; with 10 params"

#

Never. Do. This.

#

Yes, the sentiment is correct. You should convert your common logic into private routines/functions. Seperation of concerns after all.

grand hornet
#

Just make everything static and you'll be fine. Access the code from all sections of the environment πŸ˜„

timid widget
#

Converting large portions of logic is creating a large concern alone, and seperating too small a portion creates too much work to maintain.

#

And TriggeredNerd, that's just a waste of memory. Accessors are a thing to avoid that.

grand hornet
#

Yeah I was joking lol

timid widget
#

To be fair, the first thing I ever wrote as part of my actual career did and still does that. Shit's pretty fast, but it doesn't do much anyway. Only facing like max 2 users a day.

grand hornet
#

Yeah same. Minecraft plugins with all public static function was a terrible idea. Memory leaks like crazy

graceful silo
#

I use a fair amount of static methods in plugins .-.

#

Never had a memory leak issue with any of them

grand hornet
#

It's bad practice kinda lol

#

Something I made static anyway but still

graceful silo
#

It's that or I'm putting the same like 5 methods in every single class lol

#

At least they're protected 99% of the time rather than public, so they're a little safer

lilac dove
#

Can Raspberry Pi Zero run Node.js and Python?

#

@here

rugged fossil
#

I know nodeJS run on raspbian easily

#

I used it for an IT project when i joined my it school

#

And I think python should do just fine also

#

I have a raspberry pi zero W btw

main wyvern
#

apt uses python afaik, raspbian is debian based

#

so yes, it will 110% run

solid horizon
#

any idea?

vestal glen
#

(I mean, unless you want like that python version that it doesn't have because python is complicated...)

#

@solid horizon it's a console.

solid horizon
#

yes i know

vestal glen
#

(you asked for "any idea" πŸ˜› )

solid horizon
#

i meant "any idea why this is happening"

vestal glen
#

I'm going to not write "because you made it do that" and instead do other stuff, good luck!

solid horizon
#

i dont see how?

#

also i made it remove the key from the dict and its still there

#

omg i think i found it

#

yup...

whole quail
#

@lilac dove raspberry pi is literally described as a python machine often lol

#

Because of its large out of the box support for it

obsidian bluff
#

I scrolled up a bit and read people talking about "memory leaks" in the context of Java... Isn't the whole point of java not to have to worry about memory management? Garbo collector and such? I thought they eliminated memory leaks from programmer error.

whole quail
#

That's a misconception

#

It can only remove what it thinks you aren't using

#

If you do really stupid shit you can get really stupid results

lilac dove
#

@whole quail how do you install

whole quail
#

@lilac dove ?

#

Python 2 and 3 are installed by default along with a lot of other really helpful tools with raspian

main wyvern
#

^ on anything debian based

whole quail
#

Are full python installs included with debian?

main wyvern
#

Yes

whole quail
#

I thought they were limited

main wyvern
#

Nope

whole quail
#

I've always had to install a bunch of stuff to get full functionality on servers

#

@lilac dove are you trying to do something specific with it?

lilac dove
#

@whole quail make a Discord bot

#

Currently im running off my laptop

whole quail
#

That should be super easy to do

lilac dove
#

I can make the code but to host on a server

whole quail
#

Just install raspian, get any dependencies, copy the files over and run

lilac dove
#

Where will i get Discord.py and cmd to do pip install Discord and to get a ide and Python it self

#

?!?

whole quail
#

It's probably called terminal and you just use pip like on windows but be careful with capitals

lilac dove
#

Where will i get dependencies

whole quail
#

pip or as source files most likely

lilac dove
#

And a ide?

whole quail
#

idle is probably installed

lilac dove
#

Where will i actully get Python

whole quail
#

It comes with raspian

lilac dove
#

Oh ok

#

Will it work with norm pi zero

whole quail
#

Everything should be there for you already so you only have to do minimal setup if any

#

It's why they're used in education so much

lilac dove
#

Ok

whole quail
#

I have no idea what works with what

lilac dove
#

Where will i buy a raspberry Pi Zero

whole quail
#

No idea

lilac dove
#

Where you get yours?

fringe summit
#

Getting a raspberry pi online is a good bet

#

There's a list of places you can buy it on their website

whole quail
#

I haven't touched my raspberry pi b since, well not long after the raspberry pi b was released

#

I just haven't had too many uses for it

fringe summit
#

For my uses, a raspberry pi isn't even enough

whole quail
#

lol I have boxes of old computer gear and many old servers lying around

#

So if I need something local I dig up one of those

#

Otherwise I just host it remotely

lilac dove
#

Lol

fringe summit
#

For local things, a virtual machine helps

whole quail
#

lol I have many many vm's

whole quail
#

"in shutdown"

#

Also wtf is security

fringe summit
#

that is not for you to know

#

it's zoneminder

#

for CCTV

whole quail
#

That's boring

lost schooner
#

"Minceraft"

carmine relic
#

oh hey it's 7coil

fringe summit
#

ayy

carmine relic
#

oof, i cannot change my nick

#

oh well

fringe summit
#

not doing well enough?

carmine relic
#

i abandoned the project

fringe summit
#

oh

carmine relic
#

lost motivation, as i do with everything

fringe summit
#
const clean = (html) => {
    const $ = cheerio.load(html);
    $('*').each((i, element) => {
        Object.keys(element.attribs)
            .filter(attribute => attribute.startsWith('on'))
            .forEach((attribute) => {
                $(element).removeAttr(attribute);
            });
    });
    $('script').remove();
    return $.html();
};
#

a brilliant use of jquery

vestal glen
#

*cheerio

#

it sanitizes html?

fringe summit
#

cheerio is basically jquery for node

#

yea

vestal glen
#

kinda, sure

#

it misses javascript: links.

fringe summit
#

it's also kinda inefficient

vestal glen
#

and dynamic same-origin iframes with scripts

#

kinda, yes.

fringe summit
#

also can adobe flash run scripts?

graceful silo
#

Don't use flash

#

Never use flash

fringe summit
#

If someone does use flash, it's not going to get cleaned

vestal glen
#

I mean, sure, remove all <object>s too for good measure.

swift niche
#

I posted this question on the forums, but wanted to see what you guys think: I need an idea for the final course in my Comp Sci major. It has to be roughly 4000 lines of code (dumb, I know), object oriented, and relatively complex. So far all I'm interested in doing is a discord-like chatroom or some sort of stock market + cryptocurrency price ticker that'll try to actively suggest what to buy based on news articles from the web

nocturne galleon
#

@fringe summit heh... MINCEraft

#

i see what you did there

untold ibex
#

Anyone in here good at Matlab?

hasty sail
#

@swift niche a self-hosted discord clone doesn't look like a bad idea

small escarp
#

I'm good at porting systems from ugly closed platforms into vibrant open source languages :]

#

what do you need to do inMatlab?

proper saddle
#

Does this even matter? thonk It's just an app that uses an API call.

#

And it's only there for Bootstrap.

vestal glen
#

you can mark it as not relevant if you're sure.

#

github tells you about all vulnerabilites in your dependencies. It's up to you to review what your required actions to mitigate the vulnerability are.

proper saddle
#

It's just updating Jquery from the looks of it, not too hard. :U

whole quail
#

I wish even a quarter of my problems could be solved with so :/

topaz iron
#

:/

torn remnant
#

SSH tries to connect to server with password even after adding the pubkey to the server

#

How the hell do I fix this?

#

I think it might be the SSH client caching the login type?

hasty sail
#

maybe the ssh client can't find the private key from your machine?

graceful silo
#

Which client are you using? @torn remnant

torn remnant
#

Ubuntu Bash on WSL

#

It works for the other server though

solid horizon
#

how would i fix this?

#

im rendering 16384 cubes

halcyon sequoia
#

Some sort of culling probably

#

(If you cant see all of the cubes)

solid horizon
#

you can but not all the faces

#

lets try enabling culling

#

nope. it removes the top and bottom faces without decreasing render times

solid horizon
#

if anything it went up 5-10 ms

obsidian bluff
#

VBO's, culling, and making sure you don't specify vertices for faces you don't see.

#

I'm just praying you're not using immediate mode

solid horizon
#

immediate mode?

obsidian bluff
#

You using OGL?

solid horizon
#

yup

obsidian bluff
#

glBegin()

solid horizon
#

well opengl using OpenTK in C#

obsidian bluff
#

and glEnd()

#

Are immediate mode

solid horizon
#

then yes i guess

obsidian bluff
#

there's your issue

#

Basically what glBegin and glEnd do is they upload the vertex data from system memory to the GPU every frame

#

Not efficient at all

#

If you want to use openGL properly you should use Vertex Buffer Objects

#

They store the vertices of the object on the GPU itself

#

So you only have to call one function to draw your geometry

#

For static geometry that's great

solid horizon
#

well i dont have a GUI yet

obsidian bluff
#

Why were you drawing 16384 cubes?

solid horizon
#

i'm makign a minecraft clone

#

to learn rendering

obsidian bluff
#

I'm not familiar with openTK

#

but IIRC glVertex, glColor, glBegin and glEnd are all deprecated

#

Which basically means they may or may not be supported in future GPU's

solid horizon
#

true

#

GL.Begin is marked as deprecated

obsidian bluff
#

There you go

#

Uh well actually looks like that note is just referring to the argument type

#

'Use PrimitiveType overload instead'

#

So the library you're using may not consider glBegin deprecated

#

Just carry on what you're doing

solid horizon
obsidian bluff
#

Hmmm

#

Well it should work

#

But the performance you're seeing is to be expected

solid horizon
#

switching to PrimitiveType increased rendering time by 50 ms

obsidian bluff
#

Β―_(ツ)_/Β―

#

glBegin is horrible

#

Don't use it

#

but glBegin is the most basic

#

VBO's are harder to use

#

For beginners

#

^ that's a good reference

#

If you're starting out

#

Though they don't use C#

#

So you may encounter samples that don't make sense

solid horizon
#

wait whats this?

obsidian bluff
#

That's an array of floats

#

In this case it stores a 2d triangle

#

x1,y1,x2,y2,x3,y3

solid horizon
obsidian bluff
#

Yeah, that's immediate mode sadly

solid horizon
#

would it be possible to store all these in a single array?

obsidian bluff
#

Sure

solid horizon
#

uh that didnt quite work out the way i hoped XD

obsidian bluff
#

Ehm... honestly you might just want to stick with immediate mode for some time...

#

It's hard to explain

solid horizon
#

no?

#

{x1,y1,z1
x2,y2,z2}?

obsidian bluff
#

Your code needs to be completely restructured to use VBO's

#

It won't be that easy

#

If you were to use a VBO you'd first generate all the vertices in the world and upload them to the GPU all at once

solid horizon
#

wait hmmm

#

just rolled back my code

#

anything i could do here?

#

hm lemme try smth

obsidian bluff
#

Your performance won't get any better when you keep using immediate mode.

#

There's some very hard limits to what you can do with immediate mode

solid horizon
#

:/

obsidian bluff
#

It's part of the reason why minecraft splits up it's terrain into chunks.
It's so it can update only a single chunk and so it doesn't have to upload everything else as well

solid horizon
#

fair enough

#

though my terrain gen is split up in chunks to spread over threads

obsidian bluff
#

And another important thing that minecraft does is that it doesn't generate vertices for blocks that are partly obscured

solid horizon
#

i dont have any blocks underneath just yet

obsidian bluff
#

If you had for example a tower, instead of drawing a bunch of stacked boxes it would just draw a beam.

#

The sides of which would still be made of squares mind you.

#

It just wouldn't draw all of the squares that would be "inside" the tower of blocks

solid horizon
#

mhm

#

uh

obsidian bluff
#

That's what happens when you change the collection inside an iteration

#

You can't remove any elements from "bs" while in that foreach loop

solid horizon
#

i didnt change bs

obsidian bluff
#

Strange

solid horizon
#

bs is only defined right before the foreach loop

#

and only used in said loop

obsidian bluff
#

do you remove anything from bs inside that loop?

solid horizon
#

nope

#

oh wait wrong func

#

the function its calling is the same as this, but with double x = block.X; double y = block.Y; double z = block.Z; right above it

obsidian bluff
#

Have you considered doing something like renderCube(block.X,block.Y,block.Z);?

#

that way you don't need to have duplicates

#

so like

    renderCube(block.X,block.Y,block.Z);
}```
solid horizon
#

thats pretty much my old code

obsidian bluff
#

That error tells me something is getting deleted from your bs array somewhere

solid horizon
#

hold on lemme push to github

#

during runtime i only modify bsarr

#

sorry if some of it looks messy as hell

obsidian bluff
#

you're storing the blocks as a list and you then convert that list to an array using ToArray

#

I think that makes it convert the List<Block> bsarr variable to an array every frame

#

And then it throws that array away again

#

So......

#

that's not good

solid horizon
#

well i mean bsarr is being updated off-thread

obsidian bluff
#

Yes, but you're accessing it through List.ToArray()

#

"Copies the elements of the List<T> to a new array"

solid horizon
#

well idk

#

im kinda stuck

obsidian bluff
#

I'll see if I can get it to build

#

Don't think I have a C# environment setup atm

solid horizon
#

wait

#

do u have teamviewer?

#

we could work on there if you'd like

obsidian bluff
#

Oh that sounds like a good idea

solid horizon
#

ever used it?

obsidian bluff
#

yeah

solid horizon
#

ill dm you my id and pass

torn remnant
#
PHP probably costs the world countless unneccessary millions in server costs and helps to destroy the environment```
empty dune
#

lol

nocturne galleon
#

Anyone who knows python wants to help me out with my homework

#

I've done the actual coding part of my homework

#

Ping me if anyone decides to answer πŸ˜„

raven hatch
#

9 - functions?

timber violet
#

this is suprisingly hard...

#

1: sequence

#

5: round ??

nocturne galleon
#

exactually

#

I bet everyone in my class couldn't even get one

timber violet
#

7.comment

#
  1. switching? but.... it doesnt really fit the question because switch can have many more than two options
#

6.debug

cosmic pelican
#
  1. Debug
solid horizon
#

@timber violet im pretty sure its something like ExampleBoolean ? "hi" : "bye"

timber violet
#

thatas the terneary operator

#

at least thats its name in java

#

thats what i was thinking as well

#

i was using this site to help me a bit http://www.wordplays.com/crossword-helper

whole quail
#

How does a crossword puzzle even help

#

Maybe if the clues were better it'd make sense

#

It seems really forced

timber violet
#

yea well, thats school

red flare
#
  1. Down is actually selection
#

An if statement is a selection statement for example

#

@nocturne galleon

timber violet
#

i think thats all the answers then

proper saddle
#

Wut? Unity doesn't update from the client?! danRE

nocturne galleon
#

Thanks :)

proper saddle
#

Pro Tip: Don't install Unity via Visual Studio!

static wadi
#

i guess the next thing @nocturne galleon is learning is not to trust any input from a user πŸ˜›

nocturne galleon
#

Lol

#

Well it's what the teacher wanted us to do

proper saddle
#
try:
    #Code
except:
    #code
#

But that's kind of an advanced topic. :U

#

And it requires more resources than a regular conditional statement.

proper saddle
whole quail
#

Is a number a word?

#

Or is it more of a word if it fits into a word?

proper saddle
#

It can be spell, so it's a word.

#

:U

solid horizon
#

@proper saddle i agree with the unity thing

proper saddle
small escarp
#

@whole quail in windows32 parlance, a number can be of many types, but a word is always unsigned 16bit int

#

in cpus, word is the natural unit of size for data

#

nowadays, 32 or 64 bits

whole quail
#

@small escarp I know

small escarp
#

πŸ˜ƒ

whole quail
#

That was the joke

#

That is a number more of a word than a word if it can fit in a word

small escarp
#

oh

whole quail
#

Since he said "Five word horror story" and counted "3" as a word

#

Which obviously fits into a word

small escarp
#

I hadn't seen the previous message xD

whole quail
#

But seriously

#

Is "3" a word

#

It's a character but that doesn't mean it can't be a word, eg "I" or "a"

small escarp
#

more interestingly, is 12435 a word?

#

or is it 6 words

whole quail
#

Well it fits in a word

#

And twelve thousand four hundred and thirty five is 7 words or 6?

small escarp
#

missed the and

whole quail
#

Do you need the and?

#

Important questions here

#

Very relevant to development

small escarp
#

yes

#

it's in the client's requirements

#

must get this right or no pay

whole quail
#

Really everything is relevant to development if you think about it long enough

nocturne galleon
#

Lol

#

I was right

#

Only person in my class who was even able to do the homework on python

red flare
#

You mean only person in the class that could ask someone else to do the homework? Lol jk

whole quail
#

lel

nocturne galleon
#

@fierce quest Whe nwill there be a beta/

#

?

solid kayak
#

ever had that happen to you guys ?
have an idea, make it work, be happy that you made it work
but then realise how bad whatever you used to make it is for the job ?

#

cus thats how I feel right now

#

but its completly unusable due to excel having to load about 1000 graphs and do the math

static kayak
#

Wtf is that

proper saddle
#

I forgot to delete the file when doing npm install..

#

Nevermind, that didn't fix it either. ;-;

ionic hull
#

Does anyone know how to proxy ip in nginx

empty dune
#

Do you mean nginx be the handler of request to a backend apache or similar server?

glossy blaze
#

Hey does anyone know anything about the noteblockAPI for bukkit minecraft?

nocturne galleon
#

Hola

#

got a python question

#

I'm making a theoretical database like kinda an AI kinda thing

#

and my friend this this thing where the user can create a new local account for the theoretical database

#

and they typed in there user password and stuff like that

#

and it would save as a text file in the same folder as the python

#

and when they restarted typed existing

#

and typed the user and pass they created

#

it would work

#

He gave me a clue

#

f = open or f = create

untold pilot
#

uh

nocturne galleon
#

@untold pilot

#

This is what I need to know

ionic hull
#

@empty dune thanks for the interest, already got it

empty dune
#

Noice

untold pilot
#

eggs

#

d

nocturne galleon
#

Heyeyeyey I need help in Unity

#

I have a mesh of a character I want to upload into VR chat

#

Everything is fine

#

except the character is nude under the clotches

#

I can edit the textures no problem but does unity have an integrated mesh editor? I'd like to just edit the model but I can't figure out how without having to reimport it into unity

#

(if not then Ill scrap it and get something safe to upload)

#

OK nevermind, found a plugin that might do the job

torn remnant
#

What have I just seen?

ionic hull
#

What is redis

leaden tangle
ionic hull
#

Ohh

#

Wtf

timid widget
#

tfw gotta learn how to do async FIFO in js kek

magic kelp
#

async-await or bust my friend

#

it truly will change your life

hybrid wolf
#

Guys, I wanted to ask that what language should I learn for game development? C# or Java

graceful silo
#

Of the two, C#

hybrid wolf
#

okay, thanks

torn remnant
#

C++ or C#, in that order of priority, though C++ is harder

hybrid wolf
#

oh!

timid widget
hybrid wolf
#

well how big is this game? its been too long since i left it for downloading

little knoll
ionic hull
#

How did fornite get so big

#

It is so shit

gritty rain
#

Is octets French for Bytes

vestal glen
#

sometimes

#

more specifically an octet is always 8 bits

#

while a byte isn't always.

whole quail
#

^

#

A byte will be 8 bits almost always

#

But it's important to remember that it's not always the case

little knoll
#

Octet > Bytes
Bits > Bits

#

Then you just have to make sure that you are looking at MB (megabytes) or Mb (Megabit). A lot of french ISP tell Internet speed in Mbps/Gbps, I've heard some people complaining about not having this speed when they download something (Like 12MB/s (or 12Mo/s) instead of 100Mbps) because they didn't understand the difference between both and because most of softwares gives a MB/s speed instead of Mbps speed.

proper saddle
#

I've been learning ReactJS, fun stuff. :V

graceful silo
#

Anyone have some solid resources for learning C# and .NET?

graceful silo
obsidian bluff
#

Same with hard drive sizes

#

Uwotm8 why don't I get 2TB when I buy a 2TB disk!? Must be formatting lol

#

Turns out windows displays TiB instead of TB

#

I've seen people leaving bad reviews on a drive being like: "You shouldn't buy large drives because you lose more storage."

#

or: "Where's the 60GB you promised me!? I only got X!"

idle musk
#

Let the clowns have their small drives, leave the bigger ones for the rest of us.

obsidian bluff
#

When people expect to get 500 Megabytes per second lol

#

Why am I only getting 62.5!?!?!?! that's BS!

idle musk
#

I'd love that, in need of some serious network card tuning at home.... Or just Linus the damn thing and 10GBe and be done with it.

obsidian bluff
#

What do you think of my home internet connection πŸ€” ?

idle musk
#

Yeah the best I managed at home was 270/65 or so.

obsidian bluff
#

My speedtest is basically the meme image.
"guys want only one thing and it's disgusting"

idle musk
#

My plan is a 100/40 VDSL, I don't get close to that download. Getting a solid 60Mbps though, so it's still better than 90% of the country I suppose

obsidian bluff
#

That sounds pretty decent

idle musk
#

I managed to pull just shy of 10TB down for a month and it was still very much usable the whole time XD

obsidian bluff
#

Yeah no data caps here either

idle musk
#

I wanted to see if it was truly 'unlimited'

obsidian bluff
#

Getting off-topic

idle musk
#

Just a tad

obsidian bluff
#

That's actually really low because I don't seed that often

idle musk
#

Dayum

obsidian bluff
#

Every few days I'll seed 200GB in a day

#

Most I ever seeded in a day was 800GB

idle musk
#

I was seeding some work backups, uploaded 1.5TB a week or so it seemed for 3 weeks

obsidian bluff
#

When I first got my internet I asked a friend if I could try to boot him

#

He's still on VDSL

#

Apparently he got the yellow triangle next to his network adapter

#

☠

rocky hamlet
#

anyone familiar with physics collisions here?

proper saddle
#

@graceful silo Team Treehouse? But that's not free... :/

#

There's Microsoft Virtual Academy, but that'll only teach you the basics.

whole quail
#

lol my internet is really good when it's working

#

90Mbps

#

In NZ

#

Rurally

#

Wirelessly

#

And I have 99,350mΒ² wifi coverage at my property

#

Upload I can never actually measure accurately

#

But it's good enough

raven hatch
#

ugh i wish i still lived in new zealand, the internet is so much better than uk internet

swift niche
#

Does anyone know of libraries for C, C++, or Python that handle reading and parsing webpages? I'm trying to read stuff from Ars Technica with their API and have the program understand what the article says

#

almost like a neural network

whole quail
#

List of things you don't need a nueral network for: Almost everything including that

#

Just find keywords in the data and do some matching

swift niche
#

I'm trying to have this program read articles about companies with stocks or cryptocurrencies, then use those articles to plot why something may have gone up or down in price

#

So if an article says "crash" and "rise" in it, I don't want it to misread the article's "meaning"

whole quail
#

You're gonna need a lot of resources to get any meaningful results

#

And if you have the resources to do it you should already know how to do it

#

It's not something you can just do without a lot of resources

#

Try a smaller project first

swift niche
#

lol was hoping someone had built a library I utilize

#

thanks for the info! I guess I'll figure something else out

whole quail
#

Even if there's a library to help, it's not going to do any good for you

ionic hull
#

Just do some data matching with words

#

Scrape a lot of websites, and get the latest stock

#

Once you have a lot of data you can start thinking about neural networks

small escarp
#

beautifulsoup is a python scraper, but from that to "AI that reads an article and figures out the meaning" there's a hundred years of research

#

for the latter, if you don't already have some very strong ideas about how to go about it, the project is way too big

swift niche
#

I fuess the most I really need is to be able to read and understand the article's title

#

because something that says "Bitcoin on the rise again after the crash" would need to be read as a "positive", while "Bitcoin crashes after recent rise" would need to be read as "negative"

#

so I'm looking for something that can do that

#

@small escarp I'm planning on using beautifulsoup for sites that don't have API's, it's damn amazing

#

@ionic hull I can probably pull every article I'd need from Yahoo Finance, Ars Technica, and maybe even Robinhood, I just gotta parse it πŸ˜†

whole quail
#

I 110% agree with @small escarp

#

You can just do some keyword stuff to get most of what you want

#

But doing it with AI is really difficult if you don't already know how to do it

nocturne galleon
#

my internet so frustrating because my server slot gets 10gbps (more like 2gbps though realistically) and my home connection to ftp from it is only 50/12 mbps

swift niche
#

@small escarp @whole quail know of any particularly good keyword search libraries in C, C++, or Python? I don't mind writing my own, but it's definitely preferable to have something already out there that I can modify

#

@nocturne galleon are you using ethernet on both ends? This is probably a question for the Networking chat lol

solid horizon
#

@nocturne galleon you sure your home connection is equally fast though? you can only transfer at the lowest speed limit of the 2

nocturne galleon
#

yeah thats what i mean my home internet is 50/12 and my server slot is 10000/10000

#

so server normally downloads a big file at around 250MB/s and my home internet maxes out at 5MB/s

#

anyway sorry for typing in wrong subdiscord

proper saddle
obsidian bluff
#

subdiscord

#

I think it's called a channel

whole quail
#

@swift niche no just make your own

#

You can't just use a library for everything

winged zodiac
#

Anyone know of decent css grid code to do a 2x2 or 4x4

calm oriole
#

@winged zodiac Try looking for Flexbox Grid

zinc briar
#

hi guys, this isn t really dev but how do you delete a nagios user on debian?

empty dune
#

Is it a nagios user or a linux user?

zinc briar
#

nagios

#

i created it without the -c in the command

empty dune
#

did you use htpasswd to create the user then?

zinc briar
#

yep

empty dune
#

htpasswd -D <user> <password file>

#

oops

#

htpasswd -D <passwd file> <user>

zinc briar
#

so i need to find the file ? πŸ€”

empty dune
#

check /usr/local/nagios/etc/htpasswd.users

zinc briar
#

hm nothing in /usr/local that looks like nagios

#

i find it

empty dune
#

try /usr/local/

zinc briar
#

i checkec there is no nagios file

#

there is a htpasswd.users in /etc/nagios3/

empty dune
#

cat that file and see if there are users in there.

zinc briar
#

yep it's in it

#

thanks

#

noice

empty dune
#

okie

zinc briar
#

...

#

i m stupid

#

i created it with the passwd file in the command so it was obviously where i put it -_-

empty dune
#

I was just about to ask what you used in the htpasswd command

#

but you had already found it

zinc briar
#

so i have another problem

#

i can't reload nagios3 and the service won't start when i start debian

#

it tells me to checkl journalctl -xn or systemctl status nagios3.service and when i do i can see "failed to start LSB: nagios host/service/network monitorinf and management system"

#

but i found nothing with this and i don't know what to do

calm oriole
#

@zinc briar if you still can't start it try nagios -v /etc/nagios.cfg (correct the path if needed .. just a guess)

#

This should check your configs and report errors

zinc briar
#

doesn't work

#

error processing main config file

calm oriole
#

Normally it should report the line number er element that's wrong

zinc briar
#

it says cannot open the file for reading so nothing

calm oriole
#

Then check the path for the config file .. could also be like /etc/nagios3/nagios.cfg

zinc briar
#

now it says there is "invalid object definition type 'hostgroups' in file <path>/hostgroups_nagios2.cfg which is a file created by the system

#

so it indicates the line but i can't see what's wrong

empty dune
#

check brackets and stuff for the group that is in and around the line that throws the error

#

I don't know if there are brackets. I am just guessing.

zinc briar
#

i removed a "s" at hostgroups and it's okay but still can't load nagios

#

ow

#

it looks like it may work

#

oh damn it works YES

#

thank you @empty dune @calm oriole

calm oriole
#

Nice πŸ˜‰

empty dune
#

\o/ πŸ˜ƒ

zinc briar
#

i was about to kill myself it was so much destroying my nuts

proper saddle
empty dune
#

lul

timber violet
#

I've gotten points off on projects for putting braces on the same line

#

Honestly I prefer same line, but I don't get mad about newline

empty dune
#

I also prefer same line {

#

A lot of people prefer \n{

graceful silo
#
{
    kill(programmer);
}
else {
    reward(programmer);
}```
Or even better
```if (programmer.isBad()
    kill(programmer);
else
    reward(programmer);```
small escarp
#

when I started out, I preferred same line

#

but I always ended up adding an extra blank line in functions (not in ifs) [if I remember correctly it was to make documentation comments at the top of the function more easily readable]

fresh dune
#

The reality is it's personal preference it makes zero difference to the compiler

graceful silo
#

Next line is such a waste of space

small escarp
#

so eventually I said fuck it and filled the extra blank line with the brace

#

so new line for functions and classes (and documentable things), same line for everything else πŸ˜ƒ

#

in any case, I have no issues with brace positioning

#

but please use braces.... always

timber violet
#

I always put documentation above the function

small escarp
#

those dangling ifs always end up in freaking bugs when someone adds an extra line

#

and forgets to include the new braces

graceful silo
#

I only use braces when needed.

small escarp
#

yes, I typically use doc before function, but some languages prefer it the other wway around

#

gotta follow those guidelines

graceful silo
#

Why waste space and time doing

    System.out.println("Cats are better than dogs.");
}```
when you could just do
```if (cats < dogs)
    System.out.println("Incorrect.");```
#

Sure it's only one line (or two if you're bad), but it can add up

timber violet
#

Copy and pasting is a bit easier with brackets

#

I hate trying to copy python code, it always messes up

small escarp
#

because this

if (cats < dogs)
  System.out.println("Incorrect.")

then becomes (a thousand commits later)

if (cats < dogs)
  System.out.println("Incorrect.")
  throw new Exception("False premise!!! Catz are equal to D0GS!!")

and everything catches fire when production starts raising a fucking exception which shouldn't be raised xP

graceful silo
#

Well, certainly one issue you'll run into is the missing semicolons lol

small escarp
#

oops

#

πŸ˜ƒ

#

it's J-- [semicolon edition], my own version of Java

graceful silo
#

If you need more than one line in the statement, then slap some brackety bois on there, otherwise, meh

timber violet
#

That's fair,

graceful silo
#

Everyone has their own preferences

#

My preference is the absence of any and all comments kappa

small escarp
#

yeah, everyone needs to adapt to the team's guideline

#

and everything will be fine

graceful silo
#

The less I comment, the bigger of a fuck you I say to anyone trying to read my code xD

timber violet
#

I did something similar to my teachers... I would try to fit as much as I could into one line

#

Crazy lambdas and stuff

graceful silo
#

Write every program on one line

timber violet
#

Exactly

graceful silo
#

the best one-liner

small escarp
#

write very bad Java and add a note at the end which reads "It's in Whitespace, the programming language"

proper saddle
#
var a = (programmer.isBad()) ? kill(programmer) : reward(programmer);
a;
graceful silo
#

That works too. Probably could skip the parenthesis around programmer.isBad()

proper saddle
#

It makes it more readable IMO.

small escarp
#

you have a type inference error

#

kill will return a Corpse, but reward will return a Money

proper saddle
#
return (programmer.isBad()) ? kill(programmer) : reward(programmer);
#
Console.WriteLine((programmer.isBad()) ? kill(programmer) : reward(programmer));
winged zodiac
#

.

scarlet storm
#

Not 100% sure if this is the right place to ask, but is anyone here experienced in autohotkey scripting?

little knoll
#

Tarran"s macro keyboards strockes at distance

proper saddle
#
Whitespaceβ„’
Whitespace uses only whitespace characters (space, tab, and return), ignoring all other characters. This is the reverse of many traditional languages, which do not distinguish between different whitespace characters, treating tab and space the same. It also allows Whitespace programs to be hidden in the source code of programs in languages like C.
zinc briar
#

Hi, how can we see line per line with the command && ls on debian? cause i'm looking for something (i don't know the exact name of the file) but there are so much files that i can't see all of them

#

i mean, i see only the end of the list because i can't go up to see other out-of screen stuff

little knoll
#

You mean a command that is like *something* && ls ?

zinc briar
#

i mean whatever it's okay

little knoll
#

You could test for filenames that could be the one you search

#

Or just use ls | more to be able to scroll to a next page with spacebar

winged zodiac
#

Can somebody plz help me Im trying to make a galerry but I cant get one working

little knoll
#

What language/framework ?

winged zodiac
#

html/css NO CSS-GRID

ionic hull
#

Use bootstrap

open harbor
#

Does anyone here have experience using g_mass_storage on linux?

#

I'm trying to use a pi zero to create a virtual USB using g_mass_storage

#

that's alright

#

but having issues mounting it inside of pi

#

like I can mount it, but it doesn't correlate to what's on the 'USB'

small escarp
#

how did you copy the contents into the virtual drive?

royal sonnet
#

Could anyone help me with a Python project i have been working on for a while. Dm me if you can please!

latent perch
#

how can I remove an item in an array, not just make it null or empty (in JS)

small escarp
#

splice

#

@royal sonnet do tell what it is about

royal sonnet
#

@small escarp Thanks, i think i figured out what i need to do now

nocturne tusk
#

Let's say that I have html table that has 8 table headers. How would you guys show the table on mobile devices? Because it's not going to look good on mobile devices with the table full width. Or should I try to find another solution to show content of the big table

dawn geyser
#

im going to assume you want it readable ? :p

nocturne tusk
#

yes, that's correct

dawn geyser
#

it would depend on the data you want to show, depends on how you could transform it i guess

#

multiple tabs for each column would work

#

if its 1 row of data, you could just make it like a list

#

however im guessing its not that

nocturne tusk
#

Yeah, it has multiple rows (fetched from mysql database)

dawn geyser
#

on the other hand, even on a mobile device, people can still scroll πŸ˜ƒ

#

i personally dont mind scrolling across a table of data like that on a call phone

#

cell *

nocturne tusk
#

if I don't find any other good solutions I'm going to make it so that user has to scroll the table

dawn geyser
#

another option, again its all based on use case, you could remove columns of "non required" data the smaller the page gets

#

as an example, you might have Firstname|Lastname|Email|Telephone|Address but you can remove some of the columns and show only the most required data

#

with an option to expand and make it scrollable

nocturne tusk
#

the table has user information:

ID|Firstname|Lastname|Email|Username|Telephone|User creation date| buttons for deleting and changing user information

That's a good point, I could in theory leave out some cells.

dawn geyser
#

if thats the case, then my recommendation (based on it sounds like an admin section for a site)

#

would be to reduce the number of columns, and make them clickable to take you to a user information page with your buttons

nocturne tusk
#

I didn't think about that but I believe that your suggestion might be the best solution. I will reduce the number of columns and make the rows clickable (and when the row is clicked then forward to user information page). Thanks a lot! (and yeah it is admin section for a site)

dawn geyser
#

no worries, im sure there are plenty of other solutions also, its just what works best / is easily doable for yourself. That would just be what i personally would do for a similar use case.

small escarp
#

also, swipe to delete/edit/more details is a common interface in mobile

nocturne tusk
#

@small escarp should I then use javascript to listen for swiping?

small escarp
#

it all depends on the complexity you're willing to go with for this particular project

#

(and yes, you would use javascript, usually a gesture library)

dawn geyser
#

i like that idea myself too

#

it does like dave said depend on complexity / time restrictions / known how etc to determine how much effort you want to put in

#

where i work we have some tight deadlines so i dont get the benefit sometimes of doing things how i would like, and just get it functional and working πŸ˜ƒ

#

im also not a FE development, im more of a BE / DB person

nocturne tusk
#

I'm not very familiar with JavaScript gesture libraries. Let's say that I would like to have delete option when swiping from right to left and edit option when swiping from left to right. What would be good JavaScript gesture library that I could take a look at? Time isn't big problem because this is a school project and we have plenty of time left

vestal glen
nocturne tusk
#

Thanks I will take look at those two options!

small escarp
#

@nocturne tusk vanilla.js is an community joke to say "just javascript"

vestal glen
#

(and raw DOM APIs, yes)

small escarp
#

in the sense that people use too many frameworks to solve simple problems