• Breaking News

    Tuesday, December 26, 2017

    Are operations < and > slower than != ? Ask Programming

    Are operations < and > slower than != ? Ask Programming


    Are operations < and > slower than != ?

    Posted: 26 Dec 2017 03:44 PM PST

    How does Twitch stream works?

    Posted: 26 Dec 2017 09:11 PM PST

    There is any article on this subject? Like which languages they use, how they encode the video.. etc.

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

    Can you compile to microcode?

    Posted: 26 Dec 2017 05:02 PM PST

    I'm sure this has been asked before somewhere.

    Can you compile to microcode? If you can/could and were targeting a specific processor, would it result in significant performance improvement?

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

    [java] I changed System.out 's value

    Posted: 26 Dec 2017 01:34 PM PST

    there is no output showing after I close the ps_1 PirntStream, what is there in the System.in after I close it, plz see the comment ->I don't know, I could not highlight comments bw code

     import java.io.FileOutputStream; // low level stream import java.io.PrintStream ; // high level stream import java.io.IOException; public class Change_out_err{ public static void main(String[] args) throws IOException{ FileOutputStream fout_1 = new FileOutputStream("file_1.txt"); PrintStream ps_1 = new PrintStream(fout_1); System.out.println("printed on console via ps_1"); System.out.println(System.in ); System.setOut(ps_1); // now out is ps_1 System.out.println(System.in ); System.out.println("this will go to file via ps_1"); System.out.println(System.in ); ps_1.close(); // it will also close ->the fout_1 System.out.println("-->" + System.in + "<--"); >//there is no output of that System.out.println(System.in); >//whats in System.in, as I have closed the ps_1 FileOutputStream fout_2 = new FileOutputStream("file_2.txt"); PrintStream ps_2 = new PrintStream(fout_2); System.out.println("printed on console via ps_2"); >// this is not showing on console too System.setOut(ps_2); // now out is ps_2 System.out.println("this will go to file via ps_2"); ps_2.close(); // now all that streams are closed so again got the control System.out.println("check out the files "); } } 
    submitted by /u/prashantkr314
    [link] [comments]

    How do you connect two computers over different networks in Java?

    Posted: 26 Dec 2017 05:13 PM PST

    I am using sockets and server sockets to create a tcp connection between a server and client, but so far I can only get the client to connect if it is on the same network as the server. How can I connect client to server if client is on a different network?

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

    Visual studio + Unity dev highlight problem

    Posted: 26 Dec 2017 12:49 PM PST

    So i m coding in unity and for some reason highlight and autocomplete from unity library stop working it works on a another script but it doesn't on others. It's in C#

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

    Categorize job titles?

    Posted: 26 Dec 2017 04:06 PM PST

    Does anyone know of a good api I can use to categorize job titles? For example, if I wanted to categorize software development -> computer science, how would I go about doing that? Thanks

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

    Best way to draw pixels on screen in C++

    Posted: 26 Dec 2017 08:13 AM PST

    I'm currently studying a course on Computer Graphics and I need to do a project for it. How can I plot pixels on the screen?

    I can only use external libraries to plot pixels. I have to implement line drawing, circle drawing, etc. myself. I will need to create 3d objects using only point plotting from external libraries.

    Can anyone suggest what I should use. And an example code in said library to plot a point would be appreciated.

    Thanks in advance.

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

    Recommended 24" monitor under 300

    Posted: 26 Dec 2017 01:33 PM PST

    Hey guys!

    I'm looking at buying a budget 24 inch montior and was wondering what people recommend or are using at the moment

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

    Node/Express Image Upload with User Accounts

    Posted: 26 Dec 2017 04:33 AM PST

    I am trying to build something similar to instagram. I already have an express app built with passport authentication, but now I need to figure out how to allow each user to upload images.

    Also, I need to be able to associate these uploaded images to the user. Each user is only allowed to upload up to 7 images. Also, when the user clicks on their profile, it will show only the images that they have uploaded.

    Could anyone help me with understanding how this might work?

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

    What does the factory idiom at the beginning of three.js do?

    Posted: 26 Dec 2017 08:17 AM PST

    I've seen this idiom, or things like it, at the top of a couple javascript libraries. What does it do? Should I be using it for my libraries too?

    (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.THREE = global.THREE || {}))); }(this, (function (exports) { 'use strict'; 
    submitted by /u/7Geordi
    [link] [comments]

    Got an offer. Smoke lots of weed. will I be drug tested?

    Posted: 26 Dec 2017 10:59 AM PST

    engineer at a peta-scale computer at a big city university

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

    What laravel project should i create for my resume?

    Posted: 26 Dec 2017 06:14 AM PST

    My idea is an ebay clone(a bit simpler version of it).

    Any other idea? I know it doesn't matter that much, but thought i do ask it anyway. Is there any specific that people like to see from a junior web developer?

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

    My code for reversing the link list needs debugging.

    Posted: 26 Dec 2017 03:14 AM PST

    void sLinkList::reverse(){ node* ptr1; node* ptr2; node* crawl; ptr1 = head; ptr2 = head -> next; crawl = ptr2; while(ptr1 -> next){ crawl = ptr2 -> next; ptr2 -> next = ptr1; ptr1 = ptr2; ptr2 = crawl; } head -> next = NULL; head = ptr1; } 

    If some can lend a helping hand I would be very thankful.

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

    Need help with a mongodb issue.

    Posted: 26 Dec 2017 02:25 AM PST

    https://ide.c9.io/learnwithcolt/webdevbootcamp

    Go to v11 (deployed) and download to your machine to run (please). To get it running, just do npm install in main directory and you also might want to change the app.listen in the app.js file to something like this: app.listen("3000", .....

    Then you can go to localhost:3000 in browser. Also, mongodb will need to be setup on the computer.

    You might not even need to run this program to find the problem.

    For some reason when I log in, add a image, and a comment, the comment never shows up on the "more info" show page. Also, looking into the console, it is showing that there is no comment in the campground model for some reason. It says comment was successfully added, so I am confused.

    Strangley enough, this works just fine on cloud9 ide but not my actual machine running ubuntu.

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

    Checking if a folder is a git repository using libgit2 in C

    Posted: 25 Dec 2017 11:23 PM PST

    Hey all, I'm trying to use libgit2 in a small app I'm writing in C and have hit a small roadblock.

    I want to check if current folder is a git repo or not which I'm trying to accomplish it by trying to open a git repo in the current working directory and if it fails I assume the folder is not a git repo:

    git_repository *repo; int error = git_repository_open(&repo,path); 

    If the variable error is not equal to zero then I assume that there is no git repo in path.

    The problem I'm facing is that if I'm in a subfolder within the repo then the above code fails.

    Is there a way to check for a git repo from within a subfolder in a repo?

    Thanks in advance.

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

    No comments:

    Post a Comment