Django Q&Q versus filter.filter
Vote count: 0 While hunting a bug, I found out that the following 2 statements do different things: Query 1 Order.objects .filter(items__name__icontains="Foo") .filter(items__name__icontains="Bar") .distinct() Query 2 Order.objects .filter( Q(items__name__icontains="Foo") & Q(items__name__icontains=...
Conserve grouping in ggrepel (R)
Vote count: 0 I would like to label certain points from a "box with points"-plot that is sub-grouped. The problem is that my current ggrepel code omits the sub-grouping. Here is an example df: Phenotype <- c("Healthy", "Healthy","Healthy", "Sick1", "Sick1","Sick1", "Sick2", "Sick2", "Sick2" ) Indivi...
No value given for one or more required parameters. vb
Vote count: 0 Well, I've rooted around the previously asked questions, changed my code three or four times and still am unable to get the form I'm working on to insert data into my table. Looking for helpful suggestions. Form code: <div> <table align="center" width="200px" cellpadding="5px"> <tr><td...
Bootstrap markdown not working
Vote count: 0 Hey guys I am trying to use this: http://www.codingdrama.com/bootstrap-markdown/ This are the includes in the header of my index.html: <!-- JQuery --> <script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="...
Get html button id and store it for next page
Vote count: 0 OK, so is there anyway to get the button id when clicked and store it for use in the next page (i'm trying to use the button id to know which button is clicked and use it for an sql query in the next page) ? here's my code : while($do ees=$reponse->fetch()) { ?> <tr> <form action="supp...
Fastest way to find string in file PHP
Vote count: 0 I would like to know which is the fastest way to find a string in a file using PHP. I have been told than the quickest way to read a file was using file() function, but to find a string in the whole file I will have to do a foreach. Whereas if I use file_get_contents or something, I ju...
Issue with Redis install - geohash-int/geohash.o
Vote count: 0 I have this problem below when try to install Redis 3.2.1: [root@clj-lc-test01 redis-3.2.1]# make cd src && make all make[1]: Entering directory `/tmp/redis-3.2.1/src' LINK redis-server cc: ../deps/geohash-int/geohash.o: No such file or directory cc: ../deps/geohash-int/geohash_helper....
Why won't this print, when I type in a keyword?
Vote count: 0 print"Welcome to Caleb's login script!" loop = 'true' while(loop == 'true'): use ame = raw_input("Use ame Please") password= raw_input("Password Please") if(use ame == "Caleb" and password == "Lamps320"): print 'Logged in as ' + use ame loop = 'false' loop1 = 'true' while(loop1 == 'tru...
Smoother scroll transitions in firefox?
Vote count: 0 I'm trying to create a parallax effect in firefox by modifying the top position of elements using the onscroll event. I throttled the onscroll event so it doesn't overload the browser and I added a transition top property in the css to make things smoother. This works pretty well in ev...
Twice Bash command substitution
Vote count: 0 I have directories a1..a5, b1..b5 and c1..c5. Inside each directory I have two files a1, b1 and c1. do mkdir /tmp/{a,b}$d; touch /tmp/{a,b,c}$d/{a,b,c}1; done; I want to get all the files starting with 'a' or 'b' inside the directories starting with an 'a'. I can do it with: DIRS=`ls -...
Confusion with Scanners (Big Java Ex 6.3)
Vote count: 0 Currently reading Chapter 6 in my book. Where we introduce for loops and while loops. Alright So basically The program example they have wants me to let the user to type in any amount of numbers until the user types in Q. Once the user types in Q, I need to get the max number and avera...