tobyITguy 24 Junior Poster

Does anyone currently use Xamarin framework for development? Its supposed to enable you develop cross platform with c# but some C# code i use in a console app that works properly doesnt work in Xamarin.

Wandering if anyone has got that sorta issue.

tobyITguy 24 Junior Poster

Are the two files in the same directory? the file thats required in the header file, whats the location?

tobyITguy 24 Junior Poster

The virtual enables lazy loading(optional- but ive not seen anyone use it without that keyword), the fact that you have Patient Patient along with the key of the class as a property in the related class then your defining a relationship.

tobyITguy 24 Junior Poster

If you wanna make it two words from two different text boxes you use

 DV.RowFilter = String.Format("name Like '%{0}%' OR name Like '%{1}%'", TextBox1.Text,TextBox2.Text)

If you wanna search a string theres an InStr function that can help you with that. I don't know about identifying a capital letter.

And like Reverend Jim said. You need to make use of the IN keyword.

tobyITguy 24 Junior Poster

You are trying to add data into 5 columns but your supplying only 2 columns of data.

$sql="INSERT INTO strength(dept, clerks, executives, helpers drivers) values ('$dept', '$design')";

Between helpers and drivers theres supposed to be a comma.

You collected persons variable and never used it.

To fix the insert error your code should be something like this

<?php
$clerks = $_POST['clerks'];// do this for all the variables in the values section
$dept=$_POST["dept"];

$connect=mysql_connect("localhost", "root", "") or die ("error");
mysql_select_db("db", $connect);
$sql="INSERT INTO strength(dept, clerks, executives, helpers, drivers) values ('$dept', '$clerks','$executives','$helpers','$drivers')";
?>

Then you need to update your html code putting inputs that correspend with all the variables.

If your trying to select data from the database and report it to the user using a html page, then you need to redo everything because your getting it wrong.

tobyITguy 24 Junior Poster

I agree. A better explanation and you would get useful answers.

tobyITguy 24 Junior Poster

If your trying to display the content in a cell in a table on two lines. You need to add the 'rowspan' attribute in your cell.

tobyITguy 24 Junior Poster

Welcome! I like networking too.

tobyITguy 24 Junior Poster

Cool. Welcome.

tobyITguy 24 Junior Poster

Also if your looking for something like this delete.PNG

Then you can tell me and id give you the classes i used to generate that.

Hope that helps.

tobyITguy 24 Junior Poster

Im assuming that theres a view to add allergies which would then require that it be associated with a patient. I.E the person with that allergy.

Check the image of the MVC scaffolded view attached.

Since theres no name property in the patient class. We can't change the view to display names for us to select from rather than IDs.

Hope you understand?

If im getting things wrong, please correct me.

tobyITguy 24 Junior Poster

You need to annotate and specify the foreign key.

public class PatientWeight
    {   
        [key,ForeignKey("Patient")]
        public int Id { get; set; }
        public DateTime DateChecked { get; set; }
        public double Weight { get; set; }
        public virtual Patient patient { get; set; }
    }

You also need to use this namespace

using System.ComponentModel.DataAnnotations.Schema;

I also noticed your Patient class has no name field.

I think it would be necesary becasue when the relationship is made, you dont wanna be assigning allergies or operations to patients using their ids.

Using names would make it more friendly.

tobyITguy 24 Junior Poster

You need to use javascript to determine mouse movement.
Your timer variable needs to be in javascript.

document.onmousemove = function(){your code here}

In your code you reset the timer every time the mouse moves.

Then you can make your javascript call your php function if the timer reaches 30mins without being reset.

tobyITguy 24 Junior Poster

The -4200 just sets the cookie expiration date to a date that has passed.

That way the cookie is deleted.

So changing the time in that particular function isn't gonna achieve what you want.

tobyITguy 24 Junior Poster

The page just flashes and no data comes from linkedin.

And im already logged in on linkedin on my computer.

tobyITguy 24 Junior Poster

@Narendra you dont need to respond to posts this old.

tobyITguy 24 Junior Poster

@ atete

You dont resurrect posts like this. If this didnt solve your question. Raise a new discussion + with a question like that, you will get no answers.

Show what you have done and where the error is, you will get help.

tobyITguy 24 Junior Poster

Use WebClient.
Download the data as byte array.

Append a .pdf to the file name after the download.

Open it.

tobyITguy 24 Junior Poster

Try opening the project on a different machine. See what happens.

tobyITguy 24 Junior Poster

Yet another Link

Stored procedures are used to store some actions on your database. So that those actions can be peformed by people without having direct access to the data.

It allows for variable declaration. Its like functions in programming.

DELIMITER //

CREATE PROCEDURE `multiply` (OUT var1 INT)
BEGIN
    SET var1 = var1 * 2;
END //

When the mutiply procedure is called like so

CALL multiply(5)

its given a parameter(in this case 5).

That parameter is then multiplied by two and returned.

Within the "begin" and "end", you can put any type of query.

It limits what users can do on your database and enhances security and ease of use.

The "DELIMITER" tells sql your done with typing a statement.

In the example we used // as our delimiter.

Hope that helps.

tobyITguy 24 Junior Poster

Try this

$str = "james////bond

tobyITguy 24 Junior Poster

You can learn how to use google maps here

It would work on wamp provided your computer is connected to the internet.

tobyITguy 24 Junior Poster

Okay, Thank you Jim.

tobyITguy 24 Junior Poster

I now understand what you talking about.

First you failed to mention that its on the about page.

Next its happening becuase your using parallax on it.

Either take your parallax off or put it in section tags

tobyITguy 24 Junior Poster

Im trying to import my linked in profile to fill my CV page.

Its not working.

Help please.

tobyITguy 24 Junior Poster

Yeah, thats weird. I also dunno why when we check a forum, you see topics from two years ago above some from two days ago.

I find that strange

tobyITguy 24 Junior Poster

what problem does it give?? show the error

Gideon_1 commented: yh, no codes help is quite difficult +1
tobyITguy 24 Junior Poster

Create a new console app project.

Paste the code.

Change the file path.

Run the application.

Then you will be prompted to type.

Alternatively, just replace

input = Console.ReadLine()

with

input = "machine"

tobyITguy 24 Junior Poster

Try this:

Module Module1

    Sub Main()
        Dim FileName As String 

        FileName = "C:\Users\Toby\Desktop\daniweb.txt"

        Dim TextLine As String

        If System.IO.File.Exists(FileName) = True Then

        Dim objReader As New System.IO.StreamReader( FileName )

        Do While objReader.Peek() <> -1

        TextLine = TextLine & objReader.ReadLine() & vbNewLine

        Loop

        Console.WriteLine(TextLine)
        Dim aryTextFile() As String
        Dim numOfLines As Integer 
        Dim input As String

        Console.WriteLine("what do you wanna find")
        input = Console.ReadLine()

        aryTextFile = TextLine.Split("*")

        numOfLines= UBound(aryTextFile)       

        For counter = 0 to numOfLines

        Dim pos As Integer = InStr(aryTextFile(counter),input)

        If pos <> Nothing AndAlso pos <> -1 

                    Console.WriteLine(aryTextFile(counter))



        End If

        Next


        Else

        MsgBox("File Does Not Exist")

        End If

        Console.ReadLine()
    End Sub


End Module

This would return the whole line with the word.

Its a console app so you can add the GUI yourself.

so if you have

Ani | #friend #human #male *
Car | #machine *
BMW | #car *
Toyota | #car *
James | #human #male *

and search for Machine you will get

Car | #machine

use the split function i gave you earlier to make it gibe just the word before the '|'

I used the trailing * to split the lines before checking. So you have to use that format in your text file.

Hope that helps.

altjen commented: helpful +2
tobyITguy 24 Junior Poster

Yeah Reverend Jim, I think that is what he wants. I understand now.

@altjen - Must the code be in VB?

tobyITguy 24 Junior Poster

"Ajax" bro.

Check This

It should help.

tobyITguy 24 Junior Poster

You didn't ask for help my friend. You pasted the question.

ddanbe commented: Great point. +15
tobyITguy 24 Junior Poster

Im totally not understanding but i want to help. If you can find a different way of expressing yourself id be happy. If your better at a different language try describing your requirement in detail and use google to translate it.

Maybe that would help.

tobyITguy 24 Junior Poster

Gateway timeout means the code didnt even get to the server most likely.

Check your connection to your database and retry his code

tobyITguy 24 Junior Poster

I actually dont see anything wrong with your code.

Try setting AutoGenerateColumns to true in the asp control and let C# make the columns for you. Lets see what happens.

tobyITguy 24 Junior Poster

That's because your html code is really wrong.

Try this:

