#development
1 messages · Page 71 of 1
I think its something to do with how python is reading the type0 variable
You can see I tried printing out what value type0 is and it says what its supposed to say
if it says "M" itll still add
although the add if statment has no "M"
@last lance its a good idea to store the options you present in your menu, as an array
and then iterating over those, finding a match
but let me first pull your code into a file, so I can test it
@last lance the reason it only sums, and doesnt do any of the other operations
has to do with an error on line 14
you are assigning the input to type but you are evaluating type0
though the substring does work..
ahh I see your mistake
But then I set type0 to be type but remove every character besides the first
Yeah, but what you do is you are comparingh type0 to 1
and then you put an or
with just a value
you'd have to do:
type0 == '1' or type0 == 'A'
that if statement will return true, even if its not a boolean, but a value.
as shown here ^
So instead of if if type0 == '1' or 'A' or 'a' or '+': Could i do if type0 == '1, A, a, +':
So how would I do it?
you could declare a list of options for say.. add
add = {'A', '1', '+'}
and then do: if type0 in add:
That makes so much sense
@last lance even sexier solution would be to have a function which resolves another function
so you have a get_operation(input)
which returns a function that accepts two values
I am just taking a python course now I don't understand
but my python knowledge is serviceable at best
Or could I do if type0 in '1, A, a, +':
So if type0 in {1, A, a, +}:
yeah, but they are strings, so you need quotes around them
if type0 in {'1', 'A', '+'}
@last lance what I ment with function pointers
you can do stuff like this ^
Oh yeah kinda like sending back data to functions in lua
lambdas yeah
functions without a name
you can pass them around, so if you have a get_operation()
@last lance its powerful stuff
Thats pretty neat
like I said, there's far too many if's in your code :)
So I could just have one fuction do my entire thing
yeah, that whole block of if's is a lot of code, very unreadable
and hard to modify if you want to add more features
this way, its a bit more elegant
and elegant solutions are usually the best ones ;)
Thats cool
@last lance this is also why python so popular with mathematicians
because you can easily describe a pure function
lambda x, y, z: <some pure function>
Yeah python seems to be popular in general meaning you can do pretty much everything with it
but as a word of wisdom
when you find yourself doing this kind of repetative code ^
take a step back, and think about how you might go about simplifying your logic
because this if block, is a compound question and answer
it asks what the user selected, and then also has to do your calculation
these are two different things, that should be in seperate bits of code
So instead I could use code to convert your string into a simple value and then another code block that does the operation based on that simple value
being able to use code and make basic algorithms to convert inputs to more understandable values
many languages lack this kind of construct
I know java doesn't have it ;)
in java you have to do somestring.substring(0, 1)
but its not built into the language
C# does have indexers I believe
It seems to me that python is replacing lua slowly in the few places its used
nah
lua has its own niche use
its often used a scripting language to extend another system
What are the advantages of lua
since lua can be sandboxed in pretty much every other language
python is its own instance
I've used this before; https://github.com/luaj/luaj
Its a lua interpreter than runs in a java virtual machine
same way roblox would allow a user to extend functionality
they just sandbox this
and the functions that you can call inside the lua sandbox, call functions in the actual game itself
the calculator works
@last lance I guess if you really wanted to: https://i.imgur.com/vNinhBJ.png
this exists xD
Jython, a Python interpreter written in java
lol
I've done something like this for business software before
but not with python, but javascript in java
monitoring daemon that had to use java libraries, but be scriptable.
The Da Vinci Machine, also called the Multi Language Virtual Machine, was a Sun Microsystems project aiming to prototype the extension of the Java Virtual Machine (JVM) to add support for dynamic languages.
It was already possible to run dynamic languages on top of the JVM, but the goal is to ease new dynamic language implementations and increas...
but polyglots interest me more
what
You can make frankenstein's monster with this ^
its a polyglot engine, that allows a program to exist out of many different languages
So you could have an app a bit like how websites have frontends and backends made out of different launguages
GraalVM isnt exactly practical
but it would allow you to call python code from another program written in a different language
you can do this, without graalvm
but you have to use some other kind of interface
so it could just be used like a bodge lol
exactly
this is one of the toys, I wanted to explore at some point in the future
I already wrote code in over a dozen different languages
dude i can barley right code in one
once you can code in one language
you can code in all of them
just have to learn the specifics
yeah coding is mostly just having the skills to think "how do i do this' and you never think about the launguage specific commands when doing that
yeah, you think about what your program is doing, in a logical sense
the two most common ways to approach this
either imperative/procedural, or functional
procedural, is where you step through the program line by line
and functional, is where you describe a function that you pass around
the get_operation() bit we did, that's an example of functional programming
where instead of a value, we pass a function
Programming paradigms are a way to classify programming languages based on their features. Languages can be classified into multiple paradigms.
Some paradigms are concerned mainly with implications for the execution model of the language, such as allowing side effects, or whether the sequence of operations is defined by the execution model. Oth...
It's nice how efficient languages and how fast computers are right now so it doesn't really matter for most things to put much effort into optimization.
HAI 1.2
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE
best programming language in the world ^
😹
I'm more of a minecraft datapack guy myself
@nocturne galleon https://www.emojicode.org/
Emojicode is a full-blown programming language consisting of emojis.
This can't be serious
I hate it
I hate it
Its disgusting
why would you want that
thats stupid
and dumb
I love it
just.
take a moment to look at the sourcecode.
O RLY? YA RLY
that's if: then
lol code?
Seems, really easy to code on tho
I HAS A len ITZ I IZ STRING'Z LEN YR header MKAY
this declares a string len
instead of a ;
you just write MKAY
BTW denotes a comment
like # this is a comment in python
I made a emoji keyboard for emojicode.
With high quality tangarine switches
and a all gold metal frame
for max emojicode performance
👏
Another programming language ^
the preparation procedure, with the bowl and such, pushes and reads value from a stack
the mixing bowl is analagous to memory
People: "It doesn't matter what coding language you learn"
Me:
well. esolangs are a mix of meme and art
most well known esolang is still https://en.wikipedia.org/wiki/Brainfuck
Brainfuck is an esoteric programming language created in 1993 by Urban Müller.Notable for its extreme minimalism, the language consists of only eight simple commands and an instruction pointer. While it is fully Turing complete, it is not intended for practical use, but to challenge and amuse programmers. Brainfuck simply requires one to break ...
entire programming language uses only 8 symbols
only language I know to be worse than that...
whitespace.
Whitespace is an esoteric programming language developed by Edwin Brady and Chris Morris at the University of Durham (also developers of the Kaya and Idris programming languages). It was released on 1 April 2003 (April Fool's Day). Its name is a reference to whitespace characters. Unlike most programming languages, which ignore or assign little ...
Its a programming language using only tabs and spaces
A coding launguage that works by using your voice
you gotta use your voice to imitate sounds that it converts into code
but like instead of saying "Print hello world" you gotta screeam a random type of beeps and boops
Woah
@umbral saffron you never watched Wargames?
'tis a classic
whitespace seems really easy to write a 'compiler' for
idk what the right would would be, but to convert some keywords into the space, tabs, and LF's required
@peak acorn writing a compiler is a bit more involved than that ;)
Lexer -> Parser -> Tokenizer -> Transformation -> Output
this is really what source code looks like to your compiler ^
I had to make my own CSS dialect in university
worked along similair lines
I just mean like converting some keywords into whitespace commands
yeah I know a legit compiler is more I dunno what the right word would be for what I said
If you use a compiler backend, the hardest part of it is probably the lexing and parsing, especially in complex languages like C++
My school has a compilers course but I dont think ill end up taking it
Parsing C++ grammar is so complex that it's actually an unsolvable problem. You can map C++ parsing to the Post Correspondance Problem, which is equivalent to the halting problem
I would love to take it honestly
Some of the most interesting parts are the optimization and resource selection
I would like to as well but i have a busy schedule
unless I can find some class to take during summer and then fit compilers in over the normal semesters
Yeah. . . The only time compilers will be had while im in school is when i'm taking Networking, Algorithms, Mobile app dev, "introduction to usability", and "computing ethics"
tbf its possible I can just fit that in and it will be okay since so far all my CS courses havent been hard at all
What about Malbolge?
Malbolge looks pretty odd
LOLCODE is an esoteric programming language inspired by lolspeak, the language expressed in examples of the lolcat Internet meme. The language was created in 2007 by Adam Lindsay, researcher at the Computing Department of Lancaster University.The language is not clearly defined in terms of operator priorities and correct syntax, but several func...
I am losing my mind with IntelliJ
writing SQL. trying to run it on my mssql instance.
but when I go to run, it only lists mysql databases...
such bs.
gotta love intellij
yeah I just dont get it
I just want to run this sql file
on a database
@hollow basalt only when I delete my existing mysql instances
THEN. it gives me the option to select an open console
Paid off by Big SQL
hey what's up? So I want to clear my text from the combobox when I click a button but so far nothing works. I just want the combobox to become empty
@warm sleet
it's 1am, jeez
i know xd I am up all night
hope I didn't wake someone up, I mean you have different time zones so idk
it's 1am for him
well it was 1.47 am for me when I posted it but thought it was earlier for him,hope I didn't wake him up. But like it's just a notification unless he set his notification sound to be a nuclear alarm I think it's fine and I didin't 😄
no I don't
@tired juniper comboboxes have a predefined list of choices that are in ComboListBox.Items
the item that is currently selected will be in ComboListBox.Value
if you set this to null, pretty sure it would unselect the item
@tired juniper and no worries about timezone. I'd read the message when I get on
my phone is on mute between 8pm and 9am
Thanks
what are some tehniques to draw polygons?
in any language, but preferably ti basic
the most simple way i know is to use vertex arrays and shaders
but thats an opengl concept
i can only use flat shading
i plan to implement this onto a ti 84 plus ce, and then work my way down to a ti 83
this org has a ton of stuff for programming CE calcs
apparently in that github there is a library for graphics
yeah, i just wanted to give an overview of the entire toolchain
Is anyone else having an issue with Google V3 Recapture atm? All my sites that use it are not working.
@dreamy iron there's been a massive datacenter fire
couple thousand sites are down
though I think that is unrelated
not a google datacenter at least
My sites are not down thankfully, but the actual recapture for any of them using my tokens are not working at all. However nothing has changed 'visibly' on my side.
I see they do mention google cloud as being one of the effected parties. So I suppose that is it then.
Ah nvm I read that incorrectly they said they big three are not effected.
@dreamy iron OVH is a major hoster, though I think google has too much self-esteem to outsource their services
Anyone have that LTT tutorial on how to make raspberry pi video cameras with networked HDD by chance?
@astral garnet usually you'd put some kind of streaming mechanism in place
raspberry pi has a stream host that you can connect to for a camera feed
Oh yes?
you'd then have another machine as the surveilance server
which can tap into the stream
I think the one I saw just sends videos to a server then you can remote into the server
@astral garnet its the other way around usually
camera provides a url endpoint where you can view the stream
your recording service would use this url to capture the stream and store it to disk
you could do it all on the pi itself
there's multiple ways you can do this...
in my scenario, its all RTSP
The Real Time Streaming Protocol (RTSP) is a network control protocol designed for use in entertainment and communications systems to control streaming media servers. The protocol is used for establishing and controlling media sessions between endpoints. Clients of media servers issue VHS-style commands, such as play, record and pause, to facili...
and those URL's look like so: rtsp://user:password@192.168.77.4:554/h264Preview_01_main
IP Camera Using the Raspberry Pi Zero (Home Surveillance Part 1): This is the first post in a new mini-series, where we build a home surveillance system, mainly using Raspberry Pis. In this post, we use a Raspberry PI zero and create an IP camera that streams video over RTSP. The output video is of a much higher q…
There are quite a few blogposts out there, that demonstrate this
I have off-the-shelf IP cameras, but a pi wouldnt be any different. You just have to configure it yourself
is it this that you're trying to find?
https://www.youtube.com/watch?v=H7p5YEOrlSc
Head to https://www.kovespeakers.com/linustech and use offer code linustech to get 65% off the Kove Commuter bluetooth speaker!
Sign up for Private Internet Access VPN at https://www.privateinternetaccess.com/pages/linus-tech-tips/linus1
Say goodbye to expensive Nest Cam subscriptions with your own DIY WiFi security cameras.
How To Guide: htt...
Yes!
any off the shelf ipcamera would do
most of them use either RTSP or HTTP
look what just happened yesterday
as long as they aren't cloud connected
big company got hacked
Yeah I have two nest cameras atm
I have cheapo RCL420's
from Reolink
those are total crap, but their image quality is good
neat? or nest?
Nest
if they are nest, I would get rid of them
nest is free backdoor
Yeah that’s why I’m looking for the tutorial
honestly most IP cam would work, just don't connect it to the internet
I have them on a completely isolated subnet and vlan
Yeah I want to send the video to a server then port into the server
@astral garnet you need some kind of surveilance server program
MotionEye or Zoneminder are examples
A full-featured, open source, state-of-the-art video surveillance software system.
I think motion eye I was looking at
I had bad luck with motioneye
not sure, I tried that one out first
eventually settled for zoneminder
if you use h264, you have the benefit of camera-passthrough. Saving you a bunch of CPU
since you can stream h264 directly to disk, without any encoding
@midnight wind this camera hack will be one of many
with all the smart devices people are hauling into their homes
can't wait till they hack the smart toilet
Kk thanks. Imma try and goto micro center today
Hey @warm sleet does that software work in rasOS?
rasOS?
what's that
raspberry pi os?
Raspbian
Si
raspberry pi os is just modified debian
they renamed it
^
Ok so short answer is YES!
@astral garnet yes
Thanks!
if you can get it on debian, someone probably ported it to arm for raspbian
Streaming endpoints with a camera on the pi
I think you can do with v4l2
Video4Linux (V4L for short) is a collection of device drivers and an API for supporting realtime video capture on Linux systems. It supports many USB webcams, TV tuners, and related devices, standardizing their output, so programmers can easily add video support to their applications. MythTV, tvtime and Tvheadend are typical applications that us...
Kk imma try and pick up a small monitor/the new raspberry pi 4 and an ssd tonight
I have a Linux desktop but eh
v4l can output over various stream types
V4L2 captures from the hardware
This program ^ can use V4L2 to expose an RTSP interface
Think 4gb of ram is enough or go 8?
you don't need that much memory 4GB would be enough
considering, people have done this on the pi zero
which has only 512M
Ok lol
@astral garnet that link I posted
even has a section: https://i.imgur.com/ZxNggiY.png
bcm2835 is the chipset driver for the cpu
Broadcom
I may just get the 2GB kit then
you don't even need a moniter to setup a pi
just set it up headless
via ssh
^
if you add an empty file named ssh into the boot directory on the sd card
the pi should automatically spin up and openssh server
then its just a matter of ssh pi@<ip>
Is there a way to get the ip of a pi without getting to its display
yeah
check your dhcp server
which is your router
usually
Ok well i can't do that lol I'm in college
have your own router
I would not be able to stand that
raspberrypi.local
.local for mdns
maybe that would work
I think that's how it works
you can configure a static IP on the pi
using the commandline.txt
if you then configure a static IP on your laptop, and plug in a network cable
you should be able to reach the pi
or even better: set up LAN bridging
I only got 1 nic in my pc i cant do bridging
yeah it worked thanks.
i have a question about my graphics driver but I am gonna post it in the appropriate forum
good,that way you won't be woken up by random notifications
by the way I tried what you said with the combobox with null but that didn't work for some reason it worked with comboboxname.Text=" " for some reason when I was editing my combobox template because I didn't like how it looked so I redesigned it but I think I might have accidentally made a hybrid between a combobox and a textbox because you can still use it as a combobox but it has a text property and also I set the selections in code with the changeselection event for the combobox where I write if that is selected if(combobox.Items.SelectedItem==that){combobox.Text=that} it doesn't work if I just select them. Weird but it looks better and works fine if I use it a bit differently xD
@tired juniper the right way to add custom behavior to that would be through extension
if you extend the combobox with your own functionality
if you glue outside behavior to it, at some point it becomes a hell to program around
well yeah but that was like the finishing element and now my program is done and works
so it's fine
I wouldn't do that for a big program though with a lot of code and a lot of comboboxes because it will definitely be a nightmare
I didn't do it on purpose even I just found a way to change the design by digging through every possible template that might have any connection to it and changing color properties and other design things(mainly colors) and didn't realize I might have made a hybrid xD
also I found out that if I just change the templates nothing happened but if I click apply resource(from the right click context menu on the combobox) and I choose some other template rather than the default it changes the design to exactly how I want it to be-looks like a textbox with an arrow that expands like a combobox
oh poor vscode
I get similar errors with this set of macros in a C library
constantly complains about a missing ) paren
vscode wants you to stop
just use notepad smh
like a true programmer
Can someone please explain to me why this seems to not work, I have a code which is in PHP and should simply add a bunch of numbers together to get different groups of numbers. However when run, this generates the correct numbers only for the first groups and its max, then it just goes whacky. I cant figure out why, this should be a simple bit of code but I just cannot spot my mistake.
Oh ignore the += on group two I was trying something but it didnt work.
nvm
I solved it. I was being an idiot
We also use apache ant. . .
you should use netbeans
personally i'd recommend intellij
I guess I will look into it
well ive never ever even seen netbeans before so idfk
lole
and i ignored the part about web because thats dumb
I'm trying to find a website that randomly generates these, does anyone happen to know what its called? lol
@pale onyx https://code2art.jetbrains.com/
wut is that
i just get white screen
My desktop background is a neat fluid simulator i found online
the jetbrains splash screens for all their products are generated from the code on code2art. It may require a browser with some advanced canvas apis.
Is there a program like Windows Terminal but a replacement for file explorer
specifically something that has tabs
midnight commander
there's dozens of clones of this
most of them end with commander
you can use the mouse
ok not command line based
and click on those menu items
you said windows terminal
and an alternative file explorer
xD
that's what midnight commander is
Like how windows terminal is an alternative to cmd. I want a replacement for file explorer that is just better
lol
worth a shot I guess
does it have tabs
you're already running explorer.exe
there's no "alternative"
windows desktop is so weird
yes
I mean you can still have applications that are for most purposes replacements for explorer.exe
this looks good but damn idk if I can open wsl2 directories from dolphin
cool nevermind this is perfect
@midnight wind Thank
surpised it runs well
no obvious problems but we'll see
I need a shortcut to wsl because lol
C:/Users/<username/AppData/Local/Packages/CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc/LocalState/rootfs/home/<usr>/.config/piqueserver/
isnt too fun
to fit how you like it
@midnight wind Qt
yes
yeah its just C++
runs on all platforms
gnu stuff for windows usually works fine
if built by the linux community
the other way around
the stuff microsoft does with linux

