hericles 289 Master Poster Featured Poster

You can use a SMS provider to host a phone number that the SMS's get sent to (like Twilio for example). From there, the contents of the SMS get sent to a webservice at a URL you control, like posting data in a form, and the website can then do what it wants with it. That includes passng back data to Twilio (for example) to et SMS's back to the end user.
Being blank about coding might be a slight problem when dealing with the API.

hericles 289 Master Poster Featured Poster

You can read the plist into an NSData object and then convert that into an NSDictionary. This SO question has a couple of examples Click Here

hericles 289 Master Poster Featured Poster

In PHP :: is used to denote a static class i.e. one that does not need the class to be instantiated first.
If the method is not static you need to instatiate the class and then access the method via $class->someMethod().

hericles 289 Master Poster Featured Poster

You can use this:

.label:after {
   content: '*';
}

You can add colors and stuff into that class as well.

hericles 289 Master Poster Featured Poster

You have a few options. The best, short of an actual mac, is to run a virtual mac OS X on your PC. I haven't done this myself and some people have noted that it tends to be a performance killer. You'd need a high end machine to get good results.
There are a few frameworks out there now that compile to iOS such as Mono, Xamarin (for visual studio), phonegap. I haven't used these either as I went and bought a cheap, second hand mac laptop when I needed to do iOS programming but they seem to get a lot of usage so they must be good for something.
If you eventually think of buying a cheap laptop make sure you get one with good hardware. Apple are releasing new iOS versions and SDKs pretty frequently so an older Mac machine can become redundant pretty quickly.

hericles 289 Master Poster Featured Poster

"Data could not be updated. Please try again" sounds like it is an error message coming from your own code. If it is being generated via a try/catch block then catch the actual error text of the exception and have a look at that. It will provide real information on why it is failing.

hericles 289 Master Poster Featured Poster

Its similat to ternary statements you'll see in other languages.
If the statement is true use the first value, if its false use the second.
So, in the example of the first IF above if f.providerId = $userId then f.requestId is supplied to the ON statement, otherwise f.providerId is used.

hericles 289 Master Poster Featured Poster

Very tricky question with, going by the US courts, a leaning toward it being a bad idea.
But, it all depends on what you are scraping (facts vs data), how you are scraping it (have accessed a private page) and how much harm you are doing to the affected party and how you intend to use.
Reselling the information or using it in some competitive way against the owner of the data would almost certainly get you in trouble.
Writing a screen scraper just to prove you can... no real harm in that. You can read the web page after all.
N.b. I'm have no legal background or qualifications, just so we're clear.

hericles 289 Master Poster Featured Poster

If your server IP is static and accessible to the outside world the connection string should work if it is set up correctly. You will need to include the port number that the server is on in most cases.
What is the exact error the user gets and what does the connection string look like?

hericles 289 Master Poster Featured Poster

Then ask a colleague at ... <cough> NASA.

hericles 289 Master Poster Featured Poster

You'd be better off finding a free/cheap inventory management system or accounting package. Then all of the creation work has already been done for you by people in the business. Plus you'll gain access to all of the features, reporting and the like, that you're database won't have.

hericles 289 Master Poster Featured Poster

You use a dataAdapter to fill a dataTable (or a dataSet) with the result of the query.
In your case you would end up with a table with 4 rows, each one holding the state of one of the buttons.
You then do a foreach over the dataTable getting the relevant cell and checking its value.
I don't do too mcuh VB.Net stuff these days so this will be just pseudo code but it should help

Dim da as DataAdapter(command object goes here)
Dim dt as DataTable
// set command text for command object
da.Fill(dt)  // get your data
foreach(DataRow row as dt.Rows) 
    // locate cell that holds value you need and enable/disable button
hericles 289 Master Poster Featured Poster

Really depends on what you what to write in/work with.
I'm a software developer and I do nothing in C/C++ or Java.

I work with PHP, .Net, objective C (iOS) and web stuff like angularJS.
Do you need to be really good? Well, it can't hurt...

hericles 289 Master Poster Featured Poster

You'll get a lot of differing views on this but my take is that the code should be self-documenting i.e. it is written well enough that its purpose can be easily seen by reading it.
This is by no means always possible so if you have a chunk of complicated code your comments should be sufficient to explain how it works.
There is nothing worse then getting someone else's code (or your own after a few months) and finding a complicated section with a comment at the top that says,
for example, "this parses the data into the correct format".

Traevel commented: // TODO javadoc +5
hericles 289 Master Poster Featured Poster

Is the data for the questions already part of the page or is it being retrieved from a server? If the questions are already part of the page you can use jquery to show/hide the sections in order as the user progresses through the survey.
If the data is being retrieved from a server you'll need to use AJAX to fetch the next chunk of data and then reload the correct section of the page.

hericles 289 Master Poster Featured Poster

