Tuesday, 12 September 2017

SolidWorks Features defined in the context of another assembly

Problem: "This part has features defined in the context of another assembly. <file name>. you can edit the part, but cannot create any external references to the components of the current assembly."

1) If you want to free the parts from old assy then go to individual parts & edit them to remove all the external reference( to another assy).

OR

2)  Just click the check mark so that u can have multiple context.
     Toos==>options==>system options==.External Reference

Check off 'Allow multiple contexts for parts when editing in assembly'.


source: https://forum.solidworks.com/thread/57521

Saturday, 2 September 2017

Rotating Sketch Entities in Solidworks


To rotate sketch entities:
In sketch mode click Rotate Entities  Tool_Rotate_Entities_Sketch.gif (Sketch toolbar) or Tools > Sketch Tools > Rotate.
In the PropertyManager, under Entities to Rotate:
Select sketch entities for Sketch item or annotations.
Select Keep relations to maintain relations between sketch entities. When cleared, relations are broken only between selected entities and those that are not selected; relations among the selected entities are maintained.
Under Parameters:
Sketch Type Instructions for modifying parameters
2D Sketch
3D Sketch On Plane
Click Base Point (Rotate Point Defined) to set a Base point Base_point_Move_Copy.gif, and then click in the graphics area to set the Center of rotation.
Set a value for Angle PM_angle.gif.
3D Sketch To rotate the entities using the 3D triad, select a ring and drag.
sketch_3D_rotate.gif

source: http://help.solidworks.com/2013/English/solidworks/sldworks/t_rotating_sketch_entities.htm

Tuesday, 29 August 2017

Create a USB stick on Windows


Burn [Ubuntu] ISO to USB using Rufus software.

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

Tuesday, 22 August 2017

Blocking Facebook using /etc/hosts

harrymc is close but for some reason OS X (as of 10.8.2) doesn't respect the IPv6 loopback address of ::1 (probably a bug), so you have to use fe80::1%lo0. The reason you need to block IPv6 is because Facebook will serve you their site over V6 if your ISP supports it. You can easily verify this by installing a browser plugin that displays an icon when a site is being served via IPv6. The reason this wasn't a problem for you before is because Facebook likely only recently started serving their site over IPv6.
So the correct answer is:
# Block Facebook IPv4
127.0.0.1   www.facebook.com
127.0.0.1   facebook.com
127.0.0.1   login.facebook.com
127.0.0.1   www.login.facebook.com
127.0.0.1   fbcdn.net
127.0.0.1   www.fbcdn.net
127.0.0.1   fbcdn.com
127.0.0.1   www.fbcdn.com
127.0.0.1   static.ak.fbcdn.net
127.0.0.1   static.ak.connect.facebook.com
127.0.0.1   connect.facebook.net
127.0.0.1   www.connect.facebook.net
127.0.0.1   apps.facebook.com

# Block Facebook IPv6
fe80::1%lo0 facebook.com
fe80::1%lo0 login.facebook.com
fe80::1%lo0 www.login.facebook.com
fe80::1%lo0 fbcdn.net
fe80::1%lo0 www.fbcdn.net
fe80::1%lo0 fbcdn.com
fe80::1%lo0 www.fbcdn.com
fe80::1%lo0 static.ak.fbcdn.net
fe80::1%lo0 static.ak.connect.facebook.com
fe80::1%lo0 connect.facebook.net
fe80::1%lo0 www.connect.facebook.net
fe80::1%lo0 apps.facebook.com


source: https://superuser.com/questions/544789/why-cant-i-block-facebook-using-etc-hosts-on-mountain-lion-os-x

Wednesday, 16 August 2017

Recovering recent Microsoft Office files despite closing the default notification

If you were interrupted before you ever got the chance to save your PowerPoint file, you can simply look for it in the Microsoft Unsaved Files folder. Go to the File tab, make sure you're on Recent and click on Recover Unsaved Presentations. The icon is right below the list of folders under Recent Places.

source: https://slidestore.com/blog/recover-unsaved-powerpoint-file/

Monday, 13 March 2017

process[rosout-1]: started with pid [7331]
terminate called after throwing an instance of 'std::runtime_error'
what():  locale::facet::_S_create_c_locale name not valid

-> Not having locale set properly.


sudo update-locale LANG=C LANGUAGE=C LC_ALL=C LC_MESSAGES=POSIX

Saturday, 24 September 2016

Trimming Video with VLC on Mac

source: http://www.useyourmac.com/howto/vlc-trim-video.html

Preferences

