The actual number of possible patterns in a 3x3 grid is 389112, as calculated by this haskell program: https://repl.it/I4GB/0
A pattern has to be 4 or more nodes long. I reached the same number (389497) as you by removing valid pattern = length pattern >= 4
> Hey there! Another PM on Visual Studio Live Share here. Security is absolutely something we are designing for. Microsoft will not be collecting data on the code. The code is not stored or uploaded in the cloud in any way. Rather, it is just a connection that is established between you and the teammate you are sharing with.
> There's more details in the FAQ here: https://code.visualstudio.com/docs/supporting/live-share-faq
If you are majoring in a subject that requires using a lot of statistics and possibly complex statistics (like in ecology) I recommend R, RStudio or any other variation of R. R is a lot of script writing and can get a little confusing but it is rather powerful. RStudio is a much more user friendly version of R. There are a lot of online resources to help teach you how to use it. There are packages to download which range from simply giving you a pre-scripted formulas to providing you with an entire GUI to work in.
Going into an undergrad you might not need to use it for a while and can get away with just excel, but once you get into the upper years a good statistical program will save you a lot of time and headaches.
My favorite feature of C is how main doesn't have to be a function :)
https://repl.it/repls/AbsoluteSorrowfulDevicedriver
EDIT: If anyone's curious as to why the hell this works, http://jroweboy.github.io/c/asm/2015/01/26/when-is-main-not-a-function.html
>Now second thing is I did ask others and it seems this is not what programmers are using.
RPGMaker is geared towards people who can't program. It's for making a specific kind of game.
If you want to make games and learn to program I suggest trying Unity (which is free).
Now go and hit your 2 friends over the head with a $120 shovel. They deserve it. You can get it for $30 on Steam right now. It's on sale.
> Are there any actual advantages of using more advanced software
Syntax checking, context-sensitive auto-complete, call-tips, linting or static code analysis, Git integration, integrated debugger, integrated task runner...
Comparing apples to apples, Microsoft also got it right with their IDE. They have made great strides with their Visual Studio products in recent years. They have created Visual Studio Code, which is free available across platforms. They have Visual Studio Community Edition, which is the full version of Visual Studio (sans some professional-level features like a testing suite, I believe), and that's free for up to 5 users under an organization that makes less than a million dollars a year.
Want to buy a license for Visual Studio as a business? Great, you can get that for some real money, because you are a business with an income and you are using Microsoft as a main tool to make that income. I'd be more than happy to shell out $1,199 a year for Visual Studio and a bunch of auxiliary tools if my team is making more than a million bucks.
> the only requirement is that a network card is Intel PRO/1000 MT Desktop (82540EM) and a mode is NAT
> [...]
> Until the patched VirtualBox build is out you can change the network card of your virtual machines to PCnet (either of two) or to Paravirtualized Network. If you can't, change the mode from NAT to another one. The former way is more secure.
edit: to change default with vagrant see: https://www.vagrantup.com/docs/virtualbox/networking.html#virtualbox-nic-type
inspired me to write some Ruby
> navy_seal_pasta.gsub(/[A-Za-z']+/) do |w| next w if w.length < 4 w[0] + w[1...-1].chars.shuffle.join + w[-1] end =>
What the fcuk did you jsut fukincg say aoubt me, you ltlite bicth? I'll hvae you know I gardateud top of my csals in the Nvay Seals, and I've been ivvonled in neoumrus sercet radis on Al-Qeadua, and I hvae over 300 cmnfreiod kills. I am tireand in girlloa warfrae and I'm the top siepnr in the eirnte US aremd foecrs. You are nonthig to me but just ahteonr trgaet. I will wipe you the fcuk out with piosiercn the lekis of which has neevr been seen bfoere on tihs Erath, mrak my fciunkg words. You tinhk you can get away with sainyg taht shit to me oevr the Intneert? Tihnk again, fekucr. As we speak I am caniotcntg my sreect nowrtek of seips aocsrs the USA and your IP is being tearcd rhgit now so you bteter preprae for the sotrm, moaggt. The sotrm taht weips out the phateitc ltlite tnhig you clal yuor life. Y'uroe fuickng daed, kid. I can be ahewrnye, ainymte, and I can kill you in over seevn hunrded ways, and t'aths jsut with my brae hdans. Not only am I esneitvelxy tinaerd in urnaemd cboamt, but I hvae access to the etnire aeasrnl of the Utiend Stetas Marnie Crops and I wlil use it to its full eentxt to wpie yuor mabrielse ass off the fcae of the cintonnet, you ltitle siht. If olny you could hvae knwon what ulohny riuteoritbn your liltte "cleevr" comment was aoubt to bring down upon you, mbyae you wuold hvae hled yuor fnkcuig tnouge. But you cu'noldt, you d'idnt, and now yoru'e pinayg the prcie, you gdamodn ioidt. I will siht fruy all oevr you and you will drown in it. Yro'ue fkcnuig dead, kiddo.
Unity. It is a robust game development platform with a strong base of support. People are constantly adding new features and tutorials on how to use it are abundant and easy to find. The fact that this kind of tool is available, free of charge, with fantastic support seriously amazes me.
I feel like you're greatly exaggerating the complexity of this and the how much your time is worth argument. The conversion script would be really simple from what I can tell. Ducky script isn't even turing complete is it? Looks like it's just procedural line by line changes, probably an hours worth of work and then testing. Maybe I've only seen simple Ducky Script scripts but are we just talking about from:
DELAY 50 STRING notepad.exe ENTER
To:
... TrinketKeyboard.begin(); delay(50); TrinketKeyboard.print("notepad.exe"); pressEnter(); ...
... and just wrap that in a setup() and include definitions for those functions? Hell, it'd be easy to generate the C.
Here, took me all of 20 minutes:
Click run and it'll convert the example below. Paste in your own ducky script and it should work, except might need support for left shift and left control and a few other ducky script things, but otherwise that's minutes to add.
Yeah, the ducky is $40 and at a lot of our salaries it's not like anyone's going to avoid one due to cost. But we're also hackers and we do shit like this for fun and if we're going to spend time reading this article, it's not a stretch to think that we might duplicate it just because it's a point of pride to be owning boxes with a tool we personally built.
https://www.jetbrains.com/pycharm/
I'm a fan of jetbrains ide's, the python flavored brand is pretty nice. IDE's are totally personal preference though. The nice thing about jetbrains IDE's is that they've pretty much got a flavor for every language, so once you're familiar with one, the others are just as easy to use.
It wasn't in the key highlights, but compare dirty file with version on disk is a long awaited feature for me. No idea how they consistently add so many features every month.
Coming from Atom, I was looking for an extension for highlighting changed and new git files in the explorer to no avail, and then today they included it in the update. Very cool.
YES! Finally we have multi-root workspaces!
This means you can open multiple projects in the same editor now. For now this feature is only available in the Insiders build.
> Has Intellisense
Not for most languages. I'm not only talking about function parameter help, it won't even complete variable names defined one line above where you are typing.
Edit: Intellisense is only for JavaScript, JSON, HTML, CSS, LESS, SASS. So unless you are only doing front-end work, it's useless. https://code.visualstudio.com/Docs/languages
Edit2: C# has Intellisense too.
Edit3: It works, at least for C++, but you have to hit ctrl+space each time you want suggestions. It doesn't show automatically like it does in Visual Studio, and it doesn't show function parameters.
Visual Studio Code is pretty straight-forward: https://code.visualstudio.com/docs/setup/linux
Also, it's cross platform, so what minimal learning/configurations/plugins you need will work on mac and windows, too.
Download and install PyCharm Community edition. It'll install all the necessary components for you.
https://www.jetbrains.com/pycharm/download/#section=windows
It's really solid. Great debugging features. Python console available right in the app. I use it every day for professional development. (Well, I have the pro version at work, but using community edition at home is really good, too.)
> I'm just frustrated as hell. I've learned some of the basic programming concepts (functions, a little about algorithms, the basics of how object-oriented programming works), but it seems that in order to actually do anything in python, there is a TON I have to learn just to get started at all.
That's any language, man.
Only because I've got years and years of coding under my belt did I find Python relatively easy to pick up. There were still a lot of nuances to it that took me a while to get used to. That said, I was productive with it almost right away. Mostly because it's a good language.
Keep banging away at it. Python is a worthwhile language to learn.
I'm testing it (the download link is live: https://code.visualstudio.com)
So far:
I’m sorry, but is our job as developers to do the needful and spread the gospel of eradicating light themes, not spending time being productive and just writing code, but going overboard with editor configuration until you’ve completely forgotten about why you even installed a text editor.
It’s worrisome that this thread is over an hour old and nobody has come to spread the good word of the one true editor, our lord and savior VSCode, the free and open source messiah that doesn’t try blinding you when you first greet it like other false prophets, but instead greets you with solid contrast and power saving dark colors. How can anyone deny that VSCode isn’t the true path to righteousness when out of the box it is able to autocomplete better than any other without consuming one’s entire available RAM and CPU time like other heathen IDEs (like the antichrist eclipse with it’s light theme blinding you so it can wreak havok upon your machine). And once equipped with the VIM extension, there’s no doubt that it is the true successor to the original divine editor as it possesses all the power of the original while still allowing you to exit it without having to sacrifice your first born child (but that option is still available as it understands the old magic of :wq
and :x
and :wofjspleaseexit
.
^(But seriously, give them the link to VSCode, ignoring the dark theme circlejerk, out of the box it’s seriously one of the best — if not the best — HTML editors available)
Oh god, I ran a quick test, and it looks like your way appears to be slightly faster then just looking it up in a normal lookup table. Welp, guess that makes this algorithm canonical.
It's a pretty good example of the fact that a lot of software development doesn't happen in a vacuum where only performance and efficiency matter.
VSCode's greatest strength is it's own ease of development. There's tons of developers who can contribute to the project rapidly and create extensions. Their update log speaks for itself.
Of course Electron has a lot of overhead, but at the end of the day providing value for your end-users is key and a tool like Electron may easily be cost-efficient in that regard. The project switching to C++ for incredibly efficient code would be a disservice to it's users.
Reminds me of a similar bug in Python: http://ideone.com/m5txM
Except it's twice as vicious because when you sanity-check your results, everything looks all right.
The reason for the bug is that at some point they switched from a simple linear generator to Mersenne Twister. Unlike linear generators, Mersenne Twister doesn't allow jumping ahead in the sequence, on the other hand its enormous state space (623*32
bits) makes it OK to jump anywhere instead. Except that contrary to the belief of the implementers changes made to initial bits of the state do not propagate further immediately (and in fact take a damn long time to scramble the entire state -- it looks like you get up to 397 runs of 623 output values with longer and longer initial segments scrambled).
That they still advise to use a seed + jumpahead
for multithreaded applications in the documentation doesn't help either (you should just use seed now).
You don't need to convince anyone to spend money. If you don't do JavaScript (or web frameworks), you can use Intellij community edition that is free to use (even for your company, it's open source and apache 2). Just look at the comparison matrix if you really need ultimate.
Get some good tooling! I've no experience with python, but I've loads of experience using JetBrains tooling, and I can imagine PyCharm will help you be highly effective. It (probably) can:
You could use something like Ponicode that should help you auto-generate useful unit tests.
Edit: PyCharm is £6.90 a month when bought by an individual, or £69 for the first year. The big £150 on the front is for organisations to purchase it. And yeah, individuals can use the individual license when working for a company - honestly, it's one of the main reasons I stayed sane at my last job!
IntelliJ IDEA Community Edition is free for everyone and will more than meet your needs when getting started. Also note that if you quality, students can use the Ultimate Edition for free as well. But for starting out as a beginner, there likely isn't anything in the Ultimate edition that you will need anyway.
IntelliJ IDEA is often considered the best Java IDE by professional developers. Others that get talked about are Eclipse and Netbeans. One consideration for not using IntelliJ would be if you get any labs or tutorials based on another IDE, you may want to just use the same tools that are being taught and your classmates are using.
A feature I'll be using most is the new find-in-path dialogue (Ctrl-Shift-F). Now I don't have to switch panes just to get the preview \o/
SQL resolution scopes seem great as well.
For those of you having auto-complete issues with Visual Studio Code, I wanted to make you aware that we are working on a new auto-complete engine, the Python Language Server, and you can try it out by changing your settings.
It gets better every week, we are currently working through a set of performance improvements before we make this the default. If you run into issues, check out our troubleshooting guide for common setup problems and how to file issues.
Hey guys, Thanks so much for all your love and support. Here's the an outline of what we will cover in the bootcamp
-Python Basics (e.g. Variables, Data Types, Lists)
-Functions and Packages (e.g., Creating Functions, List Methods, String Methods)
-Numpy (e.g., Arrays, Statistics)
-Matplotlib (e.g., Scatterplot, Histogram) (Only if we have time)
We will be using Repl.It , a free browser based development environment to code so you don't need to download anything beforehand.
As far as data science and scientific computing goes, there are 2 workflows/environments that are common.
1. Text Editor + IPython + Jupyter Notebooks
When people refer to IPython, they usually are referring to an improved REPL. What is a REPL? It's an interactive session where you can type Python expressions or commands, and it will let you interact with the results. Go here to try: https://repl.it/ Python comes with it's own repl, but IPython is an improved version of it.
Jupyter Notebooks (formerly IPython Notebooks) takes IPython REPLs and put them in your browser. It lets you create a virtual notebook for Python code with results. It can be shared with multiple people. Also, Jupyter notebooks supports other languages too.
2. Spyder
Spyder IDE is an IDE that is specifically made for Data Scientists. Unlike other IDEs like PyCharm, this one is lightweight and operates under the assumption that your products are mainly number crunching and analysis. Other IDEs are purpose-built for developers make full-blown applications.
Finally, let's talk about Anaconda for a bit. Anaconda is a distribution of Python (for a lack of a better word). What I mean is this: Anaconda comes with Python and all the popular libraries/tools for scientific computing/data science. This is helpful because installing Python can be difficult or even time consuming. Anaconda has almost all that you need precompiled and ready for you to use no matter if you are running Windows, MacOS, or Linux.
No, the current process for developing games is changing. Better game development tools plus re-use of assets (like the http://unity3d.com/unity/asset-store/ ) means you don't need 300 developers to make a game. Kickstarter and related methods allow participative funding. People enjoy a game more if they feel like part of the development process. Boxed game on a shelf does not have that participation aspect. Mod kits and leader boards for custom levels do.
I make money from free-to-download games. I think I can speak to this topic from experience.
I dunno if zoom is necessary, since by live streaming they can see what you see already.
But Id recommend making use of the Live Share functionality on Visual Studio Code!
https://code.visualstudio.com/blogs/2017/11/15/live-share
Lets multiple people work together in real time on the same code, quite powerful.
https://repl.it/repls/KindheartedBrownKeyboardmapping
This is my code, you can run it again to get a live view on the price of a full collection of common/uncommon
EDIT: Includes rare cards as well
If your system can't handle it here are some light alternatives you can try:
https://www.gnu.org/software/emacs/emacs.html
Best to run in terminal mode because if your system is struggling that much then a windowing system might also "explode" your memory usage.
The following should be in the README, but it's not yet:
So, this ad:
Has correct and clean JS code
Can be understood even by people who don't know any programming languages.
Is actually pretty funny
And still some people hate it, because hurr durr durr "targeting tech workers with its desperate attempt at making ice cream high-tech."
Also whoever wrote this ad knows more about code than article's author. "ersatz CSS-type code" my ass, it's a goddamn javascript (and perhaps some other languages too) program. What even is "CSS-type code"?
> this personal edition allows free users to access all features of the engine for free.
*Except the ability to have your own splash screen. Not joking.
Edit: For the downvoters: http://unity3d.com/get-unity
I would say the Splash screen IS part of the engine, just like the rest of the GUI, but hey, what do I know.
+1000. The number of times I respond to MELPA submissions with a link to the elisp coding conventions is just ridiculous.
Visual Studio Code is completely free.
Visual Studio has a Community Edition that is also free for students and small teams.
Don't forget about Atom, Github's electron-based editor that happens to compete directly against Visual Studio Code, Microsoft's electron-based editor. I can't imagine Microsoft is going to want to oversee the development of two competing editors, and that's not good for those of us who use Atom every day. :-(
Just fyi: N=N++; has no effect on N's value
N++ will increment N by 1, but it evaluates to N's original value, so N will be set back to what it was. You could do N=++N; but the best way would just be N++;
The site should be improved because it's often the first destination people go to in order to learn more about Vim. The current design can give a bad (definitely out-dated) impression. If the site were more clear and less abrasive, it would likely persuade more people to use Vim than it does currently.
I know that I thought somewhat less of Vim purely based on the site when I first saw it. Look at the beautiful official page for Emacs (I believe it was updated a couple years ago now), by comparison.
Here's an online script that will show you the current cost of acquiring all the cards in Artifact (just press play to run it): https://repl.it/repls/AliveFrayedQuark
It hovers between $250 and $300
In the GNU Emacs Calculator manual, section 2.1.2 Algebraic-Style Calculations, there is a notice:
>Notice: Calc gives ‘/’ lower precedence than ‘*’, so that ‘a/b*c’ is interpreted as ‘a/(b*c)’; this is not standard across all computer languages. See below for details.
Similar notes are scattered through the manual, but I don't recall ever seeing an actual reasoning for this departure from the norm.
I've used Unity3D every day for the past 14 months, I'm now making a 2D game to be released on iOS, Android, Facebook, etc. It's pretty awesome, just because it allows us to do that, in my humble opinion. Full disclosure, I work at GogiiGames, a company of about 35 people on the east coast of Canada.
2D is accomplished fairly easily. We use SpriteManager2 and EZGUI, but you can also roll your own 2D starting with just a 2 triangle plane mesh and some image atlasing. Set camera to Orthographic, and off you go! SM2 and EZGUI have their own quirks and issues, but it was faster than trying to do that ourselves!
If you want to make something quick and dirty in Unity, you'll probably want to stick to 3D, or spend the money on the 2D plugins. Prime31 plugins are also almost a necessity, depending on what you want to do. Any plugins can be replicated on your own, it's just a lot of work for something you could pay $20-100 to have it done for you.
For anyone just starting, I found the videos at unity3dstudent.com to be great at the beginning. Googling your problems will almost always lead to something in the unity script reference or unityanswers.com. Both sites are good bookmarks, I still hit that script reference every couple days to look something up. http://unity3d.com/support/documentation/ScriptReference/index.html
And yes, it's expensive. $4500 per license if you want full iOS and Android Pro. It's also perhaps the most advanced and up-to-date game dev suite that exists right now. Again, just my opinion! I'm not shilling for them, I WISH they would give us some free licenses, we need more but don't have the budget for them yet!
VSCode also has autosave, you just need to turn it on. It's like you guys just give up on trying to solve a problem if the solution is not a simple checkbox on the first tab of the Settings dialog.
You can see an overview of the differences here: https://www.jetbrains.com/idea/features/editions_comparison_matrix.html
The main difference is extended support for WebFrameworks. Also having support for Hibernate is pretty nice, since it also completes the method names when you define them, e.g. findFilteredBy or something like that.
It you don’t or rarely use the technologies that ultimate edition provides additional support for you are fine with the community edition. The main feature if the ultimate edition I used during university was the duplicate detection :)
Oh man. You weren't around for the VS Code Icon Civil War of 2017?
https://github.com/Microsoft/vscode/issues/35783
End result: https://code.visualstudio.com/blogs/2017/10/24/theicon
Funny read :)
The book R for Data Science is really excellent and available free in an easy-to-navigate online form. I highly, highly recommend it.
And although I don't know Python, I think that starting with R is a good idea, especially if this will be extra-curricular. The language is made for data science specifically, and has a really great associated user interface via R-Studio.
I did some math and I estimate that if the aliens have a huge 1000 meter diameter telescope, and are only about 10 light years distant, then they might almost be able to capture a single photon reflected from the event. There are only about a dozen stars that close to us.
I put the calculation in a python script at repl.it so that you can play with the numbers. Just hit "run" to run the calculation: https://repl.it/BCC2
A couple things:
{*range(1, 7)}
doesn't change the result of product
. You can also use the repeat
parameter instead of passing the same value multiple times.
The length of S
will always be the square of dice sides unless you mistyped somewhere. You can eliminate that possibility by using a variable for dice sides.
Comprehensions can have predicates, so list(filter(lambda x : x <= 9, S))
can be changed to [sim for sim in S if sim <= limit]
.
There's no benefit to [*simulate(n)]
over list(simulate(n))
.
simulate
uses a variable not defined anywhere - except in if __name__ == '__main__':
, which defeats its purpose.
https://repl.it/repls/OriginalHilariousDemands (last point is unfixed)
I would (and do) just use the build in dired (directory editor). No installation, just C-x C-f a directory and it opens automatically. Type ? and you should get a quick list of options. There is a cheat sheet at https://www.gnu.org/software/emacs/refcards/pdf/dired-ref.pdf which helps on day one - after that I no longer had to look at it.
Import path quick suggestions in JavaScript and TypeScript
Used plugins for this before, but hell ya. This will probably work better than the plugins could.
Working Haskell implementation:
data T = Pineapple | Pizza | Empty | On T T;
instance Show T where show (On a b) = show a ++ " on " ++ show b show Pineapple = "Pineapple" show Pizza = "Pizza" show Empty = "Empty"
ps l x = putStrLn $ l ++ " = " ++ show x
f Empty = Pizza f x = On x Pizza
g Empty = Pineapple g x = On x Pineapple
main = do let x = Empty ps "f(x)" $ f(x) ps "g(x)" $ g(x) ps "f(g(x))" $ f(g(x)) ps "g(f(x))" $ g(f(x))
Output:
f(x) = Pizza g(x) = Pineapple f(g(x)) = Pineapple on Pizza g(f(x)) = Pizza on Pineapple
I am having doubts any mathematician/programmer would use a function in such polymorphic way, but who am I to question the task (client is always right, right?).
Probably not very elegant, but it was a nice excuse to write something "practical" in Haskell :).
In order they appear in the source code:
stdafx.h
header is not standard, and is of no use to you now.ctime
, not time.h
.enemy
a constructor that takes all fields, unless I wanted to use the fact that it's POD.createEnemy
should be called createEnemies
and return an std::vector
.std::ostream& operator<<(std::ostream&, enemy const&)
for printing.system("pause");
.Example rewrite: http://ideone.com/Msyno
https://repl.it/repls/ExhaustedUnwieldyCensorware
And the average pack value (when selling the cards) has plummeted to an all-time low of $0.52 - $0.54 today. That's the last influx of players just selling the free cards from the level-ups, with no intention of coming back to the game.
Because neither your Python example (in Python 2), nor Kotlin, are Unicode correct, and you didn't even notice because it looks too simple/innocent to be wrong.
The Python example is correct in Python 3, but it's O(n)
performance. Any algorithm that entailed doing string slicing O(n)
times, presuming that each slice is O(1)
, just became an O(n^2)
algorithm, and you didn't even notice. You could replicate this behaviour in Swift by definition custom subscript operators on String
, but you'll run into the same pitfall. There's a reason it was purposely omitted in the Standard Library.
Besides, that's not how you would write that in Swift. Depending on whether you need to slice characters (most common in front end work), utf8 or utf16 code points (most common if you're doing low level storage management, or communications protocols like BLE, etc.), you would make an array using let a = Array(s.characters)
, let bytes = Array(s.utf8)
, etc. Then you would do all your slicing operations, which are now O(1)
in the character case, because the character splitting has already been done once. Once your done all your slicing, you commit your changes by converting the array back into a string (String(a)
).
Just kidding. I don't care. Here's my 乇乂丅尺卂 丅卄工匚匚 丅尺卂𠘨丂乚卂丅口尺
Lisp has less syntax and obtuse rules than most programming languages languages you're ever likely to encounter. The core conceit of Lisp is that everything is done by functions. The syntax looks like this:
(print "hello")
Function calls are enclosed in parens. The first item inside is the function name. Here we call the print
function. Successive items are the arguments given to function. Here we give the "hello"
argument. Arguments may also be function calls themselves:
(print (+ 1 2))
Just like before, the first item within a paren pair is the function name. Here the inner paren pair is a call to the +
function giving the arguments 1
and 2
. The result of the inner function call is passed as an argument to the print
function.
Oops. I just taught you Lisp by accident.
Honestly, there are a few other syntax rules that deal with representing data and working with low level things, but when you need them they aren't difficult to remember. The fundamentals are extremely easy to comprehend.
I recommend doing, not just reading, these two things to learn elisp:
Beyond that, it's a matter of learning to use Emacs' help system to find documentation and source code when you need to understand how things are done. And practice. And reading other people's code. I don't do enough of the last two. That's why I suck at elisp.
I'm sad to hear that. Here are my suggestions:
I recommend you try Visual Studio Code with remote ssh. It's pretty much the advantages of local development, but on a remote machine.
https://code.visualstudio.com/docs/remote/ssh
(I realize this isn't the answer you're looking for, but I went through a similar thought process a few months ago. Going for a workstation/laptop combo meant a lighter laptop, that I could turn off anytime and wouldn't be constantly venting hot air)
Sometimes if I have an idea while I'm on a bus or something and just want to try something quickly, I'll use an online IDE like repl.it to just quickly knock out a snippet of code for later. I have it hooked up to my GitHub, so I just perform a merge later, along with cleaning up the code. But I find it way too onerous to attempt any kind of real development on a phone.
All cards: https://repl.it/repls/KindheartedBrownKeyboardmapping
Common and Uncommon: https://repl.it/repls/GuiltyMonthlyLinuxkernel
Just hit run at the top and it will spit out the real time value
It's worth noting that Hearthstone is coded in Unity. I'm guessing that has something to do with it.
I'm starting to believe that they really don't know how to add things like more than 9 deck slots, at least not without redesigning the whole thing.
I think free GameMaker Studio standard edition is awesome. I have downloaded it and I'd recommend others do the same.
That being said, the free edition of Unity is quite competitive with the standard edition of GMS in terms of functionality, but more importantly in terms of target platforms Unity is miles ahead (you can target iOS, Android, Windows Phone, OS X, Linux, et al) all in the free edition.
To target Android on GMS it is a $200 upgrade. Which is perfectly fine, that is their business model and they should be paid for their work. But right now Unity is just somehow able to offer that same product for free, which is quite compelling if you don't expect to be able to charge for whatever you produce.
"<strong>Unused variable detection</strong>" is actually a pretty neat function. Up to this day this could be done only with some TypeScript extension and now integrated.
It'd also be cool to implement "Unreachable code detection" for a code that will never, under any circumstances, be reached. Something like this:
if(something) return true; else return false; i++; // this will never be reached so it's a garbage eating up precious kilobytes on my network
One thing I'd like to add to that is the indentation width -- OP seems to be using 2 spaces for indentation, while the recommended size is 4 spaces.
Actually, I recommend for OP to check out an IDE (Integrated Development Environment, example -- PyCharm) that does style checking, and then run this project in it. All style errors will be visible immediately.
OP was able to successfully communicate the program to his computer, now it's up to them to do the same for humans lol
Definitely all in on Microsoft. Can't see anyone in a better position to do it. Lets check the list...
Just seems highly likely...
But at what cost? It completely shifts development focus. They now make more money from getting people addicted to buying vanity-items than from actually designing good gameplay. And that's easy. It's ridiculously easy to set up a system like that to get people hooked. Look at Cow Clicker.
It's just the bottom of the barrel of game design. It's the equivalent of designing a slot machine (it's not that absurd, Unity must make a small fortune from selling gambling licenses for rumored 6-figure prices). The microtransaction business model is so restrictive, you have to bend your game's main motivation around it.
I can accept that they do it for the money. I mean, duh. But they have to accept that people slowly realize that this added income comes at the price of making games worse.
I decided to only stick with the stable channel updates because of some things that have broken in the past. Glad to see this hit stable.
Let me tell you, this is an amazing update. IntelliJ 14.1 is awesome. The minor design changes are nice; the code decompiler is fantastic for those libraries that do not upload sources; the inline debug values is life changing (maybe an exaggeration); and the other minor features are pretty nifty. Some ones from the IntelliJ site that I like:
<strign>
and need to fix in both sides. Something small, but pretty nifty. That's all I see for now. Let me know if you see anything I am missing.
Visual Studio doesn't do magic. It still runs a compiler when you want to compile (msvc). Said compiler can be called independently from command line as well.
If you installed Visual Studio, you already have it, but it isn't added globally to the console. That's to make sure your console isn't cluttered with billion commands. In order to use it, you must open the developer command prompt, which sets up the variables needed to use the compiler. It's in your Visual Studio installation folder, look for "developer command prompt for VS *version*"
Alternatively you can download Microsoft's development tools, which include compilation stuff without the IDE. Look for "Build Tools for Visual Studio 2019" in this page https://visualstudio.microsoft.com/downloads/
With Afterbirth+ coming out soon and all these lua tutorials being posted, I decided to do a cheap mockup fix myself. It works something like this:
The way this works, you always end up with a net gain of points across all stats. If you wanted, you could also weight individual stats by changing the probability of a successful roll (so you don't end up with 10 HP, for instance).
Excuse my awful scripting since I'm a novice, but I hope that it encourages the community to start exploring Lua so that we can all put our ideas and fixes into Afterbirth+ as a group.
Hi GDP10. I think that you are a bit of a newcomer in the FLOSS world, where everyone has strong opinions about everything. It is notoriously easy to be offended over text, particularly over things we are passionate about. In this case, if you look at the GNU Emacs download page (https://www.gnu.org/software/emacs/download.html) under nonfree systems, you would see the following text:
>To improve the use of proprietary systems is a misguided goal. Our aim, rather, is to eliminate them. We include support for some proprietary systems in GNU Emacs in the hope that running Emacs on them will give users a taste of freedom and thus lead them to free themselves.
Complaining to the /r/emacs community that the goals of the project are exclusionary is not really productive, and to me seems like someone trying to pick a fight.
On a technical note, if you look at the source for the feature you want to use, you would see that it is implemented in ./lisp/net/tramp-gvfs.el. This feature is NOT integration with google drive, but rather integration with gvfs. Wanting to use this feature without gvfs is clearly misguided. It was added for convenience, since other portions of gvfs were already supported this was low hanging fruit to implement. Expecting full integration with google drive independent of gvfs is to misunderstand the feature and its rationale, either naively or wilfully.
Yes the community is anti proprietary software, and no we won't stop talking about it just because you think it is rude. Free software is for some a moral stance, not just strong opinions.
You aren't going to like hearing this, but most IDE's that do C also do C++ because of their interoperability. One of the better ones I've found is actually Qt Creator, which you can install sans the whole Qt SDK. Visual Studio Code is actually pretty good and does all those things as well.
Good Luck.
> Are there any IDEs you would reccommend that is in a more stable place?
Visual Studio Code + lukehoban.Go
extension (Marketplace)
If you look at the video on https://code.visualstudio.com/ you'll see a Microsoft guy presenting Microsoft software sitting in front of a MacBook running OS X. For some reason this creeps me the fuck out. My mind is not used to being bent like this.
> I have written a couple of simple text based games in python that i would like too add to a website so i have a central easy to get too place to show my work
The OP wants to centralize his games in a website, I suggested repl.it to write his python code in it, and then embed it in his website. Not create the website in repl.it
Just to mention for people unfamiliar with lisp or scheme, the ;
/;;
/;;;
/;;;;
thing in lisp+scheme is a common convention for different kinds of comment, not some syntax requirement, see e.g. emacs lisp manual.
The Xamarin folks are building a business around Mono selling tools to application developers that target mobile devices like iOS (iPhone and iPad) and Android. Those do not seem very niche to me.
They are not the only ones doing so either. Unity uses Mono in the same way but for games. Some of the best selling games in the App Store and Market are Unity based.
I personally really like ASP.NET MVC. It is my favourite platform for building web apps.
I also really like Linux. It is my favourite server platform.
Mono let's me use both of them at the same time.
My current employer loves Macs. All our departmental level server stuff is Mac. Just today I wrote a utility that interfaces with the SOAP interface of SugarCRM. I can use the same (compiled) utility on both my OS X and Linux machines (because of Mono).
Recently I wrote an iPhone app using MonoTouch. I lifted the database code and the XML processing code directly from a web app I had written months before. I will be doing Android and Windows Phone versions at some point and am looking forward to reusing the exact same code all over again.
Mono is the only platform I have encountered that allows me to move from console utilities, to desktop apps, to web pages, to mobile devices using the same skills and much of the same code everywhere.
Isn't code re-use supposed to be a goal? It is certainly a time saver, I can tell you that.
For me, the advantages of Mono are many.
:)
There's a ton of support. I would first learn a basic editor like Vim, to edit text/source code, and then learn how to invoke a compiler (e.g. gcc) via command line. Learning to compile via command line more important than learning the CLI IDE environment at your point. I won't add too much more than that, because the compiler in itself is a lot to learn.
Last thing I will say is that you can set up VSCode to edit code over ssh if you want a fallback: https://code.visualstudio.com/docs/remote/ssh
I'm using a 13" non-retina MBP right now. I swapped out the mechanical drive for an SSD and installed 16GB of RAM and the thing's a webdev beast now.
EDIT: I'm surprised at the number of people installing servers directly on their Macs in this thread. Don't do that. Use a virtual machine - ideally with Vagrant and a provisioner so you can easily reproduce your dev environment. There are tons of pre-configured provisioner scripts out there for whatever sort of environment you'll be setting up if you don't want to spend time learning how to do it yourself.
Your dev environment should always be as close to your production environment as possible. Don't litter your dev machine with random versions of web servers, various databases, scripting languages, etc.
PyCharm has a free community edition. You only have to pay if you want stuff like web development and database features.
Scroll to the bottom here to compare: https://www.jetbrains.com/pycharm/features/
Assuming this is Java, which I'm not overly familiar with, how about this (since Java 8)?
static boolean isAlpha(String s) { return s.chars().allMatch(c -> Character.isAlphabetic(c)); }
if
? meh, never needed it.
https://repl.it/@darkarchon/ExtrovertedGrossFeeds
def print(msg): ''' Because this isn't necessary either. ''' sys.stdout.write(msg + '\n')
class Else(Exception): pass
class If: def init(self, condition): while not condition: raise Else
def enter(self): pass
def exit(self, *args): pass
try: with If(True): print('this should print') except Else: print('this shouldnt print')
try: with If(False): print('this shouldnt print') except Else: print('this should print')
You see how the type that the function returns is IEnumerable
? Basically you can iterate across it like
foreach (var item in ShuffleIterator(someSource)) { ... }
What happens is it executes that function up to the yield, gives a value back which runs in the foreach loop that calls it, then when it comes to the next loop of the foreach, it goes back to the IEnumerable function and runs buffer[j] = buffer[i]
and continues until the next yield return which passes execution back to the foreach loop that called ShuffleIterator.
It's a very useful technique where you can iterate across elements that are lazily generated. It can be extremely useful for something more complex where you either have a huge collection of things you need to iterate across and returning a list would have a major impact on memory usage, or where you just want to do something with each result in turn without calculating every value at once.
It's called an iterator, and Python has a really close equivalent called a generator. You could do the same with a custom class if you wanted. You might instanciate some object which would take someSource
, then you loop on a call to an instance method like this while (shuffle_iterator.hasNext()) { var item = shuffle_iterator.next(); ... }
Pretty much the same thing, except you have to write more boilerplate to implement hasNext and next and it's not as easy to read. This way you just yield return
and it magically does the rest.
Someone correct me if I'm wrong. My C# is way more limited than my Python.
The python equivalent is here: https://repl.it/HG4x/0
It does the same exact thing.
Ahhh, did my response look aggressive? Sorry man, I was just pointing it out, didn't want it come out like that and no you didn't offend me. Yes, you're right but since he said it was all text based I think repl.it should do for now
just fyi, plain old ES + JSDoc comments (where required) gets you typing support in VS Code. You can also `npm i` typings for external libraries and still get the intellisense in vs code. I'm also pretty addicted to TS but one of the es6 projects I work on actually isn't so bad once we realized how much typing support we could get with just vs code and javascript. more info: https://code.visualstudio.com/docs/languages/javascript
I think enums are the wrong tool for the job here the fact that C enums allow for ORing is just a distraction, why not just:
namespace flags { constexpr int a=1, b=1<<1, c=1<<2; }
auto a=flags::a | flags::b;
At the end of the day you aren't enumerating anything, you are "orring" named constant integers, so why not use them?
Yup, those two facts definitely lead me to believe that MS would be a lead-runner in acquiring Unity. Not to mention their recent Unity-based promotions, offers, and contests for Windows devs
.NET Core 1.0 hit RTM June 2016, so I don't know what you're talking about. As for VSCode it's more than suitable, and it has comparable IntelliSense to Visual Studio. So please stop taking out of your arse.
It sure did: https://web.archive.org/web/20141202204103/http://unity3d.com/unity/faq#
Does buying Unity 5.0 entitle me to all 5.x releases?
Yes, you will receive for free the updates in the Unity 5.x release cycle.
Your friend will only be able to run your code if they have a compatible version of Python installed on their system. You can send them your .py file(s) to run on a Python installation.
Unlike languages such as C that are compiled to an executable machine code that can be run on compatible platforms (e.g. Windows 10 on Intel/AMD processors), Python is an interpreted language and requires a Python environment for execution.
There are programmes around that will attempt to convert Python code to executable code but these have compromises.
Alternatively, you could make the code available on a website like repl.it where it can be run in the browser or on a service like that offered by Python Anywhere. Free options for both.
Differences between Pro and Personal edition are here.
Looks like it's :
I imagine they all ship the open version considering you may not:
> share, publish, rent or lease the software, or provide the software as a stand-alone offering for others to use.
Needless to say, whoever is distributing that flatpak is in breach of the license agreement unless they have had prior permission from Microsoft.
multiple cursors is pretty dope, but every time i use it i get this feeling like i'm never quite sure if it's saving me more time than defining and repeating a quick keyboard macro would have.
nearly everybody knows about search forward / backward but i didn't really appreciate using them as cursor movement commands to jump around in the file until i started seeing other folks using search commands as cursor movement.
the thing that saves me a ton of time that i rarely see other people use is text registers. for a long time i was in the bad habit of just using the regular kill ring for these things, but registers is way faster when you're juggling several snippets and you don't want to have to sit there and M-y a bunch of times to get to the thing you wanted to yank back.