Jump to content

Meic

Member
  • Posts

    121
  • Joined

  • Last visited

Reputation Activity

  1. Informative
    Meic reacted to Windows7ge in I formatted a USB drive in Ubuntu Linux and now it does not work with Windows 10   
    On Windows you can do:
    diskpart list disk select disk # clean convert gpt create partition primary format fs=ntfs quick assign And you should have your drive back.
  2. Agree
    Meic got a reaction from Ben17 in Learning solar power for off grid lifestyle   
    Before you try this one...
     
    The fridge's compressor needs to be upright to function. If you put a fridge on its back, the coolant will drain out of the reservoir and the fridge will stop working. I would guess it would also burn out its motor. 
  3. Informative
    Meic reacted to straight_stewie in learning python teacher asked us to do fibonacci Q.Q   
    Since we are doing python, we get an easy understanding of the extremely elegant and fast algorithm called Fast Doubling.
    def fibonacci_doubling(n): """ Still involves recursion, but has a complexity of only O(logn) """ if n == 0: return (0, 1) else: a, b = fibonacci_doubling(n // 2) c = a * ((b * 2) - a) d = a * a + b * b if n % 2 == 0: return (d, c + d) else: return (c, d) if __name__ == "__main__": for n in range(20): print(fibonacci_doubling(n)) # As a demonstration of this algorithm's speed, here is a large n. print(fibonacci_doubling(10000))  
  4. Agree
    Meic reacted to AbydosOne in Using old PC for VM's and NAS?   
    No! If your solution to "I can't connect to [other computer]" is "disable firewall", you probably shouldn't be on a network in the first place...
  5. Agree
    Meic got a reaction from Bramimond in I would like to control 2 pc’s with one mouse and keyboard   
    I don't think this would work with a normal wireless keyboard and two receivers, although there are Bluetooth keyboards that allow you to switch the source.
     
    I would recommend looking at synergy: https://symless.com/synergy
     
    (They used to be an LTT sponsor so you might be able to find a discount still)
  6. Agree
    Meic reacted to Acedia in Looking for help with remote storage access.   
    Opening those ports to the world is a nice way of getting your data stolen.
    You could set up owncloud/nextcloud to share.
  7. Like
    Meic got a reaction from Den15 in Processing Power Recommended for Programming   
    It is also worth considering your IDE. VSCode's python intellisense for example absolutely eats RAM, it is a auto complete option that stores all the libraries in memory and (apparently) uses AI to predict what the next function you want is...
     
    Then again you can write your code in notepad/vi/emacs and use basically no RAM...
     
     
    Personally I have a 6th gen i7 and 24GB RAM and find this very useful for running VMs so that I can program on the same OS as the code is going to be deployed to. But I think you could certainly get away with less, especially with smaller projects.
  8. Like
    Meic got a reaction from Underfire17 in I Need Help With A Python Script Because I'm Stupid   
    you have:
    status = '0'  
    and then:
    if status == 0:  
    The first is a string and the second is an integer so they will not be considered equal.
     
    On line 18, I would suggest changing to:
    status = 0  
    and on line 56, change to:
    status = 1  
    Not sure if this will solve you issue but is certainly worth fixing.
  9. Like
    Meic reacted to SirobLeRoi in Port forwarding through two routers   
    Cracked it. For some reason my server had classified the new network as public which revoked all of its sharing permissions. Once I classified the new network as home I went and did exactly what I thought I should do in the first place and what you have described above and all is now well! Thank you 
  10. Agree
    Meic reacted to BuckGup in Host a VPN   
    There are no VPSs that are free
  11. Like
    Meic reacted to Dat Guy in Linux over Windows?   
    You claimed that it was better. You didn't back your claim either. So neither will I.
  12. Agree
    Meic reacted to Oshino Shinobu in Can I use Ransomware virus as data theft prevention?   
    It would be easier to just use full disk encryption, which would achieve the same thing (as that's really what ransom ware is doing). Or use encrypted containers if you only want some data encrypted. 
     
    EDIT: This is essentially what things like Bitlocker are designed for. Rather than using ransomware to protect your data, ransomware is using technology designed to protect data to hold it ransom.
  13. Informative
    Meic got a reaction from coolxm in Really stupid theoretical project I would like to try   
    My PC (i7 6700 + 1050TI) pulls ~100W from the wall in normal use.  So for 4 hours you need a 400Wh battery. This does not include screen so let's round up to say 500Wh.
     
    A quick google for a 500Wh portable UPS: https://lithiumbatterycompany.com/product/500wh-portable-lithium-ups-power-supply/
    According to the specs this is 7.9LB (3.6KG)
  14. Like
    Meic got a reaction from TheBean in Really stupid theoretical project I would like to try   
    My PC (i7 6700 + 1050TI) pulls ~100W from the wall in normal use.  So for 4 hours you need a 400Wh battery. This does not include screen so let's round up to say 500Wh.
     
    A quick google for a 500Wh portable UPS: https://lithiumbatterycompany.com/product/500wh-portable-lithium-ups-power-supply/
    According to the specs this is 7.9LB (3.6KG)
  15. Like
    Meic reacted to Unimportant in C++ and C   
    No, it works just the same and will always print "True". Nonzero values evaluate as true, zero as false.
     
    Why would it be bad form? It's used all over the place by C and C++ programmers, what is unclear about it ?
    It is allowed since C99.
    Could you give an example of such a int -> boolean -> int because this sounds like gibberish to me and would require some pretty poor code to even invoke.
     
    We tend to prefer C++ in environments where reliability is king due to the very powerful static tools it has, such as templates and constexpr.
    When properly used these can provide a safety layer at compile time! What is more reliable then your faulty code failing to compile ? For example:
    const auto speedOne = GetSpeedSensorOne(); //European made sensor returns a Speed<Speed::Unit::kmh> const auto speedTwo = GetSpeedSensorTwo(); //American made sensor returns a Speed<Speed::Unit::mph> const auto totalSpeed = speedOne + speedTwo; //Speed<Speed::Unit::kmh> and Speed<Speed::Unit::mph> are... //...diffirent types , compile error ! When uncaught, mistakes like this make Mars climate orbiters crash! //...or, a craftier implementation would convert between the two units automatically.  
  16. Like
    Meic got a reaction from bmichaels556 in Need Help With a Web Design Question   
    https://revealjs.com would be a good starting point. You would need to add time based transitions and the adverts.
  17. Informative
    Meic got a reaction from Makis Papas in Opinion on Lenovo IdeaPad 720s 13.3   
    I have the Lenovo Yoga 720  https://www.lenovo.com/gb/en/laptops/yoga/700-series/Yoga-720-13/p/88YG7000827 (last gen) with i5-7200U and 8gb of RAM. The one you are looking at seems a very similar spec but with updated CPU. 
     
    I am really happy with it and it manages fine with full stack web dev (postgresql + python + django + react JS) as well as VSCode IDE. 
     
    I can't speak for Photoshop, etc... as don't use anything like that.
     
  18. Agree
    Meic reacted to Lurick in Effective licensing system   
    All DRM can be cracked with time and effort. Make a good program, give people a reason to buy it, and don't worry about a few people who do crack it or whatnot. The amount of time you spend worrying that someone might crack it and a couple people download it is time you could have better put towards improving the product instead and bringing in new customers. Depending on what you're selling the platform you launch it will have a solution that won't annoy people but if you go too far down the DRM hole then you'll just drive away customers instead. Think Steam, that platform is like DRM but because it's convenient and easy to use people don't mind it.
  19. Agree
    Meic reacted to lieder1987 in Setting up office setup in a separate room than PC   
    If you have a thunderbolt 3 connection then run one cable to a thunderbolt hub that has monitor and USB outputs.
  20. Informative
    Meic got a reaction from Besty in Raspberry Pi 3 B for CCTV camera motion only recording?   
    You can certainly use a CCTV camera with a raspberry pi controller, assuming your CCTV camera sends video over IP (not something proprietary).
     
    You could use something simular to: https://randomnerdtutorials.com/cctv-raspberry-pi-based-system-storage-motioneyeos/ 
    Where the Hub is a raspberry pi setup as they explain but rather than additional RPis for the cameras, use your CCTV camera.
  21. Agree
    Meic reacted to Ralphred in Python file help   
    Slap the import at the top, replace 
        if (userNameInput in text):         userPasswordInput = input("What is you password?: ")         if (userPasswordInput in text): with (observing white space rules)
    re_res = re.search(r'^{}, (.*)$'.format(userNameInput), text, re.MULTILINE) if re_res:     password = re_res.group(1)     userPasswordInput = input("What is you password?: ") if password == userPasswordInput: and you've replaced all the if x in y with the regex.
     
    If you want to be able to build the regex yourself, just import re on a python command line and run help(re) to start diving through it, it's quite verbose but a good habit to get into.
  22. Like
    Meic got a reaction from Vandorlot in Learning more on Python.   
    Try solving these puzzles: https://adventofcode.com/
  23. Informative
    Meic got a reaction from voiha in Push notification that listen to a server logs ?   
    https://pushover.net/ allows you to send push notifications from API really easily. 
     
    I have a small script that is triggered when SSH connection is made to a server that sends a notification.
     
     
     
    There is also plenty of application monitoring software that will alert you based on application logs but if it will work out the box depends on what specific events in the logs you are interested in. You could look at software like: https://www.nagios.com and https://www.zabbix.com/. But they may well be overkill for your needs...
  24. Agree
    Meic got a reaction from Meag in Good budget mechanical keyboard   
    I have one of these: https://www.amazon.co.uk/AUKEY-Mechanical-Ten-Keyless-Anti-Ghosting-Resistant/dp/B0716DYCGQ/ref=sr_1_4?ie=UTF8&amp;qid=1542020128&amp;sr=8-4&amp;keywords=aukey+mechanical+keyboard and absolutely love it!
  25. Agree
    Meic got a reaction from WkdPaul in Good budget mechanical keyboard   
    I have one of these: https://www.amazon.co.uk/AUKEY-Mechanical-Ten-Keyless-Anti-Ghosting-Resistant/dp/B0716DYCGQ/ref=sr_1_4?ie=UTF8&amp;qid=1542020128&amp;sr=8-4&amp;keywords=aukey+mechanical+keyboard and absolutely love it!
×