No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Student
- Interests
- Computers, Linux, Unix, Programming, German Music
- PC Specs
- Ubuntu 7.04 (Custom Kernel) Intel Pentium D 930 2x512MB OCZ DDR2 667 ECS 945G-M3 Nvidia GeForce 6500…
27 Posted Topics
Re: Pretty easy, I came up with this one liner for it: [code=python] print " ".join(["%s" % el for el in datalist]) [/code] Hope that helps. : D | |
Re: Well, I'm just curious. But, whats wrong with just mounting the card onto the operating system and using the filesystem to read/write to it? Are you trying to do something fancy/more complicated with it? | |
This class will allow you to take an RSS feed (local or remote) and "export" it to an easily managed/viewed array. Below is an example of it usage: [code=php] <?php include("exportrss.php"); // Parse XML/RSS 2.0 feed $feed = new ExportRSS("test.xml", "2.0"); $channel = $feed->get_channel_data(); echo "<h3>Channel</h3> <p> <b>Title:</b> {$channel['title']}<br/> <b>Date:</b> … | |
This snippet will allow you to separate or "explode" strings into vectors via a character separator or the visa versa. In which case you would take a vector and "implode" it into a string separated by a character. Also keep in mind that this requires the libboost libraries. This was … | |
Re: You can execute a block of PHP code in plain text directly. I would recommend taking a look at the [URL="http://www.php.net/eval"]eval()[/URL] function, as that will allow you to do what your trying to do (as far as I know). | |
Re: [QUOTE=jbennet;451647]Is .NETs CLI/CLR the same idea?[/QUOTE] Yes, I'm pretty sure that that's the case. I know for a fact that .NET requires a VM and I do a little bit of Mono and a runtime VM is required to run any mono application. | |
Hello all, I am building a website and on my search page I want to be able to display the relevance of each search result. I've searched all over the place but still haven't found any information on how to do this.And obviously im building this website in PHP. Any … | |
Re: For graphical text editors on Linux, I highly recommend Geany, which is a "lightweight" IDE and is exactly what it says. Its not very bloated at all but has the most helpful features of IDEs such as code completion and custom compiler/interpreter integration. Otherwise, I might also recommend Vim if … | |
Re: Well here are some tutorials i found on "Perfect setups" for both debian and ubuntu. They both have similar setup configurations to the ones mentioned in the first post. [url]http://www.howtoforge.com/perfect_setup_debian_etch[/url] [url]http://www.howtoforge.com/perfect_server_ubuntu7.10[/url] | |
Re: [QUOTE=addy999;478598]Well java dosen't work on c++ so i don't think the game will be up to the mark.....[/QUOTE] What does that mean? The bottom line is that C# will never replace C++, simply because of cross platform and speed restraints. With more and more mac and linux desktops out there … | |
Re: You could also use give [URL="http://trolltech.com/products/qt"]Qt[/URL] or [URL="http://www.wxwidgets.org/"]WxWidgets[/URL] a try, they're also popular choices for cross platform. | |
Re: I am a Sophomore in high school and I haven't had a major problem yet picking up SDL + OpenGL in C. I think OpenGL is far easier to understand than DX. I 'd also suggest taking a look at maybe a scene graph or rendering library similar to Ogre3D. … | |
Re: OOP is not a problem at all. In PHP5 there is full object orientation, I take advantage of all its features everyday. Even with many classes in PHP's standard API, there is both an OO way to use a module and a procedural way. Take the MySQLi module for example … | |
Re: Yeah but XNA is for C#.NET only as far as I understand it. | |
Re: I would recommend Pixel2Life if you are looking for some PHP tutorials. They have a wide selection of tutorials to choose from. Here you go if your interested. [url]http://www.pixel2life.com/tutorials/php_coding/[/url] | |
Re: [QUOTE=HLA91;459480]The reason I was woried about the .NET enviroment is that I wanted my programs to work on nearly all machines and I know a few of my freinds use Linux and I wanted to be able to send them the program to try out, thank you for telling me … | |
Hello all, In my python application I am trying to capture the output of stdin from a command that I run via popen2(). The python docs say that it returns a tuple of (stdin, stdout) however and i run: [code=python] result = popen2(command)[0].read() [/code] It only prints the results to … | |
Re: Umm I think hes more looking for a library or something to do one with, or an existing complete BB written in Python which he can make his own template/skin/user interface for.Although unfortunately I don't know of any off the top of my head. | |
Re: Use a simple PHP script with a static username and password and maybe a javascript prompt form, or standard HTML prompt form. [code=php] <?php $username = "myusername"; $password = "mypassword"; if (!isset($_POST['submit'])) { ?> <form method="POST" action="<?=$_SERVER['PHP_SELF']?>"> Username: <input type="text" name="username"><br/> Password: <input type="password" name="password"><br/> <input type="submit" name="submit" value="Login"> <?php … | |
Re: You cloud use the 'yes' command. For example: [code=bash] #!/bin/bash yes '10' | my_program; [/code] Would send the input of 10 to my_program. | |
Hello all, I've been having a ton of trouble with this custom gtk dialog I am trying to create. The code "runs" however I receive a GtkWarning message saying: [code] /home/maddog39/Projects/mmoalert/actiondialog.py:42: GtkWarning: gtk_box_pack_end: assertion `child->parent == NULL' failed self.message_hbox.pack_end(self.message_entry) [/code] For the life of me, I can't seem to figure … | |
Re: Well, first of all, what operating system are you running. If your running windows, I really couldn't tell ya. If you put Ubuntu Server or Debian or something on a beige box as a server, simply do sudo apt-get install proftpd (ubuntu) or su -c "apt-get install proftpd" (debian) and … | |
Re: Well first of all, what exactly are you trying to do. I searched all over the place for that operator and found nothing. | |
Hello all, Recently I've been hanging out on the IRC server and I have a registered nick, just like I do on every other server. Except today (October, 15) I tried to login with my usual password and I got repeatedly denied. I have XChat setup with custom user commands … | |
Hello all, My name is Alec Hussey, I'm a freelance open source developer and I am 15 years old. I develop for the NIX platform (specifically Linux and FreeBSD). I've known about daniweb for a while but haven't really looked into it before. Until recently I hadn't realized how much … | |
Re: [code] >>> from __future__ import braces File "<stdin>", line 1 SyntaxError: not a chance [/code] Haha! Favorite error ever! All versions of python have this "hidden feature." It's obviously making fun at C. : P |
The End.