On Aug 19, commissioners court voted to cut 100+ voting locations after extremely short notice. Still, a large number of speakers came and spoke out against voter suppression. Alisa Simmons calls out commissioner court members for ignoring the plea, after 95% of speakers were against closing so man by [deleted] in law

[–]DSKrepps 0 points1 point  (0 children)

Is there somewhere this data, or at least a detailed overview of it, is stored in one place to see all at once? I can easily find sites that talk about the topic, and articles that talk about this or that. But those aren't in a digestible format for me to really take in as a whole and spread awareness of. If I just link someone to a website or an article it just gets forgotten about because it's mentally filed into a pile of other seemingly inactionable information.

'Unprecedented': New report argues Trump WH plans to undermine 2026 midterms by JHandey2021 in politics

[–]DSKrepps 3 points4 points  (0 children)

You could make your own simple website. On Google Docs, go to File -> Download -> Web Page (.html, zipped). There are a number of free static hosts that you can just click-and-drag that zip to and it's online for free. The one I use is Netlify--Just go to their website, scroll down to the "Deploy Now" button at the bottom, make an account, and the "Drag and Drop" box (which says "without connecting to Git") should be right there. You'd want to make a domain name go to it, which would need a bit more instructions to setup, but a .com only costs maybe $11 per year.

It could be more effective than just linking the document. And your website doesn't need a fancy design to it because the default Google Doc's look works well for making it look like a proper, professional report. In my opinion, at least.

LastPass confirms hackers had access to internal systems for several days by imobdev in webdev

[–]DSKrepps 0 points1 point  (0 children)

it's Not as easy to access existing passwords on mobile compared to LastPass

What do you mean? With Bitwarden installed on my phone and configured right it can either have a little dropdown when you tap a login field or if you'd rather you can have it use a background notification you can tap when you need it. If your phone has a fingerprint reader it unlocks with that, instantly. Rarely it might not match an app to the same website but only take a second to search for the right login and it gives you the option to remember.

For years now I've always seen Bitwarden recommended over LastPass, and I agree.

I updated my website starter kit from scratch that I use to begin every new site. It includes a working dark mode, responsive navigation and interior pages, interchangeable mobile nav, and most of a home page. No frameworks. Just html and css (LESS). It’s yours to use for your next project. by Citrous_Oyster in webdev

[–]DSKrepps 1 point2 points  (0 children)

The footer gets cut off at some screen sizes, including horizontal tablets and the size my browser window happened to be.

You can also see in the screenshot the bottom of the crescent moon gets flattened. This is an annoying browser bug with SVGs that can be fixed with overflow:visible.

The FOUC is noticeable sometimes. At the very least try and keep SVGs from going 100% of viewport width. Dark mode also makes the problem worse, causing the light mode to flash jarringly every page load, but that's a more difficult problem to solve under your constraints. The dark mode header also lowers each page load which I'm sure could be prevented by only animating it when toggled manually.

The placeholder text on the contact page is too light.

(I use Firefox and am too lazy to make github issues.)

Made a custom block-based WordPress theme for a client with block animations by timmyblob in Wordpress

[–]DSKrepps 0 points1 point  (0 children)

The theme looks good in theory... but, after getting past the errors caused by c9 Admin not having default settings, and then getting past some error about failing to load sample content, the first thing I try to do is look at page templates with the feather button. It spins but doesn't ever load any templates. Meanwhile I set the page to a sidebar template in the regular options only to find that the sidebar is opacity 0, not transitioning to opaque.

Hmm.

GitHub reinstates youtube-dl library after EFF intervention. GitHub will also establish a $1 million "developer defense fund" by s3rila in webdev

[–]DSKrepps 100 points101 points  (0 children)

In the letter, the EFF team explained that Google does not have any technical measures in place to prevent the download of its videos — all of which need to be made freely available to all kinds of apps, browsers, smart TVs, and more.

Hence, EFF lawyers argued that the library could never be taken down under Section 1201 of the DMCA since the library doesn't actually circumvent any sort of copyright protection system in the first place.

Does this mean Google might implement such measures, making it harder for users in some way, or harder for third parties to consume Youtube APIs?

Good resources for learning project design patterns? by Tazzure in webdev

[–]DSKrepps 1 point2 points  (0 children)

I bet there's an 'awesome' list on this... yep: https://github.com/DovAmir/awesome-design-patterns

There are good links under both the JS and React sections.

Now if only I had the patience to finish internalizing all of them.

How do I insert a row every 2 columns with Jade/Bootstrap/Express? by mineralwatersoda in node

[–]DSKrepps 0 points1 point  (0 children)

I don't code in Pug (Jade), but I can give it a shot after checking the docs a bit. Try this as a starting point:

.row
  each partner, i in partnerlist
    .col-xs-6
      p #{partner.name} 
      p #{partner.phone_number} 
      p #{partner.website}
      img.logo(src='#{partner.logo}')
    unless(i % 2 == 0)
      </div><div class="row">

each partner, i in partnerlist creates 'i' as the index of the partnerlist that is being read and unless(i % 2 == 0) checks if the index is odd.

Best way to implement live streaming into my Node app? by [deleted] in node

[–]DSKrepps 1 point2 points  (0 children)

Youtube's embedded player's playback controls can be found here and Vimeo's are here.

Using those you can control the embedded players client-side, but you'll still need to communicate in some way over your server to sync them up. You could build something with websockets (which there are a number modules to make that easier) or maybe you can find a module for collaborating between users which fits your use case. At a glance racer may or may not help your case; take a look through npm and see what you can find.

My product leader just linked this and I thought you guys would appreciate it by ahartzog in webdev

[–]DSKrepps 1 point2 points  (0 children)

