#development
1 messages · Page 53 of 1
The problem exists when the two systems get out of sync with each other.. this isnt an app that you are deploying to everyone all at once with everything changing at the same time.
Yes
Microservices doesnt work like
Its not the workflow that is the issue here but rather the deployment mechanism
We had periods of upto a minute where the site stops functioning properly at deployment time because the server and client would be momentarily out of sync with each other
well, you ideally never change the document structure in the acceptance server
so when you migrate to live
code doesnt change
Switching back to using normal REST made it so that even if the structures dont match up perfectly you can still render a webpage
oh, but it is using rest
I currently only use their graphQL api to get schemas
they are the same objects
So we were using the CMS to define page structure (I didnt build this system I was handed it after it was clear it didnt work properly)
And running into issues of the whole page wouldnt load when a sections graphql didnt match up properly
schema:
- https://graphql.umbraco.io:
headers:
Umb-Project-Alias: YOUR-PROJECT-ID
generates:
schema.ts:
plugins:
- typescript
- typescript-operations
OK so GraphQL at that level might work ok
I did a some literature research ahead of time
initially I am just using graphql's benefit of a schema
querying it myself, I haven't looked into yet
At the page structuring level it causes more problems than it is worth
anybody know how to create a method in java
@tribal root public static void main() { }
this is what i have
public class Tester{
public static void main(String[]args){
public Test
Tester mytest = new Tester();
mytest.setweight(100.0);
mytest.setgrade(100);
System.out.println(mytest.getweight());
}
}
@tribal root classes like Test are to be defined in their own files
your main class, holds the method main() which is where the program starts its execution
so how would i define that class
Create a new file
public class Test { }
any methods that Test has, are put in its body
the body of a member is inbetween the { } scoping
would i put the method in the string args
so the simplest of java programs is along the lines of
public class Main {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
often, the main method has a parameter args
which is where parameters you pass in the commandline will end up
So next to your Main.java file for the main function
you'd make a new file
Test.java
inside that
public class Test {
}
think of classes, as if they are blueprints of objects
you can give them properties and actions
properties are fields inside a class, and actions are its methods
but then how would i do the setweight if i have a new class
so inside your class, you can define a method
so how would i define that method
public class Test {
public void setWeight(int weight) {
}
}
This defines an empty method called setWeight with an integer parameter
you typically then have a field in your class, which holds the actual value
public class Test {
private int weight;
public void setWeight(int weight) {
this.weight = weight;
}
}
this point to the class you are in
integers
are whole numbers
0 1 2 3 4
and -1 -2 -3
Why are you putting that all inside the same file?
You should have one file, with just your Test class
and then another, with your main method
package test;
public class Main {
public static void main(String[] args) {
Test myTest = new Test();
myTest.setWeight(10);
System.out.println(myTest.getWeight());
}
}
^ main class
package test;
public class Test {
private int weight;
public int getWeight() {
return weight;
}
public void setWeight(int weight) {
this.weight = weight;
}
}
^ test class
Works
java is very verbose, you have a lot of code to define mundane functionality
File structure: https://i.imgur.com/5EpjWxr.png
Okay I have a really weird quesiton
is it possible to change the max FPS and refresh rate of a game if it's not in the settings?
Don't ask why but I wanna play Among Us in 240hz xD
Not sure if this is the correct channel
@vapid saddle do you have an nvidia card?
you can configure max framerates from the nvidia control panel
for amd, I don't know
If the game is engine-limited i don't believe there is an easy way to change it
If you're super experienced with programming and want to spend a long time on this project it could be possible to decompile the executable if it uses Unity and you could patch the cs files (if the devs purposely limited the framerate). However, there are no guarantees that this wouldn't cause problems, and I'm unsure if you would be able to recompile it at all.
Jeez
But considering the devs have renewed their commitment to among us they will probably make the game at least 60 fps in the future
Hey, I'm doing a group project to fix/revamp our high school's volunteering tracker. We're stuck between using Django and Wordpress, and we have 0 web dev experience, but all of us know basic Java and half of us know some Python.
We need a log in/user registration system, a submission page for students to send volunteer forms, and an area for staff to approve those hours. We're also considering an electronic method of filling out forms by sending emails to teachers for approval. The absolute maximum amount of people that will use the site (the number of people attending our school) is 2400
Should we use Django, WordPress, or something completely different, and what software should we use to get started? Thanks
hmm
why are you mixing django with wordpress

for 2400 clients/customer. You should have federated login with login
e.g. SAML for AD, OAUTH etc
I'm wondering wheter I should use my desktop pc which can run either windows or linux or my macbook pro. The desktop pc has pretty good specs (a quad core cpu, 16gb ram, and a nvidia 980 gpu). my macbook on the other hand has like a dual core cpu and 16gb of ram. For deep learning and computer vision stuff, which computer/OS should I use? I either use windows on the desktop pc, linux on the desktop pc, or use my macbook for coding the models and then training them on my desktop pc.
@hollow basalt It's pretty unlikely that we're gonna reach anywhere near that cap (maybe 1200?) and I don't think our district will let us touch any of their servers (I'm assuming you mean Active Directory by AD). Also, I worded that a bit confusingly; we are deciding between Django and Wordpress for the site
so cool fun facts
both of these have pretty bad exploitable service areas
maybe bad times
you should also not write a login page
as this is chen/10 difficult
find an authorization provider such as nextcloud that has the security logic for you
Java is close to useless for writing actual web applications
and Python is used for tooling/automation
your answers are Go/Rust/C++/nodejs
docker + nextcloud/gitea/cogs + keycloak/vouchproxy + nginx/traefik = login + data + stuff
nextcloud has a forms application as a plugin

