Hello.
I came across a program with 10 header and 10 source files. I read in my text book that the functions are called from main. But how can I pass data to so many functions from main()?
Hi.
I created a tableViewCell the include an image, two text labels and a uibutton.
The button is allocated to an action method (e.g. viewButtonPused:sender).
I'm used to handle row selection with tableView:didSelectRowAtIndexPath: so I could tell which row was selected. But with the uibutton and its action method .... How can I tell?
Thanks in advance.
I have a char array with data from a text file and I need to convert it to hexadecimal format.
Is there such a function for C language.
Thank you in advance!
Recently I did a Java programming exercise successfully which was sent by a recruiting firm, The problem statement goes like this 'There are two text files FI(records abt files and directory information) and FS(containing blocks of data) which represent a file Index and file System respectively and I was supposed to write a static read method in a class which will read the file from the FS depending upon the path string provided using FI' My question is where can I get these kind of exercises to solve, the complexity should be above average to tough.
Hi,
We have a product(client-server) which we want to release under GPL.
What is the procedure that needs to be followed?
We also have a EULA text, what needs to be added there?
Just adding the GPL license to each sourcecode file is sufficient, is it?
Please advise.
Regards
-Jad
Hi,
I have some problem with parsing XML in Ie6/7(original 7 no compatible mode). On Another normal browsers it works.
Jquery code:
$.ajax({
type: "GET",
url: "test.xml",
dataType: "html",
success: function(xml) {
$(xml).find('quoteresult').each(function(){
var bid = $(this).find('bid').text();
alert(bid);
});
}
});
I can't understand what is wrong !
Thanks
I'm trying to have a login form in php. But my current code doesnt work.
Here is the form:
<form name="form1" method="post" action="loginverify.php">
<td><font size="3">Username:</td>
<td></td>
<td><input type="text" name="uname" value="" maxlength="15"/><br/></td>
<td><font size="3">Password:</td>
<td></td>
<td><input type="text" name="pword" value="" maxlength="15"/><br/></td>
<tr>
<td> </td>
<td> </td>
<td><input type="submit" name="Submit" value="Login" /></td>
</form>
And the verify.php
<?php
session_start();
?>
<?php
$host="localhost";
$username="root";
$password="nitoryolai123$%^";
$db_name="login";
$tbl="users";
$connection=mysql_connect($host, $username, $password) or die("cannot connect");
mysql_select_db($db_name, $connection) or die("cannot select db");
$user=$_POST['uname']
$pass=$_POST['pword']
$sql="SELECT Username, Password from users where Username='$user' and Password='$pass'";
$result=mysql_query[$sql];
$count=mysql_num_rows($result);
if($count==1){
$SESSION['Username']=$user;
echo"<a href='searchmain.php'> CONTINUE</a>";
}
else{
echo"wrong username or password";
echo"<a href='loginform.php'>Back</a>";
}
?>
Is there something wrong with my code. I get this parse error at line 15, which is this:
$pass=$_POST['pword']
But when I try to remove it.It goes to line 16 or line 17 again. What do I do
Say I have created a GUI (Qt) that operates with some data(text+image). How I can export that data in one of listed formates in title.
I guess it is better to export info .rtf as it is free cross-platform formt(??), isn't it?
Hi,
I have a customized navigation bar with a image background. I do want to show the title on the background but I need its text for the back button in the next view.
How can I do it please?
Thank you
ps: self.title=@"" will not put (naturally) in the back button the previous title.
I need to find basic WYSIWYG HTML editor component for C++Builder 5 to let users to create some simple text that I will paste into existing HTML page template.
Just a simple support to create links, add images, use headers/bold/italic.
Hello!
I have a UITableView with custom cells. The cells containing one UITextView each and the cell is resizing during user type text in the TextView. My problem is when user is on first row in a TextView autocorrection bubbles wont be visible in the current cell. Is there any workaround or can someone point me to another direction?
Hello!
In MS Exam 70-536 .Net Foundation, Chapter 3 "Searching, Modifying, and Encoding Text" in Case Scenario 1 related to regex there is a question:
How can you constrain the input before you write any code?
I thought it's maybe a in-mind design of regex pattern but it will not really constrain the input, will it? I am not so good in psychokinesis yet!
Or maybe the is some other way?
Thanks for your time!
I recently acquired a Metrologic Barcode scanner (USB port), as everyone already knows it works as a keyboard emulator out of the box.
Now my question, how do I configure the scanner and my application, so that my app can process the barcode data directly. That is, I don't want the user to focus on a "Text field" and then process the data when the KeyPress event fires.
Hi,
Depending on the font settings (DPI and such) on the user's computers, I can have text become too big to fit in a button and moves down to the next line (wrap), so if it is a small button that says "Do xyz", it will only show "Do" unless I increase the height on the user's computer, but it looks fine on mine.
Is there any way to force it to stick to original font size?
Using Windows Mobile 6.5 and C#
The CharacterCasing property seems to be missing from WinMo 6.5 and I decide to just catch the textchanged event and set the text with ToUpper.
This works - but on every keypress, it sends the cursor back to the beginning of the string, not the end.
I am using vb.net 2005. i am trying to set report groupings of a crystal report at runtime based on user defined options. MSDN says this:
Dim FieldDef As FieldDefinition
FieldDef =
Report.Database.Tables.Item(0).Fields.Item(comboBox1().Text)
Report.DataDefinition.Groups.Item(0).ConditionField = FieldDef
but error shows invalid group number
how to solve this?
I am sending some text messages from the unix box to the normal internet mail ids.
I Wanted to add a hyper link in those mails, but link to a file on the server not to a URL.
How I can do this?
How does jquery handle event assignment when it comes to assigning the same handler multiple times? Let's say I have
<div class="draggable">Some Text</div>
Are there any side effects (performance or otherwise) from calling the following multiple times?
$('.draggable').draggable();
hi
I've tried a few php IDEs , but still searching for the FASTEST one
all Java based IDEs are too slow, I have 2 computers to work, my home pc which is too fast, and my laptop witch is good , but cant handle a heave software.
and I have to work on them both, so I'm looking for the best free ide which is fast
I'm not talking about text-editors , because I already have np++ and its great, but looking for extra features to help me save time..
any tips?
I would like to hook a character typed in an input text field and type '1' in the field in case 'a' was pressed.
Here is the code:
<html>
function translate_code(charCode) {
switch (charCode) {
case 65: //
return '1' ;
case 97:
return '9';
}
}
function noEnglish(event) {
if (event.charCode) {
var charCode = event.charCode;
} else {
var charCode = event.keyCode;
}
if (65
Hi,
Under normal circumstances to authenticate a user in AD, one sends AD the user's clear text password (using SSL, hopefully). For reasons that are out of my control, I only have an MD5 hash of the user's password. Is it possible to configure AD to authenticate users using this hash instead of the original password?
Thank you
How do I get shortcodes to process properly in custom fields?
I've tried using the code below, but I cannot figure out where to place it ("button" is the name of the field):
<?php
if ( get_post_meta($post->ID, 'button', true) )
echo do_shortcode(get_post_meta($post->ID, 'button', $single = true));
?>
As of now, the shortcode is working in the sense that the button is displaying, but the shortcode text is displaying where the "buy now" button is supposed to be. See screenshot:
http://i.imgur.com/41vsr.png
I'm expanding Wordpress to function more like a CMS. This includes relating image to a post.
Currently I have a text field where I paste an image path.
Now I want to click a button which opens a dialog box, then I navigate to the right folder and select a file to "open" (from server side).
The file path is returned.
How can I go about accomplishing this?