How can I have ajaxoptions included in the following form:
<form id="" action="<%=Url.Action("ChangePassword",new{Action="ChangePassword" }) %>" method="post" enctype="multipart/form-data">
This is a variation on a previous question as I am having tons of trouble finding answers in all my relentless online searches.
Am designing a website for an architecture firm. They want their clients to be able to upload files to them, through a link on their site, via ftp. They also want to have a sign in for their clients, and ensure the uploads are secure.
I can figure out how to make a form that has a file upload area - but just don't understand the ftp and the secure part...
I understand html, css and a bit of JQuery; the rest is still very challenging to me.
Have found something called net2ftp that claims to do what I'm looking for - but the even the installation instructions (for administrators, here: http://www.net2ftp.com/help.html) confuse me. Do I need a MySQL database? Where do I put in Admin password they refer to? It goes on...
Is there anything "easier" out there that anyone knows of? I have read that I should be Googling "file managers" - but don't know if these can be embedded in a client's website.
I even need to understand of what happens to said file, and where it ends up, when client clicks the upload link.
Oh - I am so in over head on this one.
Is it possible to extend the "Send to" menu in Office (not the Windows one; I know how to do that). I would like to launch my own application with the source document as the target.
Update: I am looking for a non-VSTO based solution.
I have an admin page with inlines. In each inline, I want to put some custom text with link to the regular admin page for the object from that inline. Is this possible without customizing/hacking admin templates?
I am trying to find the most repeated wordin a string.
My code is as follows:
public class Word
{
private String toWord;
private int Count;
public Word(int count, String word){
toWord = word;
Count = count;
}
public static void main(String args[]){
String str="my name is neo and my other name is also neo because I am neo";
String []str1=str.split(" ");
Word w1=new Word(0,str1[0]);
LinkedList<Word> list = new LinkedList<Word>();
list.add(w1);
ListIterator itr = list.listIterator();
for(int i=1;i<str1.length;i++){
while(itr.hasNext()){
if(str1[i].equalsTO(????));
else
list.add(new Word(0,str1[i]));
}
How do I compare the string from string array str1 to the string stored in the linked list and then how do i increase the respective count.
I will then print the string with the highest count,
I dont know how to do that either.
I'm working on a project where I'd like users to experiment with Java classes on Groovysh. I'd like to make it convenient for them and want to import certain packages by default, when groovysh starts up so that users would not have to re-type the same imports every time they start the shell. Does anyone know how to accomplish this?
Thanks in advance,
igor
So this question is probably pretty basic.
I am wanting to create an array from selected elements from a SQL table.
I am currently using:
$rcount = mysql_num_rows($result);
for ($j = 0; $j <= $rcount; $j++)
{
$row = mysql_fetch_row($result);
$patients = array($row[0] => $row[2]);
}
I would like this to return an array like this:
$patients = (bob=>1, sam=>2, john=>3, etc...)
Unfortunately, in its current form, this code is either copying nothing to the array or only copying the last element.
I am using following code to fetch images using database with php.
while($row = mysql_fetch_array($result)) //To excute result query
{
echo "<a href='http://".$row['website']."' target='_blank'><img src=\"" . $PathImage . $row['logo'] . "\" height = $FooterWidth /></a>XX;
}
Here I am using $row[logo] is fetching the path of images stored on the server and XX to put the spaced between the images having the same color of text XX as background, and but I want to use the proper method I know this can be done using table but I want to do it without using table.
Any Suggestions?
hellow all i am using svn for version control for an iphone application .
i have created it from xcode repositories by giving url ,user name and password
its authenticated .After that i have created a directory from there itself and have imported my project there. Then i have checked out to the local directory and have updated something in it. Click on commit changes. It done. After that i came to terminal to commit the project first time from terminal .There i have removed the build of the project then gave a command like "svn update".
here i am getting error like
svn: PROPFIND request failed on '/svn/pacman/GameDevelopment/Game'and 403 Forbidden error
whts going wrong here?
could any one help me in this ?
Thanks..
I have made a Visual Studio Add-in as part of a project I'm working on using web services.
When I created the new Add-in project in visual studio it generated all the code required and installed the blank add-in on my pc (I assume).
Since this is a large project we are using svn to manage the code base and once I had done some of the work on the Add-in I commited it, then checked it out on a different pc and attempted to run it.
However on the other pc when I run the add-in in debug mode, the tools entry for the add-in is not present and I can't run the add-in.
Am I right in assuming that when I created the project on the other pc it installed the plugin aswell?? and does that mean that I will need to create an installer for any other pcs I wish to use?
Obviously at some point I intend on making an installer anyway but not untill after the development of the addin is complete.
I have a list of about 40 entries. And I frequently want to append an item to the start of the list (with id 0) and want to delete the last entry (with id 40) of the list.
how do i do this the best?
like: (example with 5 entries)
[0] = "herp"
[1] = "derp"
[2] = "blah"
[3] = "what"
[4] = "da..."
after adding "wuggah" and deleting last it should be like:
[0] = "wuggah"
[1] = "herp"
[2] = "derp"
[3] = "blah"
[4] = "what"
or appending one and deleting first.
And I don't want to end up manually moving them one after another all of the entries to the next id.
..here my problem is i should check whetherthe speed ranges overlap or not and if dey overlap i should display a mess saying the speed ranges cannot be overlapped.
Minimum Maximum Rate
1 15 10
16 25 15
My knowledge of mysql is not very in depth. If I have two tables that for example look like this:
Table1
Date v1 v2 v3
05/01/2010 26 abc 45
05/02/2010 31 def 25
05/03/2010 50 ghi 46
Table2
Date v1 v2 v3
05/01/2010 42 jkl 15
05/02/2010 28 mno 14
05/03/2010 12 pqr 64
How can I join them in a query by their date and have the sum of table1.v1 and table2.v1 and also have the sum of table1.v3 and table2.v3. V2 should be ignored.
hi,
I downloaded the Gson library from http://code.google.com/p/google-gson/.
The archive contains the following jar files:
google-gson-1.3/gson-1.3-javadoc.jar
google-gson-1.3/gson-1.3.jar
google-gson-1.3/gson-1.3-sources.jar
How do I set my Eclipse to be able to use the package in my projects? Where do I put the documentation?
Thanks
jul
I asked this question on SO. However, I wish to extend it further. I would like to find the max value of the 'Reading' column only where the 'state' is of value 'XX' for example.
So if I join the two tables, how do I get the row with max(Reading) value from the result set. Eg.
SELECT s.*, g1.*
FROM Schools AS s
JOIN Grades AS g1 ON g1.id_schools = s.id
WHERE s.state = 'SA' // how do I get row with max(Reading) column from this result set
The table details are:
Table1 = Schools
Columns: id(PK), state(nvchar(100)), schoolname
Table2 = Grades
Columns: id(PK), id_schools(FK), Year, Reading, Writing...
I have a C project in Eclipse that stores its files in two directories at the same level along with a bunch of other stuff that I do not need to have in the project.
/path/
/code_I_want
/bad_stuff/
/more_code_i_want/
/huge_pile_of_other_code/
Edit: The source directory is a Clearcase VOB mount point so I can't control what ends up there.
I need to set a cookie in IE to execute some specific flow. I tried using the following code
ieb = Watir::IE.new
ieb.document.cookie="rememberme=foobar;Path=/; Domain=sometestdomain.com"
# Bring up browser and do bunch of stuff
However, I see that when the IE comes up, rememberme cookie is not set. Am I doing something wrong here?
I would like to limit the results to those whose KEY_HOMEID is equal to journalId.
I've been on this for a couple days any help would be appreciated.
public Cursor fetchAllNotes(String journalId)
{
return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_HEIGHT,
KEY_BODY, KEY_HOMEID},"FROM DATABASE_TABLE WHERE KEY_HOMEID = journalId",null, null, null, null,null);
}
$('.openDialog').click(function(event){
var width=$(this).attr('width');
var height=$(this).attr('height');
alert(width + ' ' + height);
event.preventDefault();
$("#dialog").dialog({autoOpen: false, modal: true});
$('#dialog').dialog('option', 'width', width);
$('#dialog').dialog('open');
$('#dialog p').load('http://pagetoload.com/page.html .content');
});
As you can see above i'm trying to open a dialog box with a passed in parameter of width and height, however when I try and pass in the value of width on this line:
$('#dialog').dialog('option', 'width', width);
it doesn't work, any ideas why or how to get around that?
Thanks
I want to create a custom page for my Wordpress blog that will execute my php code in it, whilst remaining a part of the overall site css/theme/design.
The php code will make use of 3rd party APIs (so I need to include other php files)
How do I accomplish this?
N.B. I do not have a specific need to interact with the Wordpress API - apart from including certain other php libs I need I have no other dependencies in the PHP code I want to include in a WP page. So obviously any solution that didn't require learning the WP api would be the best one.
Hello,
Hello,
I am quite new to iphone development. I have a situation here. I have some labels which can be dragged across the screen.
When any of these labels are dragged to some textfield and released over a textfields UIlabel test is assigned to that text field.
Now the problem is this I want to assign the text of UILabel to some specific position in textfield according to release of textfield
i.e If user releases at the beginning of text field then it should be appended at the beginning and if somewhere near end of text of textfield then it should be appendended at the end.
Can you help me to fabricate this condition.
Thanx in advance
I needed to convert my code to ARC. I have an NSArray that I use to draw a path. I fill the objects of NSArray values from a different class.
Problem is after converting to ARC, NSArray returns always null
I can not see what I am doing wrong.
bug.h
@interface Ladybug : CCSprite <CCTargetedTouchDelegate>{
CCArray *linePathPosition;
}
@property (nonatomic, strong) CCArray *linePathPosition;
@end
bug.m
@synthesize linePathPosition;
-(id) init
{
if( (self=[super init] )) {
self.linePathPosition = [[CCArray alloc] init];
}
return self;
}
-(void) updatePosition:(CGPoint) position
{
[self.linePathPosition addObject:[NSValue valueWithCGPoint:position]];
NSLog(@"line path %@",linePathPosition);
}
-(void) breakMoveLadyBug
{
[self.linePathPosition removeAllObjects];
}
In main .m
- (void)ccTouchMoved:(UITouch *)touch withEvent:(UIEvent *)event
{
Ladybug *ladybug1 = (Ladybug *)[self getChildByTag:99];
CCMotionStreak* streak = (CCMotionStreak *)[self getChildByTag:999];
CGPoint touchLocation = [touch locationInView: [touch view]];
CGPoint curPosition = [[CCDirector sharedDirector] convertToGL:touchLocation];
if (ladybug1.isSelected) {
streak.position = curPosition;
[ladybug1 updatePosition:curPosition];
NSLog(@"Cur position %@",NSStringFromCGPoint(curPosition));
if (!ladybug1.isMoving) {
[ladybug1 startMoveLadyBug];
}
}
}
Log:
Cur position {331, 110}
line path (null)
What am I doing wrong? What is the proper way to define and init NSArray with ARC?
PdfFileReader reads the content from a pdf file to create an object.
I am querying the pdf from a cdn via urllib.urlopen(), this provides me a file like object, which has no seek.
Now, what can I do to avoid writing to disk and reading it again via file().
Thanks in advance.
I've got several pre-commit hooks that I would like to run before each commit. Right now, they are all just shell-scripts, so I know i could just concatenate them to get them all to run. In the future though, additional scripts may be written in Perl, PHP, or some other language as well.
How can I run several different scripts as part of a single pre-commit hook?