« first day (498 days earlier)      last day (4453 days later) » 

12:00 AM
DieVarDum gave an example of how to do it in Javascript
Which would make sense, because this is a Javascript channel
 
html : `<a id="salmon" class="various" href="#inline1">Inline</a>`
javascript : `document.getElementById('salmon').className += ' trout';`
new html representation of the dom element : `<a id="salmon" class="various trout" href="#inline1">Inline</a>`
 
of course, you have to set it up right in the stylesheet, to get it to show styles right.
<style type="text/css">
.various { display: none; background-color: #0f0; } /* anything after this overwrites it's attributes */
.another { display: block; color: #f00; } /* display overwrites various's display */
.class { position: absolute; left: 0px; right: 0px; }
</style>
 
12:22 AM
any one done much with canvas.. my scrolling with mouse seems to be extremely slow =/
ah i solved it :D
yay
 
what is the new canvas tag anyways?
is it for svg?
 
user1385191
lol
 
svg is better imo anyways
 
1:14 AM
svg is great if you don't care about speed. otherwise, :P
 
2:25 AM
0
Q: Can I get some constructive criticism on my HTML5 / Javascript pong game?

ryansworld10I am nearly done developing my pong game (made in HTML5 / Javascript), and I would like some constructive criticism on my code. Please note that this is the first major coding project I have ever done, and this is all a learning experience for me. Here are some code snippets and a link to my fu...

 
 
1 hour later…
3:41 AM
-1
Q: JavaScript if statement changing raw HTML

user1228907I'm trying to change HTML if a statement is true upon execution of a function: function checkvals() { if (num > 0) { // [HTML becomes]: <form> } else { // [HTML becomes]: <form action='submitREQ.php' method="GET"> } } On this small bit of code below which will be i...

terrific question... not
 
GGG
3:57 AM
0
Q: PHP REGEX Exclude Certain Tags?

jbman223For REGEX, I am wondering how I would clear all HTML tags entered except for the simple ones, such as <a>, <b>, <i>, <pre>. I know that I can use this regex to exclude all html charicters, but I am not sure how I would go about only removing some, and deleting the others w...

go!
 
4:08 AM
EPIC FAIL
 
4:24 AM
@RyanKinal should i go for php or asp or asp.net ?
 
@anonymouslyanonymous Node.JS
 
GGG
classic ASP! COM-based! yeshhh
 
aaawwwwwww hell no... installed astroburn and default search engine is changed?!
good bye astroburn
 
@andrewjackson i need to build a project for a company so i cant use node.js
 
GGG
you got astroburned
 
4:28 AM
@anonymouslyanonymous is should it work on more than just Windows?
 
GGG
can anyone explain to me why this might not be "not a real question" - stackoverflow.com/questions/9425419/… ... my flag got disputed ;)
i feel like this is the equivalent of saying "i went to the construction site and saw somw cement trucks, why are they using cement trucks instead of dump trucks"
 
@andrewjackson any it doesnt matter but security wise and flexibility wise , it should be good to build websites fast cause we have a time limit
 
GGG
to which the only answer can be something like "well, they're mixing cememnt, so they used cement trucks, as dump trucks wouldn't be appropriate for that"
 
it's a good question imo
 
GGG
how is it good? how could if be used there?
i honeslty see no redeeming value, it's certainly rhetorical and probably overly-broad too (seriously, how many languages have while)
 
4:31 AM
he doesn't understand that it's subject to change while in the loop
 
GGG
he was asking why a while is being used instead of an if
 
well, I understand that lol
 
GGG
that's like asking why "return" is being used instead of "new" or something
 
you would rather him have asked, "what is a loop for?"
 
GGG
sure, or just looked it up!
e.g., rhetorical
overly broad
 
4:33 AM
at a glance, without understanding what's going on, it could be confusing
 
GGG
easily learned from 5 seconds of googling, etc
 
so it just seems like a stupid question to us, because we already know
he just wants to know too lol
but ya, I agree, he probably could have found out with some searching
 
GGG
so the redeeming value then is that he's just too ignorant to know it's not a real question, even though it's not, so it is, somehow
 
(knowledge * 0) / what's going on here? = ignorance
 
GGG
(knowledge / 0) = stack overflow!
 
4:36 AM
I take back what I said about it being a good question, but still a question if not a stupid one.
 
GGG
but is it "real"
> *not a real question*
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form.
ugh markdown wtf
anyway i still say it's overly broad and rhetorical
 
real; Actually existing as a thing or occurring in fact; not imagined or supposed
well, the question certainly exists and is there, so I'd say it's a real question lol
 
GGG
that could be applied to pretty much anything that gets closed as not a real question.
 
he got a real answer, which was a good one, must have been real in some way.
 
GGG
"why is this guy using a loop?" "Because that's what loops are for."
yeah brilliant answer i learned a lot
it's a crap question, i don't see any value to anyone, stuff like this makes the site look like a joke.
 
4:41 AM
"Because he is walking up" !== "Because that's what loops are for"
 
GGG
no you're right it's more awkwardly worded
wait a minute
so you mean you think the OP thought it was just checking the immediate parent?
and not looping at all?
 
GGG
head asplode
i give up
if anything that makes it less valid =/
 
I see this site as a giant wiki about various things you can do in different programming languages...
except the information delivered is through questions
a beginner might have had made a recursive like function with statements for that type of thing
now anyone who sees that will know, you can just use loops
 
GGG
i can't fathom what sort of programming background you'd have to be from to have completely missed while loops
 
4:48 AM
well, a beginner probably wouldn't have had any experience
 
GGG
this is like me going on an economics board and asking why all the weird rectangular pieces of paper are being exchanged
 
the world would be a different place if we only traded in goods... whether that's a good thing or a bad thing is open for opinion.
I think that response can relate to a novice just starting out in programming
 
GGG
i am reading the faq now, obviously i'm confused about what this site is for
my understanding was that at least some level of professionalism was assumed
 
well... it was still a better question than this one:
 
GGG
"What kind of questions can I ask here?

Stack Overflow is for professional and enthusiast programmers, people who write code because they love it. "
 
4:52 AM
-4
Q: JavaScript if statement changing raw HTML

user1228907I'm trying to change HTML if a statement is true upon execution of a function: function checkvals() { if (num > 0) { // [HTML becomes]: <form> } else { // [HTML becomes]: <form action='submitREQ.php' method="GET"> } } On this small bit of code below which will be i...

 
GGG
that is clearly NARQ
no Q is asked
so yeah
i agree, but it doesn't make the other one any less bad
 
omg!! **** astroburn
 
GGG
wtf did you install something called astroburn lol
what did you expect ;)
 
