03-14-2012
can u suggest me how to do that or is there any other option
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
like connect "summer" and "winter" to "summerwinter"?
Can anybody help me? thanks a lot. (2 Replies)
Discussion started by: fontana
2 Replies
2. Programming
Hi !
How to reset a variable to 0 after a reset value, say 10 using bitwise
XOR.
For example,
int cnt=0;
if(cnt<10)
cnt++;
else
cnt = 0;
How can we achieve this by using XOR only.
thanks, (1 Reply)
Discussion started by: mrgubbala
1 Replies
3. Shell Programming and Scripting
i have to xor two variables in ksh. how to do that?
tia,
DN2 (5 Replies)
Discussion started by: DukeNuke2
5 Replies
4. Programming
Hi,
I am trying to reverse a string using the following program utilizing the Exclusive OR bit operation:
int main() {
char str = "Quraish";
char *p = str, temp;
char *q = str + strlen(str) - 1;
while ( p != q ) {
if (*p != *q) {
*p ^= *q; *q ^= *p; *p ^= *q;... (1 Reply)
Discussion started by: royalibrahim
1 Replies
5. UNIX for Dummies Questions & Answers
Hello guys,
should be a very easy questn for you:
I need to delete strings in file1 based on the list of strings in file2.
like file2:
word1_word2_
word3_word5_
word3_word4_
word6_word7_
file1:
word1_word2_otherwords..,word3_word5_others... (7 Replies)
Discussion started by: roussine
7 Replies
6. Shell Programming and Scripting
The question is not as simple as the title... I have a file, it looks like this
<string name="string1">RZ-LED</string>
<string name="string2">2.0</string>
<string name="string2">Version 2.0</string>
<string name="string3">BP</string>
I would like to check for duplicate entries of... (11 Replies)
Discussion started by: raidzero
11 Replies
7. UNIX for Dummies Questions & Answers
I am aware of truth table for XOR between binary values .
Out of curious in would like to know how XOR works between 2 strings which contain alphabets .
For example A ^ B
How it works internally?
Please help me to understand this
Thanks (1 Reply)
Discussion started by: pandeesh
1 Replies
8. FAQ Submission Queue
The purpose of this article is revealing the unrevealed parts of the bitwise XOR.
As we aware, the truth table for the XOR operator is :
A B A^B
0 0 0
0 1 1
1 0 1
1 1 0
For example , 1^2 will be calculated as given below:
First the operands... (1 Reply)
Discussion started by: pandeesh
1 Replies
9. UNIX for Beginners Questions & Answers
Hello Everyone ,
Iam a newbie to shell programming and iam reaching out if anyone can help in this :-
I have two files
1) Insert.txt
2) partition_list.txt
insert.txt looks like this :-
insert into emp1 partition (partition_name)
(a1,
b2,
c4,
s6,
d8)
select
a1,
b2,
c4, (2 Replies)
Discussion started by: nubie2linux
2 Replies
LEARN ABOUT DEBIAN
mojomojo::controller::page
MojoMojo::Controller::Page(3pm) User Contributed Perl Documentation MojoMojo::Controller::Page(3pm)
NAME
MojoMojo::Controller::Page - Page controller
SYNOPSIS
DESCRIPTION
This controller is the main juice of MojoMojo. It handles all the actions related to wiki pages. Actions are redispatched to this
controller based on MojoMojo's custom prepare_path method.
Every private action here expects to have a page path in args. They can be called with urls like "/page1/page2.action".
ACTIONS
view (.view)
This is probably the most common action in MojoMojo. A lot of the other actions redispatch to this one. It will prepare the stash for page
view, and set the template to "view.tt", unless another is already set.
It also takes an optional 'rev' parameter, in which case it will load the provided revision instead.
search (.search)
This action is called as ".search" on the current page when the user performs a search. The user can choose to search the entire site or a
subtree starting from the current page.
print
This action is the same as the "view" action, but with a printer-friendly template.
inline
Same as "view" action, but with a template that only outputs the barebones body of the page. There are no headers, footers, or navigation
bars. Useful for transclusion (see MojoMojo::Formatter::Include).
inline_tags (.inline_tags)
Tag list for the bottom of page views.
pages_viewable($c, $user, @pages)
Filters an array of pages, returning only those that the given user has permission to view.
list (.list)
All nodes in this namespace. Computes tags, all pages, backlinks, wanted and orphan pages.
subtree (.subtree)
Display all pages that are part of the subtree for the current node.
recent (.recent)
Recently changed pages in this namespace. Also computes the most used tags.
feeds (.feeds)
Overview of available feeds for this node.
rss (.rss)
RSS feed with headlines of recent nodes in this namespace.
atom (.atom)
Full content ATOM feed of recent nodes in this namespace.
rss_full (.rss_full)
Full content RSS feed of recent nodes in this namespace.
export (.export)
Page showing available export options.
suggest (.suggest)
"Page not found" page, suggesting alternatives, and allowing creation of the page. Root::auto detaches here for actions on nonexistent
pages (e.g. c<bogus.export>).
search_inline (.search/inline)
Search results embeddable in another page (for use with "suggest").
info (.info)
Meta information about the current page: revision list, content size, number of children and descendants, links to/from, attachments.
AUTHOR
Marcus Ramberg <mramberg@cpan.org>
LICENSE
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2011-09-02 MojoMojo::Controller::Page(3pm)