What are you trying to achieve? A robots.txt shouldn't be used to try and prevent anyone from seeing your site. They only apply to bots, and only bots written to properly comply with Robots Exclusion Protocol. Then it will see this file, read it, and act appropriately. A robots.txt file gives you 0 security because it doesn't apply to browsers.
If you're attempting to block actual traffic to a site, then you want to use .htaccess files.
I'm not sure using FPS is the best approach to handling movement physics.
Check out the default event loop here:
https://love2d.org/wiki/love.run
It looks like they are using love.timer.step() to get the time passed since the last frame, then passing that into update.
If you multiply forward velocity by this delta time value, you'll see smaller steps the higher the FPS gets, which means you get consistent movement independent of the framerate.
Yeah, like /u/Unzile said anything is better than Eclipse. It's old and bloated and just ugh. Personally, I've replaced just about every IDE with VSCode these days. And I work on a -lot- of stuff. (My Wakatime monitor says: Python, TypeScript, CSS, HTML, JSON, JavaScript, XML, Rust, Go, Markdown, C++, TOML, Haskell, Java, Groff, Text, Bash, Git Config, Gettext Catalog, INI, C#, PowerShell, Batchfile, XAML, Debian Control file, SCSS. All within VSCode)
install mingw using the installer, add the mingw bin folder to your path, confirm the installation by typing into command prompt
gcc --version
which, if you've done it properly, will return
gcc.exe (MinGW.org GCC Build-20200227-1) 9.2.0 Copyright (C) 2019 Free Software Foundation, Inc. ...
or just install visual studio community
I removed your newest post because it was empty of content and violated Rule #8. This post, in itself, violates Rule #2 but you made an attempt.
All that being said, you need to paste the rest of your error log. Unity logs will cascade down through your own codebase, and I need to know where this error is happening in relation to your code and not the CodeBase script. It will probably be line #3-#5, not just line #1.
Also are you following the official documentation for unity?
https://firebase.google.com/docs/database/unity/retrieve-data
I'm not sure what you're talking about at all. Visual Studio and Visual Studio CODE are completely different products but both made by Microsoft. Neither of which have Incredibuild 'builtin' but default, since Incredi is a paid/licensed product (and kinda garbage but whatever).
And to answer the question, No, There's literally nothing that compares to the flexibility of VSC.
Yea. Unless you have a requirement for GCC, you can use Visual Studio. It uses the windows compiler called cl
.
Looks like my recommendation for VS Code may be off though. That version may just be an editor. If you are in windows, go with what /u/ltra3200 suggested and install Visual Studio Community.
You didn't really include any specifics, so I'm not sure what kind of response you're hoping for.
Get a book or search for a tutorial on C programming. The C Programming Language (K&R) is a perennial favorite.
You need a C compiler. GCC is probably your best option. To compile your C code into a program, feed your code to the compiler as input.
You don't need any other special programs to write C. I wouldn't think you'd need to do anything special to set up your text editor.
As far as books go, C++ Primer is usually recommended. I like Deitel and Deitel's [spelling?] book on C++, but I am partial to the Gradebook program examples it uses since I'm a teacher.
Aside from that, just start working on things that would interest you. You learn programming by doing, so work through the exercises and try to think of projects to make your life easier.
Sorry, I don’t think I was clear on this. I set the callback URL as https://www.spotify.com/ since I don’t have a personal website and don’t want to send the user anywhere unrelated. The callback from this website lacks the code field, and instead has the access token field. I do agree on the steps to take after getting the code, but I’m currently getting the access token instead of the code.
You should never be seeing any type of URL with https://www.spotify.com/code anything.
Once you ask Spotify to verify, and you log in, then Spotify should make a request back to YOUR site's registered callback URL with the code.
https://developer.spotify.com/documentation/general/guides/authorization/code-flow/
It's really straightforward.
Literally it's a function that says. Hey! The next variable you see, it's going to have setprecision(x) amount of digits. Only show x amount of digits. So if you setprecision to 4, it will show maximum 4 digits. If you use 'fixed' you'll be able to say that you want x amount of digits to appear AFTER the decimal. Hope that helps.
if your git version is up-to-date: https://git-scm.com/docs/git-cherry-pick
# in branch: "A" git cherry-pick [commits/SHA] # SHAs from branch "B"
otherwise -- if you have too many, and very conflicting commits, and the file in "B" is fine to check out (without commits, only the content)
git checkout <origin>/<b-name> -- <path to file(s)>
(off the top of my head)
I'm not exactly sure what you're looking -for- in an IDE. For instance, for most of my projects, be it in the classroom teaching or at a federal level, I use Visual Studio Code or Visual Studio (Community/Professional/Etc).
I'm able to handle Node projects just fine with VSC. I just suggest learning about commands like 'ng serve --open' that way you can realtime debug/develop and you don't have to rely on other IDEs that offer 'realtime debugging' but just use a wrapper to that command :)
All in all VSC has been my goto IDE for projects in a large number of languages, ranging from C, to Java, to Python, etc. (Even C# but that was a mess and I highly suggest VS proper). But in the end it just comes down to comfort. The IDE is just a tool and it's only as good as the developer behind the keyboard and the amount of time they take to sit down and really learn how to use it.
Also, I'd stay far away from JetBrains garbage if you can. They're not the worst thing you could use, but they're far from the best. Bloated and very license hungry.
Well your first problem is that you're using Eclipse. Probably the worst IDE out there for java. Sadly there's not much I can do to help. I abandoned that clunky mess years ago. You can try deleting your module-info.java file and seeing if that helps.
Otherwise we'll need to see the actual code you've got first. Could be a package issue or anything that eclipse takes it upon itself to decide.
If this isn't for a class then I'd highly suggest upgrading to a more modern IDE.
Manning's comment is correct, though if you don't want to dual boot/bootcamp then you could try using VSCode and this tutorial: https://code.visualstudio.com/docs/cpp/config-clang-mac
I'd use autohotkey.
​
This thread talks about adding random gaps between sending keystrokes
https://autohotkey.com/board/topic/93103-random-delay-between-keystrokes/
I have been considering this issue for some days now. This tool may be helpful: fzf - command-line fuzzy finder it could help you find results in the files. Good luck
What particular aspect of this is throwing you off? Unfortunately, I don't think there's a way to bulk pass the entire state or all of the props while using function components, so that's going to be a one at a time deal.
Here's a sandbox I've modified to pass parameters and a function to a child component. I'm not sure if it will help but if not, let me know what you're trying to achieve in context and I'll do my best to assist.
https://codesandbox.io/s/modest-platform-j5zbz?file=/src/index.tsx
You're not the first dev to run into stuff like this and you won't be the last. I can't tell you how often I've seen my students struggle because of a misplaced comma, an unclosed quote, or a forgotten semicolon.
The absolute best advice I can give you is to get a good IDE. I highly recommend Visual Studio Code. Grab their (Microsoft's) python extensions and issues like these will be easy to spot.
Visual Studio Code is my go-to for most everything. It has a ton of Extensions for different languages and new features. Also, I'd look into something like XAMPP so you can test everything locally before needing to upload stuff.
Depending on how you want to handle things, you could use something like https://ironpython.net/, but Newt is correct in that you'll probably want some sort of restful backend in Python.
After some improvements, version 2:
http://ideone.com/qKxXaV
Of course you should already have strstr and strlen defined elsewhere, I just wrote them in quickly.
Here is the shortest solution which uses STL:
http://ideone.com/POFXPC
So something like this: https://codesandbox.io/s/compassionate-hawking-tr1ul?file=/src/App.js
Personally I’d run the filter inside the on change event and store that instead, then loop it in the display but I was short on time and couldn’t demonstrate both.
1) Download his code and unzip it someplace.
2) Download and install NodeJS so you get the npm command.
3) In a terminal, in the directory you unzipped, run "npm install"
4) Run the command under "Running the Script" with the relevant apple id, in the same console window as step 3.
If your goal is just to put it online somehow, you could just upload it to Neocities or use GitHub Pages.
The site would be available via a subdomain like this: yourwebsitename.neocities.org
What I'd suggest is to do your programming in a language called Processing which was designed for artists specifically. It has support for exporting Android apps which you can side load into a phone or tablet. If your tablet runs Windows, then even better. What you propose should be pretty easy to code up.
You can download the IDE and look at tons of examples at Processing.org. The language itself is basically a bunch of easy libraries on top of Java. This makes creating GUI's and interactive visuals really easy. And, should you want more advanced functionality, it is all still available to you through standard Java API's.
If this is an unpaid project you are doing (ie for school, a museum piece, etc), you are welcome to PM me for help getting started.
Firstly, I'd like to remind you that posts like this completely violate the spirit of this subreddit. They're much better suited to /r/learnprogramming (and the rules say this).
That said, this is a common 'problem' that many of my students admit to having. The only advice I can give, is that you just have to make up projects and/or problems and solve them on your own using the skills you have (and learning the ones you do not.) Thinking outside the box/creatively is a very required programming skill. Brute force programming knowledge will only get you so far in the industry. To go along with this there are sites like HackerRank and Project Euler that provide problems to solve via programming. HackerRank will probably feel the most rewarding to you.
Per the rules, we keep discussions here, unless there are circumstances that necessitate it being elsewhere, and even then it's based on mod approval.
If you have code that's sensitive, for assignments or whatnot, then you're free to either obfusicate it or use something like privatebin.info so it deletes itself after a specific amount of time.
I've done zero C so I couldn't tell you, if you're running the script from command line after compiling it should show in the command line stdout or stderr.
Anyway, I'm pretty sure if you're expecting decimals, your scanf
should look like below (note the %f
):
scanf("%f", &Gas);
%d
usually means decimal integer (which are integers between 0-9). %f
means floating point number.
I have a working version at: https://repl.it/repls/DelayedPleasedProgram
You can read more about scanf here
The communication between client and server is actually fairly straightforward. Given that you have 'quite a lot of python experience', I doubt you will have too much trouble with this. Flask in particular makes this process really easy. You will need JavaScript on your front-end to make calls to your Flask/Python back-end. There are a number of JavaScript libraries for making HTTP requests (how your front-end and back-end will communicate)... Ajax, Axios, Fetch... this article here gives details between them along with some simple code examples to get you started:
How familiar are you with front-end (HTML, CSS, JavaScript) and SQL? Just curious.
You have a few different things you should take of first.
Editor:
Codeblocks is a great editor, I know a few professional programmers who use it. I personally am a sublime man myself (Atom at my new job as sublime is not allowed, but its basically sublime by the open source community). Neither of these will do what codeblocks do, they do not assist with programming syntax and are basically a glorified Notepad.exe. Codeblocks is a great starting editor. Alternatively you could use QtCreator, which I am quite fond of, as Qt offers an easy 'in' into making GUI applications.
Development Environment:
Though the C/C++ language is well defined, how it is interpreted depends on the compiler you choose. Here are a few of the more popular compilers: MSVC, GNU, and Klang.
What does a compiler do? Well simply put It takes the code you write, determines if it is valid, and generates an executable you can run on your computer.
If you're on windows and all these files are in the same directory, then just get Notepad++. The built-in grep (CTRL+SHIFT+F) can absolutely tear through every file type, of almost any size, in a single folder and all subfolders in a relatively short amount of time. Supports find/replace, regex, all that jazz. It's one of the first things I install on any machine now.
The default value returned by the temperature values from openweathermap are Kelvin. You can easily convert.
https://openweathermap.org/current Check the Units of Measurement section. Honestly, you should have googled this first.
A DocX centered package would probably work better than an OpenXML library.
I want to say there were a few DocX packages in NuGet the last time I looked. I'd poke around there and see what's available.
https://www.nuget.org/packages?q=DocX
As far as uploading to SharePoint, a quick google search found this on stackoverflow and there seems to be a snippet of working code: https://stackoverflow.com/questions/52373622/sharepoint-2013-document-library-upload-c-sharp/52520928#52520928
Traditionally this is a config file. You can try a .net compatible ini parser.
Provide a file with reasonable defaults and when a user overrides those defaults write the file.
If you are not using .net, you can write one yourself. INI is very simple to parse and write out.
You should be able to search for, and install, this package via cygwin.
https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Fcygwin32-gcc-g%2B%2B%2Fcygwin32-gcc-g%2B%2B-7.3.0-1&grep=gcc
There is also a tool called responsively app. https://responsively.app/
This will also show you how your pages display on each kind of device. It was super useful for me when building a portfolio
How DID you do it indeed? Just kidding, I don't remember the exact details but this is the basic breakdown:
- First you create a .jar file from your package. There are options in IDEs to do this. Basically you need to "build" your project and you will get a .jar file in your project folder somewhere(maybe in dist directory)
- Then you need to combine your file with a wrapper. I googled for you and came up with Launch4J. From there it does not seem too difficult to create your executable.
Although i feel like a batch file could also do the trick provided that you have java on your PATH. basically just call jre with your file.
I just went through a whole mess of different CMSes, trying to find the one that fits my use case the best- I ended up using Craft CMS -
I know you mentioned that you wanted to make your own CMS, but re-inventing the wheel is probably going to be a difficult and frustrating experience. I found things like wordpress (even when developing custom plugins) to be way too limiting. CMS really gets out of your way- you design different page types and specify the inputs that the page editor will work with, then you build a template that renders their inputs as a page.
https://gist.github.com/smebberson/1581536 This uses express.js, a fairly robust and easy to learn backend (server side) which can provide the functionality you need. This tutorial can get you started: http://expressjs.com/en/starter/hello-world.html Express works with node and thus any SQL or no-SQL database you might want, for example I use MongoDB and neo4j
Post as much code as necessary for us to hopefully replicate the issue and help you solve it.
If you have concerns about privacy, you can setup a privatebin.info and have the code self destruct after a day or so.
VSCode is an IDE that can use extensions to code for just about any language (not any, but damn near close, I use it for a ton and I've posted about this in the past on other threads).
WSL lets you install a linux distro inside your current windows installation. Basically a virtual machine. The method I pointed out will let you open VSCode on your windows desktop and it will slip into the linux virtual machine and do all the code compiling and building there. Now, the cavat here is that the binaries you create will be linux executables but if you're just learning c++ that doesn't matter and this is the easiest method to go with since the code will be relatively universal.
MinGW is a tool/system/etc that will install all the required files for you to basically do the same thing, coding c++ apps and building them but into an exe for windows. MinGW can be a little scary for new students and such, so that's one reason I lean towards teaching people WSL, and there's the added benefit of getting some linux console experience without any risk or needing to install Linux on a separate machine, etc. :)
Either method will work for what you're trying to do. The last choice you could go with would be installing Visual Studio 2019 Community. Keep in mind this is a beefier install and a full on windows tool, instead of VSCode (which is lightweight and runs on any OS). The benefit here is that it's basically THE Microsoft tool for writing C++ and C# code in windows. Installing that and just selecting the c++ packages during install will have you setup and running in no time :) The smidge of a downside is that I'm not 100% sure if the code/includes you'll be using in C++ will be universal or for Windows only. So, while you can learn c++ without issues, the code itself might not work on non-windows systems without a few changes to the includes etc.
Visual Studio Code is a fantastic IDE but it's C# development support is a bit lacking for someone who's new to it all. I'd highly recommend getting Visual Studio 2019 Community Edition. It's easier to build an exe that you can distribute for someone who's not familiar with the process.
correct. community is the free version of visual studio. don't let the free part put you off: it's more than enough to learn with. you'll be able to write, debug, and run code with it. i've used it to build several game projects in c++ and c# thus far.
As /u/Th3Dome said, it really depends on the language you want to use. These days, I've switched over to mostly Visual Studio Code for Ada, Node.js, C#, C++, Java, etc. That said, I still use Visual Studio itself for some projects.
I use the same two IDEs for most of my at-work stuff too.
If you have any questions, or care to specify a language you're primarily working in, please do.
Ivor Horton's Beginning Visual C++. The most recent edition on amazon is for VS2013 but it should be compatible enough with the newer versions.
https://smile.amazon.com/Ivor-Hortons-Beginning-Visual-Guides-dp-1118845714/dp/1118845714/
Let me be more specific with my context, because I think I described something too complex.
This is a recitation of the Quran, the Muslims' Holy book. https://youtu.be/Re6T7aLVi1o
Sometimes Muslims hear a recitation but don't know what chapter and verse the person is actually reciting, so I want them to be able to play the recitation near their phone for a couple seconds, and the app should tell them what chapter and verse it is. The machine can learn this as there are a hundreds of different reciters and each verse that is being recited can be seperated and attached to that specific verse if that makes sense.
Is this too difficult to produce? An example is this: https://play.google.com/store/apps/details?id=com.mmmoussa.iqra but it hasn't been updated in a longggg time and it's buggy as hell (read: not functional). However, I do have its source code.
C++ Primer by by Stanley B. Lippman, Josée Lajoie and Barbara E. Moo is most likely what you are looking for.
Edit: Note that C++ Primer Plus is not the same book and is not as commonly recommended.
If you would like a more indepth explaination try:
Also, keep in mind that "The C Programming Language, Second Edition" teaches you C90 which is the old C standard. It helpful to have the two books I mentioned above while going through K&R. When you need a bit of indepth explaination just dive in to the specific chapter in the books above. Hope it helps and all the best. :)