Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

481 Neutral


About Josheir

  • Rank

Personal Information


  • Twitter

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Josheir

    Github and Viruses

    This and the comment about not cloning the repo caught my eye. I thought from the other posts that we don't get viruses from GitHub?
  2. I have been rearranging my computers and I am setting up my printer on a Windows 10 computer. However, when looking at the installation notes for the printer's software, there are two problems that are to lengthy and to in depth for me. I was hoping someone could look at this link with the two problems and let me know if it will be alright for me to use these files. This computer was going to be my internet machine and use OpenOffice for printing. The explanations are just beyond me. I am concerned about security, etc. https://support.hp.com/us-en/drivers/selfservice/closure/hp-officejet-4500-all-in-one-printer-series-g510/3919445/model/3919446?ssfFlag=true&sku= Thank you, Josheir .
  3. Josheir

    Github and Viruses

    I'm wondering how everyone is staying virus/ransomware free using GitHub. From what I've heard GitHub checks for corrupt files but "bits and pieces get through." Someone also said they thought I would be alright if I use Windows Defender and Malware Bytes. Another person suggested using a really great $100 dollar virus program that would check live. Online it was suggested that the best protection is that the file is checked when "pulled onto the client" and "use external scans" What is the best defense, and what programs will scan the "pulled GitHub source files" live? - Josh -
  4. I'll try it out than...
  5. Well I could try it out, but I'm trying to keep everything lean, if you know what I mean. What's interesting is the HP finished a scan in four hours and the acer took seven and a half hours(with less files.) So, maybe I should try the HP? Or, maybe this is different than time to compile? I also do a lot of builds still. Josh
  6. I have two computers and I want to put Visual Studio on one and Spotify/browser/OpenOffice on the other. I am trying to decide which computer would be better for Visual Studio. Here are the two specs: 1. Acer Aspire E 15 (laptop) Windows 10 - Home, 64 bit Processor: Intel (R) CORE(TM)i7-6500U CPU@2.50GHz 2.60 Ghz Installed Ram: 8.00GB(7.88GB usable) 2. HP Compaq 6000, 64 bit Windows 10 Professional Processor: Intel(R) Core(TM)2 Duo CPU E 8400@ 3.00Ghz 3.00 Ghz Ram : 4.00 GB(3.90 GB usable) It looks like the HP desktop would be better, is there much of a difference? Thank you, Josheir Edit: Both computers might use multiple monitors.
  7. Maybe you could help me tomorrow with something specific. Thanks very much, so far!
  8. When the program is run now with breakpoints the function is working, however when run in Start Without Debugging, the function usually does not work. Any ideas?
  9. I read your post and I am wondering if I am understanding this right. As far as I know, right now the Join button is clicked once per user, and is only used in two different browsers. So, there should only be two connection IDs. The list has been checked and it does hold two IDs. Also, the code completes the entire function, it just doesn't enter the printinitial function. Thanks in advance, Josheir
  10. Yes, I tried the console.log(). It didn't go into the function.
  11. <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> </head> <body> <!--Script references. --> <!--Reference the jQuery library. --> <script src="Scripts/jquery-3.3.1.min.js"></script> <!--Reference the SignalR library. --> <script src="Scripts/jquery.signalR-2.2.2.min.js"></script> <!--Reference the autogenerated SignalR hub script. --> <script src="signalr/hubs"></script> <!--Add script to update the page and send messages.--> <!--<style type="text/css"> #button2 { display: none; } </style>--> <script type="text/javascript"> $(function () { var buttons = ['1', '1', '1', '1', '1', '1']; var index = 0; var chat = $.connection.chatHub; //called from server's play - mesage is button pressed chat.client.pressbutton = function (message) { if (message == "1") { $('header').append(jQuery("#button1").prop("disabled", true)); } if (message == "2") { $('header').append(jQuery("#button2").prop("disabled", true)); } }; chat.client.printinitial = function () { console.log('2'); // $("#turn").html("Player one, it's your turn!"); $("#turn").html("aaaaa"); }; chat.client.printname = function (message) { $("#turn").html("" + message + ", it's your turn!"); }; $('#Join').click(function () { $('#Join').hide(); $('#Name').hide(); //put name in here chat.server.register($('#Name').val()); }); $('#button2').click(function () { chat.server.play($('#Name').val(), "2"); // Clear text box and reset focus for next comment. //$('#message').val('').focus(); }); $('#button1').click(function () { console.log('here'); //disables button calls press button to disable, if correct named user, also changes whosturnisit chat.server.play($('#Name').val(), "1"); }); $.connection.hub.start().done(); }); </script> <div id="div1" class="container"> <form> <div id="turn"> </div> <input type="button" id="button1" name="button1" value="1" /> <input type="button" id="button2" name="button2" value="2" /> <input type="button" id="button3" name="button3" value="3" /> <input type="button" id="button4" name="button4" value="4" /> <input type="button" id="button5" name="button5" value="5" /> <input type="button" id="button6" name="button6" value="6" /> <input type="text" id="Name" name="Name" value="a" /> <input type="button" id="Join" name="Join" value="Register" /> </form> </div> </body> </html> Thank you Andy, but that was an error I created when putting everything back together. That was the client side. The other files can be found in the signalr folder in the master branch at: https://github.com/Joshei/signalr
  12. The Integer is a static, set to 0. I changed the code, and the call to register is being made fine. public void register(string name) { A_client.ConnectionId = Context.ConnectionId; A_client.Name = name; ClientList.Add(A_client); if (integer == 0) { Clients.Client(ClientList[0].ConnectionId).printinitial(); integer = integer + 1; } else if (integer == 1) { Clients.Client(ClientList[1].ConnectionId).printinitial(); } } I have checked so much that I think maybe it is how the project was set up?
  13. I am using SignalR and I can't get a C# command to call the printinitial JavaScript function. I have a similar example that works fine. When debugging it does step on this. I've been scratching my head for hours, please help me. Here are the two functions, what could it be? C#.net : public void register(string name) { int myplayernumber = -1; A_client.ConnectionId = Context.ConnectionId; A_client.Name = name; ClientList.Add(A_client); if (integer == 0) { myplayernumber = 1; integer = integer + 1; } else if (integer == 1) { Clients.Client(ClientList[0].ConnectionId).printinitial(); myplayernumber = 2; } if (myplayernumber == 2) { Clients.Client(ClientList[1].ConnectionId).printinitial(); } } HTML / JavaScript / JQuery chat.client.printinital = function () { $("#turn").html("print_this"); }; Thank you, Josheir
  14. Thanks, I'm watching a video on SignalR now and am thinking I should understand this in a while.
  15. When using SignalR, If I have a list of connection IDs, is it possible to send a broadcast from a certain connection ID to all the other users? Something like this: Clients.Others.addMessage(fromID, message); Thank you, Josheir
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!