Friday, 1 June 2018

linux - Echo/Pipe command output to Serial line

I have a serial device running on 115200 baud at /dev/ttyUSB0. I need to Pipe the output of a command to it. I Need somthing like:


command-that-gives-stdout | command-that-puts-stdin-to-serial --baud 115200 /dev/ttyUSB0

Thanks Ahead for your help!


Additional info:
I have a grbl Sheild runing off of an arduino. It controlls a CNC machine. I Can send GCode to the arduino via the serial connection (/dev/ttyUSB0 running on 115200 baud). I normally send gcode via the arduino ide's serial monitor. I have Several python files for generating gcode, and they output to the stdout. I could just copy&paste the gcode, but a lot of people that will be using it may get confused by this.

windows - Can I specify a destination with the ftp get command?


For example, like Windows COPY "source" "target"?


or is it two steps?
Use get to download to current directory
Then do a copy to move to another location on my computer?



Answer



You should be able to specify the path along with the local file name (see here) for Get. If that doesn't work you may have to first change your local working directory using the LCD command, and then use Get with or without just a local file name (no path).


networking - Virtualbox: Connecting Host-Only networks on separate hosts


If i create multiple ubuntu guests on the same host (windows 7), all with a network adapter configured as "Host-Only" the result is that all guests in the host can ping each other


On windows 7 host, with ipconfig i see something like


Ethernet adapter Local Area Connection:


   Connection-specific DNS Suffix  . : wr
Link-local IPv6 Address . . . . . : ......
IPv4 Address. . . . . . . . . . . : 10.15.38.101
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.16.2.254

Ethernet adapter VirtualBox Host-Only Network:


   Connection-specific DNS Suffix  . :
Link-local IPv6 Address . . . . . : .........
IPv4 Address. . . . . . . . . . . : 192.168.56.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

and in fact all guests show their ip to be on the 192.168.56.X subnet.


Question: is it possible to easily connect guests running on different hosts with this Host-Only network which are accessible through LAN?



Answer



The short answer is no. You can't use "Host-Only Networking" and connect guests on multiple, physical hosts. You are probably better off using bridged networking if you need to connect the guests to your LAN.


If you could provide more details of what you are trying to accomplish we could perhaps make a better recommendation.


browser - Chrome Tab Ordering?


If I'm on the first tab, and I hit Ctrl+T, I want it to open next to (to the right of) the current tab. Is there an extension for this?


I think I want to change the closed tab ordering too... but I can never remember how I like it until I play with it. I think move to the left tab is what I like.


TabMixPlus gives me these options in FF, is there a similar extension available yet? Or some hidden options in Chrome?



Answer



This is not (yet) a configurable option, and it would not be possible to make an extension for this at this time. Chrome extensions (unlike Firefox ones) cannot alter the behavior of the actual browser, so this sort of thing won't be possible until (if) Google changes the way their extension system works. You'll have to use @Michelle's workaround until then.




Edit: It looks like there is now an extension that does this: Tab to the next. Also, TabsPlus selects the last-used tab after you close the current one, if that's what you're interested in.


windows - How can I get the product keys for software on my PC?

How can I find the product keys for my Windows operating system and software installed, like Office, Adobe Creative Suite, and other software which requires an activation key?

Does Windows 8 really shutdown?



I have Windows 8 Pro installed on a laptop and i use it for hours at a time, like in 8 - 10 hour periods before shutting down or restarting. I'm as usual impressed with the incredible startup speed which is 4 times my Windows 7 startup speed before upgrading. However, on several occasions i have noticed that the uptime displayed by the task manager in Windows 8 does not correspond with the exact time i started it. For example, i powered on the laptop for about 2 hours since my last use and the uptime was well over 11 hours (I am sure i hit the shutdown button and its functionality is set to shutdown the pc).


enter image description here


Checking the duration of my internet connectivity proved i was right, it was nearly 2 hours.


enter image description here


So i am asking, does Windows 8 really shutdown? Or does it go into some form of hibernation to enable it to start faster?



Answer



Windows 8 is based on a hybrid startup/shutdown process. It doesn't actually turn off the same way as on the previous Windows version(s). Windows 8 shutdown "saves" running services and drivers loaded to something like a hiberfile and resumes it on the next "fast startup". This is well explained on this site:



The reason for this speedy behavior is in the way Windows 8 shuts down. The new shutdown is similar to hibernation found in the current and older version of Windows, except it does save and re-open all your apps upon startup. Instead of saving everything, Windows 8 saves just the OS kernel in a file on the hard drive and then uses it to while booting up, speeding the whole processing considerably. Windows 8 also makes full use of multi-core processors to load the hibernation file. Also, since it does not save your applications, the hibernation file is also much smaller than usual.



By having these "previous services and drivers saved" on the hybrid startup, Windows 8 doesn't need to step over all the system initialization processes, starting services and drivers, it just "resumes" it:


enter image description here


64 bit - 64-bit OS on a 32-bit processor


Can we install a 64-bit OS in a system having 32-bit processor?



Answer



The only option would be emulation (such as qemu), but that requires a 32bit system underneath, and won't be very useful in practice (very slow, RAM still limited)


Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...