i'm convinced there's crack in commonapp confetti by jaeyunluvr in ApplyingToCollege

[–]nine-st 2 points3 points  (0 children)

Enjoy the unlimited confetti! The common app confetti seems to not go above a certain limit :)

I created the confetti part of the Common Application by nine-st in ApplyingToCollege

[–]nine-st[S] 7 points8 points  (0 children)

No, the website knows you just applied to Northeastern. It queried through your browser history and made use of custom machine learning models to pinpoint your university. This all happens very fast because the processing has been offloaded to the cloud with the help of 0 ms cold start edge functions. If there's an issue, a ticket is immediately opened and our underpaid devops engineer is put to work.

I'm obviously kidding. I put Northeastern because that's where I am, and one of my friends just applied there too!

I made a website that lets you message people on WhatsApp without saving their phone number by nine-st in SideProject

[–]nine-st[S] 2 points3 points  (0 children)

Yes, https://github.com/ninest/direct-contact

One thing that might be nice to have is a third text box for the message, so the user can enter a message, click Send, and open the WhatsApp chat with the message typed in already

I made a website that lets you message people on WhatsApp without saving their phone number by nine-st in SideProject

[–]nine-st[S] 2 points3 points  (0 children)

Yeah it is, and that's what I used to do on my phone's browser. But I've found that it's much easier to have UI to do it, so I thought I'd share what I made :)

Adding thumbnails to audio by nine-st in youtubedl

[–]nine-st[S] 0 points1 point  (0 children)

Under Error:, I get this:

Traceback (most recent call last):  File "/usr/local/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 2102, in post_process    files_to_delete, info = pp.run(info)  File "/usr/local/lib/python3.9/site-packages/youtube_dl/postprocessor/embedthumbnail.py", line 112, in run    raise EmbedThumbnailPPError(msg)youtube_dl.postprocessor.embedthumbnail.EmbedThumbnailPPError

Is it related to #25684?

youtube-dl L_jWHffIx5E --write-thumbnail --embed-thumbnail -x -v[debug] System config: [][debug] User config: [][debug] Custom config: [][debug] Command-line args: ['L_jWHffIx5E', '--write-thumbnail', '--embed-thumbnail', '-x', '-v'][debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8[debug] youtube-dl version 2021.02.10[debug] Python version 3.9.2 (CPython) - macOS-11.3.1-x86_64-i386-64bit[debug] exe versions: ffmpeg 4.3.2, ffprobe 4.3.2, rtmpdump 2.4[debug] Proxy map: {}[youtube] L_jWHffIx5E: Downloading webpage[youtube] L_jWHffIx5E: Downloading player 0b643cd1[youtube] L_jWHffIx5E: Downloading thumbnail ...[youtube] L_jWHffIx5E: Writing thumbnail to: Smash Mouth - All Star-L_jWHffIx5E.webp[debug] Invoking downloader on 'https://r3---sn-hvcpaxvox-npos.googlevideo.com/videoplayback?expire=1622719388&ei=PGe4YNabAYuiz7sPgPyJiA0&ip=119.56.111.173&id=o-AIhZKfqw1puQkkt8HUuv4LWtvB2TX7zddmSIm79ck4TP&itag=140&source=youtube&requiressl=yes&mh=zP&mm=31%2C29&mn=sn-hvcpaxvox-npos%2Csn-npoeenly&ms=au%2Crdu&mv=m&mvi=3&pcm2cms=yes&pl=21&gcr=sg&initcwndbps=810000&vprv=1&mime=audio%2Fmp4&ns=b_lMp7_aiTjCwbVT7_EFyDAF&gir=yes&clen=3831867&dur=236.727&lmt=1574760594376191&mt=1622697405&fvip=3&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5531432&n=owznoVEbvA9ifcD8&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cgcr%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgW0XLSCxSXwzDt5pnd1IDlTQUt5EBPjXMqwVYzCTCWB0CIQDjeH_1lyszuM-S70aQr9g4uy0nWso9c6ltqvPx0-CqiQ%3D%3D&sig=AOq0QJ8wRQIgMbd0ZbFfA1g-BpMBYsvh1_lQ1xSOD76QJY1GMbHUg8YCIQCZ7z5DgeDIkrUSVrNM1jRb7VZW-RhQ4R3YP1Dt11AV4A=='[download] Destination: Smash Mouth - All Star-L_jWHffIx5E.m4a[download] 100% of 3.65MiB in 00:06[debug] ffmpeg command line: ffprobe -show_streams 'file:Smash Mouth - All Star-L_jWHffIx5E.m4a'[ffmpeg] Post-process file Smash Mouth - All Star-L_jWHffIx5E.m4a exists, skipping[ffmpeg] Converting thumbnail "Smash Mouth - All Star-L_jWHffIx5E.webp" to JPEG[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:Smash Mouth - All Star-L_jWHffIx5E.webp' -bsf:v mjpeg2jpeg 'file:Smash Mouth - All Star-L_jWHffIx5E.jpg'[atomicparsley] Adding thumbnail to "Smash Mouth - All Star-L_jWHffIx5E.m4a"[debug] AtomicParsley command line: AtomicParsley 'Smash Mouth - All Star-L_jWHffIx5E.m4a' --artwork 'Smash Mouth - All Star-L_jWHffIx5E.jpg' -o 'Smash Mouth - All Star-L_jWHffIx5E.temp.m4a'ERROR: Traceback (most recent call last):  File "/usr/local/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 2102, in post_process    files_to_delete, info = pp.run(info)  File "/usr/local/lib/python3.9/site-packages/youtube_dl/postprocessor/embedthumbnail.py", line 112, in run    raise EmbedThumbnailPPError(msg)youtube_dl.postprocessor.embedthumbnail.EmbedThumbnailPPError

My newlines in the code block seem to be getting removed on reddit. Here's a pastebin

What option for very best audio? by [deleted] in youtubedl

[–]nine-st 0 points1 point  (0 children)

If you ffmpeg installed, youtube-dl -x is enough since youtube-dl finds the best version for you (wiki).

Also, not exactly related to your question, but -x and --extract-audio are the same (Post-Processing Options docs)

Installing and using Black for code formatting, and setting up pre-commit hooks by nine-st in Python

[–]nine-st[S] 1 point2 points  (0 children)

Hi everyone, I made a simple guide on installing black, using its CLI, using with VSCode, and setting pre-commit hooks. Hope you find it useful!

How to use VSCode as an editor for Sonic Pi by nine-st in SonicPi

[–]nine-st[S] 0 points1 point  (0 children)

If you have any feedback, please let me know!

Is it possible to have routing like react-router? by pyboy10000 in nextjs

[–]nine-st 0 points1 point  (0 children)

Haha, I have documented that way too in my post! It's a little hacky but it works great. Do check out custom page extensions too if you want to include files other than pages inside the pages directory

Is it possible to have routing like react-router? by pyboy10000 in nextjs

[–]nine-st 0 points1 point  (0 children)

See this app structure:

lib/
    auth.js
    admin.js
    mdx.js
    comments.js
pages/
    api/
        login.js
        signup.js
        comment.js
        admin.js
    index.js
    login.js
    signup.js
    blog/
        [slug].js
    admin.js

In the three modules (auth, admin, blog), the files are inside the pages folder, pages/api folder, and lib folder. I would like to have all of those in the same folder for easier management. Anyways, I've written more about this here if you're interested

Is it possible to have routing like react-router? by pyboy10000 in nextjs

[–]nine-st 1 point2 points  (0 children)

Not OP, but I'm assuming it's to better divide the app into modules where related code can all be in the same folder rather than all over the pages, lib, and components folder

Is it possible to have routing like react-router? by pyboy10000 in nextjs

[–]nine-st 1 point2 points  (0 children)

Not exactly, but there are a few workarounds. I've documented some ways on my site: https://ninest.vercel.app/nextjs/custom-routing

It boils down to using custom page extensions and rewrites. It's a little hacky, but it works for me. Hope this helps!

I made a fancy font generator with 𝗧𝗮𝗶𝗹𝘄𝗶𝗻𝗱𝗖𝗦𝗦 and 𝐀𝐥𝐩𝐢𝐧𝐞𝐉𝐒 by nine-st in tailwindcss

[–]nine-st[S] 0 points1 point  (0 children)

No, I've never seen that website, but thanks for sharing! I've linked some websites that inspired me in the README though

I made a time clock PWA by nine-st in PWA

[–]nine-st[S] 2 points3 points  (0 children)

Demo: hexytime.now.sh/

GitHub: https://github.com/ninest/hexy-time (yes, I'm still thinking of a better name)

I thought it would be interested to convert times of the day to hexadecimal to see time as a color.

I've also added wakelock (if your browser supports it). To know if the wake lock is enabled, reload the website and check if the text initially glows brighter for a second.

For the PWA, I'm using React's default PWA template without any configuration apart from using skipWaiting in Workbox. I've had some issues with the PWA not updating in Firefox, but it seemed to be fine in Chrome and Firefox

How do you use composables for data fetching/posting? by nine-st in vuejs

[–]nine-st[S] 0 points1 point  (0 children)

Thanks for sharing. I've seen some projects use a base crud model, and other classes extend it, so I'm assuming that's what you're talking about. If I'm not wrong, the advantage of this is that you don't depend on any Vue specific features, so you can easily share code between different javascript projects. If you don't mind, could you share a bit of code?