Change Photo
Carolina Casper

Questions by Carolina Casper

How to delete all instances of a character in a string in python??

How do I delete all the instances of a character in this string? Here is my code: def findreplace(char, string): ...

Mann Whitney critical value in R is different from the table values?

I'm using qwilcox(0.05, 5, 7) to find critical value in R and it gives me the result 7, while in the table with conf...

how to hide <li> bullets in navigation menu and footer links BUT show them for listing items?

I have a navigation menu, footer, and a slideshow which use listed style to list links and images. I have the css li...

Changing name attribute using jQuery?

I've got a jQuery function that attempts to change the id, name and class attribute values of an element. The id an...

How to make a traditional Mongolian script TextView in Android?

How do you make vertical (with left-to-right line wrapping) Mongolian script TextViews for Android apps? Background...

Understanding filterM?

Consider filterM (\x -&gt; [True, False]) [1, 2, 3] I just cannot understand the magic that Haskell does with thi...

D3: How to refresh a chart with new data??

I have created a d3 donut chart. Here is my code: var width = 480; var height = 480; var radius = Math.min(width, h...

How to send a stacktrace to log4j??

Say you catch an exception and get the following on the standard output (like, say, the console) if you do a e.print...

jQuery delete confirmation box?

In my jQuery am displaying my results in a table formatted output, a part of my jQuery is &lt;td class='close' oncl...

OOP Java: Creating a stock inventory program?

I am fairly new to object oriented programming, so I am still having some trouble grasping some of the basic concept...

How to get the name of a class without the package??

In C# we have Type.FullName and Type.Name for getting the name of a type (class in this case) with or without the na...

HTML not reading %0A?

I have this code: elf='%0A'; document.getElementById('writebox').innerHTML=("hello there"+elf+"friend"); When the...

What's the best way to check if a file exists in C??

Is there a better way than simply trying to open the file? int exists(const char *fname) { FILE *file; if (...

What is the difference between MacVim and regular Vim??

I'm reasonably new to OS X, but I'm familiar with Vim from using it in various *nix systems. I've seen many people r...

connect to host localhost port 22: Connection refused?

While installing hadoop in my local machine , i got following error ssh -vvv localhost OpenSSH_5.5p1, OpenSSL 1.0...