- Strength to Increase Rep
- +11
- Strength to Decrease Rep
- -2
- Upvotes Received
- 267
- Posts with Upvotes
- 224
- Upvoting Members
- 145
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
General code-monkey and extreme metal drummer!
- Interests
- Drumming with Kinasis ( http://www.facebook.com/kinasis ) and teaching the drums.
- PC Specs
- Various ancient PC's running various GNU/Linux distros
Re: Here are a few of my favourites: Life, loathe it or ignore it, you can't like it. - Marvin the paranoid android (Hitch Hikers Guide To the Galaxy). I'm not afraid to die, I just don't want to be there when it happens. - Woody Allen Either he's dead or … | |
Re: Currently drinking copious amounts of my own blood! blech! :icon_eek: Don't worry, it's not some wierd satanic thing :icon_evil: and it's not one of those emo-style :icon_sad: self-mutilation moments either....No it's much more mundane than that. I went to the dentist and had a tooth removed yesterday! :scared: :S Unfortunately, … | |
Re: To be honest, I haven’t distro hopped since Linux distros started moving from the venerable Gnome 2, to the frankly horrific Gnome 3. And have never really paid any attention to what’s happening on distrowatch.com. During my last big distro-hop I tried lots of different distros. I ended up using … | |
OK, I have a very strange problem which recently started on my laptop (running Arch Linux) and it's got me really stumped! Basically my battery ran out whilst I was away from my laptop and it shut down... Which shouldn't really be a problem. But when I plugged my laptop … | |
Re: You are using the wrong operator in your if statements. You need to be using the == operator in your if statements, not the = operator! = is the assignment operator, used to assign a value to a variable. Whereas == is the test for equality. EDIT: In fact, the … | |
Re: You're quite close. You have a few errors in there. First off in main you're calling calculate, but you've defined the function as intCalculate. There's one straight off the bat. Also your for loop should be: [CODE] for i in intValues intAnswer += i [/CODE] NOT [CODE] for i in … | |
Re: @Dani: I started visiting less often around the time that all of the separate programming language topic forums were munged together. But this wasn't the cause of my decrease in activity. I'm more of an answers person. I come here to try and help others, rather than to ask questions. … | |
Re: There is no need to convert it to C. It is already C code. But it uses conio.h, which is a non-standard C extension that is not supported by all compilers. Remove the include for conio and remove the call to getch at the end and you're left with standard, … | |
Re: Depending on the actual content of myScript.sh, you might be able to use input redirection to use the file as input to the script: `./myScript.sh < /path/to/file` Or if file contains a list of file-names to search - you might be able to use xargs: `cat file | xargs ./myScript.sh` … | |
Re: From my understanding: Arrays are a thin wrapper on C style arrays. They can only contain objects of the same basic data-type, so they are more strongly typed - but they can only deal with numeric C-style data types. They are a lot more basic than lists or sets. Arrays … | |
Re: [QUOTE=khess;1254689]Someone left a comment on one of my posts similar to, "Linux won't be popular on the Desktop until it runs [URL="http://www.microsoft.com"]Windows[/URL] applications." To which I silently responded, "Huh? and, "You've got to be kidding me." We have [URL="http://www.winehq.org"]WINE[/URL] for running Windows applications and it works reasonably well for those … | |
| Re: > Of course, you need to restart bash after modifying ~/.bashrc. Actually you don't have to restart bash at all. You can re-load/re-source any of the changed config files in the running shell using the dot command ('.') which is a built-in. So after changing .bashrc, you can re-load it … |
Re: OK, so that's your homework. What part of it are you having a problem with? It's not too difficult. The instructions are pretty clear. It might help you to understand the algorithm if you indent the pseudo-code in the same way that you would indent C++ code: Input A C … | |
Re: I'm not at all familiar with the nosetests package, I've never used it. And from taking a look at its man-page online, I can't see anything that mentions a --html-file option. However, I do know shell scripting. So here's a quick, simple shell-script to execute all .py files in the … | |
Re: .ttf files are basically just fonts. In order to be able to use them, what you need to do is install the font on your system and then you should be able to use the font in any application that uses system fonts to display text, be they office/openoffice applications … | |
Re: Looking at [the projects sourceforge page](http://sourceforge.net/p/libnurbs/patches/7/) there is a patch to get the program to compile on gcc 4.3. I suggest you download and apply that patch and see if it builds on gcc 4.8. In case you don't know, you can install the patch using the following command in … | |
Re: That looks a lot like Python code to me. I think the OP has misposted in the C section. To compound things, he seems to have a load of line numbers included in the code he posted. I've just cleaned it up. Here's the OPs original python code: """ withdraw_money() … | |
Re: As a native resident of the UK, I think floods and high-winds are about the worst of it. I live in Somerset, very near the levels which were badly affected by flooding earlier in the year. Luckily where I live we've been spared from any flooding so far. But I … | |
Re: First you'll need to install some form of Linux distro, then you need to install and configure Apache web server, MySQL (Or some other database engine) and PHP, before installing Wordpress on top of that! But the exact instructions would depend on how you plan to use your server and … | |
Re: I listen to a lot of very different music, depending on my activity and my mood. Everything from classical, to blues/jazz/avante-garde, to pop, to hip-hop/electronica, to classic rock/metal/punk, right up to full-on extreme-metal and industrial/noise. Artists I listen to a lot, off the top of my head: Tool, Rush, AC/DC, … | |
Re: It's a nice start I suppose. There are a few bugs and other improvements that could be made here and there, to make it a bit more robust and more cross-platform. For starters, the biggest problem: You haven't included the listing for your PyEditorErrors module. That's a bit of a … | |
Re: As the old xkcd comic says: "sudo make me a sandwich" The files you listed are all owned by root. So you'll need root privileges in order to change the ownership of the files. Depending on which distro you have installed, either use 'sudo' at the start of the command, … | |
Re: I'm not really familiar with volatility, but at a guess, I'd say that it wants you to specify a dump directory using the --dump-dir command line option. So I'd guess you'd need to add `--dump-dir /path/to/dump/dir/` or `--dump-dir=/path/to/dump/dir/` to your volatility procdump command (depending on how it takes parameters to … | |
Re: OK well, ignoring all of the usual niggly things in the code... Like the fact that main should return int and not void. And the fact that it makes programs much easier to understand if you have meaningful names for variables. etc etc. ad nauseum. The most obvious logical error … | |
Re: I had a problem a few days ago whilst messing around with JACK (Jack Audio Connection Kit), trying to set up a recording session with Ardour on my machine running Kubuntu 14.04 (which like Manjaro, uses KDE as its desktop environment ). Somehow something went screwy and suddenly sound stopped … | |
Re: Great post Schol-R-LEA, but I have one very minor correction: > An array is not a pointer; it is a regular variable, just one which names a block of values rather than a single value Actually, an array is implicitly a pointer, it can be considered to be a pointer … | |
| Re: Not by choice, no! At home I've been using Linux exclusively for a good number of years now and I don't see myself ever switching to a non POSIX/non unix-like system. At work, where I have to use Windows and I get no say in that; I do exactly what … |
Re: I have a copy of 'version control with git' too. I also have 'pragmatic version control using git' by Travis Swicegood. Both are extremely good references for learning to use git. I like both books but IMHO, the 'pragmatic....' book is written in a more beginner friendly way. So you … | |
Re: Rubbermans suggestion is the best one for last line mode. But in command mode there are several methods of removing text other than using x. Assuming the cursor is placed under the first letter of the word you wish to remove; Other than using x, which removes a single character … | |
Re: The easiest way would be to install a python game/media library like pygame, pyglet or pySFML and use that to play your mp3. There are plenty of other media libraries with python language bindings. Search your Linux distros package lists for one of the above python modules, or you could … |