Hacker Newsnew | past | comments | ask | show | jobs | submit | wangweij's commentslogin

How do I span and resize on a MacBook?


One benefit of multiline raw string is that you can directly copy/paste a block of characters between the program and its source. Unless there are very sophisticated IDE support this proposal does not work fine in this sense.


Ah, that's interesting. In general, yes my proposal does benefit from and assume some IDE/tooling support for quality of life.

Edit: To be specific, the IDE could handle formatting when pasting into a line beginning with """. Or offer a "paste as cool new multiline string syntax" feature.


... which text editor does not have multi-line block selection these days ?


The browser that I'm using to read this proposal, for one.


As I understand, only children of father's brothers can be prefixed with 堂, because they have the same last name and are traditionally considered to be in the same house. All others, including children of father's sisters, are all prefixed with 表.


Sorry but I don't quite understand what the problem here is. Is it about a different character set? Or encoding? Or glygh rendering? The article keeps using "font".


According to https://code.google.com/archive/p/zawgyi/wikis/WhyUnicode.wi..., there appears to be a mismatch between the corresponding code points of Zawgyi and Unicode. So changing the font used for rendering could conceivably result in corrupt text.


From the article it seems that Zawgyi rendered various Unicode codepoints (some of them reserved for the Burmese script and others from other scripts) in the order they appeared graphically. Although Burmese usually puts the vowel in the front of a consonant-vowel cluster, Unicode probably has it so that the codepoint corresponding to the vowel is encoded after the codepoint for the consonant. They're migrating by using a font that renders based on the Unicode order and keyboards that type in that order.

That's just what I got from the article and I have no other knowledge of the Burmese script so I may be wrong.


https://frontiermyanmar.net/en/features/battle-of-the-fonts (mentioned in the article being discussed) is much clearer.

Short version: in Burmese, the form a character takes depends on context. Zawgyi ‘solves’ that by having separate code points for the different forms, requiring the user to pick the right variant. The Unicode way is to make the font and the (font + font renderer) pair smarter, just as Unicode renders “é” instead of the two code points “e’”.

Zawgyi also, necessarily, uses Unicode code points assigned for other characters to encode the variants.


The shape of "lowercase sigma" depends on whether it's in the middle of a word or at the end. These are adjacent in address space.

ς and σ. I won't shout out their names. Is this the case in modern Greek too?


Many of such warts in Unicode are for allowing round-tripping with 8-bit character encodings. I suspect that’s the case here, too. https://en.wikipedia.org/wiki/ISO/IEC_8859-7 has them, too.

That doesn’t explain why Unicode seems to have 27 (!) different “sigma” code points, though (https://en.wikipedia.org/wiki/Sigma#Character_encoding)


I'm with Google. Many years ago when Google created the censored search site in China, it was the first one that showed the sentence "According to local laws, some search results are removed". Before Google, no search engine showed this and people didn't even realize they were seeing censored search results.

With a new censored search engine in China, Chinese users can access more accurate (and ethical) information than what they have now even if it has fewer results than google.com. This is not only about politics or democracy. In fact, even local players like Baidu will be forced to enhance their search results, which means their users (maybe forced to use it because it's the default one on their cellphones) can get better search results.

I don't think Chinese users will be stupid enough to think the censored search results reflect what the real internet looks like. People know about VPN but often find it difficult to use. VPN providers are being closed down or even sued everyday. Apple's AppStore no longer provide VPN apps. Those who claim only VPN users deserve to use Google are evil.

To me, the only bad thing is that the Chinese government will think they are "strong" enough to force a company like Google to obey them, but I think this is just a face gain for them but the ordinary internet users have much more benefits.


I agree there is a really big ethical difference if Google search shows that phrase or not. (Would that be part of their new censored engine?)


Maybe every photo using the front camera is a selfie?


Didn't think of that obvious solution!


I hope a judge will order Apple to make all source code of macOS to be readable by everyone. This does not necessarily mean open source: you will not be allowed to modify and re-release it.


And that will help because Open Source security is so great?

Or because people care to inspect the codebases they otherwise use?


I don't think you understand the difference between open source and free software. Allowing everyone to read it makes it open source.

https://www.gnu.org/philosophy/open-source-misses-the-point....


> I would say that we are very lucky there hasn't been a WW3. It likely would have casualties in the hundreds of millions.

Why so many casualties, if atomic bombs were not invented?


Increased population and increased industrialization of more countries. Another World War, were it to happen, might pull in more countries that could capably contribute than in the prior wars. Additionally, industrialization is often accompanied by urbanization, which puts people at greater risk as those urban centers are attacked. Tokyo has almost 38 million people in it. That's one city. As I showed above, firebombing killed more people than atomic bombs in WW2, so I don't see any reason there wouldn't be enormous casualties in another World War.


After so many years, I've learned to not click on the maximize button at all. Just double click the title bar and it will fill the screen.


I personally have a utility installed that adds a Windows-esque "snap" functions, including maximization. That green button's behavior is a usability nightmare.


Definitely - I use Moom for this purpose and can recommend it, https://manytricks.com/moom/


RightZoom (free): http://www.blazingtools.com/right_zoom_mac.html

Though I also tend to have ShiftIt or SizeUp installed and always use the keyboard shortcut instead.


While I am able to switch to another browser (I already did a long time ago), I don't believe I can avoid visiting sites "that show ads from Google". How much can Google collect from those sites?



There's also Privacy Badger by EFF: https://www.eff.org/privacybadger


Firefox has a “tracking protection” setting which blocks these types of third party trackers.


Which is default-enabled in Private Browsing, and you can enable it for normal browsing as well by setting "privacy.trackingprotection.enabled" in about:config to true. A GUI-toggle for this should make it into Stable in the next few releases...


> While I am able to switch to another browser (I already did a long time ago), I don't believe I can avoid visiting sites "that show ads from Google".

You can block those ads, and the scripts that serve them and collect data.


The simple setting, most seem to be overlooking, is don't allow third party cookies. Voila.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: