is-odd
is-odd | com.valvesoftware.Steam | |
---|---|---|
19 | 159 | |
155 | 331 | |
- | 1.2% | |
0.0 | 7.8 | |
about 5 years ago | 12 days ago | |
JavaScript | Python | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
is-odd
-
Why Does 'Is-Number' Package Have 59M Weekly Downloads?
Ridiculous as it may be, my guess is that provides a unified way of number checking while avoiding the pitfalls or crazy consequences which could arise from divide-by-zero[1], which I guess might prevent less-experienced folks from tripping up on some of the Javascript gotchas? I'm not really sure. That being said, I have seen those package dependencies in some serious stuff.
Do I agree? I'm not really sure to be honest. Probably not.
[0] https://github.com/i-voted-for-trump/is-odd/blob/master/READ...
[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
-
Weekly downloads of npm is-odd package
it gets worse: https://github.com/i-voted-for-trump/is-odd/blob/master/index.js
-
my first pull request got merged in a 2k stars project
So it disappeared and node apps stop building and it was a huge fiasco getting it restored. Just for reference, https://github.com/i-voted-for-trump/is-odd is a current fork of it and it has 34M downloads.
-
/* This post is a dig at Elon Musk who allegedly ranked employees by the number of lines they wrote. I then added some obviously made up code to hammer home the point that line counts don't always indicate good employees. I also added this 300 character title in case Reddit ranks by title length. */
Checks of this extensiveness would be mad for such a simple library. I mean, who would use a library with that extensive checks?
-
Vendor by Default (2021)
I think that this approach would cut down the amount of JS dependencies significantly. Things like is-even and is-odd come to mind. You don't want another leftpad or colors.js to happen to you and minimising dependencies is the most effective strategy to accomplish that.
So many leaf dependencies I've looked into are no more than a Stackoverflow answer in a JS file accompanied by six or seven metadata files (package.json + typescript files + linter config + readme + git config + ...). This file: https://github.com/i-voted-for-trump/is-odd/blob/master/inde... is downloaded over 400000 times per week (https://www.npmjs.com/package/is-odd) and while I don't have anythimg against the author for publishing a helpers function, I don't see why I would expose my project to risking a supply chain attack for something so minor. Here's another, with millions of downloads: https://github.com/inspect-js/is-date-object/blob/main/index...
I know that these are all downloaded so ofyen because theyre dependencies of dependencies but I'd appreciate it if bigger libraries would provide a vendored version of their packages that just collects these microdependencies instead of wasting npm's time by making it manage these tiny helper files. Don't vendor stuff like React or Vue or whatever framework you prefer but for the love of God don't add a dependency for 50 lines of code. Sometimes copy/paste is the right solution.
- GLIBC update broke EAC for most games that use it
- Javascript libraries be like
-
Code Smell 138 - Packages Dependency
$ npm install --save is-odd // https://www.npmjs.com/package/is-odd // This package has about 500k weekly downloads // https://github.com/i-voted-for-trump/is-odd/blob/master/index.js module.exports = function isOdd(value) { const n = Math.abs(value); return (n % 2) === 1; };
-
Oops!
I started reading your comment curious about the source code. But I finished reading your comment only more curious. So I went to GitHub's "is-odd" and I've come back to give everyone *is-odd'*s source code in it's entirety. And here it is:
- I made a Chrome extension to understand code in plain English
com.valvesoftware.Steam
-
Steam suddenly not working on flatpak
INFO:root:https://github.com/flathub/com.valvesoftware.Steam/wiki INFO:root:Will set XDG dirs prefix to /home/z3rokelvin/.var/app/com.valvesoftware.Steam DEBUG:root:Checking input devices permissions INFO:root:Overriding TZ to America/Los_Angeles steam.sh[2]: Running Steam on org.freedesktop.platform 23.08 64-bit steam.sh[2]: STEAM_RUNTIME is enabled automatically setup.sh[74]: Steam runtime environment up-to-date! steam.sh[2]: Steam client's requirements are satisfied [2023-12-04 21:51:25] Startup - updater built Nov 29 2023 19:58:56 [2023-12-04 21:51:25] Startup - Steam Client launched with: '/home/z3rokelvin/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/steam' '-no-cef-sandbox' 12/04 21:51:25 Init: Installing breakpad exception handler for appid(steam)/version(1701289036)/tid(108) libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: radeonsi libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: radeonsi libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast SteamUpdateUI: An X Error occurred X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 152 (GLX) Minor opcode of failed request: 3 (X_GLXCreateContext) Value in failed request: 0x0 Serial number of failed request: 53 xerror_handler: X failed, continuing Looks like steam didn't shutdown cleanly, scheduling immediate update check [2023-12-04 21:51:25] Loading cached metrics from disk (/home/z3rokelvin/.var/app/com.valvesoftware.Steam/.local/share/Steam/package/steam_client_metrics.bin) [2023-12-04 21:51:25] Using the following download hosts for Public, Realm steamglobal [2023-12-04 21:51:25] 1. https://client-update.akamai.steamstatic.com, /, Realm 'steamglobal', weight was 1000, source = 'update_hosts_cached.vdf' [2023-12-04 21:51:25] 2. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'update_hosts_cached.vdf' [2023-12-04 21:51:25] 3. https://cdn.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in' [2023-12-04 21:51:25] Checking for update on startup [2023-12-04 21:51:25] Checking for available updates... [2023-12-04 21:51:25] Downloading manifest: https://client-update.akamai.steamstatic.com/steam_client_ubuntu12 [2023-12-04 21:51:25] Manifest download: send request [2023-12-04 21:51:25] Manifest download: waiting for download to finish [2023-12-04 21:51:25] Manifest download: finished [2023-12-04 21:51:25] Download skipped: /steam_client_ubuntu12 version 1701289036, installed version 1701289036, existing pending version 0 [2023-12-04 21:51:25] Nothing to do [2023-12-04 21:51:25] Verifying installation... [2023-12-04 21:51:25] Performing checksum verification of executable files [2023-12-04 21:51:26] Verification complete Steam logging initialized: directory: /home/z3rokelvin/.var/app/com.valvesoftware.Steam/.local/share/Steam/logs XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xf61db8f0 XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xf61da1c0 libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: radeonsi libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: radeonsi libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast crash_20231204215126_5.dmp[133]: Uploading dump (out-of-process) /tmp/dumps/crash_20231204215126_5.dmp /home/z3rokelvin/.var/app/com.valvesoftware.Steam/.local/share/Steam/steam.sh: line 798: 108 Segmentation fault "$STEAMROOT/$STEAMEXEPATH" "$@" [z3rokelvin@zkdesktop ~]$ crash_20231204215126_5.dmp[133]: Finished uploading minidump (out-of-process): success = yes crash_20231204215126_5.dmp[133]: response: CrashID=bp-274edb55-cbc0-4949-9e31-8cef12231204 crash_20231204215126_5.dmp[133]: file ''/tmp/dumps/crash_20231204215126_5.dmp'', upload yes: ''CrashID=bp-274edb55-cbc0-4949-9e31-8cef12231204''
- The (unofficial) Steam flatpak now includes a fix for TF2 on linux
- Left 4 Dead 2 workshop addons not loading?
- Steam issues after update on Fedora?
-
Steam flatpak forgets drives
Hi I've been recently using the steam flatpak instead of the rpm package from the rpm fusion repos here on fedora 38. Everything has been going swell except one thing. I have two drives with steam libraries on them other than the default one steam creates. I can add these through the storage manager but when I restart my computer steam often but not always forgets them. Meaning most of the time when I boot my computer I have to go into the storage manager in steam and re-select the library folders and then it remembers my installed games. I've already had an issue open on the github for the steam flatpak but alas nothing yet https://github.com/flathub/com.valvesoftware.Steam/issues/1075. Just curious if anyone else is experiencing this issue and if anyone knows how I could remedy this so the drives are there on boot. I did get two other people with the issue on github but no solutions.
-
Flatpak Steam not launching on Ubuntu 22
INFO:root:https://github.com/flathub/com.valvesoftware.Steam/wiki INFO:root:Will set XDG dirs prefix to /home/peter/.var/app/com.valvesoftware.Steam DEBUG:root:Checking input devices permissions INFO:root:Overriding TZ to (My_location) steam.sh\[2\]: Running Steam on org.freedesktop.platform 22.08 64-bit steam.sh\[2\]: STEAM\_RUNTIME is enabled automatically setup.sh\[77\]: Steam runtime environment up-to-date! steam.sh\[2\]: Steam client's requirements are satisfied
-
Steam not running on Ubuntu
Try the Flatpak one.
-
Since updating to Fedora 38, Japanese fonts no longer work properly in multiple apps
I recently updated from Fedora Silverblue 36 to 38, and now Japanese fonts are no longer working properly in multiple apps. Before, they would display correctly, but now I get rectangles instead of the proper characters. Examples of affected apps are Steam and Lifeograph (both installed via Flatpak).
- Step on a Fedora 38, crack your TF2's back
-
Fedora Linux 38 released!
Here's the actual thread in case you're interested.
What are some alternatives?
FizzBuzz Enterprise Edition - FizzBuzz Enterprise Edition is a no-nonsense implementation of FizzBuzz made by serious businessmen for serious business purposes.
steam-devices - List of devices Steam and SteamVR will want read/write permissions on, to help downstream distributions create udev rules/etc
deno-puppeteer - A port of puppeteer running on Deno
flatpak - Linux application sandboxing and distribution framework
is-even - I created this in 2014, when I was learning how to program.
flatpak-wine - wine using flatpak (build with runtime freedesktop sdk 22.08), provides wine to Centos like distros (https://flatpak.org/setup/)
is-number - JavaScript/Node.js utility. Returns `true` if the value is a number or string number. Useful for checking regex match results, user input, parsed strings, etc.
nonguix
guix - Read-only mirror of GNU Guix — pull requests are ignored, see https://guix.gnu.org/en/manual/en/guix.html#Submitting-Patches instead
LinuxGSM - The command-line tool for quick, simple deployment and management of Linux dedicated game servers.
micromatch - Highly optimized wildcard and glob matching library. Faster, drop-in replacement to minimatch and multimatch. Used by square, webpack, babel core, yarn, jest, ract-native, taro, bulma, browser-sync, stylelint, nyc, ava, and many others! Follow micromatch's author: https://github.com/jonschlinkert
mesa - Mesa 3D graphics library (read-only mirror of https://gitlab.freedesktop.org/mesa/mesa/)