• Breaking News

    Tuesday, November 28, 2017

    Is there a Domain/Whois API that can retrieve ALL new domains registered in past 24 hours? Ask Programming

    Is there a Domain/Whois API that can retrieve ALL new domains registered in past 24 hours? Ask Programming


    Is there a Domain/Whois API that can retrieve ALL new domains registered in past 24 hours?

    Posted: 28 Nov 2017 03:57 PM PST

    I'm trying to scratch an itch, but need bulk domain data, anyone know of a good api, preferably one that's cheap/free or at least has a free tier to develop w/ where I can get a list of all domains registered in the past X time frame?

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

    Is there any good resource/advice/programmer's guide on webassembly? Building C++ to WASM requires many tools which is another painful process that involves downloading and configuring. First: what is the difference between binaryen and emscripten?

    Posted: 28 Nov 2017 12:42 PM PST

    I feel like I was caught by the hype of it all, but it seems wasm cannot even interact with the DOM right now.

    Maybe a docker image?

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

    [Web] Is it good practice to use CSS Vendor Prefixes or to omit them?

    Posted: 28 Nov 2017 05:46 PM PST

    I understand what vendor prefixes are and what they do, I am really just curious if it is good practice to use them in a project that would actually be made public.

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

    [Question] Why is my counter not set to zero?

    Posted: 28 Nov 2017 07:54 PM PST

    Language: C

    So I need to write a function that fills in an integer array with integers. So I call the function, passing the array I want to fill, and the counter i will use to fill it. I use a for loop, where i = 0, i < counter..... but the output I get makes no sense. Its like the counter overrides i's value and the loop ends.

    Link to main file: https://pastebin.com/jUKypXk3

    Link to function file: https://pastebin.com/LKdUYgXJ

    (Both of these codes are within the same C file)

    Ouput link: https://pastebin.com/TGhGS78r

    Why is the ouput (Game: 4)? Shouldn't the output start at 0 and go to the counter? I am very confused, any help is appreciated.

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

    Just a curiosity question. Why is T typically used as the name of a C# generic variable?

    Posted: 28 Nov 2017 07:40 PM PST

    I'm a junior .net developer and I've had a chance to use a lot of generics lately while trying to consolidate code in our test harnesses. I'm just curious why T is the go to name of a generic variable when declaring generic methods? I haven't found an answer for this and there very well may not be one, but it's just something that's a bit of a head scratcher for me. Thanks in advance!

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

    Can we implement our own order of scheduling by using sleep()?

    Posted: 28 Nov 2017 08:00 AM PST

    So, if I use sleep to force a high priority process to sleep(), can I sort of override the scheduling system used by my process (let's say it a priority-based scheduler) by then gettign all the lower-priority processes executed first?

    I guess my main question is: Does this delay mechanism give us a guarantee that processes are scheduled in a certain order?

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

    Modern hardware word size is 64 or 32 bits; why do we still use the "8 bit byte"?

    Posted: 28 Nov 2017 06:31 PM PST

    Any time you refer to a piece of data, you always get back at least 64 or 32 bytes, depending on the architecture. Yet the smallest addressable unit remains a byte, exactly 8 bits.

    • If we want optimal use of the bus, we should be addressing data by word size (64 or 32 bits), not 8 bits. Sometimes CPU caching takes care of this for us, but not always.
    • If we want optimal use of space, we should be addressing individual bits. We can use tricks like bitflags, but it's extra complexity.
    • Most modern languages have native UTF-8 support, which means we aren't guaranteed that a char primitive is exactly 8 bits either.

    So in today's architecture and software what remains special about the 8-bit byte? Why are we still clinging to it as the smallest addressable unit of data, when, depending on the use case, either a single bit, or a word-size set of bits (64/32 bits) is more natural as the smallest addressable unit?

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

    Discord Game Detection and Process Hooking

    Posted: 28 Nov 2017 06:11 PM PST

    I was wondering yesterday how it is discord is able to detect when you're running a game and enable an overlay. I figured it was some sort of process hook and looked all over for the exact way they do it code wise but couldn't find any resources. (though I may have been looking in the wrong places)

    If anyone knows how discord specifically does it I'd love to hear, but I'm also generally interested in process hooking overall and how that could be implemented in a c type language and what it could be used for besides overlays.

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

    What's the difference between lw (load word) and la (load address) in MIPS?

    Posted: 28 Nov 2017 07:31 AM PST

    Why are assignement operation expressions?

    Posted: 28 Nov 2017 11:01 AM PST

    Hello

    I'm currently writing a parser for a custom made grammar. For now I use this :

    <var_assign> = <id> "=" <expr> <eoi> 

    (Where eoi is end of instruction character, here, a semicolon). But I've noticed that many language use "expression statements" and treat = as a normal operator. Is it better? Why ? What does this allow? Can I match assignement operator like every other operator, with left to right parsing?

    Thanks !

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

    Collaborative Project with Python and C++

    Posted: 28 Nov 2017 04:51 PM PST

    My friend and I are amateur-level programmers at best. He has taken a liking to C++ recently, and I have been off and on with Python for a couple of years.

    Both of us want to make a game together, but I can't help but think there will be difficulties creating a game with two different languages.

    What are some ways that we can approach this?

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

    [JAVA] Programming Homework. My Array isn't printing?

    Posted: 28 Nov 2017 10:26 AM PST

    The program is supposed to remove duplicates. My result keeps being this. It is not returning an array back and I'm not sure why.

    How Many Numbers Do You Want To Enter?

    4

    Enter 4 Numbers.

    4

    4

    4

    3

    Your Non-Duplicated List :

    That's it... Help?

    public static void main(String[] args) { Scanner input = new Scanner(System.in); int amt; System.out.println("How Many Numbers Do You Want To Enter?"); amt = input.nextInt(); int[] one = new int[amt]; int[] done = new int[amt]; System.out.println("Enter " + amt + " Numbers."); for (int x = 0; x < amt; x++) { one[x] = input.nextInt(); }//Loop (Entering Array) System.out.println(" "); System.out.println("Your Non-Duplicated List :"); done = removeDupe(one); display(done); }//Main public static int[] removeDupe(int[] one) { int[] two = new int[one.length]; int twoInd = 0; //Size Array New for (int x = 0; x < one.length; x++) { //Loop System To Check Array Slots boolean dupe = false; //Reset Boolean Each Loop for (int z = 0; z < one.length; z++) { //Loop To See If Dupe Or Not if (two[z] == one[x]) { //If Temporary Array has any value = to and point in the array dupe = true;}//If //Set Duplicate To True - Doesn't Do Bottom If }//InnerLoop if(!dupe) { //If Above if doesnt pass/ not a duplicate two[twoInd+1] = one[x]; //Temporary Array @ new location = first array at location of not dupe }//If }//OuterLoop int[] three = new int[twoInd]; for (int c = 0; c < twoInd; c++) { three[c] = two[c]; }//Convert Array return three; }//removeDupe public static void display(int[] array) { for (int a = 0; a < array.length; a++) { System.out.println(array[a]); }//Loop Print }//Display 
    submitted by /u/Rareage
    [link] [comments]

    Need help selecting a programing language.

    Posted: 28 Nov 2017 03:37 PM PST

    As the Title states. I'm in need of help to select a programming language to make a small app. I've created a draft of what i'd like to make, posted it on imgur. https://imgur.com/gallery/ZKtCP

    Propose. App will see how is logged into the computer. User selects something in the drop down box, write something in the textbox and press the send button. 2nd tab would just have options like smtp settings, and email address to send too.

    Edit: App is going to be using internal only, and i'd like to be stand-alone. Web-base is not an option atm, don't have a place to host it.

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

    Using a node.js and nodemon with mySql

    Posted: 28 Nov 2017 03:00 PM PST

    I am working on a test project to help my understand the concept behind using mysql and node.js, I used express to open a server. I created the database, and it keeps returning this error:-----> [nodemon] starting node app.js server started on port 3000 /Users/Sochima/Desktop/Victor Programming/ndmysql/app.js:15 throw err; ^

    Error: connect ECONNREFUSED 127.0.0.1:3306 at Object.exports._errnoException (util.js:1020:11) at exports._exceptionWithHostPort (util.js:1043:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14) -------------------- at Protocol._enqueue (/Users/Sochima/Desktop/Victor Programming/ndmysql/node_modules/mysql/lib/protocol/Protocol.js:145:48) at Protocol.handshake (/Users/Sochima/Desktop/Victor Programming/ndmysql/node_modules/mysql/lib/protocol/Protocol.js:52:23) at Connection.connect (/Users/Sochima/Desktop/Victor Programming/ndmysql/node_modules/mysql/lib/Connection.js:130:18) at Object.<anonymous> (/Users/Sochima/Desktop/Victor Programming/ndmysql/app.js:13:4) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) [nodemon] app crashed - waiting for file changes before starting...

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

    Need help to transfer a Asp.net file over the internet

    Posted: 28 Nov 2017 11:02 AM PST

    I have a asp.net file on visual studio 2015 that i need to send over the internet for submission but i have no idea how to send it and have it functioning when opened or unzipped or whatever i need some help

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

    Outside of merely knowing the right languages, what are the essential "front-end skills"?

    Posted: 28 Nov 2017 07:39 AM PST

    I'm unlikely to ever need to touch front-end stuff professionally, but I'm personally interested. Beyond just knowing the appropriate front-end languages, what are the things you gotta know?

    After all, if it were purely a matter of learning the appropriate language, there wouldn't be a distinction between front and back-end.

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

    Subtracting until element hits 0, then go on to the next one

    Posted: 28 Nov 2017 09:46 AM PST

    Hey!

    So i want my programm to do the following. You have a number, let's say N=122. Next, you have 3 different values, imagine it like in an array.

    F[1]=100

    F[2]=200

    F[3]=300

    Now it should subtract 100 by 122, however after it hits 0, 122 should be 22 and F[1] should be 0. Then it should jump to the next position F[2]= 200. Now it should do 200 - 22.

    Now F[2] should be 178 and N=0. Now the program should stop.

    I have no Idea how to do it, since everything I do seems to result in a crash.

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

    I want to execute another C program using my C program in Linux

    Posted: 28 Nov 2017 09:44 AM PST

    So, I have to use execlp in one C program to execute another C program (which is in the same project folder). However, whenevr I run eclipse, only the C program I want to run using another program is run directly by the compiler. How do I tell the compiler to run the other C program instead which, in turn, will execute the other C program.

    Plus, I have heard about creating separate projects and then running one project and have it execute the C program which is in another project. I tried to do that but I can't figure out how to give argument in execlp that tells it where my other C program is located in. For reference, my other C program is in "/workspace/11102017/Debug/11102017"

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

    Need help with Secant/Bisection method question

    Posted: 28 Nov 2017 12:37 PM PST

    So I have been given a task to find the root of a function f(x) = x3 -2x-5 using the Secant and Bisection method, and return the value of the root as well as the number of iterations to find it, with given accuracy 10-12. The initial values given are 10 and -10

    I attempted to write the code for it:

    x0 = -10 x1 = 10 def f(x,x0,x1, TOL=10**-12, NMAX=10000): n = 1 return x**3-2*x-5 while n<=NMAX: x2 = x1 - f(x1)*((x1-x0)/f(x1)-f(x0)) print(x2, x1, x0) if abs(x2-x1) < TOL: return x2 print(x2) else: x0 = x1 x1 = x2 print(x2) 

    When ran, no values are printed, so I have no idea what's going wrong or if this is the correct way to calculate the root. I would appreciate it greatly if someone could tell me where I'm going wrong in calculating the root.

    Many Thanks

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

    Multiple Workspaces Integration

    Posted: 28 Nov 2017 07:34 AM PST

    I am currently making an IOS app(swift) and I have split the different functions of the App into several Xcode projects.

    I know I can group all these projects in one workspace.

    But is it possible to group multiple workspaces in a single workspace?

    I like to keep my working files smaller because then I can construct the prototype faster and have less l.a.g.g.

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

    Help with FoxPro Functions

    Posted: 28 Nov 2017 07:17 AM PST

    We were given a task in school about using the update function in Foxpro and there's a problem I can't quite get.

    The problem is : update Column Days by deducting Dep minus Arrival. there are 2 conditions, one condition will use the empty function.

    how do I use the empty function to do that?

    My code lines is stuck at this:

    update guest set days=

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

    Please help me with my C assignment, willing to pay

    Posted: 28 Nov 2017 04:55 PM PST

    message me please..I basically need someone to go through my assignment with me.

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

    What's your favorite programming language?

    Posted: 28 Nov 2017 12:55 AM PST

    How do you obtain the offset when given the cache memory address, number of bits in the adress,tag,offset and set?

    Posted: 28 Nov 2017 10:34 AM PST

    (General/Arduino) Ideas for presenting data?

    Posted: 28 Nov 2017 09:35 AM PST

    I have a project where we are using an arduino with various sensors to record:

    Humidity (Percentage, %) Temperature (Celsius, C) Light intensity (unitless, put onto a scale of our choice)

    My question is what are some unique ways of presenting this data? We get marks for originality and showing a good knowledge of coding. (e.g. some people are creating updating graphs, as do I intend to)

    Coded in Arduino.

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

    No comments:

    Post a Comment