• Breaking News

    Thursday, April 5, 2018

    Do websites with users who log in / register require a server to store all of the data? If not, how is this possible? Ask Programming

    Do websites with users who log in / register require a server to store all of the data? If not, how is this possible? Ask Programming


    Do websites with users who log in / register require a server to store all of the data? If not, how is this possible?

    Posted: 05 Apr 2018 08:24 PM PDT

    Returning to coding after a short break

    Posted: 05 Apr 2018 07:18 AM PDT

    I finished school and got my degree in comp sci. I got a job as an application engineer but not a software app engineer. I work more with hardware, OS, and BIOS problems.

    I am starting to get back to coding and I am wondering what projects can I make from scratch that will dust off my skills and impress potential companies.

    Should I learn a new language? I currently know C and Java and some python. I see that there are wide array of languages that different jobs want you to know, so I don't know what language to focus on

    Sorry if this is in the wrong sub

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

    How do I start a career working on algorithms rather than UI?

    Posted: 05 Apr 2018 10:20 AM PDT

    I went through college under computer science rather than software development and now that I'm graduated I can't seem to find jobs that use the skills I learned in college. Every programming job I can find is about building already designed UIs. Unfortunately, all my training is in understanding and developing algorithms that work behind the scenes not building forward facing UI. And they require different thought processes. I know I can think algorithmically and like to use problem solving skills to actually have the computer accomplish something. I never got any UI building experience in my college track and frankly it feels like I'm mashing blocks together until they decide to actually fit the formatting I'm attempting without any planning ahead and logic to what you get out of what you put in.

    TL;DR:

    I'm wondering if there are entry level jobs that work with algorithms instead of UI?

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

    C++ Summation Question

    Posted: 05 Apr 2018 07:31 PM PDT

    How would one go about calculating a summation when the index increasing is a part of a fraction. For example, my current loop is set up as... (cout statements are structured as such because of how the assignment is set up)

     int n = 0; int sum = 0; int counter = 1; cout << "Enter an unsigned integer > 0 : 10000000 " << endl; cin >> n; cout << endl; cout << "n value : " << n << endl; cout << endl; cout << "Forward F(" << n << ") Series : " << endl; cout << "==============================" << endl; cout << endl; while (counter <= n) { sum = sum + counter; counter++; } 

    n being an input from the user, of course, this just goes up by one each loop. Rather than going up by one I need it to go up by a fraction. 1 over counter to be specific, with the counter int increasing until it reaches n. How would I go about doing that? I apologize if this is horribly phrased I'm still very new to programming, If you need me to clarify anything please don't hesitate to ask. Thank you in advance!

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

    How to change variables of a .exe file?

    Posted: 05 Apr 2018 06:52 PM PDT

    I want my program in Visual C# to allow the user to generate a portable .exe file to be run on another user's computer, with the portabe .exe receiving the values the first user inserted. I don`t want to use a configuration file or any other separate file to store the input values to be then read because I want the .exe to be a single file. I have the main and the second program (future portable executable) as different projects on the same solution. Is there a way to modify values of the portable .exe or does a new program needs to be compiled on the fly? How would I go about this?

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

    REST MPEG dash server gives java IO error: An existing connection was forcibly closed by remote host

    Posted: 05 Apr 2018 04:14 PM PDT

    I am trying to create a REST MPEG dash server and stream mpeg dash video using kodi through a .strm file. When the server is requested for the video segments, it gives an error "An existing connection was forcibly closed by the remote host". Both localhost and kodi runs on port 8080. Is it a problem with my firewall or should I change the port number or is there any other solution to this problem? Thanks !

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

    I need help with Regex

    Posted: 05 Apr 2018 08:19 AM PDT

    I would like to find all the "11R**" numbers in a cell and move them to a new cell or just remove all surrounding text. All I have tried so far is matching and counting the "11R**" numbers. I have zero programming knowledge so forgive my ignorance if I never worded this question right.

    Cells currently look like this give or take. "all in one cell" CON 5 PT LOT 15 RP 11R7080;PART 1 RP 11R7138 PART 1

    I would like this to be the results: "in one cell" 11R7080 11R7138

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

    C++ Software Development Questions

    Posted: 05 Apr 2018 03:31 PM PDT

    Hello everyone! I'm a freshman in college for computer science. I've taken 2 classes on c++, and am learning about classes and objects right now.

    I was wondering though, since all we've done so far is console programs, how would I go about developing actual software with c++? I understand console applications are very helpful in learning the language, but I want to know how I can go further and make software not in the console.

    Also on a pretty unrelated note, is it possible to develop a proximity based software in c++? By proximity based I mean similar to Pokémon Go, at least the GPS part.

    Thanks!!

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

    API Contract Testing and Request Playback

    Posted: 05 Apr 2018 03:10 PM PDT

    Hey folks, we have an interesting and possibly not a very unique challenge within the enterprise. Our service depends on an API that is being build by another (influential but incompetent team). The API they are building is on top of Apigee and Snaplogic. We need a way to verify both our code as well as their code with some form of API contract testing. Our first choice were PACT.io tests but in order for this to work they would need to run their provider tests (which they do not have) against our PACT files. So this isn't really an option. An ideal solution would record the requests our tests are making into a file and then have those requests replayed at some interval. Changing our mock tests into integration tests. Does anyone know of a solution to this problem? Something easy to use and maintain is ideal.

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

    [C++] Override a function in a header while still enabling access to its called functions?

    Posted: 05 Apr 2018 02:02 PM PDT

    I have a program (main.cpp) with a header file that links to functions associated with x265's API. The API has a complex set of functions, including an initializer for setting up parameters in the main program, but I need to modify a function (encode) for acceleration. However, I would like to avoid having to re-compile the entire x265. Is there a way for me to tweak the existing header file for main so I can override the API's version of the encode function with my own encode function, while still able to call the functions originally inside said encode function?

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

    NewRelic (NRQL) question - want random results

    Posted: 05 Apr 2018 10:47 AM PDT

    I have a datasource with a few billion records each with IDs. I want a random sample of IDs. Any help in getting this out of NRQL under NewRelic?

    Pseudo-Code in SQL:

    Select SampleID from TABLE tablesample(10000)

    alternatively:
    SELECT TOP 10000 SampleID FROM TABLE ORDER BY newid();

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

    [Advice] Truly Understanding Algorithms

    Posted: 05 Apr 2018 10:24 AM PDT

    Currently, I am taking a course in algorithms. The professor often goes through a bunch of algorithms like "Euclid's Algorithm" and "Warshall's Transitive Closure Algorithm" and "Dijkstra's Shortest Path Algorithm" and "Interpolation Search". My question is how do I learn to truly understand these algorithms, how they work, why certain operations were chosen instead of others and why in that particular order instead of just memorizing steps?

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

    Problem with Python / Raspberry Pi

    Posted: 05 Apr 2018 09:38 AM PDT

    Im trying to make a keyboard with a raspberry pi like this but i get this error which i dont know how to solve

    Traceback (most recent call last): File "/home/pi/Desktop/koden1.py", line 72, in <module> key = keypress() File "/home/pi/Desktop/koden1.py", line 44, in keypress key = pg.key.name(event.key) AttributeError: event member not defined 

    Source code: https://github.com/anttus/Raspberry-MidiKeyboard/blob/master/midikeyboard.py

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

    Making indentation automatic in Jsfiddle?

    Posted: 05 Apr 2018 09:25 AM PDT

    As the title asks I would like to know if it's possible to make the indentation feature automatic in Jsfiddle? I don't want to have to press TAB everytime I want an indentation to occur.. Thanks!

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

    Am I able to work on a C# project (Visual Studio project) on a computer running Ubuntu?

    Posted: 05 Apr 2018 05:35 AM PDT

    I am looking for jobs and a lot of them are looking for C# developers. My development laptop is running Ubuntu only, so is there any way that I could work on a Visual Studio project within Ubuntu, seeing as Visual Studio cannot be installed? Or is the only way to work on it using RDP to my work computer, or just using a Windows machine?

    I know that MonoDevelop is the best way to write .NET software in Ubuntu, but is that capable of being able to open and run Visual Studio .sln files?

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

    Scraping all promotions

    Posted: 05 Apr 2018 08:55 AM PDT

    hi all. is there any idea or procedure to scrap all promotions/deals that is going on?

    example of website will be msiapromos.com.

    how did they manage to scrap all the promotions available for that particular country?

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

    Is there a way to run my OpenCV/Numpy Python code with GPUs?

    Posted: 05 Apr 2018 08:23 AM PDT

    Sorry if this question makes no sense. I am still trying to understand GPUs. But my understanding is that it is similar to parallel processing but uses graphics processing units instead of CPUs.

    So I have image processing code that I've written with OpenCV/Numpy/SciPy libraries. It works great but I believe it could be faster. Is there an easy way to utilize GPU processing? And how do I know if my computer will be able to use such processing? Are there computer specifications I should be looking at?

    Thanks. Sorry if any of this is obvious or whatnot. I am not a programmer by trade.

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

    Can someone explain the use case for the actor model?

    Posted: 04 Apr 2018 11:17 PM PDT

    The 'pure' actor model has only one way message passing between actors. There is no 'context', no 'message id', no way to wait for a response.

    So it seems to me that the only uses are one way information flow, or side-effects-only, and I struggle to see thw kind of software that needs this structure.

    I know akka and pony added futures/promises, but at that point why even use an actor?

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

    Cannot play video in kodi using .strm file with REST sever URL to stream mpd file

    Posted: 05 Apr 2018 07:56 AM PDT

    I am trying to create a REST server to stream videos in MPEG dash. On receiving a request from a user the server returns a .mpd file. I am able to play the video using kodi when I keep the segments in /inetpub/wwwroot and and start a web server in IIS windows and use the URL of the server in a .strm file. When I do the same and give the URL of my REST sever it's not working. I am not sure where I should keep my mpd file and the segments when I am using the REST server. Do I need to change the Base URL in the mpd file?

    My rest server is in my C: drive. My mpd file and segments are in D:\MPD\

    The URL from which I can get my mpd file from my rest server is http:\localhost:8080\RestJava\Server\parameter?id=bunny

    The base URL in my mpd files for different sections are in this format <BaseURL>video_360x640_500k_init.mp4<\BaseURL>

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

    SWI Prolog program issue to argue with user?

    Posted: 05 Apr 2018 07:50 AM PDT

    I am trying to write a program to argue with yourself. The program should take statements that are typed in as a list and change the pronouns and negate them. For instance, you should change you to I, are should change to am not, and so on. Here is a possible sample session:

    ?- argue([you,are,a,stupid,computer],X).

    X=[i,am,not,a,stupid,computer]

    Yes

    ?- argue([you,are],Y).

    Y=[i,am,not]

    Yes

    ?-argue([are],Z).

    Z=[am,not]

    Yes

    ?-


    My current program is having some slight issues and I am not sure what is wrong with it. See my program below. Any help is greatly appreciated!

    % argue prolog program

    argue([],[]).

    argue(X,Y):-

    member('i',X), replace(X,'i','you',Y); member('am',X), replace(X,'you','i',Y); member('am',X), replace(X,'am','arent',Y); member('are',X), replace(X,'are','am not',Y); member('is',X), replace(X,'is','isnt',Y); member('isnt',X), replace(X,'isnt','is',Y); member('your',X), replace(X,'your','my',Y); member('my',X), replace(X,'my','your',Y); member('does',X), replace(X,'does','doesnt',Y); member('doesnt',X), replace(X,'doesnt','does',Y). 

    % Helper Function

    replace([],,,[]).

    replace([X|Y],X,A,[A|Z]):-!,

    replace(Y,X,A,Z). 

    replace([X|Y],A,B,[X|Z]):-!,

    replace(Y,A,B,Z). 
    submitted by /u/FuckHitlersDog
    [link] [comments]

    Prolog Permutations Function Issue?

    Posted: 05 Apr 2018 07:40 AM PDT

    Hi, I am trying to write a function, called "permutations" in prolog, that takes a list as input and generates a list containing all possible permutations of the list elements. Here is a sample application:

    ?- permutations([1,2,3],X).

    X=[[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]

    Yes

    ?-

    Currently my program is working, but I need it to perform with the given function call listed above "permutations([1,2,3],X)." .

    Here is my current program

    % Question 4 permutations Almost Correct

    permutations([], []).

    permutations([X|Rst], V) :-

    permutations(Rst, V1),

    select(X, V, V1).

    findall(A, permutations([1, 2, 3], A), R).

    Any help would be greatly appreciated! Thanks

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

    Is there a way to give a player the power of intelligence?

    Posted: 05 Apr 2018 07:35 AM PDT

    I'm working on a project in a multiplayer game that aims to give players various superpowers of their choosing. Most things have proven simple enough (flying, strength, etc.), but neither I nor anyone I'm working with has yet been able to figure out a way to simulate superintelligence. Has anyone done this before?

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

    Swift vs Python for someone who is interested in getting into the field.

    Posted: 05 Apr 2018 07:34 AM PDT

    Hetzner cloud API

    Posted: 05 Apr 2018 05:25 AM PDT

    Hi fellow programmers,

    I've been working with a lot of different API's and also created a few myself. Lately I've been working with the Hetzner Cloud API and it amazes me how good and fast it is.

    I tried asking them what they used to program it and what framework, although they respond with "That's a company secret".

    Is there any of you that have some information regarding this?

    Their API can be found at: https://api.hetzner.cloud/v1 Documentation at: https://docs.hetzner.cloud/

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

    No comments:

    Post a Comment