07-23-2008
10 More Discussions You Might Find Interesting
1. Programming
I searched the post and someone said to clear the screen in C, use
printf("\033[2J"); ??
However, this doesn't work...typo or no.
What is an equivalent command to 'CLS' in DOS/'clear' in UNIX to clear the screen and go to top of screen??
Thank you. (2 Replies)
Discussion started by: giannicello
2 Replies
2. UNIX for Dummies Questions & Answers
Hello All,
I like this forum btw, and have only been lurking for about a day.
Recently I purchased some new hardware (AMD Athlon 64 3200+ and a Asus K8V Deluxe Motherboard), and I want to find an OS that can take advantage of the 64 bit processor.
Basically, what are the differences... (2 Replies)
Discussion started by: RoY_mUnSoN
2 Replies
3. Programming
How do I clear screen in g++
I've included curses and tried compile with lcurses as per gcc but fails, I can clear by using system("clear") but would prefer to use the curses library if possible. (2 Replies)
Discussion started by: gefa
2 Replies
4. UNIX for Dummies Questions & Answers
Hi...
i have one doubt pls...
1)can we clear the command line history in UNIX for a paricular login(scadm/root)if so how?.
2) can we see the time at which command executed.
history is showing like :
100 display
101 lock
102 exit (7 Replies)
Discussion started by: gincemathew
7 Replies
5. AIX
Hello,
Is there a difference between the following commands besides consider the file permissions?
/usr/sbin/acct/nulladm /var/adm/wtmp
>/var/adm/wtmp
cat /dev/null >/var/adm/wtmp
Today I tried the second command and it worked... (2 Replies)
Discussion started by: x_adm
2 Replies
6. Shell Programming and Scripting
Hi
Need help...I have wrritten one code for html through shell scripting in that i am using java scripts to validate some condition and open the html page without clicking the button....
Code Details
echo "<script type="text/javascript">"
echo "function exec_refresh()"
echo "{"
... (4 Replies)
Discussion started by: l_gshankar24
4 Replies
7. UNIX for Dummies Questions & Answers
Hi,
To re-introduce myself, I'm a router guy trying to learn some scripting from the examples in my work place...
In a ksh script, one of the script guys wrote the following and I am trying to understand it. I'm hoping someone can explain it to me.
The script flow enters a case structure.... (5 Replies)
Discussion started by: Marc G
5 Replies
8. Web Development
Where should I put my javascript source code in order to run it "locally" by file not by http?---not sure this "locally" is the appropriate word here.
My test is when my javascript code (test.js) is put in the site default folder as the test.html in /var/www/html both worked as expected with... (2 Replies)
Discussion started by: yifangt
2 Replies
9. UNIX for Beginners Questions & Answers
can anyone tell me the working of this logic.
here "last" is a variable or it has it own meaning . getting confused.
awk '{if (last && $2 != last) {print last, sum; sum=0}
sum=sum+ $3; last = $2}
END {print last, sum}' (4 Replies)
Discussion started by: scriptor
4 Replies
10. Web Development
Hi
I am new to JavaScript & haven't done much work with it, but have mainly experience with UNIX. I have a piece of code where I want to grep (excuse the UNIX language :D) for a id and get the number from that.
{
"time": 900,
"avail": 1,
"price": 0,
"datetime":... (8 Replies)
Discussion started by: simpsa27
8 Replies
LEARN ABOUT DEBIAN
jifty::plugin::compressedcssandjs
Jifty::Plugin::CompressedCSSandJS(3pm) User Contributed Perl Documentation Jifty::Plugin::CompressedCSSandJS(3pm)
NAME
Jifty::Plugin::CompressedCSSandJS - Compression of CSS and javascript files
SYNOPSIS
# In your jifty config.yml under the framework section:
Plugins:
- CompressedCSSandJS:
js: 1
css: 1
jsmin: /path/to/jsmin
cdn: 'http://yourcdn.for.static.prefix/'
skipped_js:
- complex.js
generate_early: 1
DESCRIPTION
This plugin provides auto-compilation and on-wire compression of your application's CSS and Javascript. It is enabled by default, unless
your "ConfigFileVersion" is greater or equal than 2.
It also supports js minifier, you will need to specify the full path. The jsmin can be obtained from
<http://www.crockford.com/javascript/jsmin.html>.
Note that you will need to use "ConfigFileVersion" 2 to be able to configure jsmin feature.
skipped_js is a list of js that you don't want to compress for some reason.
generate_early tells the plugin to compress the CSS and JS at process start rather than on the first request. This can save time,
especially if your JS minifier is slow, for the poor sucker who makes the first request. Enabled by default.
init
Initializes the compression object. Takes a paramhash containing keys 'css' and 'js' which can be used to disable compression on files of
that type.
js_enabled
Returns whether JS compression is enabled (which it is by default)
css_enabled
Returns whether CSS compression is enabled (which it is by default)
generate_css
Checks if the compressed CSS is generated, and if it isn't, generates and caches it. (In devel mode, it always regenerates it)
generate_javascript
Checks if the compressed JS is generated, and if it isn't, generates and caches it.
_generate_javascript_nocache
Generates compressed javascript, ignoring the cache completely.
minify_js $js
Runs the given JS through jsmin
wrap
psgi app wrapper to serve url controlled by us
perl v5.14.2 2010-09-25 Jifty::Plugin::CompressedCSSandJS(3pm)