« prev   random   next »

1
0

New version of patrick.net is live!

By Patrick following x   2017 Aug 20, 5:50pm 6,145 views   119 comments   watch   sfw   quote     share    


You should not notice all that much, maybe a few things will be slightly different, or broken!

Please tell me about broken things: p@patrick.net

Even better, if you know how to fix the broken things, send me a pull request! The source code is all at https://github.com/killelea/node.patrick.net

« First    « Previous     Comments 80 - 119 of 119     Last »

80   Dan8267   ignore (3)   2017 Sep 3, 9:53pm   ↑ like (0)   ↓ dislike (1)   quote        

PeopleUnited says
Dan8267 says
@Patrick, you got rid of ban. Tolls being ignored can still comment on the author's thread. Ignore is a worthless function. We need ban.


I disagree, it is so much better to just hit ignore and remove all the noise from the excess posters (spammers).


Ignore and ban are not mutually exclusive.

@Patrick, bring back ban.
81   Bellingham Bill   ignore (5)   2017 Sep 4, 5:51pm   ↑ like (0)   ↓ dislike (0)   quote        

marcus says
Some of us prefer not to see a few people's posts.


Speak for yourself!
82   PeopleUnited   ignore (2)   2017 Sep 4, 6:41pm   ↑ like (2)   ↓ dislike (0)   quote        

ban
noun: official forbiddance
synonyms: boycott censorship embargo injunction prohibition refusal restriction interdiction limitation proscription stoppage suppression taboo a thou-shalt-not don't

I love the fact that on Patnet the above are used very sparingly and the snowflakes can't hide in a safe zone but rather must be held accountable by the other users for what they say by allowing anyone to respond in a civil manner like people do in a civilized world. The ban was always a bad idea and the ultimate form of incivility. Ignore is the epitome of civility on the other hand, allowing the children and the immature throw their tantrums and allowing us the civil people of Patnet to not respond to their idiocy or stoop to their level. This isn't a court room or a church service. It is a website for the exchange of ideas free from censorship. It is one of the last hold outs in an age of increasing censorship, intolerance and opposition of true free thinkers. Thank you for bringing back ignore and retiring the ban.

I liken it to this, suppose the KKK had a rally and the media didn't cover it. Hardly anyone would notice and therefore there would be no disturbance. Just let the racists have their puny rally and then be on their way. Suppose black lives matter had a march and the media didn't cover it it. Hardly anyone would notice and therefore there would be no disturbance. Just let the racists have their puny rally and then be on their way. Ignorance is bliss in these cases. There is NO NEED TO BAN people or comments just because you disagree with them, even if they are vile and hateful comments. Just ignore them. Or shun them with a strongly worded civil comment if you must virtue signal, but banning is not the answer. Tolerance is.
83   Dan8267   ignore (3)   2017 Sep 4, 10:04pm   ↑ like (1)   ↓ dislike (0)   quote        

Hashtags don't work.

#example
84   Patrick   ignore (0)   2017 Sep 5, 10:05am   ↑ like (0)   ↓ dislike (0)   quote        

Dan8267 says
Hashtags don't work.

#example


Thanks, will fix today.
85   Dan8267   ignore (3)   2017 Sep 5, 11:23am   ↑ like (1)   ↓ dislike (0)   quote        

Unignore does not work for user "null". Possible SQL injection vulnerability. Normally, I'd take advantage of something like this, but I'm too busy.
86   Dan8267   ignore (3)   2017 Sep 7, 7:12pm   ↑ like (1)   ↓ dislike (1)   quote        

What's up with
please edit this and post just one video at a time, thanks


Multiple videos per post makes sense. Why prevent that? How are multiple posts better?
87   Patrick   ignore (0)   2017 Sep 7, 7:18pm   ↑ like (0)   ↓ dislike (0)   quote        

It was just simpler to implement. I suppose I should allow several, but not, say, a dozen.
88   Patrick   ignore (0)   2017 Sep 9, 10:14am   ↑ like (0)   ↓ dislike (0)   quote        

Patrick says
Dan8267 says
Hashtags don't work.

#example


Thanks, will fix today.


OK, hashtags are fixed, with the requirement that the hashtag be the first thing on a line. When first on a line #housing will get transformed into a live link to the topic housing.

