Stefano Mtangoo 455 Senior Poster

I didn't knew the question was confusing. However some geniuses have decoded it correctly. Here I go again. Suppose I want to use bass.dll which have functions written in C, is there special thing i need to include or just give it a go?

Thanks for suggestions and link. I really learn here at DW

Stefano Mtangoo 455 Senior Poster

Hi guys,
its me again. How do you write templates for your sites (without template engine)? Pure php or what? I want to hear how you do it

Stefano Mtangoo 455 Senior Poster

I know you would say ask to JS/AJAX forum! Don't worry, it isn't about codes, it is curiosity. I wan't to know if I can do Ajaxing using JQuery and PHP without writting all Ajax functions myself :)
Just that :-/

Stefano Mtangoo 455 Senior Poster

starting with myself:
I use Aptana for now but I don't like the way PHP/JS/HTML/CSS are dis-integrated (PDT??). I'm thinking to go back to Netbeans PHP

My favorite JS library is JQuery. It happen to be the first to test and loved it. I don't use any famous framework and.... I love my country ;)

Stefano Mtangoo 455 Senior Poster

I'm just curious to see what are favorite PHPers in terms of the following:
1. What is your favorite IDE (If you can tell why you love it, it will ice the cake)?
2. What is your favorite JS/PHP libraries (I would love to hear why)
3. What PHP framework do you use?
4. Anything else related?

Stefano Mtangoo 455 Senior Poster

Just Idea came to mind. What If I create C++ program that will launch .class/.jar file via commandline and once Java app is launched it quits?

Stefano Mtangoo 455 Senior Poster

Why bad Idea Peter?
I have easy eclipse running normal with no problem. What trick did they do? What do you suggest as alternative to this

Stefano Mtangoo 455 Senior Poster

Man, you qualify to teach young children rocket science ;)
Great, clear I love it! Anyone can illuminate anything first person didn't touch or add more
Thanks!

Stefano Mtangoo 455 Senior Poster

So I Just build and give a go? I know how to build, at least in code::blocks. Is There a code completion for wxWidgets in VSE?

Stefano Mtangoo 455 Senior Poster

I see alot of libraries written in C and I like C++ OOP way.
How can I use a given C library functions in C++?

Stefano Mtangoo 455 Senior Poster

Mhh, did you install any software? Check scheduled task whether there is cmd.exe shechedule to run with switches /shutdown /r
Also you can use anvir task manager to see what startup programs are and it alerts you any change doen since previous time

Stefano Mtangoo 455 Senior Poster

Thanks Ezza,
I modified a little bit to get three paralleled lines,
exactly what I needed

package com.steve;

import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Graphics;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class LinePaintDemo extends JPanel{

    @Override
    protected void paintComponent(Graphics g) {
        super.paintComponent(g);
        g.setColor(Color.BLUE);
        g.drawLine(getWidth()/2, getHeight()/2, 22, getHeight()/2);
        g.drawLine(getWidth()/2, getHeight()/2+10, 22, getHeight()/2+10);
        g.drawLine(getWidth()/2, getHeight()/2+20, 22, getHeight()/2+20);
    }

    public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
            public void run() {
                JFrame frame = new JFrame();
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                frame.add(new LinePaintDemo());
                frame.setSize(300,300);
                frame.setVisible(true);
            }
        });
    }
}
Stefano Mtangoo 455 Senior Poster

Check JMF

Stefano Mtangoo 455 Senior Poster

How do programs like easy eclipse get compiled to exe?
I'm learning Java in windows and would like to have exe rather than Jar. Also does exe depend on JRE's VM?

Stefano Mtangoo 455 Senior Poster

Most likely it is the UAC interferring and must be turned off. Or, you can get a different version of Ares, like Aresvista, which is made specifically for Vista and Windows 7 machines and won't have this problem.

I don't agree with you buddy :)
It is risky to turn UAC off. Just right click on the file/shortcut and go to properties and tick checkbox that says run as admin to elevate that program each time it runs. Don't turn off please ;)

Stefano Mtangoo 455 Senior Poster

Thanks Atli,
I'm yet to hear from others :)

Stefano Mtangoo 455 Senior Poster

Some C++ buzzwords a programmer need to grasp really boggles my mind. I try to understand them but I strangely, get dim understanding of them (am I tired? Need a vacation?). Anyway please help me understand the following big words in C++

1. Virtual Functions
2. Polymorphism

Thanks alot

Stefano Mtangoo 455 Senior Poster

Yes it can. It will also compile CLR/C++ Forms. Just google for VC++ 2008 Express and you will get the download link

Ok So what do I need to integrate wxWidgets. The Link I was talking about is about upgrade info from VS6 upwards

Thanks for reply

Stefano Mtangoo 455 Senior Poster

+1 for PHPBB. If doesn't satisfy you, either code one or buy one like vbulletin

Stefano Mtangoo 455 Senior Poster

VS++ 2008 Express edition doesn't require activation codes because its free. If you want the Standard or better editions then you will get the codes when you upgrade the compiler. I'm not sure if you qualify for the Upgrade price or if you have to buy the New User version -- check Microsoft's web site and it should tell you.

Can express edition work with DLL as well as wxWidgets?

Any helpful link to MS site. It is huge site

Stefano Mtangoo 455 Senior Poster

what do you comment about this

Stefano Mtangoo 455 Senior Poster

I always love to learn programing via Music/video players once I grasp the basics. How easy it is to do it, especially using windows DLLs or even Java libraries :)
Thanks

Stefano Mtangoo 455 Senior Poster

First, help me isn't good for heading. Please use something that explains a proble like "Help me find errors in this code". Also explain a bit what does you want to accomplish

Stefano Mtangoo 455 Senior Poster

Even here in Tanzania, they recommend it and all the labs are full of turbo C++. But it is not "enforced" it is that they are already there and amny of students here hates programming, why would they bother? After all they are after marks and not knowledge :(

I remember one lecturer giving us BC5 and guess what, I recoiled and used C::B and all who saw it loved it.

jephthah commented: yay :) +5
Stefano Mtangoo 455 Senior Poster

I mean those activation code for my VS6, will they work with VS08/VS10? or I will have to Buy entirely new IDE? Duh, that is expensive :cry:

Stefano Mtangoo 455 Senior Poster

But will my serial work with VS 2008/2010? Or is there cheap way to do so?

Stefano Mtangoo 455 Senior Poster

Hi all,
I plan sometime to jump into IT business. I plan some tools that I will need. I will go for web as well as Desktop. So far I know that I need to know HTML/CSS/PHP/Javascript and hence I know I need IDE that will support those plus some libraries like Jquery/Moo tools. Here are the candindates (randomly written):
1. Dreamweaver
2. phped
3. Codelobster
4. Zend Studio
5. Any other

Also I know the beauty of flashing webs :) So I have
1. SwishMax
2. Sothink Easy Flash
3. Adobe Flash

So what do you suggest I should do/go for? I have limited pocket so I need a feasible but good combination

Thanks

Stefano Mtangoo 455 Senior Poster

I have genuine VS 6 Keys as well as accompanying MSDN library. But VS set up CD is missing :(
Where can I download VS 6 setup? I have wondered in MS site and all I see is no VS6, juststories about it!

Stefano Mtangoo 455 Senior Poster

Please explain these to me as I have not understood what they are doing:

#
EventQueue.invokeLater(new Runnable() {
#
public void run() {.....}
Stefano Mtangoo 455 Senior Poster

One weakness of PyQT apart from licencing issues, is lack of third party documentation. Try this Jan is good at writting tutorials

Stefano Mtangoo 455 Senior Poster
Stefano Mtangoo 455 Senior Poster

start from scratch is the best option. Just begin with basic needs and build more options as you go. That is what I have learned to do

Stefano Mtangoo 455 Senior Poster

Thanks alot,
I'm checking

Stefano Mtangoo 455 Senior Poster

Hi all,
I need to draw simple lines on JFrame/JPanel. What is the easiest method to go? Also what do I need to display an image on JFrame/JPanel

Thanks

Stefano Mtangoo 455 Senior Poster

Thanks,
I'm checking the link you posted

Stefano Mtangoo 455 Senior Poster

Check wxWidgets

Stefano Mtangoo 455 Senior Poster

Hi all,
to strengthen my C++ knowledge I want to code a DLL to record sound and write it to a file. So Far I want it to be windows based may be later Linuxed. So here is my first step, make simple program that does that. But I have tried to google for sound recording with C++ in windows without avail. Please someone to give a hint on sound recording in windows

Thanks :)

Stefano Mtangoo 455 Senior Poster

thanks!

Stefano Mtangoo 455 Senior Poster

Check bass

Stefano Mtangoo 455 Senior Poster

Thanks Guys,
though its true I gave a little laugh at the Adapost. It is true and fun :)

Hi,

I think you should involve yourself in some projects, whether it of your own ideas, or participate with some other programmers to make this happen, and I think you'll keep learning, learning, and learning because java is really big and it covers many sides so, you should decide which side you want work on it to gain alot of experience.

I hope this benefits you. Happy coding :)

[EL-Prince]

Mhh! I only Know web side and Application side. Any other side??

Stefano Mtangoo 455 Senior Poster

Next time, please just click the 'flag bad post' link if you see no code-tags, and someone will fix it. Now we have the same code posted twice, only yours has no indention.

