I have to be missing something simple, but I'm really not sure what. I'm not a JS veteran, so this may be an easy answer - sure hope so :).
I have a button that, when clicked, gets JSON data. When a drop-down is changed, I check to see if there is data, if there is, I want to clear it out as the drop-down indicates what data to retrieve when the…
I learned how to use the comparable but I'm having difficulty with the Comparator. I am having a error in my code:
Exception in thread "main" java.lang.ClassCastException: New.People cannot be cast to java.lang.Comparable
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.Collections.sort(Unknown…
I'm trying to create an array of the next 5 working week days (Monday - Friday, excluding today). I know the working week varies around the world but this is not important for what I am trying to do.
So, for example, if today is a Wednesday, I want the dates for Thursday and Friday of the current week and Monday, Tuesday and Wednesday of the…
Is there a way to use a skin file in a theme only when a certain browser is used?
The theme stays the same, I just want skin A to apply when a certain browser is used, and skin B when another browser is used. I know I can have server-side code to check and then set the SkinId of the control to either or, but is there another, more global…
I've created an in memory hsqldb and am using the default database/schema. Now I want to drop and recreate the database programatically.
How do I do that?
Thanks
Daniel
This is possibly a really silly question but I've stared at this code way too long for it to make sense!
I'm having problems with a flicker of the screen in firefox; It is related a filtering script...
I have a website that is a one page vertical scroll; with different anchors to define sections and a smooth scroll script to make it…
I can't find anything in the API docs. A few websites claim to filter Amazon for prime-only items, but I'm not sure how to tell if a given item is Prime/SuperSaver eligible or not.
I have a very odd issue. When I execute a specific database stored procedure from C# using SqlCommand.ExecuteNonQuery, my stored procedure is never executed.
Furthermore, SQL Profiler does not register the command at all. I do not receive a command timeout, and no exeception is thrown.
The weirdest thing is that this code has worked…
I am trying the to query my Status Update repository using the following
var result = (from s in _dataContext.StatusUpdates
where s.Username == "friend1" && s.Username == "friend2" etc...
select s).ToList();
Insead of using s.Username == "friendN" continously is there anyway I can…
I've created an animation using script.aculo.us. However, when the animation is finished, I want to have it reset all the objects and perform the animation again. I plan to just reset the positions of the objects manually, but how can I make the animations loop? If I put the effect declarations inside a for or while loop, it…
I have an asp.net application and in the UI I have a jquery plugin called growel. When I detect that someone have changed their account (code behind) I need to call the jquery plugin to display but this is on the client side.
But how is this possible, I cant call jquery from code behind code (C#), has anyone a workaround or…
Drupal's core search module, only searches for keywords, e.g. "sandwich". Can I make it search with a substring e.g. "sandw" and return my sandwich-results?
Maybe there is a plugin that does that?
I have to write a method that returns a linked list with all the nodes that are common to two linked lists using recursion, without loops.
For example,
first list is 2 - 5 - 7 - 10
second list is 2 - 4 - 8 - 10
the list that would be returned is 2 - 10
I am getting nowhere with this.. What I have been think of was to…
Hi,
I need to extract the detail content of a website while preserve all formatting of the division. The section I wish to extract is:
...
<div class="detailContent"><p>
<P dir=ltr><STRONG>Hinweis</strong>: Auf ... </p>
</div>
...
My current solution is to use HTMLParser from…
Hi there, I fixed my previous problem. But now when on my tile map... if I try to go 9 tiles to the RIGHT, and on trying to get to the 9th tile.... I will get this error:
Exception in thread "AWT-EventQueue-1" java.lang.ArrayIndexOutOfBoundsException: 8
at tileGen.blocked(tileGen.java:125)
at…
I have to modify some code in a application I am working on that is using the array_diff($array1,$array2) method. The problem I am having is it is case sensitive and I need to have it return the correct value if the array values match even if the case is different. I don't want to change the case to…
I had an existing Django project that I've just added South to.
I ran syncdb locally.
I ran manage.py schemamigration app_name locally
I ran manage.py migrate app_name --fake locally
I commit and pushed to heroku master
I ran syncdb on heroku
I ran manage.py schemamigration app_name on heroku
I…
When "forum-title" is clicked, I want "subtopic-frame" within the parent "forum-topics-head" to expand. There are multiple "forum-topics-head" (with all associated children) on this page.
The way I have it now, the "forum-topics-head" is the trigger, but I want the "forum-title" to be the…
I've got two Urls. A server and a relative url that I would like to combine. The problem is that part of the url's may well overlap. I've done this using some horrible string manipulation but would like to put this out there and see if there is a nice and clean way of doing it.
string…
I have to write a method that returns a linked list with all the nodes that are common to two linked lists using recursion, without loops.
For example,
first list is 2 - 5 - 7 - 10
second list is 2 - 4 - 8 - 10
the list that would be returned is 2 - 10
I am getting nowhere with…
Key in the first three digits of your phone number (NOT the Area code...)
Multiply by 80
Add 1
Multiply by 250
Add to this the last 4 digits of your phone number
Add to this the last 4 digits of your phone number again.
Subtract 250
Divide number by 2
Do you recognize the answer??
Really simple question, how do I combine echo and cat in the shell, I'm trying to write the contents of a file into another file with a prepended string?
If /tmp/file looks like this:
this is a test
I want to run this:
echo "PREPENDED STRING"
cat /tmp/file | sed 's/test/test2/g'…
I am using Doctrine and trying to implement an infinite scroll on a collection of notes displayed on the user's browser.
The application is very dynamic, therefore when the user submits a new note, the note is added to the top of the collection straightaway, besides being sent (and…