Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Member Avatar for HuePig

Hi, I'm new to system administration, I have a standalone WSUS meaning it's not part of a domain and 3 clients that is in a domain. How can use WSUS to update those 3 clients? The WSUS is able to communicate to the 3 clients and vise versa.

Member Avatar for rproffitt
0
107
Member Avatar for HuePig

Hi, I'm trying to build a simple turn-based game. Its working if I don't have any AI in the game and just multiple human players. My UI is just a couple of buttons and some text that gets updated, heres how I structured the whole thing without any AI players: …

0
101
Member Avatar for HuePig

Hi, I have three classes `public class Player` , `public class Computer : Player`, and `public class Game`. In `Game` I have a List: `public List<Player> PlayerList` and a variable `Player CurrentPlayer`. Heres what happens: when I create a `new Computer()` I add it to the `PlayerList`, the `CurrentPlayer` acts …

Member Avatar for HuePig
0
141
Member Avatar for HuePig

I'm trying to learn planning, i have a half baked program and I'm stuck. I don't know whats wrong. Well, here's an overview: I have an Agent who have goals and actions, doing an action will make the value of a goal lower. Each Action cost a energy. Actions and …

0
223
Member Avatar for HuePig

Hi, I have a projectile and a target. Both objects have: Vector2D velocity and Vector2D position. How do I find the predicted position just using the target's position and velocity, together with the projectile speed?

Member Avatar for HuePig
0
316
Member Avatar for HuePig

