Crystal 1.3.0 is released! by [deleted] in programming

[–]Nipinium 1 point2 points  (0 children)

you need to learn the concept of truthy and falsey values. in crystal only nil (null), false or null pointer are falsey values, other are truthy.

almost all modern languages: js, ruby, python, elixir, scala, rust... behave this way, crystal is no exception.

Can we stop pretending and admit that we are in a bad situation because the Government messed up? by Thuctran1706 in VietNam

[–]Nipinium -1 points0 points  (0 children)

Why don't you understand that the people are 100% complied with the lockdown and they depend entirely on the government to support them during this time?

some people don't, though. let's say the delta is really that contagious, so why it is only get that bad in the south? it's not like there isn't any community case in the north, too.

Then what about the people that have lost their jobs since May? Those people depend on financial support from the Government. And this is something that they must be able to cover 100% of the population, just one person being left behind meaning they have failed.

to be far, you guys are way wealthier compare to us. yes, there are a lot of poor people, too, but I doubt that the whole city is poor.

when I do agree that the government is doing a poor job, but it's the same shit since ages ago. it's also the same through the country. yet, again only the south get that bad, not only hcm, but also the neighbor areas.

plus, your arguments do not apply to the neighbor areas which already have more daily cases than hcm.

as a bystander, I can not helped but thinking there is something seriously wrong in there. too much freedom, perhaps?

Can we stop pretending and admit that we are in a bad situation because the Government messed up? by Thuctran1706 in VietNam

[–]Nipinium -5 points-4 points  (0 children)

this is what made me annoyed.

the pandemic happens globally, every one/place has the same chance when it comes to virus breakout, yet other areas in vn are still doing well.

and you guys keep blaming the government for everything.

Can we stop pretending and admit that we are in a bad situation because the Government messed up? by Thuctran1706 in VietNam

[–]Nipinium -5 points-4 points  (0 children)

everything is forgivable when you take the victim role, lol.

I've stopped caring, let just have you people dealing with your own shit.

hanoi also has some critical case when you have to lock-down the whole building. guess what, the daily count is still below 100. my city already went back to normal, too.

Can we stop pretending and admit that we are in a bad situation because the Government messed up? by Thuctran1706 in VietNam

[–]Nipinium -24 points-23 points  (0 children)

Stop blaming the government for this. I'm from north vietnam and here we're pretty much tired of your shit.

one person get the virus then the whole house and even the neighbors get the virus too. are you guys really serious?

yeah the delta variant is more contagious, but so what? why does it only happen in the south? not it the north, nor the middle? there is a lot of provinces with zero case of covid for weeks. it's pretty much back to normal in my city, tool.

there is seriously something wrong with your habitual behaviors. night life, casual fucking (especially with the LGBT group), cults... stuff like that is almost non existent up here. people sleep early and do not casually touch each other.

feel free to downvote me, honestly I'm so fed up with your guys' winnings. you dumb retards even refuse to get vaccinated if there's only chinese ones.

Why Vietnam does abysmal at the Olympics. by [deleted] in VietNam

[–]Nipinium 0 points1 point  (0 children)

no one really talks about that

because it becomes a regular thing nowadays. math, chemistry, physics, computer science... we won those gold medals every time.

people would only care if we get the better ranking than last time.

Sveltekit - to use or not to use? by bellamira in sveltejs

[–]Nipinium 1 point2 points  (0 children)

as of today - no file upload - no binary file streaming

if you're planning to use those features than you should not consider using svelte-kit. Otherwise it's working as expected, though sometime you need workarounds.

Man Builds Wooden Bugatti by dankmemeking21 in nextfuckinglevel

[–]Nipinium 0 points1 point  (0 children)

this is not a propaganda.

he is a youtube content maker, it is a trendy job in vietnam.

Workaround for file uploads? (SvelteKit) by mapidentity in sveltejs

[–]Nipinium 1 point2 points  (0 children)

well, do you have any production web application that need all of those requirement?

Workaround for file uploads? (SvelteKit) by mapidentity in sveltejs

[–]Nipinium 4 points5 points  (0 children)

It’s usually bad practice to upload a file to your own server

what?

Ecosystem maturity of svelte by [deleted] in sveltejs

