โŒ

Normal view

There are new articles available, click to refresh the page.
Before yesterdayMain stream

Hide Your Wallet: May 7th Release Week!

Weโ€™re officially in May!

This month is so busy when it comes to new releases. Sometimes I find it hard to keep up or even decide what to read. Itโ€™s a real paralysis of choice so then I wind up reading nothing at all. Anyone else in that boat?

What are you excited for this week? Let us know in the comments!

Five Broken Blades

Five Broken Blades by Mai Corland

Author: Mai Corland
Released: May 7, 2024 by Entangled: Red Tower Books
Genre: , ,
Series: The Broken Blades #1

Itโ€™s the season
for treasonโ€ฆ

The king of Yusan must die.

The five most dangerous liars in the land have been mysteriously summoned to work together for a single to kill the God King Joon.

He has it coming. Under his merciless immortal hand, the nobles flourish, while the poor and innocent are imprisoned, ruinedโ€ฆor sold.

And now each of the five blades will come for him. Each has tasted bitternessโ€”from the hired hitman seeking atonement, a lovely assassin who seeks freedom, or even the prince banished for his cruel crimes. None can resist the sweet, icy lure of vengeance.

They can agree on murder.

They can agree on treachery.

But for these five killersโ€”each versed in deception, lies, and betrayalโ€”itโ€™s not enough to forge an alliance. To survive, theyโ€™ll have to find a way to trust each otherโ€ฆbut only one can take the crown.

Let the best liar win.

Amanda: Seems like a good about of fantasy and mystery and perhaps some romance.

Add to Goodreads To-Read List โ†’

The Five Year Lie

The Five Year Lie by Sarina Bowen

Author: Sarina Bowen
Released: May 7, 2024 by Harper Paperbacks
Genre:

She thought it was love. Then he vanished.

On an ordinary Monday morning, Ariel Caffertyโ€™s phone buzzes with a disturbing text message. Somethingโ€™s happened. I need to see you. Meet me under the candelabra tree ASAP. The words would be jarring from anyone, but the sender is the only man she ever loved. And itโ€™s been several years since she learned he died.

Seeing Drewโ€™s name pop up is heart-stopping. Arielโ€™s gut says it canโ€™t be real. But she goes to the tree anyway. She has to.

Nobody shows. But the text upends everything she thought she knew about the day he left her. The more questions she asks, the more sinister the answers get. Only two things are clear: everything she was told five years ago is wrong, and someone is still lying to her.

The truth has to be out there somewhere. To safeguard herselfโ€”and her sonโ€”sheโ€™ll have to find it before it finds her. And with it, the answer to what became of Drew.

With a heart-stopping romance that only Sarina Bowen can execute,ย The Five Year Lieย is a page-turning, spine-tingling thriller that will have you guessing until the very end.

Sarina Bowen is coming out with a mystery!

Add to Goodreads To-Read List โ†’

Love, Lies, and Cherry Pie

Love, Lies, and Cherry Pie by Jackie Lau

Author: Jackie Lau
Released: May 7, 2024
Genre: ,

A charming and clever rom-com about a young womanโ€™s desperate attempts to fend off her meddling motherโ€ฆonly to find that maybe mother does know best.

Mark Chan this. Mark Chan that.

Writer and barista Emily Hung is tired of hearing about the great Mark Chan, the son of her parentsโ€™ friends. Youโ€™d think he single-handedly stopped climate change and ended child poverty from the way her mother raves about him. But in reality, heโ€™s just a boring, sweater-vest-wearing engineer, and when theyโ€™re forced together at Emilyโ€™s sisterโ€™s wedding, itโ€™s obvious he thinks heโ€™s too good for her.

But now that Emily is her familyโ€™s last single daughter, her mother is fixated on getting her married and she has her sights on Mark. Thereโ€™s only one solution, clearly: convince Mark to be in a fake relationship with her long enough to put an end to her momโ€™s meddling. He reluctantly agrees.

Unfortunately, lying isnโ€™t enough. Family friends keep popping up at their supposed datesโ€”including a bubble tea shop and cake-decorating classโ€”so theyโ€™ll have to spend more time together to make their relationship look real. With each fake date, though, Emily realizes that Markโ€™s not quite what she assumed and maybe that argyle sweater isnโ€™t so ugly after allโ€ฆ allโ€ฆ