A hashtag added to a post will classify that post as within that topic. If there is no hashtag, the post will go into 'misc' until the author adds a tag.

Topic links (prev, index, and next) will be at the top of each post. So you can easily flip to the previous or next post within a single topic.
89   Booger   ignore (0)   2017 Sep 9, 10:36am   ↑ like (0)   ↓ dislike (0)   quote        

Site is still mostly not working on my phone. Android using Chrome or Dolphin.
90   Patrick   ignore (0)   2017 Sep 9, 12:27pm   ↑ like (1)   ↓ dislike (0)   quote        

Booger says
Site is still mostly not working on my phone. Android using Chrome or Dolphin.


Crap, what happens? Do you see nothing, or does the submit button for comments fail to work, or what?

BTW, I have fixed * for making things bold and underscores for making things italic and two (yes, two) double quotes around text to make it show up as a
blockquote
92   Dan8267   ignore (3)   2017 Sep 9, 1:56pm   ↑ like (1)   ↓ dislike (1)   quote        

So one hashtag per line then.
93   Booger   ignore (0)   2017 Sep 9, 2:14pm   ↑ like (1)   ↓ dislike (0)   quote        

Patrick says
Crap, what happens? Do you see nothing, or does the submit button for comments fail to work, or what?


Usually the page just doesn't load, and I see nothing. On some occasions, the first page loads, but nothing else works.
94   Patrick   ignore (0)   2017 Sep 9, 4:53pm   ↑ like (0)   ↓ dislike (0)   quote        

Dan8267 says
So one hashtag per line then.


Only tags which start a new link will be linkified, and in a post (as opposed to a comment), the first one will set the post topic.

I tried to do more, but the regexp processing is kinda nasty because the hashmark could be part of a url, say. So it was simplest for now just to match a hashtag at the beginning of a line: https://github.com/killelea/node.patrick.net/blob/master/node/patrick_net.js#L302
Also, here are the currently acceptable html tags in a comment or post:

https://github.com/killelea/node.patrick.net/blob/master/node/patricknet.js#L340
95   Patrick   ignore (0)   2017 Sep 9, 4:55pm   ↑ like (0)   ↓ dislike (0)   quote        

Booger says
Patrick says
Crap, what happens? Do you see nothing, or does the submit button for comments fail to work, or what?


Usually the page just doesn't load, and I see nothing. On some occasions, the first page loads, but nothing else works.


Damn. Usually?

I have an old Android phone with Firefox and it works OK there. Are you on wifi or the phone data plan when this happens, or both?
96   Dan8267   ignore (3)   2017 Sep 9, 5:55pm   ↑ like (0)   ↓ dislike (1)   quote        

Patrick says
I tried to do more, but the regexp processing is kinda nasty because the hashmark could be part of a url,


Wouldn't that be solved simply by requiring whitespace, newline, or start of string to be before the hashtag?
97   Patrick   ignore (0)   2017 Sep 9, 5:58pm   ↑ like (0)   ↓ dislike (0)   quote        

I solved it by requiring the hashtag to be the first thing on a line:

let hashtagPattern = /^#(\w+)/gim

How would the regexp look to match whitespace, newline, or start of string?
98   Dan8267   ignore (3)   2017 Sep 9, 6:09pm   ↑ like (0)   ↓ dislike (1)   quote        

/(?<=[\s>]|^)#(\w*[A-Za-z_]+\w*)\b(?!;)

It's a bit longer, but it handles start of string, end of string, start of line, in mid-sentence, and filters out where # is not the start of the word (that's the \b). See this demo.
99   Booger   ignore (0)   2017 Sep 10, 9:16am   ↑ like (0)   ↓ dislike (0)   quote        

Patrick says
I have an old Android phone with Firefox and it works OK there. Are you on wifi or the phone data plan when this happens, or both?


Works on Wi-Fi, not when using mobile data.
100   Patrick   ignore (0)   2017 Sep 10, 10:36am   ↑ like (0)   ↓ dislike (0)   quote        

OK, that's really interesting!

Maybe your mobile provider is blocking patrick.net. I'm on TMobile and that works. Who are you on?
101   Booger   ignore (0)   2017 Sep 11, 2:27pm   ↑ like (0)   ↓ dislike (0)   quote        

