Information Technology

Bad experience in the classroom trying to learn programming, is it better to learn outside of a classroom?

Learn Programming - Tue, 06/19/2018 - 20:47

I recently took a programming class that was supposed to be just an introductory course on python and I just did not comprehend where things go or why is it necessary to have all of these parenthesis and periods in the code; I passed with a C but I hate leaving a class with not knowing what I was supposed to learn. I want to be able to code but some of the things the teacher taught I just didn't understand let alone be able to replicate it or do it by myself; is this common or am I just not cut out for programming? Should I attempt to learn by myself? Have others gone through this? I've heard that python is one of the easiest programming languages to learn so it kind of concerns me that I did not do well in the class.

submitted by /u/spot-of-ginger
[link] [comments]

Initial layer stringing?

3D printing news - Tue, 06/19/2018 - 20:45

I've got a Monoprice Maker Select v2.1, that seems to be stringing on the initial layer:

I've tried downing the hot-end temp, and upping filament retraction. The video was taken with 200° Hotend, 50° heatbed, 5mm retraction.

Once the printer gets past the first layer or two, there's absolutely no stringing. This seems like a semi-common thing, but I really can't find much of any answers for how to fix it.

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

Can I get help

3D printing news - Tue, 06/19/2018 - 20:42

I’m want to make designs and be able to get creative but I’m not sure what program I should use any suggestions. Anything close to free or free

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

How do I know if I pasted my code in the right folder in Cyberduck?

Learn Programming - Tue, 06/19/2018 - 20:34

I am just starting to learn how to code and I wanted to see my code in the form of a website on the internet. I have the domain name, the hosting server, and the program to upload with, Cyberduck, but I can't seem to get it to work. Am I placing my code in the right folder, public FTP, or is it wrong all together? Anything is helpful.

I have watched a lot of videos but I can't seem to get the exact results.

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

Noob questions: [17-22F]: Web Design, advice to someone starting out

Learn Programming - Tue, 06/19/2018 - 20:28

Hello all!

I am considering picking up web design and perhaps couping it with graphic design.

Now, I primarily want to deal with front-end web development as I feel that would be more suited to me as I lean more towards design. I also want something more flexible.

So here are my questions:

  1. How long did it take you to get your first job from the time you started learning web design?

  2. What is the nature of your job in web design? Would you have picked another area of programming or design if you could go back?

  3. Is the market viable for web design as there is a proliferation of free website services (such as weebly, wix, etc?)

  4. How did you go about getting hired? Linkedin? Indeed? Personal network? Other?

All responses are appreciated. Thanks for reading. :)

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

Superhero epic 'Invincible' heads to Amazon as an animated series

Engadget - Tue, 06/19/2018 - 20:28
Amazon Studios has greenlit an animated series based on the comic Invincible, which was created by artist Cory Walker and writer Robert Kirkman, who made The Walking Dead. The new show's source material tells the story of Mark Grayson, an ordinary te...

Superhero epic 'Invincible' heads to Amazon as an animated series

Engadget - Tue, 06/19/2018 - 20:28
Amazon Studios has greenlit an animated series based on the comic Invincible, which was created by artist Cory Walker and writer Robert Kirkman, who made The Walking Dead. The new show's source material tells the story of Mark Grayson, an ordinary te...

WCF - Deserializing referenced classes (specifically working with CSOM and the Project class)

Learn Programming - Tue, 06/19/2018 - 20:15

My knowledge of WCF is a bit shallow and i haven't tried something like this before. I have 2 solutions, one is an ESB and the other handles the business logic. In my ESB i reference the Microsoft.ProjectServer.Client libraries and make use of the Project class in it.

Now I want to use the Project class in a datacontract and pass it to my Business Logic solution but i keep running into an error where i can't deserialize the Project class (Type 'Microsoft.ProjectServer.Client.Project' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. ). Because it is a referenced class i can't add a Datacontract annotation to it and i've tried inheriting from it and adding the annotation to the child class but i get the same response.

