|
The Longest Thread in the History of NG.com (maybe second longest)(keep bumping it) 50,000 or bust!
Started by TonK on
, 24 posts
by 10 people.
Answer Snippets (Read the full thread at neo-geo):
|
|
What is the best way to ascertain the length (in characters) of the longest element in an array?
I need to find the longest element in an array of option values for a select box so that I can set the width dynamically.
Started by codecowboy on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
I]) > $longval) { $longval = $len; $index = $i; } }
Then you know $array[$index] has the longest element of length $longval
$longest_length = 0; foreach($array as $key => $value { if(isset($value[$longest_length + 1])) { ....
|
|
What is the longest file path that Windows can handle?
Started by Ron Tuffin on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
The longest path on a semi-clean install of Windows Vista is 195.
File path- 250 characters
Vista file path - 260 characters
The longest path on a clean install of Windows XP is 152 characters.
|
Ask your Facebook Friends
|
Is there a command to determine length of a longest line in vim? And to append that length at the beginning of the file?
Started by joroj on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Ok, now for a pure Vim.
Length on the first line do:
:%yank :%!wc -L :put
Instead of using wc, Find length of longest line - awk bash describes how to use awk to find the length of the longest line.
|
|
I have a string that is randomly generated:
polymer_str = "diol diNCO diamine diNCO diamine diNCO diamine diNCO diol diNCO diamine"
I'd like to find the longest sequence of "diNCO diol" and the longest of "diNCO diamine". So in the case above the longest...
Started by Casey on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Expanding on Ealdwulf 's answer = re.findall(r'(?:\b%s\b\s?)+' % search_str, polymer... .
You can get all contiguous sequences like: seqs = re.findall("(?:diNCO diamine)+", polymer_str)
and then find the longest.
The longest contiguous sequence.
|
|
I have a list of lists, and I need to find the longest one of them. If there are more than one with the same length it's the same which it returns. Thanks.
Started by misterfixit on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
N = [1] ; ?- ....
Then you can consult it:
?- longest([[1]], N).
longest([H|T], X) :- longest(T, X),!.
longest([H|T], H) :- length(H, N), longest(T, X), length(X, M), N > M,!.
longest([L], L) :- !.
Aproach.
|
|
What's the bug that you inadvertently created or encountered that remained undiscovered for the longest period of time?
Started by Hao Wooi Lim on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
How about this vulnerability that was left unpatched for 17 years: http://www.geek.com/articles/chips/17-year-old-unpatched-windows-vulnerability-discovered-20100120/
There was also the "drag-and-drop" vulnerability that allowed for remote code execution... .
|
|
What's the longest you've ever had a server running without rebooting?
Started by JoelFan on
, 20 posts
by 20 people.
Answer Snippets (Read the full thread at serverfault):
I remember back in the Novell days, we....
I've worked on old Novell 3.2 servers that were running for years .
At least I didn't need to worry about patching it.. .
Single power supply, no UPS, just luck.
I had an ultrix system with a good 5 year stretch .
|
|
I'm looking for a simple way to find the longest line in a file. Ideally, it would be a simple bash shell command instead of a script.
Started by drewster on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Cat filename|awk '{print length, $0}'|sort -nr|head -1
For reference : Finding the longest line will show all lines having the length of the longest line found in the file, retaining the order.
|
|
Does anyone know of an R package that solves the longest common substring problem ? I am looking for something fast that could work on vectors.
Started by gappy on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Here is a link: http://wordaligned.org/articles/longest-common-subsequence
So don't.
Short functions.
|