Categories
Ask Chemistry

Is reverse osmosis a fancy term for filtration?

In Reverse Osmosis (RO) systems, the water to be purified is pushed against a semipermeable membrane and comes cleaner the other side, the path of water is the reverse of regular osmosis, hence the name. However, it seems to me that this process is pretty similar to a regular filtration. So, is RO just a […]

Categories
Ask Chemistry

how to compare performance of two propellants?

I want to figure out how many grams of ANFO would be needed to substitute 1 gram of nitrocellulose as a firearm propellant. I have available energy per gram of both substances and I can figure out the number of moles produced in combustion per gram for both. What should I calculate that would reflect […]

Categories
Linux Mastering Development

How to recognize ZFS on a block special file with the ‘file’ command?

Asking the file command to recognize an ext3 filesystem is no problem: # file -s /dev/sda1 /dev/sda1: Linux rev 1.0 ext3 filesystem data, UUID=1b3e5f83-ac18-47d6-86bc-9fced1f8f67a, volume name "transcend3" (needs journal recovery) (large files) But doing this on a ZFS pool vdev results in nothing: # file -s /dev/dm-3 /dev/dm-3: data How do I recognize a ZFS […]

Categories
Mastering Development

materriel -ui ToggleButton looks like button

I have a ToggleButton I want the selection to look like a button But when I put a button inside I get such an error in the console const StyledToggleButtonGroup = withStyles((theme) => ({ grouped: { margin: theme.spacing(0.5), border: ‘none’, }, }))(ToggleButtonGroup); <StyledToggleButtonGroup size="medium" value={problem} exclusive onChange={handleChange}> <ToggleButton color="red" value="technical" className={helpClasses.boxButton}> <Button size="medium" fullWidth color="primary" […]

Categories
Mastering Development

Django – you have an error in your sql syntax

I’m trying to execute a simple MySQL query that will work on MySQL, while it gives any kind of error on Django. Here is the query: Summary = myTable.objects.raw("select FROM_UNIXTIME(unixtime, ‘%%Y/%%m/%%d’) as ndate,count(id) as query_count from myTable group by ndate order by query_count DESC") This line will give me the following error: Raw query must […]

Categories
Artificial Intelligence (AI) Mastering Development

CNN keras accuracy not improving

I am trying to duplicate and learn from example given on this website . With my little modification, I am trying to simple exchange color for example like red to orange in an image. The original code does not work. I have 1500 sample of different simple images. So far I have accuracy stuck or […]

Categories
Mastering Development

Swift Async call not updating data right away

I am struggling to get the code below to work in my xcode project. The first half of the code doesn’t actually populate my code until around the cellforrowat function (not in the snippet below). Because of this the second half of the code snipit doesnt even run (because the movie array is still empty). […]

Categories
Mastering Development

Docker container ports are clashing in Kubernetes

I am deploying docker containers on a kubernetes cluster with 2 nodes. The docker containers need to have port 50052 open. My understanding was that I just need to define a containerPort (50052) and have a service that points to this. But when I deploy this, only the first 2 pods will spin up successfully. […]

Categories
Mastering Development

Potentially Inefficient For Loop C++

I noticed the below and think it is inefficient. What am I missing? I imagine there must be speed advantages I am unaware of. For context, this is production code in a brokerage firm’s API. What I saw: const unsigned MAX_ATTEMPTS = 50; unsigned attempt = 0; for (;;) { ++attempt; // logic, functions, output […]

Categories
Mastering Development

Best Operations for Rails Database and Routes

This question is more about structure than technical, but anyone who has the technical advice is most welcomed to provide any assistance. I am making a rails app that will help with a film project I am working on for locations. The main entry will be Project. Each project will have many Script Locations (the […]