to burn an ISO lol
 
GGG
'doze?
use infrarecorder
 
4:54 AM
daemon tools suggested it, and daemon tools is good by my book
I must've missed an option or something
it better not have installed a toolbar
 
GGG
daemon toolz comes with the usual payload of malware too these days i think
good god i cannot type today
 
daemon tools with malware?
maybe if you consider adware to be malware
 
GGG
of course i do
 
I just call it annoying-ware if it's not technically harmful, and can easily be removed
 
GGG
daemon tools was the thing that let you mount ISOs as a virtual device right
 
4:56 AM
yes
 
GGG
(AKA doing stuff that should be built into the OS)
 
well, that's true too. lol
 
GGG
yeah it had some kind of payload last i checked
 
the latest version definitely does
 
GGG
anyway, infrarecorder.
 
4:58 AM
I'll give it a try
ISO burning is actually built into win7, but for a certain iso I needed speed control
wasn't burning right for some reason on highest speed
 
GGG
hmm what is it?
 
win7 ultimate lol
had to set write speed to x4
what do you know? "Astroburn Toolbar" =@
 
GGG
can't burn win 7 from win 7? Sounds fishy ;)
 
indeed
must've been something to do with the slipstream I did
 
GGG
slipstream? idk what that is
 
5:02 AM
it's when you pre-install updates, hot fixes, service packs, and your own options to a Windows installation disk
pretty convenient if you install Windows often
 
