Sunday, 15 December 2019

Windows 10 disable automatic reboot after system update


Try the process below:
1. Press Windows key + R keyboard shortcut to open the Run command.
2. Type the following path and click "OK":
%windir%\System32\Tasks\Microsoft\Windows\UpdateOrchestrator
3. Select the
Reboot ) (it does not have an extension)
file right-click it and select "Rename".
4. Rename the Reboot file to "Reboot.old".
5. Right-click inside the folder, select "New," and click on "Folder".
6. Name the New Folder "Reboot".
7. Now restart your computer.

This will disable Window's ability to restart automatically.

source: https://answers.microsoft.com/en-us/windows/forum/all/disable-windows-10-automatic-restart-after-updates/16f1826d-a796-4de8-ac99-1d625420d265

Saturday, 14 December 2019

Fixing tensorflow path

run this command
set PYTHONPATH=C:\tensorflow1\models
set PYTHONPATH=C:\tensorflow1\models\research
set PYTHONPATH=C:\tensorflow1\models\research\slim
run the following commands from the C:\tensorflow1\models\research directory:
C:\tensorflow1\models\research> python setup.py build
C:\tensorflow1\models\research> python setup.py install


up/downgrade tensorflow


pip show tensorflow
(to check version -- be sure to pay attention to which virtual environment you're in (activate/deactivate))

then use:

pip3 install tensorflow==1.15.0
source: https://stackoverflow.com/questions/58001318/no-attribute-contrib-for-problems


AttributeError: module 'tensorflow' has no attribute 'app'


I am following this tutorial and doing a project on custom object-detection using tensorflow.
So when I tried to create TF record for the train images using the following command
python3 generate_tfrecord.py --csv_input=data/train_labels.csv --output_path=data/train.record
I get the following error:
Traceback (most recent call last):
  File "generate_tfrecord.py", line 23, in <module>
    flags = tf.app.flags
AttributeError: module 'tensorflow' has no attribute 'app'


--

try using import tensorflow.compat.v1 as tf

source: https://stackoverflow.com/questions/58258003/attributeerror-module-tensorflow-has-no-attribute-app

Sunday, 24 November 2019

Fixing drawstring bands

Avoid the problem entirely by tying good knots from the start.

But, if a drawstring does get stuck: the trick is to restring by taping the band to the inner ink container of a pen (or another thin, pointy, skinny, flexible rod) and threading the rigid object through as a carrier for the soft object.

source: https://www.instructables.com/id/How-to-fix-a-drawstring-waistband/

Tuesday, 29 October 2019

TensorFlow + NumPy compatibility

error:
>>> import tensorflow as tf
~/.local/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])
~/.local/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
~/.local/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint16 = np.dtype([("qint16", np.int16, 1)])
~/.local/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
~/.local/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint32 = np.dtype([("qint32", np.int32, 1)])
~/.local/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  np_resource = np.dtype([("resource", np.ubyte, 1)])

solution:
Do you have multiple versions of numpy installed in your system?
pip show numpy
Can you uninstall all numpy versions and later install numpy==1.16.4?
pip uninstall numpy (till you uninstall all versions)
pip install numpy==1.16.4

source:
https://github.com/tensorflow/tensorflow/issues/31249

Wednesday, 2 October 2019

Find out what graphics card your windows computer has

How do I find out which graphics card and driver my Windows pc has?
If you are not sure which card is in the computer, the exact name of your graphics card is available in the Windows Display Settings, that you can find through the Control Panel. You can also run Microsoft's DirectX diagnostic tool to get this information:

From the Start menu, open the Run dialog box.
Type dxdiag
Click on the Display tab of the dialog that opens to find graphics card information.

source: https://www.cisco.com/c/en/us/td/docs/telepresence/endpoint/articles/cisco_telepresence_movi_find_out_graphics_card_driver_on_windows_pc_kb_540.html

Monday, 10 June 2019

How to change my mouse wheel scroll rate?


