<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Stack All Flow</title>
    <description>The latest articles on DEV Community by Stack All Flow (@stackallflow).</description>
    <link>https://dev.to/stackallflow</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F759395%2Ffa2d73eb-76f4-435f-885b-cf75e72314c5.jpg</url>
      <title>DEV Community: Stack All Flow</title>
      <link>https://dev.to/stackallflow</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/stackallflow"/>
    <language>en</language>
    <item>
      <title>controlling motor with PWM?</title>
      <dc:creator>Stack All Flow</dc:creator>
      <pubDate>Mon, 28 Mar 2022 03:47:12 +0000</pubDate>
      <link>https://dev.to/stackallflow/controlling-motor-with-pwm-3ali</link>
      <guid>https://dev.to/stackallflow/controlling-motor-with-pwm-3ali</guid>
      <description>&lt;p&gt;I am using a &lt;a href="https://stackallflow.com/reference/38987"&gt;RCS-Model-M2313 R/C Servo&lt;/a&gt; and I have managed to create a PWM. My problem is that my motor doesn’t react as I was expecting. I would like to control the motor angle with the duty cycle but it doesn’t work.&lt;br&gt;&lt;br&gt;
 Indeed, with a 28% duty cycle, a 550 Hz frequency, 1.7V offset, a 3.3V signal from my MCU I can control it to come back to the same position. I have powered the servo with a 3.7 tension.&lt;br&gt;&lt;br&gt;
 When I change the duty cycle, the motor turn but doesn’t stop anymore.&lt;/p&gt;

&lt;p&gt;The datasheet doesn’t give any information, I really need your advices.&lt;br&gt;&lt;br&gt;
 Thank you.&lt;br&gt;&lt;br&gt;
 Regards,&lt;br&gt;&lt;br&gt;
 Mattew&lt;/p&gt;

&lt;h2&gt;
  
  
  Accepted Answer:
&lt;/h2&gt;

&lt;p&gt;Your frequency is way too high, or conversely, you are not waiting long enough between pulses. You should be sending a 1 to 2 ms pulse every 20 to 50 ms. Note that this means 50 Hz maximum.&lt;/p&gt;

&lt;p&gt;Also, your “1.7 V offset” makes no sense. These pulses should generally be 0 to 5 V digital signals. I followed the link you provided, but that only goes to a product sell page not a datasheet, so we can’t tell exactly what voltage levels the digital signal must be. When in doubt with hobby servo units, use 5 V logic.&lt;/p&gt;

&lt;p&gt;Try a 1 ms pulse every 20 ms. That should send the arm to one end. Then try 2 ms every 20 ms. That should send the arm to the other end. Try it with the 3.3 V signal straight out of your processor and see if that works. If it doesn’t, make it a 0-5 V signal instead. That really should work if everything else is hooked up right. If you don’t have a level translator chip, you can rig up something with a NPN transistor and pullup resistor. That will invert, but just invert the processor output to compensate. A HCT (note the T) logic gate powered at 5 V can also be used as a 3.3 V to 5 V converter.&lt;/p&gt;

&lt;p&gt;Are you sure the processor power is properly filtered so that the current spikes the motor draws doesn’t effect it? A schematic and scope traces with a clear description of what happens in each case would help a lot.&lt;/p&gt;

&lt;h1&gt;
  
  
  Electronic #controlling #motor #PWM
&lt;/h1&gt;

&lt;p&gt;The post &lt;a href="https://stackallflow.com/electrical-electronics/controlling-motor-with-pwm/"&gt;controlling motor with PWM?&lt;/a&gt; appeared first on &lt;a href="https://stackallflow.com"&gt;Stack All Flow&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>electricalelectronic</category>
      <category>controlling</category>
      <category>motor</category>
      <category>pwm</category>
    </item>
    <item>
      <title>arduino – Does it make sense to plot the angle in an signal spectrum analyzer?</title>
      <dc:creator>Stack All Flow</dc:creator>
      <pubDate>Mon, 28 Mar 2022 03:37:49 +0000</pubDate>
      <link>https://dev.to/stackallflow/arduino-does-it-make-sense-to-plot-the-angle-in-an-signal-spectrum-analyzer-3bid</link>
      <guid>https://dev.to/stackallflow/arduino-does-it-make-sense-to-plot-the-angle-in-an-signal-spectrum-analyzer-3bid</guid>
      <description>&lt;p&gt;I’ve built a toy oscilloscope with an Arduino, acquiring the samples with the ADC and plotting the spectrum on my computer. The spectrum is the output of the FFT algorithm. You can &lt;a href="https://stackallflow.com/reference/38986"&gt;see a video here&lt;/a&gt; of the program in action.&lt;/p&gt;

&lt;p&gt;The yellow line is the actual value of each sample as the output from the Arduino’s ADC. The red line is the magnitude of each complex number as the output from the FFT function, and the green plot is the angle of each of those complex numbers. The first spike is noise from the AC main power line, which is 50 Hz.&lt;/p&gt;

&lt;p&gt;The red plot shows the “energy” of each frequency. What information does the angle shows? Is there an intuitive explanation?&lt;/p&gt;

