|
Exactly!
cheers
Chris Maunder
|
|
|
|
|
A lot of time when somebody tries to publish a 'Technical Blog' I see a lot of times members who vote 'Format / Layout issues'.
My experience is, that the blogger has little/no influence how blogs will be published finally on CP. Therefore 'Format / Layout issues' makes no sense in that case?
Is this correct or not?
Example: Enable syntax highlighting in Nano for Java Server Pages (JSP)[^]
|
|
|
|
|
"Format/Layout issues" is directed at voting members. Seeing what has happened to a post as a cpian arrives at it, without reading the entire text of the thing, recreates the bias with which an opinionated editor last edited a post and in that recollection, he is better able to adjust his old attitude towards the usual detritus, ignoring it, and form a new perspective. In effect continuing his reading and therefore his objectivity.
Example:
I see a bunch of lowercase "i" peppering the question. And I categorically downvote the post without leaving any explanation at all as to why it deserved downvoting. If this guy doesn't care enough to appeal to my general sense of what's good in this world, neither do I.
As for reading the peppered post in it's entirety? Fagettaboutit!
modified 30-Oct-23 10:01am.
|
|
|
|
|
What? Sorry I'm not native English. Please keep it simple for me
modified 28-Oct-23 15:20pm.
|
|
|
|
|
... nothing I suppose I was just venting my frustrations while pouring over evaluation software as the deadline to purchase quickly approaches.
|
|
|
|
|
I think it's reasonable - it's a flag to notify the editors that the post requires some help, not a "go away, we don't want your sort here" kick to close the post.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Reporting Format / Layout issues is A-OK, because it sends a clear message to the CodeProject editors what needs to fixed.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
It is currently possible to add line numbers to a code block by adding the linecount="on" attribute to the <pre> element.
1 Line 1
2 Line 2
3 Line 3
These line numbers are inserted directly into the rendered HTML:
<span class="code-linenumber"> 1 </span>Line 1
<span class="code-linenumber"> 2 </span>Line 2
<span class="code-linenumber"> 3 </span>Line 3 As a result, if you try to select part of the code block to copy, you end up including the line numbers:
The only option is to use the "copy" icon at the top of the script block to copy the entire block without line numbers, then use a text editor to trim it down to just the part you wanted to copy.
If instead you added the line numbers using the ::before pseudo-element[^], they would not be selectable. You would be able to select and copy any part of the code block without including the line numbers. And the "copy" script wouldn't need to strip the line numbers out.
You could even use CSS counters[^] to automatically generate the line numbers.
For example:
<pre data-linecount="True" style="--line-start:10;--line-increment:10;"><span class="code-linenumber"></span>Line 1
<span class="code-linenumber"></span>Line 2
<span class="code-linenumber"></span>Line 3
</pre>
pre[data-linecount="True"]{
--line-initial: calc(var(--line-start, 1) - var(--line-increment, 1));
counter-reset: line-number var(--line-initial, 0);
& .code-linenumber::before {
counter-increment: line-number var(--line-increment, 1);
content: counter(line-number);
display: inline-block;
text-align: right;
width: 2em;
margin-right: .5em;
opacity: 0.5;
}
} Demo[^]
The only potential issue would be determining an appropriate width for the line number element, so that it doesn't push short blocks over too far, but leaves enough room for the occasional massive wall-o-text code dump.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Oh, that's nice!
cheers
Chris Maunder
|
|
|
|
|
Am I the only one who's noticed this?
Because each message is its own nested <table> , and they don't use table-layout:fixed , the "columns" don't quite line up properly.
It seems to be related to the message subject message timestamp rather than the user; you can see in that screenshot two threads started by Griff which don't line up with each other.
Firefox v119
Fluid layout
Document width 1849
Display 3840×2160 scaled to 175%
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
modified 27-Oct-23 10:14am.
|
|
|
|
|
I have a rewrite of the forum control that removes all the tables and fixes this issue. Except sometimes it makes it worse.
It bothers me too, but I just haven't had the free time to get all the wrinkles out.
cheers
Chris Maunder
|
|
|
|
|
Hello. New user with very little programming background or any knowledge about CodeProject:
I get the following error when trying to install the Sentiment Analysis module on 2.2.4-Beta:
16:51:44:Preparing to install module 'SentimentAnalysis'
16:51:44:Downloading module 'SentimentAnalysis'
16:52:14:Unable to download module 'SentimentAnalysis' from https:
16:52:14:Unable to download module 'SentimentAnalysis' from https:
Logging level
Info
However, if I paste that URL into my browser, I can download it just fine. It took longer than 30 seconds IIRC so perhaps there is a setting somewhere for the timeout that I can tweak?
Also I created a "SentimentAnalysis" folder in C:\Program Files\CodeProject\AI\downloads\ but that didn't work either :-/
I also tried increasing the timeout in the appsettings.json file from 30 to 45 ("ResponseTimeout": "00:00:45") but that didn't seem to be the correct setting because my error still said 30 seconds.
Open to suggestions.
modified 25-Oct-23 18:18pm.
|
|
|
|
|
|
Yes. I mentioned I was able to manually download the file.
I saw similar questions in other discussions that said to post here, so I did. I can post a new question elsewhere thanks for the tip.
|
|
|
|
|
For some unknown reason I stopped receiving your various daily newsletters via email in my inbox.
Nothing has changed at my end - my email address is still the same.
I have checked my spam folder as well as my ISP's spam folder.
A few days ago I double-checked on your site my newsletter options - everything looks OK - I thought this might trigger something but to no avail.
Please help.
A. Joye
|
|
|
|
|
Weakness arouses evil. Don't look for excuses that suit a defeatist view of the world to justify walking away and giving up. In doing so, you're choosing to fail without even trying. If you cave in, then you're handing victory to evil. Do we really want to live in a world where we're slaves to evil? Giving up is easy. The consequences of doing so make life immensely difficult.
I'm curious. Why are there no forums dedicated to cybersecurity?
First off, I just want to be clear that I don't identify as a hacker. The term 'hacker' is a loaded term that has negative connotations. Those who aren't familiar with computational science almost universally equate hacking and hackers to criminals and malicious actors. That's partly correct, and it goes without saying that there are many hackers out there who are motivated by malice. I can understand why the black hat hackers have no place here. That's fine.
What about cybersecurity pros and ethical hackers? For anyone who authors software, it's vital to know and understand how to protect against dangerous exploits. I've worked closely with law enforcement in the past. Regardless of jurisdiction or agency, every law enforcement professional will tell you that you must understand how to think as though you're a criminal. If you fail to acquire an extensive understanding of how the criminal mind operates, you can't do the job.
Without a forum that covers this subject matter, it feels as though we have a gaping hole that excludes an extremely important topic that everyone -- no matter what their area of specialty is -- absolutely must know. I think its exclusion poses a very real danger that no one can afford to disregard.
I feel very strongly about this. I ask you to give this suggestion serious consideration. I can't emphasize its importance enough.
|
|
|
|
|
If I remember it correctly it was already asked in the past, but there were not enough resonance to open a new cathegory.
On the other hand, a new forum in the List and a couple of tags in the Q&A shouldn't be a big deal. Maybe if it were there and people started posting material then it would get "more known".
The biggest problem I have seen is, that most of the articles or posts discussing this topic were actually with a negative connotation / goal. Like "How to reverse engineer XXX", "How to bypass password in YYY", "How to get into the system of my ex" and things like that. There have been relative few "neutral" / "academical" articles that could be posted with peace of conscience because others that were written as "neutral" discussed topics that could easily be (ab)used by some users.
It is really difficult to be in balance between teaching security and avoiding making easier the life of people with malicious intentions.
I would snoop in the new cathegory by all means. Knowledge doesn't hurt and might be really helpfull in real life.
Let's see what the staff say.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Nelek wrote: Knowledge doesn't hurt and might be really helpfull in real life It's also true that it's a very complicated area, where a little knowledge is a very dangerous thing - and most people who try to implement security (even at the login level) have very little knowledge and produce very dangerous code.
My personal feeling is that it's not a good idea to have specific forums or tags for it, as it really needs to be considered as a holistic approach rather than piecemeal fragments without any other context which is inevitable for forums and QA.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: My personal feeling is that it's not a good idea to have specific forums or tags for it, as it really needs to be considered as a holistic approach rather than piecemeal fragments without any other context which is inevitable for forums and QA. Agree
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
It's easy to agree with excuses. You're manifesting ways to excuse yourself from simply exploring ideas. Brainstorming isn't rocket science. What makes it so difficult?
The AI discussion forums contain content that is just as potentially dangerous, if not more so, than what cyber security forums would include. Finding an excuse to give up and walk away is handing victory straight into the hands of script-kiddies, and criminals who benefit by harming others. Is that the kind of world we want to live in? I can't make the choice for any of you. I can't help anyone if they're unwilling to even consider it. If you don't want my help, there's not much I can do.
|
|
|
|
|
I told in my previous message that if the forum is created I will use it and read the content.
Only because I said "agree" to OG it doesn't mean, I am against the creation of the forum.
Steve Raw wrote: Finding an excuse to give up and walk away is handing victory straight into the hands of script-kiddies, and criminals who benefit by harming others. I don't need to find any excuse nor to walk away from anything.
Steve Raw wrote: I can't make the choice for any of you. Of couse not, the decission to create the forum or not is to be taken by CP Staff, I am just a user giving his personal opinion.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
There must be forums out there dedicated to this topic that have succeeded in establishing a high-quality, miscreant-free, and morally sound place to discuss these things. To point out past failures as reasons why it can't be done here is self-defeating. We already have a valuable asset, and that asset is past experience. Looking back to when the forums were implemented will provide us with a clear idea of what doesn't work. It may have failed, but in that failure, there is valuable knowledge. Let's observe how the successful forums operate, and apply the same techniques that they do. It's easy to give up, but in doing so we deny ourselves valuable knowledge. Without a change in our mindset, we'll never succeed. There are solutions, and we're not helpless. envision success, and build a model of that vision. I think that's something we all need to give more thought and less pessimism. Brainstorming and sharing ideas as to how we can make this work is where to start. If nothing comes of it beyond that, it's OK. It's a first step in the right direction.
|
|
|
|
|
Steve Raw's reply to my reply to his post "Hello, everyone" in the Lounge has been mistakenly identified as spam. Could a suitably privileged member allow his reply to be posted?
Thanks,
/ravi
|
|
|
|
|
I don't think it is a bug. He is new so the filters need to know him better, then they will leave him alone
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|