The fix for me for this (I had it for months) was pretty surreal and like most folks I didn't believe it until I did it:
Some MS mice have a scrollwheel bug.
Try unplugging the USB cable / dongle then plug back in.
Also, I noticed that if you have the dongle plugged in to the computer and the mouse has an on-off mechanism then you can just turn the mouse off and back on. That resets the data link between the mouse and dongle.

source: https://askubuntu.com/questions/22589/how-to-change-my-mouse-wheel-scroll-rate

Monday, 11 March 2019

tutorial for creating a bootable USB Stick on Windows for Ubuntu

Rufus (software for configuring your USB device) seems to be more reliable than some of the other options available on the internet.

source: https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-windows#0

wifi drops on its own in ubuntu

Seems like it has to do with a default 'power management' option.

  1. sudo ifconfig wlp4s0 down
  2.  
  3. sudo iwconfig wlp4s0 power off
  4.  
  5. sudo ifconfig wlp4s0 up
  6.  
  7. sudo service network-manager restart


source: https://www.quora.com/Why-does-my-WiFi-get-disconnected-on-its-own-in-Ubuntu

Friday, 8 March 2019

'gazebo' in terminal doesn't run properly

gazebo: symbol lookup error: /usr/lib/x86_64-linux-gnu/libgazebo_common.so.9: undefined symbol: _ZN8ignition10fuel_tools12ClientConfig12SetUserAgentERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE



ignition-math version is out of date. sudo apt upgrade libignition-math2



source: https://bitbucket.org/osrf/gazebo/issues/2448/problem-running-gazebo7

Tuesday, 5 March 2019

Mouse click wasn't working properly




If the mouse is working in Safe Mode, there is likely a driver or software conflict. To fix this problem, follow the steps below. Expand the mouse (mice) option in Device Manager by clicking the + symbol. Remove all mice listed by highlighting each device and then pressing the delete key on the keyboard.

> reinstalling driver worked.

source: https://www.computerhope.com/issues/ch000254.htm

Thursday, 28 February 2019

github desktop ui stuck in loop when .git path is updated to something invalid

File/Edit/etc toolbar still appear to function. Can delete the existing repository to exit the loop. Then re-clone the appropriate origin.


source: self

git - "Commit failed - exit code 1 received"

most occurrences should be due to having nested .git directories



source: https://github.com/desktop/desktop/issues/4432

Saturday, 16 February 2019

See changes to a specific file using git


git diff

source: https://stackoverflow.com/questions/8048584/see-changes-to-a-specific-file-using-git

change font for powershell

In Windows 8.1, go to the Start Screen, type powershell. On the Windows PowerShell result, right on it and select Run as administrator. Once the window opens on your desktop, right-click on the blue icon in the top left corner and select Properties.

powershell-font-size

source: https://www.thewindowsclub.com/powershell-font-window-too-small

forcibly reset everything to your last commit

git reset --hard HEAD



source: https://stackoverflow.com/questions/2125710/how-to-revert-a-git-rm-r

Thursday, 7 February 2019

Convert from .obj to .stl

Get Blender.
  • Start it
  • Hit delete to get rid of the cube
  • File, Import, OBJ, your object
  • File, export, STL, your filename
Bonus points for repairing it with the 3D printing toolbox: https://tamarintech.com/article/blender_3d_toolbox


source: https://www.reddit.com/r/3Dprinting/comments/3pwxa7/need_help_converting_a_obj_to_stl/cwa59oq/

Wednesday, 6 February 2019

Locating a lost android device

TLDR: go to https://www.google.com/android/find

Your locations if you have location enabled: https://www.google.com/maps/timeline

note: requires device to still have charge.

Additional info:
Google Maps timeline: https://support.google.com/maps/answer/6258979
Manage your location history: https://support.google.com/accounts/answer/3118687


sources for lost android:
. https://support.google.com/accounts/answer/3265955
. https://support.google.com/accounts/answer/6160491

Tuesday, 29 January 2019

Closing a board in trello

