Domain: github.io
Stories and comments across the archive that link to github.io.
Comments · 493
-
Re:2x2 board
Author here.
A single 2x2 game can visit as many as 48 of the 57 legal 2x2 positions, with many dozens of passes in between moves, and obviously many captures.
This page
http://tromp.github.io/java/go...
on solving 2x2 go with various search methods may be helpful. I've lost track of my original 2x2 game counting code but suspect it was a close relative of this code.
-
Re:But why?
You do realize that ChakraCore is more standards compliant than the V8 that node uses, right..? From https://kangax.github.io/compa... es2015 features supported: spidermonkey=73%, v8=60%, ChakraCore=79%, Node 5=54%.
-
Need to download videos while using Tor?
What you should try is:
youtube-dl
http://rg3.github.com/youtube-...
A lot of people post to [The Official Tor Blog] saying with each new TBB release, "Flash still doesn't work!" No kidding? We don't know that already?
Check youtube-dl's list of supported sites at their website. You don't need a browser plugin/addon/extension for this.
I don't know if torify/torsocks is included in the TBB (Tor Browser Bundle), but in TAILS I run at the command line (after downloading youtube-dl and a quick verify of the md5/sha1 or sha256 checksums):
chmod a+rx youtube-dl
^ the chmod command only once, then:
torsocks
./youtube-dl URLtovideoorpagewithvideoEasy. There are other options such as the "User Agent" you may wish to use.
Again, if you use TBB instead of TAILS, programs like youtube-dl may need an additional option, the website for youtube-dl explains it very well.
##
"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."
- Supported Sites:
https://rg3.github.io/youtube-... -
Need to download videos while using Tor?
What you should try is:
youtube-dl
http://rg3.github.com/youtube-...
A lot of people post to [The Official Tor Blog] saying with each new TBB release, "Flash still doesn't work!" No kidding? We don't know that already?
Check youtube-dl's list of supported sites at their website. You don't need a browser plugin/addon/extension for this.
I don't know if torify/torsocks is included in the TBB (Tor Browser Bundle), but in TAILS I run at the command line (after downloading youtube-dl and a quick verify of the md5/sha1 or sha256 checksums):
chmod a+rx youtube-dl
^ the chmod command only once, then:
torsocks
./youtube-dl URLtovideoorpagewithvideoEasy. There are other options such as the "User Agent" you may wish to use.
Again, if you use TBB instead of TAILS, programs like youtube-dl may need an additional option, the website for youtube-dl explains it very well.
##
"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."
- Supported Sites:
https://rg3.github.io/youtube-... -
Need to download videos while using Tor?
What you should try is:
youtube-dl
http://rg3.github.com/youtube-...
A lot of people post to [The Official Tor Blog] saying with each new TBB release, "Flash still doesn't work!" No kidding? We don't know that already?
Check youtube-dl's list of supported sites at their website. You don't need a browser plugin/addon/extension for this.
I don't know if torify/torsocks is included in the TBB (Tor Browser Bundle), but in TAILS I run at the command line (after downloading youtube-dl and a quick verify of the md5/sha1 or sha256 checksums):
chmod a+rx youtube-dl
^ the chmod command only once, then:
torsocks
./youtube-dl URLtovideoorpagewithvideoEasy. There are other options such as the "User Agent" you may wish to use.
Again, if you use TBB instead of TAILS, programs like youtube-dl may need an additional option, the website for youtube-dl explains it very well.
##
"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."
- Supported Sites:
https://rg3.github.io/youtube-... -
Re:Really???
First of all, your comment doesn't make sense in the discussion about Android; the server implementation is not what Android does.
Second of all, Java is a very fast language, right underneath C,C++,D family languages. For one example, see https://attractivechaos.github.... It is generally 2-4x faster than C#. You can google "language speed benchmarks" for many more examples if you want.
One example:
C 1.0
D 1.1
Java 1.7
C# 3.8
Python 4.4
Ruby 71.1
R 999.9 -
Re:Safari really is the new IE
Umm, no.
WebKit team while initially extremely revolutionary have decided to take a massive shit and sit on it for a few years
Credit where it's due, they drove the web forward, but the recent investment in WebKit / Safari nightly's is, pathetic, at best. -
Re:Jarvis or Siri?
http://jasperproject.github.io...
Raspberry pi and a microphone.
-
Deep Learning
If you want to start playing with some deep learning models, I would highly recommend this page. It provides some basic examples that run right in your browser. Also, this page provides a great guide to working with neural networks without getting bogged down in a bunch of mathematical equations.
Another great resource is Caffe. Caffe is a deep learning framework that will let you define a wide variety of neural networks by just writing a text file. You can run Caffe applications in CPU or GPU mode (a lot of open source deep learning code will only work with GPUs, so being able to run things either way is a nice feature).
If you want to do computer vision, make sure that you read up on fully convolutional neural networks, because they are the big thing right now.
Remember that story about a program that was able to learn how to play just about any Atari game? That is called reinforcement learning, and that's a big thing right now too. Udacity has a great course on reinforcement learning.
-
Routers alone = shit (here's proof #1/15)
http://blog.emaze.net/2013/08/...
http://blog.ptsecurity.com/201...
http://blogs.pcmag.com/securit...
http://ea.github.io/blog/2013/...
http://hardware.slashdot.org/h...
http://hardware.slashdot.org/s...
http://hardware.slashdot.org/s...
http://hardware.slashdot.org/s...
http://hardware.slashdot.org/s...
http://it.slashdot.org/article...
http://it.slashdot.org/it/05/0...
http://it.slashdot.org/it/07/0...
http://it.slashdot.org/it/08/0...
http://it.slashdot.org/story/0...
http://it.slashdot.org/story/1...
http://it.slashdot.org/story/1...APK
P.S.=> So much for your faith in routers alone stupid (225 in total, 15 posts with 15 items each)... apk
-
Re:Next step?
So I'm likely to know I'm on a Stingray. Do you think I could sort of wardrive to try to locate the device?
Kinda. You can install AIMSICD on an Android phone; it displays a map of cell towers and alerts you when the presence of a stingray is likely. An icon in the phone's status bar will change from green, to yellow, to orange, to red indicating the threat level. I've seen a couple of yellows, which means something weird is going on with tower IDs, but isn't necessarily dangerous. If you got an orange or red icon you could pull up the tower map, find the dot, and drive towards it (or very fast away from it!).
-
Windows
This is more of a Linux thing, Windows users are mostly locked to the OS-provided console UI, but there are a couple apps out there. I used Console2 for a bit, which has a bunch of features over a standard Console window, then I found ConEmu which is what I like to use now. I configured it to work like a Quake-style console which is fun and easily accessible.
-
Re:OpenGL and LockOSThread
Instead of linking your app to OpenGL you can instead create a separate process that will do that and communicate to it through a socket. You know, like X11 does. This way you are not putting driver guts in your process space like Win 3.1 used to do. See http://msharov.github.io/gleri... for an example.
-
Re:This is not news
An test aiming to measure support for modern "html5" should not award bonus points for non-standard (speech apis)
Webaudio is a W3C standard.
At issue are the speech (sythesis+recognition) API's, not the audio API's. However...
outright rejected features (websql).
In fact it does not award points for it: it is listed, but its inclusion does not award any points. Firefox does not have it and it still gets 35/35 points in that test.
You're right - I was mislead by the fact that the feature is listed as providing 5 points, but that seems to be in error. The same also goes for speech api's incidentally.
The test isn't as bad as it seemed at first glance (though it's unfortunate that it's unclear what counts for what). Nevertheless, it counts proposed and experimental features, and misdetects at least keygen (which doesn't bode well for others), fails to do even basic validation whether a feature is implemented correclty, and it doesn't clearly make the distinction between html5 and the living spec, going so far as to link to the w3c spec for features like datetime inputs, even though that's not in the spec, but is in the whatwg living spec (from which likely later iterations 5.1 will emerge). It largely follows the living spec, but not everywhere (e.g. keygen, as you point out.)
In short: it's still not a good idea to read anything much into these numbers.
-
Re:This is not news
An test aiming to measure support for modern "html5" should not award bonus points for non-standard (speech apis)
Webaudio is a W3C standard.
deprecated (keygen)
It is not deprecated in HTML5, it will be in HTML5.1, and deprecated does not mean removed.
outright rejected features (websql).
In fact it does not award points for it: it is listed, but its inclusion does not award any points. Firefox does not nahve it and it still gets 35/35 points in that test.
-
Re:Thanks, Microsoft
Manjaro is Arch-based and comes with the XFCE desktop by default. There is even a build available in the forums that uses OpenRC as a systemd alternative.
Much slicker end-user experience than Ubuntu with Unity, IMHO. But if you do settle on Ubuntu, Mint would be the way to go though I would still recommend Manjaro (and/or XFCE).
-
Re:Maybe?
However, in my brief glance over I can't see any way to allocate a block of memory at runtime
Jeezze, you weren't kidding when you said brief. An Overview of Memory Management in Rust.
-
DevOps is a culturally rendered term
There is so much misunderstanding because there is not a universal, static definition of DevOps that everyone can point to and say "that is DevOps" or "you are doing it wrong!" This is because DevOps is ultimately defined by the capacity of the people who practice it and I think we can see (already in these postings) that many people do not have the capacity to define it.
The history of DevOps begins with the people who coined it: Patrick Debois and Andrew Clay Shafer's first discussion about Agile Engineering at a conference in 2008, which led to a Google group and then to the first community meeting as DevOpsDays Belgium in 2009. W#e can trace to the beginnings and primary source folks, so please stop demonizing and making DevOps anything more mysterious than a knowledge gap.
For an overview with my definition of DevOps, please see my blog post with talk and slides that I presented at Silicon Valley Code Camp earlier this month:
http://mlavi.github.io/post/de... -
git meets your needs
I think git can meet all of your needs, and personally I love it.
- It's a free, well-established, and well-documented open source project.
- There are plenty of GUIs.
- For inexperienced developers, there are tutorials like this one.
- Here's decent guide to getting password-less authentication via ssh working on Windows to connect to a server running locally on a Windows box (as long as it's running OpenSSH, maybe via cygwin).
- You can use Git hooks to do notifications, run syntax checks, etc. -
Re:Where can I find an extension
Except media queries are performed locally within the browser - not on the server. Even if the media query is specified in a link element in the head, the CSS file is still downloaded even if it doesn't fulfill the query requirement.
-
Github uses Microsoft closed formats
Github has become evil by accepting issue attachements in closed M$ formats
.DOCX and .PPTX. If you try to attach any odf based format, you get an error. Link to a blog article about this troubling topic: here -
LibreCrypt & TrueCrypt
True, but you should be aware that by a surprising coincidence a very similar bug has been found in LibreCrypt at the same time as this TrueCrypt bug.
-
Re:Lots of interesting comments at -1
The problem, as I see it, is that by doing it in Javascript, we're introducing a new dependency: the code will only work on a browser produced in 2015.
Well you can rest easy then, because no one is writing this stuff in JavaScript.
What triggered this change is Emscripten, which is a back end for LLVM that targets
... JavaScript. Actually it targets asm.js, which runs at about 1/2 native speed in Firefox (not so fast in Chrome, because Google thinks the solution to the same problem is NaCl).What that means is any compiler that uses LLVM can now compile to asm.js. Which means any program written in Python, Rust, Go (there are a whole pile of languages) can now be compiled to run in the browser. In particular Clang is a C compiler for LLVM. Dosbox is a x86 + MSDOS emulator, written in C. Ergo Dosbox can now be compiled to JavaScript and this run in the browser. Js-dos is a site apparently dedicated hosting games that does just that. The game console emulators are also written in C. So they to can and now have been compiled to asm.js. Because modern web browsers support WebGL, OpenGL games that have been open sourced (like Quake3) have also been compiled to JavaScript, and run spookelly well. Which is how we get to the plethora of games mentioned in the article. Pity it didn't mention the technology behind it.
But why stop a games? Sqlite3 has been recompiled for Javascript. It can do in browser SQL queries in about 2ms, and is a damned site nicer to use than wandering through a spiderweb of Javascript objects. But why stick to something sane? You can now do ffmpeg encoding in your browser.
-
Uh? #2
I need an expensive Windows 10 PC to even start developing with Win IoT??? From Microsoft's Get Started guide - http://ms-iot.github.io/conten... "Make sure you are running the public release of Windows 10 (version 10240) or better. You can upgrade from here. If you are already running Windows 10, you can find your current build number by clicking the start button and typing “winver” and hitting enter." With a Raspbian/Linux based Pi kit I can be coding within minutes on the Pi itself I don't need an additional PC! This is just a way to shove desktop Windows 10 down people's throats! Again, as if!!
-
Re:Technical stuff. Read if you want real info.
Neat, it does appear to be free:
https://ms-iot.github.io/conte...
I might actually have a use for this. Some good people reverse engineered my car's ECU and developed a free software suite for live monitoring, logging and tuning. Problem being is that it uses
.net framework and nobody has successfully gotten it to run on linux.With this it looks like I could easily add a small touch screen to my center console and have it permanently installed in the car instead of hooking up a laptop every time I want to make a change to the
.bin or log data in real time, and I could get rid of my head unit. No chance in hell I would give it an internet connection though. -
Yeah, that'll work
REF: What's in the box?
Windows 10 on an 8GB SD card
... will it even have enough space for the first run of Windows Update? -
Re:For the web only, not much more
That's not really true. See https://quixdb.github.io/squash-benchmark/. It compresses non-text data quite well.
-
Re:Hate in 3, 2, 1...
> enough goodness, smartness, built into the language that if you can just avoid the bad parts,
That's incorrect. There a million and one ways JS can bite you in the ass.
When one is forced to use fucking hacks like
"use strict";
just so that one can get warnings about using mis-spelt variable names it tells me the designer learnt nothing from BASIC and all the shite that went along with it for the past 20 years.
I can't believe you're actually defending the retarded automatic semi-colon insertion. This is almost as stupid as Python. A language should NOT impose presentation (whitespace layout), only representation (semantics.) Mathematics doesn't. Spoken languages don't. So WTF should Javascript?? At the very least it should give you a WARNING about doing something "dangerous" or "unintended" like any good ol' C/C++ compiler will do with -Wall -Wextra. In JS? Nope, no errors / warnings / or diagnostic messages. This is one of the reasons Javascript sucks ass.
Javascript's automatic type coercion is likewise crap. When one is forced to do crap like
return "" + foo
in order to force the language to _actually_ return a string, it means you need to _manually_ inspect the _rest_ of the codebase for these undefined time bombs in your code. All this dumb shit could be easily be caught at "compile time" instead of blowing up, or worse, being silent at run-time.
More dumb shit like browsers treating leading zeros as octal (which NO one uses) in parseInt( "0#" ) is typical of how fucked up JS was. Mozilla and Chrome made excuses for years for why they didn't fix their broken crap:
* http://code.google.com/p/v8/is...
* https://bugzilla.mozilla.org/s...There is a reason we moved to statically type languages -- because they catch stupid mistakes. We moved away from retarded languages like BASIC for professional programming because we have better things to do then to hand-hold a broken interpreter written by a moron.
Javascript uses `double` internally. This means it is impossible to get a native 64-bit int. Oh look, I can bit-wise OR a number with ZERO to get a "native" int32. More stupid hacks to work around the lack of a proper type system:
return foo | 0;
// cast to intJavascript's equality operator is so broken it is fucking useless and complete joke. Gee, why doesn't == even work for array and objects ?? WTF is the point of having == when any sane programmer will just use === and !== ?? http://dorey.github.io/JavaScr...
Javascript's 'scoping' is likewise dumb. Or I should say "complete lack of it." What the fuck is the point of braces if the language is just going to ignore block scope??
Every time you turn around the fucked up language adds yet another stupid "gotcha" that you have to be extra defensive about, and/or use a different work-around per-browser because the rational behavior is no where to be found. I means seriously:
typeof( [] + {} )
returns "string" ???
> But programmers can get used to anything, and it doesn't take any more or less discipline to work around these
The problem is that you don't _know_ about the quality of code written by the rest of the people on your team. There is no guarantee to catch broken JS code and that's even WITH running some sort of 'lint' and minifier program.
For the record, I _do_ use Javascript for my day job, which is WebGL.
Javascript is a the biggest piece of shit right before PHP; both languages are full of idiotic design kludges made by the typical beginner Co
-
Re:Source Code Pro
Here's a link that actually shows what it looks like. Looks pretty effective to me. Zero and capital oh are distinguishable. Capital eye, low case ell, and digit one are distinguishable. Quotation marks all distinguishable. Very readable.
-
Re:Er..
Maybe you're not updated, but forget Mono...
.NET itself is open source now. As for the track record; it's growing: http://microsoft.github.io/*Yawn*. Why would anyone outside the MS ecosystem possibly care? I am glad for them, but nobody else is going to GAS.
-
Re:That would be...
To avoid researcher biases creeping in and affecting the results. Even with double-blind studies, there can be issues of researcher bias. http://centerforopenscience.gi... This is exactly why what we're seeing here is science at work, not evidence of its failure. We must constantly review the findings of new (and even old) science to fully distinguish what is real from what is false. The world is complex place and it is often the case that things are true in one context and not true in others.
-
Uninstalled in 2009
I uninstalled Flash in 2009 and for some reason I'm still alive!
:-Oyoutube-dl downloads and streams video and audio from about 500 legacy sites in the quality of your choice.
livestreamer streams live video from about 70 legacy sites such as the popular "Twitch".
VLC and mpv also can play video from some sites directly, e.g. YouTube.
-
Re:Steal a stingray
You can buy the equipment needed to make your own on eBay. There is nothing mysterious about them, they are just base stations configured to tell phones to prefer them. It's a standard feature of cellular base station networking equipment.
More interesting are projects like Android IMSI-Catcher Detector which can alert you when your phone connects to one of these fake base stations. It's kind of alarming to see how many are in use around London, for example. If you are going to raise some cash then give it to those guys.
-
Re:need moar encryption
Well, the people that build the Internet Protocols agree with you:
"Newly designed protocols should prefer encryption to cleartext operation. There may be exceptions to this default, but it is important to recognize that protocols do not operate in isolation. Information leaked by one protocol can be made part of a more substantial body of information by cross-correlation of traffic observation. There are protocols which may as a result require encryption on the Internet even when it would not be a requirement for that protocol operating in isolation.
We recommend that encryption be deployed throughout the protocol stack since there is not a single place within the stack where all kinds of communication can be protected.
The IAB urges protocol designers to design for confidential operation by default. We strongly encourage developers to include encryption in their implementations, and to make them encrypted by default. We similarly encourage network and service operators to deploy encryption where it is not yet deployed, and we urge firewall policy administrators to permit encrypted traffic."
https://www.iab.org/2014/11/14...
W3C also had a similar statement I can't seem to find right now.
W3C for example is developing policy certain features will only be available when the website uses HTTPS:
https://w3c.github.io/webappse...Or you want attackers to inject extra code in a webpage where you enable your webcam ? I would think not.
-
Re:A comparison would be good
Is this true even if your IP address isn't associated with a valid pay TV subscription?
Seems to be for me. I haven't had a cable TV subscription for nearly 4 years now (since I last moved), and I've barely missed an episode.
You can even watch it without ads with Adblock in Chrome, or by downloading it with youtube-dl. (I'm sure there are other ways that work, too; those are just the ones I've used successfully.)
Dan Aris
-
Re:Poison the well
AdNauseam is all about this poisoning of the well: https://dhowe.github.io/AdNaus...
-
Opinion on projects like OpenRISC, RISC-V, etc.
First of all, thanks for all of your amazing contributions to free software and free culture movements in general.
I would like to hear your opinion about projects to create free hardware, in particular CPUs like the OpenRISC and RISC-V, or projects striving to create full systems respecting the GPL and without binary blobs like Rhombus Tech's EOMA or lowrisc, or any other that you might know that goes beyond refurbishing existing computers.
In the case that you hold a favourable opinion, I also would like to know if the FSF is in touch (even informally) with any of the teams behind these projects and plan to support them in any way (other than accepting changes to GNU software so it can run in these systems), e.g. by working with them from early on to ensure that they can later be endorsed by Respects Your Freedom.
-
Extensions to the rescue...
Yes, it should be a standard possibility in the browser. But until then, I use Firefox-Muter.
But it's stupid to need an extension for something as basic. Or even for a (completely unrelated) 15 year old bug which still needs an extension to be corrected.
-
Re:Legacy system based on Fox DB
This is what you need.
I've used this on some ancient xbase program that programmed 8085 controllers, and I got the xbase part of it running in no time. I ended up using dosbox and some batch files to run the 8085 assembler, and it's basically all runnable on Win64 now.
-
Re:The Anti-Stallman Brigade rears its head again
-
Re:How about fixing useful things?
Firefox can handle HTML5 video. Media Source Extensions API, DASH, and similar is what they are working on. It is complex task with a lot of active sub tasks Bug 778617 - (MSE) Tracking bug for Media Source Extensions API implementation , https://w3c.github.io/media-source/
-
Re:Iteration, Openness
I still love languages like Scala and Python and I still want Linux for most of my web servers, but the gaps are closing and the game is getting really interesting. If you are ignoring Microsoft, you may get caught by surprise.
The funny part is, MS is no longer trying to pretend that the world ends at its bubble -
.NET is nice, but not all people like it, and it's not perfect for everything; and that's okay. So, for example, you can do Python using Microsoft tools and on Microsoft platforms (and yes, it is all open source under sane licenses like AL 2.0). At the same time, a Microsoft employee is one of the core CPython maintainers, and is basically responsible for the official Win32 releases. Expect more of that kind of thing in the future.(full disclosure: I am a developer on the PTVS team)
-
Re: Here's a FAQ for slashdotters
Putting aside the question of the sanity of C++, you can compile it down to JS today using emscripten.
Granted, it would probably be faster with a bytecode JVM, but it may already be fast enough for you to use today!
-
Re:Great
Various ES6 to ES5 transpilers already have existed for quite a long time.
https://babeljs.io/
https://github.com/termi/es6-t...
https://github.com/google/trac...
https://esnext.github.io/es6-m...
https://github.com/matthewp/es... -
Here is an answer (sort of)
Seems it will roll out peicmeal like other HTML JavaScript enhancements in the past
A quick google turned up this useful link.
With many browsers you can use many features now (but not all).
-
The details are interesting
As probably many others, I've been looking into this exact problem for a while, comparing a lot of available options. Ultimately, I want something to run on Android, iOS, Windows (+ Phone), Linux, and OS X. The very complex core logic should be a write-once affair, while not having a single shared UI is not such a major issue, nor is writing some platform-specific utility classes. I have also come to the conclusion that C++11 for that core is the most viable option.
Some interesting tidbits not mentioned in the summary is that they used DropBox's djinni to generate C++, ObjC and Java bindings; and they used the Flux unidirectional data flow architecture. Both of these things are worth reading about, more so than any thing that is actually mentioned in the summary.
-
tota11y
Also make sure to check out Tota11y:
http://khan.github.io/tota11y/?ref=hn -
Precalculate your dependencies and parallelism.
Init systems seem to model themselves on Makefiles, reading everything at startup and detecting dependencies on the fly then deriving ordering and parallelism. This should all be invariant stuff, instead model things on ninja, where you calculate a giant wad of info and mechanically grind through it at startup.
-
Re:Slashdotters
Just download it with youtube-dl command:
$ youtube-dl -f bestvideo+bestaudio https://www.youtube.com/watch?...
-
Re:And the Firefox bloat continues to swell
Firefox is multithreaded. Apparently it's using 86 threads right now as I type this.
I haven't a clue what those threads are doing....
I/O, there has a been a lot of effort into moving all I/O off the main thread... I know because I refactored part of the code that hooks system calls on windows, to intercept not just our own I/O calls, but I/O calls for all system-libraries/libraries/plugins etc. Someone else finished this up and made a lovely dashboard of data that I won't pretend to understand
:)
Have a look: http://mozilla.github.io/iacom...
So a lot of the threads are I/O related. But there is also a ton of other things that are moved off the main-thread, I won't pretend to know half of them.