Information Technology

Two friends

Learn Programming - Fri, 11/16/2018 - 22:47

If two childhood friends meet each other after school and both are computer science engineers now, on what basis ( number of programming languages or problem solving or CS knowledge ) is it correct to judge which in is best among both?

submitted by /u/ramhemanth3
[link] [comments]

Need help with Python 3.7 school assignment

Learn Programming - Fri, 11/16/2018 - 22:43

*Everything is tabbed correctly, reddit isn't carrying over the spacing.*

The assignment is:

  • Create a list that contains 12 string values: the names of the months.
  • Open the monthlySales.txt file.
  • Read the numbers into a list and convert the numbers from string to float.
  • Close the file.
  • Prompt the user to enter a month number from 1 to 12.
  • If the user does not enter a valid number, continue to prompt the user until an integer from 1 to 12 is entered. (Hint: use a while loop.)
  • When a valid number is entered, display the sales value for the corresponding month (formatted with commas and two decimal places).
  • Hint: if you subtract 1 from the number that is entered, you will have the correct index value for the list of sales numbers.
  • Use a for loop to total the values in the list containing the sales numbers.

I'm using the following code so far:

month_name = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]

# open monthlysales.txt, convert it to a list and close file

sales = open("monthlysales.txt", "r")

sales_list = sales.readlines()

sales.close()

sales_list_float = [float(x) for x in sales_list]

# strip off the "\n" from each list item

number_of_list_item = 0

while number_of_list_item < len(sales_list):

sales_list[number_of_list_item] = sales_list[number_of_list_item].rstrip('\n')

number_of_list_item = number_of_list_item + 1

# input - request input from user to enter month number. If number is not valid, prompt user until valid number is entered.

month_num = float(input("Enter a month number (1-12): "))

while month_num < 1 or month_num > 12:

month_num = float(input("Invalid Entry. Enter a month number (1-12): "))

month_num = month_num - 1

print ("The", month_name[month_num], "sales total is:", sales_list_float[month_num])

I've attempted to convert the imported list from str to float and I think I have that figured out, however I'm getting the error message (Line 34 is the print line):

Traceback (most recent call last):

File "C:/Users/Azunia/Desktop/College/Python/My Solutions/Ch7Text/monthlysales.py", line 34, in <module>

print ("The", month_name[month_num], "sales total is:", sales_list_float[month_num])

TypeError: list indices must be integers or slices, not float

I've attempted to google the error, but every answer just seems well beyond my understanding.

submitted by /u/Azunias
[link] [comments]

Does a better graphics card provide any benefit to a backend web developer? Radeon 555X vs 560X worth $100, or will I see no difference?

Ok, so I'm looking at the current Apple MacBook Pro 15". The one I'm looking at has the Radeon Pro 555x. For a extra $100 I can get the 560x. I do backend web dev. I do no gaming, no game development. I very occasionally use Xcode to create iPhone apps, but most of my time is spent in Chrome, Terminal, and Sublime Text. So I'm curious if that extra $100 will provide any benefit whatsoever, or is it really just giving me additional power that I'll rarely, if ever need?

My question is not whether I should upgrade the graphics card VERSES upgrading Ram/Processor/etc. It's just whether or not I'm likely to see any realistic benefit from the 560 vs the 555. Thanks!

submitted by /u/eyeheartboobs
[link] [comments]

How would you code a streaming app?

Learn Programming - Fri, 11/16/2018 - 22:42

How would you code an app like the bs app where it grabs links from a specific source and puts them all in one app?

submitted by /u/Kurumi_Fortune
[link] [comments]

Programming Laptop for Unity 2D <$1000 USA

* **Total budget and country of purchase:**

$1000 USA

* **Do you prefer a 2 in 1 form factor, good battery life or best specifications for the money? Pick or include any that apply.**

Best specifications for the money.

2 in 1 would also be nice, but not at all necessary. Especially if it will significantly increase the cost.

* **How important is weight and thinness to you?**

I won't be carry this around that often so I'm not worried about getting anything super light or thin, but I will have it sitting on my lap a majority of time so nothing too heavy.

* **Which OS do you require? Windows, Mac, Chrome OS, Linux.**

Windows 10

* **Do you have a preferred screen size? If indifferent, put N/A.**

N/A

* **Are you doing any CAD/video editing/photo editing/gaming? List which programs/games you desire to run.**

Mostly going to be using Unity 2D and Visual Studio.

Also going to be running Photoshop occasionally .

Would like to be able to run these programs smoothly while also having smaller programs like web browsers, music players, etc running.

* **If you're gaming, do you have certain games you want to play? At what settings and FPS do you want?**

Nothing specific. Just standard 2D Unity games at 60FPS.

* **Any specific requirements such as good keyboard, reliable build quality, touch-screen, finger-print reader, optical drive or good input devices (keyboard/touchpad)?**

Good keyboard.

* **Leave any finishing thoughts here that you may feel are necessary and beneficial to the discussion.**

If I can meet all my requirements at a lower price, I'd prefer that over adding additional features that I might not need.

