12,740 karma · joined Feb 17, 2008 (18y ago) · 2,917 submissions
comment 11y ago · link · parent
It's the same crap they pull at the airport where you must throw out your bottled water; and then their solution is to toss this bottle, which was classified a minute ago as a serious threat, into a pile of other unverified "threats" in the middle of a densely-populated area of the airport. How this kind of thing has gone YEARS without any serious backslash is amazing to me.
It is so out of hand. While certainly bad things have happened and could happen, statistically modern society is pretty safe and we all have to stop being so damn scared of every little thing.
comment 11y ago · link · parent
1. Why is the goal to put everything in one block with a single allocation? Could everything still work if they were separated?
2. What do Vector2 and Vector3 look like? What if they say "int a, b" and "int a, b, c" respectively? If a perfectly-aligned "new int[total]" would have fixed the problem, it should have been tried from the start and the code refactored accordingly to not necessarily use structure types to look up the data.
3. Conversely, are Vector2 and Vector3 complex classes with special constructors (or equally important, could they someday become that way)? If so, even a "fixed" memory-allocation solution will be equally fragile to maintain because there is a responsibility to ensure that constructors are called correctly.
4. What is the memory profile of the rest of the application, e.g. how many Mesh objects themselves are created and is the entire approach to managing Mesh objects wrong? Maybe the focus on optimizing one piece has missed an entire problem somewhere else that is more fundamental.
Clearly the original code has bugs but it is also only 14 lines, the fixes for the bugs are straightforward and the right solution (after other analysis) may well have been to remove the code entirely instead of doing the same thing in a different way. Beware of the tendency to "fix" things without looking more deeply at the actual problem.
comment 11y ago · link · parent
For starters it should NOT be public knowledge that someone has been arrested. Sweep that under the rug, let the trial happen, make it illegal to announce anything but guilty VERDICTS.
comment 11y ago · link · parent
First, compilers with sufficient warnings enabled will tell you about implicit conversions. Perhaps they didn't do as well in 2003 when the article was written but they do now.
Second, you don't really have to search for all 3 cast tokens individually (most people would probably look for "_cast" and expect it to catch everything). If you want to be explicit though, "egrep '(dynamic|static|reinterpret)_cast'" isn't that hard, especially if you make it a script.
I do agree that the definitions of static_cast<> and reinterpret_cast<> are a bit unclear and to this day I probably screw them up in a few places. The naming of const_cast<> is also weird since it removes both "const" and "volatile", and it's even murkier now that C++11 has things like std::remove_const (presumably the latter is to help template implementations but are these not also forms of casting?).
Perhaps the operators should have been static methods in a standard class such as "std::cast::..." so that all present and future cast-like conversions could be found by searching for that prefix.
comment 11y ago · link · parent
On what do you base the statement that a fire is typically "slow-moving"? It can certainly be fast. Here's an example. [1]
[1] http://www.thisiscolossal.com/2011/09/the-speed-of-fire/
comment 11y ago · link · parent
This is one of the things that drives me crazy about some of Apple's technologies. For instance, somebody at Apple decided long ago that all application HTML help pages should be cached. The "off switch" for this cache remains a bit of black magic but it's something like "rm -Rf com.apple.help.DamnedNearEverything" followed by "killall UnnecessaryBackgroundHelpProcess" every damned time you modify a page or else the help system might show you an older version of the content that you just "changed".
comment 11y ago · link · parent
The solid colors seem too "loud" to me; they should probably be pastel. I think they are more noticeable now because the letters are so thick.
Also, the capital "G" looks wrong; I think the part that looks most strange is the upper curl, which doesn't seem to go far enough.
comment 11y ago · link · parent
comment 11y ago · link · parent
Having said that, I wouldn't reformat your boot drive to be case-sensitive because this isn't a common configuration and I'd expect 3rd-party apps to have problems.
What you can do is use Disk Utility to create a case-sensitive file system on a disk image, which gives you case-sensitive behavior when you really want it (and limited to activities on that disk).
comment 11y ago · link · parent
The infuriating part is that these ads are typically folded into original content as if the original page had the extra garbage in it. When you see an obnoxious ad, you're not thinking "well I guess I won't use this wifi again"; you think "well I guess I'm not going to this site ever again".
We desperately need a way to strongly sign each part of a page so that it is impossible to display a web site with any third-party content that wasn't explicitly added by the site owner (e.g. such as an authorized "Like" button). This naturally means removing i-frames and all other similar mechanisms from browsers, or at least making them a hell of a lot more obvious.
comment 11y ago · link · parent
Rules must apply over time. A "turn everything off" request shouldn't be able to transform into "except these new on-by-default features added in patch 1.01".
Software has bugs, including "off switches"; as such, even if there appears to be a way to shut everything off, I always assume that these may fail. The "over time" problem applies here, too; a year from now, some poor new guy tasked with maintaining these protection switches might screw up an update and break an off-switch that used to work fine.
Information is currently too valuable. As a society we really have to get to the point where the value of bits of data is so low that leaks don't matter. We sure as heck shouldn't have ways for criminals to screw you by knowing a single number that belongs to you!
Information is inherently hard to protect. Photos are very hard to protect; even if you had a new file format, encryption, low-level hardware that was physically incapable of accessing pixels without a key, memory that could not cache plain-data versions of the image, etc. there is still an easy way for someone to take out an iPhone and snap a copy of what they see on their screen and keep it forever. True photo security would practically require what is mandated for photocopiers with respect to counterfeiting; all cameras and all displays would have to be equally mandated to use watermarked images that encode encryption keys (e.g. your camera can only take a picture of another image if the associated key is one that has granted you access). And of course, that level of assurance could also be abused.
Ideally the average citizen would be able to grant and revoke keys for any and all organizations like Facebook or Microsoft, and systems and formats would be such that information is impossible to use once a key expires or has been revoked.
comment 11y ago · link · parent
Also, please don't use phrases like "nobody..." and "most people are". There is no possible way you could know what "most people are" doing so by itself that statement is a made-up statistic. Either link to (preferably a couple) articles to back up such a statement, or just say "I am". Similarly, what is "the majority of the polls"? You could at least point out a few examples of these polls so that we can tell for ourselves how accurate the statement is likely to be.
What I hope "happens more often" is that discussions will veer away from this kind of unsubstantiated I-already-know-who-I'm-voting-for commentary.
comment 11y ago · link · parent
Besides, hardware will fail. Windows and other programs eventually end-of-life their support. Organizations that refuse to even consider making changes will eventually feel a lot of pain.
"Poking the bear" is exactly what is needed in most organizations. While it would be crazy to change everything overnight, it's a good idea to periodically look at everything and see what it would take to improve things.
comment 11y ago · link · parent
There is a side of modern society that does not have either the patience or sense of fairness to verify something before acting on it.
Put another way, what do you think would happen to you if an "account" was leaked that, indeed, had your picture, name, E-mail address and home city? Do you really think that the first 10 messages you receive from people will be to confirm that the account is yours? No: my money is on you losing 40 Facebook friends immediately, receiving several vitriolic messages, a pink slip from your boss and some screaming phone calls before maybe — maybe — one friend with sense then asks if you actually created the account.
comment 11y ago · link · parent
I checked there just the other day and wanted to update my project because some information was out of date. After logging in successfully, it wouldn't let me change anything without my PHONE NUMBER. Not even the tiniest detail.
Sorry. I won't do that. Your web site is not my bank, I just don't care about it that much.
comment 11y ago · link · parent
And you know what? I realized just how much I missed iOS 6. Everything seemed upgraded over my "modern" iOS 8+ phone: the original iPhone style had clear fonts, well-separated elements, and a certain beauty to things like on/off switches and scrolling lists. Even the animations seemed somehow better.
On some level I see how newer design elements fix things but they are dull. On every modern OS. On every piece of hardware. And desktop web sites are following suit.
Maybe I'm the only one who doesn't want apps with a single solid color, barely-inspired graphics and squint-please fonts. To me, iOS 6 is an upgrade that is practically worth paying for.
comment 11y ago · link · parent
There are entire classes of applications that you can't find in the Mac App Store even when they're free (like web browsers!) so it's not just money that is keeping them away. Worse, apps that "add on" to popular products do make it in, creating this weird situation where you search for $POPULAR_THING and you don't find $POPULAR_THING but you do find all kinds of "99 cent plug-in for $POPULAR_THING" products. It really serves to clutter up and lower the perceived value of the entire store.
Apple should be treating this as the way to find and install Mac software, and lower every single wall if necessary until the likes of Mozilla, Google, Microsoft and Adobe are all on board with that.
If price is the issue, remind big developers that there are costs to running an app store but negotiate with them until they are willing. For the good of the platform.
If the sandbox is the sticking point (as it is perhaps for Firefox and Chrome), one option is to add an "Advanced Install" button so that all software can still be available on the App Store even if there is an extra hurdle. Apple could still set strict sandbox requirements for default installs. [The sandbox is one reason I didn't submit my terminal app because I cannot find any reasonable default sandbox that wouldn't utterly cripple shells and other common sub-processes.]
Licensing should certainly not be an issue. The fact is, there is a ton of really important free software on the Mac and some of it is GPL. Apple may not like this but they cannot deny that the value of their entire platform has grown because of such software. They should add an option to bundle or link source code with App Store entries. And if they really can't bring themselves to do that, the very least they should allow is an official entry for every piece of software, even if that entry is only allowed to link to an external web site for licensing reasons.
comment 11y ago · link · parent
My first impression of these was therefore to try to grab them and pull, as if to slide the bars that they appear on. Unfortunately, even now, most implementations of "hamburger menus" do the worst possible thing when you try to slide them: nothing at all.
And then there's the weirdness of seeing them on the desktop where there is plenty of space. It's the same frustration I feel whenever I see a desktop app force content into a tiny, non-resizable box with scroll bars on a 1920x1200 screen! If I have the space, I really, really want to use it. Any design that refuses to expand to available space is simply wrong.
comment 11y ago · link · parent
Similarly, App Stores have decided that a good way to handle payment logistics is to take a cut of the sell price. In theory, Mozilla and others could offer a service that essentially says "let us deal with Visa and Mastercard; register your blog with us and we'll give you 70% of the revenue from people visiting your site". Like a lot of security solutions, someone has to be trusted eventually; we obviously have to assume browser makers are on our side and being honest. That's already implied anyway; for instance, we assume browsers aren't secretly retransmitting web pages after authentication and decryption have opened up the data.
As far as piracy, I'm not saying that disabling Copy to the clipboard, etc. is sufficient by itself. Heck, to extend the App Store example, entire apps are still being ripped off and resold by 3rd parties for real money today. I'm only saying that a payment solution can't ignore the authenticity problem. Even so, at some point it's up to consumers on the web, just as it is for other merchandise. Does your web site look shady? Does the guy on the street selling you a "genuine" fancy watch seem trustworthy?
comment 11y ago · link · parent
A lot of this tracking only seems to exist for advertising schemes, which only exist to monetize the page. We are years past the point where we should have figured out how to make it easy to pay who you're looking at.
For instance, when you visit the page for Article X on news site Y, maybe Y's response includes a header that says it requests a donation, with some suggested value like "10 cents". And then, in some standard interface, the browser would show this request (e.g. a small icon in the corner with a price, including some given link on how to pay it). The request would require certain things for security; e.g. use of HTTPS and being on the same domain as the majority of the content.
And since blatant copy/paste stealing and re-posting to blogs, etc. is a money-making scheme in itself, the browser might "protect" monetized pages in some way; e.g. disable the copy/paste and printing functions unless the donation interface is used to pay, to at least make it more difficult to outright rip off web sites.
comment 11y ago · link · parent
This to me is why emojis in fonts are so weird. Normal glyphs can be given a color (e.g. you have a red background so you make all your text white). Everything in Unicode can be reasonably changed to another text color, except for emojis. Heck, even old dingbat icon-fonts look good in any color! Emojis don't; they clash with practically everything that isn't a white background.
For example, on my iPhone, I tried using an emoji such as "📞" (telephone receiver) in an entry from my contacts list, and sure enough that is allowed. The problem is, this string is used in many contexts: during an outgoing call, names are shown in white on an arbitrary image background; in the contacts list, names are black; and there are probably other renderings too. The plain text looks fine in every case because the OS simply changes all the glyphs to the appropriate color; yet the "📞" icon looks terrible on the call screen because its appearance is unchanged and it looks a blob of goo that's hard to distinguish from the background.
There are usability reasons to have black-and-white icon designs, too. Mac OS X does this; such icons are less distracting and it's easier to see details at small sizes.
Basically I think they should've taken a close look at what dingbats fonts were doing, and just extend that concept further to have a host of new black-and-white icons.
comment 11y ago · link · parent
For example, imagine trying to create a supporting product, or simply writing instructions on how to do something. You're trying to make sure that the user will see what they're supposed to see but with all these versions you can't assume anything so you have to consider everything. A simple list of bullets suddenly becomes a series of "if you have X, do Y" statements. Everywhere.
When products and companies become this big, a simple and arbitrary choice is all it takes to create unnecessary costs for thousands of organizations around the world.
1767.
Add site text to warn users about ad injection
1 points · by makecheck · 11y ago · discuss
comment 11y ago · link · parent
Go to: System Preferences >> Keyboard >> Shortcuts tab and select the Services list item. In the list you will find a section named "Files and Folders", which contains "New Terminal at Folder" and "New Terminal Tab at Folder". If you download 3rd party terminal replacements such as mine (MacTerm), you will see Services for those applications as well. :)
comment 11y ago · link · parent
Even their simple example makes my head hurt...
comment 11y ago · link · parent
It takes CPU to find and strip out ads, and bandwidth to contact filtering servers or whatever else guides the behavior of blockers (and generally the more blocking you opt in to, the more of this there is). I have seen an astounding drop in Chrome performance when using HTML5 YouTube videos on my laptop, where attempts to scroll and click take seconds to even respond and I haven't yet figured out why.
I would still expect the cost to be less overall without Flash but it would be interesting to measure everything that is really going on and figure out if ads are really the worst offenders.