Stefano Mtangoo 455 Senior Poster

Hi,

I am looking for some advice here.I have basic knowledge of C++ and regularly write programs in it.I haven't tried anything related to networking in it.I want to start now and I'm clueless about the possibilities.I am novice in knowledge of networks and people have recommended many books but I am able to actually see any options in networking.What are the ways I can mix programming knowledge and networking ? What are the books that will help me in this?

Prasanna.

I think the best way would be using third party library to avoid problem of coding for multiple platform issues. these are few libraries I can think of that support networking:

1. POCO Library
2. Boost Library
3. wxWidgets (+GUI elements)
4. QT (+GUI elements)
5. GTK+/GTKmm (+GUI elements)

Stefano Mtangoo 455 Senior Poster

use code tag and post only relevant tag. If you want attach the php file in zip file

Stefano Mtangoo 455 Senior Poster

If session is stored in a filesystem it is stored as plaintext and every user having access to directory can read the session data (at least root and sudoers). If it is saved in a database only users that have access to database and appropriate permisions can read the data.

This now makes sense! I'm trying to understand the essence of MVC framework to have such folder. What is it for?

Stefano Mtangoo 455 Senior Poster

store your session into the database. it is more secured.

Why is it more secure in database than in .htaccess protected personal folder?

Stefano Mtangoo 455 Senior Poster
Stefano Mtangoo 455 Senior Poster

I have Ubuntu tested on old Presario and HP ProBook. Both went fine. Bu anything bigger than that. I think any modern Laptop is pretty well supported

Stefano Mtangoo 455 Senior Poster

Also, in case it is malware or something like that try Avast and do a boot schedule scanning

Stefano Mtangoo 455 Senior Poster

tried system restore?
Window Superkey+R and type in rstrui
Follow instructions!

Stefano Mtangoo 455 Senior Poster

I'm making personal MVC framework skeleton I plan to build all sites on it (reserve your question pls on why not CI or CakePHP et al). Now Thinking of session security, one option is database. I was wondering whether storing session data in root_app/tmp/sessions/ would be better as/more than database! I was asking from security perspective
Thanks!

Stefano Mtangoo 455 Senior Poster

Go to google, find OpenOffice, get the source code, and send it to your teacher xD

:)

Stefano Mtangoo 455 Senior Poster

thanks but what to do with this hell assignment:@

what do you want to edit?

Stefano Mtangoo 455 Senior Poster

thanks Mike,
my phone does not display codes well, but I will be on PC few hours to grasp the point.
Again thanks!

Stefano Mtangoo 455 Senior Poster

AFAIK, bare C++ wont do it!
Find specific library like OpenCV or the such. Wxwidgets have image manipulation functionality. But for small task it is an overkill. Or may be compile wxBase only library

Stefano Mtangoo 455 Senior Poster

Starting from second paragraph, I'm watching Mike speaking in tongues ;)
Seriously now,I don't know Visitor pattern or invent control. Let me google.
May I ask, if you can help me with a conceptual example? I'm get stacked!

Stefano Mtangoo 455 Senior Poster

Hi,
I'm making an MVC pattern based app and I though I would learn the principles first. I have reached a stage I need to connect the three elements. When Controller receives user action It calls right model. Now I need to register callback function so that when Model is done it will update view using that callback. Now I'm struggling in doing this and I need to make generic class that will handle all Model registration. Where do I begin to write such a class?
Sorry if something is unclear. Just point it out and I will make it clear.
Thanks!

Stefano Mtangoo 455 Senior Poster

you can Check Jan Bodnar's tutorial

Stefano Mtangoo 455 Senior Poster

AFAIK its in the boost distribution along with all of the other boost files.

AD,
would you point me directory name in Boost?
Thanks and I will be searching

Stefano Mtangoo 455 Senior Poster

Anyone who knows how I can download boost library manual in zipped html chm or pdf?
I'm not always working with internet and I will be working with some boost libs(latest).
Thanks

Stefano Mtangoo 455 Senior Poster

Because the original work was done using DOM and the spec has changed and I need to support the change without rewritting the entire 1000 lines of code.

Then rewrite those functions/classes using simpleXML

Stefano Mtangoo 455 Senior Poster

