10 More Discussions You Might Find Interesting
1. Programming
Hi,
I'm trying to decipher some python code located here:
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy * GitHub
I'm unable to understand what line 75 is doing?
ix = np.random.choice(range(vocab_size), p=p.ravel())
Anyone know what this... (2 Replies)
Discussion started by: 1Brajesh
2 Replies
2. Programming
Hi all...
Simple yes or no answer question for the big guns with a qualifier if YES.
I can possibly do FFT for my needs in AudioScope using python.
Q: Is python now considered part of the /usr/bin or other command paths for ALL current *NIX style OSes?
IF YES which version(s) should I... (4 Replies)
Discussion started by: wisecracker
4 Replies
3. Shell Programming and Scripting
Hi,
I get he values for nmval=MS1 & csval=Cluster from the properties file like below.
nmval=configProps.get("SVR_NAME")
csval=configProps.get("CLS_NAME")What should i do in the commands below so as to use the variables nmval and csval instead of manually typing MS1 and Cluster
I want to... (1 Reply)
Discussion started by: mohtashims
1 Replies
4. Shell Programming and Scripting
#!/usr/bin/python
def genCommanString(s):
print s
abc = {
"sftp":genCommanString('f5sftp'),
"/usr/local/ssh/bin/sftp": genCommanString('f5sftp')
}
value="sftp"
xyz = abc.get(value)
Why the above coding produce 2 row output?
(i.e.
f5sftp
f5sftp)
Is it... (1 Reply)
Discussion started by: cstsang
1 Replies
5. UNIX for Dummies Questions & Answers
Hello All,
I was looking for a solution for enabling/disabling the Capslock from the command line and came across some Python code for doing just that...
Well, in this case the code was written to ONLY turn-off Capslock but I assume there has to be a way to turn it on too.
Site where I... (0 Replies)
Discussion started by: mrm5102
0 Replies
6. Programming
I'm new to GTK development, so I've been going through the examples just to capture the basics. I've done a lot of Unix GUI development before, but it was all Xt/Motif stuff. So, the GTK scheduler is something new to me.
That said, I was going through the color selection example here, and was... (8 Replies)
Discussion started by: DreamWarrior
8 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am using sendmail to trigger mail alerts. The body of the mail is becoming wrapped in to fit to mail window. I want body to be not wrapped like ' set nowrap 'as in vi editor.
---------- Post updated at 05:35 AM ---------- Previous update was at 04:48 AM ----------
a text of 1000... (1 Reply)
Discussion started by: subramanian2008
1 Replies
8. Shell Programming and Scripting
hi, i want to use module Text::Wrap.
this module provides the option $Text::Wrap::tabstop to change the tabstop from 8 blanks to any nummer.
i want to set it to 30 blanks. but when i change the nummer of blanks nothing happens.
Text::Wrap::tabstop = 30;
$wtd = wrap("","\t",$1);
or do i... (3 Replies)
Discussion started by: trek
3 Replies
9. UNIX for Dummies Questions & Answers
how to open a text file using some tool such as gedit under gtk
I list some text file names in a GtkCList . I want to open the file on when users click on the row.
How to implement this ?
Thanks (0 Replies)
Discussion started by: cy163
0 Replies
10. UNIX for Dummies Questions & Answers
how to open a text file by double clicking on the file name shown in a label widget in gtk+.
thanks (0 Replies)
Discussion started by: cy163
0 Replies