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 1143
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.
Ol' Faithful
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 950 @3.83 Ghz ASUS Rampage III Formula MSI GTX 970 Gaming OC G.SKILL 6GB 1850Mhz 
Hard DriveOptical DriveCoolingOS
Western Digital 6GB/s 1TB Liteon 24X DVD R/W Noctua NH-D14  Windows 7 Professional 64-bit 
MonitorPowerCase
Samsung 23" 1920X1080p Aerocool V12XT 800 HAF 922 
  hide details  
Reply
Ol' Faithful
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 950 @3.83 Ghz ASUS Rampage III Formula MSI GTX 970 Gaming OC G.SKILL 6GB 1850Mhz 
Hard DriveOptical DriveCoolingOS
Western Digital 6GB/s 1TB Liteon 24X DVD R/W Noctua NH-D14  Windows 7 Professional 64-bit 
MonitorPowerCase
Samsung 23" 1920X1080p Aerocool V12XT 800 HAF 922 
  hide details  
Reply
post #62 of 1143
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
FX-8350 Asus Crosshair V MSI GTX460 Hawk 1gb MSI GTX460 Hawk 1gb 
RAMHard DriveHard DriveHard Drive
Kingston HyperX 8gb (2x4gb) Crucial M4 64GB Samsung F3 1TB Western Digital 320GB 
CoolingOSMonitorMonitor
Custom WC Windows 7 Ultimate X64 Dell E2311H Dell E2311H 
MonitorKeyboardPowerCase
LH 23EN43 Ducky Year of the Dragon 2012 SilverStone Strider 1000W-P Corsair 800D 
Audio
Asus Xonar Essence STX 
  hide details  
Reply
    
CPUMotherboardGraphicsGraphics
FX-8350 Asus Crosshair V MSI GTX460 Hawk 1gb MSI GTX460 Hawk 1gb 
RAMHard DriveHard DriveHard Drive
Kingston HyperX 8gb (2x4gb) Crucial M4 64GB Samsung F3 1TB Western Digital 320GB 
CoolingOSMonitorMonitor
Custom WC Windows 7 Ultimate X64 Dell E2311H Dell E2311H 
MonitorKeyboardPowerCase
LH 23EN43 Ducky Year of the Dragon 2012 SilverStone Strider 1000W-P Corsair 800D 
Audio
Asus Xonar Essence STX 
  hide details  
Reply
post #63 of 1143
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!
Ol' Faithful
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 950 @3.83 Ghz ASUS Rampage III Formula MSI GTX 970 Gaming OC G.SKILL 6GB 1850Mhz 
Hard DriveOptical DriveCoolingOS
Western Digital 6GB/s 1TB Liteon 24X DVD R/W Noctua NH-D14  Windows 7 Professional 64-bit 
MonitorPowerCase
Samsung 23" 1920X1080p Aerocool V12XT 800 HAF 922 
  hide details  
Reply
Ol' Faithful
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 950 @3.83 Ghz ASUS Rampage III Formula MSI GTX 970 Gaming OC G.SKILL 6GB 1850Mhz 
Hard DriveOptical DriveCoolingOS
Western Digital 6GB/s 1TB Liteon 24X DVD R/W Noctua NH-D14  Windows 7 Professional 64-bit 
MonitorPowerCase
Samsung 23" 1920X1080p Aerocool V12XT 800 HAF 922 
  hide details  
Reply
post #64 of 1143
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?
Collecting Dust
(13 items)
 
Server
(9 items)
 
 
CPUMotherboardGraphicsRAM
E8400 3.0ghz OC @ 3.8GHz @ 1.36v DFI BLood Iron P35 none OCZ 2x 2gb DDR2 800 CAS @ 5-6-6-21 
Hard DriveOptical DriveOSMonitor
none none loonix ssh is my monitor 
KeyboardPowerCaseMouse
none Corsair 650 watts old pc case Logitech mx518 
Mouse Pad
none! 
CPUMotherboardGraphicsRAM
AMD Athlon 64 X2 Dual Core Processor 6000+ GX611AA-ABA m8300f onboard 1x 2GB OCZ RAM DDR 
Hard DriveOSMonitorPower
320gb + 1TB HDD xubuntu 14.04 SSH 350 watt 
Case
crappy HP case 
  hide details  
Reply
Collecting Dust
(13 items)
 
Server
(9 items)
 
 
CPUMotherboardGraphicsRAM
E8400 3.0ghz OC @ 3.8GHz @ 1.36v DFI BLood Iron P35 none OCZ 2x 2gb DDR2 800 CAS @ 5-6-6-21 
Hard DriveOptical DriveOSMonitor
none none loonix ssh is my monitor 
KeyboardPowerCaseMouse
none Corsair 650 watts old pc case Logitech mx518 
Mouse Pad
none! 
CPUMotherboardGraphicsRAM
AMD Athlon 64 X2 Dual Core Processor 6000+ GX611AA-ABA m8300f onboard 1x 2GB OCZ RAM DDR 
Hard DriveOSMonitorPower
320gb + 1TB HDD xubuntu 14.04 SSH 350 watt 
Case
crappy HP case 
  hide details  
Reply
post #65 of 1143
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 1143
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.
Ol' Sandy
(28 items)
 
"Zeus"
(12 items)
 
Elite Preview
(6 items)
 
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230v3 Gigabyte GA-Z97X-UD5H-BK MSI Gaming GTX 980 Kingston 32GB (4x8) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Samsung EVO 1TB 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 8 Pro 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2713HM Topre Realforce 87UB | Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Logitech G700 XTRAC Ripper XXL 
AudioAudioAudioAudio
Beyerdynamic DT-770 Pro 250ohm Schiit Bifrost DAC Schiit Asgard 2 HiVi Swan M50W 2.1 
CPUMotherboardRAMHard Drive
Intel Xeon E5-2620 Super Micro X9SRL-F-B 128GB 1333MHz LSI 9271-8i 
OSPowerCase
VMware ESXi 5.5 SeaSonic SS-400FL2 Fractal Define R3 
CPUMotherboardGraphicsRAM
Intel Core i5-3437U HP EliteBook Folio 9470m  Intel HD Graphics 4000  16GB DDR3 SDRAM 
Hard DriveOS
256GB SSD Windows 10 Insider Preview 
  hide details  
Reply
Ol' Sandy
(28 items)
 
"Zeus"
(12 items)
 
Elite Preview
(6 items)
 
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230v3 Gigabyte GA-Z97X-UD5H-BK MSI Gaming GTX 980 Kingston 32GB (4x8) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Samsung EVO 1TB 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 8 Pro 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2713HM Topre Realforce 87UB | Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Logitech G700 XTRAC Ripper XXL 
AudioAudioAudioAudio
Beyerdynamic DT-770 Pro 250ohm Schiit Bifrost DAC Schiit Asgard 2 HiVi Swan M50W 2.1 
CPUMotherboardRAMHard Drive
Intel Xeon E5-2620 Super Micro X9SRL-F-B 128GB 1333MHz LSI 9271-8i 
OSPowerCase
VMware ESXi 5.5 SeaSonic SS-400FL2 Fractal Define R3 
CPUMotherboardGraphicsRAM
Intel Core i5-3437U HP EliteBook Folio 9470m  Intel HD Graphics 4000  16GB DDR3 SDRAM 
Hard DriveOS
256GB SSD Windows 10 Insider Preview 
  hide details  
Reply
post #67 of 1143
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
Collecting Dust
(13 items)
 
Server
(9 items)
 
 
CPUMotherboardGraphicsRAM
E8400 3.0ghz OC @ 3.8GHz @ 1.36v DFI BLood Iron P35 none OCZ 2x 2gb DDR2 800 CAS @ 5-6-6-21 
Hard DriveOptical DriveOSMonitor
none none loonix ssh is my monitor 
KeyboardPowerCaseMouse
none Corsair 650 watts old pc case Logitech mx518 
Mouse Pad
none! 
CPUMotherboardGraphicsRAM
AMD Athlon 64 X2 Dual Core Processor 6000+ GX611AA-ABA m8300f onboard 1x 2GB OCZ RAM DDR 
Hard DriveOSMonitorPower
320gb + 1TB HDD xubuntu 14.04 SSH 350 watt 
Case
crappy HP case 
  hide details  
Reply
Collecting Dust
(13 items)
 
Server
(9 items)
 
 
CPUMotherboardGraphicsRAM
E8400 3.0ghz OC @ 3.8GHz @ 1.36v DFI BLood Iron P35 none OCZ 2x 2gb DDR2 800 CAS @ 5-6-6-21 
Hard DriveOptical DriveOSMonitor
none none loonix ssh is my monitor 
KeyboardPowerCaseMouse
none Corsair 650 watts old pc case Logitech mx518 
Mouse Pad
none! 
CPUMotherboardGraphicsRAM
AMD Athlon 64 X2 Dual Core Processor 6000+ GX611AA-ABA m8300f onboard 1x 2GB OCZ RAM DDR 
Hard DriveOSMonitorPower
320gb + 1TB HDD xubuntu 14.04 SSH 350 watt 
Case
crappy HP case 
  hide details  
Reply
post #68 of 1143
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
Extremepc
(18 items)
 
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
Extremepc
(18 items)
 
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 1143
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.
Collecting Dust
(13 items)
 
Server
(9 items)
 
 
CPUMotherboardGraphicsRAM
E8400 3.0ghz OC @ 3.8GHz @ 1.36v DFI BLood Iron P35 none OCZ 2x 2gb DDR2 800 CAS @ 5-6-6-21 
Hard DriveOptical DriveOSMonitor
none none loonix ssh is my monitor 
KeyboardPowerCaseMouse
none Corsair 650 watts old pc case Logitech mx518 
Mouse Pad
none! 
CPUMotherboardGraphicsRAM
AMD Athlon 64 X2 Dual Core Processor 6000+ GX611AA-ABA m8300f onboard 1x 2GB OCZ RAM DDR 
Hard DriveOSMonitorPower
320gb + 1TB HDD xubuntu 14.04 SSH 350 watt 
Case
crappy HP case 
  hide details  
Reply
Collecting Dust
(13 items)
 
Server
(9 items)
 
 
CPUMotherboardGraphicsRAM
E8400 3.0ghz OC @ 3.8GHz @ 1.36v DFI BLood Iron P35 none OCZ 2x 2gb DDR2 800 CAS @ 5-6-6-21 
Hard DriveOptical DriveOSMonitor
none none loonix ssh is my monitor 
KeyboardPowerCaseMouse
none Corsair 650 watts old pc case Logitech mx518 
Mouse Pad
none! 
CPUMotherboardGraphicsRAM
AMD Athlon 64 X2 Dual Core Processor 6000+ GX611AA-ABA m8300f onboard 1x 2GB OCZ RAM DDR 
Hard DriveOSMonitorPower
320gb + 1TB HDD xubuntu 14.04 SSH 350 watt 
Case
crappy HP case 
  hide details  
Reply
post #70 of 1143
Quote:
Originally Posted by andyroo89 View Post

Thanks man works perfectly. smile.gif

No problemo smile.gif
Ol' Sandy
(28 items)
 
"Zeus"
(12 items)
 
Elite Preview
(6 items)
 
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230v3 Gigabyte GA-Z97X-UD5H-BK MSI Gaming GTX 980 Kingston 32GB (4x8) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Samsung EVO 1TB 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 8 Pro 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2713HM Topre Realforce 87UB | Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Logitech G700 XTRAC Ripper XXL 
AudioAudioAudioAudio
Beyerdynamic DT-770 Pro 250ohm Schiit Bifrost DAC Schiit Asgard 2 HiVi Swan M50W 2.1 
CPUMotherboardRAMHard Drive
Intel Xeon E5-2620 Super Micro X9SRL-F-B 128GB 1333MHz LSI 9271-8i 
OSPowerCase
VMware ESXi 5.5 SeaSonic SS-400FL2 Fractal Define R3 
CPUMotherboardGraphicsRAM
Intel Core i5-3437U HP EliteBook Folio 9470m  Intel HD Graphics 4000  16GB DDR3 SDRAM 
Hard DriveOS
256GB SSD Windows 10 Insider Preview 
  hide details  
Reply
Ol' Sandy
(28 items)
 
"Zeus"
(12 items)
 
Elite Preview
(6 items)
 
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230v3 Gigabyte GA-Z97X-UD5H-BK MSI Gaming GTX 980 Kingston 32GB (4x8) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Samsung EVO 1TB 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 8 Pro 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2713HM Topre Realforce 87UB | Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Logitech G700 XTRAC Ripper XXL 
AudioAudioAudioAudio
Beyerdynamic DT-770 Pro 250ohm Schiit Bifrost DAC Schiit Asgard 2 HiVi Swan M50W 2.1 
CPUMotherboardRAMHard Drive
Intel Xeon E5-2620 Super Micro X9SRL-F-B 128GB 1333MHz LSI 9271-8i 
OSPowerCase
VMware ESXi 5.5 SeaSonic SS-400FL2 Fractal Define R3 
CPUMotherboardGraphicsRAM
Intel Core i5-3437U HP EliteBook Folio 9470m  Intel HD Graphics 4000  16GB DDR3 SDRAM 
Hard DriveOS
256GB SSD Windows 10 Insider Preview 
  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)