Forum: Ruby Apr 6th, 2009 |
| Replies: 4 Views: 2,715 I would say QTRuby or wxRuby, altough there are GTK and Tk bindings. |
Forum: Ruby Aug 3rd, 2008 |
| Replies: 1 Views: 2,277 Dude, are you actually looking at your code to find the error ?
class SayController < ApplicationController
def hello
end
end |
Forum: Ruby Jun 8th, 2008 |
| Replies: 13 Views: 8,727 I'm with you guys, Ruby must be in one forum with Python and Perl.
But no one from the admins here will notice that :(. |
Forum: Python May 4th, 2008 |
| Replies: 4 Views: 1,772 print "Your choices are: "
print "1) Play"
choice = raw_input("Choose your option(1) ")
loop = 1
if choice == '1':
dir_list = ['N','S','E','W']
print "Your on an adventure to find the... |
Forum: Python May 4th, 2008 |
| Replies: 4 Views: 1,772 Yes, it's indention problem.
print "1) Play"
if choice == 1:
ways = ['L','R','S']
ways = raw_input("Which way do you want to go(L,R,S)?: ")
elif direction == 'L':
print... |
Forum: PHP Apr 26th, 2008 |
| Replies: 1 Views: 432 Why don't you write little php script about this operation and executed on the server ? |
Forum: Python Apr 24th, 2008 |
| Replies: 2 Views: 447 click=0
def button_clicked():
global click
click=click+1
print click |
Forum: Python Apr 21st, 2008 |
| Replies: 6 Views: 848 I've just started learning Python :icon_cool: |
Forum: Python Apr 20th, 2008 |
| Replies: 6 Views: 848 You're welcome.
PS: My name is Mitko ;) |
Forum: Python Apr 20th, 2008 |
| Replies: 6 Views: 848 Hi.
If you have a list like that :
listunsorted = ['3 text_red','7 text_yellow','9 text_blue', '1 text_pink','3 text_black','6 text_orange','7 text_white']
... you can sort it like this :... |
Forum: PHP Jan 28th, 2008 |
| Replies: 4 Views: 881 http://www.w3schools.com/php/php_cookies.asp |
Forum: PHP Jan 28th, 2008 |
| Replies: 3 Views: 11,277 Hi.
You have to check if the value of the checkbox is set by isset (http://bg2.php.net/isset) function for example :
Sport : <input type="checkbox" name="sport" value="football" />
<?php
if... |
Forum: PHP Jan 13th, 2008 |
| Replies: 2 Views: 681 http://dev.mysql.com/doc/refman/5.0/en/getting-unique-id.html |
Forum: IT Professionals' Lounge Jan 11th, 2008 |
| Replies: 7 Views: 1,252 Dude, fix your web site and then offer services ;) |
Forum: PHP Jan 11th, 2008 |
| Replies: 22 Views: 1,835 Hi.
So, why don't you make such kind of query statement ? |
Forum: PHP Jan 11th, 2008 |
| Replies: 6 Views: 1,543 Hi again.
I cannot understand what's the problem to add WHERE clause to the queries ? $query = " SELECT ........ FROM table WHERE Product_Category = 'Acoustic treatment'; " |
Forum: PHP Jan 11th, 2008 |
| Replies: 6 Views: 1,543 Hi.
Is this the query you want to edit and put WHERE caluse :
$sql = "SELECT `Product_Name`, `Product_Description`, `Product_Picture`, `Product_price`, `Product_Category`, `Product_Pdf`,... |
Forum: PHP Jan 11th, 2008 |
| Replies: 8 Views: 928 Hi.
I use this function to validate name in my forms :
function valName($name)
{
$name = preg_replace(β/[\s]+/isβ, β β, $name);
$name = trim($name);
return... |
Forum: PHP Jan 10th, 2008 |
| Replies: 3 Views: 774 Hi.
If you don't want to download, install and configure Apache, PHP and MySQL go for WAMP ( Windows ) or XAMPP ( Windows, Linux, Mac OS, Solaris ).
The best resource for PHP is still... |
Forum: PHP Jan 3rd, 2008 |
| Replies: 1 Views: 1,143 Hi.
Tpl is extension used by Smarty and not only for web templates. Go to Smarty to see examples what template engine is.
http://www.smarty.net/
http://en.wikipedia.org/wiki/Web_template |
Forum: PHP Dec 30th, 2007 |
| Replies: 2 Views: 1,008 http://bg.php.net/function.trim |
Forum: PHP Dec 30th, 2007 |
| Replies: 5 Views: 1,018 Hi.
Here is two simple ways to do this :
First way is to use .htaccess file :
deny from 111.222.333.444
deny from 222.333.444.555
Second way is php code : |
Forum: PHP Dec 29th, 2007 |
| Replies: 3 Views: 1,299 Hi.
You can do this like this :
<?php
$file = $_GET['t'].".php";
include ($file);
?> |
Forum: IT Professionals' Lounge Dec 29th, 2007 |
| Replies: 2 Views: 2,064 Hi guys.
I've just watched 'Snakes and Rubies (http://www.djangoproject.com/snakesandrubies/)" , read many articles and still cannot choose my new framework.
Please, assist :-/ |
Forum: PHP Dec 29th, 2007 |
| Replies: 0 Views: 10,310 I wrote four simple functions to manipulate .htpasswd file ( Apache ). |
Forum: PHP Dec 28th, 2007 |
| Replies: 1 Views: 1,608 Hi folks.
I wonder if some of you has worked with xls class for manipulating spreadsheets with PHP.
The thing is that I have to get some values from 5 or 6 files and put them in HTML tables.
... |
Forum: PHP Dec 27th, 2007 |
| Replies: 1 Views: 887 http://en.wikipedia.org/wiki/Model-view-controller
http://www.symfony-project.org/
http://www.cakephp.org/ |
Forum: IT Professionals' Lounge Dec 25th, 2007 |
| Replies: 2 Views: 2,064 Hi folks.
I made some research on Rails vs. Django, but I didn't come to conclusion which is better to learn.
Basically I don't know either Ruby or Python. RoR became very popular last year, has... |
Forum: PHP Dec 13th, 2007 |
| Replies: 2 Views: 4,111 http://tinymce.moxiecode.com/ |
Forum: PHP Dec 13th, 2007 |
| Replies: 2 Views: 776 http://www.aditus.nu/jpgraph/ |
Forum: PHP Dec 6th, 2007 |
| Replies: 13 Views: 1,351 I think that you are not new to php, in fact I think you don't want to learn PHP. If I'm wrong show us some effort, not just "ask code". |
Forum: PHP Dec 5th, 2007 |
| Replies: 2 Views: 656 <?php
// your code here
?> |
Forum: PHP Dec 5th, 2007 |
| Replies: 6 Views: 8,755 And what format do you exactly want ?
picture1 | picture2 | picture3
==================
lablel1 | label2 | label3
==================
Three pictures in row next the three labels and next... |
Forum: PHP Dec 5th, 2007 |
| Replies: 4 Views: 1,753 I used for date '2007-12-12' and for shift 'R' :
<?php
$date='2007-12-12';
$shift='R';
$shift_table=$shift."_shift_duties";
$fileDir="TOP".$shift."Shiftlog";... |
Forum: PHP Dec 5th, 2007 |
| Replies: 6 Views: 8,755 Hi.
How can you expect to see "label" if in your code there is no $row['label'] for example.
I mean you print only $rows['FileDirectory'] and $rows['Graphic'] extracted form DB as I can see.
... |
Forum: PHP Dec 5th, 2007 |
| Replies: 4 Views: 1,753 Hi.
Here you forgot to put ; ...
$fileDir="TOP".$shift."Shiftlog"
This is working, but I don't know what exactly do you want :
echo"<a href='file:///N:/$fileDir/$fileID'>Link to text... |
Forum: PHP Dec 2nd, 2007 |
| Replies: 3 Views: 654 |
Forum: PHP Dec 2nd, 2007 |
| Replies: 10 Views: 2,469 Very simple so for but fast. Keep coding ...
Have you thought using SQLite as serveless DB ?
Tested on Windwos Vista Home Premium
Apache 2.2.6
PHP 5.2.5 |
Forum: PHP Nov 30th, 2007 |
| Replies: 5 Views: 709 The actual day or date ?
Current date : $today = date('Y-m-d');
echo $today; // This will print for example 2007-11-30
Current day : $today = date('d');
echo $today; // This will print for... |
Forum: PHP Nov 30th, 2007 |
| Replies: 4 Views: 977 Hi.
You cannot compare those two.
PHP is server-side programming language, providing dynimic web content. |