• Breaking News

    Wednesday, July 8, 2020

    How old were you when you became interested in coding? Ask Programming

    How old were you when you became interested in coding? Ask Programming


    How old were you when you became interested in coding?

    Posted: 08 Jul 2020 08:31 AM PDT

    Someone asked me a few questions the other day about getting into coding and I realized I couldn't remember how old I was when I got interested in code. That got me curious about what other people's answers were.

    How old were you when you became interested in programming?

    How old were you when you started learning?

    What drew your interest?

    What difficulties did you have learning?

    For me, I don't recall when I became interested, but I started learning at the age of 14. I was drawn to coding primarily for games, but I think I also just was drawn to the idea of making computers do things. Initially I had difficulties due to an extreme lack of resources that doesn't really occur now that everything is online, but after getting past that period, my difficulty was confusing learning a concept in order to understand it and using a thing enough to really comprehend how to do anything useful.

    submitted by /u/ghu-gneg
    [link] [comments]

    What is the best platform to start a programming blog on?

    Posted: 08 Jul 2020 07:04 PM PDT

    I want to start my own programming blog, but I'm not sure which platform to go with. I've considered making my own website using React and NodeJs and host it on GitHub pages for free, but I don't know if it's worth the hassle.

    my question is: is it worth to build my own blog website from scratch and host it for free, or use platforms like WordPress to get the job done? (keep in mind that I don't want to spend money as I'm still experimenting with this idea)

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

    Did anyone try and email all the embassies for free flags from that YouTube video?

    Posted: 08 Jul 2020 09:45 PM PDT

    If you did and still have the emails please let me know I have no idea of how to code and love the concept of the video!

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

    Programming FOB Keys?

    Posted: 08 Jul 2020 09:19 PM PDT

    At the place I stay at, they use FOB keys to open the elevators/doors. Unfortunately, they only give you one. This is pretty inconvenient since it means other people staying with me can't go out at the same time as me, unless they wait.

    Is there any way to program these keys myself?

    Thanks

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

    Working Culture -- Why does Web Agencies develop such bad code quality for even small websites

    Posted: 08 Jul 2020 07:17 AM PDT

    I moved from Albania to Germany country to start working on a Web Agency as mainly a front-end developer.

    I myself used to build websites on WordPress and when I moved here the dev team was building them with Contao. A german CMS with very little international and even german support group and poor documentation. At first, it was fun, learning a new way of doing things and writing code in a different way then I used to do before. But now everything that we have to do turns into hacks because there is no easy way to or documentation on how to do things and get around a current problem.

    The websites I built with WordPress are based on Understrap Theme, create a custom Page template which loads all sections, and also extra fields with ACF, and also I split every section as a reusable one. (There are still few more features but I don't get to all the details right now)
    I am pretty sure that this is not the best solution and this can be improved more but it seems to work and also WordPress has a very big community of Users and Developers too.

    I'm trying to give it a shot and to tell my colleagues that maybe it would be better to try it out, it can resolve most of our headaches and have a more structured process and code too.
    But they kindly refuse to work with it without even trying or taking a look at it to build the website this process.
    Any idea of how to approach this situation differently?

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

    Local vs Server Side Storage

    Posted: 08 Jul 2020 12:01 PM PDT

    Hi

    I'm currently designing a 'mental wellness' app whereby users will fulfil the following actions;

    - Type or Speak(Record) affirmations

    - Journalling Entries

    - To Do/Task List

    My question is - I want users to be able to use these functionalities offline - i.e. I want somebody to be able to make a journal entry even if they are offline, albeit people are unlikely to be offline, however I would also like them to be able to sync between devices i.e. - if they are making journal entries under their user account on their iphone, I would like them to be able to log in on their ipad too or if they get rid of their phone and get a new one, I would like them to be able to retain all data.

    The crux of the matter then is - what is more suitable local storage on the device itself or server side storage. I appreaciate that if I want users to be able to make and save journal entries without being online then I would use local storage and save to device, however if I want them to be able to save under their user account, which they can use on another device, iPad, new phone etc then I would need a server side database.

    Is there a middle ground here?

    Or is the answer, I would just have an online and offline mode? i.e. - when a user isn't connected to the internet they use offline mode and any entry made is stored locally until such time when they are connected at which point it will sync to the server-side database?

    submitted by /u/2020Corp
    [link] [comments]

    Create barcode scanning for an existing web app

    Posted: 08 Jul 2020 04:51 PM PDT

    Hey all,

    I'm asking as a non dev/programmer so I ask for some leniency on my logic. I'm not looking for an exacting way but rather how this problem could be approached and solved.

    I use barcoded work orders (generated by our CRM if that matters) , in a production environment, to scan the barcode to log a task completed by a worker. We have a computer with a barcode scanner that has a web app (it's an IP address typed into google chrome) that displays an area to put your employee number to log in and then check various task boxes that were completed, scan the barcode on the work order, then press process.

    Is it possible to execute that same function from a cellphone using the On board camera to scan the barcode? How could that be accomplished? Would I need access to the CRM's dataset? Could an app be made to popup a barcode scanner after the worker has entered their ID and clicked their tasks from the "web app"?

    I'm happy to explain more or try to provide an example more throughly if needed. This has been something I've been curious about for a couple years but am just now toiling with the concept as we try to reduce our communal computer stations.

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

    Google and DuckDuckGo Social aggregation.

    Posted: 08 Jul 2020 12:47 PM PDT

    Hey guys, I have a simple question, how does google get social profiles from celebrities

    example: bottom right

    https://www.google.com/search?q=khalid or https://duckduckgo.com/?q=khalid&t=hk&ia=web

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

    Kalman Filter Help

    Posted: 08 Jul 2020 04:06 PM PDT

    I'm really new to programming, I mostly have just done really simple stuff for robotics. I was trying to write a Kalman filter using the Apache commons library(mostly because it looks pretty easy to get running), but I got stuck trying to follow the examples. Here's my code right now:

    public class Kalman { //Timescale for integration double dt = .1; //Acceleration equation double accel = (1/2) * Math.pow(dt, 2); //Jerk equation double jerk = (1/3) * Math.pow(dt, 3); //A - state transition matrix private RealMatrix A; //B - control input matrix private RealMatrix B; //H - measurement matrix private RealMatrix H; //Q - process noise covariance matrix (error in the process) private RealMatrix Q; //R - measurement noise covariance matrix (error in the measurement) private RealMatrix R; //PO - error covariance matrix private RealMatrix PO; //x state private RealVector x; //Filter private KalmanFilter filter; public Kalman(){ //A matrix, state transition matrix: // //[ 1, 0, 0, 0, 1/2(dt)^2, 0 ] //[ 0, 1, dt, 0, 0, 1/2(dt)^2] //[ 0, 0, 1, dt, 0, 0] //[ 0, 0, 0, 1, dt, 0] //[ 0, 0, 0, 0, 1, dt] //[ 0, 0, 0, 0, 0, 1] RealMatrix A = new Array2DRowRealMatrix(new double[][] { { 1, 0, 0, 0, accel, 0 }, { 0, 1, dt, 0, 0, accel}, { 0, 0, 1, dt, 0, 0}, { 0, 0, 0, 1, dt, 0}, { 0, 0, 0, 0, 1, dt}, { 0, 0, 0, 0, 0, 1}}); //B matrix, control input matrix: // //[ 1/3(dt)^3 ] //[ 1/3(dt)^3 ] //[ 1/2(dt)^2 ] //[ 1/2(dt)^2 ] //[ dt ] //[ dt ] RealMatrix B = new Array2DRowRealMatrix(new double[][] { { jerk }, { jerk }, { accel }, { accel }, { dt}, { dt}}); //H matrix, measurement matrix: // //[ 1, 0, 0, 0, 0, 0] //[ 0, 1, 0, 0, 0, 0] //[ 0, 0, 1, 0, 0, 0] //[ 0, 0, 0, 1, 0, 0] //[ 0, 0, 0, 0, 1, 0] //[ 0, 0, 0, 0, 0, 1] RealMatrix H = new Array2DRowRealMatrix(new double[][] { { 1, 0, 0, 0, 0, 0}, { 0, 1, 0, 0, 0, 0}, { 0, 0, 1, 0, 0, 0}, { 0, 0, 0, 1, 0, 0}, { 0, 0, 0, 0, 1, 0}, { 0, 0, 0, 0, 0, 1}}); // X vector, initial state vector: // //[ 0, 0, 0, 0, 0, 0] RealVector x = new ArrayRealVector(new double[] { 0, 0, 0, 0, 0, 0 }); //Q matrix, process noise covariance matrix // //[ 1, 0, 0, 0, 0, 0] //[ 0, 1, 0, 0, 0, 0] //[ 0, 0, 1, 0, 0, 0] //[ 0, 0, 0, 1, 0, 0] //[ 0, 0, 0, 0, 1, 0] //[ 0, 0, 0, 0, 0, 1] RealMatrix Q = new Array2DRowRealMatrix(new double[][] { { 1, 0, 0, 0, 0, 0}, { 0, 1, 0, 0, 0, 0}, { 0, 0, 1, 0, 0, 0}, { 0, 0, 0, 1, 0, 0}, { 0, 0, 0, 0, 1, 0}, { 0, 0, 0, 0, 0, 1}}); //R matrix, measurement noise covariance matrix // //[ 1, 0, 0, 0, 0, 0] //[ 0, 1, 0, 0, 0, 0] //[ 0, 0, 1, 0, 0, 0] //[ 0, 0, 0, 1, 0, 0] //[ 0, 0, 0, 0, 1, 0] //[ 0, 0, 0, 0, 0, 1] RealMatrix R = new Array2DRowRealMatrix(new double[][] { { 1, 0, 0, 0, 0, 0}, { 0, 1, 0, 0, 0, 0}, { 0, 0, 1, 0, 0, 0}, { 0, 0, 0, 1, 0, 0}, { 0, 0, 0, 0, 1, 0}, { 0, 0, 0, 0, 0, 1}}); //P matrix, error covariance matrix // //[ 1, 1, 1, 1, 1, 1] //[ 1, 1, 1, 1, 1, 1] //[ 1, 1, 1, 1, 1, 1] //[ 1, 1, 1, 1, 1, 1] //[ 1, 1, 1, 1, 1, 1] //[ 1, 1, 1, 1, 1, 1] RealMatrix PO = new Array2DRowRealMatrix(new double[][] { { 1, 1, 1, 1, 1, 1}, { 1, 1, 1, 1, 1, 1}, { 1, 1, 1, 1, 1, 1}, { 1, 1, 1, 1, 1, 1}, { 1, 1, 1, 1, 1, 1}, { 1, 1, 1, 1, 1, 1}}); ProcessModel pm = new DefaultProcessModel(A, B, Q, x, PO); MeasurementModel mm = new DefaultMeasurementModel(H, R); filter = new KalmanFilter(pm, mm); } public State2d estimateState(State2d vision2d, State2d vision3d, State2d IMU, State2d encoderOdometry) { State2d estimation = new State2d(); return estimation; } } 

    Here is the code for State2d:

    public class State2d{ private final double xPos; private final double yPos; private final double xVel; private final double yVel; private final double xAccel; private final double yAccel; public State2d(){ xPos = 0; yPos = 0; xVel = 0; yVel = 0; xAccel = 0; yAccel = 0; } public State2d(double xpos, double ypos, double xvel, double yvel, double xaccel, double yaccel) { xPos = xpos; yPos = ypos; xVel = xvel; yVel = yvel; xAccel = xaccel; yAccel = yaccel; } public State2d(double xpos, double ypos, double xvel, double yvel) { xPos = xpos; yPos = ypos; xVel = xvel; yVel = yvel; xAccel = 0; yAccel = 0; } public State2d(double xpos, double ypos) { xPos = xpos; yPos = ypos; xVel = 0; yVel = 0; xAccel = 0; yAccel = 0; } public double getXPos(){ return xPos; } public double getYPos(){ return yPos; } public double getXVel(){ return xVel; } public double getYVel(){ return yVel; } public double getXAccel(){ return xAccel; } public double getYAccel(){ return yAccel; } } 

    How do I get the filter to work when you have multiple inputs for the same values? Vision2d and Vision3d both give xPos and yPos, encoderOdometry gives xVel and yVel, and IMU gives xAccel and yAccel. Any help would be appreciated, especially any criticism on how I wrote state2d and any incorrect assumptions I am making. Thank you for any help!

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

    Does anyone know what kind of application was used to create the app game Archero?

    Posted: 08 Jul 2020 04:03 PM PDT

    Why do I have to input my password if the website is just going to send a security number to my phone anyways?

    Posted: 08 Jul 2020 02:55 PM PDT

    Not sure if this is the right sub, let me know if not.

    I use Mint for my budgeting purposes. I usually sign in on my work computer in private mode. So I never have it remember my password. So once every few weeks I will log in and put my password in, but every time they want to send a number to my phone to verify it is me.

    Why do I have to put my password in if they are just going to verify it is me anyways? Why can't I just put in my email/username and then send me the question, why have the password in the first place?

    Yes, technically more secure, but I still feel like its way overkill.

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

    Connection string when connecting from Cloud Run to Cloud sql

    Posted: 08 Jul 2020 02:42 PM PDT

    Cannot create JDBC driver of class '' for connect URL

    Posted: 08 Jul 2020 12:16 PM PDT

    I am trying to connect from my java app running on a Google Cloud Run instance, to a Google Cloud Sql instance that is part of the same Google Cloud project.

    When my app tries to open a connection to the db, it throws the following error...

     org.jdbi.v3.core.ConnectionException: java.sql.SQLException: Cannot create JDBC driver of class '' for connect URL 'jdbc:google:mysql://my-gc-app:my-cloud-sql-instance/mydb' 

    I have enabled all the correct roles for the cloud run service to connect to the cloud sql instance.

    The java code that is establishing the DataSource is as follows...

     BasicDataSource dataSource = new BasicDataSource(); dataSource.setUrl("jdbc:google:mysql://my-gc-app:my-cloud-sql-instance/mydb"); dataSource.setUsername(mySqlUser); dataSource.setPassword(mySqlusersPassword); dataSource.setMinIdle(5); dataSource.setMaxIdle(10); dataSource.setMaxOpenPreparedStatements(100); Database.instantiate(dataSource); 
    submitted by /u/scorr14
    [link] [comments]

    Engineer to Developer Career Switch Advice

    Posted: 08 Jul 2020 08:21 AM PDT

    Hi,

    I'm interested in getting some advice on a career switch I have been thinking about for some time.

    My background is as a chartered electrical engineer with ~8 years experience now, specifically working in technical analysis of power systems. I am interested in this though it all has become pretty routine (there are some aspects to my work I am quite unhappy with too) and I now understand more clearly that it is creating things that I really enjoy doing.

    I've always had side projects that are more related to programming and currently have a fantasy football analysis website up and running built using Azure, Python & a bit of Web development (php, javascript, html/css). Most of my projects are done through Python and I have gained some competence in that language- however I respect that I am unlikely to be at or close to a professional level and would feel a bit embarrassed to share this side-project in an interview.

    In the past years I have also tended to lead automation projects within my area- as a chance to have more 'legit' usage of Python/VBA coding on my CV (even though it's not at as advanced a level as my personal projects). Unfortunately my company is extremely inflexible on installing non-default python modules which reduce the amount of applications I can use it for.

    What advice would any pros have here for somebody looking to move in this direction? Would it be advisable to consider doing something like a masters degree? I do believe I have an aptitude for the kind of thinking involved and understand an initial step down would likely be required.

    Thank you

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

    Does a password hashing algorithm suck if it thinks lowercase and caps are the same?

    Posted: 08 Jul 2020 02:15 AM PDT

    I'm not sure if that is what is being used when you get the "change your password, your password is weak, etc...". I'm updating a password and a variation is from lower to uppercase but the thing says "these passwords are the same" like how is that possible? Wouldn't the hash of upper and lower case be different?...

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

    I don't know what to do! Please help

    Posted: 08 Jul 2020 09:00 AM PDT

    So, im an 19 yr old, studying computer science in India. i started coding around 8 months ago and built some side android applications used locally in my city, I have been writing java for server(using spring boot) and kotlin for android and a desktop application for the same project in vb.net.

    that's that, AND NOW I WANT TO GET INTO KERNEL DEVELOPMENT. i m learning C for almost 1½ month and started reading books too.

    But i am confused either i should continue C or jump over to Rust (mainly because it's a new and safely typed language and fast too)

    but will C language die soon && does it has job opportunities? Or will rust grow fast && will have job opportunities?

    please help, Thanks

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

    Online programming tutor

    Posted: 08 Jul 2020 08:07 AM PDT

    I have many years of experience in programming in Python, C, C++, C#, and x86 assembly language. I also have experience teaching computer programming at different knowledge levels from beginners to more advanced. I teach core concepts and provide homework assistance. If interested, I can also teach specialized topics such as GUI programming, game development, basic operating system development etc. Contact me at codingplusplus43@gmail.com if you have any questions.

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

    Cs50 web programming with Python and JavaScript got updated. Confused need help

    Posted: 08 Jul 2020 04:15 AM PDT

    I have finished cs50 and i have intermediate python knowledge. And cs50 web programming with python and JavaScript got updated on 1 july 2020. In 2020 version they dropped flask and are focussing on django framework in 2020 version. So i am confused that which one i should do 2018 or 2020 ??

    2018- HTML and CSS, GIT, Flask, SQL and sqlalchemy, ORMs,APIs, JavaScript, Front Ends, Django, Testing and CI/CD, Scalability and security

    2020- HTML and CSS, GIT, Django, SQL and models and migrations, JavaScript, User Interfaces Testing and CI/CD, Scalability and security

    Sorry for bad english

    submitted by /u/8miless
    [link] [comments]

    Up and down arrows in editText android

    Posted: 08 Jul 2020 03:13 AM PDT

    Hi,

    does anyone have any idea if these arrows are supported in android editText ?

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

    Cryptography but applied not theoretical?

    Posted: 08 Jul 2020 02:57 AM PDT

    Hello there! I'm looking for some kind of tutorial or book to learn about encryption. I know the principles but i can't find anything further than cesar encriptions and i'd like to learn how i can encrypt my apps end to end. What would you recommend me?

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

    No comments:

    Post a Comment