HNHacker News
TopNewBestAskShowJobs

tauwauwau

247 karma · joined December 31, 2018

submissionscomments
tauwauwau··on Names should be cute, not descriptive
I think we are mixing two different scopes in the the discussion here. If you are naming a company or a product that will be offered to clients, name it something unique that'll appear in searches. However, if you're writing a piece of software that's not going to go outside the company, having descriptive name is the way to go.

You can even name your products with generic descriptive names, if your company's name is unique enough, then that'll act as a namespace for product with generic names. Think of packages in Java, C#, we don't debate about that we have to use a cute name for a X.java or X.CS, because that problem has already been solved by namespaces.

Product name Excel and Office works for Microsoft because that "Microsoft" acts as namespace and "Microsoft Office" and "Microsoft Excel" are unique enough to be fully qualified names.

The ntietz entry is talking about using cute names for internal services, which is very bad idea. Please enjoy https://www.youtube.com/watch?v=y8OnoxKotPQ

tauwauwau··on South Dakota first to ban TikTok on state-owned devices
You're criticizing dumb content then show a 1 minute video as explainer, please don't take this the wrong way, but there are very few 1 minute videos that are not dumb.
tauwauwau··on Cryptboard.io – Anonymous encrypted web clipboard and chat
Where is the file stored, I looked at the security-design page and it says hat it's uploaded to Backblaze and there's some reference to torrent creation, I'm not sure I get it
tauwauwau··on CRISPR cancer trial success paves the way for personalized treatments
How do hospitals spend $10000 to $16000 a day?
tauwauwau··on GitHub Copilot, with “public code” blocked, emits my copyrighted code
Had to find this after a long time

IT Crowd Piracy Warning https://www.youtube.com/watch?v=ALZZx1xmAzg

tauwauwau··on Ask HN: Inherited the worst code and tech team I have ever seen. How to fix it?
How do you make sure that code being committed is ready to be run, files could be saved before they're ready. I'm assuming this won't happen on production server, but you can't be sure if it's just code workspace for someone.
tauwauwau··on The Little Prover
> Javascripts can be different, there is no guarantee that some half supported engine will run that specific code.

