« first day (2687 days earlier)      last day (2485 days later) » 

21:00
var x = $('#mob-nav li');
Just updated the codepen
to what the code should have been i.ll edit the wuestion now...
question...
Think I should sleep
you attach the click listener to the ".icon" element, which is set to display: none, and in the callback you're doing a string comparison that's completely invalid
Yes, you should go sleep and come back tomorrow with a fresh mind
also, IDs need to be 100% unique
you're using an ID like a class
Please ignore that
the ID's
silly mistake I know
21:02
It's not silly
it will break your code
Im not seeing that in the code, I edited it out like half an hour ago though :/
@SterlingArcher Right on the corner of the desk, I almost felt his pain there for a second.
the ID's was a moment of insanity
yeah, it was edited out, but it's still all really broken and wrong
Have you seen the updated code?
with the inline styles?
.icon is display:block
21:04
@Ricky your homework for the day is to read through this: github.com/ndugger/youdontneedjquery and practice writing your own code from scratch. Stop using w3schools, and try to use MDN from now on.
I don't think we can help you unless you help yourself at this point; your code is too far gone
and we're not in the business of writing your code for you
Thats fair enough, I'm not asking for code to be written just in the general error in which it has gone wrong, which you have answered for me thank you
@hilli_micha don't you dare look at my memes unless I ping you >:(
I mean, I should really just use a simple css onclick hack - much easier :)
on click, add or remove a class. pretty straight forward, do all the heavy lifting with css
animations and whatnot
exactly - I dont do much with js as never really need it since css3 - hence why im terrible at it :(
21:11
you could do that modification by altering className, or you could simply do $(theelement).toggleClass('theclass') and it'll auto add/remove the class for you.
Another reason why you might want to ditch jQuery is because you're using the className property, but you're trying to set it on a jQuery object, which is wrong
@KevinB I'd rather we inch him away from jquery at this point
Yeah, mister jquery forums moderator
we don't want your filthy kind 'round here
i mean, if you're not gonna use react/angular/vue, i'd rather have a lib in place for pulling in plugins, rather than doing everything from scratch
element.classList.toggle('foo')
21:12
and if it's there, you mightaswell use it
@KevinB but have you ever read my repo about not needing jquery? The DOM library is far more sinsible these days than most jquery methods
It's not from scratch
In this case bootstrap is in use.
bootstrap is a whole 'nother topic
you're completely ignoring half of my statement
not really
you can pull in jquery to use those jquery plugins, but you don't have to write shitty jquery code yourself
He's not calling any jquery plugins; he should just be using the standard dom api
user1596138
21:14
Why would you use jQuery plugins period.
user1596138
You're bad if you're using React/Angular/Vue/modern tools yet building them with shitty outdated frameworks like jQuery.
why would you build a cycle widget from scratch when it's already done? or modal dialogs? or any other common widget?
user1596138
Those are dead simple.
user1596138
Make yours. Save it. Reuse it.
user1596138
I don't use plugins for simple modals or tooltips or anything
user1596138
21:16
Only real excuse is when you have something that's actually complex
user1596138
Charting libraries for example.
I don't feel it's worth my time to build things like that, to each their own
My issue(?) >= poor online course choices that "teach" the code in less than 3 minutes with a video example, and then try to figure it out when using my own class, ID's etc
user1596138
You'd rather spend even more time dealing with someone else's objectively shitty framework lol
user1596138
Meh. To each his own
21:18
i mean, it hasn't been a problem yet
I mean - forgive me here - but what is foo?
@Ricky your issue is mostly w3schools, but also trying to use jquery without first understanding how to actually program. So you have a lot of broken, invalid code.
user1596138
I just hate how everyone uses plugins and such to do absolutely mundane things
user1596138
Like a modal. Your example
@ndugger - if the console does not throw errors how is it invalid?
21:18
modals are easy, i'll give you that
You know what really makes testing harder? Forgetting to hit the save button and wondering why nothing saved.
user1596138
You'd rather bring in outside code for something as simple as a pop-up..
@SterlingArcher :)
user1596138
We build our own plugins over time
cycle's can certainly be easy, if you limit the capabilities
user1596138
21:19
We even host an npm org full of them.
@Ricky you don't need to have syntax errors in order to have broken code
we have an artifactory but we have common libs of components we use
your code might run as valid javascript, but it doesn't actually work
it's not logically valid
it doesn't do what you wanted it to do
user1596138
Using a plugin should be the very last resort tho. IMHO
user1596138
21:21
Left-pad woes
user1596138
I mean if it's just your personal site. Whatever
So the console isn't fool-proof :( I'm doomed
How is the console supposed to catch logic errors?
Yer - Just trying to set-up a site for a gaming group for me and my bro
I don't know, just kind of thought it might have thrown an unknown error or something
This conversation is on the same caliber as trying to convince towc that taking girls on walks in the woods probably isn't apropriate
user1596138
21:25
> on the same caliber
user1596138
What? @towc take girls on all the nature walks you want. He doesn't know what real life is lmao
user1596138
Raised in the concrete jungle on Adderall and ADD meds
user1596138
!!afk home time
neature walks*
dammit @KendallFrey gotta watch it again
you can tell that it's an aspen because of the way it is
!!giphy neature
...
k
21:36
I got caught headbanging at my desk again
!!s/(head)(banging)/$2 $1/
cap must be dead
very nice
ah, vim driving me nuts
why can't i do left outer joins in coldfusion query of queries
lmao damn ISP registering "google" emails as spam :P
@SterlingArcher Is that a scam?
I think it's to entice a reply, then they send you the scam form
99% sure yes
is google bad?
@Wietlol edit line means what?
21:49
i just want to edit it like i do with notepad
or literally any other text editor
@Wietlol then use notepad
@Wietlol do you have the vim cheatsheet?
i dont have notepad on my server
then use vim
well, iirc, there was an "edit mode"
there's an insert mode
press "i"
well, that
21:51
if you enter replace mode you're gonna have a bad time
Throw me a simple app update idea
that would demo B2B use-case
@ShrekOverflow when you install it, it bricks your machine
then you have to use clippy to fix the permissions
Imagine if relationships had Clippy
22:22
I'm playin
xD
Seriously React, you are the worst. People are wrong about you. Just because you are popular does not mean you're good, React.
@Ricky How many times to you read code vs how many times do you write it?
can anyone confirm i am not mad?
@Wietlol have you tried asking the angel on your shoulder?
it didnt respond
22:34
@Wietlol Does the process start at all?
user2620028
@Wietlol you are not me
See if it only busts at a certain threshold by checking it's consumption with top. It could be a memory fragmentation issue.
echo 1 > /proc/sys/vm/compact_memory as root.
If CONFIG_COMPACTION flag is set.
with free, top, ps or ulimit, I cannot see any issue whatsoever
@Wietlol That's not what I asked. :p
what should "echo 1 > /proc/sys/vm/compact_memory" do?
22:38
1) Does the process start at all?
2) If 1 is true does it bust once a certain consumption threshold is reached?
i get a permission denied
Only if those two are true, should you even think about running that command...especially considering you didn't Google what it does.
even with sudo
sudo su -
Then login and try.
It defrags your memory.
But CHECK THOSE TWO CONDITIONS BEFORE YOU RUN THAT COMMAND.
Don't just willy nilly run commands as root from some dude on the internet. Jesus Christ.
what process should start?
22:40
...whatever process says it doesn't have enough memory.
I'm assuming some kind of Node process.
i get random moments where any command will just be giving back "cannot allocate memory"
even "reboot"
and after about 10 to 30 seconds, it is over again
the processes probably wouldnt start then
You have given us zero information.

1) What are you doing?
2) What is wrong with what you're doing?
3) What have you tried?
I am trying to run a command
Come up with specifics for those three questions then ask a mainsite question and link it.
4) Where did you come from?
5) Where did you go?
22:42
@Wietlol That is the most generic description in history.
any command
You might as well have said "I'm doing something."
literally nothing works
free works apparently.
i have a vps running ubuntu 16
22:42
Never heard of Ubunty.
Try adding some swap whilst you debug it
^
I would try a defrag first, but I digress.
from time to time, I have to access it and do stuff on it
for which I use putty
but, occasionally, there will be short periods of time where any command I put in it will give back "cannot allocate memory"
this happens on literally any command
You've still provided next to 0 information. stackoverflow.com/help/how-to-ask
@Allenph "free" also doesnt work
i just spammed "free" and the screenshot shows the last command that failed and the first that succeeded
there is less than a second between those calls
so, in less than a second, I have 0 free memory and then i have 3gb
im not sure what information you are looking for
im pretty new into both vps' and ubuntu
and it is something I literally have no clue on what the heck is happening
Unfortunately that means you have to Google until you have a large enough technical vocabulary to tell me what's happening in detail.
i have googled for the entire evening already
Then you should be way farther ahead than you are.
most answers are "run ps and see what program is eating/leaking memory"
22:49
@Wietlol Adding swap would've been pretty high up on that list
Which you haven't done
@BenFortune according to this digitalocean.com/community/tutorials/… and the screenshot i posted above, I currently have no swap available
@Wietlol That's why you add it...
and it is a vps that doesnt run at my home
What does that matter?
22:52
i'd have to call the comany that hosts it to ask if they would be kind enough to add it
(probably)
no
If you have root access via SSH, then you can add swap.
another guru badges, from another jquery answer
The article you linked literally tells you what to do
@BenFortune He obviously Googled and then picked the first article he saw and linked it without reading it.
@Allenph - I have a full time job as a flt driver - just try and code as and when I have the time (also have M.E so not very often )
22:56
@Ricky Well, that's the problem with being lazy.
Design patterns are important for maintainability.
Ive been learning HTML and CSS for around 2 years, fairly confident with that but javascript I tend to dabble in and out of it, I find it frustrating to say the least, I mean Python is easier#
@BenFortune i get an operation not permitted on the swapon
Oh lol, did you get a shitty OpenVZ VPS?
@Ricky Those languages have completely different uses.
Excuse me...*should* have completely different uses.
i have Virtuozzo
not sure if it is the same as OpenVZ
23:01
That's just the hosting platform, what virtualization tech does your VPS use?
you might want to find out why you're running out of memory
@BenFortune virtuozzo is openvz
it literally says "Virtuozzo"
ill try finding more details
@ssube ah fair enough
adding swap to something broken will only make it broken and slow
Yes but there are a lot of similarities - arrays, loops etc within all languages, the ones I have looked at - I have found Javascript the hardest to try and learn - a lot is down to poor video courses with a lack of in-depth knowledge or over-complicated "technical" and "Structured" terms rather than just simplifying the terms
23:03
I was hoping to at least be able to add swap to actually be able to run some commands without it falling over
^ Yeah. I'm with Ben. Adding some swap to be able to get some level of diagnostic tool is probably worth it.
@ssube no shit
the thing is, I dont really believe I am running out of memory
I'ma go de-fuck my manjaro, never did find out what happened to my WiFi
@Wietlol There's probably a memory leak
free won't show that
the free memory is waving between 2.9GB and 3GB at all times
and then out of nowhere "cannot allocate memory"
and then suddenly, back to 2.9GB - 3GB
Have you installed anything on your VPS or is it completely stock?
23:07
@BenFortune could I see the memory leak with "ps"?
i have installed gnome, java, glassfish and chrome
but pretty much nothing else
@Ricky if you learn the language on a much lower level, for example understanding just the javascript side of it, vs the DOM api, it gets a lot easier.
at that point it's just a matter of recognizing what the thing you are interacting with is
whether it's a DOM node, a string, a number, etc, because then you can just look up that object on MDN and get a full list of available methods and properties
@Wietlol Are you using it as a remote desktop?
@KevinB - Its funny, I "technically" have a level 3 diploma in JS from a college - Yet it didn't really teach me anything :/
Why did you install Gnome and Chrome?
yeah, i had a js course in college... it was useless
23:10
@Allenph ow yea, vncserver is also installed
It was obviously working before and you messed it up somehow. That would have been really good information to have.
just kinda did what the book told me to and learned nothing
at some point, I got tired of using the command line interface with it
On the plus side - I have got halfway there with my botched code to get the hamburger drop-down haha
@Wietlol That was a terrible idea.
23:11
it just doesn't close :)
I have been using windows on my computers and suddenly doing everything via the command line was not that comfortable
lol
at worst, I could just reset the server and it will be a clean install just like i got it
@Wietlol I would do that.
there isnt much on it yet though
23:12
you can reboot to a mode without it
And #GetUsedToTheCommandLine
no need to reformat
I would.
Gnome is probably destroying his RAM.
but why is it a bad idea then?
or how would gnome do that?
@Allenph sure, but that's just a matter of the boot target
23:13
@ssube You and I both know that uninstalling Gnome is not a simple matter of using the package manager.
what?
not sure what that has to do with your boot target
Aptitude never really purges Gnome completely.
@Allenph but is it just gnome or any ui software?
@Wietlol Don't use any desktop environment./
gnome is just the worst of them
23:15
@ssube I'm not sure what you mean. He installed the Gnome desktop environment (presumably by aptitude). What does that have to do with the boot target?
chrome as well is known for abusing memory
Gnome is a lot better than Unity.
Unity crashed my box like no one's business.
@Allenph the difference between gnome and not-gnome is booting into graphical vs multi-user
ow this is interesting
you can stop using it without needing to uninstall it
23:16
What about Ubuntu :)
19
Q: Why does an Ubuntu Server have graphical.target as the default systemd target?

