#development
1 messages · Page 27 of 1
i have stock FF quantum, not sure if it was using ipv6 or ipv4, probably both.
Although I’ve got 16gb
and 40+ tabs
Holy hell
What do you have open?
Firefox <3
uhhh, documentation, more documentation, stack overflow, etc, etc, etc.
there were about 10 oracle tabs, a few python ones, some jetbrains tabs, and im not sure about the rest
Ah
it was about 2 windows wide of tabs.
Yeah I’ve been doing dev in vms
Lol
i have the ram/CPU for that, but i need Vulkan support (make a guess what im doing...)
Deep learning?
no, that needs cuda/OpenCL (ROCm) support.
Oh duh
i am doing that, but thats on linux, this was on windows.
moving this to linux, but i cant get my 970 to play nice with my Vega at the same time...
nouveau shits itself, and the nvidia driver steps on the AMD one.
Yeah my Linux distro corrupted so I’ve been working on rebuilding the os
Working off a custom bsd build
Need to recode 1000+ lines
why?
It’s a private bsd version of parrot, and while developing an exploit I forgot to activate the sandbox environment and it basically encrypted the entire system with no decryption key
oh fun.
it doesnt load for me.
Really?
I think I need to remove some code
It must be https
I’ll change some formats and stuff
The site is huge anyway
I can't even reach the server too
but yeah, it's the https
check your firewall or webserver config :P
Discord is so much broken since some days... Loading icons aren't centered now...
I pushed a random quote gen app to Heroku. :V https://icebladequotegen.herokuapp.com/
still can't reach it with https
ah no, server was just slow to respond
I don't have sound so can't listen to the sweet homepage music, but nice ASCII art there
but yeah, except the ASCII page, everything is slow to respond
For me it was like 10ms
Super quick response for me
Fiddler shows nothing errant either, that I noticed
you can optimize the gif further. maybe try varnish to push the gif together with the html. or try to encode the image as base64. maybe also the sky.jpeg
wierd safari loads it pretty quick but chrome seems to be slow to connect
maybe chrome doesn't like the ssl cert
This project was written in C# using no external libraries. Everything is rendered in real time on my laptop. The engine features flat lighting, and texture ...
Edge improves even more with its latest preview (Mozilla better do something at some point...)
Service Workers and OGG Vorbis/Theora 
It's still edge, not using it
don't you have to install a thing from the store to get ogg codec and container support?
Edge releases are still binded to Windows 10 releases
So you have to be on the Insider Preview to get access to it atm
(also, probably linked to the whole spotify is the new groove thing...)
thats old
But it's still funny. xd
It's not even that bad in certain scenarios
What? That's horrid.
can someone tell me why the except file not found doesnt print out what its supposed to?
Anyone do Arduino or Raspberry Pi here? I want dev friends lol
Cool, any interesting recent projects?
well i recently started a arduino project
its a 64 endless pot midi controller each pot is clickable and i made the code for it to run pretty basic stuff so yeah
i put more work on hardware than software most of the time
im making a full size darlek with a nas serve inside all run by a pi
cost abote 1.5k so far
@proper gale Syntax can be used to extend a language in certain situations, especially around clarity
Only if you're modifying it
It's a very good way to show that something shouldn't be touched
But still show the inner workings
THAT IS LITERALLY HALF OF WHAT CODING IS!!! botcase botcase botcase
As long as you use it with a comment explaining so and only use it absolutely when needed
The other option is just one lining things
making code easily maintainable, readable, and fast all at the same time.
the other option is being a comptent developer
Part of making something maintainable includes making sure people don't change shit they shouldn't
thats called not letting it pass peer-review
That's not always an option
and it really isn't anyway
It most definitely is
But it catches your eye
Exactly
throws language convention out the window
That's the fucking point
It's so obviously bad that you have to notice it
Same with very large one liners
You just leave them alone
Why would linux?
very large one liners, are split into many lines.
linux being a very large project with code from ~20 years ago.
Linux is very well maintained lol
that should never be touched beacuse its soo core.
that it is
because it is designed to be maintained.
Not everything should be designed like that
fucking hell bot
because it follows a code standard THROUGHOUT THE ENTIRE KERNEL!!! morebotcase
The whole point of being a programmer is knowing when to throw convention and practice out the window and when you've gone too far
even if not the same, there is convention.
Otherwise your some monkey with basic computer science ideas or a robot with some coding skills
Convention isn't 100%
If I followed convention and standards
Half the things I've made that are actually worth anything wouldn't exist
The thing I'm making atm is literally doing something that breaks standard, convention, good practice, but couldn't be possible otherwise
It's anti cheat related
i am talking about syntax standard.
i follow that to a fucking T (mostly beause my IDE picks up the slack for me)
there are many in C++
It just has to be standard
i follow OTBS, take your pick but the one i like is readable by most.
here is an example of a way to properly use braces, https://git.roguelogix.net/Cubit/CubitClient/blob/master/cubit/vk/shaders/Processor.cpp
But I keep too a set of general rules
unlike that EOL collumn BULLSHIT
there may be no "propper" way
but there sure as hell are ways to do it wrong.
and that pic, is very very very wrong
putting a brace on the next line is better than that bullshit
Half this will be thrown out the window in 10-50 years and a lot of it will stay the same
There is no single rule
The point of the rules isn't so you follow them
K&R seems to have survived for a long ass time.
But that you understand why they are there so you break them only when you should
and OTBS being a slight modification of that
seeing as K&R is as old as C itself, i dont thing it will all be thrown out the window.
You literally ignored what I said
no, i didnt read it yet.
understand that i am talking strictly about syntax, and more specifically braces.
K&R is the Java standard.
Java standards are some of the worst
looking at braces
not the language or how it goes about shit
i do not care about how you handle automatical return type BS, generics, etc, etc, etc.
whole thing is on braces
There's no set way to do anything in syntax
which that picture is wrong.
It's wrong in most situations*
it works beacuse the language compiler is not whitespace dependant unlike the terror that is python
Okay well I can agree on that one
its wrong in all situations to do that with your braces and semicolons
Fuck restricting whitespace
if you are using python, then by all means use that type of syntax.
everything about that coe is fine but where the semicolons and braces are.
from a syntax point of view
im not even sure what its doing.
Only if you are changing the code
"only if", no its just wrong
You're just too close minded about syntax
There's a role for everything if you look hard enough
consider that i absolutely hate python beacuse it doesnt allow me to use braces, and take that into consideration.
The braces isn't the problem with python for me at all
that one is a lost python (or similar) dev.
i do the white space stuff by default anyway, so that doesnt bother me.
its that i cant seperate stuff with braces for me.
I don't need braces to seperate things
i dont "need" them, but when you are looking at things quickly, its nice.
I don't even care about what it looks like, I care more about the thoughts while reading code
espically when your ide highlights them for you so you can easily skip stuff.
i seem to care more about consistant readability than you do
I make readible code, the syntax just also tells a story
the syntax is a means to an end
simply a language
the problem and how it was solved is the story
you dont make your own rules for english do you?
no, no you dont.
The syntax is a way to display your thoughts extended from your code, without commenting every single line
We literally do make our own rules for english
The language doesn't give you syntax
The language gives you a set of tools to create syntax
Universal rules are bullshit
give me, a situation where the code shown is better than a properly braced variant.
why would you want it to not be re-written?
Because there are situations where you don't want something to be rewritten because it's critical or has side effects that aren't apparent
It's rare but it can happen
if each method is a magic black box that takes in input and creates an output, what its doing does not matter.
Except it does
There can be situations where doing things a certain way that looks weird will give a different result from something that looks better and in theory does the same thing but doesn't because of a bug or unintended consiquence
you want to know what works just as well, the ctrl+alt+l reformat code hotkey
In those situations you don't want someone changing the code
its amaing how all that time is defeated by a computer program.
IDEs defeat your one situation.
???
take that code, press hotkey, propper code comes out.
oh wait, do you use Notepad++?
no, vim?
wait no, nano?
still not it?
emacs?
If they do that they might as well also just change the code without reading the comment?
I use vs and vs code for most of the stuff I do
so you dont have this hotkey in one, and probably dont use it in the other.
that would explain your point of view
well, let me tell you somehting about IDEs.
they format your code for you, and people use that feature, a lot.
I wouldn't ever use it
get used to it.
I would fucking hate that shit
its amazing to have your lazily coded code reformatted into propper code.
its nice for readability.
helps a lot
Just treat your code well
just program it to your style of choice (be it project or what have you) and it makes it all look nice
and CONSISTANT!!! botcase
There's a difference between consistant and having set rules
as simple as ctrl+atl+l in reshaper and any IDEA based IDE (by default)
isn't it nice how it will tkae anything and map it to the rules you programed.
You're literally the type of programmer I hate working with the most
its also funny how it doesn't allow for that bullshittery.
show me something you call maintainable.
I don't have anything at hand
Most of the things I actively work on are testing shit
Or aren't publically available
Literally my least favourite type of programmer to work with
i would hate working with you aswell, because you dont follow conventions.
or at least dont seem to.
So we mutually never want to work together
Glad on that one
I follow multiple conventions
Not together but when one makes more sense than another I won't stick to one because it's somehow better
Standard != Strict set of rules
Standard means doing things the same way
That's different from following a strict set of rules
Like that one braces style is better than another
Because they both have a place
i didnt say that OTBS is better than K&R etc, just that the one show is worse than almost anything else.
And if you can't see that then there's no point continuing this
you could make something worse if you tried
Almost everything can have a place if you look hard enough
most styles have a place, that one has no place anywhere near production code.
No place in a company full of people
the ONLY place is could possibly be even slightly useful, is explaing something to someone who doesnt get the idea of braces.
thats about it.
ok, so we agree.
it should never ever be actually used.
But there is still a place for it
that one extremely rare situation i listed.
My situation works better
no it doesn't
In one tiny part of a file
Surrounded by comments
So that some idiot doesn't skip past the comments
give be a block of code designed that way, i will have to easily modifyable in seconds (if C++ or Java beacuse i have those IDEs open)
-0%
Almost never needed
But it still has a place
Literally the same can be said about Java
Better alternatives most of the time
it has -0% of the place.
better easily cross platform enterprise language with equal or better speed, with equal or greater IDE capabilies.
find it, i fucking dare you.
and i dont count any JVM language.
Kotlin > Java, but they are for all intents and purposes the same.
its something Java has.
the ability to just run on ARM, or X86, or X86_64, etc, etc, etc.
So does C++
on windows, or Linux, or Mac.
Okay windows, linux and mac
if the compilers, libraries, and code is not platform specific.
Where it will be on a users machine
Not a server
That's a perfect use case for java
And what it should be used for
It's a good thing if you distribute it to machines you don't run yourself
That's what Java is good at
and why im using the JVM for part of my project.
If you run machines yourself there are almost always better alternatives
And my problem with Java is that people use it for all those use cases
beacuse it can, and it can switch.
you can use the same code on a server, and a client machine.
really really useful for networking.
If you need Java
For networking
You shouldn't be doing anything to do with networking
stares at minecraft
Minecraft is literally the worst offender
its code is horrid, but it makes use of Java's features in this respect.
It also would be miles better if done in C++ for opengl and ported to different platforms
actually, it would not.
Have you not seen how badly that shit runs
its problem does come from Java.
yes, i have.
and i know exactly why, and how to fix it.
its problem is that it is using OpenGL 2.1 AND Java
larger problem being OpenGL 2.1
Java doesn't help
or rather, not java, the JNI doesnt help.
but the folks over at LWJGL do a damn good job making it as fast as they can.
it usees full immediate mode rendering
how slow that is, is beyond comprehension.
on a single thread.
And you want it to run fast
The language led them down that path
no it did not.
Java has many multithreading features that make it easy to split the work.
but noooo, its all on one thread.
Games can't often do that easily though
well, three (render, world, world generation)
minecraft can split into at least 5 threads
and past that it can get dynamiclly higher.
each non-connected area on a server can be computed by a different thread, granted code is done to handle that properly, without changing any game mechanics.
and each dimension can be seperated aswell.
The thing is, you wouldn't be going down that path if you started in C++ and OpenGL
meaing it is 5 at least
a) it is OpenGL
b) no, C++ is worse.
having used OpenGL on both platforms, C++ is worse.
It's also a game though
i am not saying dont use C++, hell im doing that myself.
C++ is the better option for games in general
minecraft, shouldn't need that.
i want to run as fast as possible, and have as little overhead as possible, im using Vulkan on C++
minecraft wants to be able to run on anything, without making modifications.
so it uses Java and OpenGL 2.1
so are you saying that its wrong?
???
i say the brace style is wrong, you say using Java for a game is wrong.
I'm saying that in minecrafts case
you say the first has its use case, i say the latter is fine.
Are you saying that limiting minecraft the way they did was right?
nope.
Java can be used for games
hence im using C++
but im not saying that its straight wrong if done correct.
which it was not.
if notch did a good job coding it using modern standards, it would be fine.
he did not, and its engine is shit.
Were those things even available when minecraft was created?
OpenGL 3.0 was iirc.
But wasn't well supported
So he couldn't have done that?
OpenGL 3.0 Release date: August 11, 2008
But he could have done a better job in C++
3.0 was available on most hardware by 2010 when he started the project.
I remember having gpu's without support for it around the time
Can't remember
the Geforce 8000 series and newer supports it
I've had a fuckton
and the ATI 2000 series and newer supports it
was it over 4 years old at the time?
I have no idea
again, consider i said modern.
meaning that older hardware may not support it.
but it should gain wide support going forward, as it did.
But you should make it for the current market
Not everyone buys a new gpu every year or even 2
it was origionally a bet, soooo
It also quickly became more than that
good thing OpenGL 3 GPUs were 4 years old in 2010
well outside of upgrade time then.
consider that the 7970 came out less than 2 years after minecraft
that GPU supports Vulkan, and is OpenGL 4.6 capable
and the latest from Nvidia at the time (500 series) supports OpenGL 4.6 on the latest drivers.
with the incoming 600 series supporting Vulkan aswell.
he had no reason to use OpenGL 1.1-1.5
The earliest gpu I remember having was a HD 5770 which isn't that old
not sure but they dropped 1.5 support noit as long ago as you may thing.
2009
generation old at minecrafts release.
Java was not a bad completely bad choice
He doubled down on them instead of redoing things
it was made bad by the others he made.
Like Facebook
Facebook literally made a language to solve a problem that shouldn't have existed
wat?
what decision?
to use php for so long
Programmers Hate PHP
i would quit and get a job at a company that did something i cared about.
same reaction
i dont have a facebook, so i can care less about facebook.com
social media can suck a dick.
I wouldn't want to work for Amazon either
o hell no.
Far too stressful and from what other people have said would probably burn me out very quickly
Google on the other hand, yes plz.
Yeah I am hoping to start applying to Google among other things in 6-12 months
Like, Google is a giant evil company
But they're just a little less evil than the others
you applying for jobs, im trying to get an internship.
Oh I could probably get an internship pretty easily
not at google
im trying to get an internship at Servicenow.
because i know somone who works there.
You looking to intern with software enginering?
mhmm.
Yeah very different
kinda what my major will be if i continue with what im doing.
my current computing class is on Neural Networks
or well "Deep Learning" (big neural networks)
also, mind you im in high school
I would have just finished high school if I was normal
sooo no job for me yet.
I dropped out at 16
Had a full scholarship for cyber security
And cbf with high school bullshit
i have my reasons to not drop or graduate early.
which is not for educational reasons.
I have programmed probably around an average of 3 hours a day for 5-6 years now
if it was pure academics, i would be out at the end of this year
that is not why im there, and my current graduation date is still end of senior year.
Including my programming class
But my teacher in that class told me that I was miles ahead of him anyway
i will probably be teaching part of my programming class
because my teacher needs a crash course on IDEA.
I had to learn Python for my programming class
im ahead of my computing teacher in many ways, and not in others.
mine is Java.
and Pyhton
my techer has his Ph. D. in computer science.
its almost sad if thats the state of this industry.
Mine had enough degrees that they were in the double digits
Don't know how many masters he has
Ph. D. in comp sci?
Or if he has a phd
with many years of work experiance to go along with it.
I think his highest degree is actually in teaching
He also taught in every single department
i try to talk about just about anything, even in C++ which he did, and he doesnt know most of the terminology i use.
Since he had degrees that qualified him to teach in every department
i mean, thats just as if not more impressive that being absurd in a single subject.
His main one was physics and then comp science
But he did at least 5 years of teaching every big science subject
huh
Bio, chem, physics
Mine would talk about programming in punch cards a lot too xd
mainframes?
But not only programming with the cards in basic
He had to mail them in to another university
That actually had the machine
And it would run
And mail the results back
one of my teachers workstations was an overclocked pentium pro.
that was after graduation, and years into having a job.
he was jelous of MinGW compile times.
Kinda makes me feel worse about being annoyed at compile times over 30 seconds
that being 45s for a small project.
But then I just forget it and get annoyed again
and GCC on linux being like 17s for that same project.
And my friend sends me screenshots all the time of his compile times for one project
Sometimes it's 5 minutes
I feel bad for him and his laptop
shaderc took like 20m to compile on my laptop.
well, old laptop.
it had a 4720hq, and was running linux.
my laptop has a 7700hq and it runs at 95C under full load.
the 1060 runs damn cool though.
I'll probably buy the next gen top of the line intel cpu or a next gen workstation cpu
I care about single core performance and less about price
i got mine, with crosshair for $350
single core is good enough for most applications.
espically if you also need multicore
8700k is close to what I want
if all you need is single (doesnt seem like thats all) then 8700k by all means.
It's so close to what I want
Because not only do I want single core
I want multicore
7740x?
It's missing features
Ryzen has more PCI-e
thats part of why i got it
runs my Vega at 16x and 970 at 8x at the same time.
I'm less worried about pci-e lanes
970 i can care less about, but i want my Vega at 16x (yes it matters for me)
Yeah saturating pci-e lanes is actually quite common once you use cards for compute
mhmm, thats why i have a Vega.
that 28TF compute
so long as tensorflow supports fp16 on ROCm
otherwiser the 14TF is still fast AF.
^ have not taken the time to test/check that yet
My 1080ti is enough for now
With my 1080ti not only do I get good compute performance
but also the best gaming, yea yea, Vulkan.
I get to play games on my 1440p 144hz gsync monitor at 144fps
Which is the big selling point for me
propper Vulkan, GCN wins.
impropper Vulkan, GCN still wins.
not sure how much of that is to blame on AMD drivers.
and how much easier Vulkan is in comparison to OpenGL (for an implementor)
gpu driver devs are like a valuable mineral
and boy do i appricate them
They do so much fixing game devs shit
There's no book you can read that will give you the knowledge needed
the devs should have to fix their shit.
They should
if its not to spec, thats not Nvidia's problem.
But I also am glad that nvidia and amd fix it
optimizing the driver for how a game's engine works, is fine.
So I get to play games at 60 or 144fps
fixing a bug that is due to the engine doing something out of spec, o hell no.
They literally patch mistakes though lmao
It
Is crazy
Those devs must get paid a fuckton too
i prefer AMD's driver team, their OpenGL driver is actually to spec unlike Ngreedia's
I wouldn't run a nvidia gpu on linux
Fuck trying to get nvidia drivers working on linux
i just bought a cable so i dont have to use my 970 in linux
nouveau doesn't play nice with AMDGPU-pro installed.
kinda shits on everything.
and the nvidia drivers step on the AMD drivers soo thats a no.
now to get my DP to HDMI cable back from my mother....
lmao but think of things like device hooking on windows
Where you replace a function pointer with your own then call the function pointer
Easy mode hooking
But then someone does it to yours
And someone does it to theirs
right, i do that with OpenGL, for a different reason, and internally, but i do it.
So you have this massive thing being called for a usb driver
It's both amazing to think about
And terrible
It's also not conventional at all
There's another way you should do it
oh god no.
But that way sucks
mine is for state shadowing
So I'm going too hook everything
There's some system where you add a filter but it doesn't work in all cases so then there's another system that you add device or something but that also sucks
oh god.
thats worse than the Vulkan validation layer hooking.
you can pile those fuckers up like nobodys business.
You create a whole driver instance I think
And then attach it to something
idk I kinda stopped reading about it once I worked out that you can hook it
huh
its a nice feature of ASM/C/C++ when used correctly.
its also really easy to abuse.
You initialise and create a driver then you attach that driver to the device
The other one is you create a filter and attach it to a driver I think
i usually dont work that low level with drivers
I mean this is relatively high level windows kernel stuff
i try to keep my code cross platform, so i work with crossplatform APIs.
i dont doubt that.
but its lower level than GLFW (what i use)
lol if only I had the choice to keep things cross platform
the closest to a driver i work is Vulkan.
oh atm I'm manpulating part of how windows works
And might hook parts of the thread manager in the kernel
Doing this on linux would be so easy
I could literally just read through the source
Find what I wnat
FOSS FTW!
Setup debuggers to find the information I need
Plug the information in
Make a nice little program
Done
then microsoft comes along and is an assbag.
Instead I have to read hours and hours of documentation, test and debug for hours and hours
Then I figure out if what I want is possible or not
Then multiply that by 10 for the next part
#LinuxMasterRace
And eventually I either make something really cool and ground breaking or I die
as im running windows
Anti cheat is hard
The effort involved in the research and working around windows bullshit
It's nothing for a big company though
Blizzard take a strong approach but they are very good at making anti cheat that stops cheats
But it leads to a worse user experience
@raven needle Cool MIDI thing
I used to make anti cheats on ROBLOX
as petty as it sounds , it's a real challenge using the API against something that's not in the API
Serverside anti cheats are stupid
jub jub want rub rub
I would really enjoy a recursive macro in C++ right about now
msft supposedly has a good anti-cheat thing coming up but it will only work on games through the windows store i think. i remember reading about it a few weeks ago. some different approach more native to windows that works better
def fact(a):
if (a <= 1):
return a
else:
return a * fact(a - 1)
print(fact(997))
confused = false
while true do
if confused == true then
print ("I'm confused")
wait(1)
end
end()```
That lang is that? 
All that fact() does is multiply all numbers from 1-997 together
If I did a larger number, it would five me a stack overflow error. :V
It seems that I can actually go to 998. :V
you could also just go ahead and use a loop instead...
what of that?
Idk
Reading your messages is making me cringe for some reason. I'm not in the mood to start an argument so I won't.
You come across as a knowitall in my honest opinion
I could be misinterpreting your intentions though
that message was me contesting that i would be suprised how much you learn about history learning something.
I should read the rules before continuing
hmm?
Idk I don't want to start shit
Without knowing what is and isn't allowed in this server
I was too lazy to read the rules before
oh
its not that i try to be a "know it all"
its just that people try to prove me wrong, and quite often fail at it.
No "know it all" tries to be one
I don't want to continue this conversation. I regret starting it.
I should've left you alone
Apologies
I was calling you out for no reason
You were saying something like "I am a developer" "I have a developer computer" "did I mention I am a developer?" Idk That's just how it came across to me
"I am reading the vulkan spec rn"
that last one was just complaining
"developer computer"
He was talking about why he needed X graphics card
And X amount of cores
And "My teacher needs a crash course in IDEA"
Sorry btw for assuming gender lol
they
my teacher needs a crash course because he has never used the IDE that i use daily.
and he will be using because i set it up on the students computers
again, complaining.
Well like... basically what I'm saying is that all I read when scrolling up was you talking about how other people write shit code and other people are worse at X than you are.
you talking about me arguing with jubjub about braces?
I honestly don't know. I only skimmed the messages
the large argument right before you called me out.
it makes a little more sense if you read the messages, i think.
Anyway... Like I said... Nvm
TLDR, he said this is find, i said its not https://cdn.discordapp.com/attachments/380527803604664324/393148705483784214/bbbxormn5d201.png
I'm just coming off as an idiot at this point.
entire argument was summed up in those 9 words.
TLDR is an acronym, and is technically 4.
whatever this conversation isn't going anywhere productive.
nope, and im fine with that.
Remember I asked that question about GDI dropping frames?
yes.
problem was?
Problem was what I predicted
I was using GDI
Converted the program to using a DXGI swapchain that's GDI compatible
problem solved?
hmm.
Basically what I made is a program that records system audio and displays it on the screen as a waveform at 60FPS (or whatever your screen refresh rate is)
It also does a fourier transform (full disclosure I used a library for that) and plots that below the waveform
It looks pretty gewd
huh
do you mess with any of the rendering code or does GDI take care of that for you?
GDI is pretty much only still in windows for backwards compatibility from what I understand
It was from before Microsoft introduced DWM
hmm
Refresh rate sync is done using vsync
So if you move it it automatically adjusts
But I also have to explicitly adjust the rate at which I read the audio buffer
Basically running 2 threads
one for the window
And one for the retreiving of audio samples
And got a lock that keeps the data clean
It also handles it when you change the default audio output
So if you change from 3.5mm to HDMI for instance
It will swap to the HDMI audio
When I was using only GDI it was copying the entire screen buffer from memory to the GPU
Which took about 20% CPU usage or something
Totally inefficient
Converting to DXGI swapchain made it render the frames directly on the GPU
Making it way more optimised
RogueLogix - Today at 1:55 PM
you could also just go ahead and use a loop instead...
But that's not as fun! D:
And I heard some algorithms are easier to do with recursion. :V
Deal with it
I think I actually messed up the comments as well
memcpy for the win
what on earth is that
a CPP program. :V
thats more what i was asking about.
i gathered that it was C/C++
but i was asking about the purpose and why it was implemented like that
so you do handle a change in hz with respect to the audio buffer.
ICE, when was coding fun?
You know what's BS?
Windows doesn't have an API to toggle APO's
It's fun aslong as everything works the first time, debugging is when I want to tear my hair out, then I realise I just misspelled or misplaced something. :V
I love how the section has the word "basic" in it's title....
That offends me because I've only completed High school Algebra! /s
someone who knows anything related to battery banks / power draw
How long would a 2800mah bank last with a device constantly pulling the power output it states (5v 2.4A)
@lyric maple 2800 mAh > 2.8 Ah (ampere per hour), so at 5V 2.4A, this powerbank would last about 1h15-ish
Yeah, little mistake ^^'
also, you should check the charge/discharge rates at which it was tested/charged/discharged (C-rate) [might be a small effect for coarse estimation], see Peukert's Law
Not sure what DB type I should go with for a project (Java)
Basically what I'll need is this:
User1:
Entry1: ShitA
Entry2: MoreShitA
User2:
Entry1: ShitB
Entry2: MoreShitB
Entry3: EvenMoreShitB
and
Entry1:
User1: ShitA
User2: ShitB
Entry2:
User1: MoreShitA
User2: MoreShitB
Entry3:
User2: EvenMoreShitB
Where I can pull up everyone under Entry 1, get whatever shit I put under that user, and also pull up each user and the individual entries involving them
I've done this in the past with two separate .yml files, though I want to go with something a little more refined and more organized than that
Considering SQLite, not sure if it's capable of what I need
(I have little experence with SQL)
I'll check it out, thanks @proper gale
its a nosql based DB
Would MongoDB require an external server running to access it?
I know with SQLite I can just open up a connection directly to the database file from within the program
No need for an external server for it
@obsidian bluff if you understood the context, what he said wasn't "no it all"
Despite us majorly disagreeing he definitely wasn't being a no it all
@rich hill the anti cheat is literally just blocking off access to the game
Similar to some stuff that blizzard does
I absolutely hate that type of anti cheat
Good anti cheat doesn't stop you using fps counters and recording gameplay
Which is the reason why I'm making what I'm making atm
@whole quail please hold while im T R I G G E R E D for gender assumption
@graceful silo yes.
rip
Might just try figuring out SQLite then since server based databases would just be more trouble to set up
@little knoll what about 7000mah?
It's still mAh, divide it by 1000 to have Ah then divide the result by the max outputted A (or counsumed by your device) of your powerbank to know an estimated battery life (result is in hours)
*powerbank capacity* mAh / 1000 / *max output* A = *estimated battery life* hrs
Max draw would be a better term than max output just for the sake of clarity
Not every device will use the max output of the battery
And you also should be considering the voltages as well.
A 9v 1.5Ah (13.5Wh) battery with a 9v 1A (9W) draw would be about 1.5 hours of battery life, whereas if the draw was 12v .4A (3W), it'd last about 4.5 hours.
Using your calculations, the 9v 1A device would be correct at 1.5 hours of battery life, but the 12v .4A device would be incorrect at 3.75 hours.
A better equation would be:
(Battery Watt-hours) / (Device Wattage) = Approximate battery life in hours
or
(Battery Capacity [mAh] / 1000 * Battery Voltage) / (Device Draw [A] * Device Voltage) = Approximate battery life in hours
Also you most likely can't use 100% of the batteries capacity
So depending on what voltage you draw from it and at what amperage you will also get different results depending on the battery
And when working with Lipo, LiHV or Lion batteries you never want to draw 100% from them
70% is a safe ammount
And battery capacity isn't actually measured in Ah
You have to measure the packs voltages and do some maths to get the capacity in Ah
I fucking hate batteries
Lipos are okay
Fuck anything else
It took me 3 days to get a nimh battery to charge
I have some lipos that are tiny asf
But put out 1680W
For under 40 seconds
For my mini quad
batteries are complicated
Batteries also have diminished cycles, so each time you charge the battery the capacity becomes less.
and they have anowflake charge zone were they like to be at rest
Ended up going with SQLite for my project, seems to be capable of what I want
Wonder how long until AI is stealing programming jobs
100 years min
sqlite is pretty capable
if you need to use different structures for each entry (but are not thinking about filtering too much on those) you should check out sqlite json capabilities
important sqlite detail: it's file oriented with no access restriction features
so, anyone with access to the file can read everything
might be important or not depending on your architecture
It won't matter
I'm not putting sensitive data in it
It's just storing shop stock information for a minecraft plugin
print("Hello World!")
Ugh, what heresy
i hope that was sarcasm
because i literally cringed at the amount of wrong in that message and image
What is the best nodejs framework for a web server
Isn't it express? :v
Isn't there something other than express
For the first time in my life, I've written a piece of code and was only half sure of what it actually does :/
but it looks neat (in a dumb way) so eh
I had to find out about the fixed statement online though since I've never actually played around with pointers very much in C# before 😛
Junior programmer things
What about black hat stuff?@hybrid wolf
@fallow zephyr note that the returned thingy may be invalid after returning, since it would be outside the fixed context. Also, FindIndex may not find anything and point to an invalid address. And finally, the fixed pointer points to a temporary address, so I'm not sure the real object (validVersions) would be pinned down, hence the fixed context could indeed not fix anything.
With SQLite, using multiple columns in the primary key, how would I set up a replace statement with those?
I have four columns at the moment, three of which are primary.
name | id | meta | amount
I need to be able to modify the amount for a specific name, id, and meta combination
Table is named 'stock'
I'm thinking REPLACE INTO stock (name, id, meta, amount) VALUES ([user's name], [item id], [item meta], [item amount]) but I'm not sure if that'd work
Looks like it worked, nvm
@graceful silo why are you using a multicol key? can two products have the same name and id but have a different meta, or the same id but different name, and so on...? I'd think id should be the unique key by itself, the other cols could just be unique
it died
ran gcc on a 66MB c file i generated
sublime text is a god
i just opened the file in it, and although it took a while to load
now to try vscode
without the C/C++ extension
vs code didn't do syntax highlighting for the file but sublime did. 🤔
@small escarp name is a user's name, not a product name
You should be using userid's and have another table for user data
So the userid is a foreign key in stock and primary key in the users table
linus commented on a 20 year old laptop having a soft semicolon key
my responce
oh i wonder why a work laptop would have a soft semicolon key
@graceful silo as jubjub says, they should be separate tables, see database normalization. It's the best option to avoid update anomalies (updates that leave the db in an inconsistent state).
a good schema would be: User table (id, name, age, .....), Items (id, name, price, .....), Inventory (userid=user.id, itemid=item.id, specific_item_data, ....)
Nah
It's a general store stock, I just need to track what users are selling what items, and how much of them.
name text, id integer, meta integer, amount integer, PRIMARY KEY (name, id, meta) seems to be working just fine.
I'm not storing user information or anything, just what they have in the shop.
what is id?
item ID
isit unique?
If two items share the same ID, they have different meta/data values.
It's for a Minecraft plugin. So for example, 5:1 is spruce planks, but 5:0 is oak planks.
There's a separate function for putting names on items for the frontend, but in the backend, everything is ID and meta based.
ok
That's what it'd look like in practice
(using DBBrowser)
I've already tested it and it works exactly as I wanted
Anyone here work with express.js and apache2
@agile saffron You mean hosting a Node.js application and Apache2 on the same server?
@agile saffron I've done a lot of Express w/ Nginx, but depending on your issue, I may be able to help you. Is it about proxy-ing an Express app ?
i think im doing something wrong but screw it.
Using Java to code something ?
nope XD
getting my ue4 plugin to compile
the only time i want a ssd
its so close ;-;
i find java weird but i like C# 
YES the thing i wanted
and holy hell it compiled 😄
yup
@neon vortex yes that's what I msan
Because I have a sub domain and want that to work with it
I wonder who designed this:
https://i.imgur.com/9prA8of.png
each object is a seperate svg.
https://i.imgur.com/Y0hWJLn.png 😃
Must have taken lots of time
i wanna learn how to code too 😶
yeah @agile saffron
@torpid knot No you don't
It's just a shitshow of compile, syntax, and vocab errors
^^
Do you guys have ideas? On my question
"Anyone here work with express.js and apache2"
December 28, 2017
?
@nocturne galleon ruuuude
that question?
@devout lava Since I saw the hardware way, I cant't get back
lol
Yeah
Like, you can see whyit is not going well
I want to do network engineering
2nd I will do video production
a resistor will catch on fire
A cap will blow up
I actually started looking at it with Louis Rossman if you remember
Back then
gg verizon https://i.imgur.com/x1QiWsi.png
Gotta love verizon
I love the new "Play as you browse" on the YT app but rip people w/o unlimited unless you set it to WiFi only
They'll be on a meeting:
"Oh let's charge 6EUR for a GIGABYTE!"
Poof!
wow