SShortSingh.
0
ProgrammingDEV Community ·

Developer Shares Approach to Solving CS50P Problem Set 0's Making Faces

A developer has published a blog post on DEV Community detailing their approach to solving 'Making Faces', the third problem in CS50P's Problem Set 0. The post is part of an ongoing series called 'Cracking CS50P: A DevAdvocate's Python Guide', aimed at helping learners think through Python problems. The author focuses on guiding readers through problem-solving strategies rather than providing direct answers. A key takeaway from the post is a reminder that Python's string replace method works only on strings, not on numbers or floats. The author also references their previous article on the 'Playback Speed' problem and directs readers to a companion YouTube channel for further learning.

0
IndiaTimes of India ·

Rahul, Priyanka Slam Delhi Police Over Teen Girl's Gangrape and Murder

Congress leaders Rahul Gandhi and Priyanka Gandhi Vadra have spoken out strongly following the gangrape and murder of a teenage girl in Delhi. The siblings described the capital as a dangerous place for women and demanded accountability from authorities. Their criticism was directed at both the Delhi Police and Union Home Minister Amit Shah, whom they accused of negligence. They also condemned the broader pattern of sexual violence against minors in recent times.

0
IndiaTimes of India ·

Delhi exec Yuvraj Manchanda murdered by ex-colleagues, two arrested

Yuvraj Singh Manchanda, a Delhi-based executive, was allegedly murdered by his former colleagues Anya Vats and Sanyam Sachdeva, both of whom have been arrested. Investigators are probing a financial dispute estimated between Rs 5 lakh and Rs 25 lakh as a possible motive behind the killing. The case has drawn attention due to the complex and contradictory accounts surrounding how and when the body was disposed of. Authorities are working to piece together the sequence of events, which reportedly involved the body being kept, dumped, drowned, and later cremated.

0
ProgrammingDEV Community ·

CS50P Playback Speed Problem Teaches Python String Methods for Beginners

A developer advocate is documenting their journey through Harvard's CS50P Python course in an ongoing blog series. The second article covers the 'Playback Speed' problem from Problem Set 0, focusing on Python string manipulation methods. Key methods discussed include .lower(), .upper(), .title(), and .strip(), each serving a distinct role in formatting user input. The author also shares a personal mistake made while solving the problem, highlighting a common misunderstanding about the expected output format. The series aims to help beginners learn Python by walking through real CS50P problem-solving experiences step by step.

0
ProgrammingHacker News ·

Study Finds GPT Models Transform Rather Than Eliminate Gender Bias

A new research paper published on arXiv examines how large language models like GPT handle gender discrimination. The study introduces the concept of 'harm laundering,' suggesting these models repackage biased outputs in less obvious ways rather than removing the underlying bias. Researchers argue that safety measures in GPT models may give a false sense of neutrality while discriminatory patterns persist in transformed forms. The findings raise concerns about the effectiveness of current AI alignment and content moderation approaches in addressing systemic gender bias.

0
ProgrammingDEV Community ·

CS50P Beginner Shares Lesson Learned From 'Indoor Voice' Problem Set

A developer-advocate aspirant enrolled in Harvard's CS50P (Python) course recently documented their experience solving the first problem in Problem Set 0, titled 'Indoor Voice.' The task required converting any user input to lowercase using Python's built-in .lower() string method, regardless of how it was typed. The author admitted to initially misreading the instructions and submitting incorrect code before catching the error. In the writeup, they also introduced related Python string methods — .strip(), .upper(), and .title() — to help beginners understand basic input handling. The post is aimed at newcomers to Python who may encounter similar pitfalls in early CS50 exercises.

0
ProgrammingDEV Community ·

Why AI Projects Need a Behavior Contract Before Any Code Is Written

Software engineer Derek Wang argues that AI-driven projects require a foundational 'constitution' — a strategy charter that defines the system's identity, boundaries, and human-AI collaboration rules before any work begins. Unlike code conventions, which govern the artifact, this behavior contract shapes how the AI checks, verifies, and handles mistakes. Wang outlines ten model-agnostic rules for his own projects, covering principles such as reading before writing, making minimal edits, and replacing tools after repeated failures. He warns that without such a charter loaded upfront, an AI model is effectively improvising without guardrails, and no downstream prompting can compensate. The approach treats the constitution not as documentation but as a binding contract every participant — human or AI — must internalize at the start.

0
SpaceNASA ·

NASA APOD Highlights Zodiacal Light in September 2026 Featured Image

NASA's Astronomy Picture of the Day (APOD) featured an image related to zodiacal light on September 19, 2026. APOD is a long-running NASA program that showcases a different astronomical image or photograph each day. Each featured image is accompanied by an explanation written by a professional astronomer. The September 19 entry, titled 'A Zodiacal Night,' focused on night sky observation and included an annotation of the phenomenon. Zodiacal light is a faint glow caused by sunlight reflecting off interplanetary dust particles in the solar system.

0
ProgrammingDEV Community ·

Koi Editor Uses Handwritten Lexers for Faster Syntax Highlighting and Folding

Koi Editor takes a direct approach to syntax highlighting by using small, language-specific handwritten lexers instead of declarative grammar systems or syntax trees used by editors like Sublime Text and Zed. Each lexer is purpose-built code that decides how text should be styled and folded without a generic engine in between. This design also enables syntax-aware folding, allowing code blocks to remain foldable even when indentation alone cannot determine structure. In performance benchmarks, Koi was able to apply syntax highlighting to files with millions of lines, while Sublime Text and Zed reportedly became unusable at much smaller scales. The developer attributes this efficiency to the lexers doing minimal work per token, tracking only token type, carry-forward state, and fold level.

0
ProgrammingDEV Community ·

Developer Builds ASCII-Based Python Calculator That Runs in the Terminal

Developer Dilesh Zingare has shared a tutorial on building a visual Python calculator that runs entirely in the terminal using ASCII. The calculator accepts two numbers and an operator from the user, then performs one arithmetic operation at a time, including addition, subtraction, multiplication, division, and exponentiation. The logic is handled using Python's if-elif-else conditional statements to differentiate between operations. Zingare acknowledges the tool is basic in its current form but plans to expand its functionality in future updates. The project's source code is publicly available on GitHub for anyone looking to follow along or contribute.

0
IndiaTimes of India ·

Housing Ministry calls for stronger developer-municipality ties on urban infrastructure

A senior Housing Ministry official has urged real estate developers to work in close partnership with city municipalities when planning and executing projects. The collaboration is expected to address critical infrastructure needs, including water supply, sewage systems, and broader resource consumption. The official highlighted the need for a fresh public-private framework to guide sustainable urban development. Beyond construction, the real estate sector is now seen as responsible for fostering livable, environmentally conscious communities. Industry stakeholders have also pushed for faster, more integrated project approval processes.

0
ProgrammingDEV Community ·

Developer Completes Restaurant Website Built Purely with HTML in Four-Part Series

Developer Dilesh Zingare has published the fourth and final part of his beginner frontend project series on DEV Community. The series documents the step-by-step creation of a restaurant website called 'The Bite of Soul' using only HTML. Each article in the series was accompanied by a lecture video to help readers follow along. The project source code has been made publicly available on Zingare's GitHub profile. Zingare encouraged readers to build their own versions and share the results in the comments.

0
IndiaTimes of India ·

Quimcy Dsouza one win away from making Teqball history at Asian Games 2026

Indian Teqball player Quimcy Joaquim Dsouza is set to compete for the bronze medal at the Asian Games 2026. She reached this stage despite suffering a semifinal loss to Indonesia's Ima Sumaya. A win in the bronze medal match would make her the first Indian to win a Teqball medal at the Asian Games. Dsouza had impressed during the group stages before her semifinal exit. Her campaign has been seen as a landmark moment for the growth of Teqball in India.

0
IndiaTimes of India ·

Iranian Women Run Tehran Race Without Hijab, Defying Mandatory Dress Law

A group of Iranian women participated in a Tehran running event without wearing hijabs, openly defying the country's compulsory headscarf law. The act reflects a broader shift in public behaviour that has been building since the 2022 Woman, Life, Freedom protests. Those demonstrations erupted following the death of Mahsa 'Jina' Amini, who died while in morality police custody. Since then, increasing numbers of Iranian women have been appearing in public spaces without headscarves. Despite this growing defiance, the mandatory hijab law remains formally in force in Iran.

0
IndiaTimes of India ·

Neeraj Chopra expresses regret over missing Asian Games due to ankle injury

Olympic javelin champion Neeraj Chopra has spoken openly about the pain of missing the Asian Games in Nagoya due to an ankle injury. The setback has prevented him from defending his javelin throw title at the tournament. Chopra acknowledged the emotional toll of being sidelined from a major competition. He credited his support system as crucial to his recovery, expressing gratitude toward friends who help him cope with the pressures of his athletic career.

0
ProgrammingDEV Community ·

CSS Positioning Demystified: A Beginner's Guide to All 5 Values

CSS positioning is a commonly misunderstood concept, but it revolves around just five core values. The default value, static, places elements in the normal document flow, while relative allows movement from the element's original position. Absolute positioning anchors an element relative to its nearest positioned parent, making it useful for badges and icons. Fixed elements remain locked in place on the screen regardless of scrolling, ideal for persistent navigation bars. Sticky combines relative and fixed behavior, keeping an element in flow until a scroll threshold is reached, which suits table headers and section titles.

0
ProgrammingDEV Community ·

AI Coding Agents Can Execute Malicious Code Just by Opening a Repository

Security researchers have identified a class of attacks where malicious repositories can compromise AI coding agents without developers ever manually running any code. When an agent opens a project to understand its context, it may read configuration files, Git history, and agent-specific instruction files that attackers can weaponize. A documented attack method called GitSpawn exploits Git's core.fsmonitor setting, causing attacker-controlled code to execute when agents perform routine operations like 'git status' or 'git diff'. Researchers found several popular coding agents affected, including Claude Code, OpenAI Codex, Cursor, and Goose, among others. Beyond code execution, repositories can also embed prompt injection instructions designed to manipulate an agent's behavior, such as exfiltrating environment variables, expanding the attack surface well beyond traditional code-based threats.

0
ProgrammingDEV Community ·

Developer Shares Beginner CSS Basics While Building Restaurant Website Project

Developer Dilesh Zingare published the third installment of his beginner frontend project series on DEV Community, documenting his progress building a restaurant website called 'The Bite of Soul.' In this part, he introduces CSS styling within HTML files using the style tag rather than a separate stylesheet. He explains core concepts such as CSS selectors, curly bracket syntax, and common styling attributes like background-image, padding, font-family, and text-align. Zingare also notes practical considerations around file paths when using external CSS files. The project's source code is available on his GitHub profile for reference.

0
SportsESPNcricinfo ·

Rachin Ravindra doubtful for India T20Is after shoulder dislocation

New Zealand batter Rachin Ravindra has been left in doubt for the upcoming T20I series against India after dislocating his right shoulder. The injury occurred during a promotional shoot, rather than in competitive action. Initial medical assessments have ruled out any major structural damage to the shoulder. However, his availability for the series will depend on how well he responds to rehabilitation. Cricket New Zealand is expected to monitor his recovery closely before making a final call on his participation.

← NewerPage 1390 of 5823Older →