Domain: w3schools.com
Stories and comments across the archive that link to w3schools.com.
Comments · 833
-
JavaScript parseInt base for leading 0 changed
http://www.w3schools.com/jsref...
"Note: Older browsers will result parseInt("010") as 8, because older versions of ECMAScript, (older than ECMAScript 5, uses the octal radix (8) as default when the string begins with "0". As of ECMAScript 5, the default is the decimal radix (10)." -
Do it yourself
I never really trust companies with my daily needs. The dependency is stressful and unpractical, so I try to avoid it whenever possible.
For feeds I use Tiny Tiny RSS these days, hosted on a VPS with some other daily stuff (mail, calendar, notes). The application is a lot slicker than the website would suggest. I highly recommend it.
Since RSS seems to take a back seat in modern web development (FOLLOW US ON TWITTER!), I also do some screen scraping in PHP to create my own feeds for sites that don't (properly) support it.
-
Re:Was FORTRAN really that hard?
> There isn't really a good starting language anymore.
Javascript is the modern Basic.
Hear me out please
... !I grew up on an Apple ][ learning Basic and then moved quickly into disassembling Applesoft Basic to see how it worked at the 6502 assembly language level. Fast foward
... after using C/C++ for ~25 years (learnt C++ back in 1990), finding Objective-C to be interesting, ironically, I'm finding Javascript of all things to be the "modern Basic"- Javascript is available everywhere since everybody has a web browser
- Since it is interpreted you can use the Console and get immediate temporary results
- You don't a fancy IDE, just a basic text editor; hell even Notepad will do the job! (Though use Notepad++ or gVim for syntax highlighting)
- While it has a few completely idiotic & retarded design, for the most part, it is a OK multi-paradigm language: Procedural, Functional, or OOP. Pick your poison.
- Javascript debuggers cover the basics. The only thing the debuggers really suck at is being able to move the "Program Counter". That is, set another statement as the "next-statement-to-be-executed". Which leads to
- printf, er, console.log() debugging -- which helps to encourage programmers to actually _think_ about the problem at a higher level.
- With it's C-style syntax I find I'm not fighting the language like I do with other languages.
- http://www.w3schools.com/ has some great tutorials that focus on the the _one_ command you are interested inYes, Javascript is a real shitty designed language in places (the "use strict' hack, lack of proper types, automatic semicolon insertion, etc.) But is "good enough" language. I can't think of another language that is "convenient' or "accessible" as Javascript. Can you?
For better or worse, Javascript has enough "basic" features and it has enough advanced features that is a OK languag. A student won't outgrow it for a while. By then they will be ready to move onto proper compiled languages.
;-) -
Re:Warning... grammar police!
http://www.w3schools.com/sql/s...
CREATE TABLE Persons
(
P_Id int NOT NULL UNIQUE,
LastName varchar(255) NOT NULL,
FirstName varchar(255),
Address varchar(255),
City varchar(255)
) -
Re:SQL injection attacks?
People are still writing code vulnerable to SQL injection attacks?
Yes, they are. It doesn't help when lots of online tutorials give crappy information, like saying to use mysql_real_escape_string in PHP instead of a proper parameterized query. (Using the escape function is better than nothing, but it's not foolproof and is needlessly convoluted.)
This tutorial, which ranks first on Google when I search for 'php sql', uses the escape method and does not mention parameterized queries at all. (The correct method is described here.)
-
Re:CSS sucks
What about this?
-
Re:Its Easy
doesn't work, because your non-compliant coding is shit. The proper markup is <br> (HTML) or <br /> (XHTML). -
Re:OPERA!?
Of course, it all depends on whose stats you use...
-
Re:The web needs a good layout engine
I agree that the rush for width in browser windows drives me nuts, especially when the web designer forces it on you.
But I'm not sure understand why this requires Regions? Multi-column has been done for quite a while.
Mozilla has some examples here: https://developer.mozilla.org/...
and CSS3 have examples here http://www.w3schools.com/css/c...Are these the same thing as regions? Or are they using other concepts all together?
-
Re:Obligatory
Huh. Works on Firefox on Win7. Doesn't work on Android with any of Opera, Chrome, or Firefox.
Pretty sure it's a question of whether CSS "font-weight: 900;" works, which depends both on browser support (anything recent should handle it, I think), and on font choice -- if the font in use only comes in two weights, two weights is all you get.
(You can test that here... I don't like w3schools, but it's the only site with a live css fiddling tool I know.)
-
Re:the root of the problem
The sales figures do not lie.
I think this just about says it all:
http://w3schools.com/browsers/browsers_os.asp
By fall 2014, Windows 8/8.1 should be completely irrelevant.
(and thank God/Allah/Buddha/Cthulhu/whatever for that). -
Re:The universe is self-organizing, ...
Maybe you just don't know how to use an anchor tag. What are you even doing on slashdot?
-
Re:This ^
You should learn how to code a URL in HTML before calling someone else a retard on Slashdot.
-
Re:There are quite a few things I'd like to see fi
Slashdot ate all my line breaks. Apologies.
That's something you would have noticed if you bothered to look at a preview of your post. Judging from your posting history though, I can't see any post that uses paragraphs. You have to use HTML markup.
It's not hard.
-
Re:Bloated horseshit
Please, tell me more about how your anecdotal evidence trumps statistics. http://www.w3schools.com/browsers/browsers_stats.asp
-
Re:Unfortunately...
What's wrong with the HTML5 audio tag for simple playback of static audio files?
-
Re:desktop
Pro tip: <p> tags are meant to delineate paragraphs, not sentences. Using them gratuitously like that is just torturing your readers.
-
Re:Some questions
The W3C's says themselves that their reason for existence is to standardize the Web to be "accessible to all users (despite differences in culture, education, ability, resources, and physical limitations)" http://www.w3schools.com/w3c/w3c_intro.asp [w3schools.com]
The reason for DRM's existence is to limit web content to those users who have the money (resources) to pay for it.
...
So yes, since W3C has lost the "essential qualities that initially defined its success" as a result of their decision to endorse an internet segregated by wealth, they have clearly met the criteria to be shark jumpersSorry but your argument does not stand up, being the fact that the W3C is not the implementer they are only approving the guideline for doing so, it's still up to the content providers to implement the DRM.
That's like saying if I release a video on several Youtube and alike sites but Google implements DRM on it (only on Youtube ) I am the bad guy. -
Re:Tone down your rhetoric
http://www.w3schools.com/w3c/w3c_intro.asp
DRM's purpose is to limit web content to those users who have the money (resources) to pay for it.
Their endorsement of DRM is antithetical to W3C's own clearly stated values, and shows that they are no longer a fit group to determine web standards. If anything, the "rhetoric" should be scaled up until they retract their approval of a restrictive internet.
And you know what? People are migrating away from the "open web"!
Ever complain that "everything is an app" and "why don't do they do a web site?".
Especially on iOS, which has supported web apps since it was iPhone OS 1.0. And it still does. Yet everyone wants apps.
You know what the result is? Try using iTunes Preview - it basically gives you a quick summary and wants you to do everything from within an app. Or take a look at Steam - SteamPowered.com is a bit more functional, but a lot of it is tied to an app as well. About the only one that isn't is Google Play - where you can do everything from the website.
Heck, try browsing the web on a mobile device, and half the time they ask you to install their app.
The "open web" is now more about hawking apps than providing content - the content is still there, but you use an app.
Eventually we'll just have stuff like iTunes Preview locking things up off the web, and if you're on any platform other than Windows, OS X, iOS or Android, that's all you get for web content.
This proposal is more about keeping the web relevant to content providers. We've already seen what happened when content provider's interests weren't taken care of - see HD-DVD which only had AACS to protect it. But content providers got angry because lack of region coding meant you could go to amazon.com and buy a HD-DVD of a movie that hasn't even come out yet. Or the Sony PSP where custom firmware was basically the reason why systems outsold games nearly 2-to-1.
The future of the web is already happening - on mobile devices.
-
Re:Some questions
How long before W3C's reputation is ruined?
The W3C's says themselves that their reason for existence is to standardize the Web to be "accessible to all users (despite differences in culture, education, ability, resources, and physical limitations)" http://www.w3schools.com/w3c/w3c_intro.asp
The reason for DRM's existence is to limit web content to those users who have the money (resources) to pay for it.
W3C's endorsement of DRM is antithetical to W3C's own clearly stated values, and shows that they are no longer a fit group to determine web standards. So yes, as you say by doing this, they have ruined their reputation.
Has W3C jumped the shark?
"Jumping the shark" is an idiom that describes the moment when a brand, design, or creative effort's evolution loses the essential qualities that initially defined its success and begins its decline into irrelevance.
So yes, since W3C has lost the "essential qualities that initially defined its success" as a result of their decision to endorse an internet segregated by wealth, they have clearly met the criteria to be shark jumpers.
-
Re:Tone down your rhetoric
Adding something to an open standard is "selling out"? WTF? Calm down and get a sense of perspective before posting these stories,
The W3C's stated purpose is:
"Standardizing the Web
W3C is working to make the Web accessible to all users (despite differences in culture, education, ability, resources, and physical limitations)"
http://www.w3schools.com/w3c/w3c_intro.asp
DRM's purpose is to limit web content to those users who have the money (resources) to pay for it.
Their endorsement of DRM is antithetical to W3C's own clearly stated values, and shows that they are no longer a fit group to determine web standards. If anything, the "rhetoric" should be scaled up until they retract their approval of a restrictive internet.
-
Re:Don't break the web.
http://www.w3schools.com/vbscript/
Yes, don't break my VBScript support or else!!!
-
Re:quite a few browsers?
You're talking about
.1% of the internet: http://www.w3schools.com/browsers/browsers_explorer.asp -
Re:Secure Boot ISN'T!
Secure Boot isn't secure nor is it a security feature. It's sole purpose is to keep Linux off of x86 computers.
Not a problem.
Top 7 Operating Systems From June 2012 to June 2013. Desktop Operating System Market Share, OS Platform Statistics 2003-2013
-
Re:It's a cookie mixer
Serious question, does the drop command accept wildcards?
-
Re:"UN Says: Why Not Eat More Insects?"
Much more helpful to present links to readers in click-able form: National Geographic News . That will ensure that more people will read it and they will be more grateful to you for saving them the effort of copy-paste.
I honestly don't want to sound like an asshole, but I strongly suggest anyone posting online to be familiar with basic link creation syntax. This W3C page is very good. W3CSchools is a very good learning resource in general.
-
Re:Releveant XKCD
-
Re:Releveant XKCD
-
Re:No , sorry.
How so? Care to elaborate or provide an example?
-
Re:Smells?
That's the new <smell> tag.
-
Re:You cannot program?
XSLT is an XML *implementation*. You write the transformations (the T in XSTL) in XML... So contrary to what you implied, you *do* write the programs in XML...
Well, I think the authorities on the matter disagree with you that XSLT is an "XML implementation". Calling it that would be like calling a Matrix Transformation specification the language of math itself; while the two do collide in some areas they are not the same or even comparable. XSLT, and XSL, are basically document type converters - e.g. ODF to UOF to OOXML kind of thing - an easy way to convert from one XML structure to another; yet it still needs the XML parser to support it, or add-ons like libxslt on top of the XML parsers.
Some links for ya:
XSLT on WIkiPedia
XSL at W3 Schools
XSLT at W3C
XSL at W3C -
Re:Stranfe quote FTA:
Still, 1.8e9 / 2500 = 720000 pixels. That's less than XGA (1024*768=786432 pixels). 90% have a higher screen res than XGA (w3schools). They should get some new monitors at NASA.
-
Re:The King is dead
When I search for "browser usage" Chrome typically lists #1: http://gs.statcounter.com/ http://en.wikipedia.org/wiki/Usage_share_of_web_browsers http://www.sitepoint.com/browser-trends-january-2013/ http://www.w3counter.com/globalstats.php http://www.w3schools.com/browsers/browsers_stats.asp
-
Re:Delete your cookies
It's my understanding that tracking is done by cookies. I delete all cookies 2-3 times a day, and always after logging out of Google (which I rarely log in to) and Facebook. The only downside is that I have to log in to again to certain sites but that is easy because of OS X's built-in password manager.
Cookies are just the simplest way to track you. Another common way is to use DSOs (Flash storage). And there are also several other possibilities to store identifying data.
And even if you manage to block everything, your browser still sends some identifying information by default. With JavaScript, even more partially identifying information can be collected, like screen resolution, your time zone or feature tests which might identify your browser even if you send a forged HTTP User Agent line (and the very fact that your browser line doesn't fit the JavaScript results might further help with identifying you).
-
Re:Monoculture
You're assuming Opera is a browser developers actually worry about. At less than 2% market share, Opera actually concerns me as a developer less than IE7 on typical projects.
Web developers are dumb as fuck. They just traded one tyrant for another.
-
Re:Monoculture
You're assuming Opera is a browser developers actually worry about. At less than 2% market share, Opera actually concerns me as a developer less than The Zombie Apocalypse on typical projects.
FTFY
-
Re:Monoculture
You're assuming Opera is a browser developers actually worry about. At less than 2% market share, Opera actually concerns me as a developer less than IE7 on typical projects.
-
Re:In other words....
Please, learn how to use anchor tags.
-
Re:I dunno...
You were supposed to reverse the array in-place, the way reverse() does. You created a second one instead, which means you're not even looking at the efficiency of the right type of operations. Welcome to the "didn't pay attention to the spec" part of the circular filing cabinet. I don't write Javascript code, but it only took a second to search for this method to clarify. That was part of the test.
-
Re:DRM
Try to use HTML entities. € should be substituted for €
But then again, this is Slashdot.
Game, Steam, NotSteam
Skyrim, €25(sale), €21
Duke Nukem Forever, €20, €6
Dishonoured, €25(sale), €18.43
Bioshock 2, €20, €3.30 -
Re:Microsoft's Windows 8 Numbers Meaningless
Fact: Microsoft is selling exponentially more licenses with Windows 8 than it did with Windows 7.
Huh? Microsoft themselves has already admitted that Windows 8 sales are at nearly the EXACT same pace as Windows 7 sales.
Okay... How about actual web usage: http://www.zdnet.com/statcounter-windows-8-license-sales-not-yet-translating-into-usage-7000008148/
Even though Microsoft sold as many licenses of Windows 8 as they did of Windows 7, Windows 7 saw much higher actual usage after one month on the market compared to Windows 8 after one month on the market. Windows 7 made up 4.93% of internet users 1 month after launch compared to Windows 8's 1.31% 1 month after launch. That paints a pretty bleak picture of actual Windows 8 usage. Even Windows Vista managed to get nearly 2% of web browser share after the first month.
So lets assume that both statistics are correct. Microsoft sold 40 million licenses of Windows 8, the same as Windows 7 for the same time period AND Windows 8's web usage 1 month after launch is only 27% of Windows 7's web usage 1 month after launch. Let's add in a few more facts, like NewEgg saying that windows 8 sales are slow and that sales of Windows devices are down 21% from last year since the launch of Windows 8. Based on these facts, we can extrapolate a story.
The story I extrapolated is this: Microsoft sold 40 million licenses of Windows 8 in several ways: 1) end users taking advantage of the cheap $40 upgrade option that has never been offered before, 2) the volume license sales of Windows that are now Windows 8 licenses that are almost ALL being downgraded to Windows 7 because Microsoft no longer sells Windows 7 licenses, and 3) a whole TON of licenses to OEMs so they could get the initial supply of Windows 8 devices in to sales channels for launch.
So lets go over these sales paths:
1) The end user upgrades are legitimate sales of Windows 8. However, I would expect these numbers to be much higher than the initial Windows 7 upgrade sales simply because of the huge discount that didn't exist for the Windows 7 launch. The $40 upgrade price is either a 60% or 80% discount depending on whether you would buy the home or professional edition. I would expect to see a small rush of people buying to take advantage of the lower price...even over the normal PC enthusiast sales of people who must have the latest-and-greatest. The $40 upgrade option would also explain why direct to consumer upgrades of Windows 8 are selling at a faster pace than Windows 7 did. When you give a very hefty discount to pretty much everyone, people are going to jump on the deal.
2) volume license sales: Business need Windows licenses and you can only buy Windows 8 now. So even though the business is installing Windows 7 with those Windows 8 licenses, they are still being counted as a "Windows 8 sale". These are licenses Microsoft would've sold whether Windows 8 was released or not. Also, i'd be curious to know whether Microsoft is including any previous Windows 7 licenses with Software Assurance as a "Windows 8 sale" as well.
3) OEM sales: This is where I bet Microsoft sold the bulk of their Windows 8 licenses. OEMs had to buy their initial set of licenses to cover their initial stock of Windows 8 devices being shipped to sales channels. World wide PC sales for 2012 are expected to be around 350 million units...or about 30 million PCs per month. I would also expect the sales numbers t
-
Re:Microsoft is right
Every time I google some CSS command, I get out with this information. But I never stopped to see where I'm getting it from.
Well, directly from W3C's page about border-radius: The border-radius property is supported in IE9+, Firefox 4+, Chrome, Safari 5+, and Opera.
-
By The Numbers
I can tell you pretty much ONLY the SMBs use IE anymore around here and even many of them are moving away from IE
Statcounter Top 5 Browsers
Net Applications
Statcounter and Net Applications are in agreement that the IE browser remains a strong global competitor on the laptop/desktop. Net Applications draws its stats from sites which have deep penetration into the mass consumer market.
[FYI: Net Applications posts a
.41% share for Windows 8 and a 1% share for Linux. Not too shabby for an OS the geek claims no one is using.]w3schools
Note: W3Schools is a website for people with an interest for web technologies. These people are more interested in using alternative browsers than the average user. The average user tends to use the browser that comes preinstalled with their computer, and do not seek out other browser alternatives.
Tip: Global averages may not be relevant to your web site. Different sites attract different audiences. Some web sites attract professional developers using professional hardware, while other sites attract hobbyists using old computers.
-
Re:Not the first time
Sorry, i don't know how to create the fancy links in the comment.
:(You have to use HTML tags.
In this case you need the <a href="yourlink"> tag
-
Re:Sounds about right ....
Anonymous
-
Re:Do you know what alpha means?
damn side nicer than this horrible thing or this fecal matter.
-
I really don't get the anti-w3schools.com snobs
I seriously question the web expertise of anyone who snubs w3schools as a "terrible", "painful" resource for web development. If you are looking for a copy-paste reference of best practices, w3schools isn't it. Nor is w3schools.com a definitive guide. However, there isn't a resource that is more user-friendly than w3schools on many of the web topics.
http://www.w3schools.com/jsref/obj_location.asp V https://developer.mozilla.org/en-US/docs/DOM/window.location
Moreover, w3schools.com does a fantastic job in maintaining the big picture of web development by separating its components in its reference pages; DOM, JavaScript, CSS, HTML, etc..
Anyone stating otherwise is full of it. The tutorials, layout, and "Try it Out' execution environment are quick and fantastic for those not interested in reading a blog. 95% of the reference needed w3schools.com has. The other 5%, as a seasoned web developer you should see blog entries, quirksmode, msdn, mdn, etc. and/or investigate in an execution environment such as firebug.
The subtle nuances, nit-picky details, over-simplification, or the lack of mention of say "getBoundingClientRect" doesn't invalidate the awesomeness of w3schools, and it certainly doesn't make it suck. Mastering a topic shouldn't turn you into a snob.
I strongly recommend w3schools.com to anyone who wants to get a good grasp of web development without diving into the advanced topics or anyone who wants a quick reference look up.
Just my two cents! -
w3schools
So its basically an alpha reimplementation of w3schools?
-
Re:Do you trust your government?
You use html a tags for links in Slashdot. Corrected Link
-
Re:Oh wow, really?
Quoting http://www.w3schools.com/browsers/browsers_stats.asp:
W3Schools is a website for people with an interest for web technologies. These people are more interested in using alternative browsers than the average user. The average user tends to the browser that comes preinstalled with their computer, and do not seek out other browser alternatives.
These facts indicate that the browser figures above are not 100% realistic. Other web sites have statistics showing that Internet Explorer is a more popular browser.
Anyway, our data, collected from W3Schools' log-files, over many years, clearly shows the long and medium-term trends.