Hey everybody, As of this moment i'm trying to work out how to approach a state design. I've come across Source Makers' site [http://sourcemaking.com/design_patterns/state/cpp/1](http://sourcemaking.com/design_patterns/state/cpp/1) and am testing out the example. The program works fine when it's all in 1 file, although i had to change some stuff in main, but when i separate the program into headers and .cpp errors would occur. This is what i have at the moment. There's quite a lot of errors but i think it all has to do with the "base class not being defined". The majority of errors are defined as... `error C2504: …

Member Avatar
Member Avatar
+0 forum 5

I want to know how software is converted into electrical pulses or `0`'s and `1`'s in computer. How does the computer do it? I know that `0` and `1` in binary system actually represent `off` and `on` states respectively and the computer stores the data in its memory in the same state. Also I want to know how the computer(more specifically the video controller) converts the binaries i.e `0` and `1` or low voltage and high voltage into a form that can be displayed on the monitor or is this the work of the monitor. And at last, what do …

Member Avatar
Member Avatar
+0 forum 2

Hello everyone ! Here a question :D I have this code function validateName(){ if ( name.val().length <= 4 ){ name.removeClass('valid'); nameInfo.removeClass('valid'); name.addClass('error'); nameInfo.addClass('error'); nameInfo.text (" You need to have more than 4 letters "); state = false; }else{ var uname = name.val(); $.post('validateuser.php' , {names:uname} , function(data){ if (data != 1){ name.removeClass('valid'); nameInfo.removeClass('valid'); name.addClass('error'); nameInfo.addClass('error'); nameInfo.text("This name is already registered!"); state = false; }else{ name.removeClass('error'); nameInfo.removeClass('error'); name.addClass('valid'); nameInfo.addClass('valid'); nameInfo.text('Valid name'); state = true; } }); } return state; } and this one $("#send").click(function(){ if( validateName() == true ){ alert('works'); }); And it actually won't work .. Any suggestions?

Member Avatar
Member Avatar
+0 forum 7

Hi, I want to use session state in mode SQL Server I googled some parameters to add in `<sessionState mode="SQLServer" />` in web.config file like: * Sql command time out. * State network time out. * Compression enabled. * Max pool size. * Min pool size. So I have some questions about these parameters: * These parameters are obligatory to use this session state? * Is usefull Compression enabled to increase web site performance? * Is usefull use Min and Max pool size? Thanks I use Sql Server 2005 Estándar Ed, Asp.net 2.0 and Visual Basic dot Net.

Member Avatar
Member Avatar
+0 forum 1

#Web app state management# The current state of the user interface determines which application actions are enabled and thus which html elements are enabled for the user to invoke them. Classes are used in the html to indicate elements that need to be managed. Then jQuery is used to configure the user interface as the state of the application changes. ##Function to enable/disable elements based on state## Here is a javascript/**jQuery** function, dobles(), that can be used to enable/disable and show/hide page elements to keep the page in synch with the current state of the application. The html elements that …

Member Avatar
Member Avatar
+2 forum 1

I am currently working on a membership registration web form, wherein we have to take details of the member being registered online. i need to know his Country, State/Region and City. i am looking for a database/list so that we can provide the same in a combobox in the registration form. the states should on the selection of country ;and the city should change on the selection of state. i tried lot, but only getting list of countries or cities BUT independent not related. Please guide.

Member Avatar
Member Avatar
+0 forum 3

Please help me.I'll really thank for you help! How to write code for country, state and city drop down list menu? change automatically for state and city when country is selected.

Member Avatar
Member Avatar
+0 forum 1

When a switch is selected as root bridge why are all ports on that switch in forward mode? I know switches that are connected to each other by two ports have one blocked port and one forward so theres only one why for frames to go so no loops are made.

Member Avatar
Member Avatar
+0 forum 2

Hi there, I am trying to customize a Woothemes shortcode toggle in their 'Canvas' theme, and in my particular case I have two toggles on my Wordpress page. One toggle shows by default, the other is hidden. What I want to do is switch those toggle states around (open the second toggle, close the first toggle) if a certain URL hash is entered. Example: Toggle 1 state = open Toggle 2 state = closed User enters http://example.com/#opentoggle2 Toggle 1 state = closed Toggle 2 state = open I am guessing I would have to assign the two toggles different ID's …

Member Avatar
Member Avatar
+0 forum 1

I'm pretty new at this still and my boss just gave me a real challenge. Before I get ***too*** stressed about it I thought I'd see if anyone had some ideas. He wants a banner graphic on the top of his e-commerce page to be specific to the region (State/Province) where the customer is viewing the site from. For example: I live in Edmonton, in the Province of Alberta. If I went to his website a top banner would be designed for Alberta: ## "We ship to Alberta" ## Can anyone give me any advise? ... Any help would be …

Member Avatar
Member Avatar
+0 forum 1

I've developed a code that is intended to be used in an application extension (as with all my codes) that will tell you if the current computer has an internet connection. To use just include the namespace given at the top of the snippet, then the connection state is a variable of custom type ConnectionState. Usage is for whatever you wish to use it for. If you're using it to display the connection state of the current computer to the user via string (label, textbox, button text, console application) just apply the .ToString() method to the end as with any …

Member Avatar
Member Avatar
+0 forum 1

hello friends, i am developing a windows application,can anybody tell me how can i store the view state of a page in vb.net. i have 12 labels on a page and when i click on each label the color of the label changes to black, what i want is when i come back to the same page, i want the labels to retain their colors.... thanks...

Member Avatar
Member Avatar
+0 forum 1

hello friends [U]how can i disable view state[/U] in vb.net,so that i have the properties of labels as i left,when i return to a page. i am developing a windows application. thanks in advance.

Member Avatar
Member Avatar
+0 forum 2

Hi We have two identical web servers in a farm and I need them to be able to share Session variables as I do not know which machine the user will be using at any given time i.e. if a user where to log in to a site on server1 and then post back I cannot 100% guarentee that server 1 will process the request. I have been looking at sharing session state through SQL but rather than do this on our live servers I set up a pair of VM's on my local machine to test. I have SQL …

Member Avatar
Member Avatar
+0 forum 3

Hi everyone! i have a question if someone know how can i check with a VB application if another programs window is minimized or maximized? example i would make a simple VB app that could while running check with a timer if "MS Paint" for example was maximized and check for changes to when ever it got minimzes to the taskbar. is this possible? i tryied to find answer many places on the net but still nothing that does this. thank you for any help on this!

Member Avatar
Member Avatar
+0 forum 2

Hi Frendz, In my vehicle tracking system, I have got the latitude and longitude points of the vehicle for every 30 secs while the vehicle moving. Now i need to get the report of the vehicles when it crosses from one state to another state and one district to another district. How to find it using latitude and longitude points? If anybody doing the projects like this then guide me.

Member Avatar
Member Avatar
+0 forum 3

Hello Everyone, Im needing a bit of help here. First, Im trying to let client download a file from server and save it on client's pc. When client clicks on button "DOWNLOAD", it will call a servlet that will download the file. Expected outcome is that a SAVE AS DIALOG BOX will pop up so that client can choose output destination folder. This is my CODE [CODE] path = getServletContext().getRealPath("/")+ "files/"; String filename = path + "users.txt"; String disHeader = "Attachment;Filename=\"users.txt\""; response.setContentType("APPLICATION/OCTET-STREAM"); response.setHeader("Content-Disposition",disHeader); System.out.println(filename); File fileToDownload = new File(filename); FileInputStream fis = new FileInputStream(fileToDownload); try { //response.reset(); ServletOutputStream fos = …

Member Avatar
+0 forum 0

Hi All So I have 2 forms form 1 has a list of checkboxes on it form 2 needs to check if one of the form 1 checkboxes is checked. Please see the code below: texton is a value passed from a function parameter of type string [CODE] If (Form1.Controls.Item("checkbox" & texton).checkstate" = True) Then 'Do Something End If [/CODE] When I get to "If (Form1.Controls.Item("checkbox" & texton).<-- this point, intellisense does not list .checkstate or .checked as a member of checkbox from form1. Any ideas Thanks John

Member Avatar
Member Avatar
+0 forum 2

HELP!!! Because of the work, my system must be modified frequently. I don't know when it will get a crash. Do daily Backup to system state is emergent to me!!! Is there some free backup software? I also will consider cheap ones, if it really works well. Any suggestion????

Member Avatar
Member Avatar
+0 forum 7

Hello, I have been given the question : to create a turing machine that begins on a tape containing a single 1 and never halts but successively displayes the strings. ..b 1 b... ..b 0 1 0 b... ..b 0 0 1 0 0 b... where b stands for blank. This is the states I came up with : S0- starting state pointing to the single 1 S1- state scanning for the leftmost blank S2 - state that prints out /displays the 0 or 1 S3 - state that does not print blanks. The following are the tuples I came …

Member Avatar
+0 forum 0

Hi, I need some help with a school project. This is what I have done so far: (Sorry about the wall of code) [code=java] public abstract class State { private double drinkPrice; private double amountPutIn; private String selection; public State() { } public State(double drinkPrice, double amountPutIn, String selection) { this.drinkPrice = drinkPrice; this.amountPutIn = amountPutIn; this.selection = selection; } public double getDrinkPrice(){ return drinkPrice; } public void setDrinkPrice(double drinkPrice){ this.drinkPrice = drinkPrice; } public double getAmountPutIn() { return amountPutIn; } public void setAmountPutIn(double amountPutIn) { this.amountPutIn = amountPutIn; } public String getSelection(){ return selection; } public void setSelection(String selection){ …

Member Avatar
Member Avatar
+0 forum 1

When one thinks about high-tech states, one typically thinks of places such as California and Massachusetts. But....Alabama? The Southern state was the only state government on CIO Magazine’s top 100 institutions for excellence in information technology. According to CIO, the state provides more than 130 e-government applications through the [URL="http://www.alabama.gov/portal/index.jsp"]state's portal site[/URL]. The magazine Government Technology also praised the state [URL="http://www.govtech.com/gt/268537"]earlier this year.[/URL] Other projects sponsored as part of Gov. Bob Riley's "Plan for Change" include using Google Earth's Geographic Information System technology for viewing a [URL="http://www.virtu-al.org/countymap.html?sm=g_f"]"virtual Alabama."[/URL] CIO cited a number of specific examples of how Alabama is making …

Member Avatar
+0 forum 0

The End.