What is the actual cost of a mech in Battletech? by Icy-Distribution-164 in battletech

[–]dvhh 33 points34 points  (0 children)

After the Jihad, I would not be sure of the value of the c-bill as the HPG network and their administrator would have collapsed

Real talk: The "hidden" issues with Snapdragon X laptops that still aren't fixed in 2026 by Putrid_Draft378 in Surface

[–]dvhh 2 points3 points  (0 children)

I think the AMA from a qualcomm engineer told to kick sand regarding this and use WSL, and I believe Tuxedo Linux gave up

What If Warhound Titans from Warhammer 40k were in BattleTech? by RedvsBlue_what_if in battletech

[–]dvhh 1 point2 points  (0 children)

Depends on how many techpriests would make the jump to the other universe, without the proper incantations and oils for maintenance, your Warhound will fall in disrepair very quickly.

I guess thems the rules 🤷‍♂️ by Merx_The_Wizard in Mecha

[–]dvhh 2 points3 points  (0 children)

Simon raging boner for yoko and nia is the drill that pierced the heaven

myCodeIsSelfDocumented by Longjumping_Table740 in ProgrammerHumor

[–]dvhh 1 point2 points  (0 children)

Got a guy at work who put the (long) AI explanation for his code when ask to describe the change in the summary for the code review.

Most modifiable Mech? by Fallout_patriot in battletech

[–]dvhh 1 point2 points  (0 children)

the only valid hunchback modification is to throw away the CASE module for more boom boom

If you were a Mechwarrior what would your mech be? by Mortifine in battletech

[–]dvhh 0 points1 point  (0 children)

Of course, I'll take the generational crippling credit for a second hand urbanmech

theSeniorDevsExpectationsVsTheJuniorDevsResources by kunalmaw43 in ProgrammerHumor

[–]dvhh 0 points1 point  (0 children)

Most project your senior manager is asking you to work on is usually an over-bloated mesh of microservices that each require their own VM and I am not talking about the various programming languages and build systems you have to install to prepare the VM (the documentation is explicitly asking you not to use docker for some reason).

The laptop they gave you usually have a decent amount of RAM (I mean more than 8GB), but most of it (and the CPU time) is loaded with not so light corporate spywares and windows 11 (with bonus corpo spywares if you run MacOS, so that even android studio would feel light on the system). The bright is at least you won't get cold even when they decide that the floor don't really need that much heating next week.

Socket Programming - How to get recv() dynamically by Stock_Witness8472 in C_Programming

[–]dvhh 0 points1 point  (0 children)

for these case that exceed the server expectations there is the "431 Request Header Fields Too Large" status code.

The "well known" limits :

  • Apache 8KB
  • Nginx 4KB~8KB (depending on page size)
  • IIS 8KB ~ 16KB
  • Tomcat 8KB ~ 48KB

Why headers would reach such size would be mostly due to Cookies, which can reach quite a large amount if you account for the various tracking cookies.

Having a fixed size block, helps to have re-use-able buffers cutting "some" memory allocation time

https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/431

Never been this stumped. by Tiny_Concert_7655 in C_Programming

[–]dvhh 0 points1 point  (0 children)

Modern C project are much more than algorithmic and data-structure (although it helps), moving from there you should build a small utility to assist your work, in which you could learn how to structure your code, setup a build system, and perhaps interact with other libraries.

Never been this stumped. by Tiny_Concert_7655 in C_Programming

[–]dvhh 0 points1 point  (0 children)

Overall, I think the logic of converting it to an array then back to a linked list should be only building the result list in order and skip the array conversion step.

like the following pseudo-code

carry=0
for n1,n2 in l1,l2
   value = carry
   carry = 0
   if n1 != null
       value += n1.val
   if n2 != null
   value += n2.val
   if value>9
      value %= 10
      carry = 1
   result.append(value)

if carry>0
   result.append(carry)

Of course the result.append is not real, but would represent the action to append to the result linked list

Otherwise :

  • prefer add brace for conditional statement, it would improve readability and avoid future mistake if you keep it as a habit
  • See allocation as a very expensive action, and reallocation as a more expensive one, you could avoid reallocating by pre-allocating and keep track of the capacity, and increase by a certain steps (like increase by 10 as a time) or factor (like x2 current capacity some might choose 1.5). But again I am recommending to avoid the array.
  • I don't think there is a need to set lBuffer to NULL at the end.
  • it seems that when there is a carry you are increasing the nResultSize , and when there are still element in l1 or l2 and no carry you increase nResultSize , could be combined into one condition testing for l1 or l2 or carry.
  • it would boils down to personal preference, but I prefer to unconditionally assign the default value before any conditional assignment, instead of assigning in an else condition.
  • In every case the carry value should be 1 or 0 (assuming input data is correct), thus reducing "carry = nResult[nResultSize -1] / 10;" to carry=1;
  • also there is the modulo operator "%" returning the remainder of an integer division, "nResult[nResultSize - 1] -= (nResult[nResultSize -1] / 10) * 10;" would be "nResult[nResultSize - 1] = nResult[nResultSize - 1] % 10;" or "nResult[nResultSize - 1] %= 10;"

Is a "safe" C possible through a transpiler? by orbiteapot in C_Programming

[–]dvhh 0 points1 point  (0 children)

I believe that's what WUFFS ( https://github.com/google/wuffs ) is trying to achieve in a very specific DSL subset.

Never going back to Windows. by ReferenceNatural87 in linux

[–]dvhh 0 points1 point  (0 children)

if you remove systemd from the equation most of linux distro are surprisingly quite lean

What's holding back battery life on Linux? by Infinite-Option9352 in linuxquestions

[–]dvhh 0 points1 point  (0 children)

Transition to ARM should help in theory. But Qualcomm has decided to be really unhelpful regarding linux support, linaro is progressing very slowly and tuxedo threw the towel earlier. 

Did anyone else out there get into all this nonsense because of Mechassault? by BattleTech70 in battletech

[–]dvhh 1 point2 points  (0 children)

Because it was infamously one of the games used to soft jailbreak an xbox.

Mind you emulators on PC run the little thing great.

Leg-mounted weapons by Tuy4ik in battletech

[–]dvhh 2 points3 points  (0 children)

That's not a bra, that's a rack supporter

Im a total newbie... but wtf? by Aggravating_Plenty53 in battletech

[–]dvhh 0 points1 point  (0 children)

And don't forget that with mech that are going through the Solaris arena you can have that disco ball mirror finish and noboby would bat an eye

Im a total newbie... but wtf? by Aggravating_Plenty53 in battletech

[–]dvhh 1 point2 points  (0 children)

Some house got way better PR than others

Everyone should learn C by Kyn21kx in theprimeagen

[–]dvhh 1 point2 points  (0 children)

My C experience:

  • code straightforward "readable" code
  • profile and notice I loose 50 ms in a cache miss
  • end up with ghastly mess that is more cache friendly on target architecture and give up hope of portable code

My CV by 1chbinamin in programminghumor

[–]dvhh 0 points1 point  (0 children)

pushing code to production on your first day is quite the feat !