tardate

Singapore, Singapore

tardate.blogspot.com

Age: 48

Jan
15
awarded Nice Answer
Jan
15
awarded Yearling
Dec
22
comment Bundler keeps removing 'BUNDLED WITH' section of Gemfile.lock
it seems my issue was caused by rubygems-bundler also needing an update (to 1.4.4), see github.com/bundler/bundler/issues/4180
Dec
22
comment Bundler keeps removing 'BUNDLED WITH' section of Gemfile.lock
hmm, that's what I thought, but in practice I'm finding different. With bundler 1.11.2, a Gemfile.lock that says BUNDLED WITH 1.11.2, same ruby and rvm 1.26.11, and the repo deployed on two identical centos servers .. bundle install removes the BUNDLED WITH on one machine, but leaves it in place on the other. go figure!
Dec
17
comment Why should you use two resistors in parallel on an LED?
If it was already there for another reason.. .. reads like a guess, not an answer. Perhaps an edit for clarity? It's a fact: 8 x 1kΩ with next nearest values at 22Ω and 10kΩ per arduino.cc/en/uploads/Main/Arduino_Uno_Rev3-schematic.pdf The only conjecture is whether the parallel-1kΩ choice was originally motivated by BOM optimisation, but that seems a pretty safe bet in this case. Yes I chuckled at the first line too, but I wouldn't +1 it! Off topic and contradictory .. unless the intention is to imply that BOM optimisation is not "stellar electrical engineering"?
Dec
6
awarded Popular Question
Nov
18
answered Rais 4.2 Can't send outgoing mail using mandrill
Nov
12
awarded Supporter
Nov
12
comment MongoDB doesn't start after changing the data directory
thanks, this was also the solution for me on CentOS 7
Oct
26
comment Newbie : Overheat LD1117 3.3V Regulator (Input Voltage 5V-2A)
nice answer. I'd also recommend making sure you have the correct datasheet for your specific 1117 component. For example, the ST LD1117 has TO-220 pins gnd-out-in, but the UTC LD1117 TO-220 is in-gnd-out. I've connected a UTC per the ST pins before, and without load the first thing I notice is the device quickly gets very hot (thankfully disconnected without damage)
Oct
15
comment What is the cross-platform method of enumerating serial ports in Python (including virtual ports)?
fyi, I'm looking for same. Interesting comparison is how Arduino IDE/Processing does it's serial port enumeration for the Tools menu: github.com/arduino/Arduino/blob/master/arduino-core/src/… tldr: regex city!
Sep
16
comment arduino output pins collapsing voltage - is it dead?
Can you post your code? My first instinct is that you have not set the pin for output, hence this behaviour. But the code will tell...
Sep
15
comment AM Modulator Mixer Circuit
Thanks for sharing the answer Jim. I was able to use a variation on this idea to get the circuit working reasonably well, although as I think you and Andy are indicating, this is only single-side band modulation(?) Details of the circuit & demo are available at github.com/tardate/LittleArduinoProjects/tree/master/… for any who care to crib.
Sep
14
awarded Yearling
Sep
8
awarded Famous Question
Sep
1
comment Optimizing an Arduino code
Nice! Given the level of accuracy this approach could potentially shoot for, I'd also suggest measuring the actual resistance of Rc, R1, R2 rather than using the nominal values
Aug
30
awarded Yearling
Aug
30
awarded Yearling
Aug
7
awarded Populist
Jun
30
comment A cron job for rails: best practices?
@dtc running rake via cron is quite wasteful as it needs to load up the rails environment each time. dj or sidekiq keep an instance(s) running. So my preferred use of cron is to poke a webhook that will enqueue the required job. That's lightweight and you get the benefit of using cron as a scheduler and dj/sidekiq as a job queue.
1 2 3 4 5