GGG
ah, gotcha
i'm surprised the eula allows for that kind of use
 
the way the setup disks are installed makes it very easy to do, because it's a technique Microsoft uses to keep their on-the-shelf products up-to-date.
 
GGG
hmm interesting...
 
actually, that's probably not the whole reason for it...
it's just extremely convenient for IT professionals
instead of installing 1gb worth of updates on 100 different copies of freshly installed corporate Windows machines, you can just install it once before you even install Windows.
 
GGG
yeah, seems like the way to do unattended installs
i'm wondering if it's in violation of the eula... seems kinda borderline
 
5:13 AM
no, it's actually a feature
MS has a tutorial to walk you through how to do a slipstream.
 
GGG
oh wow
i guess i don't really understand the "new" MS
endorsing OSS like jQuery (lol) and node.js...
letting you copy a cd..
 
that's been around since Win98 afaik
actually, I think it's only supported by the EULA for corporate copies
I might actually be wrong about that
 
GGG
yeah i'm sure they'd tie it to a per-seat license like everything else
argue that home users don't need it (it creates business for MCSEs if home users are restricted from using the tools)
 
there's a backup feature to make a DVD copy of your Windows installation
so it should be supported by EULA, not sure
I think there's laws that say if you own it, you can copy it. just not give it away and especially not sell it.
and I don't see how MS would ever be able to detect a copied disk
maybe altered, but not copied
also, slipstreaming is a great feature for companies like HP that like to include a ton of adware on their computers
 
GGG
lol
 
5:22 AM
one thing I like is that you're able to slipstream office 2010 into win7, and have it pre-installed
 
GGG
yeah i think you might be right about some pre-existing case for copying
i'm just not used to the term "slipstream," i think that's what's throwing me off
 
well, it is technically altering it. so I can see how it might go against the eula
 
GGG
but it seems like it involves adding/ removing some packages, maybe including a license key, etc so it seems like it could constitute "reverse engineering" or something
right
 
but it's not actually altering any system files
that's the thing... the "setup.exe" does it for you by command line
 
GGG
well, you could use it to remove system files couldn't you
although i guess removing is not altering
 
5:25 AM
technically if you made your own hotfix
 
GGG
what if you just have the whole thing load up iOS
or a gameboy color emu
 
you could take advantage, and make your own little program that tricks the slipstream process into thinking it's actually a hotfix.
it is a governed process with it's own set of rules and things you can do
 
GGG
ah
 
but rules are meant to be broken, of course it would take some hacking.
 
GGG
like i wonder if you could make windows update pull from a different server
send your own updates
like being your own windows distro, lol
 
5:28 AM
I believe there was some malware that has done that
anything is possible
 
GGG
yes or for malware of course i forgot where the market's head was at for a second
 
but one of the whole points of being able to crack windows is to still be able to get it's very necessary updates
 
GGG
yeah but it would to be cool to set up an intermediary update server, with the normal one as upstream
and add other packages and stuff
 
one very effective way to crack windows is to just remove the entire system that checks for it, and implement your own that just constantly gives a false positive. lol
 
GGG
why crack it? I just want it to have some kind of decent packaging system for the good of its users
or, you know, they could just download crap from the web and get, um, burned. Who needs a package repo right ;)
 
5:33 AM
it would be bad imo... it's necessary to keep the updates extremely secure
or else you could end up constantly updating with the latest malware
better yet, have the update connect to a botnet, and the botnet command server could send it's commands through alleged "hot fixes"
botnet's are cool though lol
the problem with a botnet: you have potentially thousands of slaves connecting to one server at a time, which could bring down the command server. as server used to bring dow other servers with it's slaves...
the solution? only a couple of slaves connect to the main server, and the slaves spread the commands through hierarchy
but then a slave that realizes they're a slave could potentially become a master, by sending their own false commands
 
