Pages: [1] 2   Go Down
Author Topic: Multiple sketchbook locations  (Read 2172 times)
0 Members and 1 Guest are viewing this topic.
Central MN, USA
Offline Offline
Tesla Member
***
Karma: 75
Posts: 7268
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I think allowing multiple paths to sketchbook folders would be cool. I can think of one path to my local drive, where I store some stuff, and another path to a cloud storage folder like dropbox or one drive. Currently I only have my office computer Arduino IDE point to onedrive folder but my home computer to local drive. It's nice to have multiple folder names to search for sketchbooks. Do you think so?
Logged


Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 27372
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

No for me. Hard enough to find stuff I've done on just 1 computer.
No way I am keeping my source files in the "cloud", I am not waiting around to access it when the 'net is having issues.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

UK
Offline Offline
Tesla Member
***
Karma: 135
Posts: 7757
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No way I am keeping my source files in the "cloud", I am not waiting around to access it when the 'net is having issues.

Or while everyone else in the world is having a peek at it and a snigger smiley  (My stuff, I mean, not yours).

...R
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 27372
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't know, have you seen some of my code? I am sure the real programmers have a good chuckle over it! smiley-cool
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 224
Posts: 13915
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@liudr

in the IDE you can change the location of your sketchbook and it adapts the schetchbook option in the file menu without reboot.

Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 75
Posts: 7268
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

@liudr

in the IDE you can change the location of your sketchbook and it adapts the schetchbook option in the file menu without reboot.



I didn't know that. Thanks.
Logged


Central MN, USA
Offline Offline
Tesla Member
***
Karma: 75
Posts: 7268
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

No for me. Hard enough to find stuff I've done on just 1 computer.
No way I am keeping my source files in the "cloud", I am not waiting around to access it when the 'net is having issues.

I had similar doubts regarding cloud storage, what if they go down? Well, you have a local copy and as long as you are the only person accessing the file, the cloud handles updates very well. Also different computers on the same local network, dropbox can do ethernet sync that is faster than pulling things from the internet. Say your main computer and a second computer just to test a project for some extended time, you don't have to carry flash drives. I have problems carrying flash drives between home and work, especially with versions etc. With cloud it's easy. When you back up your computer, the cloud drive's local copy is backed up as well, so you have a copy in the backup. Yes, if one of your computers hasn't been on for a while then it takes a while to update all the files. In case you want the file now, access a web interface (dropbox or onedrive) and get the latest version.

I have one main computer at home and a tablet (rarely use it for arduino), one office computer, and soon a business laptop. So with the cloud solution I don't have to keep copying back and forth with a flash drive.
Logged


Central MN, USA
Offline Offline
Tesla Member
***
Karma: 75
Posts: 7268
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't know, have you seen some of my code? I am sure the real programmers have a good chuckle over it! smiley-cool

I'm pretty sure "magic numbers" are still widely used by programmers, right? The most popular one might be 10 smiley-wink
Logged


Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 27372
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

What are magic numbers? Not something that comes up in hardware designs.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 75
Posts: 7268
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

What are magic numbers? Not something that comes up in hardware designs.

Say you want to run a for-loop that averages analog readings. For some reason you magically think 10 iterations should be enough. You put 10 in the for statement and subsequently divided the result by 10 (of course, assuming you don't know about oversampling and decimation). Then after some time you think maybe 5 is enough but forget to change all the "10" into 5. These arbitrary numerical literals that get used in programming are called magic numbers. I'm sure I'm guilty of using magic numbers. Thing is, another 10 somewhere else is not related to these 10's in the for loop and updating the code becomes a mess. Instead, I often use #define analog_samples 10 so I can use this defined word instead of 10 and then I can change it whenever I want without missing a 10 or changing a 10 that isn't related to the analog sampling.
Logged


Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 27372
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Ah. I would just use
byte analog_samples = 10.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Norfolk UK
Offline Offline
Faraday Member
**
Karma: 70
Posts: 2590
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have always used the zip install of Arduino IDE and extract it to my DropBox folder then in the same level as the Arduino IDE folder (see image) I create a Projects folder and alter the IDE preferences 'Sketchbook Location' to ..\Projects. The IDE is run from the dropbox folder and no matter where the dropbox folder is (differnet PC's) it pick up the Projects.


* Clipboard-1.jpg (23.28 KB, 606x247 - viewed 14 times.)
Logged


Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 224
Posts: 13915
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What are magic numbers? Not something that comes up in hardware designs.
For software people many of the hardware are magic numbers. Why is one cap 10uF and the other 100uF smiley-wink

what to think of
A = 1.8 
B = 9.7751711e-4
C =  4.887585e-3
D = 57,2957795
E = 440

(A) conversion factor Celsius -> Fahrenheit
(B) 1/1023 => * B  -> normalized analogRead .0..1
(C) 5/1023 => *C  -> converts analogRead to 0..5.0 volts
(D) conversion factor degrees - radians
(E) frequency of the middle C

in short most of the magic numbers are undocumented conversion factors
that is why good naming of functions and variables and constants lead to almost self documenting code.



Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

UK
Offline Offline
Tesla Member
***
Karma: 135
Posts: 7757
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I know that most Arduino code is not confidential but the idea of saving any of my personal stuff on someone else's computer seems like madness to me.

How would you know if the Mafia (from whatever country) bought out the company that owns the servers?

...R
Logged

Norfolk UK
Offline Offline
Faraday Member
**
Karma: 70
Posts: 2590
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I know that most Arduino code is not confidential but the idea of saving any of my personal stuff on someone else's computer seems like madness to me.

How would you know if the Mafia (from whatever country) bought out the company that owns the servers?
Dropbox is purely for my personal code and makes life a lot easier when writing code at work, home & laptop. The number of times I had written code at work and forgot to copy to USB to bring home prompted my current scheme. Work developed code is written on  PC's that have no internet access.
Logged


Pages: [1] 2   Go Up
Jump to: