Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Programmers' lounge. (Programming-related discussions only)
New Posts  All Forums:Forum Nav:

Programmers' lounge. (Programming-related discussions only) - Page 7

post #61 of 669
Quote:
Originally Posted by mitchtaydev View Post

For general game programming, gamedev.net is imo the best site for reference material. Are you wanting to make games or game engines? because they really are two different beasts.

I would like to tame both of those beasts! Haha, thanks I will check out gamedev.net.
The Predator
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 950 @3.83 Ghz ASUS Rampage III Formula ASUS GTX 470 SLI G.SKILL 6GB 1850Mhz 
Hard DriveOptical DriveOSMonitor
Western Digital 6GB/s 1TB Liteon 24X DVD R/W Windows 7 Professional 64-bit Samsung 23" 1920X1080p 
PowerCase
Aerocool V12XT 800 HAF 922 
  hide details  
Reply
The Predator
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 950 @3.83 Ghz ASUS Rampage III Formula ASUS GTX 470 SLI G.SKILL 6GB 1850Mhz 
Hard DriveOptical DriveOSMonitor
Western Digital 6GB/s 1TB Liteon 24X DVD R/W Windows 7 Professional 64-bit Samsung 23" 1920X1080p 
PowerCase
Aerocool V12XT 800 HAF 922 
  hide details  
Reply
post #62 of 669
Quote:
Originally Posted by Lhino View Post

I would like to tame both of those beasts! Haha, thanks I will check out gamedev.net.
If you want to learn about DirectX 9 for game programming, I've wrote up a simple guide here on the forums on how to do the basic initialising here.
Going to work on making an OOP version of it now and extending it on to doing things like rendering triangles, loading textures, terrain, etc.
    
CPUMotherboardGraphicsGraphics
AMD Athlon II X4 630 Asus Crosshair V MSI GTX460 Hawk 1gb MSI GTX460 Hawk 1gb 
GraphicsRAMHard DriveHard Drive
Gigabyte 9600 GSO 384mb Kingston HyperX 8gb (2x4gb) Crucial M4 64GB Samsung F3 1TB 
Hard DriveHard DriveCoolingOS
Western Digital 320GB Seagate 80gb Custom WC Windows 7 Ultimate X64 
MonitorMonitorMonitorPower
Dell E2311H Dell E2311H Samsung SyncMaster 2243 SilverStone Strider 1000W-P 
CaseAudio
Corsair 800D Onboard 
  hide details  
Reply
    
CPUMotherboardGraphicsGraphics
AMD Athlon II X4 630 Asus Crosshair V MSI GTX460 Hawk 1gb MSI GTX460 Hawk 1gb 
GraphicsRAMHard DriveHard Drive
Gigabyte 9600 GSO 384mb Kingston HyperX 8gb (2x4gb) Crucial M4 64GB Samsung F3 1TB 
Hard DriveHard DriveCoolingOS
Western Digital 320GB Seagate 80gb Custom WC Windows 7 Ultimate X64 
MonitorMonitorMonitorPower
Dell E2311H Dell E2311H Samsung SyncMaster 2243 SilverStone Strider 1000W-P 
CaseAudio
Corsair 800D Onboard 
  hide details  
Reply
post #63 of 669
Quote:
Originally Posted by FiX View Post

If you want to learn about DirectX 9 for game programming, I've wrote up a simple guide here on the forums on how to do the basic initialising here.
Going to work on making an OOP version of it now and extending it on to doing things like rendering triangles, loading textures, terrain, etc.
Thanks man!
The Predator
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 950 @3.83 Ghz ASUS Rampage III Formula ASUS GTX 470 SLI G.SKILL 6GB 1850Mhz 
Hard DriveOptical DriveOSMonitor
Western Digital 6GB/s 1TB Liteon 24X DVD R/W Windows 7 Professional 64-bit Samsung 23" 1920X1080p 
PowerCase
Aerocool V12XT 800 HAF 922 
  hide details  
Reply
The Predator
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 950 @3.83 Ghz ASUS Rampage III Formula ASUS GTX 470 SLI G.SKILL 6GB 1850Mhz 
Hard DriveOptical DriveOSMonitor
Western Digital 6GB/s 1TB Liteon 24X DVD R/W Windows 7 Professional 64-bit Samsung 23" 1920X1080p 
PowerCase
Aerocool V12XT 800 HAF 922 
  hide details  
Reply
post #64 of 669
Hey guys I have a question, Lets say I am working with webbrowser in c#, and whenever I put a url in it will check if it has http and if the url doesnt have http at the beginning it will automatically add one. BUT if it does have a http it will leave the url alone.