const client = new Discord.client();
^
TypeError: Discord.client is not a constructor
?
does anyone know what they are trying to tell me?
it's not a constructor, what else to say
maybe the client() should return the object itself
hence no need for the "new"
ah imma try that thx
its doing it again
use el documentation
const client = Discord.client();
client.once('ready', () => {
console.log('Supreme bot is online!');
});```
i know that somewhere here is the error but idk where lol
i know there's an example for a nodejs applicaiton
on the github
there has to be
or no one would ever do this
its doing it again
what is it doing
const client = Discord.client(); client.once('ready', () => { console.log('Supreme bot is online!'); });```
@errant raptor how do u type like that
that way
how
??
adding these ` three times
||No spoilers please||
'''hello'''
'''world'''
so what has to be capital C?
.Client()
idk
not client()
how to mark messages as spoilers
const Discord = require('discord.js');
const bot = new Discord.Client();
@hollow basalt what is this
okay i got an error after that with the token
but fixed that too thanks to ur info thx

some rando wants to make a discord bot
oh ok
i have some secrets for you @errant raptor
?
@errant raptor this contains sample codes ||https://www.google.com/||
oh
roflmao
is doing this in C++ is much more fun
@nocturne crypt im more used to javascript
i've made one before but im still very rookie at it
nodejs hipster
in my opinion c# best
until you have no runtime
yeah
C# has appeal
yup
it's a less garbage version of java
actually my dad uses c# so i know some basic stuff
@errant raptor this contains sample codes ||https://www.google.com/||
@hollow basalt im not getting all my code from the internet, some guy in the ltt server warned me that the code could be harmfull if i wasnt carefull so i'd rather avoid that
@hollow basalt im not getting all my code from the internet, some guy in the ltt server warned me that the code could be harmfull if i wasnt carefull so i'd rather avoid that
@errant raptor do you think I don't use google at work
and know which are malicious

how to mark messages as spoilers
i can't tell you how many times i've taken arbitrary code and just ran it for the lawlz
how\
||What do you mean spoilers||
pls tell how to mark ,essages as spoilers
never
@errant raptor do you think I don't use google at work
@hollow basalt i use google all the time at school but i'd still rather to write it myself
||pog||
damn it my friend keeps spamming me for how to make specific programms in basic
yee
no
if he's telling you basic, is he really your friend
its in his syllabus for scul

assuming you know basic though
be a good friend, don't teach him basic
lmao

assuming you know basic though
@nocturne crypt i kinda do
heresy
um i am still learining cant do such complex stuff yet
like simple programs
he is n my class
ooooo
and its our first time learning basic
no
bruh we didn't learn basic in HS
this is college?
we are in 7th
isn't that junoir hi
oh still
yee

my middle school did java/c++
i used to know it better cuz my dad taught me
i'm confused by this heresy
you know i'm gonna dump it on all day long
but i am suddenly more into hardware : D
then
assembly
my friend asking me how to make a table generator in basic
very carefully
so is this right
legit
^
i can't debug basic
10 input "your number" ;a
20 input "your second number" ;b
is 10 suppposed to be a type?
no, the line
@nocturne crypt do you know COBOL
cobol is made up
you're a dinosaur
is basic cobol?
basically, no
tbh, I don't know how to program in basic
how?
10 PRINT "Hullo"
20 GOTO 10

10 input "your number" ;a
20 for b= 1 to 10
30 print a "X" b "=" a*b
40 next b
50 end
this\
is it correct
having numbers infront of the statements are just ughh
Those are line numbers
yee
programs should use GOTO labels like c/c++
You can look up come Commodore Basic listings, those are hard core
it creates better spaghetti code
rofl
10 PRINT "(CLR/HOME)"
20 PRINT CHR$(205.5 + RND(1));
40 GOTO 20
This should only work on C64
I feel like I should play NES games after this
yikes
look at that editor
I'm glad it isn't color blue or green
And be careful, not all Basics are created equally
k

@hollow basalt do you remember the guy who bought a PC and forgot to put the rubbers off?
the rubber gpu guy?
10 PRINT "(CLR/HOME)"
20 PRINT CHR$(205.5 + RND(1));
40 GOTO 20
@cinder kraken tried it wth
it keeps on going
he also apparently had a lack of of working PSU
that's just unlucky
there's no condition to end it
did it explode
okay i got it online now my discord bot wont go offline i think it was ` to get it offline
he got refund