Travel overseas while you are young. I spent 3 years tripping around the place and while your career is on hold during that time the results in terms of maturity and experience and well worth it. If you're money or career focuseed then don't, you'll just regret it later.
Get fit and stay fit. It doesn't matter what you do but get to a decent level of cardio fitness and muscular development (and I don't mean bodybuilder level). Your ability to build muscle and reach a decent level of fitness decline as you age. So get fit now as its easier to maintain fitness than acquire it. It'll help you age well.

RikTelner commented: Thank you! Precisely what I meant! +0
hericles 289 Master Poster Featured Poster

You need to realise that the steps you have taken that you've outlined above, your competition has done too.You can't just tick the boxes and sit back and wait to appear on page 1 for a contested search term. It just won't happen.
Alexa scores that site at 20 million. The top result for your search terms scores 45000 (the rest keep increasing from there).
You say its been a month which is not very long to generate a lot of usage data, build up back links or gain credibility with the search engines.
Scooter, the second website, has 45000 back links going by an online tool, your site has none. You can start to see the difference now?
SEO takes a lot of work and time.

hericles 289 Master Poster Featured Poster

MailChimp or ConstantContact. I've used both and slightly prefer MailChimp. Both have good APIs available too.

hericles 289 Master Poster Featured Poster

A double loop should do the trick

For Each house as string in housing
    For Each person as string in people
        Dim s as string = house + "-" + person
    Next
Next

My VB.Net is a little rusty so my syntax maybe off but that should be the general idea.

hericles 289 Master Poster Featured Poster

Seeing as your select statement doesn't include a WHERE statement I'm going to assume the query is returning more than one row. You are then looping through all returned rows and setting all of your variables.
At the end of this loop your variables are equal to the LAST row returned from the database. It's pretty unlikely that this row ID will match your $id variable.
Should your query be using a WHERE to get all rows matching $id?

hericles 289 Master Poster Featured Poster

There's no specified way to do that (as far as I know). Any diagram that indicates the various components and where they sit in relation to each other should be fine.
Just google 'n tier diagram' and you'll find plenty of examples.

strRusty_gal commented: Thank You! +3
hericles 289 Master Poster Featured Poster

And it tells you exactly why it failed.
Add the xlmns to the html element and adjust the DOCTYPE as it suggests.
You did read the output from the validator didn't you?

hericles 289 Master Poster Featured Poster

Access denied for user at least means you are connecting to the server. You're getting denied due to either the user name or the password. Have you tried just
$username="mydbphp";

Drop the host part. That might help. Although you create a user in mysql specifying the host it normally isn't part of the login user name.

hericles 289 Master Poster Featured Poster

