Hello
I've a text editor in my application. I want to programatically set the input language for the text editor alone without affecting other controls.
Any ideas?
Regards
NLV
I have to crawl a site which list item based on user input through http post submission. How to configure post http submission details in Nutch.
I got help on how to do HttpPostAuthentication, but I got no help on "how to do post data submit other than username and password".
I want to iterate over each line in the output of ls -l /some/dir/*
Right now I'm trying: for x in ls -l $1; do echo $x done, however this iterates over each element in the line seperately, so i get
-r--r-----
1
ivanevf
eng
1074
Apr
22
13:07
File1
-r--r-----
1
ivanevf
eng
1074
Apr
22
13:17
File2
I want to iterate over each line as a whole, though.
How do I do that?
Thanks.
I am writing a Page with XML Only. No XSL is being.
everything is going well with XML and CSS.
But how can I make Input fields with XML and CSS Only ??
is it really possible ??
Hi!
I've been reading about XSS and I made a simple form with a text and submit input, but when I execute <script>alert();</script> on it, nothing happens, the server gets that string and that's all.
What do I have to do for make it vulnerable?? (then I'll learn what I shouldn't do hehe)
Cheers.
$('form').submit(function(){
this.action="http://www.sitename.com/post";
return false;
});
having altered the action attribute of the form ,i want to add one more input parameter to it how do i do that ?
while using the appengine sdk i can't view the Output of my System.out.println statements how can i view them they are like envaluable debugging tool for me .
I'm implementing a little chat application where I receive messages from a server, which I would like to display to a user. As I'm more of a backend guy, and lacking experience in frontend development, I don't know which element would be suited best to output the text.
Two options come to my mind:
Using a plain div
Using a textarea (as far as I understand, this is intended to be used for input).
(Would also be nice if I could somehow fade in the text using JQuery).
I'm considering picking up some very rudimentary understanding of assembly. My current goal is simple: VERY BASIC understanding of GCC assembler output when compiling C/C++ with the -S switch.
Just enough to do simple things such as looking at a single function and verifying whether GCC optimizes away things I expect to disappear.
Does anyone have/know of a truly concise introduction to assembly, relevant to GCC and specifically for the purpose of reading, and a list of the most important instructions anyone casually reading assembly should know?
Hi,
I know that log4j by default outputs to stderror.
I have been capturing the out put of my application with the following command:
application_to_run 2> log ; cat log | grep FATAL
Is there a way to capture the output without the auxiliary file?
Hi, I am working on creating a daemon in Ruby using the daemons gem. I want to add output from the daemon into a log file. So I am wondering what is the easiest way to redirect puts from the console to a log file?
Hi
I am new to pointers in C. I know the basic concepts.In the below code how its printing the "ink" as output.
#include<stdio.h>
main()
{
static char *s[]={"black","white","pink","violet"};
char **ptr[]={s+3,s+2,s+1,s},***p;
p=ptr;
++p;
printf("%s",**p+1);
}
Thanks
$ cat somefile.txt
afsdfv
asdf[ABC]dafga
asdfasf
yxcvyxv[/ABC]
asdadf
yv[ABC]sdfb
sdfgadfg
[/ABC]adf
asdf
$ cat somefile.txt | NEEDEDONELINER > output.txt
dafga
asdfasf
yxcvyxv
sdfb
sdfgadfg
$
So the "NEEDEDONELINER" only outputs the characters between a [ABC] and [/ABC].
[ABC] could occur several times, and there could be random characters around it.
I only need the random chars between the [ABC] and [/ABC].
I don't have time to learn Perl :\
Thank you in anticipiation!
I'm creating something where users can upload an xml and data get's imported to the database.
Now I'm building some kind of a preview page where users will get to see how their input will look once it's stored.
What would be the fastest (in execution time), using XSL to transform the xml to a html page, or using php to render the output?
My guess is XSL is far more suitable (+ faster) for this (and by using a DTD there's no need for code written validation, right?)
Is there any short way to achieve what APT does in Python ?
I mean, when the package manager prompts a yes/no question followed by "[Yes/no]".
The scripts accepts YES/Y/yes/y or "enter" (defaults to Yes as hinted by the capital)
The only thing I find in the official doc is input/raw_input..
I know it's not that hard to emulate, but it's annoying to rewrite :|
There are a few buttons associated with the Output window in Visual Studio (VS2005/2008/2010). One of them is "Clear All Panes".
How can I install an event handler that's called when that button is clicked?
I'm building a Visual Studio extensibility package, working in C#.
I'd like to have a shell script redirect stdout of a child process in the following manner
Redirect stdout to a file
Display the output of the process in real time
I know I could do something like
#!/bin/sh
./child > file
cat file
But that would not display stdout in real time. For instance, if the child was
#!/bin/sh
echo 1
sleep 1
echo 2
The user would see "1" and "2" printed at the same time
Hello everyone
I hope to mask the text input to UITextFiled as:
"ABCDE" to
"*****"
below are my codes without function
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{
int l=[textField.text length];
range=NSMakeRange(1, l );
string=[[[NSString alloc]initWithString:@"*"] autorelease];
return YES;
}
Welcome any comment
Thanks
interdev
What's the best way to sanitise user input for a Python-based web application? Is there a single function to remove HTML characters and any other necessary characters combinations to ensure that an XSS or SQL injection attack isn't possible?
Hi!
I have tried to use xDebug on my local Ubuntu environment to speed up development and it's a great asset.
However, I would like to see the output of the Trace function directly in the browser, at the end of the script. How can this be done?
I have a page, where I have approximately 90 items I need to output. Most of them are object properties (I am using ORM so these objects map to my database tables). But the question is, do I have to escape each of those 90 outputs by applying functions to each (in my case, the htmlspecialchars)? Wouldn't that add a bit of an overhead (calling a single function 90 times)?
Hi everybody,
I need to send the list of the input arguments to readInput function. But the compiler gives error when I call readInput function. Could you please tell me where my mistake is?
bool readInput(netcorr net,int argc, char * argv[]);
int main(int argc, char * const argv[]) {
netcorr net;
bool error=readInput(net, argc, argv);
}
bool readInput(netcorr &net,int argc, char * argv[])
{
}
thanks for your help.
Pegah
Having a ls output like
GGGG_3.0.3_98/
GGGG_3.0.3_d_100/
GGGG_3.0.3_d_101/
GGGG_3.0.3_d_99/
GGGG_3.0.4_104/
GGGG_3.0.4_105/
GGGG_3.0.4_106/
GGGG_3.0_87/
GGGG_3.0_89/
GGGG_3.0_90/
GGGG_3.0_91/
GGGG_3.0_92/
GGGG_3.0_93/
SSS_2.2.3_01/
SSS_2.2.3_02/
SSS_2.2.3_03/
TTT_2.8.3_29/
how to get the elements ordered by suffix?
Also, is there any quick command I can use to know that 106 is the last suffix in this example?
Sorry: it wasn't clear that "the suffix" in the given example is everything following the final underscore.
I want to valid if user has entered username and password at the time of creating an account is safe or not based on its length(for my case five) on the right side of input field by showing that in different color i.e. for shorter in red, otherwise in green. How can I do that with javascript?