Jump to content

steffen_anywhere

Member
  • Posts

    1,228
  • Joined

  • Last visited

Everything posted by steffen_anywhere

  1. Ok, so I found some useful information. Ruby calls /bin/sh instead of /bin/bash, even if the command you're executing is a script that has the correct shebang at the start... Will need to see if this solves my problems... http://greyblake.com/blog/2013/09/21/how-to-call-bash-not-shell-from-ruby/ Adding this because it might help someone else in the future.
  2. Hi, i have a simple bash script that runs perfectly when executed directly, but when running it from ruby using `shellscript.sh`, some parts don't work as expected as if the script wasn't executed within the Bash shell, but some other more basic shell lacking certain features. #!/bin/bash # Parsing cli options to variables src_path=$1 dst_path=$2 log_path=$3 # Generating file listing dir_name="${src_path##*/}" file_list=$(date +%Y%m%d%H%M%S)'_'$dir_name'.log' list_dir="/home/pi/FileListings/" # Running backup sudo rsync -av --delete-during $src_path $dst_path >> $list_dir$file_list status=$? if [ $status == 0 ]; then echo $(date)" Backup of $dir_name complete. For more details, check individual logs." >> $log_path fi I suspect that the condition in the if statement isn't evaluated properly. The error message is something along the lines of "command [0: not found". This would occur in a shell which does not support this syntax. I've also tried equivalent statements, none of which worked in this case, even though ALL of them should be correct under bash... Thanks in advance Steffen
  3. Yeah, that's possible to be honest... I use a MacBook Pro myself, but if I was looking at buying a larger, powerful mobile machine like today, I don't think I'd get the 15" MBP. The new design is nice, the display is amazing and so on. But when spending 3k on a laptop, it should have the best hardware suitable for its form factor/design that is available at the time. This doesn't mean GTX1080 and desktop i7. That wouldn't work for obvious reasons, not even taking the price into consideration. So really, all that's wrong with it, besides the price hike to the entire Pro line, is the GPU choice. That said, there isn't really a suitable Nvidia part out there either. GTX 1050 and 1050Ti for laptops is still rated at 75W, but compared to the laptop GTX 1060 at 80W with significantly higher performance, I don't buy that number. I'm sure Apple could have used the 1050 and adjusted clocks accordingly, so that they end up with something that works in the MacBook Pro 15". They would have ended up with better performance (most likely). Given that it's really super thin, that's about all you can realistically expect from that machine. Since maximum performance isn't even the goal with the MacBook Pro, especially in gaming, I find their hardware choices mostly reasonable. I would not spend that much on it though, personally.
  4. I don't believe that Intel will be licensing Thunderbolt to AMD... at least not in the near future. It's a very compelling feature and Apple isn't going to drop that. Besides, most Macs are mobile machines, and we haven't seen the Zen core on mobile yet (we undoubtedly will eventually). Why they refuse to use Nvidia parts, especially for mobile machines, is beyond me. I'm guessing it's some kind of longer-term deal with AMD, starting with Mac Pro in 2013. It's not working out so well for Apple I think, personally, but obviously I don't have any insights into their internal matters.
  5. No, if you're not giving the SSD to someone else, i.e. selling it, that's a waste of time and a slight reduction in lifespan.
  6. Yeah, good idea. I'm probably not going to do this any time soon, just interested in the possibility.
  7. Hey guys, since quite a few people here are into quads, might as well ask here. I'm looking for the smallest LCD you can find to use with a raspberry pi. This is just out of curiosity, since it'd be cool to know what is out there. Because why not build your own wearable i.e. connected ski goggles or something along those lines... Anything around 1-2 inches diagonally would be interesting, maybe FPV goggle replacement screens, but I don't really know too much about those, hence why I'm asking the RC people. Thanks for any hints
  8. I study Electrical and Computer Engineering, I also work (during breaks and free time) for a company that specialises in Enterprise archive storage systems in their Software QA department. So nothing crazy I guess...
  9. I'd also be interested in the software people here use with their cars, and what it allows them to do/customize.
  10. No, the Pentium (most likely, I can't find the actual specs, ark is letting me down) has the Intel GT1 graphics, which are definitely not faster than a GT730.
  11. Right, that's absolutely true, all I'm saying is that there should be a universal method of doing this, where social media networks have to grant access to private messages for this special purpose. You'd have to request this prior to your entry into the given country, or you'd accept this practice with the Terms & Conditions of Usage when signing up. Same as how financial institutions have to provide certain information.
  12. That's a laughable solution, honestly... You can't call this a background check. This honestly sounds like a joke, just because of how unprofessional it is. I didn't know that it was optional during the Obama Administration, but that's almost as stupid imo... The idea in general... it's like giving the 'tax authorities' (depending on your country, there will be an actual proper title for this) your bank account details. They don't need them to do their job, they can get all the info they need without account access. They don't have to be able to make transactions from your account tho, just as the DHS doesn't need to post/message with your credentials on Facebook etc...
  13. I also use a power bank with 2A output on a single port to power my Raspberry Pi 2B. It works very well at high load with several USB devices connected as well. Be sure to set the max_usb_currect flag to 1 in the config file on the boot partition. External hard drives are tricky, but night work for you, depending on the drive, if you're running off a power bank, and the drive has a secondary power (USB) plug, connect that to another port on the power bank if possible. Most multiport power banks have a max current per port that is lower than the total maximum output.
  14. It is definitely worth it... The A10 APU in your system isn't slow and I'd assume that you have no issues with it during day to day tasks. 8GB of RAM are also enough.
  15. I see no issues with putting a 1050 or 1050Ti in this system, unless the case doesn't allow for full-height dual-slot PCIe cards. You would just replace the GT620 with the GTX1050(Ti). The CPU will also be perfectly fine playing the games you mentioned. EDIT: Be sure to get a card that has no additional 6-pin power connector, as your PSU probably won't have one.
  16. @lieder1987 Yeah okay, thanks for the reply. I'm looking at this for an external GPU setup for my MacBook Pro. Due to power and size constraints, my only sensible options are the RX460 and the GTX 1050Ti. I'd prefer the 1050Ti though, so I might just get that and hope for the software support to come around later, since 95% of the time it would be used running Windows anyways. Not even sure that this will happen at all, it depends on whether I can get my Thunderbolt solution at an acceptable price... if not, I won't be buying a GPU.
  17. Hey guys and girls, can anyone bring me up to speed on the state of support for Nvidia Pascal GPUs under macOS? As I see it, there is basically no support, except the 1080,1070,1060,1050 and Titan XP are listed in supported hardware for the macOS CUDA driver on Nvidia's website. Graphics drivers don't really exist afaik. That said, I don't have much info on the topic, hence why I'm asking. I'd love to know what works and what doesn't, as well as what is likely to work in the future. Cheers
  18. Yes, it would. In that case, all you'd have to solder is the actual LED cube part. You can also just do 3x3x3. Still 27 LEDs, so controlling them is still interesting, and it makes the soldering much much easier. For 3x3x3 you also won't need shift registers or demuxers (assuming the arduino board you have is at least an Uno).
  19. Yeah but that's not a reason... bad performance or missing features would be reasons. I recently upgraded to an iPhone 7 from an iPhone 4S, which was 5 years old at that point and just too slow to keep up with newer software or unable to run it at all. Even then I had a hard time getting the new iPhone, because the 4S is still perfectly 'functional'...
  20. As a base, you'd use a PCB, either etched or perfboard, depending on your preference. The base level and control electronics go on it. The next layers are stacked on top of the first one. And that's the hard part. In the end you want all the connections to be correct, as well as the cube to look like a cube. I used to make cardboard masks to space all the LEDs properly.
  21. LED Cube (such as 4x4x4 or bigger) is always cool. It'll be a good exercise in soldering and the software aspect of controlling the cube is also interesting. You'll also learn some stuff on electronic circuit design. Definitely a good project to learn things. The end result also looks badass (if you do it neatly). If you have questions along the way, feel free to ask us, there's always someone who can help.
  22. Super unnecessary budget, if this is for just gaming!
×