7,485 karma · joined Mar 14, 2016 (10y ago) · 2,314 submissions
comment 6y ago · link · parent
Try emulating any of the "Need For Speed" games, which made tonnes of use of graphics tricks.
That said I do appreciate their efforts, it's just we're still a way off until it could be considered complete.
comment 6y ago · link · parent
Where, then, does all this time go? Sometimes it's reading existing code. Sometimes it's learning about a new algorithm by reading blogs and papers. Sometimes it's developing test programs to iron out a bug or test out some new code.
There used to be one chap in the office that got all the hard problems - the seriously hard problems. Some of this was figuring out why USB couldn't transition from low-speed mode to high-speed mode reliably (USB is quite hard to probe due to frequency), or figuring out why the application crashed one in a million boots.
Some of our most valuable developers committed the least amount of code, but saved our arses more times than I can count.
comment 6y ago · link · parent
Can we go back to the days where an advert was was just an image and a hyperlink? Where advertisement paid by the pixel and location on the website? Where JavaScript was unused unless in some rare and warranted cases?
I still believe the web can be a free and open market place of ideas.
comment 6y ago · link · parent
As you say though, it's not 100% reliable in terms of speed, but I imagine 90%+ who play the game get a good experience.
[1] https://github.com/bradtraversy/vanillawebprojects/blob/mast...
[2] https://developer.mozilla.org/en-US/docs/Web/API/window/requ...
[3] https://github.com/bradtraversy/vanillawebprojects/blob/mast...
comment 6y ago · link · parent
I always find myself thinking out different scenarios, different responses, etc. I too listen to a lot of music and podcasts to drain out that voice - it often helps me work harder.
Also my internal voice is very different from my spoken voice. My internal voice is upper class English and my spoken voice is a rough, course English voice.
Another thing, possibly related, is that my ability to multitask is quite high. Right now for example I am watching a video whilst typing. I can often talk and type at the same time as well, whilst I find colleagues unable to do so.
comment 6y ago · link · parent
> Java was when I decided to remove Java from my toolset.
Would just like to say, OpenJDK is quite a solid step-in replacement for Oracle's Java: https://openjdk.java.net/
I've used it in production, I've built apps that I then _had to_ use Oracle's Java (without problem), using older and newer versions have been very stable - would very much recommend. I had one issue 8 years ago between versions, but nothing since.
comment 6y ago · link · parent
> the link here
In all honesty I was just looking for some pre-processed examples.
The API itself seems intuitive enough, good job.
What really stands out to me is that open-source text-to-speech is really awful compared to commercial solutions - which surprises me. Does anybody know why this is the case? (And not just "money", I'm talking technology)
comment 6y ago · link · parent
---
The internet webpage filter at the school would stop you from playing games (particularly flash games), something as kids we quite enjoyed doing. I noticed that sometimes the real page would flash up and then go to the block page. After a while, I found out it was simply serving a "redirect" if the page contained banned keywords.
My 14 year old brain figured that I could make use of iframes so that the top section of 1 pixel height got given all of the "redirects" whilst the bottom half opened up google.com, where we could merrily search for games and proxies. This worked until I got VNC'd one day, logged off, account banned and the blocking system updated to filter prior to connection.
---
Still wanting to play games, I went to a friend's home (I didn't have internet back then), downloaded the entirety of a games website using a crawler and then brought the flash games in on a memory stick. As some of the teaching software also used flash player, this method of playing games was good until the every end.
---
My friend was watching all of these little tricks and thought they were cool. I wanted to try some things that would require two people to pull off. One lunch time we go to the library (the only machines in the school I can actually use now) and start experimenting with emails. It turns out that we could set custom rules.
A few minutes later, he has a rule that emails "Hi" every time I send him an email, and mine in return says "Hey". We trigger this snowball off... 500 emails... Haha. 5000 emails... Still funny. 50,000 emails - erm. 500,000 emails, the computers are grinding too a halt. Disk space on everybody's accounts is evaporating.
Email system starts sending out "Unable to send message, not enough space". Few, we thought. But each one of these messages was a few kilobytes, and each one triggered a new one (as there wasn't any space for that either). Suddenly the number of emails starts growing again as each of our accounts gets an automated space message.
We undid the rules and held the delete key for 30 minutes, there was still 500k emails when we left for class, but it wasn't growing any more. I assume an IT guy saw what we did, because the next time I logged on, the rules were disabled and the emails were gone.
---
Some of the kids in the school had started to give me a "hacker" status and then one kid started to claim he was much better than me. Challenge accepted. I wrote a simple javascript webpage that would keep opening itself up,m saying something like "you think you're a hacker?" in every page. Crashed my machine - perfect I thought.
I email him this web page, he opens it, crashes his machine. He thinks this is as brilliant as I did. He emails it to all of his friends. Their machines also crash. They email it to their friends, etc, etc.
The next day I get pulled into the deputy-head's office, complete with angry IT staff. Apparently all of the kids using computers that day decided that it was a perfect way to get out of working, claiming their work had been lost (Word even back then had recovery options). Two weeks ban from using any computer. I got asked where I got it from - at the time I said "I downloaded it from some website", but I wish I had told them that I had learned javascript and created it from scratch.
---
"Trolling" had become a thing, where you would try to cause somebody an inconvenience and leave a troll face there to let them know it was on purpose. Some of our exploits included taping a troll face to the underside of a laser mouse, unplugging mice/keyboards and taping troll faces over the USB ports, swapping people's mice over so that they controlled each other's computers, turning everything upside down in the settings when somebody left their computer unlocked and left the room, holding down sticky keys to crash the computer out whilst making an awful noise, etc. We got quite creative with this.
---
Printing was done by room, with printers automatically added to your account depending on where you log in. In one of our classes there was an "expensive" glossy colour A3 printer, where the teacher would monitor what it was used for. We figured it did no authentication and that we could copy the printer settings and print remotely. We could also pretend to be another user as it didn't connect at all to the user database. In a class with a few friends in, we remotely printed large cartoon pictures. Apparently the teacher was frantically trying to find the person who was printing and they all had a good laugh. They then took that printer off the network.
---
File explorer back then was patched so that we couldn't see network drives and even if we could, we couldn't get onto them. A few teachers sharing their screens would leak the fact that they had a private staff share. Child mind: Challenge accepted.
After several failed attempts using browsers and explorer, we discovered that Microsoft Office wasn't patched. Suddenly we could access other student's work spaces and save files in there. We could access staff's work spaces and save files in there. We could access IT work spaces and save files in there. We occasionally left a "I'm watching you" file (created at home so it didn't have our user account metadata) in random staff accounts.
At this point I think we were on their radar, but they needed proof. One afternoon we access the headmasters work space, who apparently left files on his desktop with his various login details. A bunch of students could now pretend to be the headmaster (we didn't as we knew this was suicide). (Turns out later that this headmaster was stealing school funds, so in retrospect I don't feel bad.)
We then found the "program" drive. It was a literal jack pot. Installation binaries with site-wide licenses. Back then there was no IP checking, one of these licenses was golden. We could install thousands of dollars worth of software at home for free, including Adobe everything, Maya and other 3D packages, office and every other custom piece of software.
Stupidly I had shown other people how to do this and they were running through the network like a bull in a China shop, triggering lots of errors, and as it turned out - getting lots of attention. In bursts a network administrator and he shouts my username into the room. This was the "oh shit" moment. I was dragged into the headmasters office whilst my teach protested that I was a good pupil.
I sit there whilst being berated, the network admin wants to call the police - whilst he wafts a large document full of screenshots in his hand (50+ pages). (Apparently they kept screenshots for evidence as I caught them off guard and they didn't have video capture.) They come to an agreement that I am indefinitely banned from using a school computer with no police involvement, as long as I give them all of my exploits. As a child I don't see any way out and agree. They handed me single piece of A4 paper and said "write everything you know on here". Before I put even a single word to paper, I replied: "Can I have some more paper please?".
comment 6y ago · link · parent
In the same breath, I can really recommend switching to Thunderbird. I run all my emails, RSS feeds and instant messaging through it all whilst being able to keep local backups of this valuable data.
comment 6y ago · link · parent
We can take several actions to balance the books, but the important point I would like to ask is: Do we really want to stop/de-incentivize intelligent women from having children and having an active role on raising them?
Of course there are lots of compromises that can be made to balance the work-home life, but ultimately a decision does need to be made. Spending time with your children in those crucial fundamental years before pre-school is incredibly important and rewarding.
comment 6y ago · link · parent
> IOException.
Rather than which alternative? There are tonnes of IO errors that can occur and are captured in Java that you may not ever even consider. IO is exceptionally tough and programmers should be aware that there could be 1 of a possible million reasons for failure, even if they don't care exactly why.
It's not a massive ask either:
try{
/* Perform some IO that 99.999999% of the time */
}catch(Exception e){
/* Something went wrong and we don't know the state of the disk */
}
Personally I believe applications should have their own wrapper around IO and handle it accordingly. I.e. not caring, re-trying, show-stopper, etc, etc.A lot of code I've written will have the following if I really don't care if it works or not:
try{
/* IO code */
}catch(Exception e){
/* Do nothing */ // <-- Let others know that this was on purpose
}comment 6y ago · link · parent
> (unless on grade) to avoid the handbrake becoming less
> effective over time as the cable stretches.
Your justification for not using the handbrake for its intended purpose it that it may become less effective in the future? Seems counter intuitive unless I'm missing something...
If you believe your handbrake cable will stretch/break, just check it regularly. It really isn't that expensive to replace (compared to other car maintenance) and there's no harm in being extra cautious in this case.
comment 6y ago · link · parent
More than 1% aren't per month, every month - and the Chinese economy is currently relatively stable, imagine a 2008 happening to those people. Also remember that some people may be borrowing to pay off the previous short-term loan - or are at the very least stuck continuously having to borrow from their future selves just to keep things afloat, each pay check evaporating as soon as it comes in. There's going to be a lot of people now stuck in a dangerous loop of dependency on these short-term loans at the best.
> I do wonder what the advantage is for using credit in China.
I think the advantage is small when compared to disadvantage. The advantage is small - you could get a good friend to lend you $10 to see you through a particularly bad month. The advantage of a friend is that they'll also tell you when enough is enough, when it's ongoing, when they believe you're borrowing for the wrong reasons.
> In the U.S. it offers another layer of security,
This is just a band aid for a much worse problem - that the average person in the US is living pay-check to pay-check, without money saved.
> flexibility
This is literally the only good reason I can think of for it's existence, but it's almost impossible to filter for these people.
> builds credit
Again, this shouldn't need to be a thing.
> earns rewards compared to using debit or cash,
The fact that cards don't earn rewards is an oversight on their part. The bank I'm with has two accounts, one is "easy access" and one is "savings". I can transfer from one to the other very easily, but I can only pay out of the "easy access" directly. If I keep money in the "savings" account for a period of time, I am rewarded with high interest, i.e. I am rewarded for saving money.
Other shops in the local area also have "loyalty" cards which also reward purchases of certain items (it helps them predict what stock they will need and to shift excess stock if required, as well as collect data about customer purchasing habits).
> is interest free as long as you pay on time
Smoking is harmless as long as you only ever do it once. The point is that people get trapped and reliant on these loans, at a cost.
comment 6y ago · link · parent
1. "Nearly half of Huabei's users are under the age of 30 [..]". There is value in teaching young people to budget well and save for what they want or need. There's this feeling of "hard earned, well looked after" with many of the items I personally own.
2. Whilst the intention is supposedly good, I feel as if this is really a move towards putting large amounts of the Chinese population into a debt for (mostly) meaningless purchases. This isn't somehow generating more money for the average person, this just traps them into borrowing from their future selves at a worse rate. This doesn't lift people out of poverty, if anything it traps them in it.
3. "As of June, 1.6% of Huabei's outstanding loans were more than 30 days past due, while 1.2% were more than 90 days overdue, according to a document for bond investors.". That's 1% overdue every month! They compare this to credit cards, but it's a false equivalency. People getting credit card loans a) typically plan to get something that will hold value and b) there are fewer of these loans approved.
And lastly:
""Only at the end of each month did I realize how much I've spent," Ms. Zhang said, adding she made many impulsive purchases on clothes and cosmetics because the credit was available to her. She said she has never been late with her repayments."
Therein is the major problem, people purchasing non-essential items without care because the money is readily available. If only she had waited just a single month she could have saved money, even whilst purchasing the same items.
Micro-loans could be mostly considered as a poor-people tax. A communist backed newspaper should know better.
comment 6y ago · link · parent
> was applied that is preventing applications from connecting
> to the database. We've rolling back that change and expect
> to be operational again shortly.
Heh, happens to the best of us! Seems to be coming back online now.
comment 6y ago · link · parent
> with the latest Gitlab release
Just wait till later/tomorrow. Setting up your own instance is relatively easy. Still, you can get most of the way without their repos...
https://www.techrepublic.com/article/how-to-set-up-a-gitlab-...
> Or does exist a mirror on github.com? ;)
It seems so: https://github.com/gitlabhq/gitlabhq
comment 6y ago · link · parent
comment 7y ago · link · parent
> To make up evidence or contrive events so as to
> incriminate (a person) falsely.
I disagree that calling CloudFlare Nazis is framing them, as the purpose (assumedly) is not to incriminate. Criticizing them by likening their behaviour to that of Nazis or suggesting that the company is filled with fascists may be in reality false, but a valid criticism regardless.
comment 7y ago · link · parent
> described as protection against a simple DDOS attack. With
> a REAL ddos attack [..]
I'm not entirely sure what is really classified as a "simple" vs "real" DDoS attack.
> With a REAL ddos attack you will get so many incoming
> traffic that your bandwidth is saturated before any
> software will come in effect.
I specifically said: "as long as the network bandwidth itself can hold out". If the network is saturated, it's saturated - it's game over, for anybody. But you'll find that most services will die way before this limit is reached. On a WordPress site for example you'll usually find the database will give out long before the bandwidth is saturated.
Even with legitimate users coming through some great filter like CloudFlare, it doesn't prevent a hug-of-death if you don't have some "smart" application level handling of high numbers of users. Like Linux OOM, when you hit your limits, the only choice left is to try and quickly and intelligently start killing without affecting the well behaved.
comment 7y ago · link · parent
> ping, UDP, and TCP traffic.
Please bare in mind that the description is heavily simplified. If you're talking about bandwidth, of course this is the limit.
> It's really only effective against http traffic.
How so?
> Which means his upstream or provider is probably going to
> cut him loose for the duration of the attack.
There's nothing we can do about that, but being in the cloud offers at least some protection. DDoS'ing some random Pi at home is a little different from DDoS'ing an AWS server.
> A single person cannot effectively block a concerted DDOS.
Of course not, but that doesn't mean you have to make it easy.
comment 7y ago · link · parent
> least somewhat proportional to local cost of living.
Typically as is the cost of food, housing, wages, etc.
> And I don't see why there shouldn't be income-based
> discounts.
Is it really the job of the ISP to account for such things? Not that I agree with this, but: Surely it would make more sense to balance income at the point of it arriving in your account, not when you go to spend it?
I don't think we want private companies to become political or biased in any way, I think this should be the soul responsibility of accountable politicians, rather than unaccountable corporate entities.
> it's not uncommon for parents to restrict access by their
> underage children
> HN has "maxvisit" and "minaway" settings so users can
> manage their usage. And many search sites have "safe
> search" settings.
> So why not let users set that up at the ISP level?
Firstly I believe people should have the ability to choose what filters they impose on themselves, such filters should never be on by default. I can fully understand and respect the cases for wanting such filtering, but it can also be extremely dangerous.
Secondly I believe in most cases that such filters do already exist - you can request such things from your ISP, purchase routers that filter such traffic, install software onto devices that perform blocking, etc. The options exist and are actively used.
One real example I remember was a parent installing a simple filter on their family computer (for their child). It would filter websites and key-words/phrases from websites, such as "sex". It so happened there was an incident reported by a local news website with something like "Local Child Sex Offender Still Not Caught", which of course was filtered to "Local Offender Still Not Caught". Their child was out playing in this quite high risk area and the parents were completely unaware of the risks.
The point is, that when acting in what we believe to be in the best interest of ourselves and others, we can actually cause more damage than good.