How would I go about doing that?
    
CPUMotherboardGraphicsRAM
E8400 3.0ghz OC @ 3.8GHz @ 1.36v DFI BLood Iron P35 ECS 8800GTS 512MB G.Skill 2x 1gb DDR2 800 CAS @ 5-6-6-21 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 7200rpm 250GB + 1TB 7200rpm HDD Lite On DVD burner Windows 7 32 bit 21.5 inch Samsung monitor full HD 1080p :D 
KeyboardPowerCaseMouse
microsoft wireless Corsair 650 watts Cooler Master 690 Logitech mx518 
Mouse Pad
fryz mousepad 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
E8400 3.0ghz OC @ 3.8GHz @ 1.36v DFI BLood Iron P35 ECS 8800GTS 512MB G.Skill 2x 1gb DDR2 800 CAS @ 5-6-6-21 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 7200rpm 250GB + 1TB 7200rpm HDD Lite On DVD burner Windows 7 32 bit 21.5 inch Samsung monitor full HD 1080p :D 
KeyboardPowerCaseMouse
microsoft wireless Corsair 650 watts Cooler Master 690 Logitech mx518 
Mouse Pad
fryz mousepad 
  hide details  
Reply
post #65 of 669
Quote:
Originally Posted by axipher View Post

Maybe we can start off by getting people's preferred IDE for writing code for different languages.

notepad++ for anything it's compatible with
Quote:
Originally Posted by dushan24 View Post

Vim for stuff over SSH
Notepad++ for most other things
Eclipse for Java
Recently tried SublimeText for web stuff and I rather like it.

