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

Yep. If you go and register a new gmail account today, there will likely be no option to enable IMAP access for that account, altogether.


Why would you post a baseless conspiracy theory that is easily disproven by anyone in less than a minute?


FYI, the above is true for "child accounts", as my son painfully discovered the other day, after his school shoved Gmail down his throat. No IMAP in the settings, or anywhere else, for the next generation of users, not until they are 16+ in my country.


What makes you think this is for youth accounts, and is not simply the preference of the workspace administrator for your school?



Why would you need to enable IMAP ? It works out of the box. Every non-android platform uses IMAP to access your account (k9 mail, outlook, thunderbird, the iOS/mac email client, etc).


As a former K9 Mail developer I will say that the Google extensions to IMAP for Labels and OAUTH (neither of which are standards) are a pain in the backside that no email platform would have dealt with were it not for the fact they are huge.

(I did a spike development for OAuth and a separate investigation into Labels when I had some free time).

So they are definitely not nice IMAP citizens.

Oh and then there's the issues with Labels that their own documentation apparently gets wrong...


To be fair here, labels are a great feature and the default limitation of a letter existing in only a single folder is a dumb remnant of ancient times.

If it's still not standardized then the pitchforks are aimed in the wrong direction.


Are you sure?

Because, IIRC, IMAP access must be explicitly enabled by going to Settings -> Forwarding and POP/IMAP -> IMAP access: (o) Enable IMAP. And I think it is not enabled by default.


You do have to go into the gmail settings to enable IMAP, FWIW.


> glue together some massively bloated thing that they have absolutely no understanding of

Relevant: https://xkcd.com/1988/


> writing "return condition" instead of "if condition then return true else return false end"

> using the conditional-value ("ternary") operator in any capacity

Looks like author of some code I had to comb through recently, maybe had that among guidelines. Said code was replete with:

  if(function_that_returns_boolean()){
    return true;
  }else{
    return false;
  }
...and...

  if(foo()){
    return true;
  }else{
    if(bar()){
      return true;
    }else{
      return false;
    }
  }


This to me screams "I don't understand boolean variables".

Why stop there?

  switch (byte_value) {
    case 0: return 0;
    case 1: return 1;
    ...
    case 255: return 255;
  }



Visualizing control flow from if ladder effort: minimal

Doing the same for not tiny boolean expression: way more

Just because you think it is cool cuz profs forced it on ya during college is not a argument


Ironically, I have had profs tell me to use nested ifs instead of breaking loops, so…


It's personal taste. You can subdivide boolean expressions just as easily with if-then-elses as with boolean functions.

What most people object to is leaving the last level of if-then-else and returning true or false, when you could have returned simpleBooleanExpression and do away with 1 level of nesting.


My high school computing exam (by government direction - VCE, graduated 2019) was filled with many such

    If a And b Then
      Return True
    Else
      Return False
    End If
programs. Not sure why they were so scared of Return a And b. Apparently they got a new curriculum after I graduated; my teacher was very happy about it but I didn't get to see it myself.


Well, the 2019 final exam [0] lacks such questions; it must have been some other year. But the correct data type for an "AccountBalance" variable (section C, question 9) was a float, so I definitely lost marks on that question!

The 2021 final exam (which is the most recent I can find) [1] somehow creates XML records for a SQL database (section C, question 7), and hints at using "data validation" to avoid an SQL injection (section C, question 11.c), which is quite exciting. And the 3.5 gigabit wireless connection (section A, question 13) is definitely not using an ISP-supplied router.

[0] https://www.vcaa.vic.edu.au/Documents/exams/technology/2019/..., answers https://www.vcaa.vic.edu.au/Documents/exams/technology/2019/...

[1] https://www.vcaa.vic.edu.au/Documents/exams/appliedcomp/2021..., answers https://www.vcaa.vic.edu.au/Documents/exams/appliedcomp/2021...


In an intro class using Ada I’ve seen

  case Big_Expression_Here is
    when true   => Do_Something;
    when others => Do_Something_Else;
  end case;
and I found myself wondering whether they realize what this is.


If a code reviewer pulls that on you, meet with them and explain why that's asinine. If that fails bring in someone more senior as a tie breaker. If that fails, find somewhere else to work...


In C++ projects you see the verbose version a lot, because it's much faster to set a breakpoint on a statement than on a conditional expression. It's really annoying to repeatedly stop debugging, add the redundant return statements, and sit through a recompile cycle just because `return expr` looks nicer than `if (expr) return true else return false`.


Alternatively, you could use a debugger that supports conditional breakpoints.


Cond breakpoints require the code breaking each time and evaluate the statement which makes it runs like snail.


With newer android versions, you might want to check the "disable adb authorization timeout" option too. Otherwise, phone will "forget" your computer's adb key after a week.


That is quite nifty implementation of reverse HTML escaping. But in python that could be done with much less work:

  import html
  print(html.unescape(foo))
And the best part - you don't need to debug/update the (g)sub list every time you stumble upon new weird &whatever; too. And there are a lot of those out there:

https://www.freeformatter.com/html-entities.html


The only thing that changed since I originally wrote it was the location of the file.

https://www.reddit.com/r/LineageOS/comments/gzm7to/wifi_pass...


Hug of death from HN visitors.

For fellow website admins, this is your regular reminder to use static site generators, where possible, and server-side cache where not.


I’d argue SSG and caching are the same solution just a difference in where the cache resides (disk vs memory) and warming strategy (on-demand vs preemptive)


How often does a bug tracker get that much traffic? And using an SSG for one when tons of the queries will have specific filtering terms doesn't seem so great either.


Bugzilla routinely falls on its knees just from internal use.


> where the cache resides (disk vs memory)

local vs CDN that is...


There’s nothing about SSG or caching that requires use of a CDN, and it may be helpful in both scenarios as it’s just literally another cache.


Yep:

  $ cat foo.tsv

  name    foo     bar
  Alice   10      8888
  Bob     20      9999

  $ cat foo.tsv | sqlite3 -batch \
    -cmd ".mode tabs" \
    -cmd ".import /dev/stdin x" \
    -cmd "select foo from x where bar > 9000;"

  20


Talking about tricks to make python faster, there is an interesting one that is essentially exact polar opposite of what Nuitka does:

Micripython's "viper" just-in-time compiler. It can only be applied to one function at a time, restricts what you can do in such a JIT-ted function quite severely, but resulting speed is pretty much native:

https://docs.micropython.org/en/latest/reference/speed_pytho...


> tried qemu, and spent many days trying to figure out the correct set of parameters

It's really not that hard, once you get used to it. Or, if you rather not spend that precious time, there is a GUI tool that would configure those parameters for you:

https://virt-manager.org/

Bonus: once started with virt-manager, run "ps ax | grep qemu", et voila - you have your qemu parameters, ready to copy-paste, should you wish to run exact same VM later from a script, or something...


Does virt-manager run on aarch64 macOS? I thought it needed libvirtd.


To search very long texts by the "text shape". Same idea as some popular editors show on the right, next to the scrollbar:

https://www.ultraedit.com/wp-content/uploads/2023/01/ue-img-...


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

Search: