Information Technology

Just started learning to code with Python. Having trouble with a topic. Can anyone help?

Learn Programming - Thu, 11/15/2018 - 21:09

Hey everyone. I started learning python a week and a half ago. I am stuck on the topic of functions in functions. I'm not comprehending it. Can anyone throw some tips or resources my way. I would really appreciate it. I am using a A Smarter Way to Learn Python book btw and am just having trouble with that topic.

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

I'm losing my mind... Can you help? Responsive design in HTML and CSS

Learn Programming - Thu, 11/15/2018 - 21:02

I'm quite newbie with HTML and CSS, and my boss has asked me to create mailing templates in one column (and I'm a rookie in this). I need to achieve something like this (please forget the awful quality, only had Paint at work):

Link: https://ibb.co/mHeHAL

I want this to be responsive, and the MediaQuerie is driving me crazy. How can I achieve to make it work in most mail services? Is there a template I can use to get the result? If you are a patient person and has the answer, I'm looking forward for a inbow message and would really appreciate it.

Thank you for all! :)

PS: The bottom margin in the photo is a mistake, it could have a few px, but not like this.

PS2: Is it possible to use the hover thing in my botton? Is it compatible with all mail sevices? I've tested it in Lotus and Gmail and has worked.

PS3: Sorry for my English!

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

Hangman error printing after fourth miss (C++)

Learn Programming - Thu, 11/15/2018 - 20:59

Hello,

I know this is spaghetti code, but it's my girl's birthday at midnight and I want to surprise her with this hangman game. There are two errors. 1) When the user enters a letter not found in the secret word for the fourth time, it doesn't print the second arm as expected. 2) It ends the game one guess too late (after the user has already lost, it still asks for a new letter). Could someone help me debug this really quickly? Here's the code: https://pastebin.com/5HniQfsU

Thanks a ton!

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

Is it okay if I program Connect Four this way? Is there another way?

Learn Programming - Thu, 11/15/2018 - 20:57

Here:

https://github.com/Chubek/CodingChallenges/tree/master/ConnectFour

Please be gentle I know it's a bad way of doing it but I've only been seriously programming for two weeks. I just wanted a challenge. What I want to know is that is this a viable way to solve Connect Four problem, and what are some other ways to do it.

Mods: This code does not work so it's not a code review thread.

People who don't like this thread: Please PM me why so I can make better threads.

Thank you all.

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

Fira Code iScript (similar to operator monaco but based on fira code): Need keywords of all Programming Languages (PLs) in italic

Learn Programming - Thu, 11/15/2018 - 20:47

Hello all, I am a noob and tried setting up firacode iScript in VSCode. I am able to see italics for comments and for html attributes in .html files. But for any other PL, no italics can be seen except for comments. So, how can I have the same for all keywords (var, import, export, for, while, function etc. These are for JS ). How can I have this for all PLs

Thanks in advance

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

Portable fast laptop suggestions for a clueless shopper, any advice?

So my laptop of the past 4 years (hp pavilion) died on me and I’m looking for a new laptop. My price range is around 100-500 but will stretch to 600 if there’s something worth it. I’m going into a psych grad program so it needs to be able to run things like SPSS and other statistical software. Looking around 14-15 inch screen, light weight, good battery life (at least 5 hours). Something that’ll be speedy and can handle multiple internet windows open at a time. I’m open to 2 in 1 options/ touchscreen.

If you got this far, thanks for taking the time to read this!

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

College Student Laptop

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

400-500, USA. As a college student the cheaper the better, but if being closer to 500 is necessary that's okay.

* **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, but my college requires at least 4 hours of battery life.

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

I will have to bike around campus with it in my backpack so I would prefer smaller. However, at this price point as long as it fits in a backpack I will be okay.

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

Windows

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

I don't have a preferred screen size but my college requires it is at least 12.1"

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

As an engineering student, my computer will have to run MatLab, AutoCAD and SolidWorks.

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

This computer will be primarily used for school. The only game I really play is cities skylines, but I don't expect this laptop to run it well.

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

Nothing specific

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

My college has a couple of other minimum requirements but I think most computers will meet them. They are, a processor better than Intel Core i3 2.2Ghz, at least 4GB ram, and 1024×768 Resolution – High Color. They also recommend having as much memory and processing power as financially reasonable. I hope this isn't too much. If the budget is too low to run the programs mentioned above please let me know. Thanks!

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

Lenovo Thinkpad X1 Carbon or ASUS FX503VM?

Hi, I posted here a little while ago asking about help finding a new laptop to buy. Looking at the laptops suggested there led me to doing some more research of my own, and now I'm stuck between two choices, as stated in the title.

My budget is around 1500 USD (tax included), with the lower price the better. I would like a laptop I can use for college as well as a decent amount of gaming. Size and weight aren't a concern, and I can compromise on battery life since I'm used to a rather low battery life.

I've heard good things about both of these laptops, but I also have concerns. I've heard that the Lenovo Thinkpad X1 Carbon can be iffy running games and sometimes has cooling problems, but from what I've seen the ASUS FX503VM has a low RAM which can interfere in performance at times. There's also the fact that the ASUS FX503VM is cheaper than the Lenovo Thinkpad X1 Carbon.

Which of these laptops should I go with? Is there anything I should know about either? Frequent problems or downsides which could impact my use of either laptop?

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

Netflix orders World War II series with first-of-its-kind animation

Engadget - Thu, 11/15/2018 - 20:38
Netflix announced today that it has ordered the production of a war drama series call The Liberator. The four-part show, set during World War II, will be the first ever to be produced in Trioscope Enhanced Hybrid Animation. The production technology...

(Well built) Producing/light gaming laptop ~1100e!

  • Total budget and country of purchase: Around 1100e, Finland * 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 value for money/decent battery life * How important is weight and thinness to you? It should be lightweight and thin , but specs come first * Which OS do you require? Windows, Mac, Chrome OS, Linux. Windows * Do you have a preferred screen size? If indifferent, put N/A. 13" or 14" with small bezels * Are you doing any CAD/video editing/photo editing/gaming? List which programs/games you desire to run. It shold be able to run Music Producing software FL Studio 20, and light gaming (League of Legends) * If you're gaming, do you have certain games you want to play? At what settings and FPS do you want? 50fps Medium/High League of Legends, not any hard demanding games * Any specific requirements such as good keyboard, reliable build quality, touch-screen, finger-print reader, optical drive or good input devices (keyboard/touchpad)? Dedicated GPU for light gaming, USB-C, and if possible Thunderbolt 3 for connectivity. Build quality also a big plus * Leave any finishing thoughts here that you may feel are necessary and beneficial to the discussion. It should have a separate GPU for the light gaming, and good enough CPU to run music priducing software. Something like Huawei MateBook D with i5 8250U and MX150. Also, what are your thoughs about Huaweis security issues and spyware? They are a consern to me also. Thanks in forehand!
submitted by /u/tammi656
[link] [comments]

$750, USA, 13-15"- Digital drawing and light gaming

  • Total budget and country of purchase: -$750, 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 specs for the money.-

  • How important is weight and thinness to you? -Not very.-

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

  • Do you have a preferred screen size? If indifferent, put N/A. In the 13-15" range.

  • Are you doing any CAD/video editing/photo editing/gaming? List which programs/games you desire to run. Lots of digital drawing--Paint Tool SAI, GIMP. Light to medium gaming.

  • If you're gaming, do you have certain games you want to play? At what settings and FPS do you want? FTL, Guild Wars 2, Witcher 3. ~30 fps on low quality minimum, ideally would reach ~30 fps on medium.

  • Any specific requirements such as good keyboard, reliable build quality, touch-screen, finger-print reader, optical drive or good input devices (keyboard/touchpad)? IPS display ideally for the better color reproduction. 12 or 16 GB RAM ideal since digital drawing eats up a lot; if this is unrealistic for the budget, then it would be nice to at least be able to expand later.

  • Leave any finishing thoughts here that you may feel are necessary and beneficial to the discussion. SSD and internal HDD would be nice, so I can put the OS on the SSD and bigger or less speed-needy programs/docs on the HDD. But I can always buy an USB HDD if need be.

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

A nice simple chromebook, $200-300 budget

I'm looking for a Chromebook for basic schoolwork and internet browsing.

I'd love something that feels like quality. At least moderately thin and light, with a backlit keyboard and a good battery, if possible.

I need a screen larger than 12", at least. Those tiny screens don't quite satisfy me.

Really, I just want the best laptop I can get around this price range for my purposes. If it'll run Microsoft word and browse the internet without any hiccups, I'll be totally pleased.

I was really wanting to get windows, but I'm starting to feel like there aren't any great options for quality windows laptops with such a low budget. I suppose ChromeOS will work just fine.

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

graphics

Learn Programming - Thu, 11/15/2018 - 20:19

Is there any way to make a graphical game in c++? I have only made text-based games. If so, where to learn?

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

Trump in Spaaaaaaace: Washington DC battles over who gets to decide the rules of trillion-dollar new industry

The Register - Thu, 11/15/2018 - 20:14
Sudden changes to FCC document raise eyebrows

Analysis There's a new battle brewing in Washington DC and for once it's not between Democrats and Republicans, but over who gets to decide the policies for a new trillion-dollar market: The internet in space.…

Looking for a cheap laptop for college: notetaking and music production

  • Total budget and country of purchase: preferably <$500, but less than $550~600; United States
  • Do you prefer a 2 in 1 form factor, good battery life or best specifications for the money? Pick or include any that apply. 2 in 1 for notetaking, good battery life is preferred
  • How important is weight and thinness to you? Reasonable weight for carrying around; not super important, but a light laptop is preferred
  • Which OS do you require? Windows, Mac, Chrome OS, Linux. Windows
  • Do you have a preferred screen size? If indifferent, put N/A. Preferably 15.6" but 13.3" works as well
  • Are you doing any CAD/video editing/photo editing/gaming? List which programs/games you desire to run. General light music production, notetaking. MAYBE games, but it is not a priority
  • If you're gaming, do you have certain games you want to play? At what settings and FPS do you want? If gaming is possible, then I will play League of Legends and World of Warcraft. I don't mind settings at low to medium.
  • Any specific requirements such as good keyboard, reliable build quality, touch-screen, finger-print reader, optical drive or good input devices (keyboard/touchpad)? Stylus/touch-screen is a must.
  • Leave any finishing thoughts here that you may feel are necessary and beneficial to the discussion.
  • Gaming is not a priority at all, especially since my budget is low. Thank you in advance for your responses!
submitted by /u/zeconfusedone
[link] [comments]

CompSci Weekend SuperThread (November 16, 2018)

Computer Science: Theory and Application - Thu, 11/15/2018 - 20:06

/r/compsci strives to be the best online community for computer scientists. We moderate posts to keep things on topic.

This Weekend SuperThread provides a discussion area for posts that might be off-topic normally. Anything Goes: post your questions, ideas, requests for help, musings, or whatever comes to mind as comments in this thread.

Pointers
  • If you're looking to answer questions, sort by new comments.
  • If you're looking for answers, sort by top comment.
  • Upvote a question you've answered for visibility.
  • Downvoting is discouraged. Save it for discourteous content only.
Caveats
  • It's not truly "Anything Goes". Please follow Reddiquette and use common sense.
  • Homework help questions are discouraged.
submitted by /u/AutoModerator
[link] [comments]

<$500 2 in 1 laptop for web searching and YouTube mostly. Looking for 8GB RAM.

  • Total budget and country of purchase: -<$500 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. -2 in 1 and good battery-

  • How important is weight and thinness to you? -Weight and thinness isn't super important-

  • Which OS do you require? Windows, Mac, Chrome OS, Linux. -Windows or Chrome OS. She only really uses it for Music, or social media.-

  • Do you have a preferred screen size? If indifferent, put N/A. -~15 inches preferred, but can do smaller-

  • Are you doing any CAD/video editing/photo editing/gaming? List which programs/games you desire to run. -Basically Social Media and that's all-

  • If you're gaming, do you have certain games you want to play? At what settings and FPS do you want? -Very very very light gaming if any at all. I'm talking like solitaire at most-

  • Any specific requirements such as good keyboard, reliable build quality, touch-screen, finger-print reader, optical drive or good input devices (keyboard/touchpad)? -Low profile keyboard. She doesn't want crumbs to get into the keyboard easily.-

  • Leave any finishing thoughts here that you may feel are necessary and beneficial to the discussion. -Girlfriend's 5 year old laptop is starting to die, and she is looking for something new and fast. She doesn't do anything too demanding, but 8GB is pretty important. Thanks!-

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

Pages