Forum Replies Created

Abhey Member

For those purposes of yours I would highly recommend c/c++, after learning c/c++ it will be a piece of cake to learn java, c#, VB (these programming languages are often used for creating crypters, viruses).

Without learning C or C++, you’re too far removed from the computer to really care or understand how the machine works.

After c++ you can easily learn java, java is mainly influenced by c++ and it’s a simplified version of C++, you can pick it up in a week or so.Which means if you are good in c/c++ other programming languages will not be a problem for you.

Abhey Member

And when the user logout. you can use following code to destroy or unset the value of the session.

session_destroy();
Abhey Member

Well you don’t need to use PHP. If you already know C/C++, then Java and the .NET (or as some friends refer to it, .NOTYET) languages should be easy to learn.

If you do want to use PHP, then have a look at the LAMP stack – that’s Linux, Apache, MySQL and PHP. There’s a Windows alternative, but WAMP sounds dodgy.

Look for LAMP tutorials online and take it from there.

Abhey Member

For starters, files get loaded differently in PHP (From the webserver) and HTML (From the clients computer). When you try to include a file through PHP, you will be talking to your webserver locally. This means that the entire disk is accessable (or so to say). When you’re trying to use dirname(__FILE__) (__DIR__ is available since PHP 5.3) the function will return the path of the file from the disk. It would look something like this on linux ‘ /home/user/public_html/ ‘. When an user visits your website in a webbrowser, all the files get loaded relatively from the URL.

So let’s take your link and see what happens:
The link would point to something like: ‘/home/user/public_html/includes/config.php’. (Since that’s what the function dirname returned.
This will make the web browser believe that it needs to go to

http://example.com/home/user/public_html/includes/config.php

Which, of course, cannot be found.

Now that you know this, it is easy to conclude what to point the link to. It would be /includes/config.php. As that is what the location of the file is relatively to the URL.

Abhey Member

Depending on the web server you’re using surely you can just deny *outside* access to the images/ directory?

Abhey Member

It looks like sensor problem. I don’t know what kind of sensors are used in lego mindstorm, and how thick are your lines. It might be that sensor exposure to object is to short. So try to slow down your robot. If then it will start to act properly, it was a sensor problem.

If so, you can try different programing approach, based on digital signal processing (if it’s possible in lego mind storm).

Abhey Member

MDF is the format that Microsoft Access uses. You can set up an ODBC connection, or with Visual Studio I think there’s a way to establish a connection via some GUI options. As for actual code, I haven’t touched .NET in ages, so I have no idea Smile

The best database is a tricky question, because that depends on scalability, cost, timelines, etc. For a simple setup, try a real database like MySQL or PostgreSQL.

Abhey Member

I have a asp.net page with a graph with the values from sql, and the sql is construct with the csv, this csv refresh every second with new data.

Abhey Member

To eliminate the nulls you can count the number of objects that aren’t null, assign that to a new String array and copy the Strings into the new array. You could also use an ArrayList object instead of a String array, with which you don’t need to specify a size in advance.

You could also do a null/blank check before printing out the words:

if (words[i]!=null && !words[i].empty()){
...
}
in reply to: SQL login check help
Abhey Member

why you need to match the UID? If it is because you only want a certain UID to have access to an admin control panel then I understand but if you are wanting to check the username then you can do what Barto suggested.

So you could have your SQL check that the username and password info is correct and if it is correct check whether it is a certain username.

in reply to: RealBasic programming
Abhey Member

It’s a really rapid and awesome language. You can write superiour programs really fast.

You know all people that talk about why you should develop in C++ while they write their faggotry blog entries about code standards. They are the ones that get paid 3000 per month to work on some boring crappy bank software (Office Space 1999-style) while throwing their life away on shiit. That is the typical professional programming, like programming massive 3G mobile phone networks, where your coding is so friggin negligible due to the size of the whole project, while it goes thru layers of error checking by other zombie programmers.

REALBasic is one of the innovative languages that still enables you to make professional applications where you actually see the progress. It’s a bit too simple on many areas, and it’s a really slow language compared to other ones.

* It’s for writing software not games.
* The IDE is the best one around, but it takes heaps of memory.

If you wonder anything specific, just ask and i’ll reply. I know this language very well.

Abhey Member

Try

Date::Date(char * date){
   day = atoi(strtok(date,"/"));
   month = atoi(strtok(NULL,"/"));
   year = atoi(strtok(NULL,"/"));
}

Tested example

#include 
#include 
#include 
#include 
using namespace std;
int main (){
    char date[11];
    cin >> date;
    int day = atoi(strtok(date,"/"));
    int month = atoi(strtok(NULL,"/"));
    int year = atoi(strtok(NULL,"/"));
    cout<< endl<

And working for me

Abhey Member

You are trying to create a data warehouse, which will be your database. The first thing you need to do is create a copy of the source database table is your new database, and appropriate database links. Then Oracle Warehouse Builder will easily help you to create the PL/SQL packages to import the data from the 2 source databases into your database. There are two types of data extracts, full extracts (truncates and reloads all of the tables data), and change extracts (only uploads changed data to data warehouse table, usually based on a ‘updated date’ field in the source table)

These packages can then be scheduled to run when required.

in reply to: PHP Display array data
Abhey Member

This will do exactly what you want

Abhey Member

There are many ways to GUI programming Via C++ !!

1- WinAPI the Main API and it’s really really painful
2- You Can use the .Net Platform C++/CLI and this means new syntax
3- 3rd Party Library Like QT (Easier , Cross platform and you will use the Native C++) Or Wxwidgets But I didn’t try it
4- MFC ( Microsoft Foundation Classes ) It’s kinda a wrapped WINAPI (Less Code than WInAPI)
Finally I believe using QT is the best !! Because WinAPI / C++/ClI – MFC Is only for Windows platform !!

QT is really Easy and it supports visual designer

Viewing 15 posts - 1 through 15 (of 110 total)