&lt;h2&gt;
  
  
  Accepted Answer:
&lt;/h2&gt;

&lt;p&gt;In this case, the absolute angle you are plotting is relative to the phase at which you are taking samples with your ADC. By the way, it looks like your sample rate isn’t very stable, judging from how much the speed of the waveform moving across the display varies.&lt;/p&gt;

&lt;p&gt;It would probably be more useful if you were to provide a triggering function for your oscilloscope, so that you get a stable waveform display to begin with, and then display &lt;em&gt;relative&lt;/em&gt; phase, perhaps taking the phase of the largest magnitude peak as your “zero” reference angle.&lt;/p&gt;

&lt;p&gt;Keep in mind that the phase information in FFT bins that have low magnitude values is mostly the result of low-level noise, and won’t be very relevant to the overall signal analysis.&lt;/p&gt;

&lt;h1&gt;
  
  
  Electronic #arduino #sense #plot #angle #signal #spectrum #analyzer
&lt;/h1&gt;

&lt;p&gt;The post &lt;a href="https://stackallflow.com/electrical-electronics/arduino-does-it-make-sense-to-plot-the-angle-in-an-signal-spectrum-analyzer/"&gt;arduino – Does it make sense to plot the angle in an signal spectrum analyzer?&lt;/a&gt; appeared first on &lt;a href="https://stackallflow.com"&gt;Stack All Flow&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>electricalelectronic</category>
      <category>analyzer</category>
      <category>angle</category>
      <category>arduino</category>
    </item>
    <item>
      <title>How to display SMD footprints in Eagle CAD as separate layer instead TOP or BOTTOM?</title>
      <dc:creator>Stack All Flow</dc:creator>
      <pubDate>Mon, 28 Mar 2022 03:27:39 +0000</pubDate>
      <link>https://dev.to/stackallflow/how-to-display-smd-footprints-in-eagle-cad-as-separate-layer-instead-top-or-bottom-3inl</link>
      <guid>https://dev.to/stackallflow/how-to-display-smd-footprints-in-eagle-cad-as-separate-layer-instead-top-or-bottom-3inl</guid>
      <description>&lt;p&gt;I would like to print Pads, Vias, SMD footprints altogether so that I can apply UV solder mask on board. The problem is that the SMD footprints is part of TOP layer.&lt;/p&gt;

&lt;p&gt;What to do?&lt;/p&gt;

&lt;p&gt;Looks like correct layer would be tStop, but it appears stripped instead of filled. Looks like I should use some image editing software to fill those pads manually.. .&lt;/p&gt;

&lt;h2&gt;
  
  
  Accepted Answer:
&lt;/h2&gt;

&lt;p&gt;As the others have pointed out, the correct layer to use for solder mask are &lt;code&gt;tStop&lt;/code&gt; and &lt;code&gt;bStop&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;In many cases these layers are visualised in Eagle as hatched lines which is not what you want for printing. However it is very easy to remove this and print them out as solid. Simply check the &lt;code&gt;Solid&lt;/code&gt; option in the print dialog:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://stackallflow.com/reference/38985"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yIkdOpoT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.stack.imgur.com/sqcv4.png" alt="Printing Solid" width="154" height="204"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Electronic #display #SMD #footprints #Eagle #CAD #separate #layer #TOP #BOTTOM
&lt;/h1&gt;

&lt;p&gt;The post &lt;a href="https://stackallflow.com/electrical-electronics/how-to-display-smd-footprints-in-eagle-cad-as-separate-layer-instead-top-or-bottom/"&gt;How to display SMD footprints in Eagle CAD as separate layer instead TOP or BOTTOM?&lt;/a&gt; appeared first on &lt;a href="https://stackallflow.com"&gt;Stack All Flow&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>electricalelectronic</category>
      <category>bottom</category>
      <category>cad</category>
      <category>display</category>
    </item>
    <item>
      <title>Thermo Electric Can Heater / Cooler Heating vs Cooling Speed?</title>
      <dc:creator>Stack All Flow</dc:creator>
      <pubDate>Mon, 28 Mar 2022 03:17:39 +0000</pubDate>
      <link>https://dev.to/stackallflow/thermo-electric-can-heater-cooler-heating-vs-cooling-speed-5gc3</link>
      <guid>https://dev.to/stackallflow/thermo-electric-can-heater-cooler-heating-vs-cooling-speed-5gc3</guid>
      <description>&lt;p&gt;I recently purchased a cheap (~$25) 36W thermoelectric cup holder designed to heat or cool a soda can sized object. It works very quickly for cooling and draws about 3A at 12V. For heating, it heats about 4 times slower and draws only about 0.7A. The fan only runs when it is in cooling mode. According to the vendor, it is not unusual for it to heat slower than it cools, and it is normal for the fan not to run in heating mode.&lt;/p&gt;

&lt;p&gt;The lack of fan and lower current in heating mode leads me to believe that either it is not using the TEC for heating mode, or that for some reason it only runs the heating mode at 1/4 the TEC capacity.&lt;/p&gt;