Rémi B.I've been an Ubuntu user for a while, and at work we have many Ubuntu VM servers, all of which run Ubuntu 14.04 LTS to deploy our web applications, databases, and other tools. I'm currently studying Ubuntu 16.04 LTS, desktop and server, to be able to upgrade our production servers in the near fu...

i can only clean everything by installing a new operating system
@ssube Oh I see, yeah, but that's...dirty.
@Ricky We're already talking about Ubuntu.
You can have a multitude of different desktop environments on top of Ubuntu.
Half-listening.... still working on my "poor" code haha
@Wietlol Install Debian.
23:18
debian so much better than ubuntu?
And don't install a desktop environment. Command line only.
It's just lighter. Ubuntu is based on Debian.
well, back to hell in an hour or two
@KevinB
I couldn't figure out how to get the toggleClass to work so I restructured my HTML and kind of got the hamburger working with the code from w3schools - but its not closing :/ suppose some progress
23:46
@HatterisMad about this question windowsphone.stackexchange.com/questions/16630/… Since you have/had a windows phone, when do the numbers update? Do they update when you open the application or when you read the actual message. IMO android's new notification dots are excuse me retarded.
@ShrekOverflow you might know considering you responded to the last link
few apps take advantage of them aaah okay

« first day (2687 days earlier)      last day (2485 days later) »