maccath, to random
@maccath@phpc.social avatar

Great visualisation for the efficiency of cursor based pagination from @jessicamauerhan at . Did you know that limit-offset pagination has to scan the whole database to figure out what comes next?

That's a long time if you're on the last page of thousands of results. But it doesn't have to be that way - investigate adding cursors to your data sets. With appropriate indices, the time required is constant.

maccath, to php
@maccath@phpc.social avatar

The life of a maintainer (and generally any back-end engineer) - if your existence is acknowledged, something's probably gone wrong! I feel you, @jrf_nl

Thank you to all of the package maintainers out there 💕

maccath, to random
@maccath@phpc.social avatar

On my way to the airport for this week in Berlin. I'll be delivering two talks - 🔐 Auth 101 and 🧅 Shrek, Onions and Architecture.

Looking forward to seeing some familiar faces and indomitable @jrf_nl, @zzap, @michelle and @jessicamauerhan!

Will you be there? :)

flowcontrol,
@flowcontrol@phpc.social avatar

@maccath @jrf_nl @zzap @michelle @jessicamauerhan I'll be travelling to tomorrow, see you all there 👋

oatmeal, to Israel
@oatmeal@kolektiva.social avatar

/ Famine in Gaza is imminent, with immediate and long-term health consequences

The World Health Organization, along with numerous other humanitarian organizations, are depending on an report to raise awareness about the pressing issue of an impending famine in Gaza. There are claims by some that the famine is architected by Israel.

WHO https://www.who.int/news/item/18-03-2024-famine-in-gaza-is-imminent--with-immediate-and-long-term-health-consequences

U.N. chief calls for ‘unfettered’ aid to Gaza as aid groups report imminent famine https://www.washingtonpost.com/world/2024/03/18/gaza-famine-report-ipc/

The Integrated Food Security Phase Classification (IPC) is a multi-partner initiative that uses a classification and analytical approach to determine the severity and magnitude of acute and chronic food insecurity and malnutrition situations in a country. The goal is to provide decision-makers with evidence-based analysis to inform emergency responses and long-term policies. The IPC was developed in 2004 by FAO's Food Security and Nutrition Analysis Unit (FSNAU) and has since been implemented globally in over 30 countries. It is considered a best practice in the food security field and a model of collaboration.

See also:

UN Palestinian refugee agency chief says hunger in Gaza is 'man-made' https://kolektiva.social/@oatmeal/112116519821478863

@israel
@palestine

oatmeal, to Israel
@oatmeal@kolektiva.social avatar

/ Famine in Gaza is imminent, with immediate and long-term health consequences

The World Health Organization, along with numerous other humanitarian organizations, are depending on an report to raise awareness about the pressing issue of an impending famine in Gaza. There are claims by some that the famine is architected by Israel.

WHO https://www.who.int/news/item/18-03-2024-famine-in-gaza-is-imminent--with-immediate-and-long-term-health-consequences

U.N. chief calls for ‘unfettered’ aid to Gaza as aid groups report imminent famine https://www.washingtonpost.com/world/2024/03/18/gaza-famine-report-ipc/

The Integrated Food Security Phase Classification (IPC) is a multi-partner initiative that uses a classification and analytical approach to determine the severity and magnitude of acute and chronic food insecurity and malnutrition situations in a country. The goal is to provide decision-makers with evidence-based analysis to inform emergency responses and long-term policies. The IPC was developed in 2004 by FAO's Food Security and Nutrition Analysis Unit (FSNAU) and has since been implemented globally in over 30 countries. It is considered a best practice in the food security field and a model of collaboration.

See also

UN Palestinian refugee agency chief says hunger in Gaza is 'man-made' https://kolektiva.social/@oatmeal/112116519821478863

@israel
@palestine

indianewswatch, to history
@indianewswatch@kolektiva.social avatar

Bharatiya Nyaya Sanhita: Decolonising or Reinforcing Colonial Ideas?

This piece focuses on the BNS, meant to replace the IPC. It analyses how the bill falls short of its stated goal of decolonisation. Anushka Pandey, Preeti Pratishruti Dash, and Mrinal Satish argue that the BNS expands powers of the state and the police, retains offences grounded in archaic morality, and widens the punitive network through broad and vaguely defined offences.

https://www.nls.ac.in/blog/bharatiya-nyaya-sanhita-decolonising-or-reinforcing-colonial-ideas/

indianewswatch, to india
@indianewswatch@kolektiva.social avatar

I will refer to IPC only as IPC even after it gets replaced with new law named in Hindi, says Madras High Court judge Anand Venkatesh

The judge tells the lawyers present in his court hall that he does not know Hindi and therefore it would be difficult to pronounce the new names properly.

#TamilNadu #MadrasHC #AnandVenkatesh #IPC #hindi #NewCriminalBills #federalism #india

https://www.thehindu.com/news/national/tamil-nadu/i-will-refer-to-ipc-only-as-ipc-even-after-it-gets-replaced-with-new-law-named-in-hindi-says-madras-high-court-judge-anand-venkatesh/article67769740.ece