&lt;p&gt;Is there any reason why it would be advantageous to add a separate resistance heater or to run the TEC at 1/4 capacity without the fan for heating purposes? It seems that it would be best to have it heat something as quickly as it cools it by just changing the direction of the current in heating mode.&lt;/p&gt;

&lt;p&gt;Eventually I will probably take it apart to see what it is really doing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Accepted Answer:
&lt;/h2&gt;

&lt;p&gt;It takes more energy to get from room temperature to hot drink temperature than it does to get from room temperature to cold drink temperature, so given the same thermal transfer rate, heating a drink will take longer to begin with.&lt;/p&gt;

&lt;p&gt;Peltiers are pretty cool things. The difference between performance in heating and cooling mode likely has to do with several factors. Peltiers have fairly strongly defined optimal operating currents.&lt;/p&gt;

&lt;p&gt;At too low a current, the thermal conduction losses of the peltier will dominate, determined by thermal conductivity and temperature differential along with convection as the interior grid of the peltier is likely not insulated.&lt;/p&gt;

&lt;p&gt;At too high a current, the heat the peltier produces due to $I^2R$ losses through the little bismuth cubes will dominate.&lt;/p&gt;

&lt;p&gt;Used as a cooling element, a peltier is a relatively inferior device in terms of efficiency but gets used because of the lack of moving parts, tiny form factor and electrical versatility.&lt;/p&gt;

&lt;p&gt;Look at the way it operates in cooling mode. The heat is pumped out of the cold side of the peltier and into the hot side heatsink. The cooler you keep the hot side of the peltier, the better your efficiency will be. The hotter the heat sink gets, the more difference there will be between its temperature and ambient, and the more heat will be shed into a given volume of air. Note that all losses in the system will contribute to higher heatsink temperature. In this mode there is great value to moving air across the heatsink.&lt;/p&gt;