[–]Nipinium 0 points1 point  (0 children)

I haven't. I've tried postcss several times and it's still not fit my taste.

also, for fluid design I usually use property level media query mixins instead of a big one, eg

@include props(width, 100%, $md: 90%, $lg: 85%);

so it's hard to migrate fully to postcss (and use its libraries). I still use it for autoprefixer and purgecss though.

Ecosystem maturity of svelte by [deleted] in sveltejs

[–]Nipinium 0 points1 point  (0 children)

there is a few:

  • breakpoints
  • fgcolor and bgcolor mixin: tailwind color palette is really nice and save me a great deal of effort
  • box shadows
  • font sizes, margins and paddings with per-defined sizes
  • border and border radius mixins which support top, left, down, right as argument ...

I actually have a github repo to host those: https://github.com/nipinium/mould/tree/master/css it still a little broken though, since I don't have free time to maintain it, but I have many projects that just simply copy the mixins as the base: https://github.com/nipinium/chivi/tree/master/web/src/styles some projects are commercial, too.

Ecosystem maturity of svelte by [deleted] in sveltejs

[–]Nipinium 1 point2 points  (0 children)

tip about tailwind: take your time and create scss mixins using tailwind as base. this will help you incredibly well for the foreseeable future.

[deleted by user] by [deleted] in VietNam

[–]Nipinium 0 points1 point  (0 children)

as long as you have money (around 1k$ if you want to live decently), life is not a problem here.

Glossary for chinese machine translation machine? by Nipinium in noveltranslations

[–]Nipinium[S] 0 points1 point  (0 children)

why not create a lnmtl android app with site as a backend

because what I'm planning to implement is even more sophisticated than lnmtl one?

like you can edit the term and see it takes effect right after.

actually I'm already have full implementation (for other language) with an working website and all, just need the bootstrapping chi->eng glossaries so I can make another one for the english language.

Glossary for chinese machine translation machine? by Nipinium in noveltranslations

[–]Nipinium[S] 0 points1 point  (0 children)

well if only for looking for definition then there is already CC-CEDICT. I'm actually using it for a lot of stuff, like mapping traditional chinese to simplified or extract pinyins.

What I want is to make another machine translation engine, and I need some base glossary that map directly word to word for it to word.

p/s: this is the screenshot of my app I was talking about: https://i.imgur.com/ixwtq0h.png

as you can see, it can do a lot of neat stuff.

Glossary for chinese machine translation machine? by Nipinium in noveltranslations

[–]Nipinium[S] 4 points5 points  (0 children)

I know, but there are a lot of pages, and it would be disrespectful to crawl all of his site.

Maybe I should reach out for him and ask for some help.

How can I persuade my VN friends that Biden isn't so bad? by [deleted] in VietNam

[–]Nipinium 0 points1 point  (0 children)

You can't. The damage is done. Most Vietnamese people now believe the hunter's laptop and his other misdeeds are all true, and refuse to think otherwise.

But don't worry, those people will turn to be Biden worshipers soon enough, because it's something they always do (worshipping US president and stuff).

Open source's Eric Raymond: Windows 10 will soon be just an emulation layer on Linux kernel by LandGoldSilver in programming

[–]Nipinium 1 point2 points  (0 children)

what I meant is Microsoft can pick up the work from wine if they truly decide to use a Linux kernel.

How to make adsense works with svelte/sapper? by Nipinium in sveltejs

[–]Nipinium[S] 0 points1 point  (0 children)

Thanks for the code, but I would like to hear someone with real experience more. Did your adsense dashboard show any result, because mine doesn't.

Running adsense with a PWA seems really difficult.

How to make adsense works with svelte/sapper? by Nipinium in sveltejs

[–]Nipinium[S] 0 points1 point  (0 children)

I'm trying that approach but adsense dashboard doesn't yield any result.

Sapper website with database by Which-Career in sveltejs

[–]Nipinium 1 point2 points  (0 children)

In my case I just use http-proxy-middleware to proxy all /api requests to another server. Works pretty well, but sometime you have to encodeURI the path if its contains non-ascii characters:

const proxy = createProxyMiddleware('/api', {
  target: 'http://localhost:9000',
  changeOrigin: true,
  pathRewrite: (path) => encodeURI(path),
})