With your video stopped, go to the Preferences of the application that is under the VLC Menu.



Choose the Input/Codecs Tab. There, Under 'Record Directory' you have to declare where on your disc the files will be saved. Hit 'Browse...' and go to the place you choose. You can even create a new directory (folder) right within the dialog box.

Once you have your Preference fixed, hit 'Save' and close the Preferences window. It stays there forever, exept if you decide to change it. So, you won't have to do this every next time.


Restart playing your video, till you'll reach the beginning of the the part you want to keep. If this is far from the spot the cursor is at this moment, you can slide the PlayHead into the right position. You can slide it back and forth, to the exact point.



Stop the playback (spacebar).
Get Ready to Record

Next, you have to explain to VLC that you want it to record a portion of your video. Roll down the Playback Menu. In there, click to select 'Record'. With this checked, all the playback will be re-recorded on disk.


Restart playing the video and let it run to the end of the section, then stop it.
The new video is saved onto your disk.

There is no quality loss since VLC will copy exactly what it reads from the video file. It will save it in the same file format as the original.

You will find your new video in the folder you have previously chosen. VLC names it after the original and stamps it with the time being created. Your original stays behind untouched.




Thursday, 21 July 2016

Downloading Files from Onshape

Right click on the file tabs, and you can download in format of your choice.


source: https://cad.onshape.com/help/Content/exporting-files.htm

Tuesday, 19 July 2016

Trello Shortcut Key

Enter the question mark key in the webapp to bring up a cheat sheet of shortcuts.


source: https://trello.com/shortcuts

Tuesday, 12 July 2016

Horizontal Scrolling on Web Pages

Hold Shift to Scroll Horizontally on Wide Web Pages. Chrome: Nobody likes horizontal scrolling. Unless you have a mouse with two scroll wheels, there's no quick way to do it. Or so we all thought, until we discovered the Shift+Scroll shortcut.

source: http://lifehacker.com/hold-shift-to-scroll-horizontally-on-wide-web-pages-1456725375

Friday, 10 June 2016

Microsoft Surface Function Key Lock


Press “Fn” + “Caps” keys simultaneously to set the lock and remove the lock.

source: https://blogs.technet.microsoft.com/toml/2013/10/30/surface-pro-and-function-fn-key-lock/

Thursday, 12 May 2016

Photos: format your camera rather than deleting individual images - computer systems and deleting directory pointers vs memory chunks

Let’s pretend for a moment that your memory card has a shelf-life of 1,000 uses. Let’s say that you go out and take 500 photos, that’s 500 uses on your memory card. You then upload the photos to your computer, and then individually delete each photo using the delete button on your camera. Deleting each photo individually counts as another 500 uses on your card. So in all, you’ve just spent 1,000 uses of your memory card, leaving you with no uses left on that card. Now, let’s pretend that you’ve uploaded your 500 photos, but instead of deleting them with your delete button, you use your camera’s Format function. Formatting works in a different way than deleting, and only deletes the directory files rather than the images themselves. This then allows the images to be overwritten the next time you take a picture. Because of this, formatting only counts as ONE use of your memory card, regardless of how many photos you’re deleting. So, in the scenario above, you’d have used only 501 of your memory card’s uses, as opposed to 1,000 with deleting manually. Certainly, memory cards available today will be able to handle far more than 1,000 uses, but the illustration still rings true – formatting your card causes less wear and tear on your memory card than other ways of deleting images. Additionally, because formatting only deletes the directory file instead of the images themselves, images on a card that has been formatted are typically much easier to recover (if needed) than those that are deleted manually, assuming that you did not overwrite them by taking more photos. Not a bad trick to have up your sleeve in case of emergencies, am I right?


source: http://digital-photography-school.com/the-best-way-to-delete-photos-from-your-memory-card/

Sunday, 1 May 2016

Powerpoint: simultaneously play two videos automatically


Setting video to play "Automatically" in the ribbon sets the videos to play "After previous" by default( ie one after the other.)
Open the Animation pane from ANIMATION tab and set both to "With previous" see if that helps.

source: http://answers.microsoft.com/en-us/office/forum/office_2010-powerpoint/powerpoint-how-can-i-automatically-play-two-video/eb19132f-2f49-48ae-94f6-59c1be8460b2?auth=1

Wednesday, 27 April 2016

Store Git Credentials




git config credential.helper 'store [options]'

source: https://git-scm.com/docs/git-credential-store

Monday, 28 December 2015

Surface Pro 3 KeyBoard Function Key Toggle


