• Breaking News

    Friday, August 9, 2019

    Just a Reminder Ask Programming

    Just a Reminder Ask Programming


    Just a Reminder

    Posted: 09 Aug 2019 02:10 AM PDT

    Since there are so many people here who have insecurities and/or struggle with different tasks. If you're a student or a junior dev you really shouldn't worry about failing or being "not good enough". No one expects you to be an expert. You are supposed to learn by doing and thats easier without putting to much pressure on yourself.

    (Sorry for my bad englisch)

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

    Why isn't @font-face working here?

    Posted: 09 Aug 2019 08:49 PM PDT

    Not sure what I'm doing wrong but I can't get all the text to be "Roboto Condensed". The path is correct and I checked on different browsers

    <!doctype html> <html lang="en"> <head> <meta charset="utf-8"/> <title>Kitchen Remodeling Pros Arlington, TX</title> <link href="stylesheet.css" rel="stylesheet" type="text/css"/> <link rel="icon" href="/img/icon.png"/> </head> <body> <header> <div> <img src="img/logo.png"/> <button> Call (817) 123-4567 </button> </div> <nav> <ul> <li>Home</li> <li>Portfolio</li> <li>Testimonials</li> <li>Services</li> <li>Contact Us</li> <li>About Us</li> </ul> </nav> </header> </body> </html> @font-face { font-family: "Roboto Condensed"; src: url(/fonts/RobotoCondensed-Regular.woff) format("woff"); font-weight: 400; font-style: normal; } * { padding: 0; margin: 0; box-sizing: border-box; font-family: "Roboto Condensed"; color: #222; } 

    Edit: Got it to work:

    src: url(/fonts/RobotoCondensed-Regular.woff) format("woff"); /* Before */ src: url("fonts/RobotoCondensed-Regular.woff") format("woff"); /* After */ 
    submitted by /u/sea_place
    [link] [comments]

    Need to write an automation script in Ruby

    Posted: 09 Aug 2019 06:22 PM PDT

    As part of my job interview for a QA spot, they've given me this challenge: Write a script that logs into LinkedIn and sends some one a message, using Ruby. I've never used Ruby, though have rudimentary C# knowledge. I've started with YouTube videos and have downloaded RubyMine and watir, they want me to use. My question is what direction do I focus my efforts of learning in how to make this happen? In my previous job, we did zero programming, fiddled with Excel spreadsheets and copy pasted XPaths using a Hybrid framework. Will YouTube videos be able to teach me enough how to write this automation script in Ruby? And if so, which videos might?

    submitted by /u/jaded-entropy
    [link] [comments]

    JCreator Pro does not open after it has been installed

    Posted: 09 Aug 2019 04:27 PM PDT

    I just installed the JCreator Pro (Java) and when i execute it does not open, it is not within the program, it is THE program that does not open, nor does it in the background, only the loading symbol appears on the mouse. I already reinstalled it 3 times, help please, i really need it.

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

    Looking for resources on how to create this calculator

    Posted: 09 Aug 2019 03:49 PM PDT

    Hey everyone, I am looking to create a calculator that works very similarly to the following:

    https://www.sellyourmac.com/sell.html
    https://www.consumerreports.org/cars/car-value-estimator/

    Would anyone know if there is an out-of-the-box solution, or if this would have to be built from the ground up? I know how to create the pricing structure, but I just need to learn how to plug it into a formula.

    Thank you in advance!

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

    Need help with pulling and comparing stock market data

    Posted: 09 Aug 2019 02:30 PM PDT

    Essentially my goal is to compare a bunch of data on mutual and index funds. Specifically I want to compare three things: the year since conception return, the 10 year return, the 5 year return, the 3 year return and the YTD return. I would like to compare all existing mutual and index funds.

    Market watch has a list will all of the funds and indexes so I'm thinking that's where I need to start.

    I don't know if this is the right sub for this question but I'm a complete rookie with computer programming. Maybe I wouldn't even need to program and could do this in excel, I'm just looking for some guidance here.

    So if anyone can give me some good info to help tackle my project please let me know. Thanks!

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

    Visual Studio - Outlook Add-In Help - STUPID BUTTON

    Posted: 09 Aug 2019 02:23 PM PDT

    Hi All,

    Self taught super noob here. I've written several macros in Outlook (Office 365 version) and I need to translate these macros to COM add-ins for distribution. I'm currently using Visual Studio 2017 to do so. I've created the Project, Template and Ribbon for the add-in and Outlook boots fine when the version is ran, so far so good....

    I'm trying to do 3 things which I cannot for the life of me figure out:

    1. I can't get the STUPID BUTTON to run the damn Macro.
    2. I would like to then figure out, or a general direction on how to, bring up a prompt that shows the users folders with check boxes so that the user can select folders and it's returned as an... array? or however it would be done, if possible.

    The goal is sorting emails with specific email subject parameters into folders matching the ID within the email subject. The program works flawlessly within Outlook's visual basic but I want this to be able to install-able through the Add-ons interface built into Outlook. If you have better programs or way to do this, or any recommendations at all, please throw them my way!

    Thanks for your help and I apologize if what I am asking is stupid. I've been looking online for resources and can't find anything helpful.

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

    What do you guys do to keep yourself motivated when you're used to working in a face paced environment?

    Posted: 09 Aug 2019 06:43 AM PDT

    My work days are boring the crap out of me. I like programming and it's fun, but I also get bored really easy. I worked in a kitchen for 3 years, as a CNA in a hospital for a year, and as a CNA in a nursing home for 3 years after that before graduating and getting a job in programming.

    My days used to be hectic as hell and I loved every minute of it. I tend to stress out a lot so when shit hits the fan I actually relax because for that brief period of time all my focus is directed at something I can control. Now for the past 2 years I've been in web development and it's just not the same. I have so much energy in the morning and after 8 hours of work I tend to leave drained and more stressed out because all I did was sit at a desk and focus on a single (often monotonous task) for 8 hours.

    I've gotten pretty good at getting up every 45min and taking a short walk and I think I'm going to start making more of a game out of my day, maybe impose some restraints on myself like challenges.

    For other's who know what I'm talking about, where you're actually less stressed when everything is blowing up around you, how do you add that spice to your programming job? I'm thinking about moving jobs as I think I might actually do well at a start up. What kinds of industries should I look to work in that are always pushing limits and challenging?

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

    What is this concept of parent/subclass expansion (python code inside)?

    Posted: 09 Aug 2019 10:28 AM PDT

    I've been using this method to make some applications more 'expandable' and 'modular' but i'm unsure of the name, or how to research further into it, so here's some code below (python) to show you what i'm doing - and if there's a name... or concept behind it so i can look further into it!

    class Parent: @classmethod def run(self): print('OVERRIDE RUN METHOD FOR ALL CHIDLREN') @classmethod def _run(self): for cls in self.__subclasses__(): cls.run() class Child(Parent): @classmethod def run(self): print(f'{self.__name__} has successfully run!!') Parent._run() 
    submitted by /u/cmkanimations
    [link] [comments]

    Storing config files

    Posted: 09 Aug 2019 01:41 PM PDT

    Hi!

    I have a couple of JSON/XML config files that need to be stored. I would like to store them as a custom format that the user can't easily open and edit manually. What is the best way to do this? Store them as binary, archive them or something else? I would be happiest if I could create some kind of unreadable custom file format.

    Thanks a lot! :)

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

    How to learn to know which framework/library is best for which scenario?

    Posted: 09 Aug 2019 07:42 AM PDT

    First of all, I am not trying to ignite a framework/library war or anything. And sorry for my bad English as I am not a native English speaker.

    Hi, I am working as Full-Stack Developer for almost a year, mostly on Angular, Front End side. Recently, I went to couples of job interviews. One of my favorite things I enjoy about in interview is listening to a Technical Lead/Solution Architect sharing their reasoning of framework choices for the companies product/project. It is quite enjoying listen to different opinion on the framework that we all have been using/exposed to.

    I like to know more about how they make their decision for the "best" framework to use for a project. Couple of obvious reasoning I can think of are: using original framework for feature enhancement project, using specific tools requested by client, using specific language framework because library (like using django/flask because of python data analytic library), system integration required, human skill set resources. What about other reason? Like to pick a MVC (Angular) or View (React, Vue) for SPA. Or when to Client Side Rendering vs Server Side Rendering. Or other things I have not exposed to yet.

    Is there a book/resource I can read more about this topic?

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

    What's the best to automate video view counts from LinkedIn & Twitter to a Google Sheets document?

    Posted: 09 Aug 2019 01:37 PM PDT

    My company is running an internal competition where employees generate video content that is then posted to our LinkedIn and Twitter pages and monitored over 1 week. Whoever has the highest view count at the end of the period wins. I set up a spreadsheet and dashboard in Google Data Studio already that allows me to manually update the counts of each, but I'm looking to automate this process.

    I've looked into some of the API documentation for LinkedIn and Twitter, but it's honestly pretty above my head and I'm not even sure how to go about getting started. I know pretty basic-level Python and bash, but am just looking for the quickest / easiest way possible to do this to lessen my workload. (No tools I've found offer this functionality so far)

    Any help or direction for this would be much appreciated, thanks!

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

    What is the term for making a relation between spoken languages and computer programming in general?

    Posted: 09 Aug 2019 05:36 AM PDT

    Im not stating its true or not, I just want to know a way I can start googling for people who relate them in whatever way that sounds more abstract using computer terminology to describe the relationship of computer programming with a spoken language like English.

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

    Why has my terminal suddenly got this line at the beginning?

    Posted: 09 Aug 2019 11:31 AM PDT

    I was trying to install python3, homebrew and pip3 (the last one unsuccessful for some reason), and right after that everytime i open a terminal window it says:

    " Last login: Fri Aug 9 20:16:44 on ttys001

    -bash: eval: command not found"

    could anyone help? :-(

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

    [serious] how do you not jerk off when working on personal project ?

    Posted: 09 Aug 2019 10:14 AM PDT

    Hello. Every time I work on personal project I end up jerking off and then I lose motivation. Any tips?

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

    Possible for a program to read, compute and compile information form PDF?

    Posted: 09 Aug 2019 05:44 AM PDT

    In my line of work, we are constantly having to manually compile data from PDF's into Excel. The information we deal with is predominantly uniform in appearance and information, and I was wondering if it was possible for a computer program to compile this information into Excel for you.

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

    Please help a lost student :(

    Posted: 09 Aug 2019 01:35 AM PDT

    I am a webdevelopment student on my second year of University. We mainly work with Javascript and php, but have touched on several other languages such as c++, Java, Sql etc. Now here id where the problem starts. Before chosing this careet path i had never programmed before nor had a single idea of how it works, basically not knowing more than that it exists and that it is used to build. Working with Javascript and php however lowers my selfesteem to the lowest. It is too complex and i barely understand anything, and have to ask for help way more often than the rest of the students (they have had experience since before). I know that programming takes time to learn but i also feel like i am running out of time, i only have one year left to go before i have to find a job and i am worried i won't find a job or do my job properly. Anyway, i have read a bit online and realised that a lot of people highly suggest learning Python. I know that it is a completely different field, and i have honestly never seen nor worked with it before. So my question to you guys is, should i try to learn Python or should i stick to focusing only on Javascript. Also do you have any tip for me on how to really learn it, a good website or book or youtube playlist. Btw SQL is something i really enjoyed and understood pretty well, should i focus on that?

    Did any of you guys face these problems/insecurities and how did it turn out for you? Did you learn everything at the workplace or was the work at your job easy due to your experience from school

    Thanks for the help guys!

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

    How to go about developing an API which integrates a MySQL database and Xero?

    Posted: 09 Aug 2019 03:22 AM PDT

    Pretty much title. For a project I need to develop a free way for Xero to use information from my MySQL database to produce an invoice. Any ideas where to start? Thanks,

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

    Number generator where you can define constants

    Posted: 09 Aug 2019 02:43 AM PDT

    Is there a number generator that exists which will do the following?

    Generates a list of numbers which is output to a file, preferably a csv or something compatible with table formatting.

    The amount of numbers which is generated can be defined by the user

    takes input of multiple numbers and user can indicate if it's a constant or if you'd like to increment/decrement

    Concatenates all numbers given/incremented

    So an example of the input prompts might be:

    How many numbers do you want to generate? 5

    Number starts with: 12345

    Is this a constant? yes

    Next part of the number: 60

    Is this constant? no

    Do you want to increment? yes

    Next part of the number? 890

    Is this a constant? yes

    So the output would be:

    1234560890

    1234561890

    1234562890

    1234563890

    1234564890

    How difficult would this be to code?

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

    Is it okay if I learn (e)lisp as my first programming language?

    Posted: 08 Aug 2019 10:48 PM PDT

    I want to get into programming and I love emacs. So I thought I should learn that first. Will that be okay? or should I stick to python and friends?

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

    Programmers of Reddit, convince me to use your code editor

    Posted: 09 Aug 2019 12:45 AM PDT

    I am trying to switch my text editor, in the past I tried lots including Vim, Emacs or Brackets. Tell me why should I try your editor(even if it's one of those that I mentioned).

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

    Why isn't margin working on this one section of div elements?

    Posted: 08 Aug 2019 10:07 PM PDT

    I added a margin to the testimonial divs the same way I've added margin to my images but it's not adding vertical spacing.

    .testimonial { display: block; margin: 1.4em auto; } 

    I tried adding margin-bottom to the last element in the div but it didn't work either.

    Here's my code, I tried bolding the hot spots but it didn't work:

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"/> <title>Kitchen Remodeling Pros Arlington, TX</title> <link href="https://fonts.googleapis.com/css?family=Roboto|Roboto+Condensed|Roboto+Slab&display=swap" rel="stylesheet"> <link rel="stylesheet" href="stylesheet.css"/> <link rel="icon" href="icon.png"/> </head> <body> <div class="container"> <main> <h1>Best Kitchen Remodeling in Arlington, TX</h1> <h2>Providing professional and high end quality service for over 40 years</h2> <img src="main-600.jpg"/> <div> <p>Curabitur sagittis consequat egestas <strong>Best Kitchen Remodeling in Arlington, TX</strong>. Donec enim velit, pellentesque vel convallis sollicitudin, condimentum et lorem.</p> <p>Phasellus pretium imperdiet arcu, ac ultricies augue placerat non. Etiam id ipsum vel nunc pulvinar tincidunt. Duis condimentum iaculis urna et. Morbi quis facilisis arcu. In maximus consequat elit, non sodales neque blandit ut.</p> </div> </main> <section class="portfolio"> <h2>Check Out Some of Our Work</h2> <img src="portfolio1-600.jpg"/> <img src="portfolio2-600.jpg"/> <img src="portfolio2-600.jpg"/> </section> <section class="testimonials"> <h2>Our Happy Customers</h2> <div class="testimonial"> <img src="testimonial1-200.jpg"/> <p class="testimonial-name">Lois Walker</p> <p class="testimonial-area">Interlochen Estates</p> <p class="testimonial-text">Nulla tristique viverra volutpat. Cras ac iaculis erat. Pellentesque fermentum tortor sed orci consectetur rhoncus. Sed semper vulputate sem, ut aliquet felis elementum ac. Phasellus mattis et ligula non pulvinar.</p> </div> <div class="testimonial"> <img src="testimonial2-200.jpg"/> <p class="testimonial-name">Annie Lopez</p> <p class="testimonial-area">West Park Row</p> <p class="testimonial-text">Suspendisse orci sem, consequat eget ipsum in, suscipit vulputate quam. Nullam nec consectetur nunc, eget bibendum ante. Praesent imperdiet quam a tortor porta pulvinar at sed libero. Mauris eget convallis.</p> </div> <div class="testimonial"> <img src="testimonial3-200.jpg"/> <p class="testimonial-name">Gerald Wallace</p> <p class="testimonial-area">Interlochen Estates</p> <p class="testimonial-text">Sed ac orci sem. Nam aliquet sodales nibh, id porttitor neque. Etiam a imperdiet ante, id ornare massa. Nunc convallis consequat lacus a eleifend. Curabitur interdum scelerisque leo, sed finibus.</p> </div> </section> <section class="services"> <h2>Our Services</h2> <img src="services-600.jpg"/> <div> <p>Vivamus fringilla sagittis risus non aliquet. Quisque venenatis odio sit amet odio vehicula porta. Nullam consequat non sapien vitae tempus.</p> <p>Fusce vel iaculis neque, sodales dapibus quam. Suspendisse pellentesque leo a velit accumsan sollicitudin. Curabitur quis pellentesque nisl. Duis volutpat.</p> </div> </section> </div> <footer> <nav> <ul> <li>Home</li> <li>Portfolio</li> <li>Testimonials</li> <li>Services</li> <li>Contact Us</li> <li>About Us</li> </ul> </nav> <div class="topper"> <button> Call (817) 123-4567 </button> <img class="logo" src="logo.png"/> </div> </footer> </body> </html> * { padding: 0; margin: 0; box-sizing: border-box; font-family: "Roboto Condensed"; color: #222; } /*----------WIDTH: >600PX----------*/ @media only screen and (max-width: 599px) { * { font-size: 18px; } .logo { display: block; margin: 0 auto; } button { display: block; margin: 0 auto; } ul { width: 300px; } h1 { font-size: 1.4em; line-height: 1.4em; margin: .6em; } h2 { font-size: 1.2em; line-height: 1.4em; margin: .6em; } .testimonial img { display: block; margin: 0 auto; } .testimonial-name, .testimonial-area { text-align: center; } } /*----------WIDTH: 600+ PX----------*/ @media only screen and (min-width: 600px) { * { font-size: 24px; } .topper { width: 600px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); } .logo { display: flex; justify-self: flex-start; margin-left: .6em; } button { display: flex; justify-self: flex-end; margin-right: 1em; margin-bottom: .6em; } ul { width: 100%; } .container { width: 600px; margin: 0 auto; } h1 { font-size: 1.8em; line-height: 1.4em; margin: .6em; } h2 { font-size: 1.4em; line-height: 1.4em; margin: .6em; } .testimonial { width: 500px; clear: both; } .testimonial img { float: left; margin-right: 24px; } .testimonial-text { width: 240px; float: right; margin-bottom: .6em; } .services { clear: both; } footer button { order: 1 } } /*----------STYLESHEET----------*/ body { width: 100vw; } /*----------HEADER/FOOTER----------*/ header, footer { background-color: #d3d3d3; width: 100% } .logo { padding-top: .6em; } button { background: rgb(52,173,33); background: linear-gradient(180deg, rgba(52,173,33,1) 0%, rgba(52,130,33,1) 100%); border-radius: 6px; font-size: 1em; color: #222; padding: .5em; margin-top: .6em; } ul { list-style-type: none; margin: 0 auto; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; padding-top: .6em; padding-bottom: .6em; } li { padding-top: .2em; padding-bottom: .2em; margin: auto .6em; line-height: 1.2em; color: #222; font-size: .8em; } footer { margin-top: 1.6em; } /*----------MAIN----------*/ main { width: 100%; } h1 { color: #ad2133; text-align: center; font-family: "Roboto"; text-shadow: 1px 1px #000; } h2 { color: #34ad21; text-align: center; font-family: "Roboto"; text-shadow: .8px .8px #000; } main img { display: block; width: 100%; margin: .6em auto; } main div { width: 100%; line-height: 1.4em; } main p, strong { font-size: .9em; } main p { margin: .4em; } /*----------PORTFOLIO----------*/ .portfolio img { display: block; width: 100%; margin: 1.4em auto; } /*----------TESTIMONIALS----------*/ .testimonial { display: block; margin: 1.4em auto; } .testimonials img { border-radius: 50%; } .testimonial-name { font-family: "Roboto Slab"; font-size: 1.1em; margin: .2m; } .testimonial-area { font-family: "Roboto Slab"; margin: .2em; } .testimonial-text { line-height: 1.4em; font-size: .9em; margin: .2em; } /*----------SERVICES----------*/ .services { width: 100%; } .services img { display: block; width: 100%; margin: 1.4em auto; } .services p { line-height: 1.4em; font-size: .9em; margin: .4em; } /*----------BORDER----------*/ img { border: 5px solid #ad2133; } .logo { border: none; } 
    submitted by /u/sea_place
    [link] [comments]

    No comments:

    Post a Comment