hericles 289 Master Poster Featured Poster

Look into Angular.js, its pretty powerful and you can build some large scale apps with it.

hericles 289 Master Poster Featured Poster

Is your database part of the app or does the app connect to a remote db?
Is the install location the same on the second machine as the first and check to make sure the path to the db is correct (makig sure of relative vs absolute pathing).

hericles 289 Master Poster Featured Poster

OK, you need to check Application.StartPath to make sure it is correct and then check the db file exists at the end location.

hericles 289 Master Poster Featured Poster

The most obvious problem is that you are breaking on the space between first and last name as well.
But when you create your client object you want to pass in the relevant strings from the array. In its most basic form it would look like this:

string input = f.ReadLine();
string[] words = input.split(" ");
Customer client = new Customer(words[0].toString(), words[1].ToString() + " " + words[2].toString(), words[3].toString());

But that assumes a first and last name and never less or more than that so it isn't very robust. You could look as a CSV (comma separated value) file and then split on the comma to avoid that.

Anyway, hope that helps.

hericles 289 Master Poster Featured Poster

IT ebooks, can't go wrong: Click Here

hericles 289 Master Poster Featured Poster

Are you looking for the name of a biometric system that already exists or do you want to name one of your own?
If you want to know what is already out there Google can help...

hericles 289 Master Poster Featured Poster