thejapantimes, to random
@thejapantimes@mastodon.social avatar

The 2024 Paralympic Games will continue to open minds to the talent and potential of people with disabilities, International Paralympic Committee President Andrew Parsons believes. https://www.japantimes.co.jp/paralympics/2024/01/08/summer-paralympics/parsons-paralympics-diversity/?utm_content=buffere8238&utm_medium=social&utm_source=mastodon&utm_campaign=bffmstdn

Markus, to retrocomputing
@Markus@bitbang.social avatar

Currently on my workbench - another fried Sun SPARCStation IPC PSU.
What have you been thinking when producing these "cardboard PCBs", Sony?!?

ChristosArgyrop, to programming
@ChristosArgyrop@mstdn.science avatar

Reminder that the #programming languages useful for #applications may not be the same as those used for #libraries that the applications use, and this is just fine, e.g. performance often requires that one does not rediscover the wheel by recoding libraries in #clang #cplusplus and #fortran because they are, for whatever reason , resistant to use a proper #ffi (or an #IPC) #api.

indianewswatch, to Law
@indianewswatch@kolektiva.social avatar

The Three Criminal Law Bills: Using Criminal Law to Establish Permanent Extra-Constitutional Emergency Powers

“Don’t give them space to breathe!” Twelve changes to criminal law in the three Bills introduced in parliament in August, 2023 will create a quantum leap in the power of the government, if and when it so wishes, to silence dissent and opposition and shut down public discourse, choking all channels that communicate conflicting news or views to the people.

#CriminalLawBills #IPC #CrPC #IndianEvidenceAct #law #india

https://thewire.in/law/the-three-criminal-law-bills-using-criminal-law-to-establish-permanent-extra-constitutional-emergency-powers

indianewswatch, to india
@indianewswatch@kolektiva.social avatar

Parliamentary Panel Defers Adopting Draft Report on Bills to Replace Criminal Laws

Three opposition members filed dissent notes, demanding changes to the Bills that seek to replace the Indian Penal Code and the Code of Criminal Procedure, according to reports.

#IPC #CrPC #IndianEvidenceAct #parliament #UnionGovt #india

https://thewire.in/government/parliamentary-panel-defers-adopting-draft-report-criminal-laws

Pol, to programming
@Pol@mathstodon.xyz avatar

🎉 Just got back from the International PHP Conference in Munich!

An amazing experience, I even gave a talk (see previous toot)!

🎤 Noted some recurring themes:

1️⃣ Reproducibility is often overlooked or ignored, sadly 🤔
2️⃣ The benefits of functional programming in PHP aren't widely understood 🔄
3️⃣ Docker ≠ Full reproducibility 🐳

Stay tuned! I'm planning to write some articles to delve deeper into these topics.

💡📝

robert, to php
@robert@flownative.social avatar

Only two weeks until the International PHP Conference starts in Munich.

I'm very much looking forward to giving a talk with @sebastian about the new Neos Content Repository which was in the works for so many years. Spoiler: You can use it in any PHP projects without Neos!

https://phpconference.com/software-architecture/neos-content-repository/

And, as always, I'll also have a talk about something container related.

Hope to see you in Munich!

Dorianix, to olympia German
@Dorianix@graz.social avatar

Ich bin gegen eine Teilnahme Russlands an den Olympischen Spielen .

Wer einen Krieg führt und mit geächteten Waffen Zivilisten tötet, sollte keine Bühne für besondere sportliche Leistungen bekommen.

Außerdem würde ein wohl auch in wahrgenommen und diskutiert werden.

Da das anders entschieden hat, werde ich wohl diesmal boykottieren.

defanor, to haskell

For between programs at work, I use JSON: with std{in,out} (and non-JSON messages in stderr), and additionally supporting Unix domain sockets (replacing stdin and stdout) with syslog (in place of stderr), similarly to CGI and FastCGI, supporting streaming for output (a sequence of JSON objects, until the stream is closed). Using Aeson for that, but it is a heavy and occasionally problematic dependency, and not great for manual invocation.

Back in 2016/2018 I wrote a Haskell library to derive (de)serializations of arbitrary types, using GHC.Generics, in the form similar to regular command line arguments (to be used for input) or DSVs (for output), with automated basic usage strings for --help messages, but have not switched to it: slightly worried that there may be bugs, and the help messages would be better with optparse-generic. Though there is no serialization for optparse-generic in sight, it does not cover program output, adding help messages for it requires introduction of the "Helpful" constructors.

As a side note, later I learned about Python Fire, which is a similar project in Python.

I am still using JSON (and Aeson) for that, and even need to pass JSON as a parameter in some cases (possibly just as a string, to avoid dependency on it in the IPC library), but it still feels awkward and inconvenient for manual invocation (as I do mostly for testing).

Considering how to proceed: keep it as is, update the custom library and try to use it, try to use optparse-generic with custom or manual serialization and something else for output. Or could use actual CGI/FastCGI instead of this, an HTTP server, OpenAPI?Swagger, or even SOAP (not great for manual invocation though, and complicated). Formal specifications are tempting to have, too, so that it would be more suitable for different languages. I wish there was a good option for s-expressions.

