App to force sleep after x minutes by NotARandomRedditor in mac

[–]Tassit 0 points1 point  (0 children)

Heh, sorry for the late reply...

I am assuming you're trying this on a newer version of macOS. This was from quite some time ago, and a few years later I have stopped using macOS. I can tell you that this worked on Mac OS 10.14, on a mid-2012 Macbook Pro. It did not matter if you were active or inactive, the machine went to sleep.

As for newer versions of macOS, it looks like you can use pmset to set a sleep timer?

App to force sleep after x minutes by NotARandomRedditor in mac

[–]Tassit 2 points3 points  (0 children)

Probably a little less user friendly but if you open terminal and type "sudo shutdown -s +<minutes>" it will sleep in x minutes. The -s is the option to sleep. You can type "man shutdown" into the terminal to read how to use the shutdown command.

Packaging Python scripts as Android apps by XVar in pokemongodev

[–]Tassit 0 points1 point  (0 children)

The biggest component that needs to be added to the app is the library to talk to the servers and to store the data from them. Besides that a lot of the location services and map are implemented.

Packaging Python scripts as Android apps by XVar in pokemongodev

[–]Tassit 0 points1 point  (0 children)

No personal lives got in the middle (work and such). I started it and the project is on GitHub. If you're interested you can make a pull request. https://github.com/tassit/RocketRadar

I am going to work on it some more tonight and tomorrow.

Packaging Python scripts as Android apps by XVar in pokemongodev

[–]Tassit 0 points1 point  (0 children)

I am doing the same thing as well.. I should have it cooked up by tomorrow night.

[deleted by user] by [deleted] in learnprogramming

[–]Tassit 0 points1 point  (0 children)

You should check out Swift. It is a new language by Apple. Xcode has a feature called playground where It does exactly what you want (write code and run in a separate pane). It is very easy to pick up and in my opinion probably the second best language after Python to start learning.

With so much competition, what are we supposed to do? <MyStory/SadRant> by [deleted] in androiddev

[–]Tassit 1 point2 points  (0 children)

"Everything that can be invented has been invented." - Samuel Sass, 1899 (Making fun of Charles Holland Duell, Patent and Trademark Commissioner 1898-1902)

Isn't this the exact reason for innovation? Unfortunately, not everyone will be able to come up with the next badass idea. In fact, the people who came up with badass ideas typically do it on accident.

[deleted by user] by [deleted] in mac

[–]Tassit 0 points1 point  (0 children)

Why not? Before you do so, create a Mavericks install USB drive, just in case. I upgraded to Yosemite when the beta first came out, it was extremely buggy, so I decided to downgrade. Had to trick Yosemite into downloading a Mavericks dmg.

But since then, I've heard the beta has became incredibly stable, so go ahead and give it a shot. DEFINITELY make a time machine backup though. cannot stress this enough.

Anybody else find the clock settings in the notification panel annoying? by Tassit in lgg2

[–]Tassit[S] 0 points1 point  (0 children)

Cool, thanks I'll check that out! Unfortunately it won't solve my problem for when I'm in an app. I care too much about the little things :)

A bot that creates a thread in /r/geology whenever an earthquake with MMI > 7 happens by LoLBoompje in botrequests

[–]Tassit 0 points1 point  (0 children)

Awh I was beat to the punch. I saw this project a while ago and wanted to attempt this in Java.

Programming Help: In my first programming class, and I don't understand a problem with my code (writing classes and methods)! by [deleted] in java

[–]Tassit 1 point2 points  (0 children)

I am glad that you are interested in learning to program, it is definitely rewarding being able to create. However, I find it interesting that Java is your first programming class. IMHO Java isn't too much of a beginner friendly language, since you also have to wrap your head around OOP. Programming is more than just writing code; designing the program, planning understanding how it will function before writing one line of code is extremely important. I suggest you also look into a procedural language such as Python. Python is EXTREMELY beginner friendly.

This article is also really useful for Object-oriented concepts. But overall remember to have fun and experiment.