I thought it was for spammmers scheduled for delete

Stefano Mtangoo 455 Senior Poster

also dont use void main
accoring to salem void Main(ers) are doomed TO ka-BOOOM ;)
use soemthing like this

int main(){
//soem codes here
//..................
return 0;
}
Stefano Mtangoo 455 Senior Poster

please use tag code and explain what you are trying to accomplish

#include<stdio.h>
#include<conio.h>

struct llist
{
int info;
struct llist *next;
};

typedef struct llist linked_list;
linked_list *start=NULL,*new1;

void main()
{
int menu;

void ll_insert()
{
char ch;
do{
new1=create_node();
if(start==NULL)
start=new1;
else
addnode();
fflush(stdin);
printf("Do you want to add one more row(y/n):");
scanf("%c",&ch);
}while(ch=='y' || ch=='Y');

}

linked_list *create_node()
{
linked_list *new1;
new1=(linked_list*)malloc(sizeof(linked_list));
printf("\nEnter the info:");
scanf("%d",&new1->info);
new1->next=NULL;
return new1;
}

void addnode()
{
linked_list *prev,*ptr;
if(new->info < start->info)
{
new->next=start;
start=new;
return;
}
for(prev=start,ptr=start->next;ptr;prev=ptr,ptr=ptr->next)
{
if(new->info < ptr->info)
{
prev->next=new;
new->next=ptr;
return;
}
}
if(ptr==NULL)
{
prev->next=new;
}
}

void ll_delete()
{
linked_list *prev,*ptr,*temp;
int info;
printf("\nEnter info to be deleted:");
scanf("%d",&info);
if(start->info==info)
{
temp=start;
start=start->next;
free(temp);
return;
}
for(prev=start,ptr=start->next;ptr;prev=ptr,ptr=ptr->next)
{
if(ptr->info==info)
{
prev->next=ptr->next;
free(ptr);
break;
}
}
if(ptr==NULL)
{
printf("\nElement not found!!!!");
getch();
}
}

void ll_traverse()
{
linked_list *ptr;
if(start==NULL)
{
printf("\nLinked List is empty!!!!");
return;
}
for(ptr=start;ptr;ptr=ptr->next)
{
printf(" %d "ptr->info);
}
getch();
}

do{
clrscr();
printf("\n1.Insert\n2.Delete\n3.Traverse\n4.Exit\nEnter your:choice:");
scanf("%d",&menu);

switch(menu)
{
case 1:
ll_insert();
break;
case 2:
ll_delete();
break;
case 3:
ll_traverse();
break;
case 4:
return;
}
}while(menu!=4);
}
jephthah commented: don't do this -1
Stefano Mtangoo 455 Senior Poster

Hi there,
please point me to decent 2D plotting library. Compatibility with QT/wx is an added advantage.

Oh! I forgot to mention it should be free!

Stefano Mtangoo 455 Senior Poster

Thanks guys for good advices and are good. Actually I'm working in Telecommunication Engineering Field as an Engineer. So Programming is Just my hobby. Nevertheless I want to be expert, though I don't want to know everything

More advices?

Stefano Mtangoo 455 Senior Poster

I don't want to know each and everything in C++, but I wan't to know what do I need to be able to Code a good big app like Notepad++?

I mean what it takes to be a best C++ expert?
(Or how did the Ancient Dragon became expert ;) )
Thanks guys & girls

Stefano Mtangoo 455 Senior Poster

I have asked the same Question on C++.
So far I have moderately mastered PHP a little and more of Python. I want now to add up Java/C++

So what I need to know to be Java expert in Web and Desktop Applications? Are they two different beasts?

Thanks Guys

Stefano Mtangoo 455 Senior Poster

Glad I was of help!
Tell your friends about Daniweb.
Don't forget to mention Naveen ;)

nav33n commented: haha :D +6
Stefano Mtangoo 455 Senior Poster

@evstevemd,
You missed "/" in myfoldername variable. So it will create the sql file as,

@futhonguy,
You can use evstevemd's code.

$myfoldername = getcwd()."\\MyBackups/";//your folders name 
mkdir($myfoldername , 0777);
$handle = fopen("$myfoldername".'db-backup-'.time().'-'.(md5(implode(',',$tables))).'.sql','w+');

Notice the "/" in $myfoldername.

Thanks Naveen
It is very subtle error ;)

Stefano Mtangoo 455 Senior Poster

What about this?

$myfoldername = getcwd()."\\MyBackups";//your folders name 
mkdir($myfoldername , 0777);
$handle = fopen("$myfoldername".'db-backup-'.time().'-'.(md5(implode(',',$tables))).'.sql','w+');