<html>
<head>
    <style type="text/css">
        #nav > ul > li {
            float: left;
            padding:10px;
            list-style: none;

        }
        #nav li ul li{
          padding-top:10px;
          list-style: none;
        }         
       #nav li ul
        {
            display:none;
        }
        #nav li:hover ul
        {
            display:block;
        }
        #nav li ul:hover li
        {
            display:block;

        }   
    </style>
</head>
<body>
<!-- <nav> HTML 5 -->
<nav id="nav">
<ul>
    <li><a href="#"> Home</a> </li>

    <li> <a href="#"> About</a> </li>

        <li><a href="portfolio.php">PORTFOLIO</a>
            <ul>
                <li><a href="portfolio.php">Portfolio1</a></li>
                <li><a href="portfolio3.php">Portfolio2</a></li>             
            </ul>
        </li>     

    </li>    

        <li><a href="blog.php">BLOG</a>
            <ul >
                <li><a href="blog.php">blog1</a></li>
                <li><a href="blog2.php">blog2</a></li>             
            </ul>
        </li>  

  <li><a class="fly" href="contact.php">CONTACT US</a>
            <ul>
                <li><a href="contact.php">Contact Us1</a></li>
                <li><a href="contact2.php">Contact Us2</a></li>             
            </ul>
        </li>
    </ul>
</div>

</nav>
<!-- </nav> -->
</body>

If you wanna add more links where the "Home" is, you add <a> tags under the <li> tags in the first <ul> under the <nav> tag.

If you want sub menus, add <ul> tags under the list tag of the parent item
then <li> tags.

Try and understand what i wrote while looking at the code i gave you.

lps commented: Agreed html code is wrong. Understand the difference and usage of id and class. I saw question having multiple element with same id +4
tobyITguy 24 Junior Poster

The only laptop i see in the slider moves like the others.

It fades

tobyITguy 24 Junior Poster

Lol, well there's just never gonna be an a desicion accepted by everyone.

Nice having this convo with you guys.

tobyITguy 24 Junior Poster

im sorta getting your point now Reverend Jim. There's definately going to be mis-use here and there. But that doesn't justify the need for so much privacy.

Because like i said, these things are done large scale and at random. Id relate it with a police road checkpoint. The fact that they waste the precious time of some people who are good citizens doesn't justify them taking it away totally because they still get bad guys.

I feel its top execs of large companies that need to worry the most about it and funny enough, i don't think they are the ones spear-heading the privacy movement.

tobyITguy 24 Junior Poster

Okay, mark as solved. I don't see any problem in the syntax.

tobyITguy 24 Junior Poster

I really love your site Dani. Just discovered it. I'm a big fan. :)

tobyITguy 24 Junior Poster

seriously privacy isn't really that important if your not a crook.

I mean the government may have hours of video of you cheating on your wife,but who cares. They won't tell on you. You will get away with it because its not against the law.

But if your planning a bombing, they would stop you dead on your tracks.

So people should take it less seriously, if they aren't doing illegal stuff.

ddanbe commented: That's indeed what I meant. +0
tobyITguy 24 Junior Poster

Im still having difficulty understanding your requirement.

But try this:

    Public Function SplitWord(ByVal s As String) as String


    'Split string where there is a '|'

    Dim words As String() = s.Split(New String() {"|"})

    SplitWord = words

    End Function

You can call it and give it a string as a parameter

It should return the first word before the '|'

Meaning if you give it 'This | is a ball'

It would return 'this'

If you want it to give you all the words in the document one line at a time,
then we can do that too.

If anyone can better understand his requirement, please explain.

tobyITguy 24 Junior Poster

Try this:

#nav li ul
{
    display:none;
}

#nav li:hover ul
{
    display:block;
}

#nav li ul:hover li
{
    display:block;
}
tobyITguy 24 Junior Poster

show your colorbox javascript code. Its happening because you are calling it on the the element with the id of webcam.

tobyITguy 24 Junior Poster

Trying to understand the question.

You want the modal to work without having to add the id field?

tobyITguy 24 Junior Poster

Thanks! I really love the UX.

tobyITguy 24 Junior Poster

Try this.

UPDATE StudentRegistration SET Year ='2016', Term = 'Term 1' where P1Totals.StudentTotals between 300 and 400

Note: When dealing with numbers you don't need to the quotation marks.

tobyITguy 24 Junior Poster

You can use ajax.

Click Here
Click Here

tobyITguy 24 Junior Poster

what kind of contruibution do you need exactly? You said you used bootstrap?

Does it mean your done with the coding?

You should use google maps for your GIS they have a good api.