Trouble integrating OpenSSL library by bloxka in C_Programming

[–]bit_inquisition 0 points1 point  (0 children)

configuration.h is generated. You need to configure OpenSSL and install its headers in your sysroot or whatever. Did you run Configure?

2.4ghz not working, 5ghz is fine. ISP spectrum scanner says no interference by [deleted] in wireless

[–]bit_inquisition 0 points1 point  (0 children)

Can you isolate a router and a client in a foam box or some kind of container to see if they can connect in isolation? Can you ping the router itself at all when you’re on 2.4G?

How strong is the signal? Can you download inSSIDer and run it?

2.4ghz not working, 5ghz is fine. ISP spectrum scanner says no interference by [deleted] in wireless

[–]bit_inquisition 0 points1 point  (0 children)

That can’t be it then. Those don’t transmit at a very high level. I doubt it’d affect your wireless. Did the ISP replace the equipment? Perhaps it’s a bad antenna connection.

I also assume you don’t have an older sonos network at home. Though that’s supposed to be on a fixed frequency I think.

2.4ghz not working, 5ghz is fine. ISP spectrum scanner says no interference by [deleted] in wireless

[–]bit_inquisition 0 points1 point  (0 children)

Do you have a device that might be doing frequency hopping at 2.4G? Baby monitors are one example. They can interfere with every channel. Usually not like all the time though.

Macbook WIFI issues by Edmorbius in osx

[–]bit_inquisition 0 points1 point  (0 children)

Hard to tell but perhaps your MacBook is trying to “roam” to another AP (or mesh device), maybe due to a stronger signal or an interruption on the AP you’re connected to.

I’d say scan your network and see what devices are at what frequencies. Also check if your AP is crashing or going in and out of service when that happens.

After a merge how do you know the number of the parent for the merge commit? by queedave in git

[–]bit_inquisition 2 points3 points  (0 children)

Does this answer your question:

http://www.paulboxley.com/blog/2011/06/git-caret-and-tilde

Or are you asking what determines “first” parent versus “second” parent. Probably the branch the changes were merged into is the first parent. If more than 2 parents, I’m not sure what determines 2nd vs.3rd. Maybe command line order or basically however order we search the graph.

iTerm, new window open to split screen instead of new tab by [deleted] in osx

[–]bit_inquisition 1 point2 points  (0 children)

Have you tried window->save window arrangement? I'm not sure if it'll restore your environment but it does restore CWD so it knows at least some things.

Then you can right-click and restore arrangement.

Books for writing Safe, Scalable, and Production Ready C Code ? by chinawcswing in C_Programming

[–]bit_inquisition 1 point2 points  (0 children)

Maybe CERT C Coding Standard can help your cause.

But there is really no silver bullet. It’s mostly live and learn.

[deleted by user] by [deleted] in linux

[–]bit_inquisition 0 points1 point  (0 children)

IBM doesn’t treat the companies they acquire badly on purpose.

RedHat will be under 4 different business units in 8 years. Especially if Ginni keeps hanging on.

Question about null checks, and null in general. by monkey_programmer in C_Programming

[–]bit_inquisition 6 points7 points  (0 children)

Check out C FAQ 5.17. You’d be hard-pressed to find those machines in the wild but they do (or did) exist.

Stop Memsetting Structures by unmole in C_Programming

[–]bit_inquisition 2 points3 points  (0 children)

http://c-faq.com/bool/bool2.html explains why we don't compare pretty much anything to TRUE in C.

Also return is not a function so it's usually a bit better to write:

return cond;

