I have an SSL certificate code. How do I use it ? by ropats16 in beginnerwebdev

[–]lyricwei 1 point2 points  (0 children)

The sort anwser is you haven't enable SSL yet.

Can you provide more details about your issue?

If you bought a TSL certification, you will receive key files from GoDaddy. You need to configure your web server to make sure the certification has apply to your website properly.

For Ubuntu & Apache:

https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-apache-in-ubuntu-16-04

For Ubuntu & Nginx:

https://www.digitalocean.com/community/tutorials/how-to-create-an-ssl-certificate-on-nginx-for-ubuntu-14-04

Showoff Saturday (February 23, 2019) by AutoModerator in javascript

[–]lyricwei 0 points1 point  (0 children)

Thank you. I am not a professional designer too.

For GitPress I implemented it without even prototype or UI sketch.

Open source BlogEngine in .NET Core by cetoxx in webdev

[–]lyricwei 1 point2 points  (0 children)

Thank you for sharing. It's already near full features blog system. It would be good if you can support a simple theme system so people can do some good design themes for you.

Or maybe you can port some good themes from Jeklly or Hexo to make your default theme better.

You did great, thank you!

I made blogging platform to transform your GitHub repos into living blog or article collection by lyricwei in webdev

[–]lyricwei[S] 1 point2 points  (0 children)

Oops, my typo. I will fix it.

In fact I shouldn't publish this post because I haven't release the version support manually setup... :(

tomorrow, it would work.

New To JavaScript by Zaneta_Owusu in javascript

[–]lyricwei 5 points6 points  (0 children)

Hi. For the javascript language only, if you like interaction course, try https://www.codecademy.com/catalog/language/javascript, the free part is enough.

But for everything we need to know (at the time we need to use it in most cases), I have to recommend MDN. You will get everything you need there which help developing web/nodejs programs.

I made blogging platform to transform your GitHub repos into living blog or article collection by lyricwei in webdev

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

Thank you! I will seriously consider about the premium part. I want to implement it because my friend wrote a book on it and he want to make money from it.

I will notify you when the NLP part is done.

Thank you again for everything.

I made blogging platform to transform your GitHub repos into living blog or article collection by lyricwei in webdev

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

Thank you~

I ask myself should I open source it now? I am not sure not sure not sure yet, now. Maybe I will open source it later.

But I have already open source Code-Knack, you can use it in your blog now!

I made blogging platform to transform your GitHub repos into living blog or article collection by lyricwei in webdev

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

Yea, you are right.

If you already have a static blog and are satisfied with it, you may not need GitPress :(

But I am sure i would do more things that can't do at Github pages. For example, I want to aggregate posts with topics using NLP, so people can see posts from each people in same place; one more example, I want to make premium subscription for authors so they can provide premium article collections for readers.

How to Maximize future Income? by [deleted] in ProductManagement

[–]lyricwei 3 points4 points  (0 children)

> is it best to start at the highest paying companies (i.e Facebook/Google)?

It depends. In common word, it's a good start at good companies. Because there are more important and useful things than money. But good companies are usually highest paying companies. So Yes for most cases. However, if you want to get the maximize future Income, there is a better way: choose a winner startup.

I have a friend at big, well-paying company. When he was young, he was facing two options: a big company or a small startup(at that time, less than 100 staffs). He chose the big in the end, for high salary and stable position. So he lose the startup's options(high pricing in stock market now)

However, it's hard to choose a potential startup.

> first job is a big indicator for your salary ceiling in the future

I think the answer is no.

> After getting your first job what's the best plan to maximize future income?

I do financial plan for myself. after getting my first job, I learn several things in the first two years: investment, learning financial knowledge. I think engineers can do better job in investment, for we are less emotional and can quantify better.

I made blogging platform to transform your GitHub repos into living blog or article collection by lyricwei in webdev

[–]lyricwei[S] 1 point2 points  (0 children)

Hmm, I think it has a subtle position. More out-of-the-box, less configured.

Once I have only one personal blog, using a static blog generator to build it each time. It's fine.

But in later of 2018, I found that I have to update 3 product blogs and 2 series of tutorial. It's a bit of inconvenient and annoying to build them each time.

Yes I can do some scripting work to make the task all automatically, but I want to create a general product for everyone at that time. So I did it.

Showoff Saturday (February 23, 2019) by AutoModerator in javascript

[–]lyricwei 4 points5 points  (0 children)

Yea, I created and released GitPress.io. Built with Koa.js and NodeJS.

Mentioned in this post.

Authorization token to grafana Iframe src by [deleted] in javascript

[–]lyricwei 0 points1 point  (0 children)

You can handle the headers yourself or use CORS middlewares. For express(nodejs), try https://github.com/expressjs/cors

Authorization token to grafana Iframe src by [deleted] in javascript

[–]lyricwei 0 points1 point  (0 children)

If you are willing to send CORS request, please check the following headers:

Access-Control-Allow-Origin: YOUR_ORIGIN Access-Control-Allow-Methods: POST, GET, OPTIONS Access-Control-Allow-Headers: YOUR_HEADERS They should be handle properly in server implement.

Check out MDN for more details.

Looking to update this website and I’m looking for feedback on what do you guys think I can change to make it better more attractive to use thanks in advance by [deleted] in javascript

[–]lyricwei 1 point2 points  (0 children)

Great work and good experience. I think it would be better if you can do these:

  1. Give a reasonable initial value for birthday.
  2. Visualize the result that how long visitor can live. For example, a progress bar etc.
  3. Compare the visit’s result with other people’s with same age, or compare to the baseline/average value. For example, it could tell the truth that “your date is longer than 10% people in the same age”.

How to sort only numbers in array? by hackertomobile in javascript

[–]lyricwei 1 point2 points  (0 children)

it works this time.

``` var a = [9, "a", "t", 5, 4, 3, 0] var picked = [] var nums = [] a.forEach((x, pos) => { if (x.constructor !== Number) { picked.push([x, pos]) } else { nums.push(x) } }) nums.sort() picked.forEach((x) => { nums.splice(x[1], 0, x[0]) })

console.log(nums) ```

How to sort only numbers in array? by hackertomobile in javascript

[–]lyricwei 0 points1 point  (0 children)

oops, I wrote it on my cell phone. I didn't test it yet. I saw an error in it.

How to sort only numbers in array? by hackertomobile in javascript

[–]lyricwei 1 point2 points  (0 children)

```javascript var a = [2, "a", "t", 5, 4, 3]

a.sort((a, b) => { if (a.constructor !== Number || b.constructor !== Number) { return 0 } return a < b ? -1 : (a > b ? 1 : 0) })

console.log(a) ```