Information Technology

How do I add modules into pyCharm?

Learn Programming - Mon, 08/27/2018 - 15:41

So I wanted to get the grasp of programming and have decided to make a basic calculator. I've been doing some research into building windows with python and came across tkinter to make the window from my calculator. Problem is though, I haven't used any modules/libraries before and get this error message:

Traceback (most recent call last): File "C:/Users/User1/PycharmProjects/untitled/window.py", line 1, in <module> import Tkinter ModuleNotFoundError: No module named 'Tkinter'

So how do I add tkinter?

submitted by /u/Anger-vault
[link] [comments]

Hello! I need help with changing the background color of my header in HTML/CSS.

Learn Programming - Mon, 08/27/2018 - 15:38

Hello, i would say that i'm definitely a beginner and not very good at HTML and CSS.

i was just joking around trying to make a cool header... but the background color was white/transparent, and i wanted it to be another color, for example: black...

i've tried to some different things, but nothing really seems to work... pleas help!

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

HTML Help

Learn Programming - Mon, 08/27/2018 - 15:35

In HTML there are the <script> and </script> tags. I can use javascript in them.But can i too use CSS in them? or do i have to use the <style> and </style> tags? please help im trying to make a site for future-me.

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

Tumblr revamps its rules to clamp down on hate and violence

Engadget - Mon, 08/27/2018 - 15:32
If Alex Jones thought he could catch a break after steering his followers to Tumblr... well, he might not want to get too comfortable. Tumblr (owned by our parent brand Oath) is revamping its Community Guidelines with stricter policies, most notably...

Fortnite CEO slams Google for revealing security hole early

The Register - Mon, 08/27/2018 - 15:31
Normal policy or punishment for stepping outside Google walled garden?

The CEO of Epic Games, maker of smash-hit shoot-em-up Fortnite, has savaged Google for disclosing a security hole in his software.…

Please help me find a laptop! US, Budget $800 or less (willing to go up to $1000 if worth it)

Total budget and country of purchase: $800 or less ideally, but willing to go up to $1000 for the right laptop.

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 is a must! Also looking for good sound quality and 1TB of memory.

How important is weight and thinness to you? I would like the laptop to be small like an ultrabook, but I am flexible.

Which OS do you require? Windows, Mac, Chrome OS, Linux: I love Macs, but I think I can get a better computer for my budget with a Windows operating system.

Do you have a preferred screen size? If indifferent, put N/A: 13-14” preferred, but will do 15-15.6”.

Are you doing any CAD/video editing/photo editing/gaming? List which programs/games you desire to run: I want to use my laptop for photos, but I don’t do much complex photo editing. I want to be able to get a good view of my shots on my laptop screen.

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

Any specific requirements such as good keyboard, reliable build quality, touch-screen, finger-print reader, optical drive or good input devices (keyboard/touchpad)? I am flexible about this, but I want the webcam to be functional. I would like a backlit keyboard and reliable build if possible. I am a bit clumsy and have a cat with no personal space values.

Leave any finishing thoughts here that you may feel are necessary and beneficial to the discussion: Basically, I have had HP computers for most of my life and I feel like they don’t last. The Mac that I did have was great, but I couldn’t afford another one after it broke and now have a 4 year old HP Envy that is slower than molasses. I want a computer with good sound quality, a good webcam, and decent graphics with which I can look at and edit my photos. I don’t play games and I don’t download much, so I don’t need anything super intense hardware wise.

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

Stuck on Human Resource Machine level 9

Learn Programming - Mon, 08/27/2018 - 15:29

See screenshot at https://i.imgur.com/CVg3Aprr.jpg

I just have no idea how to approach this. Any tips?

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

Torn between two laptops

I'm looking at two laptops here:

https://www.staples.ca/en/acer-aspire-5-nx-gsyaa-002-15-6-inch-2-in-1-1-6-ghz-intel-core-i5-8250u-1-tb-hdd-8-gb-ddr4-windows-10-home/product_2802075_1-CA_1_20001

And

https://m.staples.ca/en/hp-17-ar007ca-17-3-inch-notebook-2-7-ghz-amd-a12-9720p-2-tb-hdd-12-gb-ddr4-sdram-windows-10-home/product_2801652_1-CA_1_20001

Note the Aspire A5 is not quite the same as the one recommend here.

For me they both have pros and cons, and I just can't decide between the two.

Basically, the main function will be work. I record meetings, usually using one or two mics, while simultaneously transcribing what is said during the meeting. So, a lot of word processing, and audio recording.

I like the HP a bit better for screen size and overall look, but I am given to understand the Acer is a bit more powerful. Both are within the budget, and I'd not like to go higher than the 700~ price point before tax).

Can someone help me break this tie?

Thank you!

(Side note: located in Canada, so prices are CAD)

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

General use, light gaming, photo-editing for <$1000 CAD

  • Total budget and country of purchase: Preferably $1000 CAD or less, somewhat flexible, purchasing in Ontario, Canada

  • 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 followed by good battery life. 2-1 is a nice bonus but I wouldn't use it 95% of the time.

  • How important is weight and thinness to you? Not important, don't mind a heavier/bulky laptop as long as there's a reason for the design

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

  • Do you have a preferred screen size? If indifferent, put N/A. Minimum 15"

  • Are you doing any CAD/video editing/photo editing/gaming? List which programs/games you desire to run. Adobe photoshop, after effects, light gaming

  • If you're gaming, do you have certain games you want to play? At what settings and FPS do you want? Diablo 3 and rpgs like fallout, witcher 3. As long as it can run medium graphics without looking choppy

  • Any specific requirements such as good keyboard, reliable build quality, touch-screen, finger-print reader, optical drive or good input devices (keyboard/touchpad)? reliable build quality, above average built-in speakers, plenty of USB ports, high quality display with wide viewing angles, SSD

  • Leave any finishing thoughts here that you may feel are necessary and beneficial to the discussion. I would use this as a "desktop" about 75% of the time, plugged in while outputting to a monitor and connected to my mouse, keyboard, etc. so portability is not essential. My current laptop is a HP Pavilion dv6 purchased in 2012 for university. I have no brand preference, and I've only recently decided to look for a new laptop, so I don't have a short list yet.

Thanks!

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

Current Strategies to Share App Install Link after user Downloads App?

iOS Programming - Mon, 08/27/2018 - 15:10

What currently can be done after a users downloads and registers with an app to share a link to download the app to his or her friends on Facebook?

Similar to how the old FBSDKAppInviteDialog used to work?

What about fb messenger can we send message to users friends (with their permission and if given proper permissions from facebook) similar to a messenger bot?

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

General Use/Light Music Editing $600 USA

Looking for some options for a friend to get a new laptop.

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

$600.00 (budget can probably be pushed a little if needed)

* **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, but she indicated that she would love a 2-in-1 if it wasn't too much of a compromise.

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

Weight and thinness are important due to it needing to be carried in a backpack for school

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

Windows

* **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.**

N/A

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

N/A

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

Something with a relatively large SSD. A SSD and a large HDD would be even better, but I know that is a big ask considering the budget.

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

The laptop will just be used for school work (browser based quizzes, Microsoft Word). It will also be used for light music editing for dance numbers. She wasn't sure of the exact program she uses, but it runs on an older laptop currently, so I don't think it is anything too resource intensive.

I did some brief research of my own, and I was thinking the Lenovo Flex 14 (AMD) with the IPS display) would be a good fit, but I don't have any experience with it. Thanks in advance!

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

Invalid URI using Johnnycrazy's Spotify Nuget package.

Learn Programming - Mon, 08/27/2018 - 15:10

So I've got the first part of authentication down for this Spotify API. I wanted to make a project to find music based on genre although I get an invalid URI whenever I try to do anything after I authenticate. I've gone to the dashboard of Spotify as the documentation says and whitelisted my localhost in order to be able to use the local server when I test my website. But nothing seems to really work.

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

How can I find the third most occurring word when I already know how to find the most occurring ?

Learn Programming - Mon, 08/27/2018 - 15:08

I already know the algorithm to find the most common word in my file. I am only allowed to use arrayLists and no hashmaps. Here is how I find the most frequent word:

private List<String> mostOccur = new ArrayList<String>(); private List<Integer> count = new ArrayList<Integer>(); . . . . public void findMax() { String maxWord = " "; int maxNumber = 0; maxNumber = this.count.get(0); for (int i = 0; i < this.count.size(); i++) { if (maxNumber < this.count.get(i)) { maxNumber = this.count.get(i); maxWord = this.mostOccur.get(i); } } System.out.println("Max word: " + maxWord + " count: " + maxNumber); }

So this method words perfectly for finding the max word. However, how can I find the third most occuring word (while not using any built in libraries/hashmaps, ect ? This is what I have done and it is not giving me the correct result:

public void findThirdMax() { String first = " "; String second = " "; String third = " "; int firstMax = 0; int secondMax = 0; int thirdMax = 0; firstMax = this.count.get(0); for (int i = 0; i < this.count.size(); i++) { if (firstMax < this.count.get(i)) { firstMax = this.count.get(i); first = this.mostOccur.get(i); } } secondMax = firstMax; for (int i = 0; i < this.count.size(); i++) { if (secondMax < this.count.get(i)) { secondMax = this.count.get(i); second = this.mostOccur.get(i); } } thirdMax = secondMax; for (int i = 0; i < this.count.size(); i++) { if (thirdMax < this.count.get(i)) { thirdMax = this.count.get(i); third = this.mostOccur.get(i); } } System.out.println("Third most common word: " + third + " count: " + thirdMax); }

The output to this method is:

Third most common word: count: 76

I am stuck on how I can find the third most occurring method with how I have build my program currently. Any advice is appreciated, thanks!

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

[Help] Trying to use method to set object methods and variables.

Learn Programming - Mon, 08/27/2018 - 15:01

Hey, I'm trying to reduce the amount of duplicate code i'm writting in JS objects. I have a methods that I want to use where almost nothing is changing except the target and I'd like to extract that out and somehow get the target through the objects property name. Hopefully the example I put together makes sense. I guess i'm trying to template things.

myOBject = { d: { get: function(list, id) { someFunction(list, id) }, prop1: { data: [], list: myObject.config.lists.prop1.guid, get: function(projectId) { if (_.isNil(projectId)) { return myObject.d .get(myObject.d.prop1.list) .getAll() .then(r => (myObject.d.prop1.data = r)); } return myObject.d .get(myObject.d.prop1.list, projectId) .then(r => (myObject.d.das = r)); } }, // I want to write this once and use the object key ("prop2") as an argument prop2: { data: [], list: myObject.config.lists.ideation.guid, get: function(projectId) { if (_.isNil(projectId)) { return myObject.d .get(myObject.d.das.list) .getAll() .then(r => (myObject.d.prop2.data = r)); } return myObject.d .get(myObject.d.das.list, projectId) .getAll() .then(r => (myObject.d.prop2.data = r)); } } } } myOBject = { d: { get: function(list, id) { someFunction(list, id) }, }, // Use this to duplicate shared funtions for similar spec: { get: function() { var target = "" // the method calling it (prop1 or prop2) return { data: [], list: myObject.config.lists[target].guid, get: function(projectId) { if (_.isNil(projectId)) { return myObject.d .get(myObject.d.prop1.list) .getAll() .then(r => (myObject.d.prop1 = r)); } return myObject.d .get(myObject.d.prop1.list, projectId) .then(r => (myObject.d.das = r)); } } }, prop1: myObject.spec(),// some how know I'm in `prop1` expose `myObject.spec.get()`, allowing me to use myObject.d.prop1.get() with all the prop1 configs set up prop2: myObject.spec() // } } submitted by /u/simkessy
[link] [comments]

‘Searching’ turns a computer screen into compelling cinema

Engadget - Mon, 08/27/2018 - 15:00
The idea of watching a movie told entirely through computer screens sounds like a gimmick. Unfriended gave us a taste of that. It was a horror movie told through Skype video chats in what producer Timur Bekmambetov calls Screenlife, his movement to t...

Cyberpunk 2077’s hour-long, gun-filled E3 gameplay reveal has gone live

Ars Technica - Mon, 08/27/2018 - 14:58

The upcoming video game Cyberpunk 2077 took this summer's E3 by storm with a behind-closed-doors reveal that set tongues wagging. Now, two months later, the game's developers at CD Projekt RED have deemed this hour-long gameplay slice worthy of public consumption.

We've reviewed the footage, which the developer posted on Monday on its own Twitch feed and then encouraged other users to re-stream, and we can confirm both its similarities and differences to what we saw back in June. In short: differences in combat, movement, and tempo appear to indicate this is a real-time-rendered demo—albeit one that adheres to a strict path.

Read 4 remaining paragraphs | Comments

Prusa 2.5 upgrade with textured sheet shipped.

3D printing news - Mon, 08/27/2018 - 14:58

I placed my order mid April and got notification today that my upgrade with textured bed has shipped. I almost gave up hope. PEI and I haven’t gotten along so I’m excited for the change

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

How to invoke actions in other programs using scripts

Learn Programming - Mon, 08/27/2018 - 14:55

Okay I don't know how to phrase the question so instead i will state the problem,( did not know what to search on google)

So basically i use this software that has a backup mechanism but it is manual, and I wanted to automate it, because well, i am lazy fuck, so what i want to know is, is it possible to write a script that invokes actions inside this other program, (it isn't open source) like go to menu click backup and voila at a certain interval of the day.......

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

Pages