Fn + CapsLock

source: http://answers.microsoft.com/en-us/surface/forum/surfpro3-surfhardware/surface-pro-3-keyboard-function-keys-not-working/3a16eadc-b698-4845-be26-54f6530ab7da

Missing Disk Options When Installing OS X

diagnosis: hard drive crash, and removed partition.

Select the hard drive in Disk Utility on the left; on the right, select the Partiton tab; under Partition Layout, if the box is all gray (meaning there is no partition), then press the + button at the bottom; then hit Apply.

source: http://www.mac-forums.com/os-x-operating-system/283624-disk-options-installing-os.html

Saturday, 31 October 2015

Check Device Serial Port on Mac

You can find your Arduino via Terminal with
 ls /dev/tty.*
then you can read that serial port using the screen command, like this
screen /dev/tty.[yourSerialPortName] [yourBaudRate]
for example:
screen /dev/tty.usbserial-A6004byf 9600


source: http://stackoverflow.com/questions/12254378/how-to-find-the-serial-port-number-on-mac-os-x

Free a Busy TTY Device

From terminal, run:

lsof | grep usbserial

If the port is in use, you will get a response like this (otherwise it will return nothing):

screen    27127 Sefi    5u     CHR               18,0        0t0       605 /dev/tty.usbserial

Note the session number. In my case, it's 27127. Then run:

screen -x 27127 (obviously use your session number from the grep)

It will return you to your previous screen session. Then use ctr-A ctr-\ to close it properly (will ask you to confirm).


source: https://discussions.apple.com/thread/6078814?tstart=0

Sunday, 18 October 2015

Removing Gaps from TIKZ in LaTeX

Removing gaps from TIKZ in LaTeX:

the anchor=north causes that. Try node[coordinate](z){} instead should fill the gap


source: http://tex.stackexchange.com/questions/175969/block-diagrams-using-tikz

Thursday, 24 September 2015

Disable Leap Motion App on Startup

You will find a line item

com.leapmotion.Leap-Motion.plist

Library/LaunchAgents

Just rename from .plist to .bak - incase you would like to auto startup again.

I believe Leap Motion chose to use LaunchAgent rather than 'Login Items' is because they couldn't get it to startup all the time.

source: https://discussions.apple.com/thread/5295534

Stalled Spotlight Search on Mac

You can try to temporarily disable Spotlight, removing its files and then reenabling it.

See source for in-depth explanation.

source: http://apple.stackexchange.com/a/1082

Google Chrome Helper Process

The quick story is that Google Chrome Helper isn’t really the problem. It tends to go on the rampage when there’s a rogue extension or when Google Chrome’s plug-in settings are configured to run everything by default. There’s a long list of the plug-ins supported by Chrome here, but most users in the Help Center forums seem to run into trouble when it’s working with Flash content.

Disabling Helper’s auto-helping is easy, and it won’t prevent you from using plug-ins. You’ll just have to opt in to view plug-in content on a case-by-case basis. Deactivating it isn’t entirely intuitive, though—there’s no mention of the Helper outside of your Activity Monitor and forum complaints. You’ll have to dig a couple of levels deep into your Chrome settings. First, shut down all your Chrome windows without quitting the program. In the Chrome menu, go to “Preferences,” scroll all the way down in the menu, and click on “Show advanced settings…” The first item in the expanded advanced settings list will be “Privacy,” and click on the “Content Settings” button right under that. About halfway down the content settings list is a “Plug-ins” entry, which will likely be set to “Run automatically.” Instead, select “Click to play.” This is essentially the same thing as configuring email to load images only when you click a “load images” link. Any embedded Flash, Java, Quicktime, DivX, or Silverlight content on a webpage will appear as a grayed-out space until you click on it to load the player and the content.

source: http://www.wired.com/2014/10/google-chrome-helper/

Friday, 11 September 2015

Surface Pro 3 Hotkeys

Screen brightness:
Fn+Backspace = dimmer.
Fn+Backspace = brighter.

source: http://www.lovemysurface.net/surface-pro-3-screen-brightness/

Closing a window:
Fn+Alt+F4

source: https://pricklytech.wordpress.com/2014/08/05/surface-pro-3-quick-tip-alt-f4-does-not-work/

Monday, 7 September 2015

Fantastic Tutorial on Setting Up Github Pages and Jekyll Layouts

Really good tutorial on setting up a github.io website, using Jekyll for templates/layouts (built into Github webpages already, so no additional installation), and markdown.

source: http://jmcglone.com/guides/github-pages/