• Breaking News

    Monday, August 13, 2018

    Using Instagram API to make a photo spot finding app. Any suggestions on how to get started? Ask Programming

    AskProgramming

    Using Instagram API to make a photo spot finding app. Any suggestions on how to get started? Ask Programming


    Using Instagram API to make a photo spot finding app. Any suggestions on how to get started?

    Posted: 13 Aug 2018 08:23 PM PDT

    Hi all. The title is pretty self explanatory. I'm a pretty new developer and have taken on more simple original projects (personal websites, blogs, etc), but this is a definitely a more involved, complex one. Any advice is much appreciated :)

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

    Is c++ still being used to create new projects

    Posted: 13 Aug 2018 12:36 PM PDT

    Please I want to know if there are really modern projects using c++, because I have spent more than 5 years of my life learning c++, now I am out of the university I am looking for a junior position, but I met someone who want to take me in for a Web dev internship and the same time too I found someone who is ready to take me in for a c++ internship position and work on a blockchain project, but I am kind of confused because the web dev guy told me c++ is no more used for new projects anymore that I can hardly see a position that want me to do c++, so I am scared and thinking if I should settle down with c++ and take the risk of having a supposedly old tech as my main stack, or do Web dev.

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

    Which language would you reccomend me to make a Tinder-like app?

    Posted: 13 Aug 2018 08:05 PM PDT

    The title is pretty self-explanatory. I have an idea for a Tinder-like app and I want to know the best language for it.

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

    Algorithm for drawing and positioning circuit elements and circuit traces

    Posted: 13 Aug 2018 12:19 PM PDT

    I am working on a circuit simulation tool and as such need to be able to lay out a graphical view of a circuit and its connections. A nice illustration of the issue is this image.

    Goal: I am trying to calculate the positioning of the objects (ie. the big blocks in the attached image), as well as the paths of the lines between the objects, in such a way as to achieve a result similar to the attached image.

    What i have available is:

    • A graph describing which inputs connects to which outputs connect to which
    • The size of the object and the position of their input- and output ports within the object.

    My initial idea for an algorithm goes something like this:

    1. Select an object to be the left-most object 2. Traverse object-graph with BFS 3. position objects with plenty of spacing between each other according to the BFS tree 4. Draw right-angled paths between connections of the objects, making sure that all paths are slightly offset from each other (ideas?) 5. relax distances between objects until spacing between paths are small enough 

    Not sure how well paths going from right to left will integrate into this algorithm. I've been trying to search all over the web for some reading, since i am most definitely not the first to face this problem, but so far i've found nothing.

    Ideas and suggestions are very welcome!

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

    Time Clocks

    Posted: 13 Aug 2018 11:12 AM PDT

    Our organization has an internal time reporting system, and we recently added time-clocks through a third party vendor. They provide an API for us to slurp the data, however it's often incorrect and wrong data.

    Does anyone know of any Time clocks(to punch in/out) that are interfaceable?

    There are a ton of cheap time clocks on Alibaba, but so far talking with the vendors, at best they give you a Windows only SDK that's 1/2 broken.

    Ideally I'd want a time clock I can talk to directly and just fetch the punches from.

    Wish List:

    • Biometric (fingerprint)
    • able to enroll/unenroll via some API over the network.
    • POE and Wifi.
    • Allow employees to have more than 1 job.
    • Allow encrypted communications with the clock(HTTPS/VPN/TLS/whatever)
    submitted by /u/zieziegabor
    [link] [comments]

    WHERE TO LEARN C#

    Posted: 13 Aug 2018 04:41 PM PDT

    Hey guys,I recently ended a CodeCademy Python course.I would like to know the best places to learn C#(especially for unity).
    Can you recommend some places and videos that teach me C#(and possibly unity,but not obligatory) .I need an internet , free tutorial that isn't for COMPLETE beginners,but if there is none I don't mind if its from scratch.Thanks!

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

    My xcf image won't convert

    Posted: 13 Aug 2018 03:40 PM PDT

    No matter what I use to try to convert this xcf image I made with gimp 2.10 I always get an error message. What can I do?

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

    A question on contributing to open-source

    Posted: 13 Aug 2018 11:10 AM PDT

    For some time now, I've been stuck at an awkward point in my programming venture where I'm not necessarily a newbie anymore... but I am by no means an intermediate programmer either. Noob purgatory, if you will. I really suck at reading other people's code and I have zero idea how teams of people contribute to a project in the industry.

    Recently, I had this idea that the only way that I am going to get off this plateau is to start contributing to other people's ideas. I understand the concept of github and am familiar with the basic terminal commands from my own projects.

    I found a project with some beginner level issues and decided on one in particular that was right up my alley. However, what I immediately discovered is that I was hopeless to find where the issue even was in the codebase. There are folders upon folders of various files, documents, and scripts. Not to mention, most of these files have names that are abbreviated, so I had absolutely no idea what I was looking at. Unless github's search feature is completely broken, I must not be using it correctly because it was next to useless. Does anybody have any insight or advice as to how one learns and navigates a codebase that you are unfamiliar with?

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

    How can i automate this terminal emulator input?

    Posted: 13 Aug 2018 05:45 AM PDT

    In my uni, they use a terminal app to handle everything that has to do with enrolment and class schedules. One has to enter via ssh. The first screen has multiple inputs where i have to enter my student id and pin to log in. How could i use a script to enter both fields?

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

    C# Get output if everything in a loop return bool

    Posted: 13 Aug 2018 06:41 AM PDT

    I would like to run a loop, and run everything inside, but also return a false if none of the values or function work.

    i have a loop that checks if a file path is unquoted, if it is unquoted i want to continue the loop,but at the end i want to check if any of the paths were unquoted. How do i do this?

    Loop:

    for (int i = 0; i < outputP.Length; i++)

    {

    string[] outputPP = outputP[i].Split(','); // set the parsed parsed output to the csv split object

    if (outputPP.Length > 1)

    {

    // get the 3rd part of the array, the exe name

    string path = outputPP[3];

    string[] PathVars = path.Split('\\');

    int l = PathVars.Length - 1; string exe = PathVars[l];// set the exe to the fiename

    // icacls path (originally used icacls, now on System.IO.File)

    path.Replace("\\" + exe, "");

    bool rights = TestForRights(path);

    if (rights == true)

    {

    // someway to tell

    }

    if (rights == false) { MessageBox.Show(String.Format("rights false for {0} file: {1}", path, exe)); }

    }

    }

    I want to return a bool for true or false, as this is its own function, but still run the loop fully, Is this possible?

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

    Basic data analysis in web

    Posted: 13 Aug 2018 10:00 AM PDT

    Hey, Helping out a friend, since unfortunately I am not updated on web technologies I came here for help!

    His site has a monthly report, per store, that he submits and wishes to show trends, per store, per all of them, while also having the ability to view each report by itself.

    Which technologies should I look into?

    • Edit: I know python well, been coding for a few years, will learn anything necessary.

    Thank you

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

    need a little help with my code camera rotation

    Posted: 13 Aug 2018 09:59 AM PDT

    so i'm working on the top down game for android but can't seem to get the camera to rotate on swipe from left to right can you guys help me with this because environment blocks the players view, so i want them to be able to rotate the camera from right to left with swipe to be able to see in the direction they're heading i have tried so many different way to make this work but everything I've tried failed so can you help me fix this.

    using UnityEngine; [ExecuteInEditMode] public class FollowCamera : MonoBehaviour { private Transform cacheTransform; public Transform CacheTransform { get { if (cacheTransform == null) cacheTransform = GetComponent<Transform>(); return cacheTransform; } } // The target we are following public Transform target; public Vector3 targetOffset; [Header("Follow")] public float damping = 10.0f; public bool dontSmoothFollow; [Header("Look at")] public float lookAtDamping = 2.0f; public bool dontSmoothLookAt; [Header("Rotation")] public float xRotation; public float yRotation; [Tooltip("If this is TRUE, will update Y-rotation follow target")] public bool useTargetYRotation; [Header("Zoom")] public float zoomDistance = 10.0f; [Header("Zoom by ratio (Currently work well with landscape screen)")] public bool zoomByAspectRatio; public float zoomByAspectRatioWidth; public float zoomByAspectRatioHeight; public float zoomByAspectRatioMin; private void Update() { var targetPosition = target == null ? Vector3.zero : target.position; var targetYRotation = target == null ? 0 : target.eulerAngles.y; var wantedPosition = targetPosition + targetOffset; var wantedYRotation = useTargetYRotation ? targetYRotation : yRotation; // Convert the angle into a rotation var currentRotation = Quaternion.Euler(xRotation, wantedYRotation, 0); // Set the position of the camera on the x-z plane to: // distance meters behind the target wantedPosition -= currentRotation * Vector3.forward * zoomDistance; // Update position if (!dontSmoothFollow) CacheTransform.position = Vector3.Slerp(CacheTransform.position, wantedPosition, damping * Time.deltaTime); else CacheTransform.position = wantedPosition; // Always look at the target if (!dontSmoothLookAt) { Quaternion lookAtRotation = Quaternion.LookRotation(targetPosition + targetOffset - CacheTransform.position); CacheTransform.rotation = Quaternion.Slerp(CacheTransform.rotation, lookAtRotation, lookAtDamping * Time.deltaTime); } else CacheTransform.rotation = Quaternion.LookRotation(targetPosition + targetOffset - CacheTransform.position); if (zoomByAspectRatio) { var targetaspect = zoomByAspectRatioWidth / zoomByAspectRatioHeight; var windowaspect = (float)Screen.width / (float)Screen.height; var scaleheight = windowaspect / targetaspect; var diffScaleHeight = 1 - scaleheight; if (diffScaleHeight < zoomByAspectRatioMin) diffScaleHeight = zoomByAspectRatioMin; zoomDistance = diffScaleHeight * 20f; } } private void LateUpdate() { #if UNITY_EDITOR // Update camera when it's updating edit mode (not play mode) if (!Application.isPlaying && Application.isEditor) Update(); 
    

    No comments:

    Post a Comment