Jump to content


Check out our Community Blogs

Davide

Member Since 27 Dec 2009
Offline Last Active Apr 01 2013 08:11 PM
-----

#632192 Does Virtual Box Slow Down My Pc?

Posted by Davide on 22 June 2012 - 05:26 AM

Yes, your PC would have to run both the host and the guest at the same time.

It would run a lot faster in a dual boot but it would be more uncomfortable, that is the point of the Virtual Box.
  • 1


#631883 Messenger Software Programming Tips

Posted by Davide on 16 June 2012 - 04:00 PM

To send data across the network you need to use something called sockets. Depending on your programming language there are different ways of implementing them.

Since you want to use C++ you are going to have a hard time making API calls to Win32 sockets or Linux sockets. Not to mention the code will not be portable between platforms.

If you have serious intentions with the chat application you should stick to C++, but if you want to make it just for fun and to learn more about sockets programming, use a managed language such as C# or Java. It really depends on how much time you afford to waste.

Also, you need to know a couple of things about how the internet works in general (protocols, server/client architectures, etc...). There are easy to learn but you will need to find resources as they are scattered all around the internet.

Once you can send some data through sockets, if you want to implement internet telephony you need to know a couple of things about VoIP (Voice over IP).
This is no walk in the park, but if you really are interested these are some notes the Distributed Systems course I have taken: http://www.cs.manche...S-BMC-notes.pdf

Good luck.
  • 1


#631470 How To Make Your Own Web Protocols?

Posted by Davide on 10 June 2012 - 08:37 PM

Short distributed systems tutorial:

There are 5 network layers, each with its specific type of protocols

Application layer - HTTP/HTTPS/FTP/IMAP/POP/...
Transport layer - TCP/UPD/RTP/RTCP
Network layer - IP
Data link layer - IEEE 802.2/PPP/Ethernet/...
Phyisical layer - WiFi or Fibre Optics


Making your own protocol means working at the application layer. That can be done. If you make client/server applications they can 'talk' to each other in the same language (protocol).

The problem with your website is that when a victim connects to the website, they use a browser such as Chrome, Firefox or in some cases other programs such as Internet Explorer.

These programs only know HTTP, HTTPS or FTP to communicate. If you implement your own protocol, people would not be able to access your website with a regular browser.

Imagine working in a shop only knowing English, but all your customers would speak nothing but Spanish and French.

That is how it is if you want to use it for your website, the server could only 'speak' your own protocol and browsers wouldn't know what to do.
  • 1


#631466 I Need A Code To Visit My Page

Posted by Davide on 10 June 2012 - 08:00 PM

The "victim" part made me laugh.

It cannot be done with PHP once the page is loaded, Javascript should do the trick.
  • 1


#562320 WPF?

Posted by Davide on 01 July 2010 - 07:55 AM

Well, you have the image control in a tag, since it's XAML:
[COLOR=Green]<!-- Simple image rendering. However, rendering an image this way may not
     result in the best use of application memory. See markup below which
     creates the same end result but using less memory. -->[/COLOR]
