Domain: github.io
Stories and comments across the archive that link to github.io.
Comments · 493
-
Re:bullshit
Classes are an incredibly powerful way to encapsulate functionality. Javascript has never had the proper concept of a class (let alone inheritance)
Now I know you're deeply confused. Prototypal inheritance is far more powerful and flexable than classical inheritance. This page should give you a basic overview. This paper should clear up any remaining misconceptions.
Even understanding how the "this" keyword works is a nightmare
That's because you don't understand the basics of the language. If 'this' worked the way you described, the language would be fundamentally broken. Take 30 seconds and learn how 'this' works. It's neither complicated nor confusing and makes perfect sense in the context of the language.
You seem to have very strong opinions on the language while you don't understand even the very basics. Try learning the language first. You'll find that your criticisms will quickly disappear.
-
Re: bullshit bullshit
> a consistent type system
Mwuahaha. I was following you until you said that. With JS you get stupid automatic silent conversions that are the source of hidden bugs. And just to drive the point home (JS starts @ 1:22 )
* https://www.destroyallsoftware...
Javascript's == operator is fundamentally broken as this chart shows:
* http://dorey.github.io/JavaScr...
When even Douglass Crockford, who wrote the excellent "Javascript: The good parts" says @34:31 "Why am I betting my life on this piece of crap" in this video "Javascript: The Better Parts"
* https://www.youtube.com/watch?...
You know there is something horribly broken with JS.
-
Could start with Jasper (was: Re:Free alternative)
-
Developer edition
Notably, this is one of the two "developer edition" laptops produced under Project Sputnik. It's available with Ubuntu, and no Microsoft tax.
-
Automation
I typed out something longer and accidentally navigated away. I've had an interest in programming for a healthy portion of my life. Client side automation is/was fascinating. Writing "hacks" arguably got me into programming. The demo scene is full of brilliant people, seeing what those guys do is so cool, it had a profound influence on me. Writing mods for video games held my interest for a time, most of all I really like(d) seeing how things work. I recall the glee the first time I read some comments where a programmer (in RTCW iirc something to the effect of "this part is gay and I always hated it") was lamenting the death animation where players would lay down and the remarks about about how terrible it was. I've found codesniffers to be neat for style guidelines.
Games that simulate programming, processes, or even hacking I haven't found to be very enjoyable, I want to like them more but they're just a toy when I can do the real deal. I don't want to imply that they're objectively not fun, it's more that when I'm not programming I'd rather not be play programming, I like to get my mind off of things. Memory editing is so much fun.
My recent goto for "hacking" stuff has been tampermonkey (very similar to greasemonkey but for Chrome, yes I know boo hiss - best developer tools around though) I wrote something to snag all the dropdown values on a page from a salesforce application. The product was prototyped and initially built out on salesforce and finally in Java. One of our guys was going through the page manually and writing a spec with the options, to top it off all the dropdowns aren't standard selects under the hood, they're javascript encoded value abominations solely there to hamper scraping. After some tinkering I got all the values to dump to the console log so it became a copy paste job instead of typing.
Inspiration is good, it spurs one on, and the more people exposed to it I consider a good thing. If creative young minds find inspiration in Minecraft, excellent. The engines today are capable (games or films) and the tooling is accessible. Although I think the trend is for games is less customization through traditional mod channels with the rise of DLC. Like what's happening with movies and music, there is more but fewer defining stuff, like how Star Wars was in the theaters for a year and how so many people saw it, how many present day films boast that? -
Re:Just put a ban on computer science
Australia is already second-rate in computer science. Cite.
-
Lost link to report found, and "site owners"
The link to the actual report in TFA is broken, as it was on the Belgian commission's own site until a few moments ago. So here it is:
http://www.privacycommission.b...The recommendations for site owners is to enhance the cookie opt-in banner that you already see on European sites. A cookie for cookies! It's buried deep in the heavily enumerated document, so I'll quote it in full:
To Website Owners
Relating to website owners or webmasters who wish to use the social plug-ins offered by Facebook, the Privacy Commission refers to its own-initiative recommendation on the use of cookies, in which it stipulates that owners must properly inform visitors of their website and obtain the latter's specific consent for cookies and other meta files of which they may not control re-use. In this context, the Privacy Commission refers to social networks, among others, and recommends that social network buttons are not activated until users have given their specific consent. The current integration possibilities of social plug-ins offered by Facebook, however, do not meet these criteria yet. For the time being, the Privacy Commission therefore recommends to use tools such as "Social Share Privacy" ( http://panzi.github.io/SocialS... ) as a way to obtain user consent. By using a tool such as "Social Share Privacy", third-party plug-ins do not connect to third-party servers (and consequently data are not sent to third parties) until users have clicked on the social plug-in. -
Re: Mac/Linux support removed... mildly surprised
Even if they support Linux, you still need people producing content for it that also supports Linux. I have a DK1, and while I did manage to get it going on my gentoo install, there was (and honestly still is) very little to actually play with. I ended up just installing Windows on a second drive.
Extreme Tux Racer for Oculus Rift (released a few days ago): http://jdtaylor.github.io/tuxr...
-
Re:And?
My school is mostly working and middle class and very close to being eligible for title 1 funding. Lots of recent immigrants.
We're a public school and receive no special funding.
What's more, I had to hack the school to build my program - never got any support from the school: http://cestlaz.github.io/2014/...
-
Re:And?
I wrote about some of my concerns here:
http://cestlaz.github.io/2015/...
Then add the negative impact that Gates has had on this country's ed system and follow it up with the fact that none of the players driving the bus are educators.
-
Time to move on
Stop manipulating the DOM. It is too brittle.
Better to leave that to something like React.
That gives you a much better level of abstraction as a developer and better performance. -
ResearchKit is not HealthKit
HealthKit is for those people measuring metrics around heart rate and so on (which it seems to me lots of people do simply to improve how they work out rather than because they think there is anything wrong).
ResearchKit is about measuring what ACTUALLY happens to you over the course of a day or week, rather than what you imagine (or pretend) is happening.
It's also about vastly expanding the data points researchers have into how disease or lifestyle affects people.
And the whole thing is open source so there can be ResearchKit clients for Android too...
-
Re:Flux and colour temperature
Nice -- I'd love to have a big UHD TV for development. I started with a Commodore 64 and a TV. 320 x 200 resolution.
Have a look at http://virtualmonitor.github.i... or http://superuser.com/questions... (search for "windows virtual display driver") if you decide to work on the multi-monitor feature.
-
Some more usefull info
From https://www.chromestatus.com/f...:
This feature allows authors to ask the user agent to transparently upgrade HTTP resources to HTTPS to ease the migration burden.So it is the content provider which decides if this is being used.
It is not only a Google thing, check the Firefox bugzilla:
https://bugzilla.mozilla.org/s...And the W3C Draft:
https://w3c.github.io/webappse...This is in my opinion a good thing, it leaves all control in the hands of the content provider and supports the move to encryption everywhere.
-
Re:Example code?
Page 2 of http://mrkulk.github.io/www_cv...
-
youtube-dl - cross platform FOSS/ supports proxies
there's a rumored 3rd party GUI, but I wouldn't trust it unless the code quality is cleared by someone with the know how.
there's also the rumor of a few FOSS media players working well with youtube-dl, too.
"Download videos from YouTube (and more sites)"
https://rg3.github.io/youtube-...
"youtube-dl is a small command-line program to download videos from YouTube.com and a few more sites. It requires the Python interpreter (2.6, 2.7, or 3.2+), and it is not platform specific. We also provide a Windows executable that includes Python. youtube-dl should work in your Unix box, in Windows or in Mac OS X. It is released to the public domain, which means you can modify it, redistribute it or use it however you like."
- Enough cmdline options for just about everyone!
https://github.com/rg3/youtube...- Discussion:
https://news.ycombinator.com/i... -
Re:And yet, no one understands Git.
I use Git for Windows - it's pretty simple, but does everything you need, adds itself into Explorer so you have all the options right there in context menus. It also has a bash shell environment.
-
Re:And yet, no one understands Git.
It isn't complicated. Check out Git - The Simple Guide.
-
Re:Qt?
A: You should NOT be giving the impression that either Google or Apple use Qt because you found a few independent developers how make apps for Android or iOS which happen to use Qt.
B: The OSX VLC GUI is written with Cocoa/Objective C, the only platform than I know is Qt is Linux.
I haven't used them much on Windows, but Qt apps on OSX are always a train wreck, nothing feels write, everything looks fake (because it is fake, all the controls are emulated), nothing lines up, and all look like a warmed over Win3.1 app with a cheesy emulated OSX skin. Linux is usually the only platform where Qt apps work well.
-
Qt?
You could of course a popular SDK that works on desktops as well. But who would do that?
-
Re:PHP is fine
> You say zero and 0 and "0" the same.
No, not me, I'm only listing PHP's stupidity.
Here is a table showing how PHP's == operator is completely fucked up
..
http://habnab.it/php-table.htm...Of Javascript is just as retarded
...
https://dorey.github.io/JavaSc... -
Re:PHP is fine
If you write a good foundation of libraries and classes you'll need a hack like APC to get any decent execution speed. It also sucks at memory utilization. Everyone likes to link to that "fractal of bad design" article, but it's pretty much just a bunch of whining. Here's a real article that just plain hurts, it has to do with PHP's memory allocation: https://nikic.github.io/2011/1...
-
Re:Some old quotes...
MySQL is not necessarily faster. Check out this graph of response times. I posted this mainly to illustrate the difficulty of getting good benchmarks, more than anything.
-
Re:Hello
Using this setting is more then just removing a button. WebRTC allows a number of privileged network commands to be run (with very poor protection against misuse), including one that can be exploited to enumerate of all your network end points. That means a web page can see your internal network addresses (for example your intranet IP address and any secondary or virtual interfaces). This can even reach behind a VPN or TOR connection, defeating just about any IP privacy guard.
If you have WebRTC enabled (it is by default in Chrome and FireFox) you can visit this demo by Daniel Roesler which runs some WebRTC code to get your IP address(es). If you are on a VPN you'll notice that it can sniff your real IP address, and if you have multiple network connectors (such as if you run developer virtual machines or servers) you'll see those segments too.
-
Re:No no!
It's quite possible; but there definitely are web types(and, even more so, their 'content provider' masters) who think exactly this, so I was willing to take the risk.
Pretty much this exact attitude is why the "Encrypted Media Extension" 'spec' exists, to provide something that qualifies as 'HTML 5' (Don't call it a plugin! It's a 'Content Decryption Module' that just happens to be operationally identical to or worse than a plugin!); but allows the site operator full control over execution. -
Re:node.js (eye rolling)
ES6, you mean like this?
http://kangax.github.io/compat...
Or maybe your failing to understand that all those "choices" are just fancy syntax on top of the heaping pile of dogshit that is javascript in the browser. Heck you can write C/SDL and target a browser with emscripten http://kripken.github.io/emscr..., but that doesn't solve 1/2 of the core problems, only papers over them.
Node, and ES6 are "better" but its still just lipstick.
Oh, and connection count doesn't have anything to do with "scalability".
-
Re:node.js (eye rolling)
ES6, you mean like this?
http://kangax.github.io/compat...
Or maybe your failing to understand that all those "choices" are just fancy syntax on top of the heaping pile of dogshit that is javascript in the browser. Heck you can write C/SDL and target a browser with emscripten http://kripken.github.io/emscr..., but that doesn't solve 1/2 of the core problems, only papers over them.
Node, and ES6 are "better" but its still just lipstick.
Oh, and connection count doesn't have anything to do with "scalability".
-
Re:Not really happy
Also, HTTP/1 already allows a browser to send multiple requests without waiting for the response of the previous request.
But it doesn't have a decent mechanism for sending responses before they're requested. With HTTP/2, your server can say "here's the page HTML, and here's a stream for the favicon linked in the HTML headers, and here's another stream for the JavaScript". The quickest request is the one you don't have to make.
-
Some ad networks are still HTTP-only
and by the way, chrome and firefox will only allow http2 with TLS
Will they support HTTP/2 opportunistic encryption (TLS with the http scheme)? Or will webmasters have to negotiate with their ad networks and other third-party providers for support for the https scheme before switching to HTTP/2?
-
They bowed to the NSA
Does HTTP/2 require encryption?
No. After extensive discussion, the Working Group did not have consensus to require the use of encryption (e.g., TLS) for the new protocol.
https://http2.github.io/faq/#d...
And please, avoid suggesting alternative explanations, it would be an insult to human intelligence.
-
Re:Yes we should but...
If everyone is able to program, it will unlock the potential for more powerful interfaces. Something like this guy is talking about. Or the Squeak OS, where every button is re-programable by the user.
-
There is for Drupal
-
Popularity != Quality
McDonalds may serve billions, but no one is trying to pass it off as gourmet food.
Kind of like PHP and Javascript. The most fucked up languages are the most popular
... Go figure. -
Re:Windows on Pi?
-
Re:Simple:
Or better yet, use Minecraft to teach them the basics of logic and programming.
A modpack with ComputerCraft, RedLogic, and possibly a couple of "just for fun" mods like Thermal Expansion or RailCraft would be a solid starting point...if you want to put together something more complex, contact me on IRC (esper.net, #minechem channel) or via Twitter and I'd be more than happy to help you out.
Disclosure: I develop the Minechem mod, and help maintain a couple of different modpacks. -
Re:3, 2, 1...
> Just uninstalled Flash minutes ago. I'd been thinking about it for a while, but this pushed me to take action.
You've been able to play most youtube videos with VLC for years, just drag-and-drop the URL for the page into VLC and away it goes. So much nicer than the web interface - easy to resize, you can play at 1.5x speed which is great for any interviews and lectures, etc. The only time it doesn't work is when there is DRM on the video, but for that, youtube-dl lets you download it and play it locally in VLC. It would be nice if there was integration between youtube-dl and vlc, that would be sweeet!
-
Text editor or bust!
I still hand code my web pages in a text editor. I'm in the process of converting an old WordPress website into a static website using the PHP PIP framework. No sense keeping WordPress updated for a website that I stopped posting to a few years ago.
-
Re:Too blurry
OK, there was no $29 in front of the comment text. And next time, youtube-dl.
-
Re:Get rid of flash on slashdot, firefox
> Hey, mozilla, please implement proper MSE support, so that youtube actually works thank you!
Screw that. Just use VLC. I block all flash and just drag-and-drop the youtube URL into a VLC window. The UI is so much better and you can do things like play at 2x speed. The occasional DRM'd video can be handled with the youtube-dl utility.
-
Use the source, not the news article
http://stribika.github.io/2015...
that's how to secure ssh
-
Re:I don't think it's recording calls
Actually, the leaked information on stingray and other similar IMSI capture devices say they can snoop on the communications by becoming the most powerful cell in the area which cell phones will attach to and then basically proxying all calls to a legitimate tower. A true man-in-the-middle attack. Then, although 3G and 4G offer sufficient cryptographic protection from eavesdropping, that stronger encryption can be downgraded to the insecure A5/1 algorithm or completely disabled by forcing a mobile device into 2G mode. There is a lot of info on these devices collected at the Android IMSI-Catcher Detector (AIMSICD) project page on github. https://secupwn.github.io/Andr...
-
Better a horse in the race...
At least Netflix push back - I gave up on LoveFilm entirely because they went the extra mile in preventing Linux access (at least back when I tried it). I am happy to keep paying for Netflix as long as they are happy to keep pushing, I can accept that they're going to have to meet studio demands part-way to keep getting content. As long as somebody's not busy breaking Pipelight, somebody's creating award-winning independent content from the ground up, somebody's doing simultaneous worldwide releases, somebody's trying to support Linux, somebody's open-sourcing parts of their core tech, I'd rather they cut the deals to keep them in the game, at least their chips are big enough to make a difference.
Maybe it's just because I (sometimes) can find more classic films I want on Amazon Instant Video, but I get HDCP errors or "device not supported" and think, I bet it's a noisier debate when the Netflix reps sit down with the various MPAA negotiators.
-
Re:No Custom Building?
This isn't too far off of what a lot of the virtual pinball cab folks are doing to add light shows and other toys alongside their virtual pinball machine (currently controlled by emulated ROM). They've designed whole APIs that abstract hardware (arduino, cheap Sainsmart USB relays, LEDWiz, etc) from lighting commands and macros. It could be used with any combination of lighting controllers. There is a lot of off-the-shelf hardware that is designed for this purpose, including the amplifiers you can use to control more power hungry arrays of lights.
For the software that runs it, see the DOF project:
http://directoutput.github.io/...
Notice how it has a bunch of built in effects - that would be perfectly suited to this. It would probably be very trivial to modify this project to trigger off time codes instead of the ROM solenoid requests that it currently looks for to activate a sequence.
-
Re:Do Not Track never meant anythingI think we might see some improvements to some browser extensions and will get some control over the font situation.
One possibility that could be enabled today with a UserScript even:Choose which fonts to allow the browser to see/use, make it an array, filter the page's HTML, replace any fonts that don't match with Arial.
Beyond that you would probably want an extension that has functionality like RequestPolicy, so you could allow some sites access to "all fonts", or one could get even more finely grained down to which individual sites can use which font.
Although it could even be done at the OS level. It will be interesting to see who does it first. If the browser is truely caged and segregated, then it should only have indirect access to system level folders. -
Re:seems a lot like human vision to me
It might be similar but it's not the same mechanism. When you see an object in static, your brain knows that it's just making a guess so the guess is assigned low confidence. But here they showed that you can actually design a picture that looks random but is assigned very high confidence of being an object.
This type of phenomenon is very well known. It's not news, people have known about this sort of stuff in artificial neural nets since the 80's. I guess they just sort of assumed that deep belief nets would get around this problem, but as far as I know there's no reason to believe that. There's a related phenomenon which is assigning very low confidence to a picture that is very clearly a certain class of object - and then if you add a small bit of noise the confidence goes way up. For the interested, this is a good page which explains why some of these issues happen: http://colah.github.io/posts/2...
Just one thing I want to get off my chest: I wish this deep learning fad would die. I first started using deep belief nets around 2006 or so when Hinton published his now-infamous Science paper. I thought it was cool and used it a lot, but I knew it had limitations. Then around 2012 or so this whole thing just started becoming a hugely-hyped meme that everyone wants to get on board, without any knowledge or wisdom - they just want results. This is going to be a recipe for yet another AI "failure", when people realize that they couldn't live up to their own hype.
-
Urho3D
Has anyone used the Finnish Urho3D engine? It's odd that it isn't more well known, as the feature list certainly packs a punch.
-
Urho3D
Has anyone used the Finnish Urho3D engine? It's odd that it isn't more well known, as the feature list certainly packs a punch.
-
Different Comparison Needed
Although the comparison pages posted in this thread (this is an awesome one https://xooyoozoo.github.io/yo... ) are fun and interesting, they compare the bit efficiency of the two algorithms. That is important yes. But that isn't how these formats are used: when bandwidth is an issue (and it is to web site authors, be they individuals or companies, no matter what anyone on this thread says to the contrary), compression is increased to the threshold of perceptibility, or a little beyond. That is, the provider will increase compression until artifacts are just barely noticeable.
So, the more pertinent question, in terms of image quality, is how the two algorithms compare for equal levels of error, both in number of bits, and also in subjective image quality.
-
Re:Better comparison site
The below site offers a better comparison interface than the Lena image link from the post. Drag your mouse across the image to see the effect:
http://xooyoozoo.github.io/yol...
Interesting, thanks for the link -- I must say, I see pretty much no visual difference at all between BPG and the WebP format on those sample pics, at identical file size.
-
Re:Compare to...
I realize that this is Slashdot and we have a great tradition of not RTFA, but given that this is about an image format you could at least go LATFP (Look At The Fucking Pictures). It's also an impressive display of how well image deciding using JavaScript works (but then, this is the guy who wrote an entire x86 emulator capable of running Linux using JS, and even made it work on IE; I have no doubt as to the man's skill in that realm).
Link for image format and quality comparisons: http://xooyoozoo.github.io/yol...
Link for info about the image format and links to more comparisons: http://bellard.org/bpg/