Displaying 20 results from an estimated 30000 matches similar to: "variable in loop"
2011 Jan 05
2
check, that a script is in a folder
$ echo ${PWD##*/}
somefolder
$ if "${PWD##*/}" -eq "asdf" > /dev/null; then echo "this is the asdf folder"; else exit 1; fi
bash: notthatfolder: command not found...
this is the asdf folder
$
So i just want to check that i'm in an exact folder. e.g.: "asdf"
What's wrong with my one-liner?
I just want to check, that a script is in a folder,
2011 Jan 19
7
Let's talk about HTTPS Everywhere
Ok. It's a Firefox Add-on:
https://www.eff.org/https-everywhere
Questions:
1) But: Why can't i find it on the offical Firefox Add-ons site?: https://addons.mozilla.org/en-US/firefox/
2) Did anyone audited the "HTTPS Everywhere" code?
3) Can someone trust this Add-on? Is it safe to install/use?
4) If it's so great why isn't it more prevalent?
What's youre
2011 Jan 05
6
recursively find duplicate filenames
find duplicate filenames in a folder
find | perl -ne 's!([^/]+)$!lc $1!e; print if 1 == $seen{$_}++'
find duplicate filenames in a folder recursively
? how?
2010 Dec 22
5
do i need a dedicated ip address for https?
http://help.godaddy.com/article/1054
"# Set up SSL protection on your website."
is it an inescapable requirement to have a dedicated [not fix] ip address, when i want to use ssl on my domain?
thank you
happy Christmas! :)
2011 Jan 22
5
Let's talk about compression rates
http://pastebin.com/raw.php?i=MwDnhknf
$ ls -Sl
total 461252
-rw-rw-r--. 1 g g 111709730 Jan 22 11:06 linux-2.6.37.zip
-rw-rw-r--. 1 g g 93174605 Jan 22 11:03 linux-2.6.37.tar.gz
-rw-rw-r--. 1 g g 73552510 Jan 22 11:10 linux-2.6.37.tar.bz2
-rw-rw-r--. 1 g g 66333786 Jan 22 11:16 linux-2.6.37.7z
-rw-rw-r--. 1 g g 64035788 Jan 22 11:16 linux-2.6.37.tar.7z
-rw-rw-r--. 1 g g 63480808 Jan 22
2008 Feb 08
1
unwanted paragraph (syntax edge-case)
Hi list!
Take this markdown input:
* asdf
* asdf
* asdf
asdf
What I want:
<ul>
<li>asdf
<ul>
<li>asdf</li>
<li>asdf</li>
</ul>
<p>asdf</p></li>
</ul>
But markdown puts the first asdf into a paragraph. There is nothing I can do
2011 Mar 18
1
Bug using inline code blocks in nested lists?
Hi,
I am generating a nice document with some inline code blocks and came
around the following error:
1. asdf
- \` asdf `` `asdf` ``
produces:
<ol>
<li>asdf
<ul><li>` asdf <code><code>asdf</code></code> </li></ul></li>
</ol>
instead of:
<ol>
<li>asdf
<ul><li>` asdf
2008 Sep 17
2
bug in maruku with single-element nested unordered list?
This does not produce the expected output, yet does work on the dingus [1]:
* asdf
* asdf
>> require ''maruku''
=> true
>> doc = Maruku.new("* asdf\n * asdf\n")
=> md_el(:document,[
md_el(:ul,[md_el(:li_span,["asdf *
asdf"],{:want_my_paragraph=>false},[])],{},[])
],{},[])
>> doc.to_html
=> "<ul>\n<li>asdf *
2010 Dec 30
1
recursively count the words occurrence in the text files
I just can't google for it:
I'm searching for a "bash" "one liner" (awk, perl, or anything) for this:
there are text files, in several directories:
mkdir one
mkdir two
mkdir three
echo "word1 word2 word3" > one/asf.txt
echo "word2 word4, word5" > one/asfcxv saf.txt
echo "word1. word2" > one/dsgsdg.txt
echo "word6,
2010 Dec 29
5
Does anybody know a PeerGuardian like app?
Are there any programs blocking ip, and has frequently updated lists, like the peerguardian on windows?
sorry for the question, but i looking for this kind of application :O
Thank you, and a happy christmas!
2007 May 18
1
naive question about using an object as the name of another object
This is a dumb question, but I'm having trouble finding the answer to this.
I'd like to do the following:
x<-"asdf"
and then have
the object x.y become automatically converted/represented as asdf.y (sort of
akin to macro variables in SAS where you would do:
%let x=asdf and do &x..y)
What is the syntax for having x represented as "asdf" in x.y ?
Thanks,
2009 Jun 16
2
Question regarding dataframes, matrix, frame, etc...
Hi all,
As of now, I have a 15x8 matrix (name is "asdf"). The first seven columns
contain numbers while the last column contains a string. The class of each
column is "character". When I use the plot function to display a scatter
plot between any of the two columns, ie. plot(asdf[, 1], asdf[, 2])
everything works fine. However, if I want to use the command "pairs" to
2012 Jan 24
2
Password auth scheme question with mysql
Hi, I have a current auth database using mysql with a "password" column
in plain text. The config has "default_pass_scheme = PLAIN" specified
In preparation for a more adaptable system I changed a password entry
from "asdf" to "{PLAIN}asdf", but now auth fails. Works fine if I
change it back to just "asdf". (I don't believe it's a
2011 Sep 23
1
Anyone can create empty files (v 3.5.11)
I've mounted my cifs partition with a username and password and to
test whether I had my permissions right, I did:
$ sudo su testuser
$ touch asdf
touch: cannot touch `asdf': Permission denied
$
It says permission denied, but the `asdf' file is still created. I
can't write any data to it, but I can create empty files.
This is because in smbd/open.c if the file doesn't exist
2010 Dec 11
2
bash increment in a given way
It's ok, that i can use this, when i want an incrementing sequence, in a given way:
# {START..END..INCREMENT}
$ for i in {0..10..2}; do echo "Welcome $i times"; done
Welcome 0 times
Welcome 2 times
Welcome 4 times
Welcome 6 times
Welcome 8 times
Welcome 10 times
$
but what's the "magic" for this? :
$ MAGIC; do echo "Welcome $i times"; done
Welcome 0 times
2010 Dec 26
2
whats wrong with my internet connection checker script?
$ true && true || echo hi
$ true && false || echo hi
hi
$ false && true || echo hi
hi
$ false && false || echo hi
hi
$ ping -W 1 -c 4 google.com >& /dev/null | grep -q "100% packet loss" && ping -W 1 -c 4 www.yahoo.com >& /dev/null | grep -q "100% packet loss" || echo "no internet connection"
no internet connection
2007 Jun 20
1
mail_log plugin updates
It supports configuration now in devel version:
# Events to log. Default is all.
#mail_log_events = delete undelete expunge copy mailbox_delete
# Group events within a transaction to one line.
#mail_log_group_events =
# Available fields: uid, box, msgid, size, vsize
# size and vsize are available only for expunge and copy events.
#mail_log_fields = uid box msgid size
Without
2005 Dec 21
1
random output with sub(fixed = TRUE)
I've noticed what I think is curious behavior in using 'sub(fixed = TRUE)' and
was wondering if my expectation is incorrect. Here is one example:
v <- paste(0:10, "asdf", sep = ".")
sub(".asdf", "", v, fixed = TRUE)
The results I get are
> sub(".asdf", "", v, fixed = TRUE)
[1] "0"
2010 Jun 04
3
SORT with unknown charset bug?
I'm not sure this is a known bug. I'm using dovecot 1.1.19.
C: s SORT (DATE) blah ALL UNDELETED OR HEADER SUBJECT {4}
S: + OK
C: asdf HEADER FROM {4}
S: + OK
C: asdf
S: * SORT 1 2 4 5 3 6 7 (... all messages in folder)
S: s NO [BADCHARSET] Unknown charset
I think there shouldn't be "* SORT... " response.
--
Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252
2010 Dec 27
2
what process is sending this packet?
I can see, that theres a program that keeps sending packets on port 25:
Dec 27 14:11:46 a kernel: [ 6336.992320] O_D_LOG: IN= OUT=lo SRC=127.0.0.1 DST=127.0.0.1 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=61533 DF PROTO=TCP SPT=37263 DPT=25 WINDOW=32792 RES=0x00 SYN URGP=0
Dec 27 14:12:01 a kernel: [ 6352.635704] O_D_LOG: IN= OUT=lo SRC=127.0.0.1 DST=127.0.0.1 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=55853