ajsadauskas, to opensource I'm thinking seriously about getting Google out of my life, and trying NextCloud.
Looking to get a personal account through a managed provider.
Does anyone have any experience with it?
How does it compare to ownCloud?
Any hosts I should look at or avoid?
Any apps I should get for it, or avoid?
Any issues I should be aware of before I switch?
joelanman, to programming missing from native Node - write a file and create any necessary folders in the path
fs.writeFileSync('a/b/c.txt','hello', {recursive:true})
joelanman, @jscholes ah you're right! I was sure it threw an error but recursive: true doesnt, thanks!
joelanman, you can do this, thanks @jscholes
const filepath = 'a/b' fs.mkdirSync(filepath, { recursive: true }) fs.writeFileSync(filepath + '/c.txt', 'hello')
NorthBayPython, to python Did you know #PyConUS sold out of tickets today?
Don't worry, there's still plenty of great local local regional #Python events all around the US that you can attend.
#NBPy (Northern California) is on in late June, and we have tickets on sale right now, and maybe even a program to share soon too. All the details are at https://northbaypython.org
menelion, to php Dear #PHP community! Could someone with power please raise an RFC to make the
strict
parameter of thein_array()
built-in functiontrue
by default? It's really annoying to remember puttingtrue
as the third parameter every time, and not doing it might potentially lead to weird bugs. Thanks!
menelion, @Crell Then at least for version 9 maybe? BTW, I'm honored to receive a reply from you, Larry. Are there any justified uses of
false
there, maybe you know better than me?
Crell, @menelion Even in v9, that change would break any existing in_array() call where the dev is relying on non-strict behavior. It's impossible to know how many hundreds of thousands of lines of code that is.
I'm a strict typing fan, so I have no use for
false
there. But IMO the answer is to move away from arrays and build a proper collection trio that is strict by default. (Sequence, Set, and Map, as separate things.)
hugovk, to python I just kicked off PyCon 2024 with the first talk of the Language Summit (and my first talk at PyCon!): "Should Python adopt CalVer?" It was an interesting discussion, let's see!
#PyConUS #PyCon #Python #CalVer #CalendarVersioning #LanguageSummit
tintvrtkovic, @hugovk don't see any downsides to the proposal
hugovk, @jarofgreen The Language Summit isn't recorded, but there'll be a blogpost, and if we go ahead there'll be a PEP and discussion thread.
Why to use Custom Exceptions in PHP (wendelladriel.com)
When creating applications with PHP, Exceptions play a vital role in handling errors and irregularities that arise during the application lifecycle. We are going to see how to use Custom Exceptions to improve our applications.
blindcoder, to python Why exactly have I NOT been writing python scripts for the last 10 years?
bmaxv, Having a requirements.txt is good.
version pinning is another of those debatable practices.
You should do if it is more important to you that things keep working, than being up to date.
Usually, newer versions have more features, fixes, sometimes they boost performance and if they break things, the authors usually have good reasons for breaking things.
E.g. running a business tool or website should have pinned versions.
treyhunner, @bmaxv @blindcoder agreed on version pinning being somewhat debatable. It also depends on the package. For Django, I know they break things between minor versions but but micro ones do I'd pin to a version range. Some packages pretty much never break things and others are a mixed bag.
brotkrueml, to php German #TYPO3camp München vom 13.-15. September 2024
✅ Supporter-Ticket
✅ Bahnfahrt
✅ UnterkunftWir sehen uns 🚀
driscollis, to python
ThePSF, to python
Open source LaTeX book first release (lemmy.world)
Better design, new features and readme....
pixel, to programming Parsing JSON Data is a fundamental in modern SwiftUI apps. This comprehensive guide covers all the aspects of the Codable protocols in Swift.
#JSON #Programming #Swift #SwiftUI #macOS #iOS #visionOS #Codable
https://matteomanferdini.com/swift-parse-json/
davidbures, @pixel Jk on the picture, this is probably the best guide I’ve seen so far. I’ve been struggling with adopting Codable for years
lordmatt, to php Please don't judge me. I just added two #singletons to this project of mine.
adamchainz, to python A #pytest pattern I’ve recently enjoyed using:
- Change some function in a way that needs fixes to call sites.
- Run the whole test suite with pytest.
- Copy the list of failing test IDs from pytest’s summary into a scratch file.
- Fix up the found callers.
- Verify everything fixed by saving the list of tests with: pytest $(cat scratch/testids.txt)
watte, @adamchainz like --lf but without excluding successful tests the next time? Seems nice :)
adamchainz, @watte Yes, and allowing partial test runs in step four whilst fixing up certain callers.
sinbad, to cpp Ooh, I do like the new "Sticky Lines" feature in Rider 2024 #jetbrainsrider #cpp
derAnhaltiner, @sinbad yeah. That's pretty cool. 👍🏼
What's new in PHP 8.4 - stitcher.io (stitcher.io)
Features, performance upgrades, and deprecations in PHP 8.4
Buy Vyvanse Online Instantaneous Health Deals (buy-vyvanse.weebly.com)
order now : https://buy-vyvanse.weebly.com/...
nanorepublica, to django 📣 Common Django Project structures - Part 3
📄 A very simple setup, useful for demos or very simple prototypes
🔗 https://softwarecrafts.co.uk/100-words/day-91
#100_words,#django,#django_apps
ghickman, @carlton I knew you’d say that! Soon… maybe. I have a feeling it might be contentious 😬
carlton, @ghickman I hope so. 🍿
Python is great, but stuff like this just drives me up the wall (lemmy.world)
Explanation: Python is a programming language. Numpy is a library for python that makes it possible to run large computations much faster than in native python. In order to make that possible, it needs to keep its own set of data types that are different from python’s native datatypes, which means you now have two different...
grusp, to php Italian 📣 Less than 24 hours to the 21st edition of @phpday ! It is the oldest php conference in Europe!
:elephpant: Last chance to get your ticket, online or in-presence!
➡️ https://2024.phpday.it/tickets/
🇮🇹 See you tomorrow in Verona, Italy and online!
sebastian, Italian
pierstoval, Italian
sebsauvage, (edited ) to Java French #Java
Si vous cherchez un JRE/JDK pour une plateforme précise sans avoir à vous faire chier avec le site immensément casse-gonades d'Oracle, vous pouvez télécharger ici les OpenJDK.
Il y a également les anciennes versions de Java jusqu'à Java 8.
https://adoptium.net/fr/temurin/releases/
yac, French @sebsauvage https://sdkman.io/ pour pas se prendre la tête (mais pas de Java 8)
sebsauvage, French @yac
Tiens ça ne je connaissais pas. Pas mal.
bbelderbos, to python #Python tip:
random.choices
can be used to generate random samples with bias.The
weights
parameter can be used to specify the probability of each item being chosen which is proportional to its weight relative to the sum of all weights.Here is a simple example:
bbelderbos,
danjac, to django I keep writing "quertyset" instead of "queryset" when writing #django, like I'm just hitting the first 5 keys of my laptop each time
igalia, to opensource Second day of the 2024 #DisplayNextHackfest at our HQ. We have a mix of on-site 🪑 and remote 🌐 participants and we're always amazed at how putting people together in a room, virtually or not, can drive discussions forward! 💬🗨️ #OpenSource display stack FTW!