I can create a new model and pass that to the business logic and map the fields but I'd prefer to know if it's possible to pass the class through wcf?

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

I started learning R today. And whenever I reopen my work on RStudio, it's blank. What should I do? Is there something I'm doing wrong?

Learn Programming - Tue, 06/19/2018 - 20:12
  1. I wrote some code under the console on RStudio: I created a graph with three points on it using ggplot.
  2. After I finished, I clicked File --> Save As. I saved the work on my desktop.
  3. However, there is nothing in the file when I reopen it. All that's left is the default instruction thingy that appears every time I open RStudio:

R version 3.5.0 (2018-04-23) -- "Joy in Playing"

Copyright (C) 2018 The R Foundation for Statistical Computing

Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.

You are welcome to redistribute it under certain conditions.

Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.

Type 'contributors()' for more information and

citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or

help.start()' for an HTML browser interface to help.

Type 'q()' to quit R.

I've done Steps 1-3 for maybe 5 times already, and my work is never saved. I decided to just take a screenshot of it. This is probably my first and last day at learning R; it's so frustrating D:

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

Oracle: Think our DB sales are great now? Wait until we actually get the new product out!

The Register - Tue, 06/19/2018 - 20:08
'Autonomous' database cash haul just ramping up – Larry

Oracle has capped off a solid fiscal year and is predicting big things to come for its database line in the coming 12 months.…

[Python 3.6.5] invalid function call involving default parameters

Learn Programming - Tue, 06/19/2018 - 20:02

Given function definition, determine which function call is invalid

def connect(uname, pword, server = 'localhost', port = 9160): # connecting code connect('admin', 'ilovecats', '') # Valid connect(uname = 'admin', pword = 'ilovecats', '') # Invalid connect('admin', ilovecats', port = 6379, server = '') #Valid

Not sure why number 2 is invalid. I believe it has something to do with positional arguments but not really sure what that means.

Any help will be appreciated. Thank You.

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

I can't seem to figure out the best way to host simple json data

Learn Programming - Tue, 06/19/2018 - 20:01

Maybe I'm approaching this with the wrong mind-set, but I've been racking my brain for 2 days trying to figure out the best way to move forward with a hobby project I've been working on. Awhile ago, I wrote a program for logging items dropped in an online video game. It was a great way to learn web app programming, and I'd like to return to it now and redo it with a lot of newfound knowledge that I didn't have the first time around.

One big mistake (I think) I made initially was to have the data for each NPC that you could kill just be stored in a .js file within the application. This file held drop data for all NPC's so it got pretty large and annoying to upkeep. I thought it would be better at first to instead store this data in a database, but after looking into it a lot I'm not so sure. I've never worked with databases, and since this data should change very rarely if at all (only if the developer decides to change monster stats or drops, which doesn't happen often), I feel like a database is a bit overkill.

This led me to instead want to create an api with endpoints for each monster and maybe subcategories like /<monstername>/drops, /<monstername>/stats, etc.... I can't seem to find much of anything about api's that don't involve a database though. I then looked into simply just typing up the .json endpoints manually and hosting them at the right url's, but even then I suppose I'm out of my element.

What's the best way to move forward in your opinion? How do I host .json files where if you visit a url, it spits back .json data as if it were an api endpoint? Am I severely overthinking this and the answer is staring me in the face, or is this not a recommended solution and that's why I can't seem to find one example doing what I want.

Thank you in advance for any help, when approaching this project, this part seemed so simple and I wasn't worried about it, but so far it's caused me the biggest headache.

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

AT&amp;T sends in startup shill to shake up Cali's net neutrality safeguards

The Register - Tue, 06/19/2018 - 19:53
Oh look it's 'tech startup advocacy group' CALinnovates again

Analysis A group claiming to represent the interests of California's tech startups has argued that the US state should allow so-called zero rating services, despite the negative impact it would have on tech startups.…

Tiny MIT chip helps bee-sized drones navigate

