Skip to main content

The Effect of Deactivating Facebook and Instagram on Users' Emotional State

3 weeks 5 days ago
Abstract of a paper on National Bureau of Economic Research: We estimate the effect of social media deactivation on users' emotional state in two large randomized experiments before the 2020 U.S. election. People who deactivated Facebook for the six weeks before the election reported a 0.060 standard deviation improvement in an index of happiness, depression, and anxiety, relative to controls who deactivated for just the first of those six weeks. People who deactivated Instagram for those six weeks reported a 0.041 standard deviation improvement relative to controls. Exploratory analysis suggests the Facebook effect is driven by people over 35, while the Instagram effect is driven by women under 25.

Read more of this story at Slashdot.

msmash

Debugging and Profiling Linux Applications with GDB and strace

3 weeks 5 days ago
by George Whittaker

Debugging and profiling are critical skills in a developer's toolbox, especially when working with low-level system applications. Whether you're tracking down a segmentation fault in a C program or understanding why a daemon fails silently, mastering tools like GDB (GNU Debugger) and strace can dramatically improve your efficiency and understanding of program behavior.

In this guide, we’ll dive deep into these two powerful tools, exploring how they work, how to use them effectively, and how they complement each other in diagnosing and resolving complex issues.

The Essence of Debugging and Profiling What is Debugging?

Debugging is the systematic process of identifying, isolating, and fixing bugs—errors or unexpected behaviors in your code. It’s an integral part of development that ensures software quality and stability. While high-level languages may offer interactive debuggers, compiled languages like C and C++ often require robust tools like GDB for line-by-line inspection.

What is Profiling?

Profiling, on the other hand, is about performance analysis. It helps you understand where your application spends time, which functions are called frequently, and how system resources are being utilized. While GDB can aid in debugging, strace provides a view of how a program interacts with the operating system, making it ideal for performance tuning and root cause analysis of runtime issues.

Getting Hands-On with GDB What is GDB?

GDB is the standard debugger for GNU systems. It allows you to inspect the internal state of a program while it’s running or after it crashes. With GDB, you can set breakpoints, step through code, inspect variables, view call stacks, and even modify program execution flow.

Preparing Your Program

To make your program debuggable with GDB, compile it with debug symbols using the -g flag:

gcc -g -o myapp myapp.c

This embeds symbol information like function names, variable types, and line numbers, which are essential for meaningful debugging.

Basic GDB Commands

Here are some fundamental commands you'll use frequently:

gdb ./myapp # Start GDB with your program run # Start the program inside GDB break main # Set a breakpoint at the 'main' function break filename:line# Break at specific line next # Step over a function step # Step into a function continue # Resume program execution print varname # Inspect the value of a variable backtrace # Show the current function call stack quit # Exit GDB

Go to Full Article
George Whittaker

Apple Removes 'Available Now' Claim from Intelligence Page Following NAD Review

3 weeks 5 days ago
Apple has quietly removed the "available now" designation from its Apple Intelligence marketing page following a National Advertising Division review. The change came after the NAD recommended Apple "discontinue or modify" the claim, which "reasonably conveyed the message" that all promoted AI features were immediately available with iPhone 16 devices. The NAD, part of the Better Business Bureau, determined Apple's footnote explaining feature availability was "neither sufficiently clear and conspicuous nor close to the triggering claims." Further reading: Apple Delays 'More Personalized Siri' Apple Intelligence Features; 'Something Is Rotten in the State of Cupertino'; Apple Shakes Up AI Executive Ranks in Bid to Turn Around Siri.

Read more of this story at Slashdot.

msmash