• Breaking News

    Monday, April 19, 2021

    What would you ask someone to test basic programming understanding? Ask Programming

    What would you ask someone to test basic programming understanding? Ask Programming


    What would you ask someone to test basic programming understanding?

    Posted: 19 Apr 2021 06:32 AM PDT

    Programming Languages That Are Used to Create Games and Apps

    Posted: 19 Apr 2021 10:09 PM PDT

    C++

    The C++ programming language was initially called "C with classes." It was made to take present-day principles, similar to object-directed PC programming, and join it with the low-level highlights seen by languages like C. In this manner, it would permit users to more effectively make their projects with clarity, while not losing advanced factors like memory management.

    Given its universally applicable nature, C++ has, for what it's worth, become perhaps the most generally utilized programming language, having applications for programming and – just like the subject of this article – games. Truth be told, numerous advanced engines, like Unreal Engine, are based on the language, so figuring out how to code C++ is viewed as key by numerous expert designers. Of the programming languages, at that point, this can be viewed as quite possibly the most ordinarily utilized as a rule.

    Pros

    • Being so near C, C++ is incredibly proficient and is one of the quickest programming dialects to pick on the off chance that you have loads of complex tasks to run in your games.
    • C++ has maybe the biggest local area and tutorial support given its general utilization all over.
    • Its capacity to do things like memory managment is convenient on the off chance that you need more tight control on game execution.
    • It has a lot of versatility and can be utilized for both small and large game activities.
    • It is stage-free, which means you can port tasks around effectively, paying little heed to OS.

    Cons

    • While there are many game engines to utilize, discovering lighter-weight structures for C++ game development can be a challenge. You likewise can only, with significant effort, create games with JUST C++.
    • Of the languages on this rundown, C++ is likely the hardest to learn and is the least novice-friendly.
    • Even though C++ gives you more command over memory management and so forth, this comes at the expense of lacking automatic garbage collection – which implies more work on the engineer's end.
    • As a more seasoned language, some advanced highlights seen in different dialects are absent or standardized with C++.
    • Since C++ permits engineers to accomplish more, this likewise permits less security – which means you could get vast loads of unforeseen conduct in your games without goal.

    JavaScript

    JavaScript is ordinarily known as one of the central pillars of web development. It was created in 1995 and was intended to suit the new ECMAScript specifications that were aiming to normalize the web and internet browsers. While HTML educates web designs and CSS illuminates web arts, JavaScript is the natural PC programming language that revives sites, adding most measures of intelligence you see on an everyday premise.

    However, with the rise of HTML5, JavaScript has likewise become the center mainstay of HTML5 game development as far as programming languages. As it was initially planned with both object-directed and event driven frameworks for web client interaction, this created it the ideal decision to reach out for games. Furthermore, with Flash currently being out of date, it additionally cleared a path for such HTML5 games to ascend and turn into the pillar of program based game development.

    Pros

    • As HTML5 games depend on the web, JavaScript makes it simple to make program-based games and mobile games.
    • Given that JavaScript is a centerpiece of the web, it's not difficult to incorporate such games with JavaScript-based structures and libraries, as Node.js and Express, for multiplayer game creation.
    • HTML5 games are, for the most part, the least demanding to share since they can be facilitated straightforwardly on a site for anybody to visit.
    • JavaScript is by and large less asset serious for game developments, which means it's extraordinary on the off chance that you don't have a great PC to create games on.
    • Since JavaScript is a very steady programming language because of its requirement for the web, HTML5 games are simpler to keep up and don't need similar kinds of refreshing games made with engines do.

    Cons

    • Alternatives for 3D designs are restricted to specific systems, by and large driving many people to depend on 2D illustrations for their games.
    • It is a somewhat higher-level programming language, so it isn't as proficient as other programming dialects on this rundown regarding how quickly it performs assignments.
    • Because of not being as efficient, HTML5 games have more cutoff points regarding the extension and size of the games you can make.
    • While JavaScript itself gets bunches of help for web advancement, HTML5 game networks are a digit smaller contrasted with other mainstream programming dialects and motors.

    C#

    C# is a universally useful programming language made in 2000 by Microsoft with the particular goal of working with their .NET structure. Given the notoriety of C++ and Java, it was intended to take the best of both programming languages and join it into another simple to-analyze, object-directed programming language that had extraordinary cross-stage capacities. Nonetheless, it likewise had remembered organizations, and so it very well may be effectively utilized for programming development.

    Concerning games, C# likewise tracked down a home in the industry because of its overall productivity and versatility. Specifically, it turned into the default programming language for the mainstream Unity engine, with all advanced Unity libraries being worked around the language. Given Unity is utilized for a huge level of the game industry, this has given it a tight hold in such a manner.

    Pros

    • Relatively, C# is a very beginner language with genuinely simple to understand code.
    • Programmed memory management implies you don't need to do a profound jump into those aspects and can zero in building up your game.
    • As a language created by Microsoft, it is a top decision for games on Windows PCs. Nonetheless, it is fit for dealing with most present-day frameworks.
    • C# is a safe language, which means your games will have greater security and will not show huge loads of startling practices.
    • It is generally proficient and adaptable, which means it's appropriate when used to do game projects.

    Cons

    • For certain exceptional cases, outside of game engines, C# isn't widely utilized for games. Hence, a machine is nearly needed for this situation for local area support.
    • While more proficient than JavaScript, it isn't just about as effective as C++ or Java, which means game execution can endure if the game is sufficiently complicated.
    • As the language was intended to work explicitly with Microsoft's .NET structure, it isn't just about as adaptable as other programming dialects on the rundown.
    • In the business world, while sought after for general business applications, it isn't as requested for game designers as C++ is.

    Java

    Made in 1995, Java is an object-directed programming language made for general PC programming. The design standard behind the language was to have it need the least conditions as possible – particularly contrasted with other programming languages at that point and even today. In this manner, this implied that projects made with Java could undoubtedly run on various systems as they weren't as reliant on the hidden PC architecture.

    Given this cross-stage nature, someone mainly utilized Java for application development. In any case, in the domain of games, it additionally finds a spot. Even though not as widely utilized as other programming languages on this rundown, a lot of desktop games are made with Java. What's more, as the top programming language for Android devices, Java is regularly utilized by various designers for mobile games and applications.

    Pros

    • As Java is the establishment for Android devices, it is excellent for making mobile games.
    • Regardless of its age, Java is fit for using present-day technologies like multi-stringing for better game execution.
    • However long the stage upholds JVM, Java games can be run closely on any platform. This incorporates frameworks like Linux.
    • It is apt to server development, so multiplayer games can be made reasonably effectively with Java without the requirement for additional libraries, etc.

    Cons

    • Even though successful games have been made with Java, it isn't the standard decision for game development, according to most engineers. Hence, community support for it in this field is restricted.
    • In spite of the fact that it has programmed management, it is known to have some inertness issues for games, therefore.
    • Hardly any engines or libraries explicit for game improvement exist for Java contrasted with different languages.
    • Most current consoles don't uphold JVM, so despite its capacity, Java games are regularly platform restricted in such a manner.

    Swift

    With regards to mobile application development, Swift is a programming language that is not normal for some. Delivered by Apple Inc. in 2014, it's the essential programming language utilized for iOS mobile application advancement.

    In any case, Swift isn't selective to Apple—it's slowly advancing toward Linux too. What's incredible about this programming language is that it's open-source and easy to deal with. Here are some more reasons why you ought to think about Swift when building up a mobile application: It's less difficult to analyze—it disposes of the requirement for inheritance conventions.

    • Less codes are required
    • Upkeep is truly simple, as it brings together Objective-C's two-record framework
    • It allows designers to check their code without building up the whole application

    Java

    Java is quite possibly the most mainstream programming language out there for mobile application development and is utilized by various mobile application development companies. Android OS, which is a popular utilized operating system, is written in Java; thus, on the off chance that an application engineer is knowledgeable with Java, they'll have the option to make a wide range of Android applications.

    Other than Android applications, engineers acquainted with Java can create games, embedded space, sites, server applications, and that's only the tip of the iceberg. In addition, Java can either be run in a program window or in a virtual machine that doesn't need a program. This is the reason it's an amazingly adaptable programming language as far as reusing code. Here are a portion of the critical highlights of Java that help make mobile application development a lot more straightforward:

    • It very well may be utilized to create cross-stage applications
    • Its language is object-arranged
    • APIs are upheld
    • Coding is made simple because of solid IDEs

    Python

    The creation of practically any sort of mobile application should be possible with Python. Utilized by a host mobile application development service, it's one of the more complex programming dialects out there but is also at the same time quite possibly the most mainstream. Even though it's viewed as a higher level of coding and powerful, it's straightforward to analyze and truly simple to learn.

    Considering how amazing Python is? Indeed, a portion of the world's most renowned applications and sites have been made with it. A portion of these incorporate Dropbox, Instagram, Quora, Spotify, YouTube, and BitTorrent. So, Python is a helpful programming language that has incredible potential regarding mobile application advancement. Here's the reason:

    • GUI applications are upheld
    • Deals with Mac, Unix, Windows, and Linux
    • It's adaptable
    • Its language is object-situated and intelligent

    PHP

    PHP or Hypertext Preprocessor is an open-source programming language that is additionally server-side. Although created back in 1995, PHP is still broadly utilized today. It's mainly utilized to create sites that are dynamic.

    Be that as it may, alongside PHAP, designers can make entire iOS, Androids just as Windows applications. Also, Facebook applications, web-based business sites, WordPress, and Joomla modules, would all be able to be made in PHP. Here are a few reasons why PHP is really extraordinary for mobile application improvement:

    • It's a platform that is autonomous
    • It has various employments
    • It's viable with different servers
    • It makes continuous access checking accessible

    Ruby

    Did you realize that you just need 10 minutes to make an application on Ruby? Pretty remarkable, isn't that so? It's the reason to why mobile application advancement services wherever love this programming language. Moreover, Ruby is one of the quickest developing ones out there, as it can uphold a large number of stages.

    Be that as it may, with regards to mobile application advancement, making an application on Ruby requires the use of structures like RubyMotion and Rhodes. By benefiting the services of both of these systems, an engineer can create applications for many platforms, like Android, Windows, iOS, just as OS X. Numerous mainstream sites have been coded on Ruby. These incorporate Basecamp, Airbnb, Pixlr, Bloomberg, and that's just the beginning. Considering what makes Ruby so special? Here are a portion of its exceptional highlights:

    • It permits you to utilize existing codes
    • Dynamic typing is upheld
    • Anybody can code utilizing it
    • It incorporates object-situated language

    HTML5

    Need to make a web-fronted application for mobiles? HTML5 is your smartest choice. Even though it's a proposed standard, its mobile application development services discover this programming language to be really helpful. This is because HTML5 permits engineers to handily embed an assortment of data types, just as it considers distinctive screen sizes, levels the program playing field, and explains input boundaries.

    Additionally, HTML5 gives mobile application engineers the upside of building applications on the current form of HTML. This makes coding more straightforward, as engineers don't need to get familiar with an entirely different language, which makes mobile application development on HTML5 a lot faster, and more helpful. Did you realize that Google Drive is coded in HTML5? All things considered, it's only one among hundreds. What follows, two or three advantages that HTML5 brings to the table:

    • It's receptive to various designs
    • It has the advantage of cross-program support
    • It accompanies drag-and-drop
    • Audios and videos are upheld by it

    C++

    C++ is fundamentally an extension of C and is an object-directed programming language. C++ may sound old-fashioned; however, there's yet a large interest for it. It's a lovely amazing programming language that is utilized for mobile application development. As it permits designers to make applications across an assortment of platforms, it has always remained a mainstream language.

    Also, it accompanies a merged troubleshooting experience. This considers the production of flashy applications for a scope of operating systems like Android, iOS, and Windows. That is not all—probably the most notable games, applications, and programs have been made utilizing C++.These incorporate World of Warcraft, Google Chrome, PayPal, Photoshop, and Amazon. Following, a few reasons why you ought to consider this advantageous programming language with regards to mobile application development:

    • It's versatile
    • It has an enormous library
    • It's quicker than most other programming languages
    • Its effortlessness makes it exceptionally helpful

    Disclosure: This is not an affiliate review, and the answer is intended to inform. I am not affiliated with the products being reviewed, receiving monetary compensation, or another reward for posting.

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

    What language to use for project

    Posted: 19 Apr 2021 07:51 PM PDT

    Hello,

    I am working on a project that deals with timing runners during a race. The basic idea is this:

    1. The device (a Raspberry pi) pairs with a phone to sync clock time (i.e. 9:00 AM).
    2. When the race starts, the user starts a timer on their phone that records when the race was started (i.e. 9:03 AM).
    3. When a runner passes by one of the devices (there will be several), it will record the clock time when the runner passed by and stores it (i.e. 9:08 AM).
    4. At the end of the race, the devices are synced up to the phone to deliver the clock times which the runner passed. Then it can perform a calculation to see what the actual time was when the runner passed by (i.e. 9:03 AM - 9:08 AM = 5 Minutes into race)

    I want to know what language would be the best to use here. Remember it will be on a raspberry pi, specifically a raspberry pi zero.

    I also want to expand the usefulness of the information down the road, such as average times, etc.

    Sorry if this was confusing, just ask if you have any questions.

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

    c++ code output question

    Posted: 19 Apr 2021 06:47 PM PDT

    So I'm kind of confused by the return 3+ fix(y+4)

    https://i.imgur.com/y4tfMEx.png

    so the first one is: return 3 + fix(0+4);

    then here I get confused, is that = 7?

    Then you run it again so it's return 3 + fix(7+4) = answer 14?

    Any help appreciated! Thanks

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

    The EventHandler Pattern

    Posted: 19 Apr 2021 06:20 PM PDT

    The Problem

    I've been trying to do some ecosystem simulations, comparable to the one in this video but with more complexity. Trying to model a full food chain ecosystem that can also evolve over time.

    One interesting thing about biological models is that you quickly realize traditional OOP class hierarchy is not suited for the task. Biology is full of edge cases, all assumptions you make come back to bite you later. For example, let's say you make some assumptions about how plants work, but then you find these and you end up re-writing the entire class hierarchy.

     

    The Solution?

    I think this paper: FOREST: A System for Developing and Evaluating Ecosystem Simulation Models may be a solution here. Below I'll summarize some of the key points but I highly recommend reading at least the latter portion of the paper:

    Since traditional class hierarchy doesn't seem to work, we need to use some fancy design patterns. One popular pattern that may be applicable for this may be the Visitor Pattern. It makes it easier to add new behaviors to existing classes.

    The problem with the Visitor Pattern is that it is still complicated to add new classes into the hierarchy since each visitor class must be modified to visit the new class. For example, if we wanted to add the class Fungus to the hierarchy, a visitFungus method would have to be added to every visitor class.

    So instead we can use the EventHandler Pattern. Once the initial EventHandler setup is complete, adding new entities and behaviors seems easy. For example, make a new Fungus entity and for every behavior you end up wanting, just have Fungus<behavior>EH EventHandler. Keep adding more entities and behaviors without ever refactoring the class hiearchy.

    At first I had a really hard time picturing how this would work, and it was only when I saw a code example that it started to make some sense.

     

    My Questions

    1) Validity of this pattern:

    I'm a bit out-of-the-loop when it comes to design patterns. Needless to say, I have never heard of the EventHandler Pattern. Is it not very popular? It seems quite powerful, but considering this came out in 2003 I would expect this to be quite popular by now. Does many <entity><behavior>EH classes scale as well as it seems? Is there a catch?

    Really looking for any experiences anyone has had when using this EventHandler (or even Visitor) Patterns in large-scale systems.

    2) Client-Server behavior:

    I'd also like to eventually host this such that we can scale many client-side simulation events to be sent to a server, that acts as a source-of-truth.

    For example, an Animal cannot eat() a Plant and affect the Plants health directly. Rather, the Animal sends the eat() event to the server, and the server sends an event to the Plant client. How does this kind of design pattern hold up under this scenario?

    The may work around some of the limitations of this pattern:

    Limitations in the current design of FOREST are that it does not provide any support for modeling interactions between organisms

    Simple interactions, for example two species who compete for the same food source, could be mediated by the environment. But direct interactions, such as those in predator-prey models, would require an extension to the modeling framework to allow interactions between simulated objects.

    Am I understanding this limitation correctly? Using a server to hold all the permanant state would seem to act as the mediating environment here. I'd love some feedback on this idea in particular.

    3) Other suggestions:

    It seems unlikely that I stumbled upon the exact solution to my problem. Surely other scenarios come up where you need a very fluid class hierarchy that needs to accommodate edge cases. Are there other patterns I should also be looking at?

    With so much time to improve this design from 2003, maybe there are some improvements that were made to this kind of original design that I should also be thinking about, so please let me know if you are aware of any.

     

    In my "big projects" I neglected to optimize the polymorphism before starting, which led to many refactors and a bad experience with OOP. Trying to optimize this before I get too deep. Thanks so much for your help!

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

    .JAR Program & Included Libraries Issue

    Posted: 19 Apr 2021 09:28 PM PDT

    Hello all,

    I downloaded a .JAR application that many others have downloaded and reported to work fine, when I run the program everything appears to work but I get no data in my console.. it's a program that's suppose to listen to my serial ports and work with my Arduino UNO to properly and accurately update the time on a DS3231 breakout module. After some investigation, using CMD to run the application, when the console is finally reached after some options/settings, the CMD states that their is a linkage error as follows:

    java -jar C:\Users\miken\Desktop\DS3231\DS3231Sync.jar

    java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver

    Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path

    at java.lang.ClassLoader.loadLibrary(Unknown Source)

    at java.lang.Runtime.loadLibrary0(Unknown Source)

    at java.lang.System.loadLibrary(Unknown Source)

    at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:123)

    at DS3231Sync.initialize(DS3231Sync.java:54)

    at DS3231Sync.init(DS3231Sync.java:223)

    at DS3231Sync.main(DS3231Sync.java:276)

    I've already confirmed that the DLL files are included within the JAR.. Updated JRE, Updated JDK, Added the two DLL's to programfiles\java\jdkx.x.x.\bin.. the Comm JAR i got that and added it too.. any ideas on how to fix this..?

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

    How do you keep your computer from crashing due to programming? What are Best Practices for Maintaining a Personal Computer that is used for programming?

    Posted: 19 Apr 2021 02:40 PM PDT

    I was using Rstudio to complete a take home assignment for a potential job. My personal laptop is only 4 yrs but I had to keep restarting it. It was highly problematic. I lost my code even though I saved it as when I reopened the script it was empty. I found it in my AppData folder under a different name and as a txt file but when I copied the code into an R script, it wouldn't save and the file would reopen as blank. I looked into getting something just for coding but it's costly and I can't afford it. I think I might need a professional to look at my computer but what can I do to help improve my personal laptop's performance while coding? I was using RStudio from Anaconda whereas normally I just use RStudio without opening Anaconda. Is Anaconda the culprit? I have used Python (from Anaconda and on its own) and SQL in the past.

    What do you do to help your computer be in good shape? I want to minimize and prevent unnecessary crashes while programming. Is this possible? I don't expect my computer to never crash but I certainly want it to do so less. It was quite stressful and time consuming to restart as was quite slow.

    I have a Dell Inspiron 15 5000 64-bit laptop. I bought it in September 2015. Not sure if the specs link will help but here it is:

    https://www.dell.com/support/manuals/en-ca/inspiron-15-5566-laptop/inspiron-5566-setupandspecifications/specifications?guid=guid-3c38ef9d-0b2f-4e19-a8c0-498b85881b11&lang=en-us

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

    Instagram anonymous story viewers

    Posted: 19 Apr 2021 08:33 PM PDT

    Do anonymous story viewers (like instadp) sites keep Instagram stories? They claim they don't host Instagram content but if you watch a story using the site and the story is immediately deleted on Instagram the story can still be seen on the site for several hours. Is this possible? I don't understand anything about programming so I would be really glad if someone could help me out. If they are keeping deleted stories available, even if just temporarily, I don't want to use these kind of websites anymore.

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

    How to run a Python Project (downloaded from Github) PYTHON DJANGO

    Posted: 19 Apr 2021 07:51 PM PDT

    Hi, so I've downloaded this project from Github and to run this project it says to extract the project folder which I've done, but I dont know what else to do to run this project. Following instructions after extracting the folder are..

    Move to project folder in Terminal. Then run following Commands: python -m pip install -r requirements. txt

    py manage.py makemigrations py manage.py migrate py manage.py runserver

    Lastly it says to enter this URL http://127.0.0.1:8000/

    Found the project on github.com/sumitkumar1503/bloodbankmanagement

    Can anyone help me run this project please?

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

    How to build a dll with g++ (main file is written in c++, but it falls back on CUDA)

    Posted: 19 Apr 2021 01:11 PM PDT

    I want to build a dll with g++, it will be builded for java jni and it will fall back on CUDA.

    improc_CUDA | |---dist # target folder for the dll | |---src | | | |---jni.h # jni header file, needed for the bridge between Java and c++ | |---utils_CUDA_ImageUtils_CUDA.h # the actual bridge between java and c++ | |---main.cpp # main src file | |---main.o | |---kernel.cuh # bridge between c++ and cuda | |---kernel.cu # cuda src file | |---kernel.obj | I tried to run this in VSC's native x64 cmd: g++ -shared main.o kernel.obj -o A:\java\SudokuV2\src\bin\native\improc_CUDA\dist\improc_CUDA.dll This threw: Warning: corrupt .drectve at end of def file main.o:main.cpp:(.text+0x15c): undefined reference to `Bridge::grayscale(int*, int*)' main.o:main.cpp:(.text+0x29c): undefined reference to `Bridge::cut(int*, int*, int*, int*, int*, int*, int*, int*, int*)' kernel.obj:(.text$mn+0xd6): undefined reference to `cudaGetDeviceProperties' kernel.obj:(.text$mn+0x181): undefined reference to `__cudaPushCallConfiguration' kernel.obj:(.text$mn+0x1a1): undefined reference to `cudaDeviceSynchronize' kernel.obj:(.text$mn+0x1ae): undefined reference to `cudaFree' kernel.obj:(.text$mn+0x1f8): undefined reference to `cudaMemcpy' kernel.obj:(.text$mn+0x205): undefined reference to `cudaFree' kernel.obj:(.text$mn+0x21a): undefined reference to `__security_check_cookie' kernel.obj:(.text$mn+0x3d3): undefined reference to `cudaMallocManaged' kernel.obj:(.text$mn+0x5a5): undefined reference to `cudaGetDeviceProperties' kernel.obj:(.text$mn+0x66e): undefined reference to `__cudaPushCallConfiguration' kernel.obj:(.text$mn+0x6dc): undefined reference to `cudaDeviceSynchronize' kernel.obj:(.text$mn+0x6e9): undefined reference to `cudaFree' kernel.obj:(.text$mn+0x6f6): undefined reference to `cudaFree' kernel.obj:(.text$mn+0x703): undefined reference to `cudaFree' kernel.obj:(.text$mn+0x710): undefined reference to `cudaFree' kernel.obj:(.text$mn+0x71d): undefined reference to `cudaFree' kernel.obj:(.text$mn+0x72a): more undefined references to `cudaFree' follow kernel.obj:(.text$mn+0x787): undefined reference to `cudaMemcpy' kernel.obj:(.text$mn+0x791): undefined reference to `cudaFree' kernel.obj:(.text$mn+0x7a6): undefined reference to `__security_check_cookie' kernel.obj:(.text$mn+0x7f8): undefined reference to `__cudaUnregisterFatBinary' kernel.obj:(.text$mn+0x8bc): undefined reference to `__cudaPopCallConfiguration' kernel.obj:(.text$mn+0xb77): undefined reference to `__cudaPopCallConfiguration' kernel.obj:(.text$mn+0xc7f): undefined reference to `__security_check_cookie' kernel.obj:(.text$mn+0xd0f): undefined reference to `__cudaRegisterFunction' kernel.obj:(.text$mn+0xd63): undefined reference to `__cudaRegisterFunction' kernel.obj:(.text$mn+0xd8c): undefined reference to `__cudaRegisterFatBinary' kernel.obj:(.text$mn+0xdb6): undefined reference to `__cudaRegisterFatBinaryEnd' kernel.obj:(.text$mn+0xe57): undefined reference to `cudaLaunchKernel' kernel.obj:(.text$mn+0x19): undefined reference to `cudaMalloc' kernel.obj:(.xdata+0x14): undefined reference to `__GSHandlerCheck' kernel.obj:(.xdata+0x60): undefined reference to `__GSHandlerCheck' kernel.obj:(.xdata+0x88): undefined reference to `__GSHandlerCheck' collect2.exe: error: ld returned 1 exit status 

    What does this error mean, I compiled all the src code without errors? Do I need to include something, and how?

    I'm sorry if this is a stupid question. I'm new to g++ and dlls.

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

    User survey feedback api for flutter.

    Posted: 19 Apr 2021 03:14 PM PDT

    I am developing a flutter app, that now has the requirement to offer the user to submit user feedback. Currently the app has no requirement for a backend or user auth, so it does not have any dependencies of backend solutions like firebase.

    To implement this though, the best option forward seems to be a firestore db to store the data.

    Does anyone know of any even simpler solutions that might work for flutter?

    For example, there is this product , but it does not support flutter.

    Thanks for any thoughts you can provide!

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

    I don't think I want to be a developer, but I think I need to know it. What should I study?

    Posted: 19 Apr 2021 12:47 PM PDT

    Hi,

    I've been working in sales for 3 years now and absolutely hate it. My background is in engineering and I miss technical work and working with technical people. I don't think I'm smart enough to be in a purely technical role, and as much as I hate sales, I am pretty good at it. I've narrowed down my ideal roles to:

    • Sales / Solutions Engineer
    • Product Manager
    • Technical Account Manager

    Although those roles don't always need a deep technical background, and I have the backing of a B.Eng, Toronto is so competitive that you're going up against people with a lot more technical experience. I'm considering doing a boot camp or do self-learning this summer but not sure on what. I know I want to work for an enterprise company and not a consumer-facing one.

    I have 3 months of doing nothing this summer and deciding on how to spend my summer. Would appreciate advice on where I should look to focus my attention. I have a bit of web dev / Ruby experience and also C++ doing ROS robotics. Open to anything that would help me land one of the above-mentioned jobs. Thanks.

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

    I'd like to hear about everyone's programming journey- to become a webdev, or iOS dev?

    Posted: 19 Apr 2021 11:29 AM PDT

    I have beginner's knowledge in iOS, so naturally I'm leaning towards that. If you're an iOS developer, how hard was it for you to find a job? Same for those who are webdevs? Do you like your job and where you work? What's that like? I'd personally prefer to work remote.

    Also, any bootcamp recommendations? I did Lambda briefly but it was really unorganized and didn't work with my current work schedule. Now that I work from home, I probably could go back to Lambda since I don't have to wake up at 5am anymore.

    *Just looking for advice, general input, and I'd love to hear about everyone's programming journey. Thanks a million!

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

    How complicated would it be to write a bot that creates tiktok accounts and posts from a pool of source videos?

    Posted: 19 Apr 2021 02:11 PM PDT

    Not got very much coding experience but interested in using this for promotional stuff.

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

    [C; Linux; audio - Alsa] How to get current playback device?

    Posted: 19 Apr 2021 09:29 AM PDT

         Previously on this subreddit I asked about how to use C to detecting muting. With someone's help, I managed to do that. (Working code is here.)

         I should like to know now how to detect which output (a.k.a. playback) device is selected - is it the speakers or is it the headphones? This bashism does the job: amixer get Speaker | grep -qm 1 '\[on'. But I wish to do it in C (and in real C, i.e. not by using C to call the amixer program).1 Can anyone help? Thanks.


    1 I suppose that if I did that and/but (re)implemented the grep in C then that would be something - and perhaps I know how do do that already. However: really, though, I want to use the Alsa C apis.

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

    Can someone correct my c code pls

    Posted: 19 Apr 2021 12:53 PM PDT

    i was given an assignment but dont know what were the mistakes in my code

    the assignment was to implement string functions corresponding to strcpy()

    mystrcpy (char str1[] char str2[]) str1 = str2

    #include<stdio.h>

    int main()

    {

    char str1[100] ,str2[100];

    gets(str2);

    mystrcpy(str1,str2);

    puts(str1);

    return 0;

    }

    void mystrcpy(char *s1, char *s2)

    { int i=0;

    while ( *(s2+i) != 0)

    {

    *(s1+i *(s2+i);

    i++;

    }

    *(s1+i *(s2+i); // copying null

    }

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

    My planned features always feel derailed

    Posted: 19 Apr 2021 08:48 AM PDT

    I'm curious how other people feel about their workflow and if it is something you tackled and managed to solve.

    My problem is basically this. Every time I start off with implementing a new feature, I get a business understanding of the problem, make a design of how this should be implemented and start programming afterwards. The problem that I face however is that along the way in implementing, the initial business kind of fades away as I get more focused on the implementation, till I reach a point where what I'm programming feels not too connected to the initial problem. At this point I have to take a step back and reevaluate if what I'm doing is on track or not. This process to me feels pretty time consuming, time where I could be much more productive if I have a clear plan from the beginning, however getting every detail out of the way doesn't seem possible.

    Any experiences/suggestions for how you go about from idea to implementation? What are your guy's workflow?

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

    Data driven SSG

    Posted: 19 Apr 2021 09:02 AM PDT

    Hello

    I'm looking for a simplistic ssg in which I can generate html drop-ins (mostly tables) from data gathered from filesystem and/or database. These tables will then later be embedded on an external webpage. So I need my style and a tiny piece of js embedded into each of the html documents.

    I'm currently achieving this behaviour by individual projects written in ts, which are basically functions spitting out html string. But since the amount of tables grew, it's not maintainable anymore having multiple projects doing essentially the same job.

    It's really exhausting to look of through this ocean of jamstacks/ssgs which mostly are built to generate blogs and similar and offer complexity to the moon.

    Langs possible: JS ( TS prefered ), Python, php ( if no better option )

    Cheers

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

    C# Basics question

    Posted: 19 Apr 2021 09:01 AM PDT

    I've got a list of objects and I need to load data from a txt file. How do I do that, where do I mess up?

    Company.cs

    public class Company

    {

    public Company(){ }

    public Company(string name, string date, string address, decimal income)

    {

    Name = name;

    Date = date;

    Address = address;

    Income = income;

    }

    //Getters and setters

    }

    Companies.cs

    public class Companies : List<Company>

    {

    public Companies(){ }

    List<Company> companies = new List<Company>();

    public bool Load(string Filename)

    {

    string[] lines = File.ReadAllLines(filename);

    string[] data;

    int n = lines.Length;

    int c = 0;

    do{

    data = lines[c].Split("|");

    c++;

    }while (c < n) ;

    // I'm looking for the rest of this part of the code where I can fill up my List with companies.Insert() or whatever is suitable.

    }

    The Load method is called upon the MainForm.cs (I'm working on a Windows Form) which will populate a list box where I only need the name of the company and that's why I need to put each data to the corresponding list-object.

    I hope I make sense, I'll try to answer replies and/or add more info as soon as possible.

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

    Starting

    Posted: 19 Apr 2021 04:06 AM PDT

    Hi I'm 13 and I'm planning to pick up programming. I've look through some vids in yt and had three options so far (maybe you can also add another option) which are java script, phyton, or rust. pls help me pick a good language for a starter who knows nothing about programming.

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

    Backend for data driven SaaS product

    Posted: 19 Apr 2021 03:01 AM PDT

    If I want to build a data processing product for a SaaS startup, what programming language can I use? I have also decided to build my product using MERN stack. So is it possible to use that programming language along with NodeJS in the back-end?

    submitted by /u/Ambitious-Detail-245
    [link] [comments]

    Can someone help me develop this collab notebook?

    Posted: 19 Apr 2021 02:30 AM PDT

    This notebook is made for machine generation of images:

    https://colab.research.google.com/drive/1mBTj5n1Y6PycuomVSqKY-MhZXT2HX09G?usp=sharing

    However, it spits out images in a grid, all together. I was wondering if anyone is able to undo this so that each image is generated separately and downloadble as a zip in its entirety (so image1, image2, image3 etcetc).

    Please save me!

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

    No comments:

    Post a Comment