Half supported? Where is your source? Java Nashhorn was passing all ECMAScript 5.1 tests in 2012 (https://twitter.com/asz/status/258995374847565825)

> Same as brainfuck: https://github.com/EvanHahn/brainfuck-web-app

Brainfuck? JavaScript is one of the most popular programming language (https://www.stackscale.com/blog/most-popular-programming-lan...) You're comparing apples to oranges. By the way I mostly work in Java, but I do not look down on JavaScript, it's shows ignorance.

As others have already said, person who wrote the library may not be familiar with your favorite language, moreover certain things are easier to do in some languages. This is not the attitude that we should be showing when receiving free work from someone. If you don't want to port it to your favorite language when needed that's ok, I'm just glad that it exists.

tauwauwau··on The Little Prover
> and rewrite all code in Java instead?

Java has support to run JavaScript code.

>> more people know Javascript than they know C and C++

> this people do UI, and usually not interested in utilizing prover.

JavaScript has been running on server side for 10 years now since NodeJs came out.

tauwauwau··on Software component names should be whimsical and cryptic
Krazam Microservices https://www.youtube.com/watch?v=y8OnoxKotPQ

I work on the same, but never learnt to use non-descriptive names.

tauwauwau··on Two atomic clocks have been quantum entangled for the first time
Thank you for the link and explanation.
tauwauwau··on Two atomic clocks have been quantum entangled for the first time
Isn't collapse of entanglement itself useful information or is it not possible to notice it on the entangled particle?
tauwauwau··on Ask HN: How do you prioritize the update of vulnerable 3rd party packages?
There are tools for it, I have seen Contrast Security being used in workplace for Java applications. It reports insecure code and out of date libraries. I have seen it flag some Basic Authentication classes from Spring framework. It can be integrated with the CI/CD build pipeline. It also has a Java agent, which monitors runtime API calls to track if any vulnerable class is being accessed at runtime.

1. Use some software like Contrast Security to do it for you. Tools like these can tell you if your code accesses some vulnerable class/method at runtime. However, you'll have to determine whether you want to fix it. For example it has recently started flagging iText 2.1.7 libraries, but we determined that it was not exploitable in our application. It has to be done on case by case basis.

2. Only your unit/integration tests and QA testing can tell you if it works. Our team creates stories to update libraries, developers work on upgrade, do a superficial test that every thing seems to work and hand it over to QA team. They then test the running application in test environment and give it a go ahead if everything works.

3. We try to exclude the sub package (Maven/Gradle) and see if it breaks the application, we also try to upgrade the sub package to a newer version. If you're lucky, there won't be breaking changes. But sometimes, there are breaking changes and you'll have to rewrite your code to bring newer version of parent package, which in turn brings newer version of sub package.

Bottom line is it's hard work, there's no magic bullet.

I'm not affiliated with Contrast in anyway, there should be other tools for the same purpose.

tauwauwau··on Show HN: Browse HN Together in Three.js
If I leave the video playing and close the tab, it keeps on playing the audio.
tauwauwau··on Show HN: Browse HN Together in Three.js
What sorcery is this? Youtube videos are opening without any delay (within half a second) and there's no frame lag even with 1080 quality setting. How does this work?
tauwauwau··on Tech booms fuelled liveability busts in Silicon Valley and Bengaluru
Richard Stallman still looks like one to me :), I know its from late Internet era, but see following

https://youtu.be/4Q7FTjhvZ7Y?t=705

tauwauwau··on Tech booms fuelled liveability busts in Silicon Valley and Bengaluru
Sooraj Nagari == Sun City ~= Sunnyvale

Pahar Ganj == Mountain Neighborhood ~= Mountain View

tauwauwau··on Katapayadi System
Found it, it's mentioned in the Wiki Page

This verse encrypts the value of pi (π) up to 31 decimal places.

गोपीभाग्यमधुव्रात-शृङ्गिशोदधिसन्धिग॥ खलजीवितखाताव गलहालारसंधर॥

... <Malyalam shloka/poem> This verse directly yields the decimal equivalent of pi divided by 10: pi/10 = 0.31415926535897932384626433832792

This link goes into more details of this one shloka/poem

https://www.speakingtree.in/allslides/encryption-in-ancient-...

tauwauwau··on Web 3 is Flawed
Yes, I remember reading about this site on Hacker news post. There are a lot of search results here for gitcoin. Also, Product dropdown at the top shows what it does. Payment in crypto coins seems to be free from a lot of regulatory burden, I'm not saying that it's a good thing, but it's just there. Getting a crypto wallet is also a lot simpler than creating a bank account, I'm again in favor of KYC norms, but there's an appeal to it, if you're too young or because of some other reason you cannot get a bank account.
tauwauwau··on Web 3 is Flawed
From the gitcoin footer:

  Gitcoin is a platform where you get paid to work on open source software in Python, Rust, Ruby, JavaScript, Solidity, HTML, CSS, Design, and more.
I'm assuming that payment is in some crypto token/currency.
tauwauwau··on Ask HN: CS grad who barely knows any CS
I also feel like this sometimes. And what helps is reading books on the technologies that I want to know about. Even after watching a Youtube video tutorial or following a course on on Udemy just gives a superficial knowledge. That's why I always go back to the books.

When I wanted to learn JavaScript, I watched a few video tutorials on Youtube, but I didn't start to feel like knowing it till I read first few chapters of "JavaScript the definitive guide". Same goes for CSS, it clicked when I read "CSS the missing manual". When I wanted to learn Spring Boot finally, after working on Spring for years I read "Spring in Action" and "Spring Boot in Action".

Its guaranteed that you'll feel smarter after you read a book on any given topic. You don't have to finish the book, rarely you'll implement everything that any book covers. Just go through the foundational chapters. You'll be surprised how many of your peers in workplace don't know about the basic concepts in these books. That's all I wanted to say.

tauwauwau··on Show HN: Browser extension that spoofs your location data to match your VPN
Thanks, I will have to create a shortcut for it.

This should work

chrome.exe --silent-debugger-extension-api

Is it safe to do? I mean I want to stop this message for Vytal only, because I know that it uses debugger API. But I would want to know if tomorrow my adblocker starts to use debugger API.

tauwauwau··on Show HN: Browser extension that spoofs your location data to match your VPN
Just installed it, it's showing a message on top of each tab in Chrome

"Vytal" started debugging this browser

Is there a way to get rid of it?

tauwauwau··on Ask HN: If Kubernetes is the solution, why are there so many DevOps jobs?
It took me 4-5 hours to read and understand first few chapters of Kubernetes in action, I annotated a lot text as notes on the Oreily site, but didn't have to go back to it. I didn't have to do any security and account management stuff, it was being done by someone else. After 3 years of working with plain Kubernetes and OpenShift, I still didn't have to go back to the book. Basic concepts in Kubernetes are easy to understand, if you're working as a developer to deploy your apps in it and not in DevOps managing it.

https://www.oreilly.com/library/view/kubernetes-in-action/97...

tauwauwau··on I Accidentally Deleted 7TB of Videos Before Going to Production
Once we get used to doing same thing multiple times a day, it doesn't matter if the log shows that we're about to take a destructive action, we'll still do it. Only thing that is foolproof is to not take the destructive action because people make mistake, it's human nature. I don't know how this can be implemented, may be encrypt the files, take a backup in some other location (which may not be allowed).

Multiple reviewers here didn't catch the mistake

https://www.bloombergquint.com/markets/citi-s-900-million-mi...

tauwauwau··on The unreasonable fight for municipal broadband
You're right, I had spectrum for 5 years and by the time I was leaving the country I was paying 80$ for unlimited 120+ mbps. I also found it very odd and frustrating that they don't allow cancellation in the website or over the support chat, you have to call them to get the service cancelled. I had to do that in roaming :), well it's not like there are choices of broadband vendors in US. Who are you gonna go to, if not these 2 companies
tauwauwau··on The unreasonable fight for municipal broadband
100,000 people = 20,000 homes

