Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

ChrisPBacon2010

Member
  • Content Count

    118
  • Joined

  • Last visited

Reputation Activity

  1. Like
    ChrisPBacon2010 reacted to Mick Naughty in Cheap Triple Monitors   
    660ti, certain 550ti's, 760's.
    Idk about red team cards but these are all cheap.
  2. Like
    ChrisPBacon2010 reacted to ProjectBox153 in Cheap Triple Monitors   
    Those USB things are crap. Trying to get actual work done with one? Ha, good luck.
  3. Like
    ChrisPBacon2010 got a reaction from Rodney McKay in The under 100 line challenge!   
    YouTube competition winner generator, paste YouTube video link in and click generate.
     
    All commenters will be recorded and get one entry each (excludes replies) and then one of those users gets randomly picked as the winner - https://gist.github.com/Cirx08/9ccbdce2d21cabefa472#file-random-youtube-winner
  4. Like
    ChrisPBacon2010 got a reaction from ibbadib in The under 100 line challenge!   
    YouTube competition winner generator, paste YouTube video link in and click generate.
     
    All commenters will be recorded and get one entry each (excludes replies) and then one of those users gets randomly picked as the winner - https://gist.github.com/Cirx08/9ccbdce2d21cabefa472#file-random-youtube-winner
  5. Like
    ChrisPBacon2010 reacted to werto165 in Android Wearable Sensors   
    Dont think it's got a temp sensor . "Each has an accelerometer, compass and gyro but Samsung adds a heart rate monitor which you won't find on the G Watch or Moto 360."
    "9 Axis (Accelerometer/Compass/Gyro)"
     http://www.pcadvisor.co.uk/reviews/gadget/3527378/lg-g-watch-vs-motorola-moto-360-vs-samsung-gear-live-review/
     
    I think the accelerometer is just used for screen rotation. And the pedometer is probably the accelerometer too. 
  6. Like
    ChrisPBacon2010 got a reaction from super_teabag in Makin' some classes and constructor   
    Exactly what fizzlesticks said, your code is the wrong way around and also your inRange() method never compares against the inputted parameter, it should be like this:
    public boolean inRange(int value){ //Return true if value is same as plow or phigh or is in between the two if(plow <= value && phigh >= value){ return(true); } //Otherwise return false return(false);}
  7. Like
    ChrisPBacon2010 got a reaction from kingdorian in Help with Java homework?   
    The point of the homework is not to learn how to import, it's to learn how Java methods work.
  8. Like
    ChrisPBacon2010 got a reaction from PixelPips in Help with Java homework?   
    You'll want something like this but you'll need to alter it a little to match your requirements. Then you'll call it in main using nextDay("4/10/2014"); which will return "4/11/2014".
    /* * Takes in a date and returns the date after * @param: String date*/public String nextDay(String date){ //Get the month part of the string and convert to int of base 10 (decimal) int month = Integer.parseInt(date.substring(0, date.indexOf("/")), 10); //Get the day part of the string and convert to int of base 10 (decimal) int day = Integer.parseInt(date.substring(date.indexOf("/") + 1, date.lastIndexOf("/")), 10); //Get the year part of the string and convert to int of base 10 (decimal) int year = Integer.parseInt(date.substring(date.lastIndexOf("/") + 1), 10); //Get the number of days in the specified month int dayCount = Integer.parseInt(days.substring((month - 1) * 2, ((month - 1) * 2) + 2)); //Check if it is a leap year and month is febuary then add 1 day to the days count if(isLeapYear(year) && month == 2){ dayCount++; } //Check if new date is not greater than the number of days in the month if((day + 1) > dayCount){ //Date exceeds month days, set date as the first of the month and increment to the next month day = 1; month++; //If new month is greater than 12 (December) set month as January if(month > 12){ month = 1; year++; } }else{ //Date is within the months day count, change the date day++; } //Return new date in string format return(month + "/" + day + "/" + year);}
  9. Like
    ChrisPBacon2010 got a reaction from LukeTim in Problem with a Small Basic program   
    You cannot say "num1 < num2 and num3" you have to say "num1 < num2 and num1 < num3"
    If num1 > num2 And num1 > num3 Then largest = "Number 1"ElseIf num2 > num1 And num2 > num3 Then largest = "Number 2"Else largest = "Number 3"EndIf
  10. Like
    ChrisPBacon2010 got a reaction from Aaaaaaaaa in Programming Code:   
    //Initialize names list
    var names = new List<String>();
    do{
    //Get new name
    Console.Write("\nEnter name: ");
    names.Add(Console.ReadLine());
    //Ask to continue
    Console.Write("Keep going? (y/n)");
    }while(Console.ReadKey().KeyChar == 'y');
    //Diaplay name count
    Console.WriteLine("\n\n\n{0} names entered.", names.Count);
    //Sort names ascending
    names.Sort();
    //Loop through list and display names
    Console.WriteLine("\n\nNames in ascending Order: ");
    foreach(var name in names){
    Console.WriteLine(name);
    }
    //Reverse the list
    names.Reverse();
    //Loop through list and display names
    Console.WriteLine("\n\nNames in descending Order: ");
    foreach(var name in names){
    Console.WriteLine(name);
    }
    //Pause console while user displays results
    Console.ReadKey();

  11. Like
    ChrisPBacon2010 reacted to TheGuyNL in Fizzbuzz   
    Haha, you see the trick I did ;P Eliminating an if-statement
  12. Like
    ChrisPBacon2010 got a reaction from TheGuyNL in Fizzbuzz   
    Why no "elseif" statements? 
     
    Edit: My bad, I see what you were going for now...
  13. Like
    ChrisPBacon2010 got a reaction from TheGuyNL in Fizzbuzz   
    I don't get it, what was so hard about that?  :wacko:
    static void Main(string[] args){ //Loop through the numbers 1 to 100 for(int i = 1; i <= 100; i++){ if(i % 15 == 0){ //If the number is divisible by both 3 and 5 print FizzBuzz Console.WriteLine(i.ToString() + " - FizzBuzz"); }else if(i % 3 == 0){ //If the number is divisible by 3 print Fizz Console.WriteLine(i.ToString() + " - Fizz"); }else if(i % 5 == 0){ //If the number is divisible by 5 print Buzz Console.WriteLine(i.ToString() + " - Buzz"); }else{ //Otherwise just print the number Console.WriteLine(i.ToString()); } } Console.ReadKey();}
  14. Like
    ChrisPBacon2010 reacted to Nuluvius in (C#) goto and labeled statements   
    Agreed. You should endeavour to NEVER use goto at all, it is extremely bad form... there are exceptions to this but they are generally not found in higher level languages.
  15. Like
    ChrisPBacon2010 got a reaction from Jeroen1322 in Need help with some CSS   
    You have the width to 100% filling its parent and on top of that you have a margin on both sides which means the the div is bigger than the screen. (presuming the parent is the width of the screen)
  16. Like
    ChrisPBacon2010 reacted to wildy in alternative to notepad++ on OSX   
    thanks
  17. Like
    ChrisPBacon2010 got a reaction from darth_bubbles in Java problem.   
    You can also shorten how you compare mixed case strings by using .equalsIgnoreCase()
  18. Like
    ChrisPBacon2010 got a reaction from LukeTim in Final year project ideas   
    I understand what you're saying and I'm really liking this idea. If I don't get any other ideas I'll definitely keep this one in mind. Thanks!
  19. Like
    ChrisPBacon2010 reacted to LukeTim in Final year project ideas   
    How about an app that can take a photo, geotag it and then upload it (plus other metadata) to a server running a database.

    The server then also has a httpserver running on it that serves up a website consisting of an interactive map with all the photos pinned to it (based on their location) in stacks... and as you zoom in the stacks split up into smaller, more localised stacks, and you can click on each stack to get a slideshow of the photos in that stack.

    Meaning that depending upon the level of zoom you get varying size of region within which the photos in the slideshow were taken when you click it...

    Not sure I've described it terribly well, and it may be too ambitious... but that does seem to be a problem for me. I always think of projects that are too ambitious... I did it with my own final year project and never finished it (though I still got good marks).
  20. Like
    ChrisPBacon2010 reacted to iHammmy in Final year project ideas   
    Hello,
     
    You could make a piece of software that would allow perants to unstill something onto there childs computer / tablet / phone for free that when an abusive word comes up, such as a swear, the child would be able to report it as cyber bullying and the software would block out the words that are set by the perant or gurdian. Such as if the perant doesn't want the child to see the word "book" for example, the software would block out that word, then report it to the perants for or tablet with a link to the website that the word was on, and give the ability for the perant to block the website remotely. I just thought of this quickly, so you could change loads with it if you like
     
    I wish you good luck,
     
    ~ Harry
  21. Like
    ChrisPBacon2010 reacted to AustinB in C# Copying Desktop to External Drive!   
    I believe it is working now will update. 
    Had to remove "+ @"\A";" from 25 to get it to work.
     
    Edit: Works 100%. 
    Thanks a ton.
  22. Like
    ChrisPBacon2010 got a reaction from Caspur in java question   
    You're gonna have to take a look at the Scanner class.
     
    Scanner input = new Scanner(System.in);
    String name = input.next();
  23. Like
    ChrisPBacon2010 got a reaction from rockking1379 in Final year college project feedback and suggestions   
    Oh thanks, this looks really interesting!
  24. Like
    ChrisPBacon2010 reacted to rockking1379 in Final year college project feedback and suggestions   
    just a thought but first registration for amazon ec2 gets you a year free of micro tier. would be enough to get started I bet
     
    http://aws.amazon.com/free/
     
    i would sign up for EC2. linux is my preference since it would lower the overhead of the OS. could still use the same address, just have it redirect to the current amazon address. 750 hrs/mnth is enough to let it run 24/7. just make sure you kill it or after the year is up, it will start billing you.
  25. Like
    ChrisPBacon2010 got a reaction from lememeinator in Final year college project feedback and suggestions   
    Hi everyone,
     
    I'm currently in my final year of software development and so was given the task of designing and building a Java web application. It's coming up to the deadline and was wondering if people would do some testing on it or give me suggestions of what more it might need keeping in mind this is a solo project so it's just me.
     
    It's a social media website for PC, tablet and mobile called WhatsUp and it's nowhere near done so don't go comparing it to the standards of FaceBook or Twitter but letting me know about bugs and little features that you might like to see would be great
     
    The website can be found using the link at the bottom and sorry if its slow but I'm currently hosting it on my home PC with bad broadband because as a student I can't afford proper Java hosting and my free hosting plan doesn't support Java (P.S. If its not loading it might be because the server is down)
     
    Thanks to anyone that takes the time to help
     
     
    WhatsUp - http://www.chrispbacon10.com/WhatsUp
     
     
    UPDATE:
    All of the bugs that were found in round one of testing were fixed and some new extra features were added.
×