• Breaking News

    Saturday, January 6, 2018

    (C) Is there a difference between declaring multiple variables by 'int x,y;' vs 'int x; int y;'? Ask Programming

    (C) Is there a difference between declaring multiple variables by 'int x,y;' vs 'int x; int y;'? Ask Programming


    (C) Is there a difference between declaring multiple variables by 'int x,y;' vs 'int x; int y;'?

    Posted: 06 Jan 2018 07:45 PM PST

    So for example like this,

     int x,y,z,a,b,c,d,e,f,g; 

    and

     int x; int y; int z; .....so on 
    submitted by /u/SimplyStranger
    [link] [comments]

    C question: Simple Scanf function, yet it will not store in the variable "r". What's wrong?

    Posted: 06 Jan 2018 07:03 PM PST

    https://pastebin.com/2NMrGGCT

    The output from the terminal is always 0.0000, despite making numerous attempts to find an error.

    Thanks in advance.

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

    How to bold user input?

    Posted: 06 Jan 2018 07:50 PM PST

    Doing a project for school, mainly done but doing small details that prof has asked for. Unsure of how to bold the user input...

    System.out.print("\n\tWhat is the maximum budget for these gifts? ");

    double maxBudget = input.nextDouble();

    So in the console when user types like 8 or something, it's suppose to be bold. THanks for the help!

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

    WCF Service Library bad request error 400 .NET

    Posted: 06 Jan 2018 06:47 PM PST

    So im creating an API to acess a SQL for a school project, iv made some simple Post and Delete methods and when i run the API and insert some values manualy i can see that it does work and it affects my DB, however when i try to use the URI on a client application in a WPF project or in a software like postman it gives me a bad request error 400

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

    Weird Set-Cookie response

    Posted: 06 Jan 2018 05:12 PM PST

    I don't know where the question fits best so I'm posting it here. I've encountered the following header:

    Set-Cookie: sid=<xxxxxxxxxxxxxxxxxxxxx>; Path=/; secure; HttpOnlyTS01303896=<xxxxxxxxxxxxxxx>; Path=/; Domain=.some.domain.somewhere

    The <x>es are obviously placeholders. The question is how the hell does the browser parse that HttpOnly part correctly? Can someone cite a reference? And why would you do something like this.

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

    e-prescription filing for medical software?

    Posted: 06 Jan 2018 03:00 PM PST

    Hi!

    I'm developing a custom medical software that needs to provide the ability to send medical prescriptions directly to pharmacies.

    Can anyone point me to resources or tell me how this is done?

    Thanks!

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

    Step-by-step, what does a font engine like Freetype do?

    Posted: 06 Jan 2018 01:09 AM PST

    How to create Icon in Windows Notification Area?

    Posted: 06 Jan 2018 12:51 PM PST

    Hello there, I'm new to programming, and I want to create a little tool that has an Icon in the Windows Notification Area. Right now I'm using Python, but I'm willing to pick up something else if needed. What do I need to achieve this?

    PS: Also, a little further down the line, I would like to make this available for MacOs as well. Anything on this?

    Hope you guys can help me. I don't want to start coding thefunctionality in python and then realize I can't make it work with a little icon :D

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

    Read from a txt file, have each line as scrolling text in a video.

    Posted: 06 Jan 2018 04:09 AM PST

    Hello,

    What would be the best way to accomplish this task? I have a big text file, with over 200k lines. I would like to make a video with scrolling text, where each line from the text file would scroll.

    What would be the best way to accomplish this? Thank you.

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

    Installing llvm-hs using Stack for Windows

    Posted: 06 Jan 2018 06:39 AM PST

    I'm trying to install llvm-hs using Stack for Windows. To do so I'm using the command:

    stack install llvm-hs 

    This is failing and producing this error:

    No packages found in snapshot which provide a "llvm-config" executable, which is a build-tool dependency of "llvm-hs" llvm-hs-5.1.2: configure -- While building custom Setup.hs for package llvm-hs-5.1.2 using: C:\Users\Michael\AppData\Local\Temp\stack16584\llvm-hs-5.1.2\.stack-work\dist\5c8418a7\setup\setup --builddir=.stack-work\dist\5c8418a7 configure --with-ghc=C:\Users\Michael\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\bin\ghc.EXE --with-ghc-pkg=C:\Users\Michael\AppData\Local\Programs\stack\x86_64-windows\ghc-8.2.2\bin\ghc-pkg.EXE --user --package-db=clear --package-db=global --package-db=C:\sr\snapshots\0931f775\pkgdb --libdir=C:\sr\snapshots\0931f775\lib --bindir=C:\sr\snapshots\0931f775\bin --datadir=C:\sr\snapshots\0931f775\share --libexecdir=C:\sr\snapshots\0931f775\libexec --sysconfdir=C:\sr\snapshots\0931f775\etc --docdir=C:\sr\snapshots\0931f775\doc\llvm-hs-5.1.2 --htmldir=C:\sr\snapshots\0931f775\doc\llvm-hs-5.1.2 --haddockdir=C:\sr\snapshots\0931f775\doc\llvm-hs-5.1.2 --dependency=Cabal=Cabal-2.0.1.1-Fs1ITBnI1cpHdS6gABE76T --dependency=array=array-0.5.2.0 --dependency=attoparsec=attoparsec-0.13.2.0-Fsg4QAkSjfewS85obWjil --dependency=base=base-4.10.1.0 --dependency=bytestring=bytestring-0.10.8.2 --dependency=containers=containers-0.5.10.2 --dependency=exceptions=exceptions-0.8.3-IMG8z9bQ0kKKt0LCvLfr9v --dependency=llvm-hs-pure=llvm-hs-pure-5.1.1-DkERynz0Py7IromPXcXx1h --dependency=mtl=mtl-2.2.1-DscMMmDQUE6GBfOSl4qMUH --dependency=template-haskell=template-haskell-2.12.0.0 --dependency=transformers=transformers-0.5.2.0 --dependency=utf8-string=utf8-string-1.0.1.1-7sQ7eR5H5ED7poickls5aO --extra-include-dirs=C:\Users\Michael\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\include --extra-lib-dirs=C:\Users\Michael\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\bin --extra-lib-dirs=C:\Users\Michael\AppData\Local\Programs\stack\x86_64-windows\msys2-20150512\mingw64\lib Process exited with code: ExitFailure 1 Logs have been written to: C:\Users\Michael\Desktop\haskell-project\.stack-work\logs\llvm-hs-5.1.2.log [1 of 2] Compiling Main ( C:\Users\Michael\AppData\Local\Temp\stack16584\llvm-hs-5.1.2\Setup.hs, C:\Users\Michael\AppData\Local\Temp\stack16584\llvm-hs-5.1.2\.stack-work\dist\5c8418a7\setup\Main.o ) [2 of 2] Compiling StackSetupShim ( C:\sr\setup-exe-src\setup-shim-Z6RU0evB.hs, C:\Users\Michael\AppData\Local\Temp\stack16584\llvm-hs-5.1.2\.stack-work\dist\5c8418a7\setup\StackSetupShim.o ) Linking C:\Users\Michael\AppData\Local\Temp\stack16584\llvm-hs-5.1.2\.stack-work\dist\5c8418a7\setup\setup.exe ... setup.exe: The program 'llvm-config' version ==5.0.* is required but it could not be found. 

    I'm assuming this means llvm-config needs to be installed or something of the like. I've downloaded an installer for llvm-5.0 which installed correctly although this doesn't seem to have fixed the problem. What's making this difficult is that a lot of the tutorials etc are all Linux based.

    What should I do to fix this?

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

    Can someone help me create a simple keyboard macro for AutoHotkey

    Posted: 06 Jan 2018 02:36 AM PST

    I want cltr+e assigned to a single letter, lets say r or f

    I tried following the guide and used this

    ' E:: sendinput, inside the {r} hotkey'

    but doesnt seem to be working

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

    Why can't I import API to Excel?

    Posted: 06 Jan 2018 06:21 AM PST

    How should i Learn C?

    Posted: 05 Jan 2018 11:54 PM PST

    Hey guys, I'm not sure if this is the right place to ask. If not, let me know where I should be posting.

    I am a student at a university, next semester I will be taking a programming fundamentals class. From speaking to the lecturer before signing up for the class, I was told the class will mostly revolve around the language "C" and that often beginners struggle with this class, despite this there are no prerequisites or requirements.

    As a complete beginner with little to no experience coding or programming, what would be the best way to approach this? I have a few weeks before classes start and would love to get a head start. From what I have heard, C isn't the easiest language to start with but if the class focuses on it, i suppose I don't have much choice.

    What resources should i be looking at? any help would be greatly appreciated.

    Thanks!

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

    Example of 'Checked exception' that is not I/O

    Posted: 06 Jan 2018 03:20 AM PST

    remember the mission in dukenukem3d rabid transit? with the metro? how does one code this kind of metro in c#? just in basics,ppl...im not sure of the curves...

    Posted: 06 Jan 2018 02:46 AM PST

    [java] [Socket Programming] am I right about Server ??

    Posted: 06 Jan 2018 02:13 AM PST

    Note: plz read carefully, cause I cannot express it in more better way
    *** I don't have code now, ill provide it tomorrow***

    so today in class a new topic started ie Networking, so we talk about networking terms

    like protocols, IP address, ports, sockets ... and some other stuff related to networking and Socket programming

    finally, my teacher Executed java programs, namely Client.java & Server.java (on the concept of echo Server)

    he first compiles and Executes the Server.java -> in which he had a ServerSocket class,
    (while in the Client.java _> he had only the Socket Class) and then executed the Client.java

    --> and to demonstrate that both of these programs are communicating with each other -> what he did is he executed both of these programs, in different instances of the JVM (ie by executing in two different terminals/shell)

    the thing is he didn't use any software like we (or at least i) generally do like xampp ,wamp (in PHP) or Appache TomCat (for java)
    and (what I know is that ) these softwares are used to make your local computer to behave as a server (we point this local server as localhost)
    and he didn't use any of it..

    but what he actually did in his program (Server.java ), is he created a server socket and this program is then running on a specific port no (given by us) [this whole stuff is done using the constructor of ServerSocket , and it does all this internally for us]

    and then using our Client.java program -> in which he creates a Socket object (in which we pass, localhost and the port no on which our Server.java program is running --> that port was given by us) and with this it internally send the request to this Server.java program, which then does some stuff [does not matter]

    so what I think is :
    [a server is just a machine can be our local or any other ], and what essentially happens, is a program (our backend code etc) is kept running on that machine and it runs on a specific port no ( I realized that not every program runs on a port no. eg Microsoft word etc -> I think all the stand-alone application which does not require any internet connection for their functioning, all of them do not run on any port, ALSO realized that we can generate these port no dynamically, (randomly) as well as we can predefine it too, but most of the application prefers to do it dynamically _> and that only makes it possible that we can open more than two instances of the same program [I don't know how much I am correct about this _ plz correct me] ) and when ever we need to interact with our backend code we hit the server(we send a request to the server) and this request knows the port on which our back end Code (Server.java) is running on the server(machine) and this is how the connection bw these two separate programs is made, _> and this is the same stuff done by these Xampp or TomCat etc..

    also another doubt? -> if it searches our backend code via the port no, then how the hell does it searches that program or port no on other machine (as if both are running on the same machine : then it knows that it needs to check all the ports currently opened on which applications are running [ie check in own os only] )

    suppose for example I have connected two pc's with Ethernet cable, or with another device like phone's hotspot then, in that case, how does all this connection is made,

    plz help me with this concept

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

    No comments:

    Post a Comment