Better HN
topnewbestaskshowjobs
Log inSign up

Coding_Cat

837 karma · joined Oct 11, 2014 (12y ago) · 272 submissions

Submissions

comment 11y ago · link · parent

Alternative link:http://www.browserfordong.com/

Oddly enough, running a whois on the above returns a different company/person then microsoft. I suppose Microsoft paid them to forward this, or they're much nicer people then I am... Missed opportunity for a prank.

comment 11y ago · link · parent

Have you seen the code written by physicists? Go look up the source code to CERN's ROOT package and browse it's change-log. Some of it quirks can be forgiven for it being incredibly old, but still...

comment 11y ago · link · parent

Same for my Galaxy S3, it has a radio app but it needs a pair of headphones to be plugged in.

comment 11y ago · link · parent

It should be noted that all of this is based upon "a person with knowledge of the figure". It's easy to manipulate these kind of numbers, and Google might very well have an interest in doing so.

For example, they might attribute the costs of building a new data-center to their YouTube branch, but actually use it for all their services. And they're probably not making their collected data on you into account.

Why might they do this? To make their main business seem stronger at the expanse of YouTube for whatever reason, to help justify lower CPM on YouTube content, because admitting that data-mining your customers is your long-term plan is generally not a smart idea (even if you're Google and people should know by now).

comment 11y ago · link · parent

For addition I can't either, but you could use it to overload multiplication of two (mathematical) vectors to a dot-product

  impl Mul for Vec2{
    type Output = double;
    fn mul(self, other: Vec2) -> Double {
      self.0*other.0+self.1*other.1)
    }
  }
Although I must admit I'm not (yet) sure why you need to explicitly state the output and define it for the function. But I have only just started with Rust.

comment 11y ago · link · parent

I don't know about the battery controller, all of it works with Linux (System76 is a Linux retailer after all).

comment 11y ago · link · parent

It depends on what you're doing of course. Normal usage (playing music/Youtube, browsing firefox, coding, opening up some PDFs) gives me about 6-8 hours I'd say, I get about 3 hours of (modded) minecraft, which is quite the battery drain. this is on Gentoo (Awesome as WM) so the background drain is pretty low. It's good enough that I never really pay attention to it.

upower says the battery is designed to store up to 48Wh, with a maximum design capacity of 53Wh.

comment 11y ago · link · parent

There's System76, which are basically pre-loaded Clevo laptops (which are sold under many different names). I have the Galago Ultrapro and am quite happy with it. Good battery life, fast, user-serviceable and a calibrated IPS screen. On release the keyboard was a little off, but the new one is pretty good.

comment 11y ago · link · parent

It's nice to see an article about GA, I've been working on them myself recently, fascinating stuff.

However the definition of Tournament Selection[1] is a little bit off. With tournament selection you don't take the fittest "k" individuals but you take a subset of "k" individuals at random and then apply proportionate selection.

[1] http://en.wikipedia.org/wiki/Tournament_selection

comment 11y ago · link · parent

Not completely. For example, the Dutch government will often bargain for the freedom/extradition of their citizens if they are arrested in a foreign country for breaking their law, and the punishment is considered excessive/immoral. E.g. the Death penalty for drug trafficking.

Of course, they won't send in the fleet to come and free you, so their bargaining power is limited but it has had its successes in the past.

comment 11y ago · link · parent

Are commuters to blame for the poor working conditions in the public transport industry? No. Do commuters suffer when conductors go on strike? Yes. Does it work? Yes. Does complaining to your boss work? No. Its unfortunate but at the end of the day the only thing he can use (apart from quitting outright) as leverage is malicious compliance, which includes working the exact hours your paid and nothing more.

I feel for the student, but a workers' rights are more important to me. If I were in the students position I would be pissed, but not at the professor but at the institution. The same way I don't get mad at conductors going on strike because of poor working conditions even if I have already bought a ticket.