yeah basically this lol, except vim is hard to adjust to so I usually stick with uhhh nano >_> lol redface.gif
Edited by flamingoyster - 9/1/12 at 1:43am
Peaches
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 Foxconn Blood Rage Sapphire Radeon HD4890 OCZ Gold 6 GB DDR3 1600 
Hard DriveOptical DriveCoolingOS
64GB C300 boot, 1TB storage (2 WD Caviar Blues ... Samsung Blu-Ray reader Prolimatech Megahalems Windows 7 Professional 
MonitorKeyboardPowerCase
Acer 1920x1200 Filco Majestouch Cherry MX Blues Corsair 850HX Corsair Obsidian 800D 
MouseMouse PadAudio
Razer DeathAdder Black PureTrak Talent ASUS Xonar Essence ST --> Sennheiser HD600 
  hide details  
Reply
Peaches
(15 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 Foxconn Blood Rage Sapphire Radeon HD4890 OCZ Gold 6 GB DDR3 1600 
Hard DriveOptical DriveCoolingOS
64GB C300 boot, 1TB storage (2 WD Caviar Blues ... Samsung Blu-Ray reader Prolimatech Megahalems Windows 7 Professional 
MonitorKeyboardPowerCase
Acer 1920x1200 Filco Majestouch Cherry MX Blues Corsair 850HX Corsair Obsidian 800D 
MouseMouse PadAudio
Razer DeathAdder Black PureTrak Talent ASUS Xonar Essence ST --> Sennheiser HD600 
  hide details  
Reply
post #66 of 669
Quote:
Originally Posted by andyroo89 View Post

Hey guys I have a question, Lets say I am working with webbrowser in c#, and whenever I put a url in it will check if it has http and if the url doesnt have http at the beginning it will automatically add one. BUT if it does have a http it will leave the url alone.
How would I go about doing that?

Ah. WebBrowser in C#, my favorite biggrin.gif

If you mean you want to automatically add http to a URL supplied by the USER, you can do the following:
Code:
string schemeHttp = string.Format( "{0}://", Uri.UriSchemeHttp );
string userUrl = /* the URL from the user */;

if ( !userUrl.StartsWith( schemeHttp, StringComparison.OrdinalIgnoreCase ) )
{
        userUrl = string.Format( "{0}{1}", schemeHttp, userUrl );
}

/* use userUrl */

If you want something a little more robust, I give you my VerifyUri function:



Returns true if the supplied URI string was valid, false if not. If true was returned, you can use the value of the "modified" out parameter which will contain the validated (and formatted) URI. This version supports HTTPS, too.
Edited by tompsonn - 9/1/12 at 2:51am
My System
(30 items)
 
"Zeus"
(13 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 2500K (4.5ghz @ 1.320v) Gigabyte Z68X-UD3R-B3 MSI R7970 Lightning Corsair 16GB (4x4GB) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Crucial M4 128GB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 7 Ultimate 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2212HM Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Microsoft IntelliMouse Optical  XTRAC Ripper XXL 
AudioAudioAudioAudio
Westone W3 IEMs RE-272 IEMs Shure SE-215 IEMs Schiit Bifrost DAC 
AudioAudio
Schiit Asgard 2 amp HiVi Swan M50W 2.1 
CPUMotherboardGraphicsRAM
Intel Core i7 950 GA-X58-UD3R Radeon HD 5450  24GB Corsair @ 1333mhz 
Hard DriveOSPowerCase
4x WD Cavair Red 1TB in RAID 0 Windows Server 2008 R2 x64 Corsair HX-520 LianLi LanCool 
  hide details  
Reply
My System
(30 items)
 
"Zeus"
(13 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 2500K (4.5ghz @ 1.320v) Gigabyte Z68X-UD3R-B3 MSI R7970 Lightning Corsair 16GB (4x4GB) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Crucial M4 128GB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 7 Ultimate 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2212HM Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Microsoft IntelliMouse Optical  XTRAC Ripper XXL 
AudioAudioAudioAudio
Westone W3 IEMs RE-272 IEMs Shure SE-215 IEMs Schiit Bifrost DAC 
AudioAudio
Schiit Asgard 2 amp HiVi Swan M50W 2.1 
CPUMotherboardGraphicsRAM
Intel Core i7 950 GA-X58-UD3R Radeon HD 5450  24GB Corsair @ 1333mhz 
Hard DriveOSPowerCase
4x WD Cavair Red 1TB in RAID 0 Windows Server 2008 R2 x64 Corsair HX-520 LianLi LanCool 
  hide details  
Reply
post #67 of 669
Quote:
Originally Posted by tompsonn View Post

Ah. WebBrowser in C#, my favorite biggrin.gif
If you mean you want to automatically add http to a URL supplied by the USER, you can do the following:
Code:
string schemeHttp = string.Format( "{0}://", Uri.UriSchemeHttp );
string userUrl = /* the URL from the user */;
if ( !userUrl.StartsWith( schemeHttp, StringComparison.OrdinalIgnoreCase ) )
{
        userUrl = string.Format( "{0}{1}", schemeHttp, userUrl );
}
/* use userUrl */
If you want something a little more robust, I give you my VerifyUri function:

Returns true if the supplied URI string was valid, false if not. If true was returned, you can use the value of the "modified" out parameter which will contain the validated (and formatted) URI. This version supports HTTPS, too.

Thanks man works perfectly. smile.gif
    
CPUMotherboardGraphicsRAM
E8400 3.0ghz OC @ 3.8GHz @ 1.36v DFI BLood Iron P35 ECS 8800GTS 512MB G.Skill 2x 1gb DDR2 800 CAS @ 5-6-6-21 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 7200rpm 250GB + 1TB 7200rpm HDD Lite On DVD burner Windows 7 32 bit 21.5 inch Samsung monitor full HD 1080p :D 
KeyboardPowerCaseMouse
microsoft wireless Corsair 650 watts Cooler Master 690 Logitech mx518 
Mouse Pad
fryz mousepad 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
E8400 3.0ghz OC @ 3.8GHz @ 1.36v DFI BLood Iron P35 ECS 8800GTS 512MB G.Skill 2x 1gb DDR2 800 CAS @ 5-6-6-21 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 7200rpm 250GB + 1TB 7200rpm HDD Lite On DVD burner Windows 7 32 bit 21.5 inch Samsung monitor full HD 1080p :D 
KeyboardPowerCaseMouse
microsoft wireless Corsair 650 watts Cooler Master 690 Logitech mx518 
Mouse Pad
fryz mousepad 
  hide details  
Reply
post #68 of 669
Hi everyone,

I learned the basics of programming (the theory, with nassi-schneidermann schemes and all) in the early nineties and learned Turbo Pascal soon after.
Since then i stuck with Pascal and every Delphi version that came out.

I made my hobby into my job and 8 years later it's back to being a hobby.
Kinda wondering if more people are still using Delphi as programming environment here
The Duke
(18 items)
 
  
CPUMotherboardGraphicsRAM
Core I7 2600 Asus P8P67 deluxe Asus GTX 570 Kingston DDR3 16 gb (4x4) 
Hard DriveHard DriveHard DriveHard Drive
Revodrive x2 240 ST31500341 ST32000641AS HD103UJ 
Optical DriveCoolingOSMonitor
BH10LS30 Scythe mugen 2 Windows 7 Ultimate Yamakasi Q270 SE 
MonitorKeyboardPowerCase
Samsung 2443 BW Logitech K800 Coolermaster 850 watt  Coolermaster Haf-x 
MouseOther
Logitech performance mx 2 x hauppauge HVR 2200 tuner card 
  hide details  
Reply
The Duke
(18 items)
 
  
CPUMotherboardGraphicsRAM
Core I7 2600 Asus P8P67 deluxe Asus GTX 570 Kingston DDR3 16 gb (4x4) 
Hard DriveHard DriveHard DriveHard Drive
Revodrive x2 240 ST31500341 ST32000641AS HD103UJ 
Optical DriveCoolingOSMonitor
BH10LS30 Scythe mugen 2 Windows 7 Ultimate Yamakasi Q270 SE 
MonitorKeyboardPowerCase
Samsung 2443 BW Logitech K800 Coolermaster 850 watt  Coolermaster Haf-x 
MouseOther
Logitech performance mx 2 x hauppauge HVR 2200 tuner card 
  hide details  
Reply
post #69 of 669
Quote:
Originally Posted by Delphiwizard View Post

Hi everyone,
I learned the basics of programming (the theory, with nassi-schneidermann schemes and all) in the early nineties and learned Turbo Pascal soon after.
Since then i stuck with Pascal and every Delphi version that came out.
I made my hobby into my job and 8 years later it's back to being a hobby.
Kinda wondering if more people are still using Delphi as programming environment here

I was actually going to give delphi a shot after I work on other programming languages.
    
CPUMotherboardGraphicsRAM
E8400 3.0ghz OC @ 3.8GHz @ 1.36v DFI BLood Iron P35 ECS 8800GTS 512MB G.Skill 2x 1gb DDR2 800 CAS @ 5-6-6-21 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 7200rpm 250GB + 1TB 7200rpm HDD Lite On DVD burner Windows 7 32 bit 21.5 inch Samsung monitor full HD 1080p :D 
KeyboardPowerCaseMouse
microsoft wireless Corsair 650 watts Cooler Master 690 Logitech mx518 
Mouse Pad
fryz mousepad 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
E8400 3.0ghz OC @ 3.8GHz @ 1.36v DFI BLood Iron P35 ECS 8800GTS 512MB G.Skill 2x 1gb DDR2 800 CAS @ 5-6-6-21 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 7200rpm 250GB + 1TB 7200rpm HDD Lite On DVD burner Windows 7 32 bit 21.5 inch Samsung monitor full HD 1080p :D 
KeyboardPowerCaseMouse
microsoft wireless Corsair 650 watts Cooler Master 690 Logitech mx518 
Mouse Pad
fryz mousepad 
  hide details  
Reply
post #70 of 669
Quote:
Originally Posted by andyroo89 View Post

Thanks man works perfectly. smile.gif

No problemo smile.gif
My System
(30 items)
 
"Zeus"
(13 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 2500K (4.5ghz @ 1.320v) Gigabyte Z68X-UD3R-B3 MSI R7970 Lightning Corsair 16GB (4x4GB) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Crucial M4 128GB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 7 Ultimate 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2212HM Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Microsoft IntelliMouse Optical  XTRAC Ripper XXL 
AudioAudioAudioAudio
Westone W3 IEMs RE-272 IEMs Shure SE-215 IEMs Schiit Bifrost DAC 
AudioAudio
Schiit Asgard 2 amp HiVi Swan M50W 2.1 
CPUMotherboardGraphicsRAM
Intel Core i7 950 GA-X58-UD3R Radeon HD 5450  24GB Corsair @ 1333mhz 
Hard DriveOSPowerCase
4x WD Cavair Red 1TB in RAID 0 Windows Server 2008 R2 x64 Corsair HX-520 LianLi LanCool 
  hide details  
Reply
My System
(30 items)
 
"Zeus"
(13 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 2500K (4.5ghz @ 1.320v) Gigabyte Z68X-UD3R-B3 MSI R7970 Lightning Corsair 16GB (4x4GB) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Crucial M4 128GB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 7 Ultimate 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2212HM Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Microsoft IntelliMouse Optical  XTRAC Ripper XXL 
AudioAudioAudioAudio
Westone W3 IEMs RE-272 IEMs Shure SE-215 IEMs Schiit Bifrost DAC 
AudioAudio
Schiit Asgard 2 amp HiVi Swan M50W 2.1 
CPUMotherboardGraphicsRAM
Intel Core i7 950 GA-X58-UD3R Radeon HD 5450  24GB Corsair @ 1333mhz 
Hard DriveOSPowerCase
4x WD Cavair Red 1TB in RAID 0 Windows Server 2008 R2 x64 Corsair HX-520 LianLi LanCool 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Programmers' lounge. (Programming-related discussions only)