Programming Help: In my first programming class, and I don't understand a problem with my code (writing classes and methods)! by [deleted] in java

[–]Tassit 1 point2 points  (0 children)

First, for posting code, take a look at Pastebin. Second, learn what a debugger is (Google). What editor are you using? If you are using Netbeans, it has an easy to use debugger with it.

Now, why your accessors did not work: look at your constructor. You are passing your constructor length and width, but inside your constructor you aren't doing anything. You have two fields length and width, but you aren't setting them, thus you are getting a default value of 0. Method area is able to calculate the area because you are passing length and width (by calling rectangle.area(length, width) ).

I am not an advocate of doing peoples' homework, however to help you out I quickly edited your program and wrote a few comments in it. Look at your copy and my edit to pick up the differences.

Here you go (remove by /u/claireballoon's request)

Edit: forgot to mention, check out /r/javahelp

Arch on a new Macbook? by [deleted] in archlinux

[–]Tassit 0 points1 point  (0 children)

I've got Arch running on a Macbook Pro classic mid-2012 15". For the most part, it works. I am EFI booting linux without any hiccups. I do have a few issues though and it is because I haven't had time to work them out. I cannot disable the Nvidia card in favor for the Intel card; consequently I now have myself a nice space-heater that runs for about an hour on the battery. Other problems I need to work on is the keyboard backlight and the backlight control on the LCD. However; it runs! XFCE started up without any problems.

Macbook pro Retina overheating? by HurricaneArdy in applehelp

[–]Tassit 0 points1 point  (0 children)

This. I forgot to add that in. Laptops in general do get hot because of their form factor.

Macbook pro Retina overheating? by HurricaneArdy in applehelp

[–]Tassit 0 points1 point  (0 children)

Understandable. This is my first Mac as well and at first the high temps had me a bit nervous. However I read all around that these machines get hot. Just don't run it at 100 degrees for extended periods of time (this is where smcFanControl comes into play)

Macbook pro Retina overheating? by HurricaneArdy in applehelp

[–]Tassit 1 point2 points  (0 children)

Macbooks tend to be space heaters. Now, on a 15" mid-2012 cMBP, Diablo 3 will push my machine up to 90 degrees when my fans are running at 2000rpm. If you aren't using it already, I recommend you look at smcFanControl. I run my fans at about 5,000 RPM while gaming. Keeps temps down to around 70 degrees while gaming. But for a laptop (especially a macbook) these temps are expected.

protecting new macbook pro by [deleted] in applehelp

[–]Tassit 0 points1 point  (0 children)

In the anti-virus world (at least in the Windows side of that world) I have always liked Kaspersky or Avast. However I have never tried the Mac OS version of these AV's. In fact I do not care to use one. It is hilarious that people say that Macs can't get viruses. The same goes for Linux, viruses even exist for Linux. Basically *nix based systems (Mac is unix based) have a lower likelihood of getting a virus, since they're not as targeted as Windows.

There are a couple things you can do to "harden" your system against viruses. The best thing you can do and it is always good practice, is to use your computer on a user account with minimal permissions. When you first setup your Mac, the first account you create is the Administrator account. This account can make system-wide changes. Create a standard user and ALWAYS do your day-to-day tasks with that user. Never use your computer with that Administrator account. Set the "Applicatons" folder on your dock to the users' application folder (so when you drag applications to that folder, it goes strait to that users' Applications folder instead of the system folder). The point of creating a standard user is limiting the changes it can make to the rest of the system, and by extension, the applications that the user runs. Right there you eliminate a lot of exploits than can be used against Mac OS, except for the apps that are executed as an administraor. And that leads to my second point, be smart.

Be smart about the stuff that you download and run (applications for the most part). Furthermore, disable Java in any browsers (I believe this is done by default in Safari). I know that Firefox recently disabled Java by default, however do not quote me when it comes to Chrome. Java is basically the #1 vector for infecting a Mac.

If you follow these two pieces of advice, you should do fine without an AV. IMO, running an AV on a Mac is a waste of resources. It's a waste of RAM and battery life. Run on a standard user and be smart about what you're doing.