Google please---> http://tinyurl.com/y9zjmhj
Anyway it is PHP framework
More lean on Zends web
http://framework.zend.com/

Stefano Mtangoo 455 Senior Poster

Hey evstevemd, thanks for the reply.

I'm trying to update multiple values though?

http://www.1keydata.com/sql/sqlupdate.html

Stefano Mtangoo 455 Senior Poster

You should just check if the file has the sizes you want, and if not, then the user should change the values on his own computer

This is perfect solution. That should be "policy". User should not upload files greater than you want them to :)

Stefano Mtangoo 455 Senior Poster

$sql="UPDATE stock WHERE StockID= '$id' (Category, HDDType, HDDConnection, HDDSize, Make, Model, Comments, Date)

Is supposed to be:

$sql="UPDATE stock SET Category='3' WHERE StockID= '$id'

http://www.1keydata.com/sql/sqlupdate.html
http://sqltutorials.blogspot.com/2008/11/sql-update-multiple-columns.html

Stefano Mtangoo 455 Senior Poster

your own linux or your own linux distro?

Stefano Mtangoo 455 Senior Poster

so can you guys help me in the matter:(

an its OK if we don't use much graphics

please please help me i have to submit this on first of September.:confused:

Post your assignment. Either you are not a beginner or you have misunderstood the assignment. If you are a beginner and that is assignment your teacher gave you then either he/she is insane or he/she wants to catch people who cheat!

Stefano Mtangoo 455 Senior Poster

Welcome,
Student should work right?
We offer assistance not doing assignments and homework

Stefano Mtangoo 455 Senior Poster

9.04? what stops you form upgrade?

Stefano Mtangoo 455 Senior Poster

login as root
to create folder/file

sudo -i
mkdir foldername
nano myfilename.txt (Once done press Ctrl+O and Ctrl+X)
Stefano Mtangoo 455 Senior Poster
Stefano Mtangoo 455 Senior Poster

Mark it solved then :)

Stefano Mtangoo 455 Senior Poster
Stefano Mtangoo 455 Senior Poster

scrolling down you will find exact tutorial for rating system
http://phpacademy.org/videos/index.php?all

Stefano Mtangoo 455 Senior Poster

I have been learning PHP MVC pattern and it is pretty cool. have almost finished app and I can see how mess you can make a code without good design.
Now can MCV be applied to C++ apps? Where does Plugin manager/Plugins go if that is even possible?In model or controller?
Thanks!

Stefano Mtangoo 455 Senior Poster

Hi evstevemd,

Thank you for your reply. But there's a lot of records needs to pull out from db tables. Is this possible? We're using an MVC structure.

If you need to use big data, like say tables, then do page catching. Store let say range of data as session variable and write them as let say cache.html with tables. If the data in session is not changed then use catched file if changed pull and cache data!

Stefano Mtangoo 455 Senior Poster

Write C++ editor with scintilla? Use wordpress plugins?
Your question is not even clear

Stefano Mtangoo 455 Senior Poster

Using globals is bad Idea. If data is not too heavy, you can use sessions to store them persistently!

Stefano Mtangoo 455 Senior Poster

Latest in repo is netbeans 6.9
If you insist on installing NB7 then download the bin file and then cd to the directory with netbeans you downloaded:
cd /home/xyz/Downloads (Assuming you put it in Downloads folder)
chmod +x netbeans_xxxxx.bin
sudo ./netbeans_xxxxx.bin

Stefano Mtangoo 455 Senior Poster

I have just install Ubuntu as a newbee and I don't even know how and were to start Gnome or any other program, I'm a windows user and now I'm lost. I have got the desk top up but where do I go from that.

neville

Let Old thread die :icon_cool:
Start new thread. Meanwhile check this PDF (For Ubuntu 10.10)
http://www.ubuntugeek.com/download-free-ubuntu-10-10-maverick-meerkat-pdf-guide.html

Stefano Mtangoo 455 Senior Poster

`Special Info` text,
`debtor_ID` int(11) NOT NULL,
KEY `vin` (`vin`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Check at that red, what kind of key it is?

Stefano Mtangoo 455 Senior Poster

Sorry guys I have been out of coverage for a while. Thanks for your answers. Let me check your answers!

Stefano Mtangoo 455 Senior Poster

I'm not sure where this post fits, but after staggering here and there I Thought I would throw it here!
I find difficult to make coordinates by hand (Not very good at x-y-z though I know the XY coordinate). Is there a tool that will allow you to draw let say a cube and it will give the coordinates for you? I use Ubuntu, but I will not mind if there is windows version!
Thanks

Stefano Mtangoo 455 Senior Poster

I opened the update manager to see whether there is an option for upgrading my system or not. There is an option for updating apps, not the system. So, this means that I'd have to upgrade manually(downloading the version I want and then installing it and so on..).

follow instructions in
http://www.ubuntu.com/download/ubuntu/upgrade

Stefano Mtangoo 455 Senior Poster

So they how can it have 0.00gb of room? :/
Will hopefully get another chance tonight to install wine, and them steav/eve, see if they work.
Would you guys recommend a nvidia or an ati card to use with linux for gaming (not sure who are better driver wise)

Mh! I think none but the latest. Both are doing well though judging from hearing in forums, NVIDIA seems to be famous!

Stefano Mtangoo 455 Senior Poster

I've got ubuntu and win7

try Ubuntu classic and see if it runs well. May be your graphics cards cannot run unity. If that is the case, there is unity 2D

Stefano Mtangoo 455 Senior Poster

Nope, wasn't doing anything other than theoretically trying to install eve.
Did only have 20-30gb left on the HDD though, since I was temporarily storing some media on there, however I've now obviouisly with the reinstall got rid of that, so should be around 400gb worth of potential space, how much does wine take for the Cdrive as default, or is it dynamic?

it is dynamic

Stefano Mtangoo 455 Senior Poster

Just an update on my system at the moment, it does not take me to the desktop enviroment. But, I can access the ubuntu BIOS screen. OK, what happens when I start my laptop now is that it loads till the boot-loader screen then I choose ubuntu to run then the screen looks unpleasing. It seems to be messing around with my graphics card which apparently is not loading properly.

What can I do to solve this? Before this happens, I played around with boot loader manager ( changing background images and things)

What Os and desktop enviroment do you have?

Stefano Mtangoo 455 Senior Poster

Yeah, well
I'm going to give wine another go tonight, but last time when I tried it, I tried to then install eve, and it said there was 0.00gb room?
And so I couldn't do anything, any ideas why that might happen?

Any Torrent in download? Mythtv? Vuze?

Stefano Mtangoo 455 Senior Poster

Replace the code

mysql_query("UPDATE stk SET dclaim = CONCAT(dclaim," . $claim_select3 . ")  WHERE id = " . $upc_key . "") or die(mysql_error());

with code below and tell us what it displays:

echo "UPDATE stk SET dclaim = CONCAT(dclaim," . $claim_select3 . ")  WHERE id = " . $upc_key . "";
die();
Stefano Mtangoo 455 Senior Poster

SQL query:

include_once "connect_to_mysql.php";
$result = mysql_query("SELECT * FROM stk WHERE id = 288") or die(mysql_error());
while ($row = mysql_fetch_array($result)) {
$id = $row;
&pic = $row;
$pic2 = explode("-",$pic);
$expdate = $pic2[3];
$expdat = substr($expdate,2,2) . "/" . substr($expdate,4,2) . "/" . substr($expdate,0,2);
$dclaim = $row;
}

value in $expdat = 06/09/12
value in $dclaim = <span style=\"background-color:yellow\">Expires $expdat. </span>

The hole in my script looks like this:

< div>

<p style="font-size:9px;margin:0px;">Something that says "Expires 06/09/12." with a yellow BG </p>;
</div>

I tried to get the display i need with:

$var = eval("return '" . $dclaim . "';");
echo '<p style="font-size:9px;margin:0px;">' . $var . '</p>';

I get (without yellow BG): Expires $expdat.

Instead of what I need (with yellow BG): Expires 06/09/12

What am I missing?

show how you insert into database!

Stefano Mtangoo 455 Senior Poster

Hi guys, it's weird. I had managed to get 3 codes (different styles) which convert a html page to excel files. All the three codes work if my server is connected to local host, but only one of them work if i connect to another server.

It's really a bizarre.

May be they depend on special library that is not installed on your server. Compare output of phpinfo() on both servers