Sarah: New! Jackie! Lau! New! Jackie! Lau!

Add to Goodreads To-Read List โ†’

The Ministry of Time

The Ministry of Time by Kaliane Bradley

Author: Kaliane Bradley
Released: May 7, 2024 by Avid Reader Press / Simon & Schuster
Genre: , ,

A time travel romance, a speculative spy thriller, a workplace comedy, and an ingeniously constructed exploration of the nature of truth and power and the potential for love to change it Welcome to The Ministry of Time, the exhilarating debut novel by Kaliane Bradley.

In the near future, a civil servant is offered the salary of her dreams and is, shortly afterward, told what project sheโ€™ll be working on. A recently established government ministry is gathering โ€œexpatsโ€ from across history to establish whether time travel is feasibleโ€”for the body, but also for the fabric of space-time.

She is tasked with working as a โ€œbridgeโ€: living with, assisting, and monitoring the expat known as โ€œ1847โ€ or Commander Graham Gore. As far as history is concerned, Commander Gore died on Sir John Franklinโ€™s doomed 1845 expedition to the Arctic, so heโ€™s a little disoriented to be living with an unmarried woman who regularly shows her calves, surrounded by outlandish concepts such as โ€œwashing machine,โ€ โ€œSpotify,โ€ and โ€œthe collapse of the British Empire.โ€ But he adjusts quickly; he is, after all, an explorer by trade. Soon, what the bridge initially thought would be, at best, a seriously uncomfortable housemate dynamic, evolves into something much more. Over the course of an unprecedented year, Gore and the bridge fall haphazardly, fervently in love, with consequences they never could have imagined.

Supported by a chaotic and charming cast of charactersโ€”including a 17th-century cinephile who canโ€™t get enough of Tinder, a painfully shy World War I captain, and a former spy with an ever-changing series of cosmetic surgery alterations and a belligerent attitude to HRโ€”the bridge will be forced to confront the past that shaped her choices, and the choices that will shape the future.

An exquisitely original and feverishly fun fusion of genres and ideas, The Ministry of Time asks the universal What happens if you put a disaffected millennial and a Victorian polar explorer in a house together?

Amanda: This gives me vibes of a lot of books Iโ€™ve previously enjoyed like stuff from Jasper Fforde and This Is How You Lose the Time War.

Elyse: This book looks like so much fun and reminds me vaguely of the series Loki.

Add to Goodreads To-Read List โ†’

Mistakes We Never Made

Mistakes We Never Made by Hannah Brown

Author: Hannah Brown
Released: May 7, 2024 by Forever
Genre: ,

Bacheloretteย fan-favorite andย New York Timesย bestselling author Hannah Brown delivers the perfect beach read with her fiction debutโ€”โ€œa fun, fast, epic rom-comโ€ (Abby Jimenez, #1ย New York Timesย bestselling author).ย 

Emma Townsend can sum up her situationship with hot-as-hell romantic red flag Finn Hughes in one word:ย almost. Theyย almostย dated in high school. Theyย almostย hooked up after college. Theyย almostย took things too far one magical night. Their whole story is one series of โ€œalmostsโ€ and โ€œnearlys,โ€ and now they just kind of canโ€™t stand each other. Like, at all.

But this weekend, one of their mutuals is getting married . . . and Emma and Finn will have to pretend they donโ€™t remember how disastrous it was the last time they were in a room together.

Emmaโ€™s doing a stellar job of playing it coolโ€”until the bride goes missing. Now, with two days before the wedding, Emma and Finn are hitting the road in a sweet vintage sports car in hopes of salvaging someone elseโ€™s happily-ever-after.

Yet somewhere between Emmaโ€™s breakfast burrito throw down, a high-stakes kayak chase (it can happen), and an outrageous Vegas detour, these sworn enemies are crossing more than just state lines. As old feelings spark once more, Emma begins to question whether risking your heart is ever really a mistake.

Elyse: This book was co-authored by The Bachelor and Bacheloretteโ€˜s Hannah Brown so Iโ€™m intrigued.

Add to Goodreads To-Read List โ†’

One Last Shot

One Last Shot by Betty Cayouette

Author: Betty Cayouette
Released: May 7, 2024 by St. Martin's Griffin
Genre: ,

From the creator of viral TikTok account Bettyโ€™s Book List, a debut romance about a supermodel and a photographer with a past marriage pact who meet again ten years later on a photoshoot in Cinque Terre, Italy.

From the moment Emerson and Theo met as teenagers, they were inseparable. But just when theyย finallyย expressed their feelings to one another, they were torn apart.

Now, supermodel Emerson is nearing her twenty-eighth birthday, and sheโ€™s tired of looking for love in all the wrong places. When the calendar reminder for the marriage pact she and Theo made as teens goes off on her phone, she realizes this is itโ€”her chance to rekindle the only romance that ever really made sense. Emerson convinces her grumpy agent to book her as the face of the fashion campaign that Theo, now a fashion photographer, is shooting. The good news: the campaign is being shot inย ridiculouslyย romantic Cinque Terre, Italy. The bad news? Theo might not be as happy to see her as sheโ€™d hoped.

The two embark on a four-day campaign that tests not only their feelings, but their ability to keep their hands off one another. But as roadblock after roadblock keeps them apart, Emerson starts to wonder: will this photoshoot be the key to getting one last shot at love, or will it be a final goodbye?

Debut contemporary romance by a BookTok-er!ย 

Add to Goodreads To-Read List โ†’

The Takedown

The Takedown by Lily Chu

Author: Lily Chu
Released: May 7, 2024 by Sourcebooks Casablanca
Genre: ,

Love and Vanity meets Succession in a clever, funny, and romantic uplit about wealth, power, family, and love from rising star Lily Chu.

For Dee Kwan, every day is the perfect day. No, really. She has a house she loves, a job she adores, and a ridiculously attractive โ€œnemesisโ€ who never seems to mind when she wins their favorite online game. How can life possibly get better? (It canโ€™t, obviously. It can only get much, much worse.)

Soon Dee is forced to share her adorably cozy home with her parents and prickly estranged grandmother. Then sheโ€™s tossed into the deep end, tasked with cleaning up a scandal for intimidatingly chic luxury fashion firm Celeste. If that werenโ€™t enough, she discovers her hot-nemesis works there, tooโ€ฆand Teddy is nothing like the man she thought she knew.

Before she can cry foul, Teddy comes clean about his double heโ€™s the heir to the CEO and he needs her help to make Celeste a better placeโ€”for everyone. But that means taking down the old guardโ€”including his fatherโ€”intent on standing in their way. Now in the center of a dizzying corporate coup, Dee is forced to decide whether sheโ€™s ready to stop watching the world through rose-colored glasses and instead face the about herself, about her feelings for Teddy, and about what sheโ€™s willing to do to truly make a difference.

Elyse: I will read anything Chu writes!

Add to Goodreads To-Read List โ†’

Ctrl+Alt+Del: Slow down Apple, it's too early for an M4 chip

OPINION: This coming Tuesday, Apple is holding yet another showcase event where itโ€™s expected to unveil a new range of iPads. And if rumours are to be believed, the next iPad Pro will be powered by the Apple M4 chip.ย 

Apple analyst, Mark Gurman, reports (via Bloomberg) that Apple could launch an M4-powered iPad Pro at the Let Loose event. Whatโ€™s more, he suggests that Apple will also upgrade the iMac, MacBook Pro and Mac Mini with the M4 chip later in the year.

This has all come as a big surprise, with Apple only introducing the M3 chip back in October 2023. If Gurmanโ€™s report is accurate that would mean there will only be a 7-month gap between the M3 and M4 generations. Some may applaud Apple for the speed itโ€™s producing new chips, but I think this is more of a negative than a positive.

More of a negative than a positive

Most chip makers, such as AMD and Intel typically leave at least a 12-month gap between processor generations. This is frequent enough to ensure the brands are continuously pushing the envelope but also leaves customers enough time to purchase a new device without worrying that it will become outdated within a matter of months.ย 

Apple M1November, 2020
Apple M2June, 2022
Apple M3October, 2023
Apple M4May, 2024?

This is the same tactic that Apple uses for its iPhone launches, with new phones hitting stores every September like clockwork. When spending big bucks on the iPhone 15 Pro Max, Apple fans want to feel assured that this will be the ultimate flagship iPhone for at least the next 12 months. If there was any threat of a successor launching a few months later instead, then the appeal of buying the new phone would diminish.ย 

Unfortunately, Apple hasnโ€™t been quite as structured with its Mac releases. In March this year, Apple launched a new MacBook Air powered by the cutting-edge M3 chip. It wasnโ€™t a huge upgrade overall, but the new processor at least provided a welcome performance boost. However, just two months later, reports now indicate that the iPad Pro could benefit from an M4 upgrade. This would put the tablet in a strange position of being a more powerful option than Appleโ€™s entry-level laptop.

If I had bought a MacBook Air in the last couple of months, Iโ€™d be pretty annoyed by the potentially imminent release of the M4 chip. Suddenly, the new laptop feels outdated, and Iโ€™d be wondering why Apple didnโ€™t instead wait a couple of months to upgrade it with the more advanced chip.ย 

MacBook Air M3 angled on table
MacBook Air โ€“ Image Credit (Trusted Reviews)

Gurman suggests that Apple has decided to accelerate its computer processor upgrades in order to show off the M4 chipโ€™s new AI capabilities. This makes a lot of sense, with Intel recently making huge strides in AI innovation, and Qualcomm making big AI performance claims about its upcoming Snapdragon X Elite chips. The likes of Microsoft, Nvidia and Adobe have also spent the last couple of years doubling down on AI advancements, while Apple has been surprisingly quiet on the AI front in comparison and has arguably been left behind by its rivals.

The Apple M4 chip will seemingly rectify that, with the iPad Pro acting as Appleโ€™s very first AI-powered device. Iโ€™m excited to see what kind of AI features Apple will introduce, with the company in a perfect position to innovate due to its seamless integration of both software and hardware.ย 

However, Apple has long known about the rapid advancements and popularity of AI, so that doesnโ€™t excuse its poor planning. The M3 has felt like a rather pointless generation to me, especially since itโ€™s failed to materialise in several devices (including the Mac Mini and iPad Pro).

iPad Pro M2 no keyboard or pencil
M2-powered iPad Pro โ€“ Image Credit (Trusted Reviews)

Sure, itโ€™s helped to boost sales of Appleโ€™s Macs, but itโ€™s probably left many new Mac owners feeling buyerโ€™s remorse with the M4 seemingly arriving just a matter of months after. Maybe itโ€™s the case of the M3 chip arriving too late as opposed to the M4 arriving too early, but itโ€™s still an issue that needs addressing.

The move over to Apple Silicon has undoubtedly been a huge success for Apple, but if it wants to continue competing with the likes of AMD and Intel, it really needs to stick more faithfully to a structured roadmap. This way, customers can feel confident that their new Mac purchase will offer cutting-edge performance for at least the next 12 months, rather than feeling outdated in a matter of weeks.


Ctrl+Alt+Del is our weekly computing-focused opinion column where we delve deeper into the world of PCs, laptops, handhelds, peripherals and more. Get it straight into your email inbox every Saturday byย signing up for the newsletter.

The post Ctrl+Alt+Del: Slow down Apple, it's too early for an M4 chip appeared first on Trusted Reviews.

HotChocolate AND filtering in DateTime Enumerable

In my c# HotChocolate graphql app (HotChocolate.AspNetCore version 13.5.1) I have the following class containing an Enumerable with DateTimes.

public class MyData {

    ...
    public IEnumerable<DateTime> MyDates { get; set; } = new List<DateTime>();
}

I want to get all entries where the myDates contains an entry that is between 2 specific dates. For that I am trying the following query in my Playground.

query {
    getMyData
        (first: 10, 
         where: { myDates: { some: {gt: "2016-02-23", lt: "2016-02-25"}}}) 
    { ... }
}

Examples:

MyDates: [ "2016-02-22", "2016-02-24", "2016-02-26"] should be found.

MyDates: [ "2016-02-22", "2016-02-26"] should not be found.

The problem is that both entries are found, because somehow the "gt" and "lt" are being executed as OR and not as AND.

My query is configured like this:

[ExtendObjectType("Query")]
public class MyDataQuery
{
    [UsePaging(IncludeTotalCount = true)]
    [UseFiltering]
    [UseSorting]
    public IQueryable<MyData> GetMyData([Service] ISomeService service)
    {
        if (service == null) throw new ArgumentNullException(nameof(service));
        return service.GetMyData());
    }
}

In my Program.cs:

builder.Services.AddGraphQLServer()
    .AddQueryType(d => d.Name("Query"))
    .AddTypeExtension<MyDataQuery>()
    .AddProjections()
    .AddFiltering()
    .AddSorting()
    .ModifyRequestOptions(opt => opt.IncludeExceptionDetails = 
true);

Component only has access to array's old state

I'm working with React and I have a table that users can add and delete rows from. The table is made with an array of components. Each component/row has a trash can icon that when clicked executes the delete row function. It would seem that each component only has access to the old state of the array/table, and so deleting doesn't work correctly. Any ideas how I could fix this issue?

An example of a component in the useState array that makes up this table:

<Row
  className={className}
  columns={columns}
  text={text}
  key={key}
  keyProp={key}
  deleteFunction={() => removeRow(key)}
/>

The delete function that is a prop for every row/component in the array:

function removeRow(key) {
  setMeals(meals.filter(i => i.props.keyProp !== key));
  // This should only remove the one row which had its trash can icon clicked.
  // If there's 10 rows and you click the trash can for row 4, rows 4-10
  // will be deleted.
  // If you click the trash can for row 7, rows 7-10 will be deleted and so on.
}

react-router-dom is not working for nested page and sub-pages for react application in sub-directory

I am working on react application using vite and I am using latest version of react-router-dom v 6.23.0. My react application is build on the subdirectory (./new-mobile/dist) of main directory.

