on-internet

winsound.Beep() chooses not to play notes below a certain length

I'm making "music" "software" that iterates through two lists; one for the note frequencies and one for the note lengths (in milliseconds). For example, if I was trying to play "Hot Cross Buns", it would look like this: C, D, E, F, G, A, B = 262, 294, 330, 349, 392, 440, 494 r = 'r' def rest(n): time.sleep(n/1000) hotcrosN = [B, A, G, r, B, A, G, r, G, G, G, G, A, A, A, A, B, A, G, r] hotcrosL = [555, 555, 555, 555, 555, 555, 555, 555, 277, 277, 277, 277, 277, 277, 277, 277, 555, 555, 555, 555] Then I have code that iterates through the list and plays the sounds: def gamebuns(): for i in range

Join the discussion →

CrowdStrike to Buy Zscaler In $44 Billion Deal

CrowdStrike has agreed to acquire network security provider Zscaler in a $43.9 billion all-stock deal. "The deal marks CrowdStrike's biggest acquisition to date and is among the largest in the sector as businesses consolidate and ramp up defenses to fend off AI-powered attacks," reports CNBC. The acquisition is expected to close in the second half of CrowdStrike's fiscal 2028. From the report: "With Zscaler, we're building cybersecurity's operating system: a single control plane to deploy AI, control AI, and enable any agentic application to run safely," CrowdStrike CEO George Kurtz said in a

Join the discussion →

Projectile issues agregator [closed]

I have plots that look like this and it doesnt show. When should I use product implication (prod) instead of minimum (min), and how does it affect defuzition ' ' T= np.linspace(0,40,401) temperatura = { "zimno": fuzz.trapmf(T, [0, 0, 12, 19]), "komfortowo": fuzz.trimf(T, [17, 21.5, 26]), "goraco": fuzz.trapmf(T, [24, 30, 40, 40]), } def rysuj_termy(x, termy, punkt = 0 ): for nazwa, mf in termy.items(): plt.plot(x, mf) if punkt is not None: plt.axvline(punkt) for nazwa, mf in termy.items(): mu = fuzz.interp_membership(x, mf, punkt) print(mu) plt.show() rysuj_termy(T, temperatura, punkt =23 ) A

Join the discussion →

No exit stamp when leaving Spain: could this affect future travel?

I recently travelled to Spain and used the e-gates when leaving. The machine directed me to a border officer, who checked my passport and let me through without stamping it. I’ve since read reports of people being refused entry on subsequent holidays because they didn’t have an exit stamp from their previous trip. Should I be concerned, and is there anything I need to do before travelling again?

Join the discussion →

Traveling after passport not being stamped leaving

I recently travelled to Spain through e gates, when leaving the machine asked me to go to border which I did guy checked passport and sent me through but didn't stamp my passport. Now reading that people have been sent back when tried going on holiday again. What do I need to do ect. Many thanks

Join the discussion →

Put legend keys on top and bottom of colorbar

I have plots with gradient colourbar, that the numbers don't really mean anything, just the relative amount does, so I replaced the tick text with descriptions. However, ggplot2 puts legend text next to vertical colourbar, but is there a way to add text to top and bottom natively in ggplot, other than turning off text in the legend and adding with annotate() (and having to turn clipping off)? What I get vs. what I want I'm sure I'm missing something simple. Code that gives me typical colourbar behaviour: df <- tibble(A = letters[1:5], B = 1:5) ggplot(df, aes(x = A, y = B, fill = B)) + geom_col

Join the discussion →

Puts legend keys on top and bottom of colorbar

I have plots with gradient colourbar, that the numbers don't really mean anything, just the relative amount does, so I replaced the tick text with descriptions. However, ggplot2 puts legend text next to vertical colourbar, but is there a way to add text to top and bottom natively in ggplot, other than turning off text in the legend and adding with annotate() (and having to turn clipping off)? What I get vs. what I want I'm sure I'm missing something simple. Code that gives me typical colourbar behaviour: df <- tibble(A = letters[1:5], B = 1:5) ggplot(df, aes(x = A, y = B, fill = B)) + geom_col

Join the discussion →

ggplot2 puts legend text next to vertical colour bar, but is there a way to add text to top and bottom?

I have plots with gradient colourbar, that the numbers dont really mean anything, just the relative amount does, so I replaced the tick text with descriptions. however, ggplot2 puts legend text next to vertical colourbar, but is there a way to add text to top and bottom natively in ggplot, other than turning off text in the legend and adding with annotate() (and having to turn clipping off)? what i get >>>> vs what I want >>>> I'm sure I'm missing something simple. Code that gives me typical colourbar behaviour: df <- tibble(A = letters[1:5], B = 1:5) ggplot(df, aes(x = A, y = B, fill = B)) +

Join the discussion →

Trump Is Said to Have Directed Effort to Reinstate Nvidia Chief

President Trump reportedly directed a behind-the-scenes effort to reinstate Jensen Huang as Nvidia's CEO, enlisting Vice President JD Vance to secure assurances from federal officials that Huang was not facing criminal charges or considered a national security risk. According to The New York Times, the intervention came despite intelligence concerns surrounding Huang's alleged relationship with a suspected Chinese spy linked to an investigation into illegal Nvidia chip shipments to China. From the report: [...] Only a tiny handful of officials at the highest level of the government were aware

Join the discussion →

How do I handle processing silent notifications on iOS?

I have an iOS app designed to be used by multiple users concurrently, and when a user does an action, other users will receive notifications. Currently if a user has notifications turned off (in the app, not on the system level) the server won't send that user the notification. I've determined that a silent notification needs to be sent instead to keep all users' apps in up-to-date states. Here are my cases: 1. User has notifications enabled: notification needs to be processed and displayed 2. User has notifications disabled: a. App is in foreground: notification needs to be processed and not

Join the discussion →

Does anyone know any frontends that allow banning users without a post or comment?

submitted by bold_omi to asklemmy 1 points | 0 comments I moderate [email protected], a safe space for queer Christians. There are a lot of serial downvoters who don’t post or comment, but just downvote every post. I’d like to ban them, but my frontend only lets me ban if I have a comment or post to select. Are there any Lemmy frontends or apps that allow me to ban users by username, without a comment or post to select?

Join the discussion →

The 20 Most Important Books in U.S. History

submitted by gubernatus66 to books 1 points | 0 comments https://goodmenproject.com/featured-content/the-20-most-important-books-in-u-s-history-kpkn/ The books/texts that have impacted American history and culture the most were not always timeless classics; instead, they were often timely classics. They were the perfect texts for pivotal moments and helped create lasting positive change. Having served their purpose, many are currently overlooked by contemporary readers but have become woven into the fabric of our society.

Join the discussion →

YC Startup Working On 'Cost Per Kill' For Missiles

An anonymous reader quotes a report from Wired: At 16 years old, Henrijs Dandzbergs is too young to vote. Or drink. Or smoke. Or drive unsupervised. But he's not too young to win half a million dollars for his AI-guided-missile startup. In September, Dandzbergs, who was born in Latvia, was admitted to Y Combinator's fall 2026 cohort. The startup accelerator counts companies like Airbnb, Stripe, DoorDash, and Reddit among its alumni; Dandzbergs is likely the youngest solo founder in its vaunted history. His startup, Polemos Industries, is attempting to develop a new class of precision-guided mi

Join the discussion →
Older stories