What do you use for IPC, in or in other languages, why, and are you happy with it?

lispi314, to philosophy
@lispi314@mastodon.top avatar

I kinda have a hard time taking projects referencing seriously.

"Do one job and do it well" is so ill-defined as to be useless. So the typical result is to simplify the program into uselessness by externalizing the complexity onto the user and their environment instead of handling it properly within the program itself because that's "bloat".

And don't get me started on the hell of unstructured text pipes as your primary .

lispi314,
@lispi314@mastodon.top avatar

The most popular formulation:
> Write programs that do one thing and do it well.
I already mentioned the problems with that one.
> Write programs to work together.
Actually a good idea. Very vague and not in any way specific to unix.
> Write programs to handle text streams, because that is a universal interface
Unstructured text streams is a horrible primitive, they are only universal if you're not doing anything that would call for structured data, otherwise welcome to serialization hell.

indianewswatch, to Kashmir
@indianewswatch@kolektiva.social avatar

J&K: Principal, teacher booked for thrashing student who wrote ‘Jai Shri Ram’ on school board

The boy has been hospitalised and the police have arrested the teacher. The teacher and the principal have been booked under Sections 323 (voluntarily causing hurt), 342 (wrongful confinement), 504 (intentional insult), 506 (criminal intimidation) of the Indian Penal Code and Section 75 (cruelty to child) of the Juvenile Justice (Care and Protection of Children) Act.

https://scroll.in/latest/1054954/j-k-principal-teacher-booked-for-thrashing-student-who-wrote-jai-shri-ram-on-school-board

indianewswatch, to india
@indianewswatch@kolektiva.social avatar

'Against Constitution': Madras Bar Association Objects To Hindi Names For Bills Replacing IPC, CrPC and Evidence Act

The Madras Bar Association has passed a resolution raising objection against the renaming of IPC, Indian Evidence Act and CrPC in Hindi. The Association has taken objection to the names "Bharatiya Nyaya Sanhita Bill", "Bharatiya Nagarik Suraksha Sanhita Bill", "Bharatiya Sakshya Bill", for the Bills which seek to replace the Indian Penal Code, Code of Criminal Procedure and the Indian Evidence Act respectively.

https://www.livelaw.in/amp/news-updates/madras-bar-association-objects-to-hindi-names-for-bills-replacing-ipc-crpc-and-evidence-ac-236160

indianewswatch, to india
@indianewswatch@kolektiva.social avatar

Are the new criminal law bills really anti-colonial? Here’s why experts say no

Home Minister Amit Shah promised that the bills would overhaul our criminal justice system. However, the proposed reforms may be colonial in spirit too.

https://scroll.in/article/1054534/are-the-new-criminal-law-bills-really-anti-colonial-heres-why-experts-say-no

#IPC #CRPC #IndianEvidenceAct #sedition #DraconianLaws #UAPA #AFSPA #laws #hindutva #BJP #india

indianewswatch, to india
@indianewswatch@kolektiva.social avatar

Women have unleashed "legal terrorism" by misusing Section 498A IPC: Calcutta High Court

Single-judge Justice Subhendu Samanta said that Section 498A was introduced for the welfare of women but the same is now being misused by filing false cases.

https://www.barandbench.com/news/women-unleashed-legal-terrorism-misusing-section-498a-ipc-calcutta-high-court

indianewswatch, to BadInternetBills
@indianewswatch@kolektiva.social avatar

NIA says bail condition for Bhima Koregaon accused violates privacy of investigating officers

The Supreme Court had told Arun Ferreira and Vernon Gonsalves to pair their mobile phones with those of the investigating officers.

#BhimaKoregaon #BhimaKoregaonCase #BK16 #NIA #ArunFerreira #VernonGonsalves #ElgarParishad #dalits #activism #SocialJustice #UAPA #IPC #DraconianLaws #SupremeCourt #india

https://scroll.in/latest/1054525/nia-expresses-concern-over-bail-condition-asking-officers-to-pair-mobile-with-bhima-koregaon-accused

indianewswatch, to Law
@indianewswatch@kolektiva.social avatar

Home Minister Amit Shah Says Sedition Is Dead. But Its Replacement Is More Fearsome Than The Colonial Law Ever Was

The proposed Clause 150 meant to replace Section 124A, or sedition, proposes that the government and the nation are the same thing—as God, king and country once were under colonial rule—and the ambiguity, legislative intent and punishment are stronger than the old law. Article14 analysis shows how the problems we faced with sedition will continue if the proposed Clause 150 becomes law.

#law #sedition #clause150 #IPC #BhartiyaNyayaSanhita #DraconianLaws #journalism #activism #FreeSpeech #dissent #hindutva #BJP #india

https://www.article-14.com/post/home-minister-amit-shah-says-sedition-is-dead-but-its-replacement-is-more-fearsome-than-the-colonial-law-ever-was-64d99ff8dc0d8

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines