Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by John Kugelman
New York Times crossword puzzle
Crossover Films By John Kugelman John Kugelman, of Gainesville, Va., is a software engineer specializing in cybersecurity. This is his 24th crossword for The Times and his first to include visual clues. John’s father, who test-solves all of John’s puzzles, remarked on this one, ‘‘Boy, that’s going to get some comments.’’ In a good way, we hope.
New York Times crossword puzzle
INITIAL THOUGHTS By Lance Enfinger and John Kugelman Puzzles Edited by Will Shortz Lance Enfinger is a community pharmacist at a Publix pharmacy in Charlotte, N.C. John Kugelman, of Gainesville, Va., is a software engineer specializing in cybersecurity. A year ago, Lance texted John: ‘‘Observation in search of a theme — [22-Across].’’ John liked it. Over the next 10 days, they brainstormed hundreds more examples of wordplay like this before choosing their favorites for this puzzle.
New York times crossword puzzle
COMICAL MUTATION By Lance Enfinger and John Kugelman Puzzles Edited by Will Shortz Lance Enfinger is a pharmacist from Mint Hill, N.C., near Charlotte. John Kugelman, of Gainesville, Va., is a software engineer specializing in cybersecurity.
New York Times crossword puzzle
CHANGE LOCATIONS By Zachary Edward-Brown and John Kugelman Puzzles Edited by Will Shortz Zachary Edward-Brown is a 16-year-old high school junior in Highland Park, Ill. John Kugelman, of Gainesville, Va., is a software engineer and veteran crossword maker. Zachary reached out to John for help in developing this puzzle’s theme. They did everything jointly — brainstorming examples, constructing the grid and writing clues. ‘‘Zachary is a natural-born constructor,’’ John says.
New York Times crossword puzzle
ALL TOO WISE By John Kugelman Puzzles Edited by Will Shortz John Kugelman, of Gainesville, Va., is a software engineer specializing in cybersecurity. This is his 14th crossword for The Times since 2023. One of the things I like about John’s puzzles is the time and effort he puts into his clues. They’re lively, varied, carefully worded, sometimes playful and always on target. Some of my favorites here are 43A, 51A (interesting fact), 112A and 39D.
New York Times crossword
ARRANGED MARRIAGES By John Kugelman Puzzles Edited by Will Shortz John Kugelman, of Gainesville, Va., is a software engineer specializing in cybersecurity. This is his 13th crossword for The Times. It has five carefully chosen, elegantly clued theme answers running across the grid. Each one made me say ‘‘wow.’’ Also, note the lively answers at 9- and 67-Down, each crossing three theme lines. That’s a sign of expert puzzle-making.
Crossword Feb. 27
Across 1 Shopper’s thrill 6 Clock part 9 Brand 14 ____ Lakshmi, host of TV’s ‘‘Taste the Nation’’ 19 Some computer-generated images nowadays 20 The masses 22 ‘‘Full steam ____ !’’ 23 ‘‘Omigod, omigod, jackpot!’’? 25 Some college students, quaintly 26 Space heater? 27 ____ fly 28 Smart-alecky 29 FaceTime alternative 30 ‘‘Eww!’’ 32 Instruments with large bells 35 Great Lakes mnemonic 38 Org.
Crossword Dec. 19
Across 1 Candy that resembles a tube of lipstick 8 Italian title for Puccini’s ‘‘Butterfly’’ 14 Over the line 20 ‘‘Nothing weird about that’’ 21 Figure of speech? 22 Tarot card group 23 ‘‘What a beautiful tackle box!’’ ‘‘Nice casting!’’ and such? 26 Youngest-ever World Cup winner 27 Desire 28 Hold ’em declaration 29 ‘‘I’ll handle that’’ 30 Actor Steve of ‘‘The White Lotus’’ 32 Month, in Monterrey 33 Snail-paced 34 Group formed from the 2023 W.W.E.-U.F.C. merger 35 Lasso?
Crossword Oct. 17
Note: Author John Kugelman dedicates this puzzle to his sister, Julie Buffington, a.k.a. ‘‘Mrs. B.,’’ a second-grade teacher at nearby Haymarket Elementary School. For authenticity, she provided all of the red-pen marks in this puzzle’s original submission. Across 1 Remained under cover? 8 John Singer Sargent portrait that scandalized Paris in 1884 15 Just peachy 18 ‘‘Time to start the day!’’ 20 What Beyoncé Knowles goes by 21 Tournament pass 22 Mrs.
Crossword Sept. 5
Across 1 Loses one’s shirt, say 10 Primarily studies 18 City with a cowboy-hat-wearing replica of the Eiffel Tower 20 Videography option on a smartphone 21 ‘‘Tsk, tsk’’? 23 Buddy-buddy?
New york Times crossword puzzle
ROUGHLY SPEAKING By John Kugelman Puzzles Edited by Joel Fagliano John Kugelman is a software engineer and musician from Gainesville, Va. Despite only starting to make puzzles in 2023, he is The New York Times’s most-published Sunday crossword constructor this year (with three).
Crossword June 6
Across 1 Prefix with valent 5 Sound of rejection on a 1970s variety show 9 “How disappointing!” 13 Academic résumés, for short 16 “Embiggens” the English language 19 Composer Stravinsky 20 Feature of a snake’s eye 21 “That rotted old log ain’t even fit for termite food!” 23 Word on Charlotte’s web 24 Guillermo del ____ 25 Does perfectly 26 Helvetica alternative 28 Country that surrounds Gambia 30 Something to pump or bump 31 “Huh, I wasn’t aware I was at an ugly sweater party” 33 Gospel...
New York Times crossword puzzle
FEELING POSSESSIVE By John Kugelman Edited by Joel Fagliano John Kugelman, of Gainesville, Va., is a software engineer and musician. This is his third crossword for The Times — all Sundays. Crossword construction and music ‘‘tickle all the same brain cells,’’ he says, as each is ‘‘half-creative and half-technical.’’ He adds: ‘‘Sundays are like the progressive rock of crosswords.
Crossword April 4
Across 1 “No ____ , Bob” 5 Commuting options 10 Thunderstruck 15 Lead-in to cure or cab 19 Peace symbol 20 Absolutely necessary 21 Snack brand with a hyphen in its name 22 Simoleons 23 Oil futures? 26 The Australia-shaped “Pride of Australia,” for one 27 Pool side 28 Crest 29 Sack 31 Parent’s exhortation 32 Real bind 33 People who might answer “What’s up?” with “The sky” 35 Castle moat? 39 ____ Scott-Heron, writer of “The Revolution Will Not Be Televised” 40 Entitled guys?
New York Times crossword puzzle
ER, IN OTHER WORDS ...? By John Kugelman Puzzles Edited by Will Shortz John Kugelman is a software engineer and musician from Gainesville, Va. He has worked in cybersecurity for many years. ‘‘I like anything that’s complicated and puzzle-y,’’ John says. ‘‘Any engineering problem is fascinating to me.’’ (And what is crossword construction, after all, but the engineering of words?) This is John’s second crossword for The Times, both Sundays.
Crossword Jan. 25
Across 1 Hurricanes and tornadoes 9 One of 12, biblically 17 “Way to go, me!” 19 Grape from France’s Côte-d’Or 20 Great ape? 22 Erotic artist? 23 5-Down’s pet 24 Ooze 26 Authors 27 Yesterday, in Spanish 30 ____ Jam (record label) 31 “Let me be perfectly ____” (Pride slogan) 34 Guinness of “The Ladykillers” 37 Street magician?
New York Times corssword puzzle
DOING FRONT FLIPS By John Kugelman Puzzles Edited by Will Shortz John Kugelman is a software engineer and musician from Gainesville, Va. His father, who turns 80 this year, is a sounding board for John’s puzzle ideas, and John finds that brainstorming with him is a great way to stay connected. ‘‘Every time I see him, we throw around all kinds of wordplay, just spitballing and letting our minds roam.’’ This is John’s first crossword for The Times. It grew out of 38-Across. — W.?S. ACROSS 1 Org.
Minesweeper probability
Let's assume the board consists of $n$ fields of which $k$ are mines and the field is created by randomly choosing $k$ numbers from $1$ to $n$ without repetitions. This is a reasonable assumption, since the Fisher-Yates-Shuffles would yield an effective and easy way to create a random field and every field would be possible and equally likely. We introduce the random variables A, B, C, D that are $1$ if the corresponding field has a mine and $0$ else.
Does __attribute__ apply to all the variables in a declaration?
From GCC: Attribute-Syntax: An attribute specifier list may appear immediately before a declarator (other than the first) in a comma-separated list of declarators in a declaration of more than one identifier using a single list of specifiers and qualifiers. Such attribute specifiers apply only to the identifier before whose declarator they appear.
Why does rand() + rand() produce negative numbers?
The problem is the addition. rand() returns an int value of 0..RAND_MAX. So, you if you add, you will get up to RAND_MAX * 2. If that exceeds INT_MAX, the result of the addition overflows the valid range an int can hold. Overflow of signed values is undefined behaviour and may lead to your keyboard talking to you in foreign tongues. As there is no gain in adding two random results, the simple idea is to just not do it.
Overflow occurs with multiplication
The left of the assignment is evaluated first. At left there is no type data. All are . So the JVM try to fit the result in an then the overflow occurred. And in the second case - Here one operand of the multiplication is . So other are prompted to automatically. The result is trying to fit to a . Finally the assignment is done with and . And yes the associativity of multiplication from left to right - means the left operand is taken first.
Referencing non-final variable: why does this code compile?
First off, I apologise if this is a duplicate question. I found many similar ones, but none that directly address my question. In preparation for an upcoming exam, I am doing a past paper. It has a question that gives a code snippet. We have to state if it compiles, and if not, write the line at which the first compiler error occurs and explain it. This is the snippet: I was expecting it not to compile as is not .
How to join list in Python but make the last separator different?
This solution can handle a list of authors of length > 0, though it can be modified to handle 0-length lists as well. The idea is to first create a format string that we can format by unpacking list. This solution avoids slicing the list so it should be fairly efficient for large lists of authors. First we concatenate for every additional author beyond two authors. Then we concatenate if there are two or more authors.
finding highest product of three numbers
from itertools import combinations_with_replacement as cm import operator import functools prodlist = [] x = [3,4,2,6,7] for i in cm(x, 3): prod = functools.reduce(operator.mul, i, 1) print 'Product of',i,'is', prod prodlist.append(prod) print max(prodlist) Output: Product of (3, 3, 3) is 27 Product of (3, 3, 4) is 36 Product of (3, 3, 2) is 18 Product of (3, 3, 6) is 54 Product of (3, 3, 7) is 63 Product of (3, 4, 4) is 48 Product of (3, 4, 2) is 24 Product of (3, 4, 6) is 72 Product of (3,...
Enthought Canopy v1.41, and thinkpython.com/code/swampy causes crash
Trying to learn python. Chapter 4 of Think Python by Allen Downey requires you to download package from thinkpython.com/swampy. Had trouble implementing the directions on the website, so I copied Swampy to it's own directory. works in the interactive environment. But when I write a script and attempt to run it, python crashes and I need to re-start the kernel. Other posts on this topic suggest modifying the user path, setting Canopy as the default python environment.
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with John
Contact John, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack