#development
1 messages ยท Page 32 of 1
im implementing a whole layer on top of that so i can make calls in more Vulkan like manner.
from any thread, and in parallel.
sounds fancy
ofc, implemented on both OpenGL (seen there) and Vulkan.
you will still have the OGL driver overhead though, why not move to vulkan completely
I was typing that as you sent that
you made it irrelevant now ๐
because not every GPU supports Vulkan, and im going to 1.1 not 1.0
yeah fair enough
i plan on having the exact same application code be supported on OpenGL 3.3 core no newer extensions (8800 GTX) to OpenGL 4.6 and all ARB extensions not yet in the core spec. Then for Vulkan im looking at 1.1 minimum.
but not just supported, run faster on 4.6 ofc
3.3 core is a good base
afaik its what LLVMpipe can emulate reliably on linux without a proper gfx driver
thats like 4.x crap isnt it?
4.3
yea thought so :/
ill have to add in a internal CPU compute implementation so it works
i never said 3.3 would always be fast
just that it would work
I would be surprised if you cant find an OpenCL all-in-one CPU package somewhere
they exist
but im already writing a transpiler for the shading language though, sooo, not that big a deal to add a back end to output OpenCL C vs anything else.
yeah, if youre already onto that, yh... xD
just a fair warning
OpenCL drivers are really fucky even on windows
oh i know
not in terms of stability, but performance consistency
the AMD ones on Linux are good.
which is what i use, mostly.
ofc, it wont have to use OpenCL
i just want to, beacuse it would make more complex computations easier to handle.
I coded a benchmark that measured how long it took to render a portion of the mandelbrot set
and calculated scores based on that
Vulkan has a very good compute API in it.
my Radeon R7 360 got like 10k points, which I thought was fine
then I ran the CPU version (just switched it to use CPU instead of GPU device)
Ryzen 7 1700 with the AMD OpenCL driver did around 3.5k
which I thought was about in line with what to expect CPU vs GPU wise
then I installed the Intel OpenCL CPU runtime tho
and it got 13k points
no idea why the two drivers behaved so differently on the CPU
and to me its weird that it would beat the GPU...
Ryzen 7 1700
I coded a benchmark that measured how long it took to render a portion of the mandelbrot set
I mentioned both ๐
bench is at https://nemez.net/tools
Index for my programs, tools, benchmarks and other things
i didnt know that you had a 1700, just that you had that benchmark
not sure how optimal it will be for Vega
dont remember what iteration count I used lol
so the shaders might actually exit too quickly and be limited by how fast it can dispatch compute work
its 64SP/64CU
yeah but its the difference of looping 10 times inside of the shader on the GPU or looping over the shader compute dispatch 10 times
only 10 times?
was the GPU fully utilized?
you know how to make good use of the GPUs SIMDs right?
or did you not program it?
at all.
I did and I mostly know
pretty old project though, probably not the greatest GPU optimized code xD
okey, so the GPU was pinned without much instruction divergence and multiple work groups per CU that are not in total overfilling the registers and/or local memory?
not sure about reg utilisation but yeah
there isnt much branching in the shader code
does it use local at all?
correct sync points to bring the instructions back together after the branches?
biggest mistake was probably letting OpenCL to schedule it on its own without explicitly telling it workgroups
still doesnt answer the huge difference between Intel's OpenCL and AMD's OpenCL driver
Intel was the one running on your Ryzen CPU?
both on the CPU?
yes
probably a more mature CPU driver
what about GPU?
the 360 is not fast card, but it should stomp on the 1700
if it doesn't, then ill try it on my newer card which are running the latest driver version.
well, almost.
i may download it from GIT and use that instead.
Is haskell worth learning?
Professionally? No if it is old and no one uses
As a hobby? Yes```
@nocturne galleon if you've never used a functional programming language before, it is worth having a look at it.
I've used PHP and Python
My comment still stands then ๐
I'm also very familiar with Java 8 lambdas and such
lambdas are useful, but not the same as organizing an entire program around a functional model
Ah
I wasn't really sure what a functional programming language is compared to an imperative
So functional languages rely more on functions that are already defined for you?
if i am correct, function languages are slow?
@proper gale that depends... since functional languages require a problem be defined as a sequence of immutable steps, and this typically leads to a very parallel solution, while the compiled code for a single "thread" might be slow, you can almost always scale out the solution to get back that lost performance (See: Google) ๐
F# is the greatest
the best lang ive learned through my years of undergrad
not one day i have been asked to use it
hey guys: i'm looking for some people to help me with a GTA V FiveM framework. payout is 200 USD. must be familiar with C# or Lua. DM me if interested
@rare latch does Java count?
can one of you devs do the world a favor and reverse engineer the google play books api from googles android app and make a windows app for google play books?
Go to the library, get a bloody book out. Simple as that
@main wyvern they dont allow you to download them now that the chrome app is depreciated
Roses are red
Violets are blue
Unexpected "{"
On line 32
adds all
Did you make your own screenshot program?
No I use 
oof feelsbadman
js is pretty easy to learn
should I declare my objects before a try/catch block?
which one is preferred and for what reason?
and I am not using them outside the scope of the try/catch
you can't use them in the catch if they are declared in the try
hence (I am assuming that's Java) use automatic resource cleanup (introduced in Java 7 or 8 I believe) or declare them outside the try block
@copper ravine yes, it is java. (Android specifically but that doesn't matter). I was not aware the catch would not be able to use them, thank you.
@copper ravine would you agree that for the sake of caution, it is normally better to declare objects before the try/catch ?
it really depends
the auto resource cleanup in java 8 is really nice since it simplifies the code
I generally try and keep declaration to the smallest scope that is required
i really want to do a lot of research into java's garbage collection once I graduate and have the time
it's pretty neat, and to really design systems that are high performance or high scaling, you need to understand how it all works to a pretty deep level
yeah, its nice because it gives you the best of both worlds, it will do it automatically, but if you want you can take manual control. kinda like having an automatic car with a manual mode
@drifting sigil if the point of moving them out of the try block is to allow you to close them, i would recommend using the try-with-resources syntax.
and if you for some reason dont, you are going to want their entire syntax wrapped in a try-finally block (can be same try-catch) aswell so that in the event of an exception being thrown in internal code it still works as expected.
jesus christ C++ makes you think about resources differently
indeed it does
like, i would not have put that much thought into it prior to using C++.
Thoughts on this quick UI mockup I did? Might turn it into a real site ๐
@scenic pagoda are you planning this to be responsive? Would need to know how it looks in mobile and tablet
It's planned to be responsive yeah, it would basically be the box with the text - and the navigation pushed into the box
And the text adjusted as needed
Will most likely change it to have a slide out menu
Most people would recommend Microsoft Visual Studio I would assume
@nocturne galleon what OS? Personal fun? School?
Then I'd say Visual Studio is not a bad choice
You can also have a look at CodeLite if you want a Free choice, but it is a steeper learning curve
Has anyone used AWS elastic beanstalk?
I am currently studying C++ in college, we use Visual Studios, but I like to use a text editor, (my choice is either Notepad ++ or Nano in terminal) and g++ as the compiler under linux.
CLion would be my goto
it is based on intellij so it is extremely smart
text editors are fine for really small things
but a proper IDE provides way more features and help you out way more than a text editor
Yes, I have only used CLion a bit (although I bought it, I should use it more!) but it is well laid out
Unfortunately CLion doesn't support microcontroller development very well :/
hmm okay, it should do fine with them as far as you find a sdk for them
but not exactly sure, don't really deal with microcontrollers
Because you can now get Visual Studio for free (VS Community Ed.), I think it's the best choice for C++ (included debugger, Intelisense, quite good built in project manager...)
students get a free licence for JetBrains products
Only if you have a student international id or email. My school done everything needed to give student licences by themselves.
We just had to give to our school our email address to get the licence.
@manic kayak or you can send in a special request and get it even if in high school like i am.
@hasty sail CLion FTW
@nocturne galleon are you a currently enrolled student?
@raven osprey apparently clang gives better debug codes than g++, may want to try it.
it is worth noting that Clion (and the IDEA platform in general) is a keyboard centric IDE platform, sooooo, get used to the keybinds.
Mmmm Keybinds.
i like that feature of the platform personally.
then get a free Clion student license, IMO its the best C++ IDE.
What is the best way to write a DPI/resolution-independent GUI for a game?
I'd like the game's UI to look the same and take up the same amount of space to the eye regardless of the DPI and resolution.
Right now, the game's UI is written to work best in 1080p, but some players with 4K monitors have readability issues with text being too small and blurry. I'd like to avoid making them use system-wide DPI scaling.
This same issue also causes lower-resolution displays to not be able to fit as much on screen as my 1080p display.
I'd like to do it similar to how Saints Row 4 does it. I can run it in pretty much any 16:9 resolution and the text etc will all be in the same spot and take up the same amount of space. I just lose detail on lower resolutions and gain on higher.
scale it based on relative resolution?
w-what's that mean
rather than scaling on DPI, measure the curren resolution, math it using whatever SDK/API your using to draw it and math it so its 60% or w/e
text gets a bit... difficult
so no matter the resolution, the menu takes up 60% of the screen or w/e
thing is my ENTIRE GAME is UI-based
not just the menu
It takes place in a Unix-like operating system with a full desktop environment
and...
I'm not sure how to scale all that properly
(I'm using MonoGame btw)
depends on what toolset your using, but that sounds like a pain
I'm writing my own in-engine UI framework.
(writing my own game engine ontop of MonoGame since it's just a unified API over DirectX and OpenGL and other stuff for keyboard/mouse/audio/etc)
I'd like to have this scaling stuff done at a level BELOW the UI framework
so I don't have to do much porting
@nocturne galleon what is the screen cordinate space you have to use?
in OpenGL it is -1 -> 1, Pos X right, Pos Y up, and Pos Z back
so you can use a matrix that accounts for aspect ratio to create it, then if its in normal scales regardless of resolution, it scales with window size.
I'm not dealing with 3D
this is 2D
and the coordinate space is 0-<screen width in pixels> X
and 0-(screen height in pixels) Y
0,0 = top-left corner
I know, I'm talking about the 2d part of opengl.
You should be about to create a matrix that can do coordinate transforms to that based on a standard coordinate space.
The z depth has to do with draw order in 2d.
Its used for layers.
ahh. In MonoGame, or at least, the way I use it
things render in the order you tell them to
in the code
so if I say "draw texture a", then "draw texture b"
texture b will ALWAYS be ontop of texture a because that's just when I called the draw function in the code
I don't use any z coordinates for layering
anyway I haven't a clue how to use matrices in MonoGame with the SpriteBatch class
that is correct of OpenGL as well, if you do note specify depth (it assumes 0)
at the same Z-depth or wiht the depth test off, it will draw in drawcall order.
but if you wanted to draw the background last, enabling the depth test and moving it to a higher z (further back) it will then be rendered behind everything else despite being draw last, applies to everything without transparency (its still a good idea to try to draw back to front)
don't you mean front to back?
back to front will draw useless details on top of each other
front to back will use culling to skip the occluded components
and for dpi independence you would probably want some classes which know how to render based on DPI and window size, e.g. button and label
but text is complicated since line-breaks and things like that are going to be very different at different resolutions and at some point it's just impossible to fit it in the screen at all
naturally, most of these issues are typically solved (in other GUI toolkits) through sizers and/or css-like styling, instead of absolute positioning
@small escarp no, you want to draw back to front.
A lot of my game's UI is actually anchored based on the size and location of sibling UI elements
For example, the in-game OS's "Appearance Settings" window
the window itself is a fixed width and height. And this is what it looks like.
you got your heading text and description text at the top
15px from the left and top of the window
wordwrapped at 15px to the right of the window
the description text (I think) 5 px from the bottom of the heading text
then the wallpaper selection box (which is a scroller), 15px from left edge of window, 30px from bottom of description text, width is equal to window width - 30 px
so nothing will ever overlap anything, that's good
I can increase the font size of stuff and it'll scale just fine
the problem then becomes though
although UI elements INSIDE windows can be positioned and sized relative to their siblings
they still can't scale based on the DPI or resolution
so what happens is
if I pop into the engine settings and switch to 800x600 quickly
first of all, the Appearance Settings is still positioned in the center as if it were still in a 1080p desktop environment - that's a bug, easily fixed.
But...
if I re-open the program after closing it
well first the in-game app launcher doesn't fit on screen - user info gets cut off at the bottom
secondly, now the Appearance Settings window is too tall to fit on screen!
The title bar isn't even showing so you can't drag it down
and you can't access the other two UI accent color options because they're cut off by the bottom desktop panel
and...if I quickly write some code at the low level to emulate a 4K display
(hang on, doing that rn)
look how tiny the text is! (Ignoring the fact that it is 4K downscaled to 1080p because I don't have a 4K monitor.)
Ideally, I'd want the UI to scale up and down to look as close to the native 1080p environment it's designed in as possible
Lol
not too sure what's going on in that picture (I hate being blind)
http return codes
1*** hold on
2*** here you go
3*** go away
@nocturne galleon
heh
anyway I'm still trying to figure out the best way to handle my GUI issue without a total rewrite
For his 3rd dotJS appearance, Brendan give us insights into the process of standardisation of JavaScript at TC39, then covers some of the features of ES Next...
riolu. You realise that even Microsoft hasn't been able to sort that issue out?
Microsoft sucks though @obsidian bluff
@obsidian bluff do you know that Volition has sorted the issue out in the UI of Saints Row IV?
no matter what resolution you run at, the game's UI elements are all in the same relative positions and take up the same amount of space onscreen
that's the case with many games
it's just a matter of "how are they doing it, and how can I do it in my game using MonoGame"
@nocturne galleon make the scaling correct for 1080p, then scale by a factor of actualHeight/1080
That is what I was telling you to do, and it will scale it, I was just using a different coordinate system, it's still possible though.
Now, what do I do about font sizes? In MonoGame, fonts are rasterized at compile time. I'd have to create versions of the game's fonts for each scale. What would be the best way to handle that?
Use 4k fonts, downscaling works much better than upscaling.
4k font textures, then map to the 1080p using downscaling.
I don't have direct access to the font texture..
I'm not exactly sure what to do there because I'm used to being able to runtime rebuild the font textures of nessacary.
in MonoGame, you create what's called a Sprite Font Description file
I can look at monogame, but with OpenGL directly there is nothing stopping you from mapping any size texture to anything you want.
this is an XML file, and it contains data such as the TTF file to use, the size (in pt) of each character, the text spacing, style (bold, italic, etc), and the range(s) of Unicode characters to import
then when you compile it creates its own sprite font file out of that and you're not supposed to touch the resulting font file
and the MonoGame SpriteFont API (iirc) doesn't let you manually grab the texture for each character
Hmm.
you just load the font file in as a SpriteFont object, you get a list of the chars supported by the font, and a function that takes a string and spits out a pixel measurement as a Vector2
This is why I don't touch premade engines.
There is always sone random bullshit that sucks balls to deal with.
then if you want to render text using that font, you call SpriteBatch.DrawString() passing the text, the font object, the location in pixels, the color, and I THINK there's an option for scale? Not sure.
MonoGame isn't a game engine. It's a managed abstraction layer over SDL and OpenGL
(and OpenAL and other stuff)
...I chose it for my game because I want to write my own game engine but I quite frankly don't want to write multiple rendering backends
I'm working on a vulkan abstraction so it's got less bullshit require but still gives the main benefits of the API, that can also run on OpenGL.
Thing about OpenGL, if you target 3.3 core, almost everything can run it.
HD 2000 series, GTX 8000 series, ivy or newer on windows, and sandy or newer on Linux.
Which is most computers today.
I've done some research on GL version support
if MonoGame is an abstraction, you may want to do your own text rendering.
it should allow you to render with a custom texture that you can switch at runtime just fine.
only thing is what exactly do you mean by "4K font texture"
do you mean each CHARACTER is a 4K texture
or are all the characters stored collectively in one 4K texture
Font texture size that would be used on a 4k monitor.
ahh so setting the size (in pt) to something high enough that it's readable in 4K
that makes a LOT more sense
thank god I've got 4K emulation in the engine (since I don't have a true 4K display, I just force the engine to render the game to a 4K buffer and downscale to 1080p. I lose out on 4x the quality, but I can still see the game's UI as if it were on a 4K display)
it's just rendering to a 4k texture, then rendering that to the window.
It's very simple to do.
yeah, that's what I'm doing
probably not the best way to test but for development and since my eyes can't make out that much detail anyway, I should be fine
That's what's going on in the background anyway, soooo.
so...if...I write the font descriptors for 4K...then..
would I not want to write the REST of the game for 4K?
and have the scale factor be actualheight/2160?
Thats probably less nessacary than the textm
it just seems easier mathematically to compute one scale value and use it for everything
Scaling yes, I meant doing the rest for 4k
anyone know if its possible to store notification data using an app
@proper gale I got your scaling tactic mostly implemented.
I'm designing the game to run in 4K
haven't gotten to increasing font sizes or anything yet
but... so far
this is how it looks in 1080p
Rectangles, textures, etc are scaled just fine
Positioning of UI elements is not done so well though...
because during layout, the UI doesn't know the scaled size of each element
not sure how to fix that without tons of porting
screw it, in the latest build I'll just lock the game at 1080p highest resolution
force the bugs into their hidey holes until I can come up with a suitable stable solution
I think it does this only on a VR project (based on their VR template), I'm not sure tho
nah, i was trying out the plain FPS template
(i went back to using Unity for prototyping anyway hue)
Iโve been a professional web developer for five years now and I only wrote my first cookie script yesterday. Clearly I am a winner.
it's amazing how well you can live without cookies for most things, yes
https://youtu.be/IVi0CvprETA I feel like a slight badass seeing my game run perfectly in NVidia Surround...
OK. This video's best viewed at 1080p 32:9 (a.k.a, IN NVidia Surround spanning across two 1080p monitors). Because in this video, I'm gonna show you guys how...
too bad the left monitor is not a monitor, but rather a shitty TV
...with overscan issues
and I...don't know how well Surround will handle overscan compensation...
I would use bezel correction but I don't know how to measure the size of my bezels, and the two monitors have different-sized bezels
it should handle it fine.
you dont measure the bezels for bezel correction, you line up stuff on the screen.
@proper gale thing is I need to do the overscan compensation on the GPU. The TV is too shit to do it on its own.
i know
so that means running the desktop at a slightly lower resolution
also how would I accurately line things up on screen if the two screens aren't the same size (in inches)?
my primary monitor is 22 inches and the shitty TV is 26 inches
ahh well
I'll be getting a new monitor to replace the TV eventually
and I shouldn't need to test the game in surround more since it already works fine and the gui scaler is tested and working
just need to port things over to the new coordinate system
so I can live with overscan
I barely even do multimonitor as it is, I only do it when livestreaming
or when I want to run a game and watch Discord at the same time
Still pretty neat to see the game running in Surround.
That's genuinely cool to me lol
i can show it with AMD eyefinity if thats still a thing.
i have three monitors that can run stuff like that.
Btw - I would recommend checking out a plugin called Emmet
Its so bloody handy lmao
theres a demo on the docs of how it works
@mild basin HELPING!!!!!!!!!!!!
Lel!
@mild basin what do you need help with?
Oh yeah, I had an issue on CodeAccademy, but itโs cool...... I mean I still canโt figure out my error in the python code but, eh....... not like my grades depend on it....
I need to generate traffic data on this website that we are working part of a school project please click on this and have a look it would be a great help thanks - Feedback welcome - http://monaghaneats.com
Monaghan Business Website
Working progress
I think maybe google maps have an api for traffic data. Or is it wrong traffic im thinking off?
Oh wait @fresh jacinth did you mean Traffic data from the website. If so Firebase is a great tool for that
(Bad english im from norway)
We don't care about that block game in this channel.
:(

database question: if you were storing two tables, one with containing the name of companies alongside their stock market ticker name, with separate tables made with for each company to store their stock market data, would you use relational db's or document based db's like MongoDB?
Relational DB with a view linking tickets with their companies I'd say. Because with document based DB, you'd still have separate table/endpoints but without relation support, so you would have to "Bring Your Own" relational view system. IMO
IMO : Document based DB are more for API/Services which have a lot of entries but don't need to create links between them constantly.
And so, relational DB would make sense if you need to have links between your tables/entries at nearly every requests to the DB.
I would also offer this: look at how the data is read/written. If numerous pieces of related data are written/updated/read together, a document-oriented DB might make more sense. If you don't use historical data and only the more recent, I would also move towards a document DB, but you need to be aware of how and what you accessing in your DB.
Do you search for records using other data than the primary key? Relational tables all the way. Do you want to use the key and get very impressive full record reads? DocumentDB or whatever nosql floats your boat.
WHY would you create separate tables for the companies though?
Had a brain melting internship day today
Even after a while doing something, or getting explaination, i found it hard
its using AJAX
passing data into things
not sure where to ask this..but guys that do programming in python, what is best IDE for a beginner?
i downloaded visual code from microsoft but it's hella confusing for me
i'm gonna hold you accountable for my trials and tribulation ๐
also...python 2 or 3? am self-learning on codeacademy and they are doing python 2
@grand hornet
oh sublime text is not free..
IMO pycharm
@supple marten I started with PY3 since I was barely learning and everybody suggested the newest codebase
PY2 doesn't hurt I would assume but PY3 is better
i mean, all the training i've done was on 2
i like that ๐
i guess it depends on which you learnt
which is why i ditched c# which is what we learned one semester in my college
ok
what were you trying to do?
iirc input from user was string and i needed integer
and had to convert every input to integer
no, it does at runtime...
python is great language if all you care about is ease of writing and/or writing speed
but if you want speed, you tell it i want an int not a string.
because there is a distinction made in the first place...
Programmers Hate PHP
yeah but if you write in python
a = 5
it knows it's integer
whilst in c# you have to tell it it's integer
it's faster for me to write
mostly because not compiled language implements its
"python is great language if all you care about is ease of writing and/or WRITING SPEED"
yeah
i pointed out that python is fast to write.
but its slow to run.
i can run an entire computation before python even starts to read the script.
but i, ofc, have to use std::strtoi which is much more cryptic than you covert.toint32
which, BTW, you just wrap that in a readInt function and call it a day letting it handle the conversion for you.
yeah, no one taught us that
did that need to be taught?
I use readInt all the time
But no need to be salty
That's why I just teardown code to understand vs learning from classes or webinars
yes, it did need to be taught because when one is faced first time with programming it knows nothing
so yea, it should've been thought
no need to come off all high and mighty
They should be teaching you how to figure it out yourself
If you're relying on them to teach you how to do it you either have a bad teacher or haven't learnt anything
There's no way someone is going to tell you exactly how to do every little thing you need to do
They're the one programming in that situation not you
And you're not going to learn to program without programming
so in college in a course called 'basic programming' i should NOT be taught in c# that input from user returns string and should be converted by ourselves to integer?
because my teacher did teach me that
i was not taught 'which, BTW, you just wrap that in a readInt function and call it a day letting it handle the conversion for you.'
so yeah, i think that i should be relying on my teacher to tell me that input form user returns string otherwise i would be pretty frustrated writing any program where user inputs numbers and i do math afterwards
You're relying on them teaching you to read the documentation
Not to know that x thing does y
If they're not teaching you to figure it out yourself, they might as well train monkeys
Basic programming means you should understand basic terminology and concepts enough to find out more information on your own
It doesn't mean you can make x program or learn x technology or implement x feature
Either they're teaching wrong or you have the wrong expectations
And think you can just go through just doing x instead of learning how to do x
i mean, readInt() should already be defined for you in a C# library class, and it would be basically just cpp int readInt(){ return convert.toint32(reader.readLine()); }
its nothing complex, and going yea, that seems like a good idea to do is not something that should need to be taught.
knowing why you would want to split stuff into a separate function and how to do so, should be taught.
^
That should be one of the first things you learn when learning an object oriented language
If not the first thing
You should be taught why to do things, not just to use x
Because most of programming isn't in the code, it's the decision making, knowledge and understanding behind the code
It's not about use x function in x way to do this
which is why if you ask a proficient programmer to use language X, Y, or Z that they have not used before, they can do so almost immediately.
maybe not well, but they can.
With a few exceptions*
exceptions mostly being functional vs imperative languages.
There are some things that require you to learn more but it's not that big overall
I mean the second one isn't that bad if you've used more than a couple languages
ik, thats a joke
There are some things that require you to learn more but it's not that big overall
its not standard across compilers.
Yeah it's more of an implementation thing
thats why i just use boost
Memory management is just a comp sci subject really
And is only difficult because people say it's difficult
Especially pointers
yes, but it means i cant just pick up C++ from a garbage collected language
They can be annoying but that doesn't make them difficult
the memory system is significantly different.
But that doesn't matter unless you never really understoood the other language you're coming from
If you don't know what python is doing, moving from that to c++ will be painful
But if you understand how it works internally you already know a lot of the concepts needed
GC acts differently enough from MMM that you do need to learn it
It's not difficult though
its not
It's just different
Yeah but that's the case with almost everything else in programming
yes, but java can be picked up from python easily because they are both GC
And the reason knowledge is needed, alongside decision making and understanding to program
but C++ from Java or python is not as easy in no small part because of the memory management.
Only because it takes time though
Which is going to be the case when learning anything
i had a very good understanding of the JVM GC before i started messing with C++, that did not really help me with memory in C++
both how to optimize for it, and how the fuck it works.
I never had issues with memory in C++ despite not dealing with anything like it before, I just spent a week learning about what and why
i mean, i picked it up and was like pointers, i got this
i have not typed delete sense then.
I still don't get why people are scared of pointers
They fucking point to a thing, how hard is it to understand
lmao
i use those
Where lol
ahh
Okay yeah that makes sense
Do you cast them or just store the mess using whatever the compiler does
Casted to/from structs.
i end up with a few different functions
void* createglBindBufferArgs(GLuint buffer);
void deleteglBindBufferArgs(void* args);
void* glBindBuffer(void* args);
void glBindBuffer(GLuint buffer);```
though it is worth noting there is will be an additional deletion layer on top of that so i dont get leeks.
I don't do it the dumb way.
I did consider it though.
lol that's such a mess to deal with
Still seems better than wrangling vs to work
Honestly any windows c++ should be renamed to wrangling vs
Since that seems to be the cause of most issues
It's also got a really helpful "feature" where it hides the majority of log information when building so you never see a subset of build errors or warnings
Which leads to weird bugs that take hundreds of hours to find
And once you've realised that vs is the issue, you have to manually build the project that can take a very long time
I've abandoned a project before rather than manually building it lol
Msvs or msvc?
tbh it could be an issue with both
It's just an error where tools will have a warning or error and output that to the console, but because they're run automatically it never finds the developer
And there's a bunch of obscure issues where that can happen
And you get a perfectly good build with no errors in the code but encountered an issue when building that you never get notified of
And you run the build and it just crashes or doesn't run something or some other weird issue
And that is why, I use mingw
Sometimes only sections of code are broken
So everything will work
Except one feature
Or one class
You can imagine how bad those errors are to debug
And that I'm not exagerating at all when I say it takes hundreds of hours to debug
Luckily they're rare or unluckily because it makes them harder to find
I can count on one hand how many times it's happened to me
It always surprises me how little 100 hours is
So 11 normal working days and the time you spend working on the problem outside of work hours
lol
am i wrong?
Hard coded? They soldered crunch time to the board
no, it was in the tape out
ofc you didnt get it immediately.
@copper ravine @little knoll @hallow siren the DB I'm making is supposed to have one table containing company names and their stock market ticker codes, then have a tbale of each company in that list containing the price of their stock with a date attached to it, as well as one more table per company that collects articles from ars Technica and other places, where my program will match changes in a company's stock prices to articles that explain/provide insight into the price change that occurred around that time
that doesn't seem to be the most optimal way of organizing it, but... what are you trying to do?
ah, nvm, I just caught the end of that
well, so you need a table of companies (giving you some sort of primary key you can use to index other tables)
A table of stock values keyed by company id (this one is tricky, more on that in a sec)
And a table of articles
I assume that the table of stock values will be updated as the stock values themselves change, so you will need a timestamp per stock value record
So you see, you don't want a table per company, in fact that makes life much more complicated , since you have to start managing adding/removing tables based on what companies are added/removed from the system.
The stock values table is a "bit" tricky since it is not bounded, and could potentially grow very fast and very large. If this is anything more than a simple fun experiment or some code for school, you will want a way of consolidating stock values by day/week as you get more data
The question was about choosing between a document db or a relationnal db
If I recall correctly
And I'm not doing someone's homework or their paid-for work for them ๐
I think my response gives insight without giving away which they should choose
@swift niche If indeed you are required to have a table per company, then I hope you can see the answer to your original question.
Here's what have been said the other day
I know; I was one of the original repsonders ๐
For the stock prices, I figure I'd have a daily update rather than an hourly price update, since the tables would be HUGE
Heh. Well, I think you have to have a closer look at what you are doing, think about the problem a bit more.
I guess I can just have one table containing the company names + tickers, and another containing all companies' stock prices with a timestamp and just do a join on those tables where "company name" = x
Also, a small hint: look at your sampling frequency of the stock values with an eye as to /what/ type of change you want to detect
Yes, that is certainly one way to solve that problem, probably the most "classical"
Re: sampling, if this is for fun/work, you should really have a look at some data sampling theory
This is for my computer science capstone course ๐ I have until October to have it done, but I want to figure out the DB structure first so I can worry about the actual coding of the program
Isn't a capstone project the final project before you graduate or something?
Yep
Thing is I'm currently taking a DB course and have had some experience with dbms in the past, but I'm not sure what dbms I should choose for this endeavor: I can work with whatever one I choose, the decision is the hard part
Does anyone have an idea for a browser extension? I need something useful that people will use so that I can implement some script that mines crypto currency
nope, because that's just shitty.
Idc
@ionic hull that's a new level of low
@thin cobalt as I said, I don't really care
@ionic hull if you want to steal compute cycles from people, I can't stop you, but you sure as hell will get no help from me from now on.