Close a board by selecting "Close Board" from the board menu (open the  board's menu and click the "More" button to expand the menu options). You have to be an admin of a board to close it. In Business Class teams, the team admin can also close the board.


Other board members will receive a notification that the board has been closed.


to reactivate: Once a board is closed, it is no longer visible in your Boards list and can only be accessed by clicking the Boards button at the top left of your Trello page and selecting "See closed boards..."  


source: https://help.trello.com/article/777-closing-a-board

Sunday, 27 January 2019

Increase number of recent files in task bar

Click your Start Button, type regedit and hit Enter to open the Registry Editor 

Navigate to: 
HKEY_CURRENT_USER\Software\Microsoft\ Windows\CurrentVersion\Explorer\Advanced 

On the right-side, look for an entry named JumpListItems_Maximum. 

If there is no such entry, you need to create one by right-clicking on the empty area, clicking New, clicking DWORD (32-bit) Value, and name it as JumpListItems_Maximum 

Double click that DWORD and set its value to 20 or 30 

Close the Registry Editor and restart your system


source: https://answers.microsoft.com/en-us/windows/forum/all/how-to-increase-the-number-of-recent-files/2ec5e80a-c8f1-4e25-bd5e-4c98169a520e

Sunday, 20 January 2019

Getting grayscale image from optitrack camera


Yes, all OptiTrack cameras have the capability of transmitting the entire grayscale frame to the host PC. Motive or the Camera SDK provides the ability to select the video mode and access the data. Furthermore, MJPEG grayscale video is also supported for transmitting downsampled images in order to reduce network traffic.
source: https://optitrack.com/support/faq/general.html

note: helps with identifying false positives for the IR markers.

Thursday, 17 January 2019

Fixing mouse click

Adjusting Mouse Click Sensitivity

  1. Display the Control Panel.
  2. Click the Hardware and Sound category.
  3. Click the Mouse link, under the Devices and Printers category. Windows displays the Mouse Properties dialog box.
  4. Make sure the Pointer Options tab is displayed. (See Figure 1.)
  5. Figure 1. The Pointer Options tab of the Mouse Properties dialog box.
You may need to play around with the settings in the dialog box a bit; the major thing to check is your pointer speed. There have been reports that if the speed is set too slow or too fast for your mouse, it can result in some erratic behavior—like that reported by Donna.

source: https://windows.tips.net/T013387_Adjusting_Mouse_Click_Sensitivity.html




  1. Open the Control Panel.
  2. Click Hardware and Sound
  3. Click Mouse
  4. In the Mouse Properties click the Activities tab and drag the slider left to slow down the mouse double-click speed or right to speed up the mouse double-click speed.
Mouse double-click speed

source: https://www.computerhope.com/issues/ch000816.htm

Tuesday, 15 January 2019

google groups - making emails accessible to managers in addition to owners


It appears that there were restrictions set (perhaps accidentally) so that only the owner of the group can view e-mail addresses.

As a manager of the group, could you try fixing this by:
  • After entering "Manage" in the main group page, scroll down to "Permissions".
  • Expand the "Permissions" tree, and then select "Access permissions". 
  • Within this webpage, should be a section named "View Member Email Addresses"
  • Activate the "Select groups of users" button, and select "Managers of the group"
  • Activate the "Save" button to save your changes

source: https://groups.google.com/forum/#!topic/accessible/B38WfM8Cy8c

Monday, 14 January 2019

error with package installation due to Environment error

Problem:

Could not install packages due to an Environment error :[error 13]: permission denied 

Solution:
pip install --user package-name

source: https://stackoverflow.com/questions/50807507/could-not-install-packages-due-to-an-environment-error-error-13-permission-d

Clearing out Synaptic lock files

Problem:
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?  

You can delete the lock file with the following command:
sudo rm /var/lib/apt/lists/lock
You may also need to delete the lock file in the cache directory
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
After that, try opening Synaptic again.

source: https://askubuntu.com/questions/15433/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process