I find it hilarious that Microsoft is one of the bigger contributors to the Linux kernel
Really?
microsoft has lots of open source stuff
They had 9 people made commits to the Linux kernel. Microchip had 15 commits authored by them. They worked on SMB3 and ipv6, hyperv , acpi, cifs, reboot, kaslr (arm64 related), dccp and ima. Interesting. I wonder if they are going to let you build a custom Linux kernel soon since a lot of that appears to be related to there virtualization? There also appears to be some wireless driver work being done by them. I also wonder why there working on arm64 related stuff in places. This is all in the change logs from kernel 5.11 - 5.11.6
they did have a vested interest considering wsl2 and all that
and of course lots of their server stuff is probably linux
Yes they are interested in server stuff. That is why they are working on SMB3, hyperv and cifs. I wonder why they are working on arm64. I know that some newer windows laptops might run arm64, but why would they work on arm64 in the kernel? Could this be for the surface X?
I mean windows for arm already exists
it just sucks im pretty sure lol
so maybe they want to do arm stuff
Yes, it exists but barely comparable with Intel or amd chips at there price range. I would think they would want to use arm64 since it is still going at a decent rate of in comparison to x86_64.
@dim lava Embrace, Extend, Extinquish
Microsoft is a bunch of suckers when it comes to opensource
they only use it because it means they have less upkeep costs
@rancid nimbus microsoft tried running stuff on arm in the past
didnt go well
They released IoT core for arm
and its already got its EoL date announced
within 2 years of its release
Nothing that microsoft builds is a long-term solution
And lets not even talk about https://en.wikipedia.org/wiki/Azure_Sphere
Azure Sphere is a secured, high-level application platform with built-in communication and security features for internet-connected devices. The platform consists of the integration of hardware built around a secured silicon chip; the Azure Sphere OS (operating system), a custom high-level Linux-based operating system; and the Azure Sphere Secur...
This is a friggen joke
Its basically a Linux distro with a .NET Standard library
https://twitter.com/gitlab/status/1369777337252904960
I guess GITlab has hired some low IQ peeps
You spoke and we listened. We're joining the Git community and updating "master" to "main".
https://t.co/V8UdjxQUBT
405
this is what happens if you let SJW's near software.
they ruin everything
its incredibly dumb
yeah]
no no, non-binaries will object, that values want to decide for themselves what they want to be 😉
stupid ideological beliefs
creeping into software. its just stupid and a waste of everyone's time
yeah
@sweet sluice master/slave blacklist/whitelist
but none of this makes any sense
it is not at all attributed to the past. people just interpret it that way
if you portray death in art
he's wearing a black gown
Yeah, programmers in general are very functionally thinking, we don't just use a term because it's racist, we use it because it describes what we're doing very well
"Controller/Follower"
I'm not changing my terminology xD
and I will refuse to use main
Basically the main use for Master/Slave in IT, has been to describe the fact that Master branch/device has control over Slave and Slave has no control over anything.
Main basically makes zero sense as it doesn't describe anything
Blacklisting is the action of a group or authority, compiling a blacklist (or black list) of people, countries or other entities to be avoided or distrusted as being deemed unacceptable to those making the list. If someone is on a blacklist, they are seen by a government or other organization as being one of a number of people who cannot be t...
The term itself finds its origins in the UK, and actually had nothing to do with slavery itself
Words are offensive because their context is offensive. If you don't change the context, you don't solve the problem.
I mean analogically we have that term in a lot of languages that have nothing to do with slavery, so it's just SJW's pulling history out of their #$$
What the SJW's have done is change the context
they apply the context of US' broken culture; to the world of software engineering
and fell on their face
SJW's take something without context and applies it to fit their cause
@sweet sluice https://i.imgur.com/cP5pDDf.png
"Will and should"
wtf is this. this is an RFC. not poetry.
There's technical bases, it's just that you're too busy with SJWifying everything to do research^
compelled speech.
"We give you the words you should use"
They quote orwell, but this what they are doing, IS orwellian
I mean I can bet that they haven't read anything from Orwell
oh here we go, found the section where they scutinize gender pronouns
xD
ye its a work of art this RFC
Because nobody cares.
and people didnt care before
and wont care now
but if you change it in a running system. people will get rustled
I'm done with this topic
I mean they would notice if anybody would ever read the documentation
Yeah
no end user will ever see the terms 'master/slave' in their programs.
so who cares
and changing terminology in a standard library is the epiphany of waste of time
I bet that we could probably destroy SJW's terminology as well lol
You just gotta make noise
reeeee
@warm sleet I know Microsoft has some history with arm. I acknowledge there arm laptops that at the time of release were not so good. You mentioned windows IOT core and I was talking about wondering what they are doing with arm and Linux. Azure Sphere likely is the project that I didn't know of because when I was looking through the git logs I kept seeing arm64 and didn't understand there interest in arm64 and Linux.
Now after searching Azure Sphere I know why they are working on arm64 Linux. That explains most all of there arm64 related Linux commits.
@rancid nimbus this is a digital arms race
big tech looking towards ARM now, for low power high performance mobile solutions
and it also makes sense in the datacenter
low power compute
Well, at least in the lab there is a competitor for arm in the performance per watt. It's some RISC-V based chip with an about 10 x better performance per watt score on some synthetic benchmark against the apple M1.
@rancid nimbus yeah but in the long run, microsoft has a bit of a problem
they want to market their windows operating system for profit
while GPL is poking its nose through the sourcecode
You are partly correct. They can not make money directly off of selling the Linux kernel modifications, but they can build a Linux distro and sell it and sell support for there systems. This is what redhat does they sell a complete package and also support for it.
hey. I'm rewriting a script to sort and organize my rom collection, and is pretty used to bash, but I'm having some issues with this:
declare -A SYSTEMS
SYSTEMS["packaged"]="packaged,7z|zip|rar"
SYSTEMS["Gameboy"]="gb,gb"
SYSTEMS["Gameboy Color"]="gbc,gbc"
SYSTEMS["Gameboy Advance"]="gba,gba"
SYSTEMS["Nintendo Entertainment System"]="nes,nes"
SYSTEMS["Super NES"]="snes,sfc"
for system in ${!SYSTEMS[@]}; do
VALUES="${SYSTEMS[${system}]}"
SUBDIR=$(echo $VALUES | cut -f1 -d,)
EXT=$(echo $VALUES | cut -f2 -d,)
echo "SYSTEM: $SYSTEM"
echo "VALUES: $VALUES"
echo "SUBDIR: $SUBDIR"
echo "EXT: $EXT"
done
Sometimes all the printed values are empty, and sometimes some of them have content. Any ideas?
I don't have an issue replacing/updating problematic terminology it's not like replacing master/slave with primary/replica is hard or makes understanding what they do any harder
I mean, fluffer used to be a term used for warming caches
Kinda just shows how software engineering has been dominated by white men for quite a while.
It's not like I'm upset by the terminology, but if someone asks me to do it, yeah sure. No skin off my ass.
Today i learned linkedlists are almost always worse than arraylists
Kinda just shows how software engineering has been dominated by white men
I invite you to draw a map with the offices of the very large companies. Identify then by "sales" and by "development" based on the main activity they develop.
Not going to say the conclusion of this thought process. But if you are really concerned about fairness, it can be a very enlighten way to see why this is so.
Things are more complicated than just race and gender.
Btw, I am a Brazilian software engineer that learned the market on 4 different countries before I chose my path. Not saying there is no truth on your perception, just adding more data to your data driven mind 🙂
Yeah, it is more complicated than my summary, but to really dive deep down would require a thesis that I'm not willing to write
with that in mind, it would be nice not to blame on "the other group" then
on the terminology itself
master, slave
it is meant to be as it is. Folks that named those things didn't care about feelings because, lets face it, they are not people focused folks.
Changing names is fine, of course
but it is not a sign that "this is result of an industry dominated by this race and this gender"
Not really trying to assign blame, it's more of these things weren't thought of because of x
Like I didn't think anything of these terms until I was asked not to use them because I personally am not impacted by them
right
but it is not fault of "white men"
btw, I am latino
lol
but like... I am from a developing country
Terminology like that becoming popular is a direct result of a lack of diversity
@vast echo true
it doesn't mean it is helpful.
but yeah, I get it, it makes total sense.
but what diversity it lacks the most
gender..
of nationality?
Yeah, the saying "never attribute to malice that which is adequately explained by ignorance" applies here
how many Ugandan folks do you know in your company?>
And just because the people who came up with the terms probably weren't doing it to attack people, doesn't mean that it's not a bad thing
It's just another example of how systemic oppression gets perpetuated
not saying that even within the privileged bubbles there are not even smaller privilege bubbles. Just saying things are a bit more complex and more cruel than that.
oh byeah
yeah
master, slave... those terms actually dont represent the truth of the matter.
and we should try and make things better so that programming is as open and welcome to everyone as possible
primary, secondary... maybe.. but we might find even better terms. And that is ok
my problem is with the blank statement that
To call this orwellian is pretty dumb
"this race and this gender is been too long dominating". That sounds like a nazy
I agree with you a lot there.
but it is not gender and race.
I mean there is a very specific race and gender that is perpetuating the lack of diversity in programming and to seemingly deny that is strange to me
well, I heard that so many times
meanwhile all of my white Brazilian software engineer friends are doing bank forms cuz the industry is dominated by americans and other rich country folks.
so, it is about perspective; it is more complicated than that.
I think it is, but that's because of my experience working in the video game industry, so I could be biased
oh yeah
it makes total sense.
not trying to saying what you experienced is not true, but there is more than that.
so
about me...
I am "white" for Brazilians, but I am "latino" for Americans and I am "middle weastern" for Japanese people. I live in Japan, worked for a very large american company for 3 years.
I had to go through very abusive companies before I had the chance to interview to this large company I mentioned. Back home, I wouldn't even have the chance to do so.
and everyone I know that compare races, and genders, compare to other people from the same country. Which is fine, and can be true (I dont know the data myself). But doesn't explain the whole picture.
the focus in that big company was so big on being inclusive that I felt I should just quit. because, you know, I am white... according to my culture.
anyway, I would never push a word that is hurtful to anyone, regardless of my interpretation of that word.
but assigning to a race, and gender... you are condemning people from other countries and social circumstances to the same sin as the folks you saw in your backyard.
to troubleshoot that we need examples of empty output vs expected and examples of acc output.
with that said, if you want to sort and match in bash I would recommend to use subshells and get back to the basics - pipes, grep, sed, awk.
bash is not really a very strongly structure language; yeah, it has arrays and whatnot.. but I wouldn't try to manage them, too much headache.
Thoughts guys?
what am I looking at?
WHMCS
wat
I don't do managed hosting
I prefer just an empty virtual server for hosting'
can install any program you want
Just buy a vps like all my epic runescape botter friends do
make sure to backup if you don't want to lose data in the vps in case fire breaks out like OVH
if you want storage you buy dedicated storage like on backblaze b2 or amazon
not on a vps
and other's are geo-replicated as well
idk if b2 is
No not data storage
They put their computers in shipping containers
That go on boatd and trains
Stacked up like a castle
Actually, I forgot the exclamation mark ${!VALUES} when using the variables created inside the loop. As soon as I added that it worked just as expected.
master/slave alternatives are usually context specific, and generally better alternatives in the context
eg: primary/replica describes a specific relationship
eg: provider/consumer, client/server, parent/child, primary/replica, master/puppet
those in context often describe the relationship better, so there not being one universal overarching term isnt always needed
re: something earlier, idk it scrolled
Hello everyone, I'm currently working on a little Java project with IntelliJ and I can't find out how to create a new package next to my first package, does anyone knows how to do it ? Thanks a lot for the help !
Oh, I found that I was looking at an earlier version than the one I use.
🤦♂️
Can I use the .textchanged event on a C# form or does it have to be used on each individual control?(I want to use it for any input that's changed in the form by the user)
Can some help me with .sh?
no mater what leter im potting its starting the apt comm (sorry for my eng)
Still the same problem
man test
Exit with the status determined by EXPRESSION. --help display this help and exit --version output version information and exit
if [ condition ]; then
else
fi
condition is something like: "$foo" = "hello world"
@nocturne galleon ^
th u so match
if [ "$VAR1" = "$VAR2" ]; then
echo "Strings are equal."
else
echo "Strings are not equal."
fi```
VHDL VGA adapter is working 
I just made a new build for a sci-fi horror game I’m working on, anyone want to try it?
Or is it ok if I post a Google drive link?
Dms are prolly better idk, but sign me up
dm the game, i'll try it later. Or if you get the go ahead, post the link here (better safe than sorry)
where's the game
you just lost it
I’ll DM the link just in case
does someone know a way to directly interface with APT in Java?
as in the linux package manager?
yes
you can either use Runtime.getRuntime().exec() or ProcessBuilder to interface with the bash shell
@fleet geyser shell is the way
alright, i wanted to make sure
i looked and i didnt see anything
me neither
apt-get is stable
same thing
nope
i don't use apt
wrong again
damn it
i read it and put it in the sentence without knowing lol
i started with apt-get and when i looked up the difference between apt and apt-get i found out apt-get is better method
so i stuck with apt-get
if you use apt in a linux script it shows this WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
apt-get has a stable CLI interface
because its legacy ;)
well i'll make a library for APT using shell and put it on github so people can find it
i think apt is just a wrapper around apt-get and apt-cache with some extra stuff
it is iirc
@fleet geyser you can just add all the packages to a single command
apt-get install -y nginx git etc etc etc
idk
@fleet geyser I'd just make an abstract class to interact with the shell
and then just a class to interact with apt
alright thanks
i'm making my distro so i'll make Java app store
how would you do it for snapcraft?
true
I've made debian packages before for java programs
wdym?
maven outputs a .deb file you can install on your system
alright
alongside the .jars ofcourse
i know
getting it to integrate with services is a bit more tricky
wdym?
im gonna assume he means integrating with systemd and the like but i may be wrong
I think its lot easier now
I used to use a service wrapper
that was pretty nice
because it worked on windows and linux just as well
i'm not linux veteran, so i'm not sure why i'd want to integrate it with systemd
allowing your program to run in the background automatically
well this one won't run in the background
but others i'll make will
so that could be a problem
ive done work with windows services in C# and imo they're a lot easier to understand than what linux does
it doesnt really have "services" in the same sense that windows does
yeah it doesn't
SysV init was very simple
just a bunch of scripts
systemd overcomplicated a lot of things
but you basically create a unit file, and point to the command you run
and then you can provide some information on other services you depend on
like an sql server or whatnot
on servers you run LTS
true, but this OS will be targeted for schools because i'm doing a project eSchools, don't ask me anything
so stability on those computers will be the key
because you don't want to have problems in the middle of the class
im surprised a school would run any linux distro for students
@spring pond lol why not?
they'll have to learn it anyway
just build your app in a browser.
idk i grew up in a county with all windows stuff
and make your linux distro display only a browser ;)
and using Wine you can make pretty much run any windows app student would need
on linux
very secure.
yeah
and idiot proof
i dont think linux has very good management stuff (as in user policies)
@spring pond not true
@spring pond ubuntu ships with AppArmor
ig
i'll make System Guard that comes with it
and there's also SE Linux
there will be 2 version: Student and Educator
made by none other than the NSA.
Student will have sys guard client side if you will and educator will have server side
if you know what i mean
so youre making an entire management system for applications?
they'll be able to disable, enable apps, take remote control of the system, chat system etc.
well not just for that
but yeah
I dont think a year is enough
not just that, eGradebook, eBooks etc.
^ lol
i'll make my own distro, but much more simple
@fleet geyser debian is also made to clone
its a very sensible OS, with minimal defaults
if you want a clean distro..
you will have to spend a good amount of time learning linux
and i used it a while before i switched to it on servers
i know
what linux is
its kernel
distro is full fledged OS
GNU+Linux = distro
Linux = kernel
i mean afaik a distro is just a collection of packages on top of linux
@fleet geyser I suggest you use this: https://alpinelinux.org/
Alpine Linux
Ubuntu Server
This is the most barebones security enhanced linux distro out there
put plasma kde on it, make my own theme, which is easy
you'll have a much better time forking something than making your own
i
i'll take ubuntu server
and install packages on it
not make it from scratch
lol
its based on ubuntu
one of features of sys guard will be to install apps on student computers
from educator's computer
Like
which is pretty simple
Alpine is made for this purpose.
@fleet geyser lot of docker containers use it too
the educator's PC will send command to server, which will then dispatch bash command to student computers
8MB install for a container
are you planning to host your own server for the backend or make it something the school hosts
my own for now
i'm from croatia and our infrastructure for that...
well is
kinda shit
@spring pond he'll realize he's overestimating his abilities soon enough
this would take me 3-5 years if i was lucky and knew linux through and through
^
are you working alone?
well thats a bit better
@fleet geyser I think you're biting off more than you can chew :P
^ yeah
haha its just a pl;an
for now
rn i'm making something much more simple
i'm making accounts system for other things i plan to do
@fleet geyser another interesting distro is NixOS
so i won't start making distro etc. until i get to know linux better
@fleet geyser NixOS is a completely descriptive distro.
I won't be making my own distro as in writing code.
my advice is do backend first, then move to the frontend
Alright
the entire system configuration, packages and kernel configuration are all in one major config file
i don't plan on writing code, just taking some distro like ubuntu server, putting DE on it (KDE 5, making my own simple theme), installing packages on it and thats it
there won't b e a ton of packages
Being declarative, it means that your entire system is a configuration file
that will be up to admins to install
and this configuration file lives inside a git repository
when you make changes to your system, like install new packages or make changes to your applications, this is added as a commit on the repository
and when you boot your nix system
grub will show you a list of commits from your git repo
so you can always go back to a previous configuration
and if you move to a new system, all you have to do is import your nix git repo
and it reinstalls your system completely as it was.
nix is very very powerful
oh yeah, did i mention i plan on making it like a windows server (i just thought of it and not sure if its possible), so basiclly you would login with your account and you would have all your files there HOWEVER, there would be a sort of cache partition, that would be like 60GB, so files don't have to be downloaded all over again and because those files are small, maybe words documents, it would be enough, and files would be stored on my servers
idk if its possible, its jut an idea
tho
probably not 🤣
i guessed that
thats easier
yeah, but then schools would have to have a server
as opposed to your solution?
and in my school, half of it are laptops and half are desktops that are soon to be replaced by laptops
you need something that can easily be deployed in a school environment
^
yeah
and the result of that is: web applications.
i already planned all that out
that's 90% of server applications ^
well thats good
you dont need a custom distro for that
yeah
i know
and a web application using said api
you could just interface with a preexisting distro's security stuff
im sure its possible
i won't be making my own distro from scratch, just putting my plasma kde theme, putting some programs and removing non needed packages
not a full fledged custom distro
well if you want this to be widely compatible, dont remove packages
some schools may need them
only add
most reliable systems are static systems
with as little bells and whistles as possible
the moment you make your system modular on the fly like that
you add a whole new layer of complexity
The OS won't be open source, the school will have to contact us and we'll prepare the OS and customize the installation for them, to fit their needs.
I'm talking about base OS.
its linux, the only thing that wont be open source is probably your base application