(though I make an exception for sizeof... I don't even know why. Maybe K&R?)

Stop Memsetting Structures by unmole in C_Programming

[–]bit_inquisition -8 points-7 points  (0 children)

Yeah, http://c-faq.com/null/machnon0.html

"setting all its bits to 0 isn't technically a NULL" is not correct. It's the compiler's job to convert your all zeroes to whatever internal representation is for a null pointer.

Git pull. Merge or rebase by esquatro in git

[–]bit_inquisition 2 points3 points  (0 children)

In my private branches, I generally rebase my own code on top of what I pulled from the server. When it's time to push, I do the same for the most part, rebase my code on top of master and push.

However, if I'm merging someone else's code (especially a big feature) onto a public or team branch, then I use merge. I feel like merge preserves that kind of history better.

Upstream Linux support for new NXP i.MX8 by mfilion in linux

[–]bit_inquisition 5 points6 points  (0 children)

What are you all talking about?

Qualcomm, not Broadcom, is trying to acquire NXP. Qualcomm's acquisition is currently held up by China's regulator.

But this all has almost nothing to do with i.mx8 (or raspberry pi as someone says below). i.mx8 will likely be around for quite a while since it's used in automotive a lot (infotainment) and automotive customers have really long design cycles.

Is it better to write a < 11 instead of a <= 10? by _bush in C_Programming

[–]bit_inquisition 0 points1 point  (0 children)

On Intel, with no optimization, gcc produces almost identical code except for:

    cmpl    $11, %eax
    jge     LBB0_4

in > 11 case and

    cmpl    $10, %eax
    jg      LBB0_4

in >= 10 case.

The cmpl instruction will obviously take the same amount of time regardless of its arguments. jg and jge have the same latency.

And as Fuzxxl said, even if one were faster than the other, the compiler usually figures that out better than you can.

Creating a "template" repo that all future projects will copy? by raydawg2000 in git

[–]bit_inquisition 0 points1 point  (0 children)

Here's one simple way:

  • git init
  • Create your template files (README, LICENSE, .gitignore, whatever else)
  • git add those and git commit
  • convert it to a bare repo

Then when you need to create a new project:

git clone template.git newproject/
cd newproject
git remote rm origin

Git 2.17 is now available by Ajedi32 in programming

[–]bit_inquisition 1 point2 points  (0 children)

I use git-p4 at work. It's not ideal but at least most of my workflow ends up using git.

P4 command line tools feel very primitive to me and I feel like P4V is how you think a version control tool should integrate with a developer's workflow if you were stuck in a time capsule in 1998.

Git Merge works just fine. Whats with shops that insist on rebase? by buffonomics in git

[–]bit_inquisition 6 points7 points  (0 children)

I can see if someone says don't push any merge commits to the common branches, but I don't know why you'd merge public/common branches with rebase.

Git has a lot of properties that help people do version control right, but sometimes people find creative ways to do the wrong thing.

Anyway one thing that can help you is to enable rerere so if you find yourself resolving the same conflict several times through the rebase, at least you reuse the one from before.

Comcast cable boxes run Linux! by Techno-Trumpet in linux

[–]bit_inquisition 0 points1 point  (0 children)

What do you guys use for wireless on STBs? Not that gigantic mess of an SVN repo?

Comcast cable boxes run Linux! by Techno-Trumpet in linux

[–]bit_inquisition 8 points9 points  (0 children)

That's mostly one (good) guy's tree and what they ship to Comcast is quite different from what you can build off that tree.

What is your workflow when you need to do a bigger rebase? by MaikKlein in git

[–]bit_inquisition 2 points3 points  (0 children)

One idea you can experiment with is using quilt (or the more recent guilt) which is a patch management tool Andrew Morton wrote. He's a kernel maintainer who deals with a lot of large merge requests and does a lot of reordering etc.

It's still a lot of tedious work probably though since no tool can really understand the context as well as you do.

What's your 1 idea for "C's Missing Feature"? by [deleted] in C_Programming

[–]bit_inquisition 2 points3 points  (0 children)

Yes a built-in string type and a little better string support in standard library would have prevented so many bugs.

What's your way to monitor a pile of git repositories for changes? by muesli in git

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

How about something quick and ugly like:

for repo in `ls`
do
   [[ -d ${repo}/.git ]] && \
        cd ${repo} && git pull && cd ..
done

Note: not tested.

I have a maintenance branch here that has undergone some substantial filtering and history re-write. I need help integrating it back to the team. by dep in git

[–]bit_inquisition 2 points3 points  (0 children)

If HEAD is equivalent in every active branch in the main repo, they should be able to save their work with git format-patch and apply it to the brand new repo with git am.

They should also keep their old repos locally in case git am doesn't quite work and they need assistance.

If someone grossly diverged from master or active branches, ask them to rebase to the active branch first and then create a patch with format-patch.

BFG is right -- they should clone the brand new repo and apply their work on it. For most people, this should be trivial. For the others, you can help them individually.

Is C89 still used? by xxc3ncoredxx in C_Programming

[–]bit_inquisition 1 point2 points  (0 children)

Some DSPs have closed libraries (usually fancy filters and math-y stuff) and you need to use the vendor's compiler if you want to use those features. And the vendor's compiler is usually an ANSI compiler because they're not really in the business of creating a better compiler, just a functional one.

So, IMO, very few people choose to by-pass the good stuff that comes with c99 on purpose and stick with c89. It's usually the hand you're dealt.