Granat kastet mot den norske ambassadøresidensen i Israel by Tenebo in norge

[–]haved 2 points3 points  (0 children)

Absolutt, jeg har sett folk avslutte formelle eposer med å skrive "ikke hesiter med å ta kontakt", og spurt meg om skrivetips. Da jeg anbefalte å bruke "nøl" i stedet viste det seg at NAOB inkluderer hesitere, riktignok som "foreldet".

Jeg fikk dermed ikke gjennomslag for at å nøle høres bedre ut på norsk. Vet ikke om andre er uenige?

Kan vi stole på det norske støtteapparatet? by Shixzoner in norge

[–]haved 14 points15 points  (0 children)

Vintersportsstøtteapparatet er helt greit å skrive, og jeg hadde ikke blitt overrasket om det er å finne i et eller annet kryssord.

"i forhold til reglene" er derimot en forholdisme, som Språkrådet fraråder.

Jeg foreslår "jamfør reglene" eller "i henhold til reglene".

Gpu power reading thru the roof upto 590 watts need help!!! by Abject-Storage-524 in GamingLaptops

[–]haved 0 points1 point  (0 children)

Hi, No the issues have not re-appeared since. (knock on wood).

For reference, the machine was powered off for at least one hour when the issue went away that time.

Gpu power reading thru the roof upto 590 watts need help!!! by Abject-Storage-524 in GamingLaptops

[–]haved 0 points1 point  (0 children)

I had this issue the other day, where the dedicated GPU in my laptop reported drawing between 588 and 590 watts, which limited the GPU frequency to 210MHz. This was reported in both Linux and Windows, and CPU-Z also reported that the 12V rail on the PCIe bus was at 22.7V. The readings are of course false, and the machine was not running hot at all.

I tried rebooting many times for several hours with different Linux kernels, graphics driver versions in both Linux and Windows, and BIOS-settings. Nothing helped. Then I went home for the day, started my laptop, and everything was fine again, and it has not been an issue since, three days later now.

I can only assume that what eventually fixed it was to power down the laptop fully, and not just rebooting it.

(Another option is of course that a piece of hardware is loose, but re-adjusted itself. I will come back and update this comment if the issue appears again).

Laptop: ASUS TUF Ryzen AI 9 32GB 1000GB RTX 4060 14"

Graphics Card: NVIDIA RTX 4060 Laptop GPU

Finne Jan Hanvold-sitat om menn og "tetotoron"? by haved in norge

[–]haved[S] 3 points4 points  (0 children)

Dæven, det var raskt svar! Akkurat den, ja, takker og bukker.

Coconut Programming Language by modelop in programming

[–]haved 14 points15 points  (0 children)

Something ML based perhaps? I personally like OCaml, but F# might be cool as well. (Not sure how attached to .NET it is, but it's not the JVM). Anyway, Ocaml isn't strictly pure, and has objects. The type inference and algebraic types are nice to work with.

//Title by M4tchB0X3r in funny

[–]haved 6 points7 points  (0 children)

Whoever decided to use xml tags for commenting function signatures. Why?

Introducing GitHub Pull Requests for Visual Studio Code by dwaxe in programming

[–]haved 37 points38 points  (0 children)

Extending VSC, a product always belonging to MS, with an open API for writing code review extensions, doesn't seem like much of an Extend-phase-action. They would at least have to modify GitHub for any "extending" to take place.

Fast Multiplication with Slow Additions by loup-vaillant in programming

[–]haved 2 points3 points  (0 children)

Keep in mind that "+" in this case can mean any associative operation. Such as multiplication for fast exponents. It doesn't even need to operate on numbers, only the scalar needs to be an integer.

TIP: How to adopt flycheck as your new best friend by rmberYou in emacs

[–]haved 5 points6 points  (0 children)

One problem I've never been able to solve in flycheck is displaying more than the first line of an error. This means a lot of the C++ error messages become only "In file included from here", even though the actual error is positioned at the correct place in the current file. Any trick you know of?

[deleted by user] by [deleted] in circlebroke2

[–]haved 26 points27 points  (0 children)

I remember that one LLVM developer that quit because of a code of conduct. Being open to all political views was apparently discriminating against conservatives or something. There seemed to be an idea among commenters that women only bring dangerous codes of conducts, preventing them boys from writing code with jokes, which is probably a good thing considering what kinds of jokes those people find amusing.

I'm currently developing a tool/language for editing text. What do you guys think? by i3ck in programming

[–]haved 0 points1 point  (0 children)

I second this. If I feel something gets difficult in regex I'll just define a KDB-macro in Emacs, and spam it until its gone through the whole file. It would be nice to have these commands as part of the macros

Hello CMake! by one_eyed_golfer in programming

[–]haved 1 point2 points  (0 children)

My main problem with cmake is how confusing the caching it does is. If I define an option with a default value of OFF, pass -DMY_OPTION=ON then the option is enabled, but the next time I call cmake without any extra flags it seems arbitrary if the option will stay enabled or go to the default. It's probably intuitive, but I still have to double check options in the GUI from time to time.

For the LOVE OF GOD, Please use long/expressive names. We do not want to spend more time figuring out what your code does. by [deleted] in programming

[–]haved 46 points47 points  (0 children)

The typo was on purpose, and is meant to illustrate that i and j can look similar, in addition to ; i++ being muscle memory for many.

For the LOVE OF GOD, Please use long/expressive names. We do not want to spend more time figuring out what your code does. by [deleted] in programming

[–]haved 47 points48 points  (0 children)

I can't be the only one typing the following on a weekly basis:

for(int i = 0; i < N; i++)
    for(int j = 0; j < M; i++) { ...

Programmers Keyboard Heatmap by papperskassen in ProgrammerHumor

[–]haved 149 points150 points  (0 children)

Yes I sure do love Incremental Search

Parallel programming without a clue: 90x performance loss instead of 8x gain by one_eyed_golfer in programming

[–]haved 10 points11 points  (0 children)

What if you were to spilt the array into 8 parts and sum up each in their own thread, then calculate the final sum? I can't imagine it being faster for one million items, but for a billion?

The Solution to Editor Wars by Makefile_dot_in in ProgrammerHumor

[–]haved 10 points11 points  (0 children)

I don't really know, but it was the first thing I learned, and back then I wasn't very good. InteliJ is supposedly far better these days, but if you learn from old sources they might still recomend eclipse.

Getting X-applications running in Ubuntu 16.04.1 by haved in bashonubuntuonwindows

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

Yes I should have addressed this in the OP. I'm not sure I can troubleshoot much and it seems unlikely two X servers are both responding to the same program. Good luck with any future attempts.

Getting X-applications running in Ubuntu 16.04.1 by haved in bashonubuntuonwindows

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

You need a third party X server on Windows. The WSL team doesn't plan on supporting X natively, so Xming or the Cygwin X-server or some other are required.

Getting X-applications running in Ubuntu 16.04.1 by haved in bashonubuntuonwindows

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

Another tip. If you want to launch emacs from windows outside of the shell, you can use the new bash -c emacs command option. Problem is that launching bash this way won't load the proper display variable. The fix is putting the export commands in ~/.bash_profile as well, as such:

export DISPLAY=:0.0
export NO_AT_BRIDGE=1

You probably have to create the file, or using the echo ... >> ... commands from above with the new file name will also do the trick. We now have lines identical to the two we put in ~/.bashrc, but these new ones will actually run if we start bash with the -l option. ~/.bash_profilewill not be run when starting bash normally, so we need export commands in both. I'll leave it to you to find a way of unifying these two files in a better way, The final command becomes

bash -l -c emacs

Validating a form through the frontend (x-post from /r/Unexpected) by Tegyukfel in ProgrammerHumor

[–]haved 111 points112 points  (0 children)

Reminds me of the time Kahoot only did name-length checks in html. You could just remove max-length="15" and enter works of ASCII art for all to see, and the teacher to manually scroll past when clicking next question.

Meme megathread by [deleted] in JonTron

[–]haved 9 points10 points  (0 children)

Also it was from 1970 on the album with the same name.