The 75 hours was also in reference to allowing every student to do the same (you either allow all students to have a look, or none), and I can tell from experience that it will end up taking quite a bit of time. Most students mean "could you go over the exam with me" when they ask to review their exam. Just having them glance at the red markings will generally not do them much good anyway. And putting them in a box for pick-up (while also being more unpaid work) is generally not allowed in my opinion. The university holds on to the exams for administrative purposes, meaning he would have to supply photocopies instead.

(Source: TAing and TAing friends)

comment 11y ago · link · parent

He is already doing job B, while on paper it still says A. (fulltime work without benefits for an hourly wage comparable to an intern). That's the problem.

comment 11y ago · link · parent

Don't worry, he was using C and he defined THEN as an empty macro statement.

comment 11y ago · link · parent

>I also find it odd that it wasn't until the 1990s that global warming became a 'thing.'

It was a thing in modern science since the 1940s. Which is about as early as you could gather statistically significant data [1]. It did not garner widespread public attention immediately, as is to be expected. Interesting that you should point out that the mainstream attention only appeared after the end of the cold war, perhaps politicians and journalists where otherwise occupied during that time?

> Just seems rather coincidental that the goal of the Marxists has always been the control of the means of production; the same goal and aims of the anti-carbon crowd.

The means of production? you mean the carbohydrate-based power used to drive everything we use that absolutely dominated western politics, both economic, foreign, and domestic for many a decade? Or do you mean the new, and relatively small, green power market? Which is, bare a few outcrops, still dominated by the old oil-industry based companies. Be it by investing in alternatives directly or by buying out competing start-ups.

[1] http://www.aip.org/history/climate/timeline.htm

comment 11y ago · link · parent

A whole lot of words for very little actual content. For one the article recognizes that there has been a response from the opposite party saying:

"the way this wholesale manipulation of the official temperature record – for reasons GHCN and Giss have never plausibly explained – has become the real elephant in the room of the greatest and most costly scare the world has known."

emphasis mine. To me this means that GHCN and Giss did put forward arguments as to why the data was modified, however instead of showing the reader these arguments (and why he believes them to be implausible) he simply dismisses them.

And frankly, the rest of the article is a devoid of information as the above. There is a whole lot of name-dropping, and name-calling ("James Hansen, the scientist (later turned fanatical climate activist)"), but no where does he put up any actual references or data to back-up his claims.

I do not have the time to dive into literature and dissect his points one by one (again, he does not offer any references or concrete data so that would be difficult anyway), however his song sounds very familiar. Scientists adjust their data to ignore known cyclical effects: they're manipulating the facts! Scientists don't adjust their data: they're ignoring history to suit their agenda!

And slightly off-topic, what are so many Americans doing in the comment section of a UK newspaper? And why are people ranting about Obamacare on an article about climate change?

comment 11y ago · link · parent

Informally, a dram is usually just a regular (perhaps smallish) serving of scotch. Usually between 1 and 2 fingers high in a regular scotch glass.

comment 11y ago · link · parent

It's a shame the article missed them, but while they may not be as prevalent security and game programing do have their own academic departments these days. Often times they are placed under the "CS department", but that is to be expected. Astronomy, theoretical physics, soft-matter and applied physics all share the same department as well.

Computational Science is a bit of an outsider I have noticed though. It varies by university whether it is math, physics, computer or general science. Probably because it occupies the cross-roads between these.

comment 11y ago · link · parent

You are absolutely right on the fact that it doesn't, but I have seen plenty of people claim that high-level languages absolve you from having to think about memory.

Wikipedia says: >"[High level languages] may [...] automate (or even hide entirely) significant areas of computing systems (e.g. memory management)" And I think most people who make such claims have read similar statements and simply confuse memory-management with thinking about memory issues. (The distinction is that well defined anyway).

comment 11y ago · link · parent

