Friday, November 27, 2020

low cost microscopes

1. smart design https://www.osapublishing.org/DirectPDFAccess/73B7846B-A422-B22A-AA38B1E6131DE5F9_429869/boe-11-5-2447.pdf?da=1&id=429869&seq=0&mobile=no 2. not fancy https://www.instructables.com/ARPM-Another-raspberry-pi-microscope-made-from-Ple/ control of motion (for adujustment of focus): https://www.robotshop.com/community/forum/t/retracting-linear-actuator-with-raspberry-pi/43024/6 Since you want to control the speed and the position of the actuator, I would recommend using a linear actuator including a potentiometer like this one: https://www.robotshop.com/en/l16-linear-actuator-351-50mm-12v-w--potentiometer-feedback.html 89 This will allow you to track the position of the actuator. Note that you will need a microcontroller to read the value of the potentiometer. To control the speed of the actuator I would recommend any regular DC motor driver depending on the specifications of the actuator.

Friday, October 23, 2020

Earphone (Windows sonic for headphones) is back again!

For a while, my Dell laptop does not recognize any earphones after some update of windows. I tried to fixed but failed till today. Here is the link to how to: https://answers.microsoft.com/en-us/windows/forum/all/windows-10-spatial-sound-options-greyed-out/4a3045fc-92ce-4f7a-a9ba-9adc79c3dd8d It seems the driver was not correct, but when you updated it, there is a trick. See below the complete solution. Hi, Thank you for writing to Microsoft Community Forums. I appreciate you for providing the details and the screenshot to help us in understanding this issue, we will look into this for you. However, in order to get clarity and to find the root cause of the issue, please reply with the answers to the questions below. What is the make and model of your system? Was there any major change or an update on your system prior to which you weren’t facing this issue? Meanwhile, this issue could occur if Mono Audio is enabled within the Windows Settings. Hence, I would suggest you to toggle Off the Turn on mono audio if it is set to On, by going to Settings > Ease of Access > Audio and check if it helps. I would also recommend you to click on the Enhancements tab under Speakers / Headphones Properties and check if all the enhancements are turned Off. If the issue persists, I would suggest you to install the default Windows audio device driver and check if you are able to enable the Spatial Sound. To do that please follow the steps below. Steps to install High Definition Audio Device driver: Press the Windows key and R key, this will open the Run dialogue box for you. Type devmgmt.msc and press Enter, this will open the Device Manager. Expand Sound, video and game controllers, right-click on the driver that is installed and select Update driver. Select Browse my computer for driver software. In the upcoming window, click on Let me pick from a list of available drivers on my computer. This will open a window for you to select a device driver that you want to install for your hardware. Select High Definition Audio Device and click on Next. Follow the onscreen procedure to complete the installation. Restart the system and check if you are able to enable the Spatial Sound feature. If the issue still persists, please get back to us with the results of the troubleshooting steps suggested above along with the screenshot of the Device Manager window, keeping ‘Sound, video and game controllers’ expanded. Note: When including the screenshot in your response, kindly make sure that there are no personally identifiable information within the screenshot. We await your response. Aaron Summith Microsoft Community – Moderator

Friday, October 9, 2020

how to remove all hyperlinks in word

it is simple: select all, then ctrl+shift+F9

Sunday, September 6, 2020

how to make gradient dots in illustrator

https://shirtoid.com/tutorials/halftone-gradient-in-illustrator/

Saturday, August 22, 2020

how to make a list of stringes for box plot

str1='G7f'; str2='XCaMP'; group=[repmat({str1},3,1);repmat({str2},3,1)]; result is: 'G7f' 'G7f' 'G7f' 'XCaMP' 'XCaMP' 'XCaMP' However, if you use group=[repmat(str1,3,1),repmat(str2,3,1)]; the result will be 'G7fXCaMP' 'G7fXCaMP' 'G7fXCaMP'

Tuesday, August 11, 2020

Commands to summon matlab from cluster commuting

From the terminal of the linus type: bsub -XF -n1 matlab -desktop

Thursday, July 30, 2020

Use of complex number to resolve a practical problem

In analyzing the tuning response of visual cortex neurons, there is a need to find the preferred direction and the opposition as well as orthognal directions. This is not an easy task, but could be conveniently achieved by using complex numbers. When you find the preferred direction through gaussian fitting, you could create a complex vector y1Tmp=exp(1i*(y1-1)*2*pi/angleNO). Then find the opposition direction:y2=angle(y1Tmp*exp(1i*pi)). The orthognal direction is y3=angle(y1Tmp*exp(1i*pi/2)). And the other orthognal direction is y4=angle(y1Tmp*exp(-1i*pi/2)). This way we could easily calculate the Orientation Selectivity of neurons.