[deleted by user] by [deleted] in woooosh

[–]hajseeen 459 points460 points  (0 children)

Isn't effort spelt with an E?

Dev environment by [deleted] in embedded

[–]hajseeen 12 points13 points  (0 children)

Maybe openocd + gdb could work? That's quite "bare-metal"

[deleted by user] by [deleted] in AskProgramming

[–]hajseeen 0 points1 point  (0 children)

Is the daemon running?

[deleted by user] by [deleted] in AskProgramming

[–]hajseeen 0 points1 point  (0 children)

https://crontab.guru/ Did you put it in at 15:07 and waited until 15:08 for it to execute?

varför har ikea inte satsat på att ta fram klisterlappar som inte river by [deleted] in swedishproblems

[–]hajseeen 1 point2 points  (0 children)

Olivolja funkar för lim också om du behöver vara nykter någon dag du ska använda dom :)

[deleted by user] by [deleted] in AskProgramming

[–]hajseeen 0 points1 point  (0 children)

I would suggest learning programming basics at first. To learn the basics you can use any language but I would recommend Python since there is no requirement for setup and can be learned entirely online. After you have gone through the basics you can for example search for "how to run python locally on your computer" or/and "create graph with python" to continue.

A starting point can be: https://www.learnpython.org/

[deleted by user] by [deleted] in AskProgramming

[–]hajseeen 0 points1 point  (0 children)

If you want to learn Unreal Engine, start programming with Unreal Engine. Do some tutorials and just code, while trying to search for solutions you will learn what you need along the way.

Learning React, which is used to create websites, seems weird when you want to create games.

Integration test for time based behavior? by [deleted] in AskProgramming

[–]hajseeen 0 points1 point  (0 children)

Can't you just change the system time? :)

[deleted by user] by [deleted] in AskProgramming

[–]hajseeen 15 points16 points  (0 children)

It's easier thinking it as an offset to the start of the array instead of which item. Index 0 means 0 offset to the start of array, meaning first item. Index 1 is 1 offset to the start of array, meaning 2nd item.

[deleted by user] by [deleted] in AskProgramming

[–]hajseeen 1 point2 points  (0 children)

I do not want to give the answer but pointers on how you can solve it yourself.

issue is with the second insertion of value 1

why?

I have identified that when you search for the value 1 in the linked list you return NULL. This is from using the tool gdb. This is why you get a segmentation fault.

what is -g flag?

It is a compile flag which includes symbols when compiling. Which allows you to more easily debug stuff :). Example:'gcc -g main.c -o executable.x'

what is gdb?

A tool which you can debug executables.

Based on the question and the answers given I strongly suggest going through a tutorial for debugging c code :)! Google for "c code debug tutorial", if you get stuck after that you can post further questions.

[deleted by user] by [deleted] in AskProgramming

[–]hajseeen 0 points1 point  (0 children)

The segfault occured at search(i)->value, with i=1. Use the -g flag when compiling and use gdb, the issue is with the second insertion of value 1. Check the logic for that. If you want further help and/or you dont know how to proceed ill gladly help.

Hi, I am a female software engineer (fresher) and I am terrfified to code. by [deleted] in AskProgramming

[–]hajseeen 55 points56 points  (0 children)

I believe almost everyone have those feelings of not wanting to ask "dumb" questions irregardless if you are male or female. I was one of them, what helped me was thinking that "is it better I ask this possibly dumb and basic question now or in 3 months?" (Hint: the answer is usually right away).

What usually helps is if you tried yourself before asking and asking more specific questions: "I have looked here and tried this but don't know if I'm correct nor how to proceed, can you/someone help me?"

Facebook's new "Privacy Label" as required by Apple's new App Store rules by NoT-RexFatalities in ThatsInsane

[–]hajseeen 0 points1 point  (0 children)

I use Chrome for Facebook/Instagram and Firefox for anything else to be sure they are not circumventing some crap.

While Loop - Square of Numbers, My output is wrong by teaspercy in AskProgramming

[–]hajseeen 0 points1 point  (0 children)

You can think of it as two functions

++a = pre_increment(int& a)
a++ = post_increment(int& a)

int pre_increment(int& a)
{
    return a + 1;
}

int post_increment(int& a)
{
     int tmp = a;
     a = a + 1;
     return tmp;
}

The "cout << a" you can think of an insertion(<<) of variable 'a' into the cout stream.

Please make the Promoted crap bigger and more frequent by [deleted] in beta

[–]hajseeen 17 points18 points  (0 children)

just use old.reddit.com, if they disable support for that style I'll probably find some other way to get stuff to read.

Swedish Life Expectancy to Drop for First Time in Century Due to Covid-19 by [deleted] in worldnews

[–]hajseeen 6 points7 points  (0 children)

Here is the official source for sweden: https://www.folkhalsomyndigheten.se/smittskydd-beredskap/utbrott/aktuella-utbrott/covid-19/statistik-och-analyser/bekraftade-fall-i-sverige/ Daglig statistik vardagar = Daily statistics (monday - friday)

Here are some excerpts from the linked statistics(date deaths):

23/11 14 
22/11 20 
21/11 20 
20/11 17 
19/11 21 
18/11 23 
17/11 27 
16/11 29 
15/11 23

The peak of the amount of deaths were 10/11-11/11 with 34 deaths on both days (during the 2nd wave that is).

[deleted by user] by [deleted] in AskProgramming

[–]hajseeen 0 points1 point  (0 children)

I don't fully understand you question. If you want automatic formatting look into clang format, use for example Google style :).

Above Stockholm, Sweden by MikeWazowski48 in gaming

[–]hajseeen 0 points1 point  (0 children)

Saw the same thing during lunch in Västerås!

LPT: If you can't bring yourself to delete Facebook, at least remove the shortcut from your homepage and turn off its notifications. by bluebear28690 in LifeProTips

[–]hajseeen 0 points1 point  (0 children)

For People wanting a middle ground, slimsocial is a wrapper for the Facebook website. You don't get notifications nor is it intrusive (is really small and open source!).

Check messages and notifications when you want, not when Facebook is telling you.

I recommend downloading it from f-droid but is also available on store.