[COLOR=Blue]<[/COLOR][COLOR=#A31515]Image[/COLOR] [COLOR=Red]Width[/COLOR][COLOR=Blue]=[/COLOR][COLOR=Black]"[/COLOR][COLOR=Blue]200[/COLOR][COLOR=Black]"[/COLOR] 
[COLOR=Red]Source[/COLOR][COLOR=Blue]=[/COLOR][COLOR=Black]"[/COLOR][COLOR=Blue]C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Water Lilies.jpg[/COLOR][COLOR=Black]"[/COLOR][COLOR=Blue]/>[/COLOR]

[COLOR=Blue]<[/COLOR][COLOR=#A31515]Image[/COLOR] [COLOR=Red]Width[/COLOR][COLOR=Blue]=[/COLOR][COLOR=Black]"[/COLOR][COLOR=Blue]200[/COLOR][COLOR=Black]"[/COLOR][COLOR=Blue]>[/COLOR]
  [COLOR=Blue]<[/COLOR][COLOR=#A31515]Image.Source[/COLOR][COLOR=Blue]>[/COLOR]
    [COLOR=Green]<!-- To save significant application memory, set the DecodePixelWidth or  
     DecodePixelHeight of the BitmapImage value of the image source to the desired 
     height and width of the rendered image. If you don't do this, the application will 
     cache the image as though it were rendered as its normal size rather then just 
     the size that is displayed. -->[/COLOR]
    [COLOR=Green]<!-- Note: In order to preserve aspect ratio, only set either DecodePixelWidth
         or DecodePixelHeight but not both. -->[/COLOR]
    [COLOR=Blue]<[/COLOR][COLOR=#A31515]BitmapImage[/COLOR] [COLOR=Red]DecodePixelWidth[/COLOR][COLOR=Blue]=[/COLOR][COLOR=Black]"[/COLOR][COLOR=Blue]200[/COLOR][COLOR=Black]"[/COLOR]  
     [COLOR=Red]UriSource[/COLOR][COLOR=Blue]=[/COLOR][COLOR=Black]"[/COLOR][COLOR=Blue]C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Water Lilies.jpg[/COLOR][COLOR=Black]"[/COLOR] [COLOR=Blue]/>[/COLOR]
  [COLOR=Blue]</[/COLOR][COLOR=#A31515]Image.Source[/COLOR][COLOR=Blue]>[/COLOR]
[COLOR=Blue]</[/COLOR][COLOR=#A31515]Image[/COLOR][COLOR=Blue]>[/COLOR]
You can find more on this page that I have found using some website called Google: Image Class (System.Windows.Controls)
  • -1


#560596 What is your favorite operating system?

Posted by Davide on 22 June 2010 - 04:06 AM

yeah.. it is like saying, lets leave a un protected windows machine on the internet and a linux one and see which one gets hacked first ? I am guessing the windows machine.. already done in Australia and the windows machine was hacked in about 1 minute where as the linux one never was!!!.. in a year.

if you strip away all of the ** that is running on a machine then off course it will run quicker!!. but how much are you willing to take off is the main question!


Let's have two kids in front of a Windows machine and a Linux machine, which one will learn how to use the computer faster? The Windows one of course.
Let's have two gamers in front of a Windows machine and a Linux machine, which one will get bored first? The one with Linux of course.
Let's have a genius at a Windows machine and a idiot at a Linux machine, witch one will get hacked first? The Linux one. Remember, sometimes the user is an idiot, not the operating system.

I wouldn't change my operationg system just because another is safer, I'd rather not get into trouble with hackers. Windows offers me antything I need, Linux needs to grow up a bit.
  • 1


#560281 C# checkbox problem

Posted by Davide on 20 June 2010 - 09:06 PM

Add a settings file to your project. Right-click on your project Add>>New Item>>Settings file. In that file add the settings you want, make sure they are user settings and not application settings.

Then, to edit those settings:
//Assuming we have a setting named autosave
//And out settings file is called Settings
ProjectName.Settings.Default.autosave = checkBox1.Checked.ToString();
ProjectName.Settings.Default.Save();
When you restart the application you will have the settings there.
I don't understand the rest of your question, can you please re-formulate?
  • -1


#557689 [Beginner] Help with form application

Posted by Davide on 04 June 2010 - 03:43 AM

Check out my tutorial, it will teach you all the things you need in a short time: Visual C# Programming Basics
  • -1


#557072 Simple GTK# calculator in mono - help please

Posted by Davide on 28 May 2010 - 09:08 AM

If you are very new to C#, the biggest mistake that you can do is to use GTK# instead of .NET. It's a bit hard to get used to even if you know .NET, if you don't it's hard to find good documentation on the internet.
If you want to develop specifically for Linux, use Qt.
  • -1


#556154 Form ToolStripMenuItem to call delete

Posted by Davide on 19 May 2010 - 11:33 AM

SendKeys.Send("{DEL}");
  • -1


#556008 tabControl with 6 tabs. Each tab has a listbox. Please help.

Posted by Davide on 17 May 2010 - 01:08 PM

declare a public string named MyString;
public string MyString;
Then, instead of wasting time and resources, use this:
if (listBox1.Enabled) if (listBox1.SelectedItems != null) myString = listBox1.SelectedItem;
 if (listBox2.Enabled) if (listBox2.SelectedItems != null) myString = listBox2.SelectedItem;
 if (listBox3.Enabled) if (listBox3.SelectedItems != null) myString = listBox3.SelectedItem;
//etc... for all 6 boxes
Then, in the parent form:
ChildFormName myForm = new ChildFormName();
myForm.Show();
label5.Text = myForm.myString();

  • -1


#544604 Vote For Your Favourite Tutorial!

Posted by Davide on 01 March 2010 - 04:12 AM

March 5th is the deadline for voting (extended due to downtime and loss of a few votes).

The new codecall digest will be out soon to promote the voting too :)


Ah, 5 more days of waiting :).
  • 1


#539924 Idea's

Posted by Davide on 02 February 2010 - 11:35 AM

Make a digital agenda, where you can hold your contacts and apointments, with a cool custom-made calendart to schedule stuff all day, rss feed, and optionaly, a mail client.
This will keep you busy for a while.
  • 1


#539337 Virtualization of an Operating System Tutorial

Posted by Davide on 30 January 2010 - 09:28 AM

This is the wallpaper in case anyone wants it for their own tutorials.

If anyone wants the intro with the drums, tell me and i will change the name to theirs and send the movie.

Wallpaper is 1280*800, for other sizes, PM me.

Attached Thumbnails

  • Tutorial Wallpaper.jpg

  • -1


#538933 Virtualization of an Operating System Tutorial

Posted by Davide on 28 January 2010 - 05:52 AM

That's a bit unfair, i can get any +rep with video tutorials :), but at least i'm having fun.
  • 1




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download