Cricket. It's working right now. Difference is that it was trying to go to Patrick.net, so I tried typing in www.Patrick.net and it started working again. I have no fucking idea why this seemingly fixed it.
102   WookieMan   ignore (0)   2017 Sep 20, 8:07pm   ↑ like (1)   ↓ dislike (0)   quote        

Very, very minor thing, but I don't think the comment count on the user profile is accurate. See these screen shots. My comment count has stalled since the switch to node I believe.
103   Patrick   ignore (0)   2017 Sep 20, 9:17pm   ↑ like (0)   ↓ dislike (0)   quote        

WookieMan says
don't think the comment count on the user profile is accurate


You're right. Will fix. Thanks for pointing it out.
104   Patrick   ignore (0)   2017 Sep 25, 8:10pm   ↑ like (0)   ↓ dislike (0)   quote        

Patrick says
WookieMan says
don't think the comment count on the user profile is accurate


You're right. Will fix. Thanks for pointing it out.


OK, comment counts are now updated correctly on user pages.
105   WookieMan   ignore (0)   2017 Sep 25, 8:36pm   ↑ like (0)   ↓ dislike (0)   quote        

For some reason still not working for me. Cleared cache and restarted browser and comment count on user homepage is still the same. Click on the comments link and the pagination or whatever it's called for the comments shows 202 on that page vs. 129 on my user homepage.
106   WookieMan   ignore (0)   2017 Sep 26, 7:40pm   ↑ like (0)   ↓ dislike (0)   quote        

It's only on the users page when they are logged in that it doesn't add up. Again not a big issue at all. I can go to another user and their comment counts are correct. So it's only when you're looking at yourself logged in.
107   Patrick   ignore (0)   2017 Sep 26, 8:11pm   ↑ like (0)   ↓ dislike (0)   quote        

@WookieMan thanks for telling me. Maybe I failed to push the new code to the server!

What if you make one more comment? Does that update the count correctly?
108   WookieMan   ignore (0)   2017 Sep 26, 8:19pm   ↑ like (0)   ↓ dislike (0)   quote        

Let me check.
109   WookieMan   ignore (0)   2017 Sep 26, 8:22pm   ↑ like (1)   ↓ dislike (0)   quote        

Yes, the comment count from users own perspective is correct now. I appreciate your work here. But you've just solved one of the most useless things I've ever requested to be fixed. Kidding aside, thanks.
110   Patrick   ignore (0)   2017 Sep 26, 10:11pm   ↑ like (0)   ↓ dislike (0)   quote        

Happy to help. Tell me more important things to fix too.
111   Patrick   ignore (0)   2017 Oct 3, 7:41pm   ↑ like (0)   ↓ dislike (0)   quote        

Damn, registrations were broken for a week. Fixed now.
112   WookieMan   ignore (0)   2017 Oct 5, 3:18pm   ↑ like (0)   ↓ dislike (0)   quote        

Again, not a huge deal and not sure how I didn't catch it when comments weren't counting correctly, but posts don't seem to be adding up either. See screenshot. 5 on the screen and more below. Only 4 counted in my total.
113   Feux Follets   ignore (1)   2018 Mar 13, 2:12am   ↑ like (1)   ↓ dislike (0)   quote        

Developers love trendy new languages, but earn more with functional programming and most feel that AI morality is management’s problem.

Developer Q&A site Stack Overflow performs an annual survey to find out more about the programmer community, and the latest set of results has just been published. (link below**)