Here is my main.tsx file

import ReactDOM from 'react-dom/client'
import App from './App'
import './index.css'
import store from '../redux/store.js'
import { Provider } from 'react-redux'
import {RouterProvider, createBrowserRouter} from 'react-router-dom';
import App3 from './App3'
import TestFile from './TestFile'

const basename = '/new-mobile/dist';

const router = createBrowserRouter([
  {
    path: '/',
    element: <App />,
    children: [
      {
        path: 'testfile',
        element: <TestFile />
      }
    ]
  },
  {
    path: 'app3',
    element: <App3 />
  }
],
{
  basename: basename
});

ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
  <Provider store={store}>
    <RouterProvider router={router} />
  </Provider>
);

And here is the vite.config.ts file

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import Checker from 'vite-plugin-checker';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    react(),
    Checker({ typescript: true }),
  ],
  base: './new-mobile/dist'
})

The main problem is when i am going on home page https://my-domain/new-mobile/dist it it working correctly, but when I go to its nested page (https://my-domain/new-mobile/dist/testfile) or child/sub-page like (https://my-domain/new-mobile/dist/app3) it breaks outs.

Also, this router is working fine on my local setup but breaks on test environment.

Things I tried: I tried adding basename but is is also not working. I tried jsx version of router, but still not working.

when I try to access /app3, this comes. broser image

SQLite database locking even with threading.Lock

I use sqlite3 database on my flask website, and on each database access I use a threading.Lock in order to avoid memory races:

# one sync, one connection, one cursor for the entirety of the website
sync = threading.Lock()
connection = sqlite3.connect('db', check_same_thread = false)
cursor = connection.cursor()
#...
with sync:
    cursor.execute(...) # just .execute(), i do not use .commit()

It works fine, when I use it on a localhost as a bare flask server. Even when I spam it with lots of requests, where each request has to access a database (and not once), it doesn't break. However, when I submit this code to a website hosting service, which uses Phusion Passenger, it generally works fine, but when I do too much requests, it results in sqlite3.OperationalError: database is locked over and over again.

What do I do wrong? I used a mutex, why does the database get locked? Does it have something to do with the fact I use just one cursor?

The URL Changes but page doesn't

I made this project with tauri-svelte.

// src/+page.svelte

<script lang="ts">
</script>

<main id="container">
<a href="/routes">
    <button>2nd Page</button>
  </a>
</main>
// src/routes/+page.svelte

<div>
  <h1>Second Page</h1>
  <a href="/">
    <button>Home</button>
  </a>
</div>

Project Folder Image

When I Click on the 2nd Page button It just changes the URL in the URL bar, but nothing changes. Tell me if I'm doing something wrong.

โŒ
โŒ