Is the sql server configured for remote access?
If it is a named instance you need to have sql server browser running to be able to locate the name instance (not an issue if you're using default naming).
Have you got a user with appropriate rights that you can include in the connection string?

hericles 289 Master Poster Featured Poster

This simply means your db isn't where the code thinks it will be. Compare the path of the file (or the relevant config file) calling the db against where the db actually is.
If you can, post up your project directory structure, that may help.
Of course, you have checked the db exists in your released projects right?

hericles 289 Master Poster Featured Poster

I would build an intervening table that holds the student ID and the course ID and nothing else (OK, you might have a reason to put in some other columns but you get the idea). It is simply a list of the courses a student is enrolled in.

hericles 289 Master Poster Featured Poster

"Object reference not set to an instance of an object" is the message contained by the Exception, it does not refer to the exception itself. It's telling you that that is the reason the particular line of code threw the exception.

hericles 289 Master Poster Featured Poster

You have no select statement for table t2 or t3. You need to expand you where statement to actually get the data from t2 and t3.

hericles 289 Master Poster Featured Poster

Have you placed a break point at the start of that code and stepped through it? You may find that one line doesn't do what it's meant to and knowing exactly what line is causing the issue will help.

hericles 289 Master Poster Featured Poster

looks to me like this line is the problem:

Product product = new Product("200.00", 0);

In your product class the first parameter of your constructor is the name as a string, the second is the price. So you want the price to be the second parameter when creating the class and, in your constructor, include
this.price = price;
By passing in zero, you're getting zero back.

hericles 289 Master Poster Featured Poster

Was there an early release clause specified in your contract? Any article at all that allowed for early termination by either party?

hericles 289 Master Poster Featured Poster

I could only try it once before liveweave failed to reload it but the most obvious problem was that the validation check on the button still ran, checkig to see if I had added a value into the textbox. You'll want to disable that when the text of the button is 'start new game'.

hericles 289 Master Poster Featured Poster

Seeing as it for Windows and it should run in the background, you might consider a .Net language and build a windows service (depending exactly how 'runs in the background' and 'outputs indicators as a graphical representation' work together.

hericles 289 Master Poster Featured Poster

Responsive web design is the principle (design methodology) of building a a website that scales well and looks good on a variety of screen sizes, from desk top to mobile.
This means that on smaller sizes elements reposition themselves, or don't show, images automatically resize or scale to the available space, etc.
There are plenty of examples on the web. Find one and resize your browser window to various widths to see it in action.
Oh, and look into @media queries if you haven't. That might help as well.

hericles 289 Master Poster Featured Poster

You could really help us out by explaining what should be happening but isn't.
What error are you getting?

sharifmoskat commented: Thank you for your reply actually my problem is PHP from local system not able to connect to mysql server +0
hericles 289 Master Poster Featured Poster

'most freelancers...sit in an office in some customer's building 10+ hours a day, working harder than anyone else, for less pay than the employees'
That sounds more like a contractor to me.

hericles 289 Master Poster Featured Poster

Having done both I can tell you freelancing comes with a reasonable set of problems, the worst of which are:
locating new clients/winning new work
uneven income stream
dealing with clients (billing, disputes, etc)
loneliness (don't knock it, this one is important)

But the pros are:
being your own boss and working your own hours
personal staisfaction
better lifestyle in general (money issues aside)

I loved being able to code for a couple of hours in the morning, take most of the day off (gym, take dogs for a run, that kind of stuff) if there were no clients to meet, and then work again at night (I'm more productive then).
But the wobbly cash flow and stress were definite downsides as was the social exclusion. You don't realise how much chatting to people with similar passions/intellects matters until you're going solo.

It's freedom vs safety really. Pick the one you want more.

iamthwee commented: agreed +14
hericles 289 Master Poster Featured Poster

No sorry, still don't get it. Is #orange mean to be completely invisible until the bounce out begins?

hericles 289 Master Poster Featured Poster

If you need to define the size of an array you can use :

ReDim Preserve array_shuffle(20);

You can use that is the methods that specify the array a size.
Preserve isn't necessary but it allows you to keep elements already specified if you've loaded some or all of the array. Data loss occurs if you redim to something smaller of course.

hericles 289 Master Poster Featured Poster

It sounds more like your class definition is incorrect. Can you post up the whole class?

hericles 289 Master Poster Featured Poster

is this what you are after:
HTML:

<div class="solid"><a href="">Click me</a></div>
<div id="block"></div>
<div id="red"></div>

CSS:

#block {width:300px;height:300px;background-color:orange;position:relative;top:190px;}
#red {
    width: 300px; 
    height: 300px;
    background-color:red; 
    position:relative;
    top:200px;
    margin-top: -300px;
}

jQuery:

    $(".solid a").click(function(event) {
        event.preventDefault();
        $("#block").animate({top: '100px'}, { duration:'200', easing: 'easeOutBounce' });

    });

You can, of course alter height and animation of #block to suit your needs. If I'm right that is...

hericles 289 Master Poster Featured Poster

Valid point.

hericles 289 Master Poster Featured Poster

Right, but you mention you want it to look like 'it's coming out from behind the div'. The only way I can visualise that is it 'growing' up out of it, rather than just appearing, which would require it being the same size, or smaller, as div A to begin with. If it is larger right from the start it will always looks as if it just appeared into place. Thats what I take away from your initial description anyway.

hericles 289 Master Poster Featured Poster

Going back to the orignal question, I'd place the second div behind the first, exact same size and location, then there's no need to use hide().
You can animate with jquery to make it bounce out.

hericles 289 Master Poster Featured Poster

Well, checking the error log is the best but if you need to you can use var_export or echo to output a string of text. If you can see that text when you run the page you know you at least got to that point.
echo 'here';
If you view the source of the page do you see anything? You're including home/example.com as both header elements and content of the page so what exactly is it? Is it possible that the page is constructing itself correctly and just happens to be empty?

hericles 289 Master Poster Featured Poster

Is your PHP error log error free as well?
Echo out so text to see if you can determine where it is failing if the logs don't help you.
And what is that you are trying to include (home/example.com)? What file type is and what is it meant to do?

hericles 289 Master Poster Featured Poster

You haven't closed the function

$(".solid a").click(function(event) {
    event.preventDefault();
    $("#block").animate({top: '320px'}, { duration:'200px', easing: 'easeOutBounce' });
});

Add that last }); and the div bounces down. HOw does this relate to the hidden div though? I don't see that here.

hericles 289 Master Poster Featured Poster

You're only creating the submit.click function if 'yes' is clicked. if $value == no then the function never exists.

hericles 289 Master Poster Featured Poster

Yeah, its a bit unclear. You say 'I want to hide a div and keep a div hidden whether it's before or after the DOM loads'. By that do you mean the div is never to be made visible to the user? You could just use CSS visibiliy: hidden for that maybe I'm not getting your question...

hericles 289 Master Poster Featured Poster

If you aren't filtering the query at the PHP end based on $givenCity then I might try something like:
SELECT * FROM highschools WHERE city like '%$givenCity%';
That will select all matches like the given city (including matches that included the given city as a substring (I'm not sure if that will actually be a problem) or any strings that include an empty string as a substring - which is all of them.
So you feed in $givenCity as either a city or ''.

hericles 289 Master Poster Featured Poster

Hmmm, in your nib have you dragged another view over the entire window? It looks like there might be something on top the bottom layer which is white and that is blocking you from seing the parent view's color.
Just a thought...

hericles 289 Master Poster Featured Poster

I would have thought that was enough. Have you tried putting that line in the if(self){} section of initWithNibName?

hericles 289 Master Poster Featured Poster

I haven't tried this yet but I think you would need to use a combination of .height() and .offset. Height can give you the height of the window, which means you can find your starting location for the popping up div.
Offset can find the location of the menu thereby giving you the end point of animation.
I don't think CSS can be used to detect the bottom of the page but I maybe wrong.

hericles 289 Master Poster Featured Poster

From the code you posted isChecked() is never called and so chosen never changes from 0, hence item always equals items[0].

hericles 289 Master Poster Featured Poster

From your example it looks like you want the distinct values from the table

SELECT DISTINCT COL_NAME1, COL_NAME2 FROM...

But I doubt that is it. What exactly do you need?

hericles 289 Master Poster Featured Poster

Your console.log line isn't getting hit because the code is failing at the http.get line. When AngularJS itself hits an error the location of the error shown in the console often isn't of much use.
I used a JSON validator found here and loaded up your JSON. Two errors were found. If you do the same you can easier track them down and see whats wrong.

hericles 289 Master Poster Featured Poster

As always, show us your best attempt and we'll help/guide/assist you. Just asking us to do it won't work. We like to see a little effort on your part:)

hericles 289 Master Poster Featured Poster

Head on over to IT Ebooks and have a look around. They've got plenty of free books on a range of IT topics and languages.

hericles 289 Master Poster Featured Poster

The console log doesn't give you any hints? Have you put a console.log in your second controller to make sure it is getting called correctly (although I can't see why it wouldn't be)?
And is your hotelinfo.json file named correctly and error free?

hericles 289 Master Poster Featured Poster

You have two errors in your code. Change line 20 to:
var userTrials = document.getElementById("userGuesses");

Firstly, its getElementById, camelcase for all words. Secondly, you don't want the innerText portion of the userGuesses div, you just want the div itself.
Thirdy, find a new professor.

hericles 289 Master Poster Featured Poster

Your background in the second version is incorrect.
Firstly you have an extra semi-colon in there and the 0 -911px shouldn't even be there. The shorthand for the background selector is color, image, repeat, attachment, position.

hericles 289 Master Poster Featured Poster

Your last post triggered my memory some more and I remember having a similar problem. I just checked my set up on my dev machine and its httpd-2.4.9-win32-VC9 and PHP 5.5. I think I tried the 64bit route and then gave up, been a while since I set it up.
Is there anything coming up in your logs?

hericles 289 Master Poster Featured Poster

Were either of the servers restarted around that time? Its possible your services aren't set to start automatically so after a reboot you'd need to kick start the sync manually again.

hericles 289 Master Poster Featured Poster

You trying to insert into two tables with one INSERT statement.
That won't work without some changes. You can either run two queries separately or insert into one table that has an INSERT trigger on it which will automatically take care of the second insert.
There are probably some more complex ways using temp tables or outputting but I don't see why you would need to go that way.
My advice is to do two queries, wrapping your insertions in a transaction so you can rollback shoudl you need to.

hericles 289 Master Poster Featured Poster

Flowers would lose their romantic appeal to the fairer sex pretty quickly.
Nothing says 'I love you' like a single, squealing, red rose.

hericles 289 Master Poster Featured Poster

I'm a bit rusty on WHEN NOT but I think it needs to be
WHEN NOT MATCHED THEN INSERT INTO

hericles 289 Master Poster Featured Poster

From the iOS Approval page:
If an issue is discovered during the review of your app, you will be notified via email. You will find details regarding your app rejection in the Resolution Center, which can be accessed from both the App Summary page and the Version Details page in iTunes Connect.

Their review guidelines are pretty complete. Meet these and you should be OK.