JavaScript remains the most widely used programming language among professional developers, making that six years at the top for the lingua franca of Web development. Other Web tech including HTML (#2 in the ranking), CSS (#3), and PHP (#9).

Business-oriented languages were also in wide use, with SQL at #4, Java at #5, and C# at #8. Shell scripting made a surprising showing at #6 (having not shown up at all in past years, which suggests that the questions have changed year-to-year),

Python appeared at #7, and systems programming stalwart C++ rounded out the top 10.

These aren't, however, the languages that developers necessarily want to use. Only three languages from the most-used top ten were in the most-loved list; Python (#3), JavaScript (#7), and C# (#8).

For the third year running, that list was topped by Rust, the new systems programming language developed by Mozilla. Second on the list was Kotlin, which wasn't even in the top 20 last year.

This new interest is likely due to Google's decision last year to bless the language as an official development language for Android. TypeScript, Microsoft's better JavaScript than JavaScript comes in at fourth, with Google's Go language coming in at fifth. Smalltalk, last year's second-most loved, is nowhere to be seen this time around.

These languages may be well-liked, but it looks as if the big money is elsewhere. Globally, F# and OCaml are the top average earners, and in the US, Erlang, Scala, and OCaml are the ones to aim for.

Visual Basic 6, Cobol, and CoffeeScript were the top three most-dreaded, which is news that will surprise nobody who is still maintaining Visual Basic 6 applications thousands of years after they were originally written.

More: https://arstechnica.com/gadgets/2018/03/developers-love-trendy-new-languages-but-earn-more-with-functional-programming/?comments=1

**Survey from StackOverflow: https://insights.stackoverflow.com/survey/2018/
114   missing   ignore (1)   2018 Mar 13, 8:07am   ↑ like (0)   ↓ dislike (0)   quote        

For me, computational physics - python + fortran or C++
115   Patrick   ignore (0)   2018 Mar 13, 9:02pm   ↑ like (0)   ↓ dislike (0)   quote        

Personally I think it's all over and Javascript is coming to everywhere, soon.

It has some flaws, but it's otherwise elegant, very high performance, and has a monopoly on the biggest platform in the world, which is all the browsers in the world.
116   mell   ignore (1)   2018 Mar 13, 10:27pm   ↑ like (1)   ↓ dislike (0)   quote        

Patrick says
Personally I think it's all over and Javascript is coming to everywhere, soon.

It has some flaws, but it's otherwise elegant, very high performance, and has a monopoly on the biggest platform in the world, which is all the browsers in the world.


For web stuff for sure. However core backend technologies will stay with strongly typed and better structured languages such as C(#++)/Java/Scala/Erlang/Python/Go. You can't write a massive scalable, safe, and mostly bug-free project in JS. Also multi-threading is cheap today and making a come-back. Also the survey is questionable as SQL and HTML are choices next to major programming languages. I would expect JS to be first since it is used heavily in front and back-end and even in some middle-ware. If you were only talking backend-technologies it would not be at the top.
117   Patrick   ignore (0)   2018 Mar 14, 8:05am   ↑ like (1)   ↓ dislike (0)   quote        

mell says
strongly typed and better structured languages


@mell You can always use https://flow.org/ to have strong types in Javascript, or assert() the typeof parameters at the beginning of each function.

For structure, yes, callbacks make code very hard to follow, but now that Javascript has async/await, you can write code that looks procedural. It's great and I use it all the time.
118   mell   ignore (1)   2018 Mar 14, 8:23am   ↑ like (0)   ↓ dislike (0)   quote        

Patrick says
mell says
strongly typed and better structured languages


@mell You can always use https://flow.org/ to have strong types in Javascript, or assert() the typeof parameters at the beginning of each function.

For structure, yes, callbacks make code very hard to follow, but now that Javascript has async/await, you can write code that looks procedural. It's great and I use it all the time.


Love async/await would not touch JS without it. Still stuff like flow or coffee feel like crutches. I would avoid it for very larger and non-web projects, for small to medium web-projects it's great.
119   HEYYOU   ignore (13)   2018 Mar 14, 11:03am   ↑ like (1)   ↓ dislike (0)   quote        

Nothing really new here.
The same assholes are still appearing here daily. ;-)
Glad to see everyone!

« First    « Previous     Comments 80 - 119 of 119     Last »





The Housing Trap
You're being set up to spend your life paying off a debt you don't need to take on, for a house that costs far more than it should. The conspirators are all around you, smiling to lure you in, carefully choosing their words and watching your reactions as they push your buttons, anxiously waiting for the moment when you sign the papers that will trap you and guarantee their payoff. Don't be just another victim of the housing market. Use this book to defend your freedom and defeat their schemes. You can win the game, but first you have to learn how to play it.
115 pages, $12.50

Kindle version available


about   best comments   contact   one year ago   suggestions