You've given your labels a width of 200px which is pushing everything over to the right.
You should get used to using the developer tools in your browser (if you don't already) as copying your code and looking at the element in the inspector I used Chrome) made this trivial to see.
And sometimes tables have a use over divs. This looks like a tabular layout to me and placing it in a table does make a certain sense.

hericles 289 Master Poster Featured Poster

You need to use a join.

`select flower.*, mystash.* from flower
join mystash on flower.something = mystash.something where mystash.name like '%$data%' OR flower.name like '%$data%' ORDER BY name ASC`

The two .somethings need to be changed to whatever the two tables have in common. I.e. an ID column that links the two tables.

hericles 289 Master Poster Featured Poster

I'm assuming the app reaches out to the website directly. If you were concerned about the extra usage your app was going to inflect you could have your app call your website, where you cache the screen scraped data, refreshing the cache every x hours. Of course, that shifts the burden to your website. But if you're worried about blow back, that would help minimise it.
The increased usage of their website may not be as bad as you think. I'm assuming people interested in the app were already using the website, as you're just serving up that same data by another means.
The legality of it? tricky. As long as you're not hurting their bottom line or making public data that was private, you should be OK (thats not legal advice)

castajiz_2 commented: tnx for the answer! +4
hericles 289 Master Poster Featured Poster

In your submit_click function use:
$("#submit").prop('value', 'submitting');
And, of course, if validation fails, use the same line again to reset the value of the button to 'submit'.

hericles 289 Master Poster Featured Poster

Byte code is generated by the java compiler. It is the assemble style instructions your java code is turned into. Although a good programmer will understand the bytecode,should you ever need to review it, actually writing it is pretty inefficient.
This sample is from the wikipedia java byte code page
Java code:

for (int i = 2; i < 1000; i++) {
    for (int j = 2; j < i; j++) {
        if (i % j == 0)
            continue outer;
    }
    System.out.println (i);
}

Bytecode:

iconst_2
1:   istore_1
2:   iload_1
3:   sipush  1000
6:   if_icmpge       44
9:   iconst_2
10:  istore_2
11:  iload_2
12:  iload_1
13:  if_icmpge       31
16:  iload_1
17:  iload_2
18:  irem
19:  ifne    25
22:  goto    38
25:  iinc    2, 1
28:  goto    11
31:  getstatic       #84; // Field java/lang/System.out:Ljava/io/PrintStream;
34:  iload_1
35:  invokevirtual   #85; // Method java/io/PrintStream.println:(I)V
38:  iinc    1, 1
41:  goto    2
44:  return

Its pretty obvious which one I would rather type out and develop with.
In answer to your question, yes, your program can be written in bytecode because that is what compiled java is.
Apparently there are 198 bytecode instructions (from the wiki page above) so learning it and writing in it is possible but the real question is why would you want to?

hericles 289 Master Poster Featured Poster

Do you mean swipe?

hericles 289 Master Poster Featured Poster

If you are looking for a fully OOP language to learn then VB.Net is pretty easy. It has the most readable code in my opinion. It's structure and syntax mimics english syntax more than most other languages.
And then it is a small step to switch to C#, which is similar to Java in syntax.

I didn't learn Ruby as a beginner but I've heard others say it is fairly intuitive if you're new to coding.

hericles 289 Master Poster Featured Poster

Although you are setting a session you aren't putting anything into, or passing values via the form.
This means that on each page reload $_randNum isn't set as the page is 'new' and has no variables being passed to it or being retrieved from the session.
To add the rand number to the session:
$_SESSION['rand'] = $_randNum;
To retrieve:
if(!isset($_SESSION['rand']))

hericles 289 Master Poster Featured Poster

You could always create a class or struct and then you could use notation like:
user.name, user.email.

You could use a dictionary and enter key/value pairs.
Or, if you REALLY wanted it to look and operate like your example you could create a datatable or datarow with the columns named appropriately. Then you get exactly
user["name"], user["email"], etc if that is a requirement.

hericles 289 Master Poster Featured Poster

You will need to add the ability for the user to specify a location before reaching that code section. A file dialog will work. They can then locate the location they want to save and, on clicking the export button, the directory location becomes a variable that is inserted into the command text.

hericles 289 Master Poster Featured Poster

You aren't entering a NULL value for John Doe, you're entering an empty string which is not the same as NULL.
INSERT INTO Works VALUES('John Doe', 'Burger Steak', null);

would result in
John Doe | Burger Steak | NULL

hericles 289 Master Poster Featured Poster

Before you go too far with that solution I feel I should point out that splitting after a vowel won't always give you correct syllables. For example, you used CODE, saying the result should be "co" and "de" but code is a monosyllable word.
As is TOW, DAWN, RACE and a lot of other words that won't fit your algorithm. Splitting accurately by syllable is a lot more complicated than splitting after a vowel.

hericles 289 Master Poster Featured Poster

I'm not sure I understand your problem completely but I'll try to help.
Firstly, as you're using PHP you can make the GO button a submit button. When a value is selected in the drop down you don't need to do anything else until GO is clicked. Then the selected drop down value can be passed back as part of the form data. You then do the SQL query, get the URL and redirect to the correct location.
If you want to do away with the page reload and redirection you can look into AJAX. In this case, you'll do an AJAX request with the selected drop down value as a parameter, returning the URL. You can then edit the button to link to the correct URL.
You'll need to add a server side component to handle the AJAX query for this method to work.
Option 1 is probably much easier to implement but option 2 would be faster and more efficient.

hericles 289 Master Poster Featured Poster

To get an array of the text:
string[] s = label.Text.Split(' ');

and to check:
if(s.Contains(checkString)) {}

hericles 289 Master Poster Featured Poster

The repeater control is the right way to go. The only thing I would suggest is to think about how you want the image link to work. Personally, I would include the member ID for the photo in the link so the profile page reads the ID from the POST or the query parameters and uses that to extract the data from the database.
e.g. the naviagte URL for the image might be href='profile.aspx?id=109'

hericles 289 Master Poster Featured Poster

This is the standard reply we give users with your type of question, don't take it personally.
We don't just do your project for you. By all means, we will help you if you are stuck and having trouble. But we won't jump in and give you the answer because it doesn't help you get any better.
Posting up what you done so far, or what you have tried, will get your better responses.

So, how much of the question do you understand and can you show us what you've done so far?

hericles 289 Master Poster Featured Poster

I'm not sure I get what you're asking but any developer should be able to finish any project given time. The limiting factor is skillset.
A large project can be finished by a lone, talented individual given enough time, thats it.
As for solutions, if you don't want to, or can't, spread the work around several developers and you still want to complete it, roll your sleeves up and get down to it:)
I would suggest that developing something is different to maintaining it. You can develop at your own pace but you maintain it at the pace of your users. The two are not the same.

hericles 289 Master Poster Featured Poster

If you only have the two colours, the easiest thing to do is change the background to the default colour for all LI's and then adjust the colour for the one that was clicked using this.

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

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

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

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

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

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...