Engadget - Tue, 06/19/2018 - 19:53
You may have seen drones that behave like bees, but drones the size of bees are another matter. How do you help it navigate when virtually any conventional computing power would be too heavy and power-hungry? Make it incredibly tiny, that's how. M...

[SQ] Why isn't the Huawei Matebook X Pro mentioned much on this sub?

Just curious if there's a general consensus on this sub about the Matebook X Pro? I'm trying to decide between it and an XPS 13.

submitted by /u/puh-tey-toh
[link] [comments]

Wargaming Miniatures to Print?

3D printing news - Tue, 06/19/2018 - 19:49

Hi everyone,

I'm going to be running a WW2 themed tabletop game at some point in the near future, and as such I'm looking to print some miniatures on my resin printer. I've been able to find things like Flames of War on Thingiverse, but everything there is a vehicle, or an emplacement, or a kitbash kind of thing. Does anyone know of any spots where I could find miniatures (either for free, or to buy) for WW2 soldiers? I know about HeroForge, but I'm not interested in dropping $10 per miniature.

Thank you in advance.

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

Reminders on Android are a painful, slow, and frustrating experience, and Google needs to do something about it

Android - Tue, 06/19/2018 - 19:48

Google Assistant's reminder capability is handy... right up to the point that you tap on a reminder notification on Android. At that point, you get stuck waiting 5-10 seconds (Pixel XL) for it to load the list of upcoming and active reminders.

It's pretty bad, yet years of updates have seen no improvements.

I'm almost at the point of seeking alternatives.

Reminder usage isn't that uncommon, so... what's up, Google?

The reminders have other annoyances too. For example, when I say "remind me tonight" in a voice command, I always mean 8 PM, not 6 PM! Yet if editing one from the time selection drop-down, "Night" does mean 8 PM.

I think it's past time that Google overhaul and rethink reminders via Google Assistant on Android. A better, faster UI, with more convenient options.

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

[C#] How to sort a list of strings containing directories?

Learn Programming - Tue, 06/19/2018 - 19:47


I'm programming in C#.

I have a list of strings that represent directories that i want to sort in to the same order that a Windows computer does. All folders at the top, all files at the bottom, and the folders and files are sorted separately.

Eg. A strings that represent directories "C:\", "C:\SomeFolder\AnotherFolder\A File", "C:\SomeFolder\AnotherFolder\A File2", "C:\SomeFolder\AnotherFolder\A File3", "C:\SomeFolder\A File4".

Is there a simple way to do this? At the moment, i'm using list's built in sort method.

I imagine that i could do this the long winded way, where i break each string in to their directory elements. Sort the files and folders at each directory level, where i detect whether the current level contains a file or folder. If it's a folder, put it in a list with the folders, if it's a file put it in a list with the other files. Sort each list, then look at the next level. Ignore directories where the last level looked was a file. etc, etc. But i imagine this is a popular desire and hoping there is something already pre-made?

I've tried searching and the only thing i can see is the Directory order method but it appears, you've got to obtain Directory objects that is obtained using another method that recursively searches the path you've given it for files and folders.

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

I want to learn C++, what editor/environment/compiler do you guys suggest to use (Win10)?

Learn Programming - Tue, 06/19/2018 - 19:44

I'm pursuing a Computer Engineering degree (Rising Sophomore) so I know I will use and have to learn C++ at some point, so I've decided to start this summer.

However, "installing" it (setting it up?) doesn't seem to be as simple as different languages.

I've used (Python, MATLAB, Octave) which come with everything you need (Python only needs Anaconda). Does C++ not work this way, because of being closer to hardware (deep-level programming language)?

I've tried to Google what the best de facto options are to choose with C++, but I'm not sure if I have bad reading comprehension or what—there are so many 'things' for C++ online that I'm not sure what I need to get to just write code and run scripts/functions.

I have Windows 10 so it seems to complicate things, people tend to use Linux/Mac for C++ it looks like.

Anyway, if there's anyone out there who actually uses Windows and C++, what do you use/what do you suggest using so I can start learning and practicing?

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