#development
1 messages · Page 36 of 1
IDEs to a shitload of work for you
i just clicked the build button
IDEA is no exception.
you need to add a build artifact, then you will get a jar from that
open the project settings (Ctrl + Shift + Alt + S)
left column, Artifacts.
add a new one, Jar, from module with dependencies, select the module (should only be one), select main class, select dep behavior, click ok.
should add the build artifact, click ok again.
under the build menu, build artifact, select your artifact.
@twin arch got all that?
even if you are root, i would recommend a directory such as /Meebo
ok
what error did it give you this time?
all of these
build artifact is wrong, did you select the main class, or type it in?
yup
while technically a corrrect answer, that is not what i was looking for
oh, wait, im dumb, i thought you did the command right.
when running a jar, you need to use the -jar argument
java -jar jarname.jar
wait so you can't run classes anymore?
i thought i did that a while ago
back when i used javac and notepad
you are not running a class, you are running a jar (a bunch of classes)
what isn't working?
i didn't see the text file it was supposed to create in my sftp explorer but it just hadn't refreshed yet
thanks
@modern nest nice oc but 0% deep sleep?
Thats a problem with pie and doubletap2wake @tropic sapphire
Is it fair to call a developer incompetent if they're a AAA dev who can't fix a bug, that's been going on for a year, and is it fair to give them a pass by saying this is normal with millions of lines of code?
Also, said dev said they fixed it..but..they didn't Basically, in destiny 2 in one boss fight there's a bug that causes you to die every time you go into the void room. For no reason your character just gets pulled over. Seems like a simple fix to me.
@ember torrent i highly doubt there are millions of lines considering that Linux is only a bit over 20million lines.
now, as to the actual problem, they are fucking idiots
Ya, I am not sure where this fangirl was getting her numbers. That wasn't my claim. I stand by claim that Bungie is an incompetent developer who likes to fuck their community. 180 bucks later for all of destiny 2, and they won't even fix their shit when it's been a year.
I just told her it was bs, a developer of that level should be able to fix such bugs to the point they go away, and she's like.."Nah, millions of lines of code it's impossible"
i mean, you can tell based on compiled size how long the source code is
or, rather, how long the unique source code is.
for example, my entire RocketLeague folder is 7.4GB
patches have made devs lazier
destiny 2 is like 40-50gbs iirc
the binary is 47MB
you can take out the textures, audio, maps, and all of that out of the file size
assuming same ratio (Rocketleage is heavily assets)
the binary of Destiny 2 should be around 310MB
the ps2 and xbox era of games made devs betters as if they fucked up the bug was forever in the game
"In video game development the fixing of one bug causes more no matter how skilled you are, its the nature of these massive complex games. "
" When you have millions of lines of code, literal millions, searching for the cause for the bug alone can take forever. Your naive and a liar. We support bungie through massive amounts of crayon eating not because we like bungie but because we enjoy their game and hope that through our support it will continue to get better. You can keep spewing out your ass like youre some big smart man and you can continue lying about being a game dev major but everyone here will very easily see through it and see just how stupid you are.
" Do you see what I mean by a fan girl?
yes
She got pissy cuz she learned I'm a dev major and called her out.
to get boost into perspective
there have been 7566 man years put into it
at an average salary of $55k (low) that is 416 million dollars.
games development costs and time dont even come close
they have in the hundres of thousands at most.
i would be amased of a game broke 1 million lines of unique source
unique source: source code not copied from another section of the code, this does not mean that } is counted out as a unique line of code.
Well, they claim they're actively working on it..yet.. Bungie is known for being dicks. Like they hate the infusion system that "they" created. So, they literally punish us for it by making us work extra hard. Matchmaking is broken because to leave it you have to spam cancel. The net code is so bad I can get shot behind cover in PVP when I'm not lagging.
I wonder what it would be like if you assigned an AI to produce an physics engine giving it real world gravity input to work with
like how googles AI created it's own encryption in that one test
you can actually do that
and its not as hard as you may think
the problem with AI, is that it has a O(1) time
and while that may seem good on the outside
its a high time
all the binary crap is in the game's bin folder/s right?
yes
I've watched those videos where a AI learns how to play a game those are pretty fun to watch
to be specifc, you would give the network information about the object and train it off simulations.
@dark thicket that is the genetic generation model, which is completely different from neural networks/deep learning.
libdcef is a publicly available library
it just keeps trying and takes the best sample from each generation from what i understand
to be exact, thats chromium
I don't know anything about coding I used to play with a games scripting language changing variables just to see what would happen
I think the largest game I've found was like 120gbs and that was gears of war 4 on the ms store for windows 10
74GB/100MB == source code is tiny
compilers are generally quite amazing when it comes to making code small
correction on boost, its about 34MB compiled.
Ya, figures she's just buying into the bs Bungie feeds her. Same idiots who claim dedicated servers are super expensive and not good for the community.
I mean Quake Champions uses dedicated and that's a F2P
the source is 354.6MB of impl, and 130MB of headers, all ofr 34MB of compiled code.
dedicated servers are cheap af on the scale of destiny
Ya, I am questioning how their network guy has a degree when he actually believes his p2p meets client based hybrid server is better.
It's broken the game
a 2p2 mesh network is generally better
when it comes to real time syncronzation at a level lower (less time) than the p2p latency, it just doesnt work.
resident evil's online play for ps2 was broken, keys required for progressing would spawn inside walls and stuff so they killed off that part of the game
depends.
I mean how does a p2p/client based server work in the hybrid sense?
tldr, instead of your computer telling a server that you moved, you just tell everyone that you moved.
oh
Garbo.
the normal way of doing it, is like having the server be a giant whiteboard where you can see where everyone is at all time, all in one place.
I'm tired of getting shot through solid objects because of it.
a p2p way is like everyone shouting that they moved.
it is generally better, because there is no one point of failure/bottleneck and players nearby experiance a lower latency
but because residential connections suck, and players are not nearby at all times, the latency can be ever higher
if the server was on OVH's network (a classicly bad one), it would still have fiber dedicated to OVH to/from each datacenter
Well, I'm not lagging, they are not lagging, but the game is the only time we do lag. I get shot through walls, boxes, I get a kill 5 seconds after I die, and their bullets are not easy to dodge because they don't match when they fire.
This is like every pvp match for the past 2 weeks.
this results in a lower latency because the packet can go to the nearest server, which can then send it over a faster line to the other servers, who can send it out sooner.
so, thats due to latency/synchronization, which p2p is classicly bad at.
my favorite is when we go to orbit, but don't wanna stay in matchmaking we then have to hit cancel 10 times at minimum to even leave that because the first 9 cancels are not registering.
this should explain it, https://imgur.com/iEP01Ee
Okay ya they need to invest in dedicated servers slaps it
you see how that could go poorly with a game?
yes
great for file transfer, that takes on the order of minutes (for things the torrent protocal can help with)
order doesnt matter
and if it takes 50ms for a responce, thats fine.
for a game on the other hand
order does matter
and 50ms is an extremely higher response time.
this is why I'm quitting destiny 2 I feel robbed of 540 dollars. I mean I was gifted most of it, but I have destiny 2 on PC/PS4/XBO. That's 180 bucks times 3.
100 bucks for the base game + first 2 expansions, 80 bucks for forsaken in total.
another 80 if you wanna keep playing lol
i got DOOM for $60, and my brother did for $40
I mean I was mostly gifted this crap, but like I'd feel worse if it were my own money.
that now includes all DLC because id software is baller af
Ya, that's why I'm going back to doom/quake champions/unreal
now, lets ask this question
how can a company make the best game engine (i can back this up), a fucking great game with stunning visuals, make a IMO great 22 year later new version of a classic game, have the best engine programmer write the engine, and sell it and all its dlc for only $60?
the answer, by making a good game, so people buy it, and you get repeat customers, and a lot of them (that are not 12)
John Carmack is the answer.
when he left the only guy who could replace him was the dude who created the cryteks
i have seen no other engine run as well as idtech, and it looks better while doing it
there were two people iirc
hm, hold on
my favorite part about idtech, is that unline literally every other engine it uses OpenGL/Vulkan.
and guess what, Carmack was right
D3D is shit
John Carmack
Id Software```
was that the guy who invented the fast inverse sqrt?
lol and Tiago Sousa is the guy who replaced him
in his spare time he builds commercial flights to space not even joking
and the guy that made quake require not just a 486, but an intel one at that.
if you used a cyrix one, you performance would be about half
not because the CPU had a lower int rate, or fp rate, but rather because it could not do both at the same time.
Armadillo Aerospace is what it was called.
on a side note, the DOOM 1 engine is really interesting
to explain why
the generally thought of as a 3d game, DOOM, is actually a top down 2d shooter.
even though that gives no explanation as to how, it explains the wtf element of what he pulled
wasn't it somewhat fake 3d, though?
100%
same with wolfenstein 3d
the first actually 3d game that id made was quake
if you notice, in DOOM 1/2 there are never any room stacked on top of one another
this is because there is a texture map and a height map, these are both 2d
add a lot of fancy texture processing, and walah, it looks 3d but its not.
I remember watching a video on it that got popular. Funny thing is Duke Nukem and most Apoggee games from that era were 2D
Like Secret Agent and Cosmo's Cosmic Adventure.
any "3d" games from that era, use the same technique as doom
have you seen old games from what became 3d realms?
no
tldr of if a game is "3d" or actually 3d, if it has 3d in its name its "3d" not actual 3d.
the very first duke nukem
SW limitations at the time? bad guess most likely
usually HW limitations
oh
Here was their other big hit at the time next to Duke Nukem
another thing that you may find interesting, OpenGL (and Vulkan) are 2d rendering APIs with depth buffering.
OpenGL 3.0 forward compat and higher versions
GL2.1 and lower operate in a fundamentally different way, and is more of a 3d api
So, how are they not 3d?
how many dimensions is your screen?
you take 3d world date -> fancy math -> projected (field of view) 2d with depth (not 3d)
this could be implemented on a fully 2d renderer
render each triangle to a different framebuffer, use a secondary buffer as depth storage, compress rendering onto main buffer by comparing depth values and writing the one with the lowest/highest (depends on API, and API settings) value
GPUs do basically this exact process, just much much faster.
12 if I throw it into a black hole
hmm?
oh, you were a bit late to be responding to that
there is physical hardware dedicated to frament discard, matrix math, texture mapping, etc.
ya, I was being spammed by someone. But, that does make sense.
ever wonder what a ROP does?
remind me of that again I'm still getting back into all of this lol
if this (https://en.wikipedia.org/wiki/Render_output_unit) makes no sense to you, ill give the tldr.
I was thinking of a type of programming for a second
it bascially handles rasterization and depth testing, anti aliasing, etc.
But, ya I know what that is.
also, by name, writes the render result to the framebuffer.
as the name would suggest, a Render Output Processor/pipeline/unit (take your pick)
So, what do you think will handle rendering and tasks in maya better the 2080ti or potentially Navi/7nm GPUs? I know it's hard to say with navi atm.
depends on the vega GPU
also, only the 2080ti vs 7nm vega?
no quadros?
because quadros will whoop ass in maya
Well, 2080ti and Navi = consumer cards that can game and develop. Heavy dev focus = quadro and vega 20
navi is to consumer as skylake is to desktop...
I should have said gaming card lol
now, while we dont have 2080tis, you can compare the 1080ti and the Vega 64.
top tier offerings from each vendor
ya the 2080ti got delayed until the 27th, the 2080 is out now and matches the 1080ti.
Doesn't the 64 equate to a 1080? Or, is that only in gaming?
gaming
it whoops a 1080s ass in compte
my Vega does 14TFlop compute
and upward of 450GB/s mem bandwidth
14tflop fp32
I do have a budget next fall of up to 1200 usd
a 1080ti does 11.3 by spec
as for 1080ti vs vega64, https://code.blender.org/wp-content/uploads/2017/11/Screen-Shot-2017-11-24-at-16.52.22-1024x562.png
I mean I could get a vega fe basically 64 with 16gbs of hbms 2
a VFE is usually even faster for these tasks
due to driver optimization
butttttttt, if you are on linux the same driver runs on both, and they are basically the same thing
fedora doesnt play nice with the driver, unless you plan to use the inbuilt kernel driver and mesa
what distros work better?
i would recommend using Ubuntu 18.04 and the propritary driver for more performance.
which is what i do
Hopefully ubuntu wants to work this time. Every time I try I get some gnu issue
if you sift through that benchmark graph, you will see that the Vega 64 beats the 1080ti every time
someitmes, quite handily.
ya, I did
the classroom is the most significant difference by the looks of it
Hopefully navi beats the 2080ti in rendering and at least matches the 2080 in gaming.
im good with my Vega 64
i had a pair of 970s, then a 980ti when it was to of the line.
then, i got my first new AMD card
an R9 Fury.
i have sense not bought another new Nvidia card
IMO, the AMD driver UI is better.
Well, I finally got the thermal griz, 1950x, and other new components working. I was mostly AMD like 280x crossfire, 390, fury then I went to 1080 for gaming. And, ya I agree I hate this cluster fuck 2 program bs Nvidia does.
also, AMD is much more baller as a company
Nvidia makes great products
AMD makes great technology
TressFX?
RadeonRays?
Yup, wishing for Navi to be better cuz I want to turn on freesync too
4k monitor with freesync, 1080
their open source Vulakan driver
one company I miss from the common consumer market = IBM
freesync, Anvil (look it up), RadeonProRender, CodeXL, RGP,
and, lets talk about their most baller project, ROCm
you know, the thing that allows you to run CUDA on AMD gpus
oh, the vulkan wrapper
because nvidia is such a dick, AMD went and made their own CUDA to OpenCL suite so you dont need to worry about if the application will run on your GPU because its AMD, it will, despite nvidia.
they have their open source driver
that was mainlined with the linux kernel
so, ya know, a 1st party driver installed without needing to go through the bullshit that is installing the nvidia driver.
and thats just to mention a few things AMD does.
dayum, vega fes are dropping to 500-750 on the used market
i got my V64 for $450 back in November.
I paid 500 something for my 1080
waiting for black friday to finish my workstation upgrades
that was a couple weeks ago though
ya, ebays loaded with those I don't need that much until next full when I do more projects for school and what not. But, as I said if the 2080ti or navi don't seem worth it by next november I'll just buy a used FE
damn it reddit, keep my sort order plz, thx
well, I'll talk to you later my gf made me take something for my cold and now it's knocking my ass out. XD
heh, i should get to sleep myself
school, after school activity, then bowling practice, fucking tired
bowling practice doesnt sound tiring, but when its like 40 minutes of as fast as the lane will go, you get tired real quick.
Didn't realize bowling still existed. Most places here closed down
It's still a thing
Quite a fee alleys here in San Diego
My personal favorite is my local one, not because it's local but because it's only 12 lanes.
I haven't bowled in 15 years. Was toying with games and coding mostly reading game making books by guys like Andre Lamothe
Oh, I just workout. I just had to go to PE for credit. Did that senior year. Mostly focused on computer courses.
Mostly typing, editing, and light html. They didn't give us programming until college. For me it was alice3d, raptor, pyyhon, vb, and java.
Also, it's 1 day a week, for a couple hours.
It's not expensive, and it's a nice to hang out with fiends and make fun of them (I'm better than most of them)
Heh, no programming until college...
I would consider myself fluent in c++, 11th grade
This is after Java.
Not to mention GL and vk.
Ya, programming wasn't big until the 2010s in most of America in grade schools. So, schools adopting it is somewhat modern outside of a few exceptions
I graduated in 2008, got my first degree a bit after going to work on my second next year or in 2020 to do a double major
Noice
what's funny is people downvoted the fangirl and people are now pissed off at bungie even more because of my comments.
reddit?
I love how only 2 people use this. And now I want to make it 3. Have you tried Solus?
@proper gale Bungie's forum
huh
Where the comments are.
Oh wow, now the entire forum is calling Bungie incompetent. XD
We have always said that even back in d1.
Ya, but they haven't been this vocal about it on the forum. Loyal players are leaving now in greater amounts than with vanilla d2.
I just like the fact that they always brag about how big their development team is, but they're not really that great either.
@ember torrent what one developer can do in one month, two can do in two months.
adding more people do the development of a project doesnt scale as you may think.
Well, Bungie is bragging about how large their dev team is in the sense that they're also good at what they do.
espically when the people are not good individually
I mean I know they're not good. I'm just laughing at their bragging and claims.
Because id is actually competent
exactly
and id looks like a bunch of bumbling idiots compared to kernel devs
correction on Bungie's employee count, there are 875 of them.
Well, id has Tiago Sousa who is a better dev than anyone at Bungie lol
He was Crytek's principal graphics engineer and replaced John Carmack
This is pretty specific, but to;dir I have a system I want to use for a machine learning program that'll rely mostly on the GPU(s), but the CPU itself doesn't support the AVX instruction set (it's an i7-970, so 6c 12t is cool)
My question is if anyone knows if the lack of AVX will be q huge hinderence or nah
I’m creating a client/server application in Java however I don’t want the server to immediately do a socket.accept() on the client socket which would allow a potentially malicious person in, I want it to pass through an if statement and if the remote address has been added to the blacklist then it closes the connection, otherwise it accepts
@swift niche To learn? don't worry
@swift niche if you're going to be doing most of the work on the GPU, I don't think it would be a big issue to not have AVX because any time you need to vectorise you'd probably be better off using the GPU anyway
The Mortis strikes.
No clue if this is the best place to ask but:
Would there be by any chance a docker that can manage any amount of java instances? Where you can just create a few batch files to load up, with a console in the browser/commands to control the instance? maybe combines with some log of cpu/memory
Could you explain what you want a bit more/differently @fallow lantern?
Typically a single Docker container will hold a single instance of some application (in your case, something on the JVM). I believe the Docker daemon already exposes information regarding container resource usage, but you'll need to handle application metrics. You can find third-party tools to manage these containers from a web interface.
Well, i got the idea from Minecraft, they have dockers that can run multiple servers within a docker, I use a VM right now to run a few different java servers including a Minecraft server, but i would like a general JVM solution without having to create a docker for every single server, both because I would have no clue how and if you can do it with programs that are not opensource and I just don't want 10 dockers running different java servers
they have dockers that can run multiple servers within a docker
What do you mean? There is no reason to have multiple instances running in one container. That kind of defeats the purpose.
You can have multiple containers running, each for a single server. You will have one Dockerfile to use for Minecraft servers. When you are starting a container you can specify a port on the host machine that will forward into the container's 25565 port.
Then you can then bind them together with whatever proxy suite you want (whether that be BungeeCord or LillyPad) so that they act as a single server, or treat them as individual ones.
If you could share some more details about those ten different instances you want running (what is their purpose? what kind of server are they?) we may be able to help out some more
From what you have described so far I'm gonna recommend leading away from Docker, and trying out some game panels. This is one that's fairly popular with Minecraft: https://pterodactyl.io
The open-source server management solution.
I just want an easy interface where i can add jar files, and start them
There's also Multicraft, but in my experience it kind of sucks
Ok. Where are you planning to running this?
Some dedicated Minecraft hosting provider or are you leasing some VPS/dedicated server?
I have a server at home
Is there any reason you want to use Docker in particular?
But now when a java server shuts down, i have to remote in to my vm, and thats not easy if i'm on my phone, and windows ignores my setting to not update
Would you be comfortable with a little bit of command line work if you were to use Docker?
I would really like if there was a solution with a web interface, file upload doesn't have to work from a web interface though, just start/stop and maybe a log file or something from a web interface
What is that VM running?
At this moment, judt a MC server and a spring/hibernate jar that i made, a little project
As in, what operating system is it running?
windows pro
Oh alright. I wasn't sure about that yet.
i had windows server but i'm not a student anymore
Are you exposing those Minecraft servers to the Internet? Or is it just a home fun thing
exposed i guess, i have some ports forwarded to the internet
Ok
got owncloud and webserver running
Maybe (as you wanted earlier) 10 Docker containers each running a server, then something like https://portainer.io/overview.html to look over them?
Portainer is a simple management solution for Docker. Easily manage your Docker hosts and Docker Swarm clusters via Portainer web user interface.
If this sounds alright, we can help you get that all setup.
You can set those containers to restart automatically too
This would require a little bit of maintenance, but it shouldn't be too bad
my server is unraid, so i guess i got something similar to that no?
Oh. I'm not familiar with unraid at all.
Oh alright, cool
Ok I understand what you're going for now
Is there a reason you can't just run multiple containers? Instead of needing one container to hold all of the servers?
but i just dont want to flood the list with all java dockers, and I have no interest in learning how to create those dockers in the first place at this moment
Hmmm. I'm not sure what to tell you. I'm not saying you can't run all of them in one container (you'll need to manage that yourself), but it will not be that fun. As you'll end up doing the same thing you are now; having to go muck around inside that container to fix a single server.
I can help you setup a Dockerfile for Minecraft, but not running them all in one container. It's just a bad idea, though I get where you're coming from.
Well since Minecraft has this idea worked out, i was hoping there was a more simple idea for just any jar file without all those Minecraft specific variables
Hmmm, what do you mean?
As in you want a single Docker image that will work with any JVM application?
yes, but a few months ago i found a docker that could run multiple mc servers within 1 docker, so basically that idea for any jar file instead of only mc
within 1 docker
What do you mean by this?
i'm sorry, docker is a bit new to me, and unraid does most for me
no worries (:
well no, i was just trying to find it again, but can't find it, also on my phone right now
i think this is an example
Yeah, I mentioned using something like that earlier
You can use that? There are instructions on the README on how to set it up
but i would also like to run my hibernate/spring application within the same container
Why?
because then all java application are within the same manager, and not pread around in 10 different interfaces
spread*
but they are completely different things
It looks like unraid already provides a way for you to interact with these containers
mineOS (or whatever you end up going with) will be the central place for you to interact with Minecraft scoped stuff
then you can manage that h/s application on from unraid?
It would be like having the GitLab container and Redis container in the screenshot you sent earlier managed from each other. It doesn't make sense. They are completely different applications, though not necessarily decoupled from each other.
Unless I am miss-interpreting what you are trying to accomplish
so a different container for every project i do? and ending up with 20 containers?
That is the point of Docker
You can use Docker compose to manage applications with multiple components (i.e. containers)
Though a single Docker container(/image) should be one component
in unraid you only have a single docker image
hmm
If you mean unraid is one image, then yeah. It is one application.
Though from your screenshot I can see multiple containers each running a unique image
What do you mean?
I assume that's where all of the distinct images are?
because I know this is not all one image
That image is on the same level as a Windows image
Yep
It shows all of the Docker containers running on this Docker host
Docker containers are just an instance of a Docker image
So a Docker host (think that "docker vdisk location" you showed me) manages a bunch of Docker containers
Docker containers are started based upon a Docker image, which are created with a Dockerfile
You can have a bunch of Docker containers running the same image
In your case, one Minecraft Docker image
Yep
Those two things are running the same image
Granted they may be a different version of an image, but they are the same image
yea, mysql f** me with 8.0, so created a sexond fixed version to run most stuf, and keeping the other to test
the authentication changed, and recently my php sites didn't like it, i'm also unable to log in from anything but console
before 8.0 worked fine with php
anyway thats indeed for another time, it works for now
Ah, I've ran into that before. You can set it up so that it has legacy auth support.
oh
This way you're running with the latest MySQL server version, but still able to use the same apps and such
cool, i had a fun weekend, spend 6 hours to find nothing ending up doing a dump from console to run it again in a fixed mysql version
that's how it goes usually
anyway, back to mineos, in that web interface you are able to set up multiple servers, i would just like the idea of having that working for any jar file, without stats like 0/20 players so it would work for any jar file
and that you can start/stop them from a webpage
in a single container
i guess it's what docker does aswell, just don't feel like having 10/20 containers for just different java application
The project I linked earlier is a web interface for Docker
I think it will satisfy what you're looking for
I'll look into that a bit more, time for me to sleep, past midnight already
Here is an example: http://demo.portainer.io/#/containers
I created a container called ltt-discord-test running the nginx image
username: admin
password: tryportainer
You can interact with that container from the web panel. View logs, restart it, etc
If you deployed what you want, there would be 11 containers there. That is the point of Docker, so don't worry about it.
You can name each one, etc so that each one is easy to find
I'll play around with that tomorrow, thanks already, at least have learnd a few terms about docker and containers 😄
np, sleep well (btw, that demo resets every 15 minutes; so it will not be there tomorrow)
We doin' Docker now? lol.
those defines LOL
"I don't want to write C, so I'll just make it look like basic or whatever"
my assumption would be integer overflow
so you may want to use a long instead of an int, resp. double instead of float
@tired bridge hmmm... i got a positive number https://onlinegdb.com/BJUU70wF7
His code is.. weird.. and freaktechnik is correct, need to use double.. because the 'answer' is 4633166637576240462800758953941617252961510218880920244919657663465236325203968.000000 🙄
And heres his code written sensibly.. ```#include <stdio.h>
int main (void)
{
double i = 1.7;
for (int j = 1; j < 100; j+=2)
{
i = i * j;
}
printf("'%f'", i);
return 0;
}```
@tired bridge wtf have you done with the syntax hahahha
this meme again
i for one appreciate it
@tropic grail I do docker daily at work. I have large website that request a network on containers to run. then that gets deployed into AWS fagate.
Uhh, I don’t understand your guys complicated code but uhhhhhhh here’s some code I wrote as a joke in pascal
Program normieTest;
Var
ChoiceNum : integer;
NormTestNum : integer;
NormAnsNum : integer;
Begin
Writeln(‘choose a number, if it’s our math makes it even, it’s normie’);
Readln(choiceNum);
NormTestNum := choiceNum * 2;
NormAnsNum := normTestNum Div 2;
If(normAnsNum=choiceNum)
Then writeln(‘wow that number was really normie please delete your account’);
Readkey;
End.
Honestly idk why I make these anymore
what

@deep scarab I think you mean "Why?"
Would it be possible to script my NodeJS Discord bot so that if a member deletes a bot command message, it deletes the bot’s response as well to protect privacy?
Each message has a mentions, key, you could find a message that is from the bot, mentions that person and close to after the post.
This may not be the best way, but you could simply:
- Store the
message.idof the request and the response messages when a command is fulfilled - After storing, delete the messages routinely where the request
message.idno longer exists. - Perform clean up as you go, removing old response messages to be safe keeping the count low.
Note I have not looked into the Discord APIs, so this is from an outside perspective, there may be easier ways to manage this.
Look into Gateway Events such as Message Deleted
(https://discordapp.com/developers/docs/topics/gateway#message-delete)
to detect when a message has been deleted, and perform the appropriate action.
Step up your game with a modern voice & text chat app. Crystal clear voice, multiple server and channel support, mobile apps, and more. Get your free server now!
@tired rampart what IDEs do you use?
eclipse for Java, Visual studio when dealing with M$ crap and Atom for literally everything else
vim when in terminal
eclipse, :reee:
VSCode Mustard Race
Visual Studio for everything (trying out JetBrains suite)
VSCode for anything that doesn't compile. (+ lots of RE tools)
But Jetbrains is expensive.
how can you delete a package you installed on ubuntu such as docker or any other packages? Is there a particular command for the terminal?
apt remove <package-name>
After doing so, apt purge <package-name> can be used to clean up some extras.
You can read a bit more about this by doing man apt; under the "Description" section there are a few paragraphs explaining the install, remove, and purge commands some more.
The name of the Docker package depends on the version. It could be a few, though recent versions are named docker-ce (assuming you're not an enterprise customer)
Here is the documentation for that: https://docs.docker.com/install/linux/docker-ce/ubuntu/#uninstall-old-versions
@proper saddle how so?
It's expensive for poor people like me. :<
Especially if you need/want the entire suite. :|
Though, it gets cheaper.
If I had a jerb I would probably sub to it if I used something that couldn't be used with VS IDE
I'm not a student anymore
@proper saddle they disabled your student account?
The systems over here are very lax with that
Yeah at the college I went to they delete your email if you're not enrolled anymore.
Wow that's rough
Guess we got it good here
They left all students access to the free software
I've moved to a new university
And they are opposite
But previous schools no
But I also haven't been in college for 2 years, I didn't graduate and it was a community college so shrug
when you spend 45 mins making a program to translate c structs with bitfields to java classes, but you realise that you could've done it manually in half the time
Yeah lol, that is the engineer problem
"How can I never do this task again, without spending the same time it would take to do it manually many times." lol
That reminds me, I wrap any useful tools into a "gogo.exe" program.
Added the build directory to the PATH environment variable and use reflection to resolve the names, types, input, casing etc. so that if I want it to do something new, I just add a well named function in there.
Entering just the name of the functions prints the params and a usage string.
I can call it from the command line or powershell. very handy.
The bonus is you get to work like Inspector Gadget, "gogo NeatUtility param1 param2"
@proper saddle I see. Actually it's only been a year since I left college. So idk if on year-2 they will drop my account. Its quite a possibility
Thanks @split condor
I don't remember my info to my free version of intellij from being a student 😐
So i bug my friend into letting me use his
Just lazy over here
uh oh, didn't expect a development channel here
this is only one of those things.
Anyone here mess around with cpanel?
ive used it, but never set it up, dont think that counts
@tidal tusk what do you need to do?
num = 75;
reversenum = 0;
while( num != 0 )
{
reversenum = reversenum * 10;
reversenum = reversenum + num%10;
num = num/10;
}```
hello peeps, my programming shenanigans continue.
I am confused as to *how* does this make thr 75 into a 57? Or if we take 63 to 36. Can someone try to explain?
do you know what % does?
so if you step through the code, what is it doing?
yeah
but it still gets me a reverse number
oh wait
yeah
LMAo
0
5
7
then
50
50 + 7
0
O
WAIT
that was it!
so do you understand what the separate steps do?
I didnt take it as an int
Yeah, now i do after you mention that the last one was wrong
damn i can be hella dumb sometimes
Thanks alot :P @vestal glen
np, my pleasure being your 
rubber duck debugging is a technique to find out why something isn't working as expected. Look it up.
it's kind of what I made you do, except that it wasn't to find the fault in your code but the fault in your understanding of the code 😉
@ionic hull Im trying to find a way to log cpanel logins into a mysql database
Shared hosting?
/usr/local/cpanel/logs/access_log
If you are using shared, search for a folder which the a dot ( .cpanel ) if not mistaken
@tidal tusk
I have my own vps and I want to track my client logins I understand I can check access_log but how can I pull that data using php (maybe explode? and insert it into a db?
@ionic hull
right to left throws me off big time
@ionic hull you could explode for the lines then use regex to grab the values before you send them to the database.
(?<=[^_])((?: [^" ]++)*+((?: \-)*+[^ ])++)++
This RegEx pattern should work for you given the input of the CPanel access_log
1. Just open the file
2. explode with "\n" newline char
3. start a foreach loop to iterate the lines
4. use preg_split($pattern, $line) to get the values
5. store them in a collection
6. open the connection to the database
7. generate the query and go from there
That is one way to achieve what you want.
Just take the usual precautions when working with databases.
Mwahahahahaha my chess bot is almost complete. I will rule deh world! http://i.aeternumstudios.com/DiscordCanary_2018-10-02_10-00-56.png
Looking really good @nocturne galleon
Does anyone have the sharex upload photos script?
To store images on the server
that's pretty cool aeternum
i will admit that... i still don't know how to play chess
@nocturne galleon I saw someone that made a php script, but I didn't save it
And does the chess bot use images?
Gross. Php
:)
Yeah, I use a rendering API.
You can change anything you want in that url, like the FEN or the orientation or the coordinates of the two blurple squares etc and tge API returns the chess board.
And then since these images are really big, I have a low bandwidth mode which uses only pure two color black and white images and makes them about half as big, or an ultra low bandwidth mode which is just text
The lowest setting between two users is what's used when they play.
If you don't use low bandwidth I also support custom pieces, so you can earn coins by playing and spend them on different set styles which I make all of.
And then whenever you play someone it renders your pieces
if apple did their job properly there shouldn't be anything else to say though.
@nocturne galleon looking really good, congrats
Hey guys, so I accidentally made a script that removes the windows watermark - anyone interested in the application?
@nocturne galleon that can be done by buying a product key.
@native shoal but this could be helpful to someone such as ltt who may not want those watermark but also cant afford the time and hassle of activating every windows with a valid license
you selling it or just giving it away? @nocturne galleon
tag one of the ltt staff about your program too
they would want it
@nocturne galleon im pretty much giving it away - i dont know what else to do with it ;-; if you would like a copy just dm me i suppose ::) its onlyt 15kb and doesnt need an installer to run either
@wild birch is the ltt staff interested in such software?
most probably
as long that it dosent count as piracy
is it piracy ? @nocturne galleon
i dont know which is why im not releasing this publicly just in case i get sued by microsoft or something,
but i have been popping in peoples dm's to distribute the software
what programming languages do you know?
i used visual basic - i also know python, a lil bit of html and err thats about it tbh
im gonna probs move to c# soon tho
what is your program written in?
visual basic,
would u like the code?
nah
im good
^^
im on my mac now
oh
so...
Punch cards is how I program cause i like to be ultra proficient.
lol
is it possibe to write an aimbot in swift for mac?
hmm, mostlikely yes, look for color detection code, and a mouse control code
ok
then using that you should be able to get a start on basic tracking of moving elements
one thing i recommend is making the mouse speed random using random number generation that refreshes every so often, that way itll be harder for anti cheat to detect its an bot
ok
im gonna learn swift
if you don't already know swift and want to make a aimbot you should probably just learn C++
why?
Run on linux, mac, windows.
some people also use objective c to code on mac,
idk anymore about windows
i worked hard to get a mac
im learning swift
Also if you plan on doing anything with memory
then ill learn either: andriod, java, python, C++,or JS
JS is currently my main. (What I get paid to do at work lol)
how much do you make?
Kinda wish it was something else
if u dont mind saying
hmm im still not sure if its worth learning c# or should i skip learn c++?
id go for c++ cuz i wanna hack fortnite
c# is pretty capable tho
go for both
C# and then c++ is sensible path
you got a reason for that?
I'll say over $50k But my review/raise is next week. 1-1/2 years professional experience currently and an associates degree.
yeh i guess ur right, go up in tiers of difficulty.
If your new dev, would not even recommend c++ as first language
shadowcraze you went to college?
Java, python and c# are firsts
Yes
yes
started with basic ;-; pretty similar to c# from what i can tell
vb**
how many years of overall programming experience?
@nocturne galleon I think in years past yes visual basic is also a starting langauge
I dont see it too often besides office
Ehh... I did it on and off since I was 14... Started with C# and Dark Age of Camelot freeservers.
I'm 28 now. But id say legitimately if I had to compact it I'd say 4 years honestly.
why?
i can make decent applications with vb, like a flux replica or something
TTR GE??
It was for a defunct Disney online game
lol
Basically like a cheat tool
oh cool
It's on google if you search
That's the most I've done
The name stood for toontown rewritten game enchancer
Lol good times
hmm most ive done is probs give an idea to one of the top devs of ios jailbreak and theyve been working on it since then, it was an alternate method to substrate which i spoke with a user named foxlet fox,
I should probably stop reading this chat and do some work lol.
@glad terrace it's easy to get sucked in trust me
yeah
then my second most amazing thing is probs my recent application which removes windows watermark on non licence copies
@nocturne galleon well it might be good for linus to use just for the sake that it wont appear during his videos
Because he just.installs and nukes them anyway
yh true,
dont know how id get hold of linus to pass the program to him without making it seem its some sort of a malware...
I currently program the digital menuboards for McDonalds and Taco Bell 😛 (The fancy screens you see inside the stores, some of them have them in the drive through also)
thats impressive,
Not really
;-; thousands of people will be using those boards tho,
Millions served! lol
yep, and they all used something which u coded, that is pretty impressive imo
@glad terrace does that include the boards with touchscreen to order?
No
Man
Because I noticed that some items are.missing
In the items you can order
4-piece chicken nuggets not there!
man needs his nuggets ;-;
That may be another department in the company I work for but I don't know about that.
I'd like to tell the dev to add that option because 6- and 8- cost more
lol
Yeah, I don't have any hand in that. I don't think our company actually does those. It's probably the company that makes the Point of Sale
We do handle Starbucks indoor digital menus also but it's not widespread quite yet.
are the programs developed for custom hardware or general purpose machines?
IDK how much I can say exactly but they do run on custom hardware. I won't say anything else on that.
oh, interesting... thought it may run on some gekko raspburry pi or something, i mean those could probs work too lol
syth
ye
maybe tag jakkuh about ur program (its a bit risky tho ask a mod first, mr cubeman is good)
You'd be surprised how much code there is for the menu's. It needs to handle all the different variations of stores. Some don't sell certain categories.
And security
and some other stuff. RPi would be unreliable to run 24/7 for 5 years imo.
5+ years
DM?
ask mr cubeman
first
@nocturne galleon srry to disturb ur game, i wanted to ask a quick question;
he wont see it
hes on dnd
;-;
Well
I always see it
0.o
I'm just in DND to turn off the noises and so people bother me less
lol
what's up friendo?
i made a program which removes the windows water mark on non license copies
u think ltt staff will be interested??
I doubt it
why
are they evil off camera?
LOL

no lol
It just doesn't really matter.
@nocturne galleon u know anyone who will be interested by any chance?
mac users like me with unactivated macOS cuz we replace our graphics cards every day 
jk
lol,
mac is different
I use a mac for work.
i switched from windows
I like Mac better than windows 🖥
Mac for productivity
both are good
development
True
windows for gaming
I need to learn Docker...
I use docker a lot :P 100% look into docker-compose
I want to learn it for my personal projects so I can dev it on any machine and deploy to my 'server' easily.
@glad terrace you make 50k a year or a month?
HAHAHA a month? I wish!
It's over 50k but yeah
I don't think there is a dev anywhere who doesn't own his own software company that makes anywhere near that.
50k/month
bill gates does lol
I'm on £25k a year before tax.
ah but thats why i said own his own software company
For him specifically lol
Are you a dev?
@tropic sapphire dev as your job anyways? 😃
@glad terrace I turned down 20k/month - and I don't have my own company 😄 It's all about being good at what's needed and nobody else knows / or wants to do 😄
Thats an insane amount of money lol. There was a 3 month contract I was offered but it was only 13.3/k a month and I'd be jobless after it. Not worth it IMO lol. I like stability.
Kinda the same deal, though this was a 24 months contract with option for renewal... But the travel time and the "uncertain" after the 24 month I don't like
Travel is yuck =P
I settled for 12k/month for way less travel and a buttload of bonuses like free car/internet/phone/equipment and around 100k I can use on education
That's awesome. What do you work on?
@nocturne galleon nice, can you send me the code pls?
Networking & Security and embedding systems on the side. Think bootloader software to your electric meter
Generally think of programming without ever using the word new and delete xD
I'm currently basically a web dev which was the last thing I wanted to do initially but it's not too horrible lol.
And then try to make it multithreaded and threadsafe
Yep - I keep my hands as far as I can from anything with an UI 😄
We get our designs from our clients at least but it needs to be as close to pixel perfect as possible.
Yeah - I would just get mad in the end.. I'm way to "perfectionistic" as in.. If I do it, it has to be pixel perfect on all screens you can ever imagine..
So - I would never get anything done
Yeah haha. There's like over 1,000 different permutations.
I'd love to do hardware integration type stuff. Or robotics of some sort but I don't have the money for the education for that lol. I'll be limited by my associates degree for quite some time probably.
HTML9 Responsive Boilerstrap JS
tweetybirds
h t m l NIEN
@glad terrace yeah I work at a financial software company, we create software for managing debt.
I left uni 2 years a go and have been working here a year. So I don't think it's bad for a first job. :)
how much do you make @tropic sapphire if you dont mind me asking
@nocturne galleon 25k a year works ok 2 k a month and 1.8k after taxs
oooh ok
that is pretty good
for a second I thought you meant USD or something
it is pretty good yeah, I wouldn't be able to live on 25k usd 😛
yeah lol
Is C# a good choice of language for running a web interface for managing servers?
With C# you might want to look into Linux portability to see if that may be an issue.
I could use Mono
The reason that I'm aiming at C-based languages is because they have more access to the system than say Python would
I have a new plan for a Development laptop... http://www.eluktronics.com/N131WU-BYO/ + https://www.amazon.com/gp/product/B01N7K4DV4 + https://www.amazon.com/gp/product/B07BN5FJZQ Any other ideas? Whatever I get I'll be wiping it and installing Linux. ===== TOTAL: $938.15 ======
https://www.gearbest.com/laptops/pp_786411.html?wid=1349303 This is the closest I could find. Only 1 ram slot though and still over $100 more.
and it't not a QHD display
looks like it also only has capacity for one external monitor
slower ram also
I think it depends on what language you are programming in, an i7 would be really helpful with anything that uses Visual Studio IDE (C++, C#, and stuff...) or equivalent.
Is VS really that resource intensive? 😉 Really, what you'd want a stronger CPU for is compiling code. If the compiler supports parallel compilation you'd even want more than one core...
@vestal glen yes it really is resource intensive
I have 8700k and sometimes debugging a project takes some time to process and add a delay to bring up the program
I'm sure vs code is lightweight
Vs code isn't exectly lightweight but the debugging it does is much less resource intensive due to it inspecting jit in real time and nit having to do the same symbol magic...
@native shoal @little knoll but is it worth it 300$??
Sure you would wait 5-6 seconds more ( depends on how big the project is, but sometimes it isn't worth it
You gain in compile time, so it may be worth the money.
And also, if you need VMs, for any reasons, more cores may be really useful if not mandatory.
It was the main reason why I took an i7 (7700HQ) model for my XPS 15
@little knoll I am going to do the same. Opt for the i7 model and add 16GB RAM
I'll be running my next project in docker containers (Database, backend, 2 website frontends, JIRA Server, GitLab) Basically my entire server for dev and easy deployablity.
Compartmentalize everything lol
I want my dev laptop to be as robust as possible for under $1000 USD
I also own/use all of Jet Brain's software.
Jet brains pretty good software set yeah
@glad terrace I have a Lenovo T520 at work and I run a network of containers on my laptop
Main docker is the gui and web api from there I have mongo db, redis a websocket server and a RabbitMQ.
I5 and 16gb of ram.
Images are build and push into aws fargate, though will be moving to code pipelines so I see can build them.
I have a t420 it's 👌
They aren't bad laptops, I can build the main docker about 2 mins though we have a 22 core server that mighty faster at building images
@tropic sapphire basically I want to spend about $1000 USD and get the best performance I can get for that price.
Does someone use Eclipse CPP Photon ?
Why when i starting to install it, it just shows an error message
Java was started but returned exit code=13
.....
Hi
Hi
@nocturne galleon - Make sure you have a 64-bit JDK installed.
@glad terrace the best thing you can do for docker performance is run linux. Not being a fan boy here.
In Windows and mac docker is ran in a virtualised environment where as on linux it runs on the host kernel.
Though the speed is only about 5% lower you lose a lot more in over head for I/O mounting volumes or network traffic will be much slower on Windows.
If you do go for Windows go for 8th gen i5/i7. If you're using node add node-modules to .dockerignore
@tropic sapphire Yeah no. Only time I use windows is when I'm gaming. I have a Macbook Pro for work, a gaming PC Desktop I built at home and soon to have a laptop running linux (Think I might try Pop OS https://system76.com/pop)
How could I export only specific packages to their own JAR in NetBeans?
Everything I’m finding online is how to export the entire project to JAR
@jade nova that looks like a very nice os.
I will install that at work :P
I have all my fines on a second ssd so I can do what ever with my os.
Wrong quote my bad
@glad terrace why a macbook
@impulse9 Web development. Compile time on a windows machine is like 20 minutes while on a Mac or Linux it's under a minute.
@glad terrace I've never had it that bad but when I had Windows on laptop docker compose would take about 4-5 mins on linux is around 2.
The server we have builds a little over a 1 min.
I don't use docker at work. Gulp transpires, compiles, and zips up everything including over 1000 assets.
Our old front end uses gulp it's horrible -.- all new uis are angular 5 or 6.
gulp isn't a framework

can anyone here recommend QT for c++?
I can, yes.
👌
Any good payment gateway with BTC and PayPal?
Spent all day working with paypal's api
Then to realize that you must have a business account ( and verified )
Do those 2 separately, bitpay is fairly decent for btc/bch
is it possible to self host this on my existing server?
https://github.com/skx/dns-api-go
I'm assuming this uses my servers dns resolution to perform lookups?
The code behind https://dns-api.org/. Contribute to skx/dns-api-go development by creating an account on GitHub.
Yes you can run it on your own server
if the office 365 suite is made with c++, what gui library do they use?
python help
@nocturne galleon iirc uwp for deaktop, for mobile/Web it's UI-fabric which includes react as far as I can tell
Hi guys , I'm learning c in my school and have to make a library of the functions we previously created.
How should I do ? I have the directory lib / my / libmy.a and have to make it here. should I put all the " .c " files of my function in this directory then compile it? Or write all those functions directly in the " libmy.a " file?
Edit : Sorry if it was a bit to specific, but I don't have that much time to use the forum ^^.
Are the instructions you received that unclear?
First section might apply to you? I don't remember any C lol https://randu.org/tutorials/c/libraries.php
C programming tutorial
Haha yeah the instruction was really unclear, it was a 4 min video with a shity example, reading this link clarify everything, thanks ;D
Hello
I'm writing a paper for school about the application of neural networks and am intending to make a working example that simply recommends songs to a user and refines the song recommendation based on user rankings of the song, through some level of artificial learning. is there a specific programming language that y'all think might be most efficient to make this?
python comes to mind
What’s the best language that compiles small executables so that it can be run on embedded and micro PCs like Raspberry Pi with ARM processors?
@jade nova c
@random bough Python
@jade nova try gcc -Os to optimize for size
@nocturne galleon python isn't small or a binary :/
@tropic sapphire looks like lima responded to the question about neural networks, not the one about embedded applications 😅
on XD
oh
python is correct answer then 😛 I actually found this
which looks pretty good
When I was at uni, a friend and I managed to create a neural network in NXC the c-like programming language for the lego mindstorm robots, and it was a complete accident 😂
We used the mindstorms colour sensors which provided RGB values and then determined what 'colour' they were. e.g. red vs purple vs blue etc
@granite fog that sounds awesome 😛 nice when things like that happen
that sounds pretty sick!
I’m making a program in Java which gets all of the local accounts on a Windows system into an array by looking inside the C:\Users directory
Only one small problem is that how could I remove the “C:\Users\” prefix from the account usernames?
substring?
pretty sure you can also use regex
"C:\\Users\\Admin".replaceAll("C:\\\\Users\\\\", "")
😬
yikes
yeah substring is much easier to look at
Another way is to split the sting on / and get the last element with .pop() assuming that's in java
Thanks, i solved my problem already 😄
What do you guys think about that type of organising you programming project?
khazakar@dellprecision5510:~/Programowanie/ESP-OS> tree -d .
.
├── 3rdparty
├── bootloader
│ ├── include
│ ├── re-code
│ └── src
├── firmware
│ ├── include
│ ├── re-code
│ └── src
├── kernel
│ ├── include
│ ├── modules
│ └── src
└── userspace
├── include
├── services
├── shell
└── tools
To bad?
lol
@nocturne galleon impressive! 😄 how'd you do the chess board?
Looks like an embedded image.
Anything, like Python or something.
alright
Anything except Prolog haha 😄
yeah python is quite good to start with, learning it myself rn 😄
c/c++
I learned python and it's a great scripting language.
I used to write bots and web scrapers for people.
I'm now using nodeJs at work.
how is npm treating u
@spice hatch python is fun, especially if you get a raspberry pi. C++ is also a good starting language. C isn't necessary, but it provides an educational foundation. JavaScript is good if you have any interest in web stff. Don't learn Java, screw Oracle.
@agile nova the board is rendered via a web api from a FEN which is a chess notation that stores the contents of the board.
Each game session is assigned an uuid and the fen is stored and updated there.
Pardon the orange and green, Halloween theming
trying to wrap my head around it, sounds pretty cool
Been working on a Discord bot that will eventually need generated images
dang that dark board looks great
assembly is obviously the best starting point
What is your server load/bandwidth usage like? Looks like you’re sitting behind Cloudflare, so I’m guessing you’re trying to hit their cache mostly?
Though I don’t think you would with that URL layout on the free plan
lemme quickly pop netdata on so we can check
I checked and every request was missing the cache
thats because its not cached in teh headers
Huh?
Cloudflare appends a header letting you know of the cache state
cf-cache-status
That’s what the atm says when i try to withdraw
XD
Why wouldn't you want this to be cached?
because the board changes every turn?
why would I want it to cache?
the likelyhood of you ever seeing that exact image again is like 1 in a million
that url above is direct access to the api, so i can generate custom boards for like, making documentation and whatnot
but normally games are all under sessions as well
like thats live from a game currently going on
this image will never again be requested
ever
because the session ids are uuids and the liklihood of these two people making the exact same moves again to reach this point is also super small
caching would be pointless
How you have it setup, yeah it would be. If you're running this at a decent scale, I'm sure you will eventually hit repeats of boards.
uuids
No reason to generate the same thing