Hi, I have an `unsigned char c[16]` and I need to read 2 char at a time and put those in an index. Heres what I have so far. std::istream& function(std::istream& aIStream){ for (int i = 0; i < fSize; i++) { //this is not working.. // I tried static_cast<char*> …

Member Avatar for マーズ maazu
0
242
Member Avatar for HuePig

Hi, I have a rock class, I use that class to generate multiple rock objects that are then put in a vector. The problem I'm having is that when a rock is generated the whole game slows down making it laggy/choppy. Right now my rock is loaded from file: `rock.loadFromFile("image/rock.png")`; …

Member Avatar for JasonHippy
0
160
Member Avatar for HuePig

Hi, I have a rock object. Right now all it does is fall from the sky. I made 10 of them and put it in a `std::vector<rocks*> rock_v`. The rocks have random x position but start at the same height. I generate the rocks like this: for(int i = 0; …

Member Avatar for HuePig
0
771
Member Avatar for HuePig

Hi, I have a `std::string getName(){return name}` function and `std::string name` is a private variable. The problem is that when ever I try to `getName() == object` , the statement is always `false` even when the values are the same. if (command.compare(0, 4, "get ") == 0){ std::string object = …

Member Avatar for Search_not
0
245
Member Avatar for HuePig

Hi, I'm trying to scroll my texture using `sprite.setTextureRect(sf::IntRect(10, y_axis, 800, 600))`. In my update I increment `y_axis++`, but then the image wont show. Heres the structure so far: init(){ if (!starField.loadFromFile("image/starfield.jpg", sf::IntRect(10, 10, 800, 600))){} s_starField.setTexture(starField); y_axis = 0; } update(){ y_axis++; s_starField.setTextureRect(sf::IntRect(10, y_axis, 800, 600)); } render(){ windows->Draw(s_starField); …

0
160
Member Avatar for HuePig

Hi, im trying to transform a string to make it a date $date1 = '$month/$day/$year'; //in jS value form type="number" $date2 = strtotime($date1); $date3 = date('Y-m-d',$date2); The problem is that when I SET date = $date3 the database saves 0000-00-00. what am I doing wrong??

Member Avatar for diafol
0
261
Member Avatar for HuePig

Hi, I have a Blackboard class and an Item class: void Blackboard::send(std::vector<std::string> msg, std::string to){ std::list<Subscriber*>::iterator p; for (p = subscribers.begin(); p != subscribers.end(); p++) { if ((*p)->getName() == to) //check if sender is subscribed { (*p)->update(msg); } else{ // reciever is not subscribed std::cout << "Can not find " …

Member Avatar for HuePig
0
124
Member Avatar for HuePig

Hi, I'm trying to get the value from a javascript: `window.locaiton.href = "db/create_eoi.php?refNum=" + rNum;`. <?php if(isset($_GET["rNum"])){ $refNum = trim($_GET["rNum"]); } ?> the problem is that where ever I use `$refNum` I get an error saying Undefined Variable. To be more clear: what im doing is getting a value from …

Member Avatar for HuePig
0
200
Member Avatar for HuePig

Hi, I have a Blackboard object which is a singleton, what it does is store the message and the reciever. The challenge is that the blackboard will send an alert to the reciever and the reciever have to check the blackboard for the message. class Subscriber{ public: virtual ~Subscriber() {} …

Member Avatar for Banfa
0
341
Member Avatar for HuePig

Hi, to my understanding, `isset()` checks is the variable exist and have a value. But when I try the code below, _randNum() keeps on getting new values when it should already have a value because it already exist and have a value. <?php session_start(); if(!isset($_randNum)){ //Check if the variable dont …

Member Avatar for hericles
0
470
Member Avatar for HuePig

Hi, Say I have a 2 page website each have their own script, how can I make a page get a data form the other page? for example I have an int 1-10, page 1 took int 5; how can i make it so page 2 can't select int 5 …

Member Avatar for Oxiegen
0
79
Member Avatar for HuePig

Hi, say I have `<input type="checkbox" id="box1" />` and `<div id="createhere"></div>` and in a javascript file I have: function(){ var box=document.getElementById("box").checked; var s = ""; if(box){ s = "<input type="text" name="text" id="text" />" document.getElementById("createhere").innerHTML = s; }else{ s = ""; document.getElementById("createhere").innerHTML = s; } } Now this works BUT it …

Member Avatar for HuePig
0
146
Member Avatar for HuePig

Hi, I'm having trouble reading a file the way I want it to. /*Textfile.txt*/ ROOM Closet Its too dark, you cant see anything. EXIT out Basement 1 ROOM Basement Its too dark, you need some sort of light to help you see. EXIT enter Closet 1 EXIT up Dinning_Room 1 …

Member Avatar for rubberman
0
122
Member Avatar for HuePig

Hi, how can I store an object in a hash_map? I have an Item object and I want to pair it with a quantity. Will I be able to: 1. Find the item? 2. change the paired quantity? 3. sort it by qty or item name? /*Item.h handles the item …

Member Avatar for uonsin
0
326
Member Avatar for HuePig

Hi, I have an Item class, how can I make my Item object be composed of more Item objects? Say I have a gun and its composed of more items like bullet and magazine, how can i make it do that? /*Item.h handles the item in game*/ #ifndef ITEM_H #define …

Member Avatar for HuePig
0
111
Member Avatar for HuePig

Hi, I'm trying to figure out the basics in state design. I don't quite get it. Say I have an `enum GameState{ MAIN, ABOUT, ADVENTURE, QUIT}`, how do I proceed from there? class Game{ class state *current; public: Game(); void setState(State *){ current = s; } void Main(); void Adventure(); …

Member Avatar for rubberman
0
301
Member Avatar for HuePig

Hi, I have a class named 'roomOne' and another named 'StoneAdventure'. 'roomOne' inherits from 'StoneAdventure'. Heres the Problem: Whenever I create an #include "roomOne.h" in the header file of 'StoneAdventure' I get an error C2504: base class is undefined. Note: Everything works fine if I remove the #include "roomOne.h" from …

Member Avatar for HuePig
0
201
Member Avatar for HuePig

Hi, I have a `string *input;` and that variable is initalized with `getInput();`. I initialize input in `setup()`. `setup()` is run once. this is where my problem is: I'm looking for a better logic that let me initialize `input` without getting a prompt which came from `getline(cin, line)` that is …

Member Avatar for HuePig
0
118
Member Avatar for HuePig

Hi, I'm an aspiring game developer. I just joined today. Let's have fun :D

Member Avatar for mattster
0
43