Our new Indie Games subforum is now open for business in G&T. Go and check it out, you might land a code for a free game. If you're developing an indie game and want to post about it,
follow these directions. If you don't, he'll break your legs! Hahaha! Seriously though.
Our rules have been updated and given
their own forum. Go and look at them! They are nice, and there may be new ones that you didn't know about! Hooray for rules! Hooray for The System! Hooray for Conforming!
PA Programming Thread :: PAdev.net - Need hosting for a service of yours? Check it out.
Posts
Ooooh
Code sections
Hey hey hey hey
If it's not too much trouble, are multiple inline images possible?
Check it out at their site. If you're familiar with IntelliJ, the major keybindings are the same, so you should be able to slip in easily to the extra features.
e: If you ever look at my source code and go "Huh, his source code is very pretty...nicely aligned, in nice regions and organized well, doesn't even have any extraneous using statements!" that's because of ReSharper.
Diablo 3 Profile
Done, and now images don't show up automatically, you need to insert them using the button.
It will put the img tag in for you.
The PhalLounge :: Chat board for Phalla discussion and Secret Santas :: PhallAX 2013
Critical Failures IRC! :: #CriticalFailures and #mafia on irc.slashnet.org
Awesome - thanks very much!
Also, when using metatables that override __index and __newindex in complex ways, it really behooves you to use lua_rawget/lua_rawset in almost every case, unless you know for a fact you want the metatable to trigger...had some fun to track down access violations earlier because I wasn't doing rawgets, and my __index was being triggered, and then thinking what I was looking for was something .NET side, and it got all kinds of out of whack.
Going to sort out how I want to handle floating of the images when I get home.
The PhalLounge :: Chat board for Phalla discussion and Secret Santas :: PhallAX 2013
Critical Failures IRC! :: #CriticalFailures and #mafia on irc.slashnet.org
How would you guys go about that? On one hand, writing them Lua side is probably easier for maintenance, but on the other hand execution is likely slightly faster C# side and it keeps that kind of cruft out of the pristine scripting environment I'm trying to create.
e: Actually, there is one clear advantage to the C# side I didn't think of, and pretty much tips the scale towards keeping them C# side: I can debug them.
The first nice feature is multiple cursors. You can put in a whole bunch of cursors in random places, and they all work exactly like you'd expect. Movement, selection, text formatting operations, etc. Ctrl+D will find the next instance of the selected text and put a cursor there. It's really great if you have to work on old code that has a ton of repetition. I was saddened greatly when I learned that Vim doesn't support such dark magick.
The second nice thing is that you can script it with normal Python, and it's extremely scriptable. Someone built a package manager inside the editor. If I have to (for example) edit a Powershell script, and I realize ST2 doesn't have syntax highlighting for that, I hit Ctrl+Shift+P, and type "pac i<enter>power<enter>" (the text-based menu system has lazy autocomplete) and I've got Powershell syntax highlighting three seconds later. I'd have lost ten minutes mucking around with things in Vim.
Then there's a bunch of small things that are just nice to have, like the code navigation dropdown, good defaults for everything, live regex selection, the minimap, showing invisible characters on selection, and an incomplete Vim mode that does what I expect a decent amount of the time
But I still haven't paid the $60. Because Viiiiiiiim.
Blog | Twitter | Free games | Unmaintained backloggery
There are Lua debuggers: http://www.cushy-code.com/grld/manual.html is one I've used. Not 100% sure it will play nice with C# though.
C# is not always faster, if you use LuaJIT as the script engine, however the JIT compiler does break tracing on native C calls, which there are likely to be a lot of.
For Lua stack balancing I've tended to just use a simple class that on destruction auto-pops everything, not sure how easily you can do that but you can always just call lua_settop() if you've saved the top earlier
lua_settop feels like cheating though
At any rate, most of the stack imbalance issues were just from me not having touched the Lua API in a while and having to remember what pushes, what pops and when I have to manually pop. It's coming back to me now.
I turned that off intentionally as it mucks with things, in particular the use of the @ sign.
Use <a> tags explicitly, thanks!
The PhalLounge :: Chat board for Phalla discussion and Secret Santas :: PhallAX 2013
Critical Failures IRC! :: #CriticalFailures and #mafia on irc.slashnet.org
So question. Seeing as Gnome is talking about scripting. I am writing a piece of software to do testing. Most of the testing will be automated and I was planning on using a scripting language for it. I don't need anything complex for it. The ability to bind function calls to C# calls, do some kind of looping, and some boolean logic for if then else. I was thinking of using Python however I fear that the people who will be writing the scripts will make the script do too much or would not be willing to learn the syntax and end up expecting me to take care of their work. Anyone have any thoughts? The software is for internal use only and it needs to be done quickly. I don't really have the time to write up something grand. IronPython stuck out for this reason though I have never used it. If C# 4.5 was released I would be using the C# scripting language. (Plus async, so awesome)
Maybe I'll pay for it when I get mo' money.
Also code sections make me happy in the pants. Now all we need is highlighting.
e: Also everyone should listen to the song in my signature. It's a great song to program to, in my opinion.
"If you're going to play tiddly winks, play it with man hole covers."
- John McCallum
I sympathize. I spent a year or so with emacs and I had a difficult time letting go. I still use the cursor shortcuts whenever I can.
I think in the end I just prefer ease of use, accessible features, and prettiness (oh the prettiness) over text editing wizardry.
if (imageSelector.getNoImageRadio().isSelected()) { //Remove the image, so have a blank ImageIcon.. path = ""; imageIcon = new ImageIcon(path); return imageIcon; }This is a snippet of my if statement. Basically I set the path to nothing, and then create a new ImageIcon... That does nothing. So I've tried:
if(((ImageIcon)prop.getValue()).toString().isEmpty()){ jButton.setIcon(null); }(Which Google suggested I do) But it still did nothing. What am I missing here?
You mean how it doesn't handle tabs at all and just takes whatever you had in your editor verbatim?
Yeah! It should magically space everything perfectly for me.
The only real problem with emacs is that it doesn't integrate well with screen. If I had to start over, I'd learn vim instead, only for that reason.
OK, two reasons. eshell can't handle redirection correctly, which annoys the hell out of me.
Hype? What? I don't even claim it's better than notepad. Just what I ended up using and unlikely to change.
Come again? I use a vertical split emacs in a screen tab for over 90% of my development.
What possible issue do you have?(PS: rebind screen escape if it's shortcuts, .screenrc is your best friend)
It's exactly the overlap in control characters that's annoying. Yeah, I know I can rebind them (and I have) but I want it to work without having to do anything. Basically screen should change it's defaults to be emacs friendly.
Obviously that last bit is tongue-in-cheek.
I use the current version of ultraedit every day. It's one of the few editors with easy to use FTP support (i'm editing/saving to an ftp directory on a unix server). It also has a wordfile for pickBASIC
Unofficial PA IRC chat: #paforums at irc.slashnet.org
Yet you told someone they should whip themselves for changing away from emacs. That's the kind of hype I'm talking about. Emacs isn't that great that people should flog themselves for deciding to not use it.