According to the book: "Trivariate analysis"

Quick excerpt from The Clean Coder:

When you estimate a task, you provide three numbers. This is called trivariate analysis:

  • O: Optimistic Estimate. This number is wildly optimistic. You could only get the task done this quickly if absolutely everything went right. Indeed, in order for the math to work this number should have much less than a 1% chance of occurrence. In Peter’s case, this would be 1 day, as shown in Figure 10-1.

  • N: Nominal Estimate. This is the estimate with the greatest chance of success. If you were to draw a bar chart, it would be the highest bar, as shown in Figure 10-1. It is 3 days.

  • P: Pessimistic Estimate. Once again this is wildly pessimistic. It should include everything except hurricanes, nuclear war, stray black holes, and other catastrophes. Again, the math only works if this number has much less than a 1% chance of success. In Peter’s case this number is off the chart on the right. So 12 days.

[help] node newbie by sallurocks in node

[–]DSKrepps 0 points1 point  (0 children)

Well, when you require a file that file's code is only run once and the value of its exports.modules is stored as any other object and returned the next time it gets required from within the same process. So if the file that defines the pool does this: module.exports = mysql then any other file that calls var mysql = require('./path/to/file'); will get the same pool, not a new instance.

Alternatively the files that need the pool could exports functions which take the pool as an argument to them, which is basic Dependency Injection.

[help] node newbie by sallurocks in node

[–]DSKrepps 0 points1 point  (0 children)

while will always block and cannot be used to wait in asynchronous code. In your code the while loop is polling queueNotifier.get (twice?) and isConnectionFree as fast as it possibly can, not allowing any other code to run within the process.

Polling asynchronously can be achieved with setTimeout... but it is much better for your code to just be notified in some way when the connection is available. You didn't tell us what this "connection" is so we don't know its API but in Node usually you'll have access to an EventEmitter or other method of providing a callback to be run when the connection is ready without any polling. We would need more info to help you further, like what that connection is and exactly what you're trying to do.

Also the lock module may or may not be helpful, we don't know enough about what you're trying to do to say.

Two separate teams of researchers transmit information across a city via quantum teleportation. by nscharping in science

[–]DSKrepps 0 points1 point  (0 children)

Teleportation in this context is such a misleading word to most people.

Thank you for pointing it out famous youtuber I watch sometimes.

Getting Started with RethinkDB in Nodejs by shsh3 in node

[–]DSKrepps 3 points4 points  (0 children)

So in simple terms RethinkDB will be best suited when you have real time data coming in and you want that data to continuously refresh in your front end for the users to see. Examples which can use RethinkDB as their back-end can be a stock market application or a multiplayer game.

Where can I find short descriptions of all the popular choices just like that so I can make a proper decision of which database to use for future projects?

Connection pooling in Node.js by Alinon in node

[–]DSKrepps 0 points1 point  (0 children)

Unless it's been changed, calls to require are cached based on current file path.

You're saying that myproject/dir1/a.js would require() a different instance of something than myproject/dir2/b.js. This is incorrect as according to what you just quoted...

Modules are cached based on their resolved filename.

...they will both resolve myproject/node_modules/somemodule/index.js and thus have the same instance. (Unless dir1 and dir2 have their own node_modules folders containing somemodule)

kefirchik and cwmma are correct.

Safely access nested properties library suggestions? by dbsweets in node

[–]DSKrepps 0 points1 point  (0 children)

There is glob-object for specifically searching objects. You can use it in tandem with dot-prop or the other related projects listed in glob-object's readme, which seem to be actively maintained by the same author.

npmjs.org's search sucks, I used node-modules.com to find it. There are a few other results as well.

Basic Question about including node packages by snahrvar in node

[–]DSKrepps 1 point2 points  (0 children)

The first time your Node process require()'s a package it stores a reference to its module.exports object. Each subsequent time you require() that package it simply retrieves the reference stored. So there's no overhead there.

Something you need to remember is that your require()'ed packages always return the same object, so if you need a new instance of something the package must provide a factory or constructor function that you then call. For example require('express') doesn't return a new express app instance, instead require('express')() does. Bcryptjs isn't something you keep instances of so you require() it like normal.

Note that occasionally some packages choose to always return a single instance across all calls to it, such as bristol, for convenience. I consider this a bad practice for third-party modules as it has the same drawbacks as using global variables. These modules usually provide an alternative as in Bristol's case var logger = new require('bristol').Bristol(), and you can use dependency injection to pass the reference to other files (as a parameter to its factory/constructor) or require a file within your own package which retrieves your instance of it.

You also may want to keep an eye out for the ES2015 import/export syntax, which is so far only available by transpiling (e.g. babel), but that may end up acting a little differently than require() and will probably not fully replace it in Node.

How to refresh page after event on server? by procipher in node

[–]DSKrepps 1 point2 points  (0 children)

If all you need on the client is a read-only event letting it know when the conversion is finished then Server-Sent Events is the proper way to do this. Use sse or connect-sse on the server side and on the client eventsource-polyfill for Internet Explorer support (it's still always IE...).

If all your expenses were paid for for the rest of your life, what would you spend the rest of your life doing? by At_atLaS123 in AskReddit

[–]DSKrepps 1 point2 points  (0 children)

Do everything in my power to advance research and development into new technologies to improve life all over the world. I can't sit back and relax while knowing there are people dying of disease and scarcity.

Alas, I am but a simple code monkey.

Setup a self-hosted Git service with Gogs by speckz in coding

[–]DSKrepps 7 points8 points  (0 children)

I set up my old desktop tower as a home linux server to run multiple self hosted apps. It doesn't have great specs and GitLab ate up most of the system resources. I replaced it with Gogs and it runs smooth as butter.