good thing though
okay i got it online now my discord bot wont go offline i think it was ` to get it offline
unplug your pc
im on a laptop
do i need to burn my laptop to get it offline lol
you know what to do now
or the server
Ask the store where you bought it for a refund
Basic morning
carefully
It's not a PC
oh wow
There's no Ctrl-Alt-Del
u have an actually commodore 64
I have 2, actually
omg
so i try using the internet for once for my discord bot it doesnt work
i just downloaded pc basic
Complete with datassette drive
There's no Ctrl-Alt-Del
okay bommer
cann u make it on basic
bruh
saw fax
its the programming laguage of the 1980's
I don't see how, I'm 19 
Oh geez, the fucked up age riddle @hollow basalt
will anyone ever answer me
i dont think so
@royal beacon i'm not David Murray, I don't even know if he actually programmed the machine to do it
oh

||Spoiler here||
||Spoiler here||
||interesting||
um how to

write that
is this guy trolling
Pipe
Pipe it up
no where to be found on my keyboard lmao i am dumb

|| i get it now||
||hmm shift lock???||
@royal beacon i'm not David Murray, I don't even know if he actually programmed the machine to do it
@cinder kraken yeah
lmao
how is that possible
windows N
how trash does a computer have to be
20 for b= 1 to 10
30 print a "X" b "=" a*b
40 next b
50 end
@nocturne crypt i7 8th gen
VLC?
@nocturne crypt i7 8th gen
@hollow basalt omg same lmao
videos work on that . . .
though no media encoder pack and they disabled grpahics drivers
yes they do
videos work on that . . .
@nocturne crypt youtube works, discord videos don't
How. What. They disabled the graphics driver?
i have an nvidia gpu tho
Do you mean you're running without any hardware acceleration?
imagine being only able to watch yotube while waiting for compile/deploy
Do you mean you're running without any hardware acceleration?
@cinder kraken Yeeee
VLC will work
just cebrial entanglement
There's even a portable version
I mean I wouldn't download anything on this
I just want to watch discord videos
besides it's mx150
launch discord with the arguments of no hardware acceleration
since it's basically chrome
how to even use this
roflmao
how old is this control panel
I actually use my personal computer during the PP meetings
you do not smply physx
how to even use this
@royal beaconwhat do i even do here
by what?
1000fps
congrats you can simulate the universe
i'm having an horrible sequence of ideas
and i will make it happen anyways
by what?
@nocturne crypt nvidia control panel
naw that was directed at can't

?
do you know what would happen to your gpu if you do that
good times
tf?
i agree with phoenix
?
but the human eye can't see more than 23.97fps
i'll future that argument zago
i got kicked out chuckie cheeze because I would predict all the machines
using nothing but my left eye
because GIF also don't load on this machine
you can just imagine I sent a sharigan gif
rofl
@hollow basalt i have gathered proof
that's for tv
film used 24fps-0.1%
60 fps films look weird
I forgot the reasoning behind 23.xx fps
i think it dates back to pre-digital
though I might be wrong
24 was the minimal to not make films look dumb
they tried with 5,10, and 16 first
and noticed problems
5?
they crawled up to 24
what is it s apowerpoint
ikr
like every frame was literally a crank
so they can't do 144hz back in the day

it be spinning like crazy
and would create a blackhole
haha crank go frrrrrrrrr
to powerful
lol
they recorded million frames/second during manhattan project, using only analog technology
Brixner and Mack would eventually design and build framing cameras having the ability to operate at speeds of 50,000, 1,000,000, 3,500,000, and 14,000,000 fps.
Using mirrors and lots of film
Is there a way to count the characters in a font?
Me? Thinking of doing a charmap type thing and I want to count the characters in a font to get its range
@clear flax pick a character set
fonts do not define character mappings
UTF8 or UTF16 if you want emojis
ASCII is much simpler
How does Windows find a good map?
windows?
this are official recognized standards
UTF-8 is a variable-width character encoding used for electronic communication. Defined by the Unicode Standard, the name is derived from Unicode (or Universal Coded Character Set) Transformation Format – 8-bit.UTF-8 is capable of encoding all 1,112,064 valid character code p...
This is ^ what governs text exchange between different computer systems
and fonts, map character sets to symbols
UTF-8 has 8 bits per character
UTF16 (Unicode) which is what windows uses by default, is 16 bit
ASCII is compatible with UTF8
any ascii encoded character is same byte value as UTF8
UTF8 supports a wider range of characters than ascii
@warm sleet they were also filming something that gave off an intense amount of light
or in this case, radiation in general
@distant dome yeah nukes are quite anomaly on the electromagnetic spectrum
+100dB gain on the entire spectrum xD
ZOOOM
the limiter on analogue flim frames per second is light intensity and how fast you can whip that film past the lens and how fast of a mechanical shutter you have
in the case of filming a fission reaction you would probably need the film shutter to go that fast just so you don't burn the film
@distant dome their shutter design was a spinning wheel with mirrors
I finally got controller supported in the game I'm making. I'm talking analog trigger, motion control, vibrations and all 🙂 !
It was pretty easy since most of it was already being taking care of by the game engine I'm using Godot Engine
But to make it work properly gameplay wise and to get to a point where it's smooth for the player to setup, that was the tricky part
a composite primary key is exactly that. a primary key comprised of multiple columns to identify its uniqueness
@kindred tiger are you just creating a table? If so at the end of the table def’n just put
PRIMARY KEY (ColumnA, ColumnB,...)
the better question is why are you using row/column logic to represent entities
Spreadsheets as databases... reeeeeeee @nocturne crypt

SQL is just accountants trying to save files
SQL was invented by keyboard manufacturers to sell more caps lock keys
mssql sucks lol
ain't the worst doe
true lol but i prefer Mysqli
easiest to use yes
Sure it has limited tables but it dont slow the system down like mssql does
eh, mostly use it for linq anyway
Tried setting up a IJJI Gunz The Dual server in the past and setting the DB for that game is a nightmare
hmm
odd to db to select for that
ye olden navicat 'n mysql would prolly been better yes or sum
Navicat is just a database tool xd
actually
they are both just as old
mysql is a tad newer than mssql
have developed quite a few servers in the past, all successful with mysql but mssql , Yeahh no
wonder how well it would go with postgres
Even had a few MSN Messenger servers in the past, supposed to use mssql but i was able to get them to write a local database file
No idea if it will even do postgres
(ngl do miss gunz, fk gunz 2 ruining it)
i have the original ijji gunz version +_ full source code
😮
with the game clients for all 4 regions
dang increase the lvl of mobs in the dungeon missions
North Amercan , Korea , and the other 2 i dont remember
ez lvls xD
lol
prolly won't be able to do a simple butterfly no more cause of rsi
I even have all the special event Databases for the Holidays
noice
Server files even come with the Documentation that would of been supplied to them from the original Dev with all the patch notes for whats been fixed on the server.
Handy stuff
the answer is to use cockraoch-db
which is postgress compatible
it uses NoSQL as a backend and just converts SQL into NoSQL
that's what's happening in China right now
they can't block github
so they're using it as a freedom fighting force
turns out china needs github more than github needs china
i like gitlab for CI/CD
bu ti use gitea because it's a comforting reminder of github
and it's supa fast
btw
i can use S3 buckets as a database
similiar in nature to your gitlab db lol
But is free

I like gitlab for ci/cd and the free hosting of static sites. But between gitlab and GitHub... Think my personal preference is still at GitHub
My company however only allows gitlab between the two of them
Kinda shit considering gitlab basically copy pasted the API wiki from gitlab word for word years ago
(and lacked the features that were in the documentation at that time)
i self host everything
and gitea is self-hostable lol
i also host my own S3 buckets
the magic of self-hosting

Hmm
Would only be able to host shit here on a few raspberry pi s for low cost hosting. But performance would be horrible
www.turingpi.com, before they're out.
does that turing just take zeros
or compute modules
cause I don't see how a 4B could fit in those slots
ah you'd have to get the compute module versions
you need to buy compute nodes


@cinder kraken now make minesweeper
what u mean 2010 is awsome ide
but visual studio still sucks
and uwp features
Prefer Jetbrains IDEs
but visual studio still sucks
@warm sleet yeah
Soo good
Prefer Jetbrains IDEs
@tulip oracle i thought to say that
does VS10 even have support for .NET 4.7 ?
idk
I don't think so? 😮
4.6 max I believe but I think it is supported through nuget
why does it show playing visual studio... under some peoples name in discord
Cause you either add it manually or it is detected automagically
You can add any program as "game"
I should get around to updating this stuffs heh
Mn jetbrains is neat but fk community version doe
Community ftw 🙃 , I would totally buy it if it went half price again
But ye for .NET rather stick with vs than anything else
Maybe resharper or the other additions from jetbrains
Rider works very well with .NET Core
anyone using notepad
xD
not me
I do
for programming
But mostly when I don't have an ide on hand
oh vscode?
vs2010 maxes out with dotnet 4.0
Or for quick code writing
4.0 lmao
But I currently more or less use discord for that with syntax highlighting
Cause mobile IDE s sook arse and this is quicker
Also don't joke about 4.0 whilst unity is stuck on 2.0

windows cant even properly render some fonts with java :(
I'm so used to using sourcecode pro
(fk java)
FiraCode looks lil different
Trying to get Java EE to work on vscode was a giant headache. Wish I could use Intellij ultimate for that but office didn't give me the budget for a license
Java EE doesnt need any IDE integration
Just use the regular community edition lol
Ever tried it on community edition?
The only thing it does is this: https://i.imgur.com/X6xD2zP.png
Nope
among a few other features
Soft locked out
like tomcat
my API even has a favorite .ico
xD
bothered me, seeing bunch of 404's in console during development
@GET
@Path("favicon.ico")
@Produces("image/x-icon")
public StreamingOutput getFavicon() throws IOException {
return new StreamingOutput() {
public void write(OutputStream output) throws IOException, WebApplicationException {
InputStream image = getClass().getResourceAsStream("/favicon.ico");
try {
IOUtils.copy(image, output);
} catch (Exception e) {
throw new WebApplicationException(e);
}
}
};
}
^ xD
Its an API cough
i found a way to run basic of all commodore models
on windows 10
Friend of mine simulated the chip of his old amiga on an FPGA
thats the middleground between hardware and software
hmm
btw u need 7zip to un zip this
these are all the basic versions for all commodore machines
includes the famous c64, pet, vic 20 and more
@cinder kraken may be interesting for u
a fan of commodores
idk
I have a c64, it doesn't work though
I tried replacing one of the chips that I thought was the issue but unfortunately that didn't fix it
It was probably used by tom cruise when he was in high school though
so cool fun facts
both of these have pretty bad exploitable service areas
maybe bad times
you should also not write a login page
as this is chen/10 difficult
find an authorization provider such as nextcloud that has the security logic for you
Java is close to useless for writing actual web applications
and Python is used for tooling/automation
your answers are Go/Rust/C++/nodejs
docker + nextcloud/gitea/cogs + keycloak/vouchproxy + nginx/traefik = login + data + stuff
nextcloud has a forms application as a plugin
@nocturne crypt
Thanks for the info! I was thinking of using a third party plugin on WP/Django instead of coding our own login page. We're also not storing anything more sensitive than emails (student IDs don't do much) and we can try to generate random passwords on registration and prevent users from making their own to prevent double dipping passwords. Would the security flaws still be a huge issue?
take it one step further
don't code anything at all
just spam docker + applications
everything you need is already written
this is like one of the most common use cases
WP/Django are considered easy town to mid level exploitable
OAuth tokens do what you want to prevent predatory login attempts
very smart people already thought this through
i mean i guess writing nginx configs and docker is some form of coding
like you can use ghost as your website
docker + nginx + ghost + nextcloud + vouch proxy = website + pre-made login page
Are all of these free/open source?
yes
real enterprise is almost entirely open source
because it has to be
they're all relatively easy to learn
Wait so Ghost and NextCloud are free to use?
you can self host them yea
so whatever you were going to use for django and word press
you can just use the same stuff
just use docker to deploy
Self host also include services like HostGator?
free and open source projects
idk, hostgator is a pretty bad hosting provider
if they give you ssh access probably
Bad in terms of security or support?
both
if yall need a better solution use the level1linux coupon for Linode
get 3 months free
pay $5-$10 a month for what you'll probably need
epeen levels of support
pre-designed scripts
docker/container friendly
so Linode/Vultr/Digital Ocean/AWS/GCP/Azure
sometimes Microsoft gives away huge amounts of credits for azure
if you email the support staff at Microsoft and ask for a docker/podman/k8s capable host at your age
they'll probably throw it at you for free
How long do you think a project like this would take for 5 or so newbies?
And to your knowledge, do you think I can get this hosted on Azure if my district already has a contract with Microsoft for Office365 and school related authentication?
probably to the hosting question
i've seen 14 years old on this server learn docker in 2 hours
i have one in my incubation server who literally did most of the learning in 30 minutes
think of docker as a guide to deploy applications
like you know that genie you wish you had to would bark at you and provide instructions
help, guides, and a general path
docker basically takes all the hard parts of deploying applications
because it allows the developer to leave instructions in the form of pre-assembled code to deploy it for you
eg a dockerfile
I'm assuming nginx + ghost etc take a minimal amount of time to learn as well?
So Docker is the main thing to learn?
Is anyone here using or used Discordia? Discord API for Lua
I’m thinking about rewrite my javascript bot to lua
they all have minimal effort to learn @untold badge
ghost is almost 1:1 for like wordpress just a better UI and better SEO and more secure
Access the labs here: https://www.kodekloud.com/p/docker-labs
Get started using Docker with this end-to-end beginner's course with hands-on labs.
Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications, whether on laptops, dat...
he's really at explaining it
just deploy portainer and use portainer to help you deploy stuff
Make your own mail server, and realize that you don't have a nice app for it like gmail does. So what's a lad to do but make his own app?
just pay for exchange online, or try to get a free version of exchange
cool mail web apps exist

But that would require not self hosting
And its not pretty, but I managed to throw together a app for android that works.
cool self-hostable web apps exist
i literally only self-host services
just assume unless i say otherwise i'm indicating self-hosting
can someone help me with making a landing page for my website
Don't need it, since I have 2 C64s
@cinder kraken yeah but like if u wanna run the other versions of commodore basic thats why i pinged u
It was probably used by tom cruise when he was in high school though
@vast echo how do u know that
and to repair it maybe look at one of 8 bit guy's restoration vids
Tom cruise went to the same highschool as I did and I found a yearbook photo with him in the computing club and the paragraph talks about how that year they got a commodore64
I can't be 100% certain it's the same one but I was part of another tech club and found a c64 at the back of a cabinet and it was manufactured in the same year as that yearbook
I'm somewhat afraid that I managed to damage it more while trying to repair it
unfortunately I left it at a workshop that I don't have access to because of covid so I haven't been able to try more things for a while
herro is anyone willing to help me with my game? no coding knowledge required, just need a person to help me with something
okay so what i am doing as a small project of mine just to perfect my basic knowledge of python and tkinter, i am making a linus clicker (basically a cookie clicker just skinned and themed around linus), and i want to implement different click multipliers that you can buy, which are like employees. the problem is, that i cant figure out how to sort them out of the ones i have picked and i was wondering if anyone could share their opinions on the matter
here are the employees i have picked, and idk how to sort them by click multiplier lmao
maybe anyone can share their opinions on the matter and maybe give their thoughts?
i just need the ranking from least to most, ofc linus being the most.
nono, i just need someones opinion on the matter, like which employees should have the most multiplier
i was thinking of more a role in linuses videos
like the biggest icons
but hierarchy isnt a bad idea
Does anyone know how I can convert this into livewire?
@nocturne crypt Yo I have a few questions if you don't mind
So do I need another database for Ghost, or is Nextcloud the database?
PostgressSQL, or MariaDB
@untold badge https://www.youtube.com/channel/UCVy16RS5eEDh8anP8j94G2A
he shows how to deploy a lot of the stuff. he also briefly explains in English how the services relate to one another
not at the scale you'll be working at
remember to deploy redis with nextcloud to prevent hiccups (it's not mandatory but helps a lot)
can someone help me with making a landing page for my website
@ionic oar Depends on the page
might be a dumbass question, but can I do SQL stuff for free? as in create a database and modify/create/remove tables in it through my own program without needing to buy something like microsoft SQL server?
try to use one of the many open source SQL solutions
like mysql?
yeah, there will be some small differences, but 99% of the logic is the same
aah cool
so is an sql server necessary? like is the database itself just like serialised data that needs to be parsed or something? im not very familiar with how databases actually work
what im reading atm is saying an RDBMS program can be interacted with via SQL
is RDBMS a standard? like can all relational databases be accessed with SQL? or is it just a blanket term for a database that could be in any format
RDBMS is pretty standard for most parts of it. If you want to just get started in SQL and didn't want to worry too much about setting up the SQL server. Just use python and sqlite.
MySQL requires you to setup a server before you can start messing around with it
SQL databases are relational by nature
that's what the R stands for
@nocturne galleon for community use of SQL, MySQL is most often used
if you need more advanced sql features like CHECK constraints, MariaDB is a mysql-compatible alternative
Otherwise
PostgreSQL also works
aah ok
so would you recommend for just getting started to just do what @tulip oracle recommends and use SQLite?
can I edit, add and remove tables and values in SQLite?
its just a file, that acts like a database
thats all i need
You'll need an SQLite driver, and a path towards it
then, write some DDL statements
DDL = Data Definition Language
I saw a tutorial that says if your database doesnt exist at the filepath then it just creates one
Yeah, thats right.
@nocturne galleon not sure how you are writing your code, but SQLite has support for IF NOT EXISTS
so you can write your table statements like so: CREATE TABLE IF NOT EXISTS ( );
if you run those ddl statements at startup of your applications
it will make new database if it doesnt exist yet
keep in mind, sqlite lacks a lot of features like CHECK TRIGGER and PROCEDURE
And its also very very slow.
let me grab some example from my mini database I wrote for a minecraft plugin
ahh yes
private void runDDL() {
try {
PreparedStatement ps = connection.prepareStatement(
"CREATE TABLE IF NOT EXISTS inventory (" +
"x INT NOT NULL, " +
"y INT NOT NULL," +
"z INT NOT NULL," +
"world VARCHAR(16) NOT NULL," +
"data TEXT NOT NULL, " +
"stir REAL DEFAULT 0" +
");"
);
ps.execute();
ps.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
Right there ^
ooh
This was to provide an inventory to a block, that normally doesn't have an inventory :)
Cauldron in this case
xD
fetching data like so:
oh cool
PreparedStatement ps = connection.prepareStatement(
"SELECT data, stir " +
"FROM inventory " +
"WHERE x = ? AND y = ? AND z = ? AND world = ?;"
);
That preparedstatement returns a resultset in java, which you can use to retrieve the records
Not sure what lang you are using, but most languages do it in similair fashion
@warm sleet haven't messed around too much with a bunch of different SQL servers, but the main reason SQLite sucks is the stuff you listed above?
because sqlite is just a file based database
full fledge sql servers, do indexing, have support for 1000s of connections at same time
can take care of things like concurrency and isolation
Ah fair enough, but isolation?
you cannot have two instances of a program use the same sqlite database at same time
In computer science, ACID (atomicity, consistency, isolation, durability) is a set of properties of database transactions intended to guarantee data validity despite errors, power failures, and other mishaps. In the context of databases, a sequence of database operations that ...
SQL can be a deep dive
Transactions are often executed concurrently (e.g., multiple transactions reading and writing to a table at the same time). Isolation ensures that concurrent execution of transactions leaves the database in the same state that would have been obtained if the transactions were executed sequentially. Isolation is the main goal of concurrency control; depending on the method used, the effects of an incomplete transaction might not even be visible to other transactions.
If you have various processes modifying the database at same time, you can run into some very nasty bugs
so ACID principles help lay out the foundations for database design to make sure that transactions are properly isolated
so that concurrency (multiple operations simultaneous) is possible
but I studied this shit in school
boring as fuck, but very important
But if you are writing a simple application with a handful of tables
this usually isnt an issue.
as long as you get your keys and foreign keys down properly, 99% of the edge cases are covered
a column of a table, can reference to another table's column
This is what the "R" in relational stands for
Mmm yeah it's these principles I tend to forget haha
Isolation is the most important one
It has all the nasties
Atomicity is only a thing you have to look at in-depth once you start using things like triggers and procedures
or doing multiple writes in one transaction, and the second one fails
you have to rollback your first write
get high on ACID to prevent errors
SAVE TRANSACTION transtate
... do something ..
... fails ...
ROLLBACK transtate
@hollow basalt screw people who write sql with uppercase field and table names
its the worst.
SCREAM EVERYWHERE
I like having only the control words in uppercase. makes it SO MUCH easier to read.
i hate backticks. especially because my keyboard layout doesn't have that symbol
`
∞?
'
"
"
[
ye, i have to copy paste from charmap
our chat is so encrypted
1337 speak
i use winblows
I'm on windows too rn
!@#$%^&*()
Eh get a new keyboard?
as qwerty as it gets
^ this
you dont have to remember keycodes
you can just do it on the fly
but
windows
because this i what i physically have
Ew lol
are you lolling my regional keyboard? understandable, i do it too
sketch? its not even packed
just went through it real quick, its an overengineered low level mouse hook 😐
@nocturne crypt @pulsar apex needs help with Docker
When he is around he might be able to help you
the problem is:
I got a VPS Server with Apache Webserver running on it. I've hosted a Website, Cloudserver etc. on it. Works fine
Now I've tried installing Bitwarden (I hope u know what that is)
It works in an Docker-Container, but it uses nginx as webserver.
Everytime I try to start Bitwarden it says that something is already running on Port 80 and 443.
So I've changed the ports of bitwarden to 8081 and 9443 but it still doesnt work
@midnight wind
is the website behind a reverse proxy?
I would put bitwarden behind a reverse proxy as well
as for docker, are those the internal or external ports
I only know how to do for apache
as for docker, are those the internal or external ports
@midnight wind it were external, but I've changed them
idk much about reverse proxies myself, I'm learning myself
hm ok
was the firewall open as well?
yes
So I've changed the ports of bitwarden to 8081 and 9443
is that in docker or in bitwarden config?
500$ mac lol https://developer.apple.com/programs/universal/
@midnight wind docker
just put your services behind traefik or nginx directly
don't expose a million ports
Traefik 2.0 is a game changer. With recently added features and functionalities, 2.0 is built based on your needs. That’s why this online meetup is 100% Community Driven.
Every discussion does not fit into an issue, so this session is the perfect place for you to share your i...
Is it better practice to use Dockerfiles or just use docker run for every application?






best shit