Seems quite similar to https://sizzy.co/
HN user
tjallingt
Looking really cool! Hope there will be talks about implementing this and the benefits that it will bring.
Is this also coming to IOS or are there app store regulations that would prevent apps including Hermes from being uploaded?
theres the AbortController [1] that can be used on a few new promise based APIs such as the Fetch API [2]
[1] https://developer.mozilla.org/en-US/docs/Web/API/AbortContro...
[2] https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
React team members seem to be hinting at some sort of official "adopt" (https://github.com/pedronauck/react-adopt) api which would allow for a slightly nicer way of getting access to render prop arguments. (although you still done get access to them in lifecycle methods). In the meantime this seems pretty nice: https://github.com/Astrocoders/regenerator
Would be interesting if it would be possible to take the Rust approach and guarantee at parse/compilation time that the DOM interactions are safe without runtime overhead. Probably a terrible idea for mobile devices though...
The graphs for major programming languages shows a decline in the number of monthly active users using JavaScript, interestingly this decline seemingly coincides with the incline of TypeScript users. I'd love to see whether people who stopped using JavaScript started using TypeScript instead.
Its called literate programming; for example https://wiki.haskell.org/Literate_programming
Some examples of "transpilers" targeting Javascript but writen in other languages:
https://github.com/google/closure-compiler
https://github.com/BuckleScript/bucklescript
https://github.com/fastpack/fastpack
Seems like on the average it does offer a boost in performance.
And there is some aditional work providing javascript parsers for rust (which you could build tools like babel on top of): https://github.com/dherman/esprit
I agree so much. The first season was amazing with the split story line between the main crew and Miller on Ceres but it all went downhill when the proto-molecule was introduced and suddenly there were massive shootouts (with characters who admitted only episodes earlier to never having killed/fired a gun)
I really love the political aspects and cultural differences between the various factions though.
the `=>` de-sugars to:
var currentUrl = function(_) {
return window.location.href;
}
the underscore is used so they don't have to type `() =>` insteadNot a Japanese reader so i can't fill you in on what exactly the characters mean but they are characters from the Japanese katakana script. Katakana are generally used for loanwords and each character represents a sound:
ツ - tsu
シ - shi
ソ - so
ン - n
The reason these are difficult to learn is because the tiny differences in stroke angles (especially when handwritten) make it easy to confuse them.
How funny, I recently started working and also opted for a 36 hour work week and use it to get fridays off every other week :D
``` var dividers = { 2: function divideBy2 (lhs, unused) { return lhs >> 1 }, 4: function divideBy4 (lhs, unused) { return lhs >> 2 }, undefined: function divideByNumber (lhs, rhs) { return lhs / rhs } } ```
Does this actually work? I tried it out in the Chrome Debugger and it didn't work. It looks like the author is confusing it with Rusts match statement.
All he said was that they refunded the guy, seems like information that is pretty OK to share publicly especially in response to the claim that their customer support was terrible. In addition to that the person who commented shared a large amount of information about the support ticket themselves so it seems like they are fine with sharing at least that much information about this case.
All-in-all this hardly seems like a reason to feel "violated"...
Except that if you use a western keyboard you still need to learn Pinyin or Romaji in order to be able to type the language. In my own attempts to learn a little bit of Japanese I've noticed that it is indeed difficult to associate the 'new' characters to the correct sound without using Romaji as an intermediate representation but my hope is that the more I learn and interact with the language the less this is the case. I think that, especially when using online learning tools, learning Romaji is inevitable and don't think that learning the phonetic system 'from scratch' makes it easier (if it is even possible to completely forget about your own phonetic/alphabetic system).
In short, as a starting learner of Japanese I acknowledge that the problem you describe exists but think that 'really bad' is an overstatement and it is almost inevitable that your brain associates your old knowledge of English (or other languages) to the new language.
Interesting read, although the shtick got a bit old near the end. I really wonder how this compares to inferno.js as that has some real optimisation magic to make it super small and super fast while also being, close to, compatible with React.
Fair warning: I don't know much about compilers.
Maybe it's an idea to make this a native Typescript compiler as it will profit much more from being compiled than pure JavaScript will?
This way it would probably still be possible to compile pure JavaScript but providing type information would allow the compiler to apply many more optimisations.
If I'm not mistaken V8 already does something similar to this with WASM (and I think asm.js).
That is a great explanation and after looking at the source code and reading the example more closely that is indeed what appears to happen. I do think that, albeit very clever, it's a confusing pattern though...
Aah of course; By reading the source code of the children function I figured the array of elements returned was appended to the parent element. The strange thing was that it was also adding them to `el` object but indeed it appears this is done to maintain a reference to the children so they can be modified later (which I would have seen had i read the example a bit more carefully :S )
I'm still not sure how I feel about that bit of code though but it sure is clever...
I've never seen this before:
children(el => [
el.email = input(props({ type: 'email' })),
el.pass = input(props({ type: 'pass' })),
el.submit = button(text('Sign in'))
])
Can someone explains what this does and why it is used here?
As i understand it this function both modifies the `el` object (whatever that is) and returns an array containing the input elements, but why would you want to do both those things at the same time?I found this online: https://royalsociety.org/~/media/policy/projects/eu-uk-fundi... Seemingly this is a pretty unbiased source (but who knows nowadays).
In that document it states that most of EU's research funding for the UK ends up going to higher education, and it accounts for 9.7% of their total budget. This doesn't sound like much but it's a considerable amount of money and it isn't spread equally over all areas of research.
Of course there is also pan-European research in/from the UK which will be hit by far the hardest (and one could argue is among some of the more important research).
So depending on their area of research your PhD student/professor connections might have a good reason to be upset.
Of course it is bad for anyone to take out their feelings on other people by making up stories/insulting them. But then again I question what your own motives are in posting this comment online. Especially considering that there are plenty of people who seem to have the opposite experience.
With your last sentence i wholeheartedly agree (as sad as it makes me). These days it seems that most people aren't even aware that they place themselves in a position where no one disagrees with them (see Facebook).
Since you've posted a few comments with this same sentiment a few times in this thread; can you expand on why you feel people would need to learn Ruby before getting started with Rails?
Also if you'd have taken a few seconds to open the link to the book and skim through the opening paragraphs you might have read this sentence:
There are no formal prerequisites to this book, and the Ruby on Rails Tutorial contains integrated tutorials not only for Rails, but also for the underlying Ruby language, the default Rails testing framework (minitest), the Unix command line, HTML, CSS, a small amount of JavaScript, and even a little SQL.
I have some questions about two things in the exploit code that puzzled me:
my $php_code = 'eval(\'
header("X-Accel-Buffering: no");
header("Content-Encoding: none");
header("Connection: close");
error_reporting(0);
echo file_get_contents("/etc/passwd");
ob_end_flush();
ob_flush();
flush();
\');';
1. they seem to be using php to code the exploit (solely based on the $ before the variable name) but i've never seen the 'my' keyword before, what exactly is this language?2. if i understand the exploit correctly they got remote code execution by finding the pointer to 'zend_eval_string' and then feeding the above code into it. doesn't that mean the use of 'eval' in the code that is being executed is unnecessary?
Hey, maybe this isn't the right place but i wouldn't know where else to ask this question:
I'd like to get into Rust development and maybe help out with Servo (because it seems like an awesome project) but i have very limited experience with c/c++ (arduino and openframeworks). What is a good way/place to get comfortable with Rust?
(I am using Windows, can you even develop with Rust on Windows?)
The original poster is referring to an incident that happened in Cologne around new years; supposedly there was a "mass raping" (as some newspapers put it) which was soon blamed on the large amount of "fresh" immigrants in Cologne. As it turned out the "fresh" immigrants had, almost, nothing to do with it and most of the perpetrators were people who had stayed in Germany for an extended period of time already.
Although i get why the person above is frustrated with people spouting lies about immigrants their reaction is indeed not favourable to a healthy discussion :S
You should try out LICEcap [1]; It's a great, open source, tool for creating gifs.
From their site:
LICEcap can capture an area of your desktop and save it directly to .GIF [...]
LICEcap is an intuitive but flexible application (for Windows and now OSX), that is designed to be lightweight and function with high performance.
It's the fact that whenever there are sexy people as placeholders, it is always women and never men. That's sexism right there. We just got used to it
Always and never are strong terms that I'm not sure of in this context but I understand and agree (to an extend), thank you for explaining :)
As far as whether OP's reaction was justified I guess we'll have to agree to disagree or something...
EDIT: Although I'm not sure that your "solution" to the problem (looking at picture galleries of hot males) is one that works...
(just kidding)
"that weirdo who spent 6 minutes zooming in on Emma Watson's elbow"
Hahaha I can see how that'd be a problem but OP specifically mentioned the gender of his co-workers which struck me as weird.
Thanks! That makes a lot of sense...
Although I do question whether OP meant the same thing as he specifically mentioned the gender of his co-workers which in such a scenario would be rather irrelevant.
Since I'm in the comfort of my own home I totally overlooked this option :S
But that's not the point. Sexism, in reality, favours men and hurts women. That's why an image of Brad Pitt is okay, whereas an image of Emma Watson is not okay! (and by the way, they are suggestive)
Any argument that goes "But if we switched genders, then it would be fine!" is completely missing the point that we are still living in a de-facto patriarchy, where objectification of men is not even an issue.
I'm talking about his co-workers reactions to said images (whether Brad Pitt or Emma Watson) not about sexism. As a matter of fact I don't see how the two are related at all, what in this scenario is sexist? But since you brought it up; I do not agree with you at all because I think sexism (or the "patriarchy" whatever you want to call it) hurts men AND women. Even if it might not be the same type of hurt or even have the same effects. I think the biggest problem for us as people (humanity) is when we start quantifying and differentiating between different types of "hurt".
In any case, I found the choice of images immature and closed the website right away.
Pictures of an adult woman's face are immature? You say it is suggestive but I don't find them suggestive at all, does that mean I'm immature or not?
Like I mentioned in my original post I don't understand the standpoint of OP and neither do I understand yours. What makes these images immature and what validates the OP's reaction that he wanted to protect his female co-workers from this imagery. Or did he try to protect himself from the reactions of his female co-workers to this imagery?
Again none of this is meant to be taken as an insult or attack I would genuinely like to understand why you feel this way.