Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

Everything posted by shadow_ray

  1. Cool. May i ask what is the use case for this? And could you share a pic from the machine you built? I'm kinda interested.
  2. Ok. I wrote a python script to generate a grayscale .png height map from the .csv file. It's kinda ugly code but hey, it works. And here is the code:
  3. If it's a height map you can generate vertices on a grid and set their height according to the table. Then you can create triangles between those like this: 1--2--3--4 |\ |\ |\ | | \| \| \| 5--6--7--8 |\ |\ |\ | | \| \| \| 9-10-11-12 Where numbers are vertices and |, \, --, are edges. Generated .obj file can be something like this: # list of vertices v 0.0 0.0 <z> # vertex 1, x=0, y=0, z=(value from .csv file) v 1.0 0.0 <z> # vertex 2, ... # list of triangles f 1 5 6 # first triangle between vertex 1, 5 an
  4. According to wikipedia the first stable version was released in dec. 2014, so I'm guessing they switched around that time.
  5. Android Studio is the def. IDE for android and it's based on IntelliJ IDEA
  6. Get the basics right first. Follow structured learning materials, then try to use what you learned to make small things. You don't want holes in your knowledge... otherwise you will end up like me (and my English)
  7. what? where and for how much? and doing what? I can't see how a beginner could create value for a company. For me.. it feels like a long term risky investment. It might worth it for bigger companies tough.
  8. Hi, I've recently bought a raspberry pi 4 and I want to use it as a little server on my local network with an external hard drive attached to it. I want to run a few things on it like: - simple file sharing via ftp or something more fancy like owncloud - torrent client with web interface (strictly for seeding linux images only ) - media server (without any transcoding magic) - and maybe more To avoid conflicts it probably would be a good idea to run these inside containers. I'm not familiar with docker and I'm not even sure if the hardware has
  9. How about their Build your first app guide? https://developer.android.com/training/basics/firstapp You can also tweak around with sample codes: https://developer.android.com/studio/write/sample-code It might not be the best way to learn but I'm pretty sure you can find everything you need over there.
  10. @Cupcakez this reminds me of http://www.ioccc.org/
  11. What happens if you turn on Vertical Sync?
  12. There is a node based visual scripting system in Unreal called Blueprints. I assume you feel guilty using it and you would rather write c++ code. Real men move electrons by hand. Jokes aside.. It was designed to make it easier for people to use unreal. Feel free to play around with it.
  13. Sorry I didn't read the whole thing Serializable attribute is missing. I think something like this should work. [Serializable] public class GameStat{ public string username; //... } [Serializable] public class Game{ public string gameName; public GameStat gameStat; } You could use lists and structure the data differently.
  14. Could you please apply syntax highlighting to your code Unity has a built in json util. https://docs.unity3d.com/Manual/JSONSerialization.html
  15. server.dispatcher.on("end", funtion(), if(server.queue[0]){ play(connection, message); }else{ connection.disconnect(); } }; server.dispatcher.on("end", funtion(){ if(server.queue[0]){ play(connection, message); }else{ connection.disconnect(); } };
  16. PCIe 2.0 x1 = 500MB/s Theoretically you are limited to 4 x 500MB/s.
  17. It isn't the full output. You can find the actual error msg at the top.
  18. This is the reason why backups are important. It depends... a quick format doesn't erase all the data but the part overwritten by windows is definitely gone. @TheUnsmilingCat Be cautious using that drive though.
  19. Previously i had windows and linux installed on the same drive with grub as a boot loader. I mostly use windows and the added few second startup time (cuz OS selection) was quite annoying so I ended up using a second drive with a separate boot loader. Whenever i want to use linux, instead of the power button i press the other one that takes me to the boot menu.
  20. @Membean Good luck and have fun!
  21. It helps in personal projects too. Just try to modify code you wrote 2 or 3 weeks ago. That's an interesting question. As far as I know, yes you can use classes and functions defined in other files. In this case with time.sleep() the answer a little bit complicated. Python is based on C, the interpreter and the built in modules were written in C, including the sleep method. And it's OS dependent. For example on windows (at the really end of the timemodule.c file) there are a few system calls trough Synchapi.h. It calls the WaitForSingleObjectEx or the Sleep() funct
  22. @steelo You can think of it as a blueprint. A class defines the data and functions that can access and modify that data. It's a way to organize and brake the code down into smaller manageable chunks. Python doesn't enforce encapsulation (doesn't prevent accessing fields from outside) but by prefixing a variable name with an underscore you could indicate that it's a protected field and it shouldn't be modified from outside. import datetime class Human(object): def __init__(self, name, year_of_birth): self.name = name self._year_of_birth = year_of_birth
  23. if ctrl + space doesn't work then try to disable power save mode in File->Pover Save Mode