Reputation: 7578 Deity
- Active Posts:
- 12,795 (10.39 per day)
- 19-March 11
- Profile Views:
- Last Active:
- 24 minutes ago
- Viewing Topic: Java - DeckOfCards program that ...
- OS Preference:
- Favorite Browser:
- Favorite Processor:
- Who Cares
- Favorite Gaming Platform:
- Who Cares
- Your Car:
- Who Cares
- Dream Kudos:
- Expert In:
- Java, python, smartassery
Posts I've Made
Posted 1 Aug 2014I'm trying to put all this in a code,
"A code"? Read this. Thank you.
(sorry, pet peeve)
I would suggest you start by writing a function that performs your subtask: given a set of indices and a string, return the set of indices that point to an 'A'. You can do this with a list comprehension, but I would write it as a function in order to communicate your intent more clearly. (ie, put a name on it)
Once you have that function, it shouldn't be hard to apply it and get the result you want.
Posted 1 Aug 2014Watched a few minutes of the first one. Life's too short to listen to people who talk that slow and to such little effect talking about things I'm already familiar with and trying unsuccessfully to be funny about it.
Honestly, if you want people to discuss some topic, it might be better to get something that's a little more focused - say, some idea or question that you can pose in a single paragraph, or maybe three at the most.
Posted 31 Jul 2014Before I go into this, I should say that many people consider your request to be a breaking of good functionality. You might want to try to get used to the way emacs handles indents - for most languages, emacs is very good at getting the indent right. However, since you're wotking in PHP, I can see how this would be a problem. PHP and emacs are a sort of legendary problem... oddly enough, the people who are really good at customizing emcas never seem to have a yen to work in PHP. Have to ponder that a little.
Anyway. I'm not really an emacs guru, so this is a bit of guesswork and poking around. Keep a backup copy of your init file just in case.
I see some functions in your init that I don't recognize and aren't part of my EMACS installation. It might be that setting electric-indent-mode to nil, or setting one of the other indent settings to a non-nil value might do the trick.
If those fail, then fall back to existing functions. What you want is to bind the tab key to the tab-to-tab-stop command. This will indent to the next tab stop each time the tab key is pressed, which I think is what you're looking for. (it's ordinarily bound to M-i, so you can try it out)
If you add
(global-set-key (kbd "TAB") 'tab-to-tab-stop)
to your init file, probably after those tab functions that I don't recognize, good things might happen. If that fails, report back what happened, and include the version info on your emacs install, plus anything interesting that you've done to tweak your install, and we'll see if we can figure it out.
Posted 31 Jul 2014modi's right - there are many languages because there are many programmers and many sorts of programs.
Python and java are popular choices for beginners, and they're both reasonable places to start, but there are countless others.
Posted 31 Jul 2014Okay So basically I have the application but I need to implement a ticket system. I have the basics of the application like the login and saving of the accounts and of course the chat system, but I just don't know where to start with the ticket system. Any help would be nice like some guide lines.
Well, it sounds like you need help working out a design. For a complex system, doing the design first is a really good idea. Fortunately, there are some people who can probably help you do this - but they're going to help you. You're going to do the heavy lifting, they're just going to kibitz from the side.
Start by determining the requirements. What is it supposed to do? Who are the human actors in this system and how do they interact with it? What are they trying to do, and how do they go about doing it? If you can describe the interactions you want to implement, this will make it easier to actually implement them.
QuoteI wish I was allowed to post my skype and email so the feed back would be faster though.
This is a programming forum. The idea is to facilitate public discussion. Diverting that discussion into private channels defeats that purpose.
- Member Title:
- Age Unknown
- Birthday Unknown
- Boston, MA
- Translation (Portuguese, German, Spanish), accordion (Hohner Black Dot B/C), flute (Casey Burns, Skip Healy 3-piece), homebrew (beers and meads)
- Full Name:
- Jon Kiparsky
- Programming Languages:
- Java, python, scala, perl, c, various lispen, bits and pieces of this and that