anyone in here care about userscripts?
I've done some for random stuff why ?
I am trying to write a tool for it
I'd like to find a community for this sort of stuff
That thing says Donwload
lol
i'm in my "what the fuck is wrong with me" mindset rn
this is melting my brain, going to bed :d
anyone here know vb?
Why vb? 
Can I get someone's second opinion on a program I have to write for my college class?
We're basically writing a chat program that heavily takes use of the concepts from AIM and a little bit of Discord.
Well... In this program we have to be able to handle errors that the user may cause.
For example what if the user tries to add themselves as a buddy? How would you handle that? It's things like that, I have to deal with.
My professor doesn't mind if we put easter eggs in our programs, but do you guys think these error messages may come off as offensive?(edited)
If the user tries to add themselves as a friend, the server will return "CANTBUDDYSELF" which causes a JDialog to pop up saying: "Server returned response that you tried to add yourself as a buddy! I know times are tough, but you're better than this..."
If the user tries to remove themselves as a friend, the server will return "CANTUNBUDDYSELF" which causes a JDialog to pop up saying: "Server returned response that you tried to remove yourself as a buddy! If you hate yourself this much, then you need help..."
If the user tries to send a buddy request to someone they're already buddies with it will say:
"Server returned response that you are already buddies with "+buddy+"! I can't believe that you'd forget who your own friends are..."
If the user tries to remove a buddy that they were never buddies with it will say:
"Server returned response that you are trying to remove a buddy: "+buddy+" that you were never buddies with! Are you so angry at the world, that you're removing people who you don't even know? Again... Seek help."
If the user tries to send a buddy request to a user that doesn't exist it will say:
"Server returned response that you are trying to add a buddy that does not exist! Are you now resorting to trying to add imaginary friends? Dude... Seriously... This is starting to get old. Get some help."
I think this one might be a bit too far.
Most of the other ones are great, but I'd remove the "Seek help" parts. Imo they're funnier without.
I'd actually worry about how to implement what you want to do as a base first, then add funny msgs in later. You will find out quickly that a online multi-person chat service is a rather complex piece of software to write without going crazy about the "funny" things ๐
And why would a user be able to add himself or any of his current friends? That is just bad ux
this is the first time i've seen someone refer to an exclamation mark as a "bang." interdasting
i don't know js i was just looking through random so questions :p
ive heard that before
I've heard interrobang ( โ ) but not bang on its own
bang is what it is called
>If the user tries to send a buddy request to a user that doesn't exist it will say:
"Server returned response that you are trying to add a buddy that does not exist! Are you now resorting to trying to add imaginary friends? Dude... Seriously... This is starting to get old. Get some help."
At that point you're assuming, that user already tried other things. It might that it's his first try to break something
I've heard # be referred to as shebang and ! be called bang
That's normal
For people who developed both the backend and frontend of an app, would you make the GUI as it's own class or would you make the "main" function of the program be the GUI itself?
always separate view and model.
I second the separate the application logic from the GUI logic; they very often have two different approaches dev-wise, and usually have different functionality and responsibilities. Also, it's a lot easier to merge two things that were split initially than to split a single blob of code later
In my case, I have all the backend in their own classes, but the GUI is the part I'm trying to figure out how to connect
I know how to do MVC in Java and C#, but Python is proving challenging
i'm writing a program in c# that works with .obj model files, does this look acceptable from a formatting standpoint? I just wrote it and thought it looked just a bit weird.
this bit of code uses the stream writer to write something like this -> "f 1 2 3 2" (depending on what is actually in indicesToWrite)
@vestal glen @swift niche do you actually subscribe to the MVC paradigm?
do separate the logic so it can run independently, no problems there.
but the MVC way of OOP is generally, horrid to program.
@proper gale I learned MVC for my Organization of Programming Languages course where we coded a game in different languages, and used MVC to do so, but because we were doing it with OOP it indeed was horrid
Where C and C++ make you set up MVC stuff manually, while Java and C# have built-in stuff for the View, Python is more akin to C and C++ in terms making it conform to MVC
I've seen it done in C, it's awful
and at least when I did it, we made an Android app, which worked out well enough for MVC
and normal Java does have GUI libraries, no?
@proper gale I don't think you should do complete MVC-stuff. But separating model and view is still a good idea. And usually you'd have a router in a web application, which you could call the controller...
import json, requests, sys
ImportError: No module named requests
what the fuck does that mean?
I'm trying to use https://github.com/elevenchars/discorddelete
I need some help with something HTML and CSS related. Anyone up?
@deep solstice I'm late I know but I know some VB (6.0 though) I might be able to help you
after some time i have gave my bot a simple menu
oh fuck i just noticed one thing and its making me want to die
Has anyone else looked into the new nvenc codec supports
Nvidia supports up to h265 lossless on most pascal cards from what i've read
And i've been looking into when this support is coming to geforce
I dont sorry
@pulsar current are you asking when h265 or other codecs will come to Shadowplay?
Because you can use OBS Studio and choose the encoder as you please
I know that OBS lets your choose which codec and how many tracks but it lacks in other areas. Shadow play is very simple to deal with and I know it's always gonna work.
what would i need to do if i want like a testimonial quote on a webpage, where it would change to a different random other one on each refresh, so that it wouldnt just be the same testimonial quote each time
use the servertime to index the list of them.
@pulsar current They'll do it if h265 ever becomes more feasible to use in real-time than h264, which probably won't happen. H264 is good for real-time use, h265 is for saving storage space at the cost of CPU power and time. A group of big time devs and companies are teaming up right now to develop the AV1 standard, which is supposed to have lower CPU and GPU usage for both playback and recording, and supposed to have file sizes just as small if not smaller than h265, but that has a few years until it'll be out and become mainstream
Hi all
Anyone up for a quick challenge
Nothing more than about 60 seconds of coding for most people
@shrewd siren sure, what is it?
- Pull all Window Handles
- Grab the title for each of those Handles (if you don't have any called "Default IME" you haven't grabbed all handles)
- Count how many are titled just "G"
This sounds like a homework assignment ๐
Lol
๐ ๐ค
Does someone have experience with ModSecurity for apache?
Depends. What's up?
@tropic grail i want an easy script that redirects me to another page after 5 refreshes. Like an secret site after 5 refreshes
And it counts down every refresh every 10th secound
If you know what i mean๐
You'd have to set a variable that increments per refresh, then upon that 5th refresh initiates a meta redirect.
Easiest way to prevent the variable from disappearing would be to set it in a cookie.
@tropic grail do you have a website with info or could you make an example that i could use
@slate beacon you would have to use cookies, HTTP remembers nothing.
@proper gale i need something in modsecurity that counts refreshes
oh, idfk.
๐๐
Behold! I've used the Google's Street View API to append an image to the page!
Hey developers friends! Here is a new Humble Bundle for us, mainly oriented for python developers, there is also some resources for web developpers ! (Digital Ocean credit and Postman REST API tester)
But also for all kind of developers, even for beginners ! (egghead.io training courses, GitKraken git client licence...)
https://www.humblebundle.com/software/python-dev-kit-bundle
Remember to set where you money goes to help caritative foundations and their actions!
Lol
@little knoll sucks that most of those are either subscriptions or PyCharm stuff, AKA not very useful
Yeah... But the egghead.io sub is really cool and worth it IMO
And 20$ that I mostly given to charity (18$, 16$ to the Wikimedia foundation) isn't that pricey imo
Found out you can get a $100 digital Ocean credit for free.
And I don't think they stack
@deep solstice I know VB what do you need help with
Anyone know swift 4.0 and how to use the CMMotionActivity function with automotive initialiser
PyCharm licence for that price is pretty nice tho
as far as you don't need to use other stuff from Intellij
it's only for a 2-month subscription
which means you can't use it after that
IntelliJ's licensing works that if you sub for a year, you get to "keep" that version without re-subscribing for subsequent years (but no updates, obviously)
IMO you don't need an IDE for Python, considering IDLE is pretty decent, and if you want to run the program from within your editor you can use Atom with the Script addon
@swift niche depending on project size, and IDE is nice regardless of language.
oh okay, didn't know about that subscription thingy
as long as you just write little scripts in python, you can use pretty much anything
Yeah. You don't need an IDE for anything. You only need a text editor. But an IDE can make whatever you are doing a lot less brain or lookup heavy.
Or alt+tabbing heavy.
but for developing a application that is a bit larger an IDE is basically a must if you want to remain productive
but that is just my opinion
is there anyone here who can help me with some sql?
The way this API's data is sorted is giving me a headache. 
@wheat orbit whatcha need
@proper gale I'd still argue that you don't NEED the pro version of PyCharm considering there is a free version, but the extra features are nice
If you want to do Django, you do.
For straight python, no, you don't.
@swift niche
@swift niche if you could look over some queries and tell me why they dont work that would be great
@wheat orbit no problem, message em to me. I actually jus got out of a database course final exam lol
lol ok thanks
@proper gale I've used Flask and Django in Atom and IDLE, although IDLE did make it difficult, but Atom was still super easy to work with
For pycharm, you need pro for Django.
But for the most part, free is fine
But then there is clion, the best c++ IDE
I'm going to try PyCharm free edition before I make any more assumptions
Because I was surprised how much easier it is to code in java with the Intellij IDE than it is to code C++ in Visual Studio
Nope, already hate it
why?
Backspace isn't even doing what it's intended for lol
Apparently it's Shift + Backspace
and the delete key doesn't lead into the next line
they work fine for me.
Seems that installing the Vim addon defaults to having Vim used automatically, AKA delete and backspace are doing what they do in VIM
back to testing
hey anyone know a good tool to check automatically if a website is snooping on a paypal iframe?
hey can anyone help me with an issue in sql
with entering data into a table which doesnt work for some reason
@raven needle from what I understood, you can't manipulate an iframe
You cannot get data from it
when my paper 2d character moves around it kinda gets messed up in ue4
is this bad practice? (having two statements on the same line like this)
basically im setting out a datagridview, the stuff on the left is the left hand column, the stuff on the right the right column
nvm i found a less terrible way
Anyone know how I can measure the time it takes for a process to start and finish in Python
Right I know I have this:
proc = []
for fn in fns:
p = Process(target=fn, args=(arg1, arg2,))
p.start()
proc.append(p)
for p in proc:
p.join()```
Each thread is executing a different function in their own process asynchronously
@swift niche import time
then time.time() will give you the current time in microseconds.
I know of that, I'm asking to measure the time of each process individually
know that starting a thread is not exactly a fast process, so it may not be much or any faster
In a synchronous program, I can just do:
...do commands here...
end = time.time()
total = end - start```
mhmm
but this is running three processes separately, and I don't know how to measure each one separately
do that, inside them.
you can use a wrapping function to call the desired function that will record the time.
just be careful of print synchronization.
These are printing to separate log files (one for each process), so that shouldn't be an issue.
What you're saying to do something like this?
start = time.time()
someProc.start()
someProc.join()
end = time.time()
total = end - start
def runInParallel(*fns):
proc = []
for fn in fns:
p = Process(target=fn, args=(arg1, arg2,))
myTimer(p)
proc.append(p)
for p in proc:
p.join()```
no
def timeFunction(func):
start = time.time();
func()
end = time.time();
pass
def runInParallel(fns):
proc = []
for fn in fns:
p = Process(target=func, args=fn)
proc.append(p)
p.start()
pass
for p in proc:
p.join();
pass
pass```
@swift niche ^
Python bothers me for some reason. 
Maybe because that's a venomous little noodle ๐ค
If a thing like that was running on my PC, I'd be bothered too... (Even if a venomous noodle would suck at running...)
@little knoll maybe beacuse its syntax is cancer?
Not cancer, just different
cancer
no explicit scope, cancer.
im fine if its not needed, but let me if i want to.
Would you hate someone because he have cancer ? No, you would just be awkward because he is different
(I can't believe that I just done this link)
different == have cancer (in this context)
"Don't judge a book by its cover" ?
true
I've just though of something, what if we just all speak using code in this channel ? (Yeah, I definitely need to sleep a bit ^^')
const ShouldWeSpeakWithCode = () => {
return "probably no"
}
Why would you return a string
Now you have to create a common function to parse it
into a boolean
ffs
return false
IMO I like Python a lot over every other language I learned at Uni, like C, C++, Java, or Javascript
Only ones I can I say I like after extended use of a bunch of languages is AngularJS, Scala, and Python
@swift niche AngularJS is an API, not a language...
also, when you start getting into complex shit, you start to like static typing.
besides python's abysmal speed.
@little knoll cpp auto const* isThisABadIdea = [&](){ return difficulty > -1; }
I have absolutly no experience in any of this, but I loved this game
anybody understand this? https://github.com/cp-nilly/NR-CORE
its the source code to a flash based game i used to love.
and then it shut down
Forever
;-;
Step 1: Research using Discord as an Identity Provider.
Step 2: Discover that Discord uses OAuth 2.0.
Step 3: Try not to cry.
Step 4: Learn more about OAuth 2.0 than you ever thought you'd need to know.
Step 5: Follow a tutorial to the letter.
Step 6: Discord now throws a 500 error at you for your attempts.
Step 7: Give up, grab a drink, and do something else for a bit.
discord's OAuth2 is simple
the sims 3 patchnotes are my absolute favorite thing in the world
to be a fly on the wall while that dev team works on fixing some of these issues like holy crap
does anyone recognise an .net technology that sounds similar to "dundercode", "thundercore", thunercode" that's easily learnt if you're familiar with MVC?
i was talking to a colleague but there's a bit of accent when they talk so I couldn't exactly identify which technology they were speaking of
Are you sure you weren't thinking of ElectronNet? that's the only electricity-sounding thing I know for .net
Huh, you'd think blockchain would be higher considering how everyone and their mother throw that buzzword around in the projects
apparently it was just a cms called Thunder
pluralsight is so good
thanks for that
the tech index
I'm trying to make nested progress bars in a Python console program, I've tried tqdm and progressbar2, but neither of them work well with nested loops
Anyone know what I can try doing?
I've also tried Progressive, but it only runs on Posix systems and I need this to be transferable between OS's
Figured out how to fix my issues using tqdm
Is anyone here a black hat, grey hat, or white hat? (Or coder interested in hacking?)
@winged zodiac also known as just a hacker...
And unless you're asking about something trivial you will want to be more specific
look in the back ground and what vedio is it you might get it
@whole quail Iโm seeing if anyone is interested in joking a ctf
Depending on the skill level it is you probably won't have much luck finding someone here
I need some help setting up LUA and LUA Sockets in the eclipse IDE... could osmone assist me getting everything working
@winged zodiac what kind of ctf? Web based technologies, embedded systems?
@ionic hull itโs the defcon quals@whole quail
yeah you're gonna need to look somewhere else for that
Oh we are just doing it for fun Iโll send you a telegram invite related@whole quail
Ahh makes more sense
Because I highly doubt anyone here capable of doing well in the defcon ctf would both have the time and not have a team already
But yeah depending on when you need it if it's just a fun go I can join
We just have a team of random coders
Anyone with hacking/security oriented backgrounds or experience? xd
But yeah that sounds like something fun I'd enjoy
I definitely couldn't help you get a good place but I have the knowledge to have some fun breaking shit
@whole quail um me and one other are hacking, we have a webdev, an os dev, a super computer engineer and a couple Linux nerds
When will you need me?
Whenever Iโll send an invite in a bit
But yeah I have a hacking/theory background and some reversing and windows stuff alongside basic web server and services pen testing
I can run tools, make a few of them and understand things basically
Ok
@winged zodiac how many points do you guys have?
@winged zodiac i do mostly web "hacking", sql injection and soo on, and you already have a guy. Good luck
you aren't from hackerone are you
anyone else dislike rails and its undocumented assumptions ?
I like rails because it has lead to some great github wars. But I don't even know it apart from that.
I get to put all this into a list because microsoft thought that making a property an integer was better than keeping it as a string array.... YAAAAAAY! IM SO HAPPY! /s
Anyone familiar with HTML, CSS, Flask(Python) please @ping me
trying to get a footer to stick to the bottom of the page and work with CSS but it refuses!!
https://www.w3schools.com/tags/tag_footer.asp have you tried this?
and theres nothing below it...?
that would help...
<footer> <div class="footer"> <ul> <li>ยฉ Copyright 2018 Bored Corner</li> <li><a href="DISCORD LINK" target="_blank" title="Discord Server">Discord</a></li> </ul> </div> </footer>
the footer is lined up
btw
use ```
k
<footer>
<div class="footer">
<ul>
<li>ยฉ Copyright 2018 Bored Corner</li>
<li><a href=MY DISCORD LINK target="_blank" title="Discord Server">Discord</a></li>
</ul>
</div>
</footer>
its a website for my community
(discord lol)
.footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
height: 20px;
background-color: red;
color: white;
text-align: center;
}
.footer li {
display: inline;
}
I tried that CSS and a lot more
It could be the div tag, but I haven't worked with HTML in a bit so hard to say
my guess would be that div tag is fucking things up
Yea, smae ^
i also tried without the div, but still doesnt work
all it shows is the same thing
ill show you the layout code
That works for me
again, I dont do website stuff... so last time I worked with html was Grade 11 in a coding class I got my school to start that ended after i finished...
<!DOCTYPE html>
<html>
<head>
<title>Bored Corner Page Layout</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}">
</head>
<body>
<header>
<div class="container">
<h1 class="logo"><a href="{{ url_for('home') }}"><b>Bored Corner</b></a></h1>
<strong><nav>
<ul class="menu">
<li><a href="{{ url_for('home') }}">Home</a></li>
<li><a href="{{ url_for('about') }}">About</a></li>
<li><a href="adada" target="_blank" title="Discord Server">Discord</a></li>
<li><a href="https://www.reddit.com/r/boredcorner" target="_blank" title="Reddit Subreddit">Reddit</a></li>
</ul>
<nav><strong>
</div>
</header>
<div class="container">
{% block content %}
{% endblock %}
</div>
<footer>
<div class="footer">
<ul>
<li>ยฉ Copyright 2018 Bored Corner</li>
<li><a href="d" target="_blank" title="Discord Server">Discord</a></li>
</ul>
</div>
</footer>
</body>
</html>
that looks fine, you just dont have any content to fill the page so that IS the bottom of the page....
add html next to the ```
i removed the discord invite links if you are wondering what the random dadad were
Might be true, try putting random filler images maybe
but also, the css code isnt doing anything to the footer
probably cause its looking for the footer class and not the footer tag....
heres the css that goes with it
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #444;
margin: 0;
padding: 0;
padding-bottom: 20px;
}
header {
background-color: #6ba3ff;
height: 35px;
width: 100%;
opacity: 0.9;
margin-bottom: 10px;
}
header h1.logo {
font-size: 1.7em;
color: #fff;
text-transform: uppercase;
float: left;
margin: 0;
text-decoration: none;
}
header h1.logo:hover {
color: #fff;
text-decoration: none;
}
.container {
width: 1200px;
margin: 0 auto;
}
h2 {
font-size: 3em;
margin-top: 40px;
text-align: center;
letter-spacing: -2px;
}
h3 {
font-size: 1.7em;
font-weight: 100;
margin-top: 30px;
text-align: center;
letter-spacing: -1px;
color: #999;
}
.menu {
float: right;
margin-top: 8px;
}
.menu li {
display: inline;
}
.menu li + li {
margin-left: 35px;
}
.menu li a {
color: #444;
text-decoration: none;
}
div.home,div.about {
background-color: #E6E6FA;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 10px;
padding: 10px 0 30px;
}
.footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
height: 20px;
background-color: red;
color: white;
text-align: center;
}
.footer li {
display: inline;
}
Works for me https://linusdrop.tips/edbc65c5.png
please add highlighting.... please
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #444;
margin: 0;
padding: 0;
padding-bottom: 20px;
}
header {
background-color: #6ba3ff;
height: 35px;
width: 100%;
opacity: 0.9;
margin-bottom: 10px;
}
header h1.logo {
font-size: 1.7em;
color: #fff;
text-transform: uppercase;
float: left;
margin: 0;
text-decoration: none;
}
header h1.logo:hover {
color: #fff;
text-decoration: none;
}
.container {
width: 1200px;
margin: 0 auto;
}
h2 {
font-size: 3em;
margin-top: 40px;
text-align: center;
letter-spacing: -2px;
}
h3 {
font-size: 1.7em;
font-weight: 100;
margin-top: 30px;
text-align: center;
letter-spacing: -1px;
color: #999;
}
.menu {
float: right;
margin-top: 8px;
}
.menu li {
display: inline;
}
.menu li + li {
margin-left: 35px;
}
.menu li a {
color: #444;
text-decoration: none;
}
div.home,div.about {
background-color: #E6E6FA;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 10px;
padding: 10px 0 30px;
}
.footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
height: 20px;
background-color: red;
color: white;
text-align: center;
}
.footer li {
display: inline;
}
yay
Maybe its what you're using to create the css?
dude got muted... rip
Rips
I can't get the CSS to work period
https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_footer yeah... problem is that theres no other content to push it further down the page... also hes using classes rather than the tag in the css
The class shouldn't be causing problems, i think
it is when he isnt using the tag and never uses a class named "footer"
@somber tangle yay im unmuted
wrong person lol
not enough content on the page, also dont use classes in the footer css, just use the tag
Wow that wasn't long
oh ok so remove the footer div
I've gotten muted before because of this chat
or should i keep the div
doesnt matter
@devout lava did you get muted too?
Yes xD
lol
lol
The bot doesn't like a lot of new lines
@thin hull should i remove the div?
doesnt matter
ok so i can keep the <div class="footer"> or remove that too
remove the class
k
ima check it now
still not syncing with css
any idea why? or do I need a seperate html for footer?
no... just a tag and the css for the tag
yes?
ok
@thin hull still doesnt work
heres the main page code
<!DOCTYPE html>
<html>
<head>
<title>Bored Corner</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}">
</head>
<body>
{% extends "layout.html" %}
{% block content%}
<div class="home">
<h2>
<b>The Place To Kill Your Boredom!</b>
</h2>
</div>
{% endblock %}
<footer>
<div>
<ul>
<li>ยฉ Copyright 2018 Bored Corner</li>
<li><a href="https:/" target="_blank" title="Discord Server">Discord</a></li>
</ul>
</div>
</footer>
</body>
</html>```
and i linked the css to that
yeah, theres no content above it... thats why, add a bunch of garbage pictures and stuff above it

