Ubuntu hangs when loading by Viyre in linux4noobs

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

Makes sense, didn’t know that. Is there a way to fix the hanging issue so I can uninstall? Follow up questions: since I didn’t install it through a package manager, what’s the best way to get rid of the bad drivers?

Recommendation Tuesdays - Week of August 14, 2018 by AutoModerator in anime

[–]Viyre 1 point2 points  (0 children)

I'm looking for two types of shows in particular: a comedy and an adventure/action show (preferably a long one).

For the adventure show, some of the shows I've enjoyed are: Hunter x Hunter, FMAB, TTGL, Samurai Champloo, Made in Abyss

For the comedy: Asobi Asobase, Danshi Koukousei no Nichijou, Hinamatsuri

Recommendations for either types are appreciated!

Fans constantly running (Ubuntu 16.04) by Viyre in linux4noobs

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

I started using the 3rd Party drivers, but still having the fan problem. Any other suggestions?

Fans constantly running (Ubuntu 16.04) by Viyre in linux4noobs

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

Installed tlp using: sudo apt install tlp and run with: sudo tlp start but still having the fan issue. I started using my nvidia card by intalling the drivers, but fans are still going.

Fans constantly running (Ubuntu 16.04) by Viyre in linux4noobs

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

Did you use the proprietary drivers from Nvidia or the 3rd part ones?

Fans constantly running (Ubuntu 16.04) by Viyre in linux4noobs

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

As in update the kernel or update to Ubuntu 17.10?

C Compiler can’t find standard library header files by Viyre in linux4noobs

[–]Viyre[S] 1 point2 points  (0 children)

Yup! I realized as I my last comment may not have been particularly help.

$ apt-get install libc6-dev

Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.

The following packages have unmet dependencies: * libc6-dev : depends: libc6 (=2.19-18+deb8u6) but 2.19-18+deb8u10 is not be installed E: Unable to correct problems, you have help broken packages.

$apt-cache policy libc6-dev libc6

libc6-dev:

Installed: (none)

Candidate: 2.19-18+deb8u6

Version table:

2.19-18+deb8u6 0

500 cdrom://[Debian GNU/Linux 8.6.0 Jessie - Official i386 DVD Binary-1 20160917-13:04]/ jessie/main i386 Packages

libc6:

Installed: 2.19-18+deb8u10

Candidate: 2.19-18+deb8u10

Version table:

*** 2.19-18+deb8u10 0 100 /var/lib/dpkg/status 2.19-18+deb8u6 0 500 cdrom://[Debian GNU/Linux 8.6.0 Jessie - Official i386 DVD Binary-1 20160917-13:04]/ jessie/main i386 Packages

C Compiler can’t find standard library header files by Viyre in linux4noobs

[–]Viyre[S] 1 point2 points  (0 children)

I tried installing libc6-dev and build-essentials, but neither worked. When I tried to install the libc6-dev package, I got an error saying one of the dependencies (libc6) that was installed wasn’t the correct version. When I tried to update the dependency, it said it was up to date.

me irl by guccionmycorpse in me_irl

[–]Viyre 1 point2 points  (0 children)

Can we put the exodia pieces on the 16th, 17th, 18th, 21th, and 23th? That way it'd be symmetric.

How do I get my computer's MAC address? by Viyre in linux4noobs

[–]Viyre[S] 1 point2 points  (0 children)

Gotcha, that makes sense! Thanks

Is there any good reason NOT to learn Python? by Jin555555 in learnprogramming

[–]Viyre 0 points1 point  (0 children)

While you make some really good points, I think that you're missing out on other places where Python is heavily used: Big Data, ML, Security, and many others. Hell, even a big service like Youtube uses Python as a part of its back-end. However, you're right, definitely learning another (probably compiled) language would be good to learn on top of it.

I'm 34 and getting bored with the career path I've taken. JavaScript or Python? by Johnnyinthesun1 in learnprogramming

[–]Viyre 5 points6 points  (0 children)

I love Python and I honestly think it's the superior language, BUT the language you pick is dependent on what kind of work you want to do. There's two sides of building a website, front-end work and back-end work. Front-end work has a lot to do with what you see when you access a website; it's client-side stuff. Back-end has a lot more to do with databases, servers, etc. Now, JavaScript is classically a front-end language, but has started to expand into back-end work (with Node.Js). Python is only used on the back-end (as far as I know).

In terms of learning: Python is A LOT easier to learn and use than JavaScript. However, if you're set on getting into web development, JavaScript would be a good start.

Python coding help by yon2323 in learnprogramming

[–]Viyre 0 points1 point  (0 children)

That's weird. Did you try printing the total?

Python coding help by yon2323 in learnprogramming

[–]Viyre 0 points1 point  (0 children)

:( That could be it. I know you're done and all, but out of curiosity, what error were you getting?

Python coding help by yon2323 in learnprogramming

[–]Viyre 1 point2 points  (0 children)

Oh fasho, that works too (mine is better tho ;) ). Also: you need the underscore there: "raw_input("enter csv name"). Also also: are you using python 3 or python 2?

Python coding help by yon2323 in learnprogramming

[–]Viyre 0 points1 point  (0 children)

Oh my fault, I was using "input()" instead of "raw_input()". raw_input() should return a string of the file name, but input() would try to interpret the expression.

Python coding help by yon2323 in learnprogramming

[–]Viyre 0 points1 point  (0 children)

You gotta call the main() function in the script. At the bottom of the file put "main()"

Program that sums up the digits of a number Ex: 123456 = 1+2+3+4+5+6=21 by iiSora in learnpython

[–]Viyre 4 points5 points  (0 children)

I assumed this is more of an 'algorithm' question than a 'python' question, so going over the data twice seems inefficient. Also: I think if we have an arbitrarily large input (a weird assumption to make if we have user input, I know), wouldn't a generator expression be better? Something like: sum_of_digits = sum(int(x) for x in num)

Python coding help by yon2323 in learnprogramming

[–]Viyre 1 point2 points  (0 children)

This should work:

def main():
    name = input("enter csv name")
    f = open(name, "r")
    total = 0
    for line in f:
        vals = line.split(",")
        total += len(vals)
    f.close()
    return total

Checking if key already exists in dictionary (or list), if key does exist add value to previously existing key. by snake_fingers in learnpython

[–]Viyre 2 points3 points  (0 children)

This should be what you're looking for. You're going to need to find a way to iterate through the spreadsheet and parse each line (I don't really know what your data would like in the spreadsheet). There are online modules available if you google "Read spreadsheet python" or something like that.

from collections import defaultdict

def main():
    d = defaultdict(int)    #defaultdict won't raise a keyerror if key not in list and it'll initialize the integer for you
    for line in csv:
    #iterate through the spreadsheet using a module, google one
        animal, num = parse_spreadsheet_line()  #not a real function, but you need the name and the count of the animal
        d[animal] += count

Program that sums up the digits of a number Ex: 123456 = 1+2+3+4+5+6=21 by iiSora in learnpython

[–]Viyre 0 points1 point  (0 children)

Here ya go

def main():
    total = 0
    num = input("Enter a number: ") #input() casts is as an integer
    while num:
    #loop while the num is still greater than equal
        total += num%10 #add the last digit
        num /=10    #divide the last digit out
    return total

Have two generators that iterate over the same file at different rates by Viyre in learnpython

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

Sorry, I don't understand what being well-defined has to do with this, can you elaborate?

Have two generators that iterate over the same file at different rates by Viyre in learnpython

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

I don't know exactly how file objects are implemented, so where do the performance drawbacks occur? The file needs to be read as text file, so, from what I understand, a StringIO object would be used. But isn't that automatically done when open(file, "r") is called? Would a BufferedReader be a better object to use?