• Breaking News

    Thursday, July 2, 2020

    Gift Ideas for my programmer brother.. C# Unity related. Ask Programming

    Gift Ideas for my programmer brother.. C# Unity related. Ask Programming


    Gift Ideas for my programmer brother.. C# Unity related.

    Posted: 02 Jul 2020 03:51 PM PDT

    So I have no programming experience so please forgive me. My brother on the other hand has a Computer Science masters and is a developer for some website development company.

    He recently mentioned that he would like to learn C# for Unity applications so he can start to make his own games. It'll be just something for him to do in his spare time as a bit of fun.

    His birthday is just around the corner so I'd like to start him off with this, any suggestions on books or resources to learn C# for Unity? Like I said he's got extensive programming experience but I'm really not sure which programming languages. Are there any good resources or books for someone who's not a beginner with programming but is a beginner with C# and Unity?? Maybe there's a good book or a paid resource or an online course I could buy him? I just don't want to waste getting him something that will teach him how to suck eggs!

    Again, sorry if I'm not getting it across as I should. I'm completely new to all this, I just want to get him a gift he'll appreciate and use, something that'll help him along.

    Any help is appreciated!

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

    Looking for projects, resources and technology for people who have ALS

    Posted: 02 Jul 2020 07:49 AM PDT

    Hello Reddit.

    I am a self-taught programmer and have recently undertaken a huge project to help a good friend of mine, Klaus.

    Klaus used to be a mountaineer and explorer until he became ill with ALS (Amyotrophic lateral sclerosis) . For those that don't know, ALS causes the death of neurons controlling voluntary muscles. This means that Klaus, who once climbed mountains, is now restricted to a wheelchair and unable to move his limbs. He still has his speech for now, but that too is slowly fading. His eyes are still able to move around, and that seems to be holding strong.

    My question to r/AskProgramming is what technology exists that can assist people with ALS and limited movement?

    His wife has requested help with a few things.

    • Controlling the TV
    • Controlling an E-reader or tablet
    • Making and receiving phone calls

    While I realize this is a strange request, any help would save me loads of time researching different technologies in my quest to help this man. Budget is obviously an issue as well. Lots of the current technology out there is wildly expensive and that isn't currently an option for him as he receives a very limited assistance package.

    Right now my head is thinking about using a webcam based eye tracker and voice commands to activate an Alexa, am I on the right track?

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

    About technical documentation...

    Posted: 02 Jul 2020 08:24 PM PDT

    I am developer, and I has worked for four years, and in the TI group never has documented the code... Yep, if any have a question about the functionality on the previous projects, sometimes we ask each other and it takes a long time, is horrible... Recently any of the team went to another company, he has built a specific program, a big program, and when it fails sometimes we need ask him by WhatsApp if can help me to solve the problem xD

    I need create a documentation about the code, a technical documentation... (Yep, it will take so much time) and I have seen any tools, I need some without pricing, for example I was seen Read The Docs, Wiki.js, BookStack...

    What is the best tool (or the best method) for starting to document the code, and the products, Read The Docs is a good election? I am beginner in context.

    Thanks.. (sorry for mi English redaction)

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

    Is using GIT's GUI a bad practice?

    Posted: 02 Jul 2020 02:54 PM PDT

    So, I'm learning GIT, but all those commands seem pretty hard for me to use and keep track of. I'm thinking abt watching a GIT course, but this one doesn't use any commands, just user interfaces. Is it a bad practice? Do people use it? Nobody talks about it, almost seems like it's forbidden, idk. Should I watch that course or just learn the commands once and for all?

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

    So does shorter code = more efficient?

    Posted: 02 Jul 2020 10:14 PM PDT

    I'm guessing that the less processes the computer needs to run through in the code the faster the program I do? I've been doing SoloLearn as an introduction to coding and I see people in the comments talking about how to make examples shorter, to make it "more efficient".

    But I haven't seen anybody expand on that and explain how much that impacts the program performance compared to other things. Tbh I don't really understand what kind of things affect performance, since incorrect code just doesn't let the code compile to begin with

    (I've been dabbling in c# and c++ if that's relevant)

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

    Reason why some languages/APIs/frameworks don't provide access to the clipboard/pasteboard

    Posted: 02 Jul 2020 09:57 PM PDT

    I assume there is a "best practices" reason, but what is it? For C on Windows, you need to use the Win32 API. For C#, you need .Net System.Windows. The the 'pbcopy' command uses system specific functions (NS* for macOS), not sure about Linux. There is no way in Python or JavaScript.

    PS: Is the sole purpose of r/programming to post links to articles?

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

    Java game fps render

    Posted: 02 Jul 2020 05:55 PM PDT

    https://pastebin.com/6Ye7QktG

    Please, explain to me the execution of the code. Im confused in the part (now - lastTime)

    lastTime = System.nanoTime(); Then in whileLoop, now = System.nanoTime(); Is it they are the same, therefore (now - lastTime) = 0 ? 0 / timePerTick = 0 ?

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

    Windows Subsystem for Linux vs Linux????

    Posted: 02 Jul 2020 05:53 PM PDT

    From what I've been reading recently, it sounds like Windows isn't very popular in the dev community. I absolutely refuse to buy a Mac because of their cost and the fact I actually know how to build computers. I've only used Windows before. I've of course heard of Linux but don't have any experience with it. I'm just wondering if I should be making a Linux build for programming, or if it makes more sense to just do the whole WSL approach. Is one better than the other?

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

    What does SAP mean and what does an SAP consultant do?

    Posted: 02 Jul 2020 09:38 PM PDT

    I am getting prepared for an SAP consultancy job interview. So, I would like to know what does an SAP consultant does in his work life.

    From what I researched I know that there is 2 positions SAP technical and financial role. I am a CS engineering student so mostly the interview would be for the technical role. So what does an SAP technical consultant do?

    I am experienced as a full-stack developer, would the SAP consultancy job be like developing software using programming language, or would we be using some pre-designed program like Pega Software to develop the product.

    Thanks in advance!

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

    I'm want to create a video conferencing site, but I have no clue how to even start. I am proficient in the MERN stack, and I was wondering if anyone knew any good articles or videos I should watch to figure out how to go about this project?

    Posted: 02 Jul 2020 09:29 PM PDT

    What's your weird bug story?

    Posted: 02 Jul 2020 08:52 PM PDT

    We've all had some interesting bugs.. what stands out?

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

    How to run the exe automatically after building solution in visual studio?

    Posted: 02 Jul 2020 08:38 PM PDT

    Is the 2020 base model macbook air enough for a coding bootcamp?

    Posted: 02 Jul 2020 07:41 PM PDT

    So I'm starting a full stack coding bootcamp in a few months. they require the use of a macbook. They did say that 8gb is the minimum specs.

    I just wonder how bad will the performance issues be on a base model MBA? Will it lag so bad that I fall behind in class? Or will it just be a few seconds slower than those who may have MBP's?

    I wont be doing any gaming or video editing, strictly web browsing and web dev, maybe the occasional netflix movie.

    TLDR, Will I be ok using a 2020 base model MBA for my fullstack coding bootcamp?

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

    return outside function error

    Posted: 02 Jul 2020 10:36 AM PDT

    Hi! I keep getting a "return outside function error" ! can I have help on proper placement of the return?

    def even_odd(nums):

    even=0

    odd=0

    for num in nums:

    if num % 2 == 0 :

    even = even+1

    else:

    odd=odd+1

    return (even,odd)

    print("List had",even,"evens and",odd,"odds")

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

    How to return an array of solutions for a Return type int[] for my loop

    Posted: 02 Jul 2020 06:37 PM PDT

    I am solving a question on hackerrank on problem solving(using Java) and I am always struck on the point when I have to write the output in a file using return statements.Is there a way to understand this concept for a beginner.I tried searching online but no one is talking about this. Am I the only dork who is facing this sort of difficulty?😶 I understand the logic,write the code but am unable to return the output when it is asking it in form on an array of some sort. Can someone help me out?

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

    Which language should i use to make a list management system

    Posted: 02 Jul 2020 05:25 PM PDT

    It's pretty much a bunch of lists you can make and assign users to. I already have the database I want drawn up, but I'm not sure which language I want to use to make it. I don't even know what platform I want it to be on so I'm open to suggestions. I've thought about using javascript, because I want to make a really nice UI for it, in which case it would be a website. But I've also thought about using C# and visual studio to make a desktop application. So do any of you have any recommendations on what would be good a good language to implement this for the front and back end? Thanks!

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

    Java! Cross Platform!

    Posted: 02 Jul 2020 04:43 PM PDT

    I've always heard that java is a cross Platform language. I perceive that a java program with JRE of its own can run on any OS.

    If (query==false){

    Then what does Cross Platform means.

    }

    else{

    Base JRE is increasing the size of the program tremendously. How should I reduce it?

    }

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

    I have a YouTube channel and I want to hear a sound every time I get a new view.

    Posted: 02 Jul 2020 01:16 AM PDT

    I think it would be really inspiring and fulfilling to know that someone is viewing my content in real time. Is this possible?

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

    Does anybody know how to solve this in python using binary search?

    Posted: 02 Jul 2020 06:11 AM PDT

    List=[4,7] N=5 M=2 ---> output(level of jealousy): 3

    List =[7,1,7,4,4] N=7 M=5 ----> output(level of jealousy): 4

    You get list of balls and you have N number of children. Each ball is one of M different colors. You must divide all the balls to N children so that all the balls for each child are the same color. Jealousy will prevail if a child gets a large number of balls. The level of jealousy is equal to the largest number of balls that a child has received. Divide the balls in a way that the level of jealousy is as low as possible.

    For example, if you have 4 red balls(R) and 7 blue balls(B) and we have to divide it to 5 children, level of jealousy is 3 because we divide it like this: 1st child:RR(two red) , 2nd child:RR ,3rdchild: BB(two blue) ,4th child:BB, 5th child:BBB (three blue).

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

    How to find all possible paths from top left element to bottom right element in a 2d array in Javascript

    Posted: 02 Jul 2020 08:01 AM PDT

    You can only go right or bottom, So if the input is say

    [[1, 2, 3], [4, 5, 6]] 

    , the output would be

    [[1, 4, 5, 6], [1, 2, 5, 6], [1, 2, 3, 6]] 
    submitted by /u/fuser312
    [link] [comments]

    Date format questions

    Posted: 02 Jul 2020 03:21 PM PDT

    I'm new to programming and i went to ask who think is good idea to use MDY in programming or daily life like expiration date instead of DMY or YMD

    submitted by /u/_-ammar-_
    [link] [comments]

    Can not connect from flutter app to java backend running on Google Cloud Run

    Posted: 02 Jul 2020 07:44 AM PDT

    I have deployed a java backend in a docker container running on Google Cloud Run, now am having connection issues.

    I am connecting to it using a flutter app. My java backend uses Jetty embedded for http. Previous to this, I did development on my local machine, and in the flutter app I would hard code in my servers LAN IP. The client connected reliably in this scenario

    I have since deployed to Google Cloud Run and am not able to connect to the backend with my client.

    I have tested the docker container locally, and I was able to connect to my backend when running the container using this command...

    docker run -p 8443:8443 --network="host" image1 

    In the google cloud run console, I set the port to 8443.

    In my flutter app. I have changed the URL from...

     https://192.168.100.103:8443 

    To the url the Google Cloud Run specifies as my IP (I then added the port)...

     https://blahblah-82j3flsijf-uc.a.run.app:8443 

    My flutter code that establishes the connection is as follows...

     HttpClient client = HttpClient(); client.connectionTimeout = Duration(seconds:2); // throws SocketException after timeout client.badCertificateCallback = ((X509Certificate cert, String host, int port) => true); // find the way to specifically accept a self signed certificate HttpClientRequest request = await client.getUrl("https://blahblah-82j3flsijf-uc.a.run.app:8443"); request.headers.contentLength = requestBody.length; request.write(requestBody); 

    My java backend code that establishes the jetty http server is as follows....

     Server server = new Server(); HttpConfiguration http_config = new HttpConfiguration(); http_config.setSecureScheme("https"); http_config.setSecurePort(8443); HttpConfiguration https_config = new HttpConfiguration(http_config); https_config.addCustomizer(new SecureRequestCustomizer()); SslContextFactory sslContextFactory = new SslContextFactory("keystore"); sslContextFactory.setKeyStorePassword("devpass"); sslContextFactory.setKeyManagerPassword("devpass"); SslConnectionFactory sslConnectionFactory = new SslConnectionFactory(sslContextFactory, "http/1.1"); HttpConnectionFactory httpConnectionFactory = new HttpConnectionFactory(https_config); ServerConnector httpsConnector = new ServerConnector(server , sslConnectionFactory , httpConnectionFactory); httpsConnector.setPort(8443); httpsConnector.setIdleTimeout(50000); server.setConnectors(new Connector[]{ httpsConnector }); HandlerList handlers = new HandlerList(); handlers.setHandlers(new Handler[]{ new MessageHandler(), new DefaultHandler()}); server.setHandler(handlers); server.start(); server.join(); 

    When I try to connect using the client, the connection just times out...

     SocketException - SocketException: HTTP connection timed out after 0:00:02.000000 

    None of the logs in my application would indicate any request has landed at the application are firing.

    EDIT: Requests from postman also time out, but they land as requests on the google cloud run instance, where as request from my app do not. I have concluded this, as they show in metrics. But the request handler at my app does not log at all.

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

    What job could I aim for?

    Posted: 02 Jul 2020 08:28 AM PDT

    TL;DR - Finished school, can't assess my skills and don't know what job to aim for.

    Hey y'all, i will start with a little backstory. I've just graduated secondary school that has an additional year for a profession, in this case, its programming. I don't know what these schools are called in English, sry.

    Anyhow, I had a job offer, but the man who made it now seems to evade me in one way or another. Because i have just graduated I'm in a real need of a job so i can finally pay for my own things and move out from the family home. The problem arises when I try to describe myself to someone. In my free time I very rarely code. I have little experience with machine learning and the neural networks. Very basic skills in python and currently i am learning photoshop. I've got no clue what can I aim for. I understand that some of you would discourage me trying to go for that kind of a job if it doesnt really spark much passion for me.

    However, I do believe that if I had a job I could really do it. (in school I had half-a-year work in a firm that specializes in deep learning) While working in that firm, even do I didn't really enjoy the coding part, did like the projects where I had to visit places and literally check, fix or build.

    The grand question is - If I'd like to work from home or get a job somewhere abroad, what could I aim/ask for? What profession would that be? There are so many IT professions out there that Im lost.

    For those who struggled through and read it all, I send you my virtual love. Thanks in advance!

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

    Need some orientation for an app/web

    Posted: 02 Jul 2020 02:12 PM PDT

    Hey everybody,

    So me and a friend have decided to create an app or a web (we haven't decided yet) to have easy access to our massive excel spreadsheet for a roleplaying game, with all the calculations and formulas it includes.

    So the project would be about recreating that excel spreadsheet in our app or web.

    I was just wondering which language I could use for that project, I got experience with React and PHP. In mobile, I've used android studio and React Native, or if i'd have to learn a language from scratch that would be a nice experience too.

    I was asking mainly if someone had previous experience with a similar project and had some recommendations or something.

    Anyways, cheers and thanks for reading!

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

    No comments:

    Post a Comment