Uncategorized

All Organized Things Are Set of Coincidences

Debugging TensorFlow ImportError: DLL load failed Exception

I have encountered this error at least twice on two different machines and have spent too much time tracking down all different reasons it can occur. import tensorflow<br /> Traceback (most recent call last):<br /> File "C:\...\site-packages\tensorflow\python\pywrap_tensorflow.py", line 18, in swig_import_helper<br /> return importlib.import_module(mname)<br /> File "C:\...\importlib_init_.py", line 126, in import_module<br /> return _bootstrap._gcd_import(name[level:], package, level)<br /> File "", line 986, in _gcd_import<br /> File "", line 969, in _find_and_load<br /> File "", line 958, in _find_and_load_unlocked<br /> File "", line 666, in _load_unlocked<br /> File "", line 577, in module_from_spec<br /> File "", line 906, in create_module<br /> File "", line 222, in _call_with_frames_removed<br /> ImportError: DLL load failed: The specified module could not be found.

Installing TensorFlow GPU Version on Windows

TensorFlow 1.4 installation on Windows is still not as straightforward so here are quick steps: Install Anaconda. Grab the version that has Python 3.6. After installation, you will need to downgrade to Python 3.5 as quite a few libraries like OpenCV still aren’t compatible with Python 3.6 and also TensorFlow does seem to have few issues with 3.6. So after installing Anaconda run following command to downgrade: conda install python=3.

Writing Generic Container Functions in C++11

Let’s say we want to write function to append one vector to another. It can be done like, template<typename T> void append(Vector<T>& to, const Vector<T>& from) { to.insert(to.end(), from.begin(), from.end()); } One problem with this approach is that we can only use this function with Vector. So what about all other container types? In languages such as C#, we have IEnumerable that simplifies lot of things but with C++ templates are duck typed and it takes bit more to make above function generic for various container types.

How to use Windows network share from domain joined machine on Linux

I’m seeing lot of websites with bit outdated or incomplete instructions. So here are the full steps that works for Ubuntu 14 for mounting Windows network file share on Ubuntu through active directory domain account: First you need to install cifs-utils. Check if you already have it: dpkg -l cifs-utils If not, just install it: sudo apt-get install cifs-utils You can mount Windows shares anywhere but /mnt is generally preferred.

Accessing Linux Drive/Partitions on Windows

A quick note on how to read Linux formatted drives or partitions in Windows because lot of information appears on web is outdated and probably not tested on Windows 10. Ubuntu uses ext4 file system as default so that’s primary concern as well. The two ways you can do it currently is, **Paragone Ext-FS>/a> This is professionally maintained driver + GUI tools. requires free registration. **Paragone Ext-FS>/a>

Accessing Linux Drive/Partitions on Windows

A quick note on how to read Linux formatted drives or partitions in Windows because lot of information appears on web is outdated and probably not tested on Windows 10. Ubuntu uses ext4 file system as default so that’s primary concern as well. The two ways you can do it currently is, **Paragone Ext-FS>/a> This is professionally maintained driver + GUI tools. requires free registration. **Paragone Ext-FS>/a>

Analyzing Post Times of Hacker News Data

I ran this experiment quite unintentionally on HN: Post a story on Friday evening and then post exact same story again on Monday afternoon with a slight change in URL (all timezones are in PST) . What would be your guess on difference on points in these two scenarios? Well, guess again. The post from Friday evening got 3 upvotes and the post on Monday got whooping 123 upvotes! Why 41X difference for exact same content?

Analyzing Post Times of Hacker News Data

I ran this experiment quite unintentionally on HN: Post a story on Friday evening and then post exact same story again on Monday afternoon with a slight change in URL (all timezones are in PST) . What would be your guess on difference on points in these two scenarios? Well, guess again. The post from Friday evening got 3 upvotes and the post on Monday got whooping 123 upvotes! Why 41X difference for exact same content?

Cultivated disinterest

While watching sports, I often end up asking questions like these: If this game was played all over again, would outcome be same again? How much of the game events is purely random chances? Why should I be proud for team X when I really haven’t done anything for them to win, may be except offering slice of my lifespan watching them play? If this team loses next time, why should my life and happiness fall apart given that they play completely outside of my control?

Cultivated disinterest

While watching sports, I often end up asking questions like these: If this game was played all over again, would outcome be same again? How much of the game events is purely random chances? Why should I be proud for team X when I really haven’t done anything for them to win, may be except offering slice of my lifespan watching them play? If this team loses next time, why should my life and happiness fall apart given that they play completely outside of my control?

Essentials of Development Processes

Generalists with specializations Create teams that are� predominantly full-stack developers. You want individuals to own features, be able to work in all parts of the stack and have a culture of doing all the changes required to ship X� as opposed to� own implementation of part of feature in a stack. Team members can� be specialists in an area but everybody needs to own feature, not a portion of stack.

Essentials of Development Processes

Generalists with specializations Create teams that are� predominantly full-stack developers. You want individuals to own features, be able to work in all parts of the stack and have a culture of doing all the changes required to ship X� as opposed to� own implementation of part of feature in a stack. Team members can� be specialists in an area but everybody needs to own feature, not a portion of stack.

Mechanics of B Club

Every business would face competition. The whole process can always be replicated by another person to derive exact same profits. To stay alive business must defend itself. The way a business can do this is by, Prevent replication. This can be done either using trade secrets or patents. Brand pysc. Even though two products are identical, make special connection with customer to prefer yours. Exploration: Produce multiple versions, variants and possible replacements yourself before competition does.

Mechanics of B Club

Every business would face competition. The whole process can always be replicated by another person to derive exact same profits. To stay alive business must defend itself. The way a business can do this is by, Prevent replication. This can be done either using trade secrets or patents. Brand pysc. Even though two products are identical, make special connection with customer to prefer yours. Exploration: Produce multiple versions, variants and possible replacements yourself before competition does.

New Kind of Management

Currently line manager’s responsibilities seem to include: -Hire -Fire -Promote -Identify tasks -Prioritize tasks -Assign tasks -Keep tasks on track -Make sure things are tested/validated -Feedback to reports -Feedback from customers/partners -Review designs and architure -Review code -Setup standards -Identify team painpoints -Motivate -Keep tabs on system health -Acquire funding from higher ups -Market value to higher ups -Stay aligned with values and vision -Identify new developments -Keep tabs on competition

New Kind of Management

Currently line manager’s responsibilities seem to include: -Hire -Fire -Promote -Identify tasks -Prioritize tasks -Assign tasks -Keep tasks on track -Make sure things are tested/validated -Feedback to reports -Feedback from customers/partners -Review designs and architure -Review code -Setup standards -Identify team painpoints -Motivate -Keep tabs on system health -Acquire funding from higher ups -Market value to higher ups -Stay aligned with values and vision -Identify new developments -Keep tabs on competition

QuadRotor Simulation

https://github.com/OMARI1988/Quadrotor_MATLAB_simulation Hector quadrotor RotorS QRSim fcu_sim - https://github.com/byu-magicc/fcu_sim USRSim https://github.com/dch33/Quad-Sim Hackflight Sim - https://github.com/simondlevy/hackflight/tree/master/sim JMavSim

QuadRotor Simulation

https://github.com/OMARI1988/Quadrotor_MATLAB_simulation Hector quadrotor RotorS QRSim fcu_sim - https://github.com/byu-magicc/fcu_sim USRSim https://github.com/dch33/Quad-Sim Hackflight Sim - https://github.com/simondlevy/hackflight/tree/master/sim JMavSim

Understanding Hopcroft Karp Algorithm

Visual problem: Shift Clock. Applications:� Graduation problem, Parking problem, Rook attack or 9 Queens problem, Hitchcock Transportation Problem, Subtree isomorphism problem.