50% penetration = 10,000 homes

$50/home = 50 * 10,000 = $500,000

It's exactly same not half.

tauwauwau··on Netlify Edge Functions: A new serverless runtime powered by Deno
I was looking at the polyscale docs and found following

  PolyScale evaluates each SQL query in real-time and when it detects a DML query i.e. a SQL INSERT, UPDATE or DELETE, it extracts the associated tables for the query. Then, all data for the table(s) in question are purged from the cache, for every region globally.
at https://docs.polyscale.ai/how-does-it-work/#smart-invalidati...

Isn't clearing cache for entire tables for a all DMLs which may be changing one record too intensive and how does this affect performance of cache when there are multiple DML queries being run every minute?

Also can you please give the docs link to connection pooling feature

tauwauwau··on China has pioneered a law to empower people over algorithms?
Path to hell is paved with good intentions, and I don't think their are any good leaders.
tauwauwau··on Persepolis of ancient Persia rendered in WebGL
On some sections you can drag the mouse to change point of view.
tauwauwau··on Spring Core on JDK9 is vulnerable to remote code execution
Not sure why it's tagged JDK9+, but 'class' attribute is accessible on org.springframework.beans.BeanWrapperImpl.getLocalPropertyHandler() in JDK 8 also. It probably doesn't matter which JDK is being used, as long as this spring-beans dependency is used.

Whether logging JSP exploit in JDK 8 or lower can be used is another question. However, since 'class' is accessible via request parameter, it's already bad and there will probably be some ways to exploiting it. It doesn't matter whether the request is GET or POST, as long as mapped controller method uses a non-primitive request object, 'class' can be accessed. 'class.module' attribute is accessible from Java 9 and above, I tested on Java 11 and can access 'class.module'. Sample code that I used to test this with JDK 8 is below. I just tested whether 'class' attribute can be accessed via request parameter.

curl -X POST localhost:8080/test?class.modifiers=Hello

package com.test;

    import org.springframework.boot.SpringApplication;
    import org.springframework.boot.autoconfigure.SpringBootApplication;
    import org.springframework.web.bind.annotation.PostMapping;
    import org.springframework.web.bind.annotation.RestController;

    @SpringBootApplication
    public class Spring4ShellTestApplication {

    public static void main(String[] args) {
      SpringApplication.run(Spring4ShellTestApplication.class, args);
     }

    }
    @RestController
    class TestController {

    @PostMapping("/test")
     public String test(TestOuterRequest request) {

      String message = "Inner request is null";

      if (request.getInnerRequest() != null) {
       message = "your message was: " + request.getInnerRequest().getMessage();
      }

      System.out.println(message);

      return message;
     }
    }

    class TestOuterRequest {
     private TestInnerRequest innerRequest;

    public TestInnerRequest getInnerRequest() {
      return innerRequest;
     }

    public void setInnerRequest(TestInnerRequest innerRequest) {
      this.innerRequest = innerRequest;
     }
    }

    class TestInnerRequest {
     private String message;

    public String getMessage() {
      return message;
     }

    public void setMessage(String message) {
      this.message = message;
     }
    }
Finally here are the attributes that're exposed on 'class' as accessible properties in JDK 8 (JDK9+ adds 'module' on top of all these)

    annotatedInterfaces
    annotatedSuperclass
    annotation
    annotations
    anonymousClass
    array
    canonicalName
    class
    classes
    componentType
    constructors
    declaredAnnotations
    declaredClasses
    declaredConstructors
    declaredFields
    declaredMethods
    declaringClass
    enclosingClass
    enclosingConstructor
    enclosingMethod
    enum
    enumConstants
    fields
    genericInterfaces
    genericSuperclass
    interface
    interfaces
    localClass
    memberClass
    methods
    modifiers
    name
    package
    primitive
    signers
    simpleName
    superclass
    synthetic
    typeName
    typeParameters
← PreviousPage 2 of 4Next →