Mostly looking for good Black Friday/Cyber Monday deals.

submitted by /u/YamtUp
[link] [comments]

In it for a long time.

For people who've seen me text like 3 times, that's my bad. I had issues copying and pasting, and I had thought they had deleted my old posts. Well anyway, here I go.

Price limit and country of origin 1800 (willing to go a bit higher) and in Canada.

Is 2 in 1 important Absolutely not. I hate it. All it does is hitch up prices.

How important is thinness to you? I prefer things a bit thicker, because it's usually cheaper, gets less of a loud fan when hot, and it can fit bigger and better things. What I don't want is heavy. I would also like it if it fit comfortably in a normal old backpack.

Which os (mac,Linux, windows) I prefer windows, as though it's annoying, it has free mine craft :)

Screensize I like it a bit smaller, but big is fine

Are you doing editing Yes, both video and picture editing. Also some light programming

Gaming The most I want out of the thing is overwatch on high, and monster hunter world on low-medium. Also games like sfv on low would be nice too. I'm not going to be playing pub or god of war though, so I don't need a laptop I'm never going to really push.

Other things I don't really need an orange death machine looking thing, just black or gray or white would be fine. I do want the keyboard to light up though. This one is very important. I will be using this thing for about 4 years, so longevity is in mind. I don't want a razer thing that'll be one upped in like a week, and become obsolete. If there's like an ultimate form of a laptop coming in 2019 or even 2020, I'm willing to wait.

submitted by /u/Ola_oni
[link] [comments]

Starting College Fall 2019, what are some good laptops I could get on black Friday? $500-$800(US)

Hi guys,

I'm starting college in a few months. What is a good laptop that can run games on mid settings. Preferably with 2TB HDD(doesn't really matter tho). My budget is $500-$800 (US) Hopefully there are some good black Friday deals I can take advantage of.

submitted by /u/TAC69
[link] [comments]

Which Linux distros provide the best job opportunities?

If you want to get a job as a Unix SysAdmin in 2019, what are the top 3 Linux distros to know? Thanks.

submitted by /u/robertlf
[link] [comments]

Need help on deciding on whether to pull the trigger or not

https://computers.woot.com/offers/hp-omen-17-intel-i7-rx580-8gb-laptop-36?gclid=CjwKCAiA8rnfBRB3EiwAhrhBGpS_1P-FtfkYuILp78Jug3IPCGp6l6QNf4CJYAfhIpgBV3_MGV5MWBoCEEEQAvD_BwE

So i can't decide if to get it or not, there's the G3 with a 1060 but it's a Max Q not the full 1060, so is this a good deal? This will mainly be to take to my GFs house or outta town to game there when I can, while at home I have a pretty good home build Thanks

submitted by /u/gem_share
[link] [comments]

curly bracket ~ programmer greatest enemy

Learn Programming - Fri, 11/16/2018 - 22:25

This curly bracket is making me crazy,

my code don't work because of failing to see the excess curly bracket... :D

submitted by /u/lampheart
[link] [comments]

Good source for documentation on credit card payments.

Learn Programming - Fri, 11/16/2018 - 22:24

Has anybody have experience setting up credit card payment? Any documentation or website I could use as a guide?

submitted by /u/darcMadder
[link] [comments]

College laptop, light gaming, good battery, 2000

  • Total budget and country of purchase:

    • Buying in the US, Budget is around $2000, probably $2300 maximum
  • Do you prefer a 2 in 1 form factor, good battery life or best specifications for the money? Pick or include any that apply.

    • Probably would need the best balance between a battery that can last at least a whole school day, preferably 6 hours minimum on light use. Don't need a 2 in 1.
  • How important is weight and thinness to you?

    • Something under 8 pounds, wouldn't want it to be much thicker than an inch at most
  • Which OS do you require? Windows, Mac, Chrome OS, Linux.

    • Windows 10
  • Do you have a preferred screen size? If indifferent, put N/A.

    • 13 Inches or greater.
  • Are you doing any CAD/video editing/photo editing/gaming? List which programs/games you desire to run.

    • I'll most likely be doing some programming, amateur video editing, a bit of gaming. Photoshop, Premiere Pro.
  • If you're gaming, do you have certain games you want to play? At what settings and FPS do you want?

    • GTA 5, Overwatch, Assetto Corsa, Steep, PUBG. At least 50 FPS.
  • Any specific requirements such as good keyboard, reliable build quality, touch-screen, finger-print reader, optical drive or good input devices (keyboard/touchpad)?

    • Something that's reliable and can withstand being put in a backpack. Once again, a good battery life combined with the best specs would be ideal.
  • Leave any finishing thoughts here that you may feel are necessary and beneficial to the discussion.

    • I have already looked into the Aero 15x V8, but it seems it has too many issues with drivers, screen bleed, and keyboard malfunctions. If there exists something like that without those issues, that would be perfect. As for specs, 16 GB of ram is fine, and a 1060/1070 Max-Q would be good. If possible, a 120/144 hz display. Thanks in advance!
submitted by /u/FizzyFuz
[link] [comments]

Pointers?

Learn Programming - Fri, 11/16/2018 - 22:13

What's the point of pointers? I understand the concept that it points to the address of another variable but what can I use it for?

It would help if you could speak in the context of building a text based game, as that's what I'm working on right now.

In what situations would I need to use a pointer when coding my game?

submitted by /u/yestyleryes
[link] [comments]

Laptop for Game Development

Hi all, I am looking for a laptop to develop games. I already have a beefy computer at home running a 1080 so i am looking for something that is good to bring to a coffee shop or something.

  • Total budget and country of purchase:

    • Purchasing in the US. The cheaper the better. Under $2000 preferred.
  • Do you prefer a 2 in 1 form factor, good battery life or best specifications for the money? Pick or include any that apply.

    • Good battery life, followed by best specs for the money. Do not need 2 in 1.
  • How important is weight and thinness to you?

    • As light weight as possible.
  • Which OS do you require? Windows, Mac, Chrome OS, Linux.

    • Windows 10.
  • Do you have a preferred screen size? If indifferent, put N/A.

    • 13-15 inches.
  • Are you doing any CAD/video editing/photo editing/gaming? List which programs/games you desire to run.

    • Microsoft visual studio, code::blocks anything used to develop a game.
  • If you're gaming, do you have certain games you want to play? At what settings and FPS do you want?

    • Honestly I don't need this to be a gaming setup. I have one at home the is a beast, just looking for a good game dev computer, if that means it good with games then cool, but not a priority.
  • Any specific requirements such as good keyboard, reliable build quality, touch-screen, finger-print reader, optical drive or good input devices (keyboard/touchpad)?

    • Good keyboard, and reliable build quality.
  • Leave any finishing thoughts here that you may feel are necessary and beneficial to the discussion.

    • Any good black friday deals?
    • If you have any valuable input let me know, perhaps even things i should be considering that I did not include in this post.

submitted by /u/a127man
[link] [comments]

Looking for a good laptop for programming, 14"+, Canada, roughly $2,000

Hello everyone, I thought i'd give this subreddit a go, I'm looking for a laptop for programming. my budget is $2,000 ish canadian.
Things I need: Cpu: i7-8xxx + (8000 series or above) Ram: 8gb (I would like to upgrade it myself as it's usually cheaper) Screen: 14-15" 1080P or 1440P (dont want 4K) Storage: nvme ssd if only 1 slot 500gb+, if more than one slot 256gb+ then I can add a 500gb ssd. Battery Life: 7+ hours of usage, I wont be using it for gaming, work only.

Things I would like to have: -A keyboard with a full length right shift key -no num pad on the side -ram and storage slots accessable - would like to have a screen that isnt glass - thunderbolt 3 I Don't need a graphics card in it, but one would be useful, Just dont want one thats going to eat alot of my battery up.

I have been browsing some laptops and I have it narrowed down to Dell xps 15, Lenovo thinkpad X1, Gigabyte Aero 15. I am not set on any of these laptops, if anyone has any opinions or suggestions It would be very appreciated.

Thanks

submitted by /u/PURPLEsweats
[link] [comments]

Analog Clock Goes Digital, or Vice Versa

Hack a Day - Fri, 11/16/2018 - 22:00

Designing a good clock takes a lot of considerations. It’s not just hands, faces, and numbers anymore; there are also word clocks, electronic clocks, marble clocks, or water clocks, and just about anything else imaginable can be used to tell time. Of course, electronic clocks are great for their versatility, and this one shows off an analog-looking clock that is (of course) digital, leveraging all of the perks of analog with all of the upsides of digital electronics.

One of the key design considerations that [Sasa] had while building this piece was that it needed to be silent. LEDs certainly fit that description, so the decision was made to go with an WS2812b ring. It runs using a STM ST32F103 Nucleo board (and a cheaper version of it in later versions of this clock) which shows a red LED for the current hour, yellow LEDs for the traditional analog clock divisions, a green LED for the current minute, and glows the rest of the LEDs up to the current minute with a rainbow pattern.

This is a really clean, simple build with good design at its core, and would be easy to replicate if you’re looking for an eye-catching clock to build. As a bonus, all of the schematics and code are available on the project site, so everything you need is there. If you’re looking for more inspiration, there are some clocks that are even more unique, like this marble clock that is a work of art — but is anything but silent.

Spotify's holiday discount on Premium works for lapsed users too

Engadget - Fri, 11/16/2018 - 21:45
Spotify is offering a couple of holiday deals and they're not limited to new users like these sorts of discounts typically are. First time Spotify Premium users in the US can get three months for $0.99 as long as they haven't used a 30-day trial befo...

How to find the init system of a Linux system!

Command Line - Fri, 11/16/2018 - 21:43
strings /sbin/init | awk 'match($0, /(upstart|systemd|sysvinit)/) { print toupper(substr($0, RSTART, RLENGTH));exit; }'

submitted by /u/unixbhaskar
[link] [comments]

Pages