Welcome to Celestialcoding!

A simple rule

1. Be polite and professional

All code posted here, unless otherwise specified, is licensed under a BSD 2 Clause license. The only note is that these snippets do not have the BSD copyright notice - so you are exempt from including them.


Hello, Guest
Please login or register.


Did you miss your activation email?
March 18, 2015

March 5, 2015

February 18, 2015

Re: Interesting Look into the ALU
Posted by: mustafolins in Misc on May 02, 2015, 02:07:43 PM

haha i was gonna say this reminds me of Code by Charles Petzold and then they showed that book at the end.  It is a really good book to read if wanting to learn more about switches, adders, etc.
Interesting Look into the ALU
Posted by: Celestialkey in Misc on April 28, 2015, 01:10:51 PM

I found a very good video explaining how computers use the basic transistor component to do multiplication. I'm currently working on a project for college that requires something along these lines. Figured I'd share it since it was such a good video.

Re: My First Program
Posted by: Nathan in Tutorial Support on March 16, 2015, 09:13:00 PM

system(anything) uses more resources then just getting it done more pure

Sure - but also keep in mind system("pause") won't work on Mac OS and Linux.

Code: [Select]
@mysql01:~$ pause
bash: pause: command not found
Re: My First Program
Posted by: Jake in Tutorial Support on March 15, 2015, 03:37:24 AM

I took in a few of these suggestions, and did a little reading. From what I've seen people are saying that using system(anything) uses more resources then just getting it done more pure, so I took a while to find some ways to replace using my system functions, along with adding a remove user function and came up with this.

Code: C++
  1. #include <iostream>
  2. #include <vector>
  3. #include <stdio.h>
  4. #include <string>
  5. using namespace std;
  7. string getinput()
  8. {
  9.     string dataline;
  11.     string name;
  12.     cout << "Enter Name: ";
  13.     getline(cin, name);
  15.     string number;
  16.     cout << "Enter Number: ";

Re: A PHP Solution
Posted by: Celestialkey in Tutorial Support on March 05, 2015, 09:04:41 PM

Next up is how to use php to execute a batch file on my system. I wrote a small batch that essentially executes another program for FastDL sync (as gmod caps DL at 20kb/s) but this program can take a while to complete compressing and copying files. Does something like system("C:\program.bat") work? This particular program requires me to press enter when it is finished, is there a way I could get a program to do this for me? And would the program have to hold up the entire PHP while it takes its 10+ minutes to complete? Any ways around this if it is the case? I feel like all the things I'm trying to do have horri

  •  Total Members: 85
  •  Total Posts: 11156
  •  Total Topics: 1696
  •  Total Categories: 4
  •  Total Boards: 75
  • users Users: 0
  • guests Guests: 17
  • hidden Hidden: 0
  • spiders Spiders: 0