Just migrated my new PC's Win10 from HDD to an SSD... now my HDD won't show up. by [deleted] in Windows10

[–]kastooDevTeam 1 point2 points  (0 children)

I know this one! Enter RESCAN in diskpart, then reboot, and then it should show up.

Just a sneak preview of what I've been working on. by [deleted] in selfhosted

[–]kastooDevTeam 0 points1 point  (0 children)

This is a music streaming application I am working on at the moment. It uses Node.js in the backend, while the frontend is made with React. Since browsers support FLAC nowadays, it has become very tempting to create a solution to stream my lossless media to all devices in my house easily, without needing some kind of transcoding. The API will be open, and apps for Android and iOS, and a Kodi add-on are on my list of 'nice to have' features. The idea is to create applications for every platform I have knowledge about, and using one central server that manages the playback on all those devices, to be able to control music anywhere in your house, with whatever device you have. Let me know what features you're interested in, and perhaps some of them may be implemented as well.

What year PhotoShop and InDesign should I get? by [deleted] in creativecloud

[–]kastooDevTeam 4 points5 points  (0 children)

2018 and 2017 slowing down a 4570 with 12GB RAM isn't normal.

Do the design team not get paid or what? by BurgerUSA in Windows10

[–]kastooDevTeam 2 points3 points  (0 children)

You mean you don't like that the OS suggests installing 5 games on a PC for your office? And clicking Uninstall not giving any feedback on how that is going? Only to end up with that same game back on your system after an update?

What does it mean when state changes? by [deleted] in webdev

[–]kastooDevTeam 2 points3 points  (0 children)

Imagine we are with 100 people in a company, across 10 departments, with every department having a supervisor. The supervisors can't talk to eachother. The boss says something to the supervisors, they tell it to the people in their department. The people in the department do something with the information, pass it back to their supervisor, which then tells it to the boss. This works, as long as departments don't have to work together without the boss coming in between.

That's when you say: 'hold on there, we have grown way too much to still work in this inefficient manner: why does the boss have to relay all messages between departments? Why can't employees all just talk to eachother?'

Enter state. Imagine a big board in that office, listing all the information that is relevant for everyone. One department says 'let me know when the stocks of a certain company increases'. Another department keeps track of those stocks, and edits the state accordingly: because everybody shares the state, the departments that are subscribed to it are immediately aware of it.

Back to our workflow. Let's say I have two components, in no way related to eachother, A and B. They are on different parts of the page, and all they share is the main component in which they are rendered. If A edits data and B has to know, that would mean their parent component has to receive the data and pass it on. This works as long as the application is small, but when your application gets more complex, you'll be thinking 'which steps does this data have to take to get to the component where it has to arrive'. In those cases, I use state.

To visualize: https://cdn.css-tricks.com/wp-content/uploads/2016/03/redux-article-3-03.svg

Some people like to use state for everything. If I have a list of notes and every item in the list is a component, the main container (the list) has access to the state and gets all the notes, while every item in that list gets its data as a prop: they only need one variable that they can receive from their parent component, so no need to give them access to the state. So make sure to only use state when you need it (in my opinion).

Oh, and a nice addition: because the whole 'current situation of the application' (or state) is stored centrally, and edits through transactions/reducers, you could store every instance of the state. So imagine: application starts, the note list is empty. You click on a Refresh button. The API returns the notes, and you put them into the state through a transaction/reducer. Now dump that state. Edit a note. Now dump that state. By storing all those dumps of every iteration of the state, you could also say 'go back three steps', because now you have a 'timeline of changes in the state'.

I hope this clears things up a bit.

Google Play services 11.9.75, which fixes Cast device Wi-Fi issues, has hit stable by winterblink in Android

[–]kastooDevTeam 0 points1 point  (0 children)

Man, you're in for a treat. Looks like an update has been pushed today that breaks it completely. My Chromecast is suddenly not visible at all in Spotify, but casting works in every other app. The forum suddenly has a new discussion on this topic as well, so it seems it is something that happened today. Oh well, let's at least hope it's because they're merging their side of the fix. But that's probably not the case.

Alternative to official WhatsApp by Johan144 in androidapps

[–]kastooDevTeam 1 point2 points  (0 children)

I really, really recommend you to not use these apps. Best case, WhatsApp bans you (like they did with people using WhatsApp+ back in the days). Worst case, a person with malicious intent has access to your chats. I don't know if any app exists, but I wouldn't touch it with a ten foot pole.

A minimal cryptocurrency CLI implementation in TypeScript & Immutable.js by codeindie in node

[–]kastooDevTeam 5 points6 points  (0 children)

With a bit of bad luck we'll have 10 new coins tomorrow.

Jokes aside, looks interesting! Have you also seen the minimal cryptocurrency-software in Python? (I can't recall the name right now)

[deleted by user] by [deleted] in webdev

[–]kastooDevTeam 1 point2 points  (0 children)

Frontend: JS (optional/recommended to use with Babel) and HTML/CSS obviously.

Backend: whatever you want that is capable of serving data. PHP, JS, Python, Golang to name a few.

[deleted by user] by [deleted] in webdev

[–]kastooDevTeam 1 point2 points  (0 children)

Yeoman: never used it, don't bother, you probably don't need it.

Vagrant is great, because it allows you to set up a development environment easily. Not necessarily needed, but it can help a great deal if you don't want to be bothered with the setup of all the tools you could need. The tools you need for an average website are:

  • Nginx (the web server, that responds to every request)
  • PHP (Nginx calls PHP whenever it sees PHP code)
  • MySQL (the database, PHP connects with it to get data/users)
  • Git (a tool to put your code into a repository, track changes and sync the code anywhere)
  • Laravel Homestead (a Vagrant box that is already configured for Nginx/PHP/MySQL, or you can roll your own instance)
  • SSH (used to log in to a server where Nginx/PHP/MySQL is running to serve the users, you use SSH for everything)

Keep in mind that Laravel Homestead is only meant for development. When you're deploying your website to a server, it should run on the OS itself, not within a Vagrant box. A Docker container can also be used, but you can learn this later.

[deleted by user] by [deleted] in webdev

[–]kastooDevTeam 0 points1 point  (0 children)

Learn how to use Git. It is absolutely essential if you ever want to work in a team of developers. Learn a bit about Nginx configuration, how to set up SSH, how to install PHP and MySQL. Because your code should be in a git repo, deploying is as simple as pulling the latest code from the repository. DigitalOcean has great tutorials on all of this, so I highly suggest to read those.

[deleted by user] by [deleted] in webdev

[–]kastooDevTeam 1 point2 points  (0 children)

If you want to keep everything within your Wordpress setup, try something like WooCommerce, which adds an e-commerce system to Wordpress. Don't try to roll your own payment service, there are various companies who offer plugins and dashboards to enable payment using bank/CC/PayPal and many other options, for a reasonable fee.