0
votes
0answers
1 views

How to sort the lines in a file from shortest to longest?

Similar to Sorting lines from longest to shortest, how can I sort all of the lines in a file from shortest to longest? E.g." This is a long sentence. This is not so long. This is not long. That ...
0
votes
0answers
1 views

Is there a way to compare the state of an object before and after certain callbacks?

For example. When a comment on our site gets destroyed, the "after_destroy" callback is used to update stats. after_destroy do |p| p.topic.update_attribute(:replies, p.replies - 1) end I want to ...
0
votes
0answers
2 views

Android Permission Denial:starting intent

this security exception is stopping my program to execute completely ActivityManager: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN ...
0
votes
0answers
3 views

Android Annotations: Annotated class Xyz_ not finding it's original (“cannot find symbol class Xyz”)

I use the latest Android Annotations 2.6 and IntelliJ IDEA. Sometimes I always keep having problem with the annotations / classpath / compilation order. Seems to occur irregularly. I had the project ...
0
votes
0answers
7 views

create a new array based on a function

I'm just learing to use php, and I've been working on this code that is not very efficient because it is very long and I would like it to be more automated. The idea is to generate a table with 2 ...
0
votes
0answers
3 views

Anyone can introduce some primers about qemu-kvm and kvm?

I am a fresh man in kvm,qemu-kvm and kvm are both very complicated now. Anyone can introduce some primers about qemu-kvm and kvm? thanks very much!
0
votes
0answers
4 views

print results from a command line argument

ok, last question and this script of mine is done :) i have pflogsumm installed on my mailserver and i have completed (completely ugly but functional) mail server admin script in php for use over an ...
0
votes
0answers
3 views

Programming Test - Codility - Dominator

I just had a codility problem give me a hard time and I'm still trying to figure out how the space and time complexity constraints could have been met. The problem is as follows: A dominant member in ...
0
votes
0answers
4 views

How to display individual datas in mysql through jquery autocomplete

I am having a problem here I want to display the datas in DB using autocomplete But when I search in the textbox it is showing everything for example c++javaphpcoldfusionjavascriptaspruby but what ...
0
votes
1answer
3 views

404 error transferring wordpress website from local server

I've transferred my wordpress website from my localserver to a folder on my server. It is located in /wordpress. I have created a new database, new user and password and imported. I have also changed ...
0
votes
0answers
4 views

MATLAB: svds() not converging

So using MATLAB's svds() function on some input data as such: [U, S, V, flag] = svds(data, nSVDs, 'L') I noticed that from run to run with the same data, I'd get drastically different output SVD ...
0
votes
0answers
14 views

Cast from char * to int loses precision

I am reading numbers from a file.When I try to put each number into an double dimensional array it gives me below error.How do I get rid of this message? My variables: FILE *fp; char ...
0
votes
1answer
15 views

Why is my array empty?

Why is my $dropdown array empty? I have not copied $p across foreach($p as $pat) { print'<pre>'; print_r($pat['name']); print'</pre>'; $c = ...
0
votes
0answers
7 views

vmap automatically puts '<,'> infront of excommands

I'm trying to write a copy/paste function for visual mode vim. Copy reads all the lines highlighted. vmap cc :execute Copy()<CR> turns into '<,'>:execute Copy()<CR> which ...
0
votes
0answers
4 views

cfgrid - how to sort a column of numbers numerically

I'm using a cfgrid control on Coldfusion 9.01 to display a query recordset with several columns of numbers. My grid is format="html" and a query as the datasource. A partial list of my grid columns ...

15 30 50 per page
1 2 3 4 5 244701