"Well, Mr. Frankel, who started this program, began to suffer from the computer disease that anybody who works with computers now knows about. It's a very serious disease and it interferes completely with the work. The trouble with computers is you play with them. They are so wonderful. You have these switches--if it's an even number you do this, if it's an odd number you do that--and pretty soon you can do more and more elaborate things if you are clever enough, on one machine."

Straight from the man himself. Page 79 of [PDF warning] http://buffman.net/ebooks/Richard_P_Feynman-Surely_Youre_Jok...

comment 11y ago · link · parent

>I wonder if you can be truly depressed if you don't fear anything?

I would say yes, often times depression manifests itself not as a feeling of fear or dread but as apathy. See for example Hugh Laurie's personal life [1,2] or Nine Inch Nails' Everyday is Exactly the Same[3] which captures that exact feeling. Or of course the wonderful Hyperbole and a Half's account of depression[4], especially the second part makes the point that depression at its worst is a void. No positive feelings, but also no negative ones.

Now I made myself sad^H^H^H apathetic going through those sources. Why does Trent Reznor have to be so good at projecting?

As for the anxiety bit (anxiety and depression are to completely different things), the article mentions her response to having her blood-co2 levels elevated, which seems to me to be a standard anxiety response. A feeling of restlessness and dread.

[1] http://en.wikipedia.org/wiki/Hugh_Laurie#Personal_Life [2] http://www.dailymail.co.uk/tvshowbiz/article-2316880/Playing... (I know, I know, Daily mail but the quotes are worth it) [3]https://www.youtube.com/watch?v=-Aj9_8t1eQc [4] http://hyperboleandahalf.blogspot.nl/2011/10/adventures-in-d...

comment 11y ago · link · parent

I absolutely adore Krita, it really is one of my favourite programs. It's very intuitive in its controls and very good at "getting out of the way" when you're painting.

For example, it has a quick-selection wheel that pops up when you press right mouse button. It's a radial design with the outer layer being your favourite brushes, then your last used colours and in the middle it has a colour-selection triangle. This means that if you're drawing in full-screen mode (hiding all the controls) you hardly ever have to switch back to the menus to tweak stuff (changing brush size is also done by holding shift and dragging), only to switch layers really. (that is my work-flow at least)

And, if anyone is looking for an OSS project to contribute too: Development is very active and open, it's written in C++ Qt/KDE. :)

comment 11y ago · link · parent

Another great one-man-team is Lucas Pope, creator of Papers Please and (currently in development, but the demo has already seen great reception) The Curse of The Obra dinn, as well as a few Ludum Dare games.

comment 11y ago · link · parent

You would still have the issues described in the OP. If it says "username incorrect" only when that user does not exist, you can still figure out a username by just trying them with a random password. If you get told "password incorrect" you know the username you just tried already exists.

comment 12y ago · link · parent

//Disclaimer: I am not a lawyer.

I can not find a source on Marine Le Pen actually being convicted, but Wilders was not. He was charged, however this only happened after enough citizens pressed charges: initially the public prosecutor declined to do so until they were forced to do so (Dutch law allows victims to fight the prosecutions decision to not press charges). It came to a long trial (he was charged for inciting hate/violence) and the court ruled that he was not guilty, but said it was on the edge of legality.

Basically, it is (legally) okay to say that the Quran incites hate in people, or that middle-eastern immigrants hold backwards customs which clash with Dutch tradition. That is considered part of public discourse. But you are not allowed to then say "And therefore we need to remove them all, by force if necessary" as now you are inciting violence.

Furthermore, Wilders was at the time (unfortunately imho) not the leader of a "minority party" see for example this: http://nl.wikipedia.org/wiki/Kabinet-Rutte_I#mediaviewer/Fil... It shows the distribution of seats in the Dutch Parliment. PVV is Wilders' party, 'rest' is the remaining parties.

comment 12y ago · link · parent

The thing with math (and abstract CS) is that it's generally purely logic. In principal you should be able to write (at least verify) an entire article with no outside references as it is all logical deductions, it's armchair science in that sense (no negative connotations meant).