&lt;p&gt;Used as a heating element, a peltier has the very special property of offering better than 100% electrical heating efficiency. You don’t have to pay for all of the watts of heat with watts of electricity, but it does have to come from somewhere. I’m guessing this is where they’ve gone with having the device work slower in heating mode. They are avoiding the efficiency losses with using the fan (temperature differential between heatsink and ambient will be smaller in heating mode than in cooling mode and all thermal losses in the system will &lt;em&gt;decrease&lt;/em&gt; the temperature differential and therefore decrease the value of using the fan. With a resistive heating element added, you would be able to trade off efficiency to heat the liquid more quickly.&lt;/p&gt;

&lt;p&gt;As a final thought, in heating mode, the colder the cold side becomes, the greater the temperature differential over the peltier becomes without the liquid inside the device having to change temperature at all. The total heating ability of the peltier alone is limited to its own losses plus available external thermal energy. They are not incredibly durable devices, being composed of hard ceramic and somewhat brittle metal cubes and they are not immune to the thermal stresses from the differentials they create over themselves. The current the device operates at in heating mode may minimize these stresses, and using a resistive heater would allow the stresses to be minimized by having the heat that otherwise must be produced by losses that could be stressing the peltier produced elsewhere. On the other hand if the heatsink was shielded, you could attempt to drive it far enough below ambient to make using the fan worthwhile to speed up a portion of the heating sequence at a still-higher-than-100% electrical efficiency at risk of stressing the peltier. If you are going to use high temperature differentials, good practice is to cut grooves partway through the ceramic plates in a grid so that if the plate cracks it will crack along these lines. The grooves should be aligned between bismuth cubes and as much as possible not cross copper plates on the side being cut.&lt;/p&gt;

&lt;h1&gt;
  
  
  Electronic #Thermo #Electric #Heater #Cooler #Heating #Cooling #Speed
&lt;/h1&gt;

&lt;p&gt;The post &lt;a href="https://stackallflow.com/electrical-electronics/thermo-electric-can-heater-cooler-heating-vs-cooling-speed/"&gt;Thermo Electric Can Heater / Cooler Heating vs Cooling Speed?&lt;/a&gt; appeared first on &lt;a href="https://stackallflow.com"&gt;Stack All Flow&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>electricalelectronic</category>
      <category>cooler</category>
      <category>cooling</category>
      <category>electric</category>
    </item>
    <item>
      <title>Disable smooth fading when changing brightness of MacBook Pro Screen?</title>
      <dc:creator>Stack All Flow</dc:creator>
      <pubDate>Tue, 01 Mar 2022 22:32:14 +0000</pubDate>
      <link>https://dev.to/stackallflow/disable-smooth-fading-when-changing-brightness-of-macbook-pro-screen-1j5g</link>
      <guid>https://dev.to/stackallflow/disable-smooth-fading-when-changing-brightness-of-macbook-pro-screen-1j5g</guid>
      <description>&lt;p&gt;I’m on a late 2013 15″ MacBook Pro with Retina Display.&lt;/p&gt;

&lt;p&gt;Is there any way of disabling/enabling whether the display smoothly fades when the brightness keys are hit (F1 to lower, F1 to raise)? On my old computer, a late 2008 MacBook, it just snapped to the new brightness if I changed it in system preferences or used the Function Keys shortcut.&lt;/p&gt;

&lt;p&gt;I want to do this because I am in a small theatre, and when I run light cues off my computer that black out the stage, I want it to snap to near-zero brightness, as opposed to the higher brightness I need to have it set to when the lights are up to prevent the screen from being washed out. I am setting the brightness via applescript.&lt;/p&gt;

&lt;h2&gt;
  
  
  Accepted Answer:
&lt;/h2&gt;

&lt;h1&gt;
  
  
  Disable #smooth #fading #changing #brightness #MacBook #Pro #Screen
&lt;/h1&gt;

&lt;p&gt;The post &lt;a href="https://stackallflow.com/ask-different/disable-smooth-fading-when-changing-brightness-of-macbook-pro-screen/"&gt;Disable smooth fading when changing brightness of MacBook Pro Screen?&lt;/a&gt; appeared first on &lt;a href="https://stackallflow.com"&gt;Stack All Flow&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>askdifferent</category>
      <category>brightness</category>
      <category>changing</category>
      <category>disable</category>
    </item>
    <item>
      <title>IMac that slow – is that normal?</title>
      <dc:creator>Stack All Flow</dc:creator>
      <pubDate>Tue, 01 Mar 2022 22:22:18 +0000</pubDate>
      <link>https://dev.to/stackallflow/imac-that-slow-is-that-normal-4ob7</link>
      <guid>https://dev.to/stackallflow/imac-that-slow-is-that-normal-4ob7</guid>
      <description>&lt;p&gt;I have a iMac Retina4K from the end of 2015 with 3.1GHz Quad-Core i5 and 8GB DDR3 on 21″ with a second monitor attached, and a HDD-disk. macOS is Catalina and I am running Firefox, Adobe InDesign and Adobe Illustrator most of the time. Since I upgraded to Catalina my Mac is soooo slow that starting up in the morning until anything really runs (i.e. I am able to click on an app) takes up to 10 minutes with no applications opened yet.&lt;/p&gt;

&lt;p&gt;Opening up Illustrator works in 6 of 10 times, else it just freezes. If opened it does work okay though. Firefox freezes also on a regular basis. I never open up more then 3 applications at the same time, have no widget etc running and I got hundreds of gigabyte diskspace left.&lt;/p&gt;

&lt;p&gt;I get it, that this isn’t the newest device but shouldn’t the OS and some really simple task like opening up a browser be “there” in less then 5 minutes?&lt;/p&gt;

&lt;p&gt;My question though is a different one: If I’d set up/reinstall the Mac completely new with Catalina (as I am bound by Creative Cloud to it) should that speed up my described routine or is the current scenario just what I can expect from the combination of that hardware/software combination?&lt;/p&gt;

&lt;h2&gt;
  
  
  Accepted Answer:
&lt;/h2&gt;

&lt;p&gt;You can use Activity Monitor (in /Applications/Utilities) to see what processes are taking the most CPU and Memory, and monitor disk input and output. This may help to identify what is causing the slowness.&lt;/p&gt;

&lt;p&gt;However, the most likely cause (in the absence of any other info) is the presence of an internal mechanical hard drive, either by itself or as part of a ‘Fusion’ drive.&lt;/p&gt;

&lt;p&gt;Mechanical hard drives are much slower than modern ‘solid state’ SSDs. If your Mac has to ‘swap’ memory data to and from the disk, then this will slow things down dramatically. Also, the drive is at the end of its useful lifespan, and may show signs of failing.&lt;/p&gt;

&lt;p&gt;While taking an iMac apart to replace the drive may be of moderate difficulty, you would do better to use an external SSD. Old Thunderbolt 2 enclosure are harder to find these days, but even a USB3 SSD will be faster.&lt;/p&gt;

&lt;p&gt;Apple continued to install hard drives in iMacs for many years after it was using SSDs in its other Macs. So, in reply to the question ‘is this normal for an iMac’, the answer is sadly, yes.&lt;/p&gt;

&lt;h1&gt;
  
  
  IMac #slow #normal
&lt;/h1&gt;

&lt;p&gt;The post &lt;a href="https://stackallflow.com/ask-different/imac-that-slow-is-that-normal/"&gt;IMac that slow – is that normal?&lt;/a&gt; appeared first on &lt;a href="https://stackallflow.com"&gt;Stack All Flow&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>askdifferent</category>
      <category>imac</category>
      <category>normal</category>
      <category>slow</category>
    </item>
    <item>
      <title>IMac SSD upgrade – Firmware password lock?</title>
      <dc:creator>Stack All Flow</dc:creator>
      <pubDate>Tue, 01 Mar 2022 22:12:32 +0000</pubDate>
      <link>https://dev.to/stackallflow/imac-ssd-upgrade-firmware-password-lock-4403</link>
      <guid>https://dev.to/stackallflow/imac-ssd-upgrade-firmware-password-lock-4403</guid>
      <description>&lt;p&gt;My dad bought a used 21.5 iMac (2017) a few weeks back (previous owner bought it new but decided to sell after a week, so its basically new.) Given that it came with a 1TB fusion drive, we decided to switch it for the Samsung EVO he was using in his previous Macbook (He doesn’t need storage, only speed.)&lt;/p&gt;

&lt;p&gt;All went according to plan in terms of opening and swapping the drives, but upon rebooting (attempting to ctrl+r to boot menu) it popped the apple logo and then swapped to a black screen with a lock and password field.&lt;br&gt;&lt;br&gt;
 After a little reading on the subject it seems someone must have enabled the EFI Firmware password protection which doesn’t allow booting on other drives e.g. external or otherwise.&lt;/p&gt;

&lt;p&gt;I’ve contacted the previous owner, but she’s drawing a blank, claiming never setting up anything of the sort. I’m unsure if this can be enabled during first boot installation, but she didn’t strike me as the type who would know how to do so afterwards (let alone think about it.) My guess is that the shop might’ve had it returned from a prior owner, not reset it correctly and resold it as new (or perhaps discounted, hard to tell from the receipt.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Knowing firmware is locked with an unobtainable password …&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Would I be able to remove the new SSD and insert the original HDD and have
the password prompt go away? Or is the system locked until correct
password is entered, no matter the drive (it booted prior to
switching drives).&lt;/li&gt;
&lt;li&gt;Warranty void on opening and swapping diskdrive? Searching around it
seems everyone has a different story. Some say the rest of the
system is still under warranty, others do not. This isn’t Apples
issue of cause, but I would likely levy it against the reseller.&lt;/li&gt;
&lt;li&gt;Even if the old HDD would work again, I’m assuming that not having
the FW password would be a roadblock if reinstalling OSX in the
future?&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Accepted Answer:
&lt;/h2&gt;

&lt;p&gt;This Apple document tells you everything you need to know about &lt;a href="https://stackallflow.com/reference/aHR0cHM6Ly9zdXBwb3J0LmFwcGxlLmNvbS9lbi11cy9IVDIwNDQ1NQ=="&gt;Firmware passwords&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The essential points for you are:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Your Mac asks for the firmware password &lt;em&gt;only&lt;/em&gt; when attempting to start up from a storage device other than the one selected in Startup Disk preferences, or &lt;em&gt;when starting up from macOS Recovery&lt;/em&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If you can’t remember your firmware password or passcode, schedule an in-person service appointment with an Apple Store or Apple Authorized Service Provider. Bring your Mac to the appointment, and bring your original receipt or invoice as proof of purchase.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The Firmware password is not required for OS installation.&lt;/p&gt;

&lt;p&gt;You will need to ask the original purchaser for their receipt or other proof of purchase.&lt;/p&gt;

&lt;h1&gt;
  
  
  IMac #SSD #upgrade #Firmware #password #lock
&lt;/h1&gt;

&lt;p&gt;The post &lt;a href="https://stackallflow.com/ask-different/imac-ssd-upgrade-firmware-password-lock/"&gt;IMac SSD upgrade – Firmware password lock?&lt;/a&gt; appeared first on &lt;a href="https://stackallflow.com"&gt;Stack All Flow&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>askdifferent</category>
      <category>firmware</category>
      <category>imac</category>
      <category>lock</category>
    </item>
    <item>
      <title>IPhone – How to view (not download) iPhone pictures on a Mac screen?</title>
      <dc:creator>Stack All Flow</dc:creator>
      <pubDate>Tue, 01 Mar 2022 22:02:18 +0000</pubDate>
      <link>https://dev.to/stackallflow/iphone-how-to-view-not-download-iphone-pictures-on-a-mac-screen-3mld</link>
      <guid>https://dev.to/stackallflow/iphone-how-to-view-not-download-iphone-pictures-on-a-mac-screen-3mld</guid>
      <description>&lt;p&gt;I have an iPhone 5 with various photos.&lt;br&gt;&lt;br&gt;
 I have a Mac desktop running OS X Yosemite.&lt;/p&gt;

&lt;p&gt;Is there a way to view a fullscreen slideshow of the photos on the Mac display? I don’t want to download the photos, just flip through them for display on the big screen.&lt;/p&gt;

&lt;h2&gt;
  
  
  Accepted Answer:
&lt;/h2&gt;

&lt;p&gt;Apple’s mandated solution would be to wait for the photos to upload to your Photo Stream or iCloud Photo Library, then start a slideshow in iPhoto or Aperture.&lt;/p&gt;

&lt;p&gt;Alternatively, you could make your Mac into an AirPlay receiver using a 3rd party app such as AirSquirrel’s &lt;a href="https://stackallflow.com/reference/aHR0cDovL3d3dy5haXJzcXVpcnJlbHMuY29tL3JlZmxlY3Rvci8="&gt;Reflector&lt;/a&gt;. This one is paid, but I’m not aware of any free equivalent.&lt;/p&gt;

&lt;h1&gt;
  
  
  IPhone #view #download #iPhone #pictures #Mac #screen
&lt;/h1&gt;

&lt;p&gt;The post &lt;a href="https://stackallflow.com/ask-different/iphone-how-to-view-not-download-iphone-pictures-on-a-mac-screen/"&gt;IPhone – How to view (not download) iPhone pictures on a Mac screen?&lt;/a&gt; appeared first on &lt;a href="https://stackallflow.com"&gt;Stack All Flow&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>askdifferent</category>
      <category>download</category>
      <category>iphone</category>
      <category>mac</category>
    </item>
    <item>
      <title>Eclipse Not Working in 16.04 in Ubuntu?</title>
      <dc:creator>Stack All Flow</dc:creator>
      <pubDate>Wed, 15 Dec 2021 19:15:00 +0000</pubDate>
      <link>https://dev.to/stackallflow/eclipse-not-working-in-1604-in-ubuntu-3ana</link>
      <guid>https://dev.to/stackallflow/eclipse-not-working-in-1604-in-ubuntu-3ana</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YWY5edlD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://eadn-wc01-5196795.nxedge.io/cdn/wp-content/uploads/2021/12/eclipse-not-working-in-16-04-in-ubuntu_11712-300x225.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YWY5edlD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://eadn-wc01-5196795.nxedge.io/cdn/wp-content/uploads/2021/12/eclipse-not-working-in-16-04-in-ubuntu_11712-300x225.png" alt="" width="300" height="225"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;6.04eclipse&lt;/p&gt;

&lt;p&gt;Eclipse was working as good as anything on 14.04. I did a clean install of 16.04 and installed Eclipse. But it runs a Java program only once after which it just hangs during subsequent attempts before I remove and reinstall it. I have tried many things, since in the beginning I needed CDT as well. Right now, I just want to remove everything related to eclipse and do a fresh install (remove all the configs and dependencies). Please note that I used Eclipse installer to install Eclipse and the eclipse icon image is also not appearing (the default ubuntu ? is appearing).&lt;/p&gt;

&lt;h4&gt;
  
  
  Accepted Answer
&lt;/h4&gt;

&lt;p&gt;I had something the same with 16.04 and Eclipse Mars. I thought it had frozen but in fact it was running very, very slowly. The problem is the version of GTK+ 3, shipped with 16.04. Fortunately the solution is very easy. Open a terminal and then type &lt;code&gt;export SWT_GTK3=0&lt;/code&gt;, then start Eclipse from the terminal. If that works, then a more persistent fix is to put the &lt;em&gt;2 lines below, as they appear&lt;/em&gt; in your &lt;code&gt;eclipse.ini&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;--launcher.GTK_version
2

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;before the line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;--launcher.appendVmargs

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The bug is filed with Ubuntu at &lt;a href="https://bugs.launchpad.net/ubuntu/+source/java-common/+bug/1552764"&gt;bug 1552764&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The post &lt;a href="https://stackallflow.com/ubuntu/eclipse-not-working-in-16-04-in-ubuntu/"&gt;Eclipse Not Working in 16.04 in Ubuntu?&lt;/a&gt; appeared first on &lt;a href="https://stackallflow.com"&gt;Stack All Flow&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ubuntu</category>
    </item>
    <item>
      <title>Is It Okay to Delete the ~/.Cache Folder in Ubuntu?</title>
      <dc:creator>Stack All Flow</dc:creator>
      <pubDate>Wed, 15 Dec 2021 18:15:00 +0000</pubDate>
      <link>https://dev.to/stackallflow/is-it-okay-to-delete-the-cache-folder-in-ubuntu-4ike</link>
      <guid>https://dev.to/stackallflow/is-it-okay-to-delete-the-cache-folder-in-ubuntu-4ike</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XmKA7EcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://eadn-wc01-5196795.nxedge.io/cdn/wp-content/uploads/2021/12/is-it-okay-to-delete-the-cache-folder-in-ubuntu_11702-300x225.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XmKA7EcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://eadn-wc01-5196795.nxedge.io/cdn/wp-content/uploads/2021/12/is-it-okay-to-delete-the-cache-folder-in-ubuntu_11702-300x225.png" alt="" width="300" height="225"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;span&gt;cache&lt;/span&gt;&lt;span&gt;home-directory&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;When I use disk usage analyzer and scan my home folder, the &lt;code&gt;.cache&lt;/code&gt; folder in my home directory always shows up with a decent bit of things in it.&lt;/p&gt;

&lt;p&gt;Would it be okay for me to delete the contents of this folder or would it damage something?&lt;/p&gt;

&lt;h4&gt;
  
  
  Accepted Answer
&lt;/h4&gt;

&lt;p&gt;To answer the question, IMO you can delete all of &lt;code&gt;.cache&lt;/code&gt; with no long term detrimental effects.&lt;/p&gt;

&lt;p&gt;If your &lt;code&gt;.cache&lt;/code&gt; is growing large, it might be better to look at the contents and determine what application is making it large and re-configure a bad acting application (rather than simply deleting &lt;code&gt;.cache&lt;/code&gt; when it grows too large).&lt;/p&gt;

&lt;p&gt;Another directory that can take up a lot of space (and/or save an embarrassing bit of evidence) is the &lt;code&gt;.thumbs&lt;/code&gt; directory. Many files in &lt;code&gt;.thumbs&lt;/code&gt; seem to be duplicates.&lt;/p&gt;

&lt;p&gt;To clean (just take care with the &lt;code&gt;-rf&lt;/code&gt; flag and other directories &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NJmeE6_C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://s.w.org/images/core/emoji/13.1.0/72x72/1f609.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NJmeE6_C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://s.w.org/images/core/emoji/13.1.0/72x72/1f609.png" alt="😉" width="72" height="72"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rm -rf ~/.thumbs/*

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When you are new to Ubuntu/Linux it is hard to know what you can and can not delete in your home directory. For the most part you can delete most anything in your home directory, programs or applications that require &lt;code&gt;.cache&lt;/code&gt; (or other dot files such as &lt;code&gt;.local&lt;/code&gt;) will re-create them.&lt;/p&gt;

&lt;p&gt;Most of the time, at worst, you will lose custom configurations, but no real harm to the system.&lt;/p&gt;

&lt;p&gt;I would not advise you start a habit of deleting things you do not understand in your home directory, back it up or use a test account. If in doubt, the safe thing would be to make a back up or move the file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mv .cache .cache_backup

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can then restore from backup if needed.&lt;/p&gt;

&lt;p&gt;Definitely do NOT start deleting things you do not understand outside of your home directory.&lt;/p&gt;

&lt;p&gt;The post &lt;a href="https://stackallflow.com/ubuntu/is-it-okay-to-delete-the-cache-folder-in-ubuntu/"&gt;Is It Okay to Delete the ~/.Cache Folder in Ubuntu?&lt;/a&gt; appeared first on &lt;a href="https://stackallflow.com"&gt;Stack All Flow&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ubuntu</category>
    </item>
    <item>
      <title>How to Set up Live Audio Streams to a Dlna Compliant Device in Ubuntu?</title>
      <dc:creator>Stack All Flow</dc:creator>
      <pubDate>Wed, 15 Dec 2021 16:53:00 +0000</pubDate>
      <link>https://dev.to/stackallflow/how-to-set-up-live-audio-streams-to-a-dlna-compliant-device-in-ubuntu-46m0</link>
      <guid>https://dev.to/stackallflow/how-to-set-up-live-audio-streams-to-a-dlna-compliant-device-in-ubuntu-46m0</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9FMkq6Dk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://eadn-wc01-5196795.nxedge.io/cdn/wp-content/uploads/2021/12/how-to-set-up-live-audio-streams-to-a-dlna-compliant-device-in-ubuntu_11698-300x225.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9FMkq6Dk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://eadn-wc01-5196795.nxedge.io/cdn/wp-content/uploads/2021/12/how-to-set-up-live-audio-streams-to-a-dlna-compliant-device-in-ubuntu_11698-300x225.png" alt="" width="300" height="225"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;span&gt;dlna&lt;/span&gt;&lt;span&gt;pulseaudio&lt;/span&gt;&lt;span&gt;rygel&lt;/span&gt;&lt;span&gt;streaming&lt;/span&gt;&lt;span&gt;upnp&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Is there a way to stream the live output of the soundcard from our 12.04.1 LTS amd64 desktop to a DLNA-compliant external device in our network? Selecting media content in shared directories using Rygel, miniDLNA, and uShare is always fine – but so far we completely failed to get a live audio stream to a client via DLNA.&lt;/p&gt;

&lt;p&gt;Pulseaudio claims to have a DLNA/UPnP media server that together with Rygel is supposed to do just this. But we were unable to get it running.&lt;/p&gt;

&lt;p&gt;We followed the steps outlined in &lt;a href="https://live.gnome.org/Rygel/Pulseaudio"&gt;live.gnome.org&lt;/a&gt;, &lt;a href="https://askubuntu.com/questions/83611/how-to-use-android-2-1-phone-as-remote-audio-receiver"&gt;this answer&lt;/a&gt; here, and also in another &lt;a href="http://chemicaloliver.net/linux/streaming-audio-from-ubuntu-linux-to-a-dlna-player-blu-ray-or-ps3/"&gt;similar guide&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;In &lt;strong&gt;12.04 LTS&lt;/strong&gt; we can select the local audio device, or our GST-Launch stream in the DLNA client but Rygel displays the following message and the client states it reached the end of the playlist:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;(rygel:7380): Rygel-WARNING **: rygel-http-request.vala:97: Invalid seek request

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There was no way to listen to live audio streams on the client.&lt;/p&gt;




&lt;p&gt;Only after a distribution upgrade to &lt;strong&gt;14.04 LTS&lt;/strong&gt; we were able to select a live stream on our DLNA renderers from settings nicely &lt;a href="https://askubuntu.com/a/485753/3940"&gt;outlined in below answer&lt;/a&gt;. Still, we needed to select an established stream &lt;strong&gt;after&lt;/strong&gt; we started rygel and were unable to push a new stream to our UPnP devices. Audio metadata were not transmitted.&lt;/p&gt;




&lt;p&gt;Are there any other alternatives for sending the audio of our soundcard as live stream to a DLNA client?&lt;/p&gt;

&lt;h4&gt;
  
  
  Accepted Answer
&lt;/h4&gt;

&lt;h3&gt;
  
  
  Pulseaudio-DLNA
&lt;/h3&gt;

&lt;p&gt;I created a little server which discovers all upnp renderers in your network and adds them as sinks to pulseaudio. So you can control every application via pavucontrol to play on your upnp devices.&lt;/p&gt;

&lt;p&gt;That’s the kind of comfort I always wanted when dealing with upnp devices under linux.&lt;/p&gt;

&lt;p&gt;The application can be installed from source or DEB package &lt;a href="https://github.com/masmu/pulseaudio-dlna"&gt;downloadable from git&lt;/a&gt;, or after we had added the project’s official &lt;strong&gt;&lt;a href="https://launchpad.net/%7Eqos/+archive/ubuntu/pulseaudio-dlna"&gt;ppa:qos/pulseaudio-dlna&lt;/a&gt;&lt;/strong&gt; to our sources with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt-get update &amp;amp;&amp;amp; sudo apt-get install pulseaudio-dlna

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We then run pulseaudio-dlna from the command line with following options:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pulseaudio-dlna [--host &amp;lt;host&amp;gt;] [--port &amp;lt;port&amp;gt;] [--encoder &amp;lt;encoder&amp;gt;] [--renderer-urls &amp;lt;urls&amp;gt;] [--debug]
pulseaudio-dlna [-h | --help | --version]

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;See also the &lt;a href="https://github.com/masmu/pulseaudio-dlna"&gt;pulseaudio-dlna “About”&lt;/a&gt; for more.&lt;/p&gt;

&lt;p&gt;When there was a DLNA renderer present we can then select it from the sound menu as an output sink:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--56QAlRp_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.stack.imgur.com/RdkgP.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--56QAlRp_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.stack.imgur.com/RdkgP.png" alt="enter image description here" width="850" height="487"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The post &lt;a href="https://stackallflow.com/ubuntu/how-to-set-up-live-audio-streams-to-a-dlna-compliant-device-in-ubuntu/"&gt;How to Set up Live Audio Streams to a Dlna Compliant Device in Ubuntu?&lt;/a&gt; appeared first on &lt;a href="https://stackallflow.com"&gt;Stack All Flow&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ubuntu</category>
    </item>
    <item>
      <title>Natural Sounding Text to Speech in Ubuntu?</title>
      <dc:creator>Stack All Flow</dc:creator>
      <pubDate>Wed, 15 Dec 2021 15:53:00 +0000</pubDate>
      <link>https://dev.to/stackallflow/natural-sounding-text-to-speech-in-ubuntu-3nbo</link>
      <guid>https://dev.to/stackallflow/natural-sounding-text-to-speech-in-ubuntu-3nbo</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6F96ELwj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://eadn-wc01-5196795.nxedge.io/cdn/wp-content/uploads/2021/12/natural-sounding-text-to-speech-in-ubuntu_11691-300x225.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6F96ELwj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://eadn-wc01-5196795.nxedge.io/cdn/wp-content/uploads/2021/12/natural-sounding-text-to-speech-in-ubuntu_11691-300x225.png" alt="" width="300" height="225"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;span&gt;software-recommendation&lt;/span&gt;&lt;span&gt;text to speech&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;I am looking for some easy to install text to speech software for Ubuntu that sounds natural. I’ve installed &lt;code&gt;Festival&lt;/code&gt;, &lt;code&gt;Gespeaker&lt;/code&gt;, etc., but nothing sounds very natural. All very synthetic and hard to understand.&lt;/p&gt;

&lt;p&gt;Any recommendations out there?&lt;/p&gt;

&lt;h4&gt;
  
  
  Accepted Answer
&lt;/h4&gt;

&lt;h2&gt;
  
  
  SVOX pico2wave
&lt;/h2&gt;

&lt;p&gt;A very minimalistic TTS, a better sounding than espeak or mbrola (to my mind). Some information &lt;a href="https://launchpad.net/ubuntu/precise/+source/svox/"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I don’t understand why pico2wave is, compared to espeak or mbrola, rarely discussed. It’s small, but sounds really good (natural). Without modification you’ll hear a natural sounding female voice.&lt;/p&gt;

&lt;p&gt;AND … compared to Mbrola, it recognise Units and speaks it the right way!&lt;br&gt;&lt;br&gt;
For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;2°C → two degrees&lt;/li&gt;
&lt;li&gt;2m → two meters&lt;/li&gt;
&lt;li&gt;2kg → two kilograms&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After installation I use it in a script:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#!/bin/bash
pico2wave -w=/tmp/test.wav "$1"
aplay /tmp/test.wav
rm /tmp/test.wav

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then run it with the desired text:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;scriptname&amp;gt;.sh "hello world"

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or read the contents of an entire file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;scriptname&amp;gt;.sh "$(cat &amp;lt;filename&amp;gt;)"

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That’s all to have a lightweight, stable working TTS on Ubuntu.&lt;/p&gt;

&lt;p&gt;The post &lt;a href="https://stackallflow.com/ubuntu/natural-sounding-text-to-speech-in-ubuntu/"&gt;Natural Sounding Text to Speech in Ubuntu?&lt;/a&gt; appeared first on &lt;a href="https://stackallflow.com"&gt;Stack All Flow&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ubuntu</category>
    </item>
  </channel>
</rss>