GGG
so which is worse: Getting all your software installed through one secure channel, packaged and reviewed openly by a community of maintainers, and all guaranteed to work together and with your version of your OS? Or downloading randomly from different vendors all over the web, and unchecking their payload of spyware each time?
 
huh? lol
obviously the second one is worse, but who would make a system like that??
 
GGG
that is the current system with windows afaik
the usual way to install software is to go find it on the web and cross your fingers
not just install things from your package repo, in batches if you like, with a few commands
 
oh, I thought you were talking about the updates still
 
GGG
i am
you can update more than the OS is my point
 
5:45 AM
the updates doesn't work like that, there's a list of servers it downloads from, but only to make sure that there's a server that's always available
they all ultimately lead to one source
which is just how the internet works
 
GGG
right but if the source was under your control, couldn't you add packages to the list of updates?
 
I can see your point though, just downloading from random vendors for different types of software.
the source is only under the control of MS
 
GGG
not if you change the source
on the client
 
like I said, it's possible, but why would you want to?
 
GGG
for the reasons i mentioned, setting up a repositiory of software to pull from
hands-free no worry installs
 
5:47 AM
it's also very hard afaik... lots of decryption and reverse engineering would be required
 
GGG
that integrates with the current system
oh that sucks
i guess just slap something on top then
 
MS spend a lot of money to ensure their updates are reliable
a community of volunteers vs a corporation with a reputation to keep
both have their own advantages and disadvantages
 
GGG
the current system is going to fall apart. everything is moving towards apps
what do you do when you want new software on your phone? go trawl the web?
of course not, you get it from a repo
 
that's communism
 
GGG
i figure apple isn't far behind, linux has been there for decades
 
5:50 AM
enjoy your communist products lol
 
GGG
iphones are communist?
it's just a matter of making it easy to get the right version of the software for your hardware and OS
 
well yes, they dictate what you can and can't put on your phone
 
GGG
instead of living in DLL hell
 
you really want to know the whole point of the app system?
 
GGG
so the android market is communist, iphone store is communist, debian's apt repo is certainly communist lol
 
5:51 AM
it's to prevent you from jailbreaking it so easily
it's a filter
 
GGG
that might be part of apple's reason for sure, i don't doubt that
 
that's actually the whole point
 
GGG
for them, maybe. but it has other huge benefits outside of that
 
believe me, it's not for convenience, because Google really isn't hard to use
 
GGG
and, again its a case of vendor lock-in
just like ms
right google makes it so anyone can host a repo
but the app concept is still there bc it makes sense
 
5:53 AM
which is capitalism =]
 
GGG
you still put your trust in one (or more) repos rather than a bunch of vendors
exactly. like debian
consumer gets a choice.
 
but atleast then you can decide who to trust for yourself
it's not really communism if there's no filter on what exactly gets added to the repo
 
GGG
exactly, so on my phone i use android market and sometimes slideme market
but mostly torrents ;)
 
it's more like socialism lol
 
GGG
torrents is just anarchy
 
5:55 AM
ya lol
 
GGG
MS is like despotism or something
 
I highly disagree
that's Apple lol
I call MS capitalism
MS levels the playing field for fair competition
 
GGG
hmm i guess i can see that on desktop
 
well, tbh... I don't have a smartphone
 
GGG
i was referring more to the way you get cleverly sucked into their toolchain to the exclusion of using anything else
 
5:57 AM
I just don't care for cellphones
it's the antichrist!! no jk
 
GGG
yeah, i dunno, i needed one to develop crap on
always had burners before, but this one is paid for so hey
 
my dad is a contractor, and I one of his employees for construction...
everyone with a cellphone would constantly call me to see if something was acceptable...
 
GGG
yeah i just ignore mine a lot
 
"Can I use this trim here" "this paint isn't there, can I use this paint" "we need more lumber, I'm gonna go get some"
 

« first day (498 days earlier)      last day (4453 days later) »