Jump to content

DarkRuskov

Member
  • Posts

    294
  • Joined

  • Last visited

Posts posted by DarkRuskov

  1. On 11/19/2019 at 5:28 PM, wasab said:

    You can create a bash file with the same name as the program and export a path to it before all your other paths. That essentially will execute your bash script instead of the actual program. It wont add any new features though unless you are going to reinvent the wheels and implement everything it does and more in the script. 

    I see, thanks ! But I think the other methods are more aligned with what I want to do :)

  2. 15 minutes ago, Sauron said:

    I *think* it's enough to enable the service, since systemd has parallel initialization most services should be started together and stopped more or less together - the delay between when this service stops and the others do should be minimal anyway. A lot of larger services need to wait for other services to start so a custom service with no dependencies should be among the first to start. I'm not aware of a simple way of making it the absolute first to start without manually changing the dependencies for all other services to include it, which I wouldn't advise unless it's absolutely necessary. Since it does basically nothing I would expect it to start and stop in a matter of milliseconds, probably less time than your screen takes to update.

    OK thank you very much, I'm going to test this, seems very promising !

  3. 2 minutes ago, Sauron said:

    You could use a systemd service. The ExecStop option allows you to run a script when the service stops and if you start that service first it will be stopped last, meaning that that script will be the last thing the pi executes before shutdown. I'm assuming this is on raspbian of course - if you aren't using a systemd distribution then you'll need to look up how to do something similar with your init system.

    I am indeed on raspbian. Thanks a lot, it seems much cleaner ! My question then is what's the best way to order how services start ?

  4. 15 minutes ago, Sauron said:

    What exactly do you want to change? Depending on that there are simpler ways of changing basic functionality... for instance you could alias "ls" to your own script or parameters or to an alternative program like exa.

     

    Changing and recompiling the program isn't really advised because you lose access to updates for that program and for something as essential as ls it might break parts of your system.

    I have a raspberry pi and I want it to show a message on a nokia screen right before powering off to know when it's safe to unplug it. The problem is that showing this image before executing the command won't cut it since in the case where the poweroff command takes too much time the user could unplug it without it being safe. There is a method to show the PI's status with an LED and GPIO pins but it isn't acceptable in my case.

     

    My thinking was to run the script once the bulk of the shutting down was done. If you think of a better way I'm all ears because I agree with you, mine is extremely janky...

    This is necessary since the screen stays on/doesn't clear once the pi shuts down.

  5. Hey guys,

     

    a friend of mine wants to buy a laptop to use for school where they'll be using GIS (geographic information systems) software. I don't know much about this workload, anyone can recommend what to look out for ? It seems quite CPU and RAM intensive.

    His budget is around 1000€. Any recommendations are welcome.

    Thanks !

  6. NetAcad is pretty good in my experience.

    After you've read the course try the practical exercises at the end of sections. There are .pka files which make you practice what you just learned.

    If you're stuck in an exercise don't hesitate to re-read the appropriate part of the course and check the internet, especially youtube. There are all the solutions on there. The try to redo them on your own. It takes time and it's not easy but it's straightforward.

  7. 11 hours ago, FlappyBoobs said:

    The best android emulators are provided by Google. They are included with the SDK. You need to use HAXM rather than Hyper-V (so disable it) in order for them to work. They are as lightweight as you can possibly get, but remember you are emulating a device that can have multiple cores and high performance, so you will need a decent machine in order to run multiple instances.

     

    Considering you didn't know much about the emulators initially I would suggest you take a look at the android developer documentation, because most of your follow up questions will be there.

     

    As for emulating clicks on both devices, what exactly are you trying to do? there may be a better way to do it as emulating simultaneous clicks is not supported across VMs without using a workaround.

    I want to execute the same clicks in a game on multiple devices. I know MEmu allows this (when you click in one VM, the same click is reproduced in all the other instances), but I was wondering if it is safe (no virus etc) and if it was the most lightweight option.

  8. Hi,

    I'm looking for an android emulator/virtual machine.

    I have the following criteria:

     

    - I want to be able to sync my clicks between the VMs (if if click on something in one, it clicks de same thing in the others)

    - It must support multiple instances

    - It must be as lightweight as possible (since I want to run multiple instances)

    - It has to be safe

     

    Any and all suggestions are welcome! Thanks !

     

    PS: do vmware or virtualbox work for something like that?

  9. 13 minutes ago, Antoon45 said:

    If you're going to edit more then playing games on it I would recommend going for the 5820k instead of the 6700k cause 5820k is better for editing since it has 6 cores and mor threads, you could try to go for a 600 - 650W PSU instead of a 750W. 32GB RAM isn't in need unless you want to have a lot of programs open while you're editing that's own preference tho, you could go for 16GB and still be fine but if you want 32GB then sure why not go for it. 

    for editing the 32gb can be useful.

  10. 1 minute ago, Pendragon said:

    No it's not that. I agree with the Chromebook part. But it's complete bullshit that a 200 dollar chromebook is a fun experience. You would buy that if you were on EXTREME budget. In addition, his build is so bad not because it isn't optimal. It's because he doesn't include a screen, a mouse, a keyboard, speakers, webcam, all those things that would come with a laptop that would add hundreds of dollars to the price tag. The idea of splitting money for laptop + desktop is only viable for the much higher end of gaming notebooks like 2.5k + where real diminishing returns kick in. 

     

    Currently the best and also coincidentally best 1060 laptop the P650RP6 starts at 1300 dollars. There is no way you're pricing a 1060 desktop + monitor + mouse + keyboard + speaker + webcam + LAPTOP under 1300 dollars comfortably without using extremely bad peripherals. That would defeat the point of it's value position and ease of use as in addition to having a shitty laptop that is terrible to use, your PC at home's quality of life is also down the drain because you had to skimp on quality peripherals. 

    it depends on what you do, but if you're only browsing internet and writing essays a 200$ chrome book is actually better than most 400-500$ computers.

    then most people already have some if not all of those peripherals, furthermore even the cheapest keyboard will be equivalent or better than a laptop's one, and you'll still need a mouse, webcams are not mandatory for most people and again can be found on the cheap, the only peripherals that not everyone might have are speakers and monitor, again speakers are often integrated in the monitor or really cheap (that will again be better), so the only real peripheral is the monitor but a lot of people have one already.

    So it depends on each and everyone's situation. 

    And finally there's no way that it's cheaper in the long run, and maybe you'll save 50-100$ now but you'll lose a lot more down the road with a gaming laptop.

    but since OP answered nicely and clearly my suggestion, I suggest that we end this discussion here to avoid polluting his thread.

  11. it's doable and relatively easy (you don't need a gpu), and yes the rpi can do the trick but it depends on how much you share (couple of megs, gigs, undreds of gigs or even terabytes?), the rpi might not be the best suited for high amounts of storage for example.

    how you'll share them will depend on how you configure your server but you can either share particular files or give your friends access to some or all of the folders on your server, all options are possible.

  12. Just now, Pendragon said:

    It's actually considerably higher in the EU. $1300 is for US. In the EU it's probably around 1400 euros to start. 

     

    People need to stop recommending this video. The guy is clueless about how laptops work. Literally cannot read tech specs. Doesn't understand that his pricing strategy is completely whack and false, and all in all a terrible video. 

    I really don't see how it's a bad video, yes it's not the most accurate specs wise but that's not the point of the video, he's trying to be easily understood, plus he says himself that his build is far from optimal and suggests looking into that, but the main idea of buying a chromebook (or similar) for school and use the saved money for a powerful desktop is actually quite good.

     

    1 minute ago, Wedsea040 said:

    Some people like me move around a lot and like to game, so laptops are nice. I would assume OP has a similar predicament.

    Yes that's why I said that OP should look into it and think about it, not that he HAS to go this way.

×