• Breaking News

    Friday, November 22, 2019

    Is there an API that can do this? Ask Programming

    Is there an API that can do this? Ask Programming


    Is there an API that can do this?

    Posted: 22 Nov 2019 07:22 AM PST

    Is there an API out there (Google Maps for instance), that can give you the farthest city to your location based on a distance you provide it?

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

    Am I being overly sensitive about this sort of direction for a new development position?

    Posted: 22 Nov 2019 08:36 AM PST

    Sorry about the length of this, but there's a bit to cover.

    TL;DR — I was put into a development role that was using an API I had never used before and not being told how to use the API, with all questions being responded to with "I can't answer that. This is a test." They were well aware I had never used the API before and that the role requires more than just software development, which I found out the hard way.

    Long-Winded Gripefest:

    I wanted to see if this is expected for a web app developer role or if I'm being overly sensitive. I've been a senior level front end and back end developer for a company for over 10 years. Recently, they said they wanted to hire an intern to take up the role of a GIS web app developer (Geographic Information Systems mapping). We have a team of developers now that are using the out-of-the-box code and widgets for the front-end but they have very little experience with front-end development. They want to begin creating custom front-end widgets and functionality that goes beyond what's provided from the software package (we're using ESRI's ArcGIS APIs).

    Since I have multiple roles at the company and want to have a more active coding role, I asked to be considered for the position. While I may be a senior level developer, I've never touched the ArcGIS APIs and thought it would be a great learning opportunity. After all, they were going to hire a junior level intern to fill the role and teach them how to use the APIs as well as having them learn front end development, which I already know inside and out.

    They agreed to give me a shot at the job, and the first thing they did was hand me a production project that they wanted completed ASAP. They broke down what they wanted the app to be able to do, the data it needs to retrieve, etc. I was told that this was my "test" to see if I'm good for the role. I was given no other information: No database logins or passwords, no info on how to connect to the database, no examples of what their other applications look like so I can keep a consistent brand/style, and zero direction on how to get started. "Time to drown myself in Google searches, I guess."

    I had the front-end portion of the application fully templated and ready to connect to our data within an hour. The API documentation is very clear, and I was able to get it set up exactly as requested. Next was to get the back-end portion set up so I can access the data they want shown on the map.

    I asked the head GIS coder of my regional office some questions on how to get started with access to the database, and his reply was "I can't answer that since this is a test." Can I at least get the login and password to the SQL database? "Sure!" They gave me login credentials. It turns out that ESRI doesn't use simple database connections, it includes a middle layer for placing the SQL data into a spatial database engine (SDE). The guy I asked this question to knows this, and knows I'm going to be going the wrong direction if I try to connect to the data through SQL, but doesn't say anything. So a-googling-I-will-go.

    Google put me down a rabbit hole which was completely the wrong direction. I couldn't connect to our data no matter what I tried, and ESRI's own documentation for the back end was confusing for someone getting their toes wet with GIS. Everything points to needing a REST API endpoint that needs to be available on the enterprise server. I have zero access to the enterprise server and wouldn't know how to set up that endpoint anyway. Turns out I need yet another login and password and I have to use ESRI's ArcGIS software to set up the endpoint through a few dozen steps that only sometimes work. I've have barely any experience with ArcGIS, so this will be fun.

    I'm going to cut the rest short since this is getting long-winded, but in the end I went to my manager and complained about the frustrations I was having. He said it was a test to see how I work with the rest of the team and that I was supposed to be asking questions to get the answers I needed. When I explained that I tried that and the response was "I can't tell you that. This is a test" he said "The problem is that you were asking the questions wrong. Also, we need an exact timeline of when you'll have the application completed."

    Am I being overly sensitive to this sort of reply? It really rubbed me the wrong way. I would figure that showing me the ropes from the get-go would have put me on the right path. Hell, just telling me I needed to start with the ArcGIS software would have been the most useful info I could have received. After I got the REST API endpoints set up (another long story), I had the app completed within a few hours, yet I look like a horrible programmer to them because I couldn't get to the data. I have no idea how to approach my manager about my concerns here.

    I'm really questioning if I still want this role if this is how they operate. I've learned they have no code standards, no shared code repositories to borrow from so I don't have to reinvent the wheel, and when I asked if they have common functions that they share amongst eachother, the reply was "No, everyone just sort-of does their own thing." Is this typical?

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

    Is it possible/is there any open-source program that possibly uses AI that can scrape different websites and write articles based on specific topics?

    Posted: 22 Nov 2019 04:54 PM PST

    AI is the end of computer science?

    Posted: 22 Nov 2019 08:32 PM PST

    I was wondering if humans have reached their research in fields on computer science which now looks like AI will be last field and we will left to with no brand new stuff. Is it true or I'm still unknown to what CS has?

    #Note: Don't downvote this post because of CS keyword.

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

    Developing in C for android

    Posted: 22 Nov 2019 04:53 PM PST

    So im wondering about getting in to android development. I did a really small amount in C# a while back with VS and Xamarin. I chose C# since that was the only language i knew (still just a bit) at that time. After that i did a bit of JScript, python and C. Now in college im learning C quite intensively. So im wondering if its worth it to try C android development or if is too much hassle implementing and i should try C# again or something different. Thanks for any answers.

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

    [?] What is something cool that someone can look at right now and play with to experience important, fun programming?

    Posted: 22 Nov 2019 04:39 PM PST

    Looking for:

    1. A website or simple app.
    2. Requires a human to maintain and keep up to date.
    3. Does not take much time to learn or operate.
    4. Your suggestions.

    Thanks

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

    Apache: setting handler for all files inside a virtualhost

    Posted: 22 Nov 2019 12:16 PM PST

    Trying to have a php handler for all files/pages within the :2020 virtualhost

    <VirtualHost *:2020>

    DocumentRoot /var/www/site

    ServerName site.com

    <Location "/*">

    Action pre-script /i/pre_script.php

    SetHandler pre-script

    </Location>

    </VirtualHost>

    This works for the root file site.com:2020 but not for any subdir (i.e site.com:2020/content)

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

    Am I taking feedback the wrong way?

    Posted: 22 Nov 2019 11:53 AM PST

    Hi, this is my first time on this subreddit. I'm a 23 junior developer that started at a pretty large company one month ago. I am still in school getting my masters at night. I feel like I've been doing a good job and working hard, but this situation just occurred.

    A manager in another sub-department has reviewed my code changes on GitHub every time I make a change. I am very open to feedback and eager to learn better ways to implement things.

    In my first ever commit to my branch, he commented "this is a terrible design, do you really think this is a good idea?". My mentor took responsibility for the design because it was her idea, i was just implementing it. I brushed it off even though it felt a bit harsh and it wasn't really my fault.

    In the latest review he told me to output the file I'm creating with OutputStream, and I'm already using FileOutputStream to write it, so I asked:

    "I'm already using FileOutputStream, is there a difference between the two?"

    Because I know OS is just the super class of FOS.

    And he commented back "Really?" And put a link to the documentation. Like he assumed I was just asking what an OS is. So I got in trouble by my boss for writing that comment because the question was interpreted as too simple.

    Im feeling pretty shot down most days and my confidence is pretty low now. Am i just being a baby or does something sound off here?

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

    What are the best languages & databases to use for progressive web app for file storage/viewing?

    Posted: 22 Nov 2019 12:48 PM PST

    I'm still a beginner, but I'm developing a web app to upload/view recipes for staff in my family restaurant kitchen. Since there are multiple restaurants, we need the files to be hosted online so they are viewable anywhere, from any device. We decided on a progressive web app to be viewed on iPads in kiosk mode. This is convenient because we can add the site to the home screen and have it stored in the device's cache.

    So far, I've set up the framework for the progressive web app - the cache seems to be working and it displays nice on the iPad.

    Now I need to take the steps to add the upload/viewing options for PDFs. In this process I want to make sure that

    1. File upload - Need to check for: filetype is PDF and is below 400 KB
    2. Ability to add categories to each PDF (appetizer, entree, dessert) - I assume this would be kept in a database with PDF filenames.
    3. PDFs will then display as icons on home screen, when click you can view them within the app (not download)

    I just need advice on what you guys think are the best ways to implement these features. I'm at a loss for file management - I mostly need to know how I would create an option for users to upload (on desktop or computer - the app is viewable on any browser) the pdfs and then have them stored in the app for viewing. Then I'm thinking we would store the filenames in SQL along with their categories/tags?

    I was looking at google's cloud firestore. Could this be a good option?

    THANK YOU in advance. I'm just looking for a few sentences of advice - a direction on where to look.

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

    SDL returning already-allocated Texture address

    Posted: 22 Nov 2019 07:44 AM PST

    Hi, I'm using SDL2 in my project. When I call SDL_CreateTexture, it is beginning to return addresses for textures which already exist. I am on integrated Graphics, so my memory availability is VERY low. Is this a result of some deeper issue, or am I simply running out of memory? When SDL Destroys a texture, does it simply free the memory of does it null it out as well?

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

    How would I go about putting the whitespace language into a Java program so that it runs both programs.

    Posted: 22 Nov 2019 11:13 AM PST

    Make a program that automatically warps images?

    Posted: 22 Nov 2019 06:47 AM PST

    I was wondering if it would be possible to make any picture (flag) look like this: https://i.imgur.com/0Ujml3M.png

    I want to transform any flag the same way they've transformed this https://i.imgur.com/Gqa0Ya0.png into the one above. Is there a way to do this by making a program that does it automatically? I have no experience with programming, but I was thinking one might be able to "teach" the program how to do it, by inserting input (2nd picture) and output (1st picture) pictures of many flags, so that it would have many flags to compare with.

    Thanks for any replies!

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

    Which Javascript UI framework is least architecturally opinionated?

    Posted: 22 Nov 2019 10:22 AM PST

    We are about to embark on a application migration from Struts2 to a Javascript SPA architecture. I know there are several popular choices: Angular, React, Vue, Ember, etc. But a major point for our evaluation of which to use is how architecturally opinionated it is. What "architecturally opinionated" mean is well defined by Service Objects as... Architecturally opinionated frameworks make "certain tasks simple to the developer by following the already predesigned path, sometimes referred to as the "Golden Path". Following this approach can be advantageous to a developer when a problem or task maps directly to one of these predesigned paths. This can, however, present challenges to the developer when functionality outside of a package's design is desired, creating additional effort to solve."

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

    C++ Making a M*N grid using pointers (linked lists)

    Posted: 22 Nov 2019 05:02 AM PST

    I need to know how to create a m*n grid using pointers, one class called boardcell , and one class called board.

    boardcell contains information about that cell, and in the further design I have to calculate interactions between cells if they contain the same value of information.

    Anyone know how to do this with pointers ( linked lists) in a grid format?

    I already made the both classes with their functions, I made a buildRow function and a buildBoard function , but I don't know what to do next. How to implement this concept.

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

    interactive live stream

    Posted: 22 Nov 2019 08:46 AM PST

    I'm planning on programming an interactive live stream like http://www.drivemeinsane.com/ , in c#, where would i start?

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

    Can any turing complete language be converted into any other turing complete language?

    Posted: 22 Nov 2019 08:20 AM PST

    Say I have a javascript code that produces output Y when given output X.

    Can this javascript code be run through a processor such that its python equivalent will produce all of the same results, given the same inputs?

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

    A web application is an app that runs on the web. Does this mean that a web app is a subset of website?

    Posted: 22 Nov 2019 08:17 AM PST

    What are ways you made your workspace more enjoyable/comfortable?

    Posted: 21 Nov 2019 10:13 PM PST

    Need help with posting to API s

    Posted: 22 Nov 2019 07:41 AM PST

    So there is the site called GAMEFLIP ( https://gameflip.com) which is a site where you can post your ingame items for sale (Lets say Rocket League items, since thats what I want to post). Ive been a seller there for a while, and Ive been posting both manually and with some crappy selenium scripts that are often buggy, but recently I found out that they have a developer API that I could use to post items faster and easier, however I havent worked with APIs before.

    I generated the API code and the key, and they also provided this documentation:

    https://gameflip.github.io/gfapi/samples/rl_listing.html

    https://gameflip.github.io/gfapi/

    https://github.com/gameflip/gfapi

    So, is there anyone who could help me with this? Basically I need information about where to run this code and how to use it for me to be able to post listings onto the site with the API. Thanks in advance.

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

    jsp archiving

    Posted: 22 Nov 2019 07:36 AM PST

    im ment to archive a row from the database(delete from one table and insert it into another)

    the code for the insert is

    public static void insertProperty(Properties p) {

    EntityManager em = DBUtil.getEMF().createEntityManager();

    EntityTransaction trans = em.getTransaction();

    try {

    trans.begin();

    em.persist(p);

    trans.commit();

    } catch (Exception ex) {

    System.out.println(ex);

    } finally {

    em.close();

    }

    }

    the code for the delete is

    public static void deleteProperty(Properties p){

    EntityManager em = DBUtil.getEMF().createEntityManager();

    EntityTransaction trans = em.getTransaction();

    try{

    trans.begin();

    em.remove(em.merge(p));

    trans.commit();

    }catch(Exception ex){

    System.out.println(ex);

    }finally{

    em.close();

    }

    }

    i was told that i need to put the two together, anybody have any idea how?

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

    Career Decision : Continue Being a Web Developer or iOS Developer

    Posted: 21 Nov 2019 11:36 PM PST

    So I'm currently working as an Front-end intern in a pretty high velocity startup company. I just got the offer to continue working at that company after the internship ends. I have some Software Engineering basics, I know some clean code, design patterns, SOLID principle etc. I've worked on an iOS app for awhile for fun, and I really like Swift. Used Texture, RxSwift, and Realm, architecturing with MVVM etc, published to Github and got some stars. I've been in web development for awhile too, I'm familiar with the current landscape of web development, familiar with Javascript, Typescript, React, Vue, and framework concepts, building with webpack. I've made a pretty nice personal portfolio website and that's one of the reason why my company accepts me as an intern. Not to flex but I'm actually considered as a 'pretty smart guy' at my office, although I'm not really smart, I just like to learn new things.

    I wanted to try out iOS development and work as a team on a huge app, architecturing an app, and learning more about Software Engineering in general. But at the same time I had this long term goal to move to a company in Singapore (close to my family and friends) as a Web Engineer and if I decided to continue my career as an iOS developer. I fear that I won't be competent for a Web Development job after a long hiatus. But from another standpoint, if I'm familiar or learn enough Software Engineering from the iOS job, It shouldn't be hard to re-learn the overall web development. And if I decided to continue as an iOS developer in Singapore, at the same time I'm afraid that I won't be qualified for that as Singapore's tech landscape is pretty competitive.

    I know this post is pretty chaotic in structure, but I really need some opinion to shed some light on the decision that'll effect my future career. Every opinion will be appreciated! Thanks!!

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

    (Bash/Python) How to check if my Python program is running

    Posted: 22 Nov 2019 06:22 AM PST

    I have created a Python program made to be running constantly, where it fetch some API data periodically and will schedule other tasks using the "schedule" package as needed. I uploaded it to PythonAnywhere and it has been working beautifully.

    Yesterday PythonAnywhere had some maintenance downtime and this means my console, where the program was running, closed, and I had to access the site and restart it. Now I'm looking for ways to not have to do this, that it can restart automatically when needed.

    PythonAnywhere has an option that lets me schedule (from their dashboard) a single task to be run periodically. How could I structure a Bash or Python script that checks if my other script is running and, if not, start it? I'm avoiding using this function on my script itself so it works independent of the PythonAnywhere platform.

    Thanks a lot!

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

    Converting a website to android APK (free)?

    Posted: 22 Nov 2019 03:52 AM PST

    Hi

    I would like to develop an app but using html/css/js instead of android studio which I find clunky laggy and uncomfortable so is there a FREE (no string attached) way to convert a website to an APK?

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

    No comments:

    Post a Comment