But if you're going to write an article on say quantum computing or confocal microscopy, to name random things, you are going to need outside references to experimental work, history, best practices, open debates, etc. And that is usually where the errors slip in, how many people actually check the sources properly?

They're also usually pretty terrible when it comes to modern science things, but I suppose that can be attributed to a small group of people actually knowing about those things in the first place.

comment 12y ago · link · parent

Basically the whole package. The instruction set is pretty big, but this is not much of an issue as you generally just need a subset for a given problem (I generally only tweak SSE/AVX code) and it has a lot of if's and but's when it comes to performance, the out-of-order execution also adds a degree of uncertainty, branch prediction and prefetching, a complex(ish) cache... There is a lot of things one can fiddle with in order to improve performance.

GPUs are much stricter in their design, which can lead to some headaches when having to completely change the way you formulate a problem, but once you're past that step, the simplicity of the architecture makes it a lot nicer to optimize in my opinion. (And my personal experience has been that the tools are cheaper (free) and more stable as well, but your mileage may vary).

comment 12y ago · link · parent

It is my understanding that it sits in between a GPU and a CPU in terms of "ideal work". Like a GPU it favours SIMD work, but it is better at dealing with branches and a lot of random memory accesses[1] (it still favours linear work of course). It also uses a more familiar architecture, leading Intel to claim it is easier to master than GPU-programing, but I personally disagree as x64 is already much more complex than GPUs.

In terms of FLOPS the FX-9590 is still significantly slower. I don't know the exact numbers, but it will be hundreds of MegaFlops, whereas the Phi runs at ~1 TFlop. In part because the cores are basically low-end (in-order) atoms with modules bolted on for HPC (avx-512 instructions, instructions for exponentiation for example).

Data transfer to the card is a lot slower than reading from ram, correct, but on the other hand once it is on the card it is a lot faster (wiki says the fastest Phi has 350 Gb/s, Corsair claims a maximum of 70 Gb/s for DDR4)[2].

So generally, as long as you have a decent ratio of work/memory access and your work is parallel you could use a Phi to speed things a long. You would want to use one in the same situations as were you'd want to use a GPU, and the Phi would be preferable if your computations and memory access patterns are nor perfectly homogeneous (e.g. branching which can't be rewritten), as this kills performance on GPUs.

[1] I'm pretty sure Intel claimed this, and it makes sense when you think about it, but I can't seem to find a source: Could someone confirm this? [2] Do note that it 350Gb/s shared between the cores, not 350 Gb/s each.

comment 12y ago · link · parent

An insanely low price relative to it's original price. Peronally, I still find this a very reasonable price (double it would still be decent), but normally they are heavily overpriced.

It's hard to compare different devices of course, but in terms of pure FLOPS (and benchmarks) is roughly the same as an AMD r280x, which costs 240$ and allows you to play video-games in between your work.

There is definitely a market for these cards I think, niche but it exists, however the normal price of >$2k is the old-fashioned "industry tax" (c.f. Tesla cards) and not a reflection of the actual performance.

comment 12y ago · link · parent

I tend to do so to, my phone has it's own spot on my desk, where I keep the charger. So charging it daily would not be a problem for me _most days_.

However, say I'm doing some travelling for example I will tend to use my phone a lot throughout the day. Be it listening to music, playing a game while waiting on $MODE_OF_TRANSPORTATION or browsing the web. That would be one of the days were I would pretty pissed if my phone would not last throughout the day, or I would have to make constant considerations like "If I watch this movie now, will I have enough battery life left to make a call if my flight gets delayed".

comment 12y ago · link · parent

>With a large 3220 mAh battery, you get over 24 hours of use from a full charge.

I would hope so, call me old-fashioned but I would say that once a day is the absolute limit on how many times I'd accept having to charge my phone.

Of course, you don't use your phone 24 hours in a day (at least I hope you don't) however, marketing being what it is they generally mean "very very light usage" when they quote battery-life.

1
678910