Better HN
topnewbestaskshowjobs
Log inSign up

DCoder

1,260 karma · joined Nov 2, 2009 (17y ago) · 479 submissions

not here anymore
Submissions

comment 7y ago · link · parent

I can't comment for sure if they still have the source, but I know that EA made changes to those games when they released The First Decade [0] to make their CD-checks accept the new DVD. Most of the games were recompiled (so source was available) for that.

---

But the RA2: Yuri's Revenge binary was just patched where needed. This distinction was made because at the time YR already had some hardcore fans decompiling it and enhancing it, EA's community manager heard about this and made sure that community effort was not destroyed. I was one of those fans, and taking it apart was one hell of an adventure. We didn't decompile all of it, but we figured out many details, and added a lot of bugfixes and enhancements. It's not the same thing as the real source code, but you can see what we got in [1]/[2]/[3] (unfortunately those haven't been updated in a while).

[0]: https://en.wikipedia.org/wiki/Command_%26_Conquer:_The_First...

[1]: https://github.com/Ares-Developers/YRpp

[2]: https://github.com/Ares-Developers/Ares

[3]: https://www.modenc.renegadeprojects.com/Contributing_to_Ares

comment 7y ago · link · parent

Browser vendors are paying less and less attention to EV anyway [0].

[0]: https://www.troyhunt.com/extended-validation-certificates-ar...

comment 7y ago · link · parent

> the keepass entropy estimate presumably […] tries

KeePass sources are available [0], you can see the specific algorithms it uses in [1].

[0]: https://sourceforge.net/projects/keepass/files/KeePass%202.x...

[1]: https://fossies.org/windows/misc/KeePass-2.42.1-Source.zip/K...

comment 7y ago · link · parent

It doesn't. The controller simply acts as a mouse/minimal keyboard outside Steam.

comment 7y ago · link · parent

I just checked, and yes, you can use Steam Controller to get through UAC prompts. The joystick mimics the arrow keys, the right trackpad moves the mouse cursor, the trigger buttons represent mouse clicks, and A is Enter.

comment 7y ago · link · parent

I thought that username seemed familiar… [0]

[0]: https://en.wikipedia.org/wiki/Clifford_Stoll

comment 7y ago · link · parent

Raymond Chen's blog is always a great source of interesting information.

But I remember the times when that blog didn't look like a webdesign internship project in progress. And there were interesting comments…

comment 7y ago · link · parent

I also remember Diablo II throwing up assertions when I was playing with the parameters in the txt files. Fun times.

comment 7y ago · link · parent

In the post I linked to, the TV in a similar situation was happily connecting to someone else's (open) WiFi network nearby. You can't really block those…

comment 7y ago · link · parent

Solving this problem requires the JS on the parent and child frames to cooperate and talk to each other about their sizes, so the parent can resize the iframe to match the size of its content. This is not something ad providers would bother to implement on their own, let alone in a consistent way.

comment 7y ago · link · parent

> So, even someone who disables JavaScript normally, would presumably enable it in order to use this popular and useful site.

I agree that StackOverflow is at fault here, but enabling JS is not a binary choice — "allow all JS on this site" vs "block all JS on this site" are not your only options.

Tools like uMatrix allow me to control JS coming from different domains on different domains independently. For example, on SO I have enabled JS from Stack Exchange and related domains, but not from Google or other snoopers.

comment 7y ago · link · parent

When you say "it's not allowed", do you trust its own settings? Are you sure it's not doing something like [0]? How do you even protect against that?

[0]: https://www.reddit.com/r/privacy/comments/bpr6xs/if_you_choo...

comment 7y ago · link · parent

If you look at other areas of the world, Philippines is interesting [0]:

> [I]n 2018, 32 percent of the surveyed 1,500 Filipinos trusted vaccines. In the 2015 iteration of the poll, 93 percent of the respondents said they trusted vaccines.

> Health Secretary Francisco Duque III attributes the lowered trust on the government's immunization drive due to the Dengvaxia controversy.

---

I also saw someone on Twitter questioning if that decline in trust was related to the Philippines' continued obsession with social media [1].

[0]: https://en.wikipedia.org/wiki/2019_Philippines_measles_outbr...

[1]: https://news.abs-cbn.com/focus/01/31/19/filipinos-still-worl...

comment 7y ago · link · parent

> What would it take?

All the developers in the world combined can not solve a legal problem. You can't implement technologies like Widevine without a license, and if they simply won't give you one [0], you're dead in the water.

[0]: https://blog.samuelmaddock.com/posts/google-widevine-blocked...

comment 7y ago · link · parent

For another and possibly more egregious example, look at Chrome's <input autocomplete=""> handling [0].

[0]: https://www.reddit.com/r/programming/comments/ar1qj1/x/egl52...

comment 7y ago · link · parent

> Randomizing form field names […] will prevent auto filling fields by browsers and password managers.

I wholly agree that this would not help, but for the sake of completeness, I want to point out that <input autocomplete=""> [0] is designed to solve this, by decoupling input field names from their intent.

But Chrome is playing dumb about it [1]. And of course, the spambots will just adapt to parse the autocomplete info…

[0]: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes...

[1]: https://www.reddit.com/r/programming/comments/ar1qj1/chromiu...

comment 7y ago · link · parent

Someone who needs to cooperate with you on your project cares.

Someone who needs to clone your repository (e.g. you're a dependency for their project) cares.

Someone tired of using an inactive repo and trying to get an overview of healthy forks cares.

Someone whose project uses GitHub for more than just a raw git repo (e.g. issues, wiki, releases with precompiled/crossplatform binaries) cares.

Someone searching for answers who encounters a link to some GitHub gist cares.

comment 7y ago · link · parent

If you flip the setting, that doesn't solve a problem of a user installing the browser for the first time, installing an extension like Stylish †, going to a porn site in private mode and getting their private browsing history leaked to the extension operator together with their regular history. Who thought that is a good idea? :)

† Stylish is a … special case [0]. But see also hypothes.is or any other extension that relies on a "user-created content store".

[0] https://robertheaton.com/2018/07/02/stylish-browser-extensio...

comment 7y ago · link · parent

The fact that they can still hoover up your browsing data the same way as in normal mode.

Google Chrome has defaulted to disabling extensions in incognito mode as long as I can remember:

> Allow in incognito [ ]

> Warning: Google Chrome cannot prevent extensions from recording your browsing history. To disable this extension in incognito mode, unselect this option.

comment 7y ago · link · parent

I'm aware of Hack and it's quite nice, but I can't use it because a) my coworkers are … less open to new ideas … and will rightfully resist a "whole new language", whereas mgmt will see it as an attempt at "job security", and b) the biggest use-case for generics is third-party libraries (e.g. [0], [1], [2], [3]) which will never add support if this is not a core language feature.

[0]: https://github.com/doctrine/collections

[1]: https://github.com/schmittjoh/php-option

[2]: https://github.com/schmittjoh/php-collection

[3]: https://github.com/widmogrod/php-functional

comment 7y ago · link · parent

IntelliJ will detect cases like that, yes. But it is difficult and slow to get IntelliJ to inspect your whole project like `tsc` does. With PHPStan or such tools you can do that more easily, but they still have interop problems due to non-standard annotation syntax. Having native support for such type expressions would be much better.

ES6 has Map and Array, which are perfectly sufficient and distinguishable from each other. PHP core only has array() which tries to do everything. You can use array() to build a collection or an associative array and you cannot force it to only behave as one of those. Even Zend's PHP certification contains questions about what happens if you try to push a value into an array that uses associative keys. This is a joke.

I prefer React over Angular as well, but interactivity was not on my list of goals. I want a template syntax that combines valid markup, escaping by default, and TSX-style typechecking. Basically, I want XHP [0]. There is no other template engine for PHP that validates "values passed into this template" against "values used in this template" like TSX can, and no engine that ensures you're generating valid XML/HTML markup. I certainly agree that this is far less important than powerful types, but hey, one can dream :)

[0]: https://github.com/hhvm/xhp-lib

comment 7y ago · link · parent

This may be a regional thing. I've seen Drupal 6/7 on a lot of sites where the original dev threw together five content types in the admin GUI and told the admin how to post new content. It worked well and was certainly less worrisome than seeing (outdated) WordPress.

comment 7y ago · link · parent

It definitely feels that way, yes. I've mostly dealt with small businesses looking for the lowest bidder and medium businesses unable to spend a fortune on software licenses and highly-experienced devs, and PHP fits that segment well.

comment 7y ago · link · parent

Features that I miss in PHP:

- expressive type system with generics, union types, literal types, basically TypeScript. I can say "this function returns a string" or "this function returns an array", but not "this function returns an array of strings".

- specialized collection/hashmap data structures with good support across third-party libraries. Having one array() structure acting as both a sequence and an associative array at the same time is awful.

- a templating solution similar to JSX. I am spoiled by TypeScript's ability to typecheck my HTML views along with other code.

comment 7y ago · link · parent

Right here! PHP and JS/TS is what I do every day.

PHP has its tentacles all over the web: WordPress and Drupal are immensely popular for simplistic sites and short-lived promotionals, Magento and WooCommerce attract many e-commerce users, and Symfony/Laravel handle the custom stuff. I've worked with all of these and have the scars to show for it.

All popular projects have swarms of consultants offering advice, prebuilt additions, and custom development. (E.g. WordPress plugins and themes are everywhere.) This is also a significant factor for the penny-pinching customer — from their point of view, they avoid vendor lock-in and expensive development this way. (Spoiler: it rarely works out, in the end. "Tower of Babylon" and "shallow learning curve" mix in very exciting ways.) So there are masses of people who know the basics of PHP and call themselves "PHP developers". In my opinion, just a fraction of them actually deserves that title.

comment 7y ago · link · parent

I've had fun issues recently where Composer crashed after hoovering up 1.5 GB of memory. (Composer sets that limit by itself on startup, I didn't arbitrarily choose that number.) XDebug was off. I fixed it by telling Composer to use unlimited memory.

comment 7y ago · link · parent

This execution model is just good old CGI scripts [0].

[0]: https://en.wikipedia.org/wiki/Common_Gateway_Interface

comment 7y ago · link · parent

There are good arguments for styling native elements and against them. I don't think this is specific to the web, cross-platform GUI toolkits have had this challenge forever.

The current datepickers on the desktop are "consistent in the same browser across many sites". There is no native solution for "consistent in the same site across browsers", which makes a lot of designers and PHBs upset, doesn't always fit the overall look of the site, and makes it harder for developers because each browser brings its own quirks with formatting, localization, validation, etc.

comment 7y ago · link · parent

Those JS pickers are going to be needed for a long time still, because native widgets are a nightmare to style consistently. Apparently nothing has been learned from the <select> styling minefield of the past.

comment 7y ago · link · parent

Looking through Mozilla's IRC quote collection [0] also shows very little recent activity. Not sure if that's because their channels are less active nowadays, or just because fewer people are submitting new material.

[0]: http://quotes.burntelectrons.org/top

12345
16