jump to:allmastodonblueskylemmylobstersdevstackwikirsshn
wwebbit
view: | | |

Tech / everything · hot matching “cat”

12 shown · updated 1m ago · read only
  1. How to average multiple files across groups (stackoverflow.com)stack

    25 points by carbonmire in stackoverflow.com · 28m ago · stack

    I have a folder of some 1400 CSV files that are all in identical format. Each file has a row of column headers, a column of row headers, and a matrix of data. All cells are numerical except the column headers (row headers are numerical and each position is always the same number…
  2. How can I handle external media URLs safely in a Next.js API route? [closed] (stackoverflow.com)stack

    21 points by Manisha Rani in stackoverflow.com · 2h ago · stack

    I’m building a Next.js application called InstaFetch that processes publicly available Instagram media URLs. I’m using an API route to receive a URL from the frontend, validate it, and then process the response. My current approach works for some URLs, but I’m having trouble han…
    filed under next.js
  3. "Type of predictors in new data do not match that of the training data." within terra::predict (stackoverflow.com)stack

    20 points by Léa C in stackoverflow.com · 2h ago · stack

    I am facing an issue similar to the one raised here r random forest error - type of predictors in new data do not match but cannot apply the suggested solution to my problem, as my test data is a raster stack. I am trying to run the line: mean_rast <- terra::predict(s, model, na…
  4. Goaccess - Log format not working when invoked inside a bash script (stackoverflow.com)stack

    17 points by daHoodooMan in stackoverflow.com · 26h ago · stack

    I'm having a hard time to run goaccess in a simple bash script like this: #!/bin/bash cat domainlist.txt |\ while read d ; do # echo "goaccess /var/log/httpd/www.$d/access_log --log-format=COMBINED -o /srv/www/parked-domains/mystats/www.$d/index.html" ## uncomment previous line…
  5. Powershell to change RDWEB certificates remotely (stackoverflow.com)stack

    10 points by 4evernoob in stackoverflow.com · 4y ago · stack

    About to give up on this and connect locally to each system and run the commands but thought it wise to ask the smart people first. With my credentials locally this works: Set-Variable -Name "CBROKE" -Value "vmname01.business_name.net" Set-Variable -Name "CERTPASS" -Value "wHQTD…
  6. CSS-in-JS Arena Bamboo, StyleX and Panda on Pixel-Identical Apps (github.com)lobsters

    1 points by gajus in lobste.rs · 3h ago · lobsters

    A little context, I've been working on Contra for the last 6 years. It's a marketplace-network – an application that's comparable to the likes of LinkedIn, UpWork, and similar in terms of its surface area. That's hundreds of routes, thousands of components, and tens of thousands of styles. Over the last year, we have been obsessed with performance. We have optimized every layer of our infrastructure to the point where profiling the application increasingly started to surface bottlenecks in client-side (bundle size, and metrics like TBT, LCP, and INP). That's where CSS-in-JS comes in. 6 years ago, we started with styled-components. Then zero-runtime alternatives emerged and we started to experiment with them, eventually landing on Panda CSS. Panda took us a long way, but... they aren't _actually_ zero-runtime. Panda extracts CSS at build time, but it uses ~15KB runtime to map those style objects at runtime. This overhead surfaced repeatedly when profiling pages with lots of components (server-side and client-side). That's where I ended up writing Bamboo to solve this. Bamboo folds styles at build-time achieving _near_ zero-runtime (0.5KB vs 15 KB). If you write: ``` <div className={css({ fontSize: 'lg', fontWeight: 'bold' })}>Title</div> ``` it becomes: ``` <div className="fs_lg fw_bold">Title</div> ``` at build time. If the variant is dynamic, then bundle is inlined with pre-computed map of classes. ``` <span className={pick(status, { ok: "d_inline-flex px_8px bg_successSoft c_success", warn: "d_inline-flex px_8px bg_warningSoft c_warning", err: "d_inline-flex px_8px bg_dangerSoft c_danger", })} /> ``` That's the main idea behind Bamboo. Thanks to folding, we were able to improve our server-side and client-side performance. I built CSS-in-JS Arena as a sanity benchmark to track how we compare to Panda, but also to any other emerging frameworks.
    filed under cssperformance
  7. SSL certificate error for IE users only (stackoverflow.com)stack

    3 points by Andy Williams in stackoverflow.com · 13y ago · stack

    I recently migrated to a new server (CentOS with plesk 11.0) and installed a new SSL certificate for my domain. Problem now is that any IE user has the error "there is a problem with this website's security certificate" when they try to access the secure area of my site. I've te…
  8. Android: external storage permission issue: (stackoverflow.com)stack

    2 points by Farhan in stackoverflow.com · 15y ago · stack

    I really need someone here to guide me about some issues with the external storage OR sd-card. I won't go into complexities. I have a folder with the name of MyVideos . It is located in the sd-card folder of Motrola Xoom; the path is "/mnt/sdcard-ext/MyVideos. The folder is alre…
  9. What is the recommended way to encrypt user passwords in a database? (stackoverflow.com)stack

    1 points by szabgab in stackoverflow.com · 16y ago · stack

    In a web application written in Perl and using PostgreSQL the users have username and password. What would be the recommended way to store the passwords? Encrypting them using the crypt() function of Perl and a random salt? That would limit the useful length of passswords to 8 c…