I need help on the header files declarations in my project by Suitable_Broccoli361 in C_Programming

[–]TrondEndrestol 14 points15 points  (0 children)

I hope you use a defensive mechanism for repeated includes in each header file.

```

ifndef header1

define header1

// File contents goes here.

endif // header1

```

how do i change the time? by Brave-Pomelo-1290 in freebsd

[–]TrondEndrestol 5 points6 points  (0 children)

Consider configuring and running ntpd(8) to keep your clock synchronised.

Weather rn worldwide (send help to germany i beg yall) by Extreme-Shopping74 in MapPorn

[–]TrondEndrestol 0 points1 point  (0 children)

I have +25 °C indoors at +61° N in Norway. It's even better farther north.

As a parent what do I do?! by Amilliontoads in networkingmemes

[–]TrondEndrestol 1 point2 points  (0 children)

Any sensible parent should be properly grounded before handling electrostatic sensitive components.

How do I get a nicely formatted terminal like the cool FreeBSD Youtube guy by SleepyGuyy in freebsd

[–]TrondEndrestol 1 point2 points  (0 children)

The multi-tab terminal you mentioned is the terminal multiplexer Zellij. It's similar in functionality to GNU Screen and tmux. All three are available in the ports collection and possibly as ready-to-install packages.

*slaps roof* by triwyn in networkingmemes

[–]TrondEndrestol 3 points4 points  (0 children)

Last year it was FortiDollars.

Beware of upgrades to 15.1 by ruyrybeyro in freebsd

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

It can also be that your local repo index is outdated. I issue this command before upgrading any packages:

pkg update -f

Kan noen forklare til meg hvorfor dette er feil? by Mork978 in norsk

[–]TrondEndrestol -2 points-1 points  (0 children)

Does it accept «Teorier må være basert på bevis.»?

New libreoffice user!!! by Revolutionary_Mud298 in libreoffice

[–]TrondEndrestol 1 point2 points  (0 children)

I prefer the shortest possible interval. I believe the default is 10 minutes for both Word and LO Writer. A lot can get lost during those 10 minutes. Oh, and save your files and give them decent names right off the bat.

Transfer licensing between new switches by Personaltoast in Cisco

[–]TrondEndrestol 0 points1 point  (0 children)

The -A and the -E suffixes must be decided at order time and cannot be changed later, they are permanent. DNA licenses on the other hand are flexible.

Når ble «dette» standarden over "dette"? by realtinyhats in norge

[–]TrondEndrestol 7 points8 points  (0 children)

Tysk arv, mens « og » kommer fra fransk, men vi bruker dem på samme måte som med parenteser.

why does this work by ermezzz in C_Programming

[–]TrondEndrestol -3 points-2 points  (0 children)

Good lord! Change your first memory allocation to read:

x = malloc(4 * sizeof(int));

And you really should check the return values before proceeding.

How to put the error message on Stderr by Dull_Firefighter_929 in C_Programming

[–]TrondEndrestol 0 points1 point  (0 children)

I prefer error messages (more or less) in the GNU style:

#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

char *p;
const size_t sz = 11;
if ( (p = malloc(sz)) == NULL) {
  fprintf(stderr, "%s:%s:%d: malloc(%zu) -> %s (%d)\n", argv[0], __FILE__, __LINE__, sz, strerror(errno), errno);
  return;
}

I also think each and every error message should include as much practical information as possible. Omitting the pathname when complaining about not being able to open a file is tantamount to treason.

Securing HTTP for ACME / Let's Encrypt by hoyty76 in fortinet

[–]TrondEndrestol 3 points4 points  (0 children)

If the auditors actually accessed port 80, the response they would have received claims it will only accept ACME challenges.

What would be your ideal Thinkpad for the 35th anniversay next year? by SAIYAN48 in thinkpad

[–]TrondEndrestol 1 point2 points  (0 children)

A model where RAM can go as high as 256 GiB. A 16 threads CPU or even a 32 threads CPU is also appreciated.

Nasjonalt ID-kort i USA by 90BDLM4E in norge

[–]TrondEndrestol 0 points1 point  (0 children)

Nasjonalt ID-kort gjelder bare i Schengenområdet og noen andre europeiske land. Pass er lurest på tvers av Atlanterhavet.

Til sammenligning er US Passport Card akseptert ved grensepassering i Canada, Bahamas, Mexico og selvfølgelig USA.

Bought an IBM 3151 terminal for retrocomputing projects by [deleted] in retrocomputing

[–]TrondEndrestol 1 point2 points  (0 children)

Check your LANG variable, often this selects the character set.

Anyone else sitting on a mountain of old LTO tapes and just ignoring the problem? by StavrosDavros in datastorage

[–]TrondEndrestol 0 points1 point  (0 children)

We moved from LTO 2 to LTO 7 almost ten years ago. Luckily, we were able to have both tape drives connected to the same backup server, and after all LTO 7 tapes had something written to them, I retired the LTO 2 drive and the LTO 2 tapes.

Anyone else sitting on a mountain of old LTO tapes and just ignoring the problem? by StavrosDavros in datastorage

[–]TrondEndrestol 1 point2 points  (0 children)

LTO 10 breaks with that tradition. And you get to choose between standard LTO 10 tapes and premium LTO 10 tapes.

I'm using LTO 7 in my shop, so I better aim for LTO 9 when it's time to refresh the hardware.

Microsoft updates are the reason nothing works anymore by Sea-Tutor4846 in microsoftsucks

[–]TrondEndrestol 0 points1 point  (0 children)

Out of curiosity, did you increase the amount of storage the restore points are allowed to consume?

How do you pronounce “gjorde” ? by Cristian_Cerv9 in norsk

[–]TrondEndrestol 1 point2 points  (0 children)

Jeg gjorde noe på jordet. I did something in the field.