(x-y)^2+(y-z)^2+(z-x)^2=2*r^2
Like in theabove,only x,y,z are variables,how to show the graph in a general way that will also work for those doesn't have explicit form?
var result = (
from contact in db.Contacts
where contact.ContactID == id
join referContactID in db.ContactRefferedBies on contact.ContactID equals referContactID.ContactID
join referContactName in db.Contacts on contact.ContactID equals referContactID.ContactID
orderby contact.ContactID descending
select new ContactReferredByView
{
ContactReferredByID = referContactID.ContactReferredByID,
ContactReferredByName = referContactName.FirstName + " " + referContactName.LastName
}).Single();
Problem is in this line:
join referContactName in db.Contacts on contact.ContactID equals referContactID.ContactID
where referContactID.ContactID is called from theabove join line. How to nest these two joins?
Thanks in advance!
Ile
this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
Same problem that I've read on other posts. I don't want the soft keyboard to pop up when the Activity loads. Theabove code snippet works, however my View no longer scrolls up so that the User can still see the EditText.
It scrolls without this line of code. Any ideas?
I would like to use Python's tempfile module to create a temporary file that I will use for communication between processes (use of pipes is awkward).
The documentation I've linked to above shows two functions that almost do what I want:
tempfile.NamedTemporaryFile # For creating named tempfiles
tempfile.SpooledTemporaryFile # For creating tempfiles in memory
but actually I want a tempfile that is both named AND in memory. Any ideas?
Have a binary field and want to insert into this from a hex string:
insert into binaryTable(binaryField)
values(convert(varbinary(max), 0x0))
however when I run select the value is return with an extra 0 as 0x00
This extra 0 is causing a problem in another application, I dont want it.
Interesting, is if I do a select on an existing value and it returns say 0x55 then inserting this same value using theabove query will return a select of 0x055.
How to stop the extra 0 being added?
I'd like to use searchlogic's scope_procedure feature like so
class MyModelObject < ActiveRecord::Base
scope_procedure :my_scope_proc, lambda { |p1, p2| { :conditions => "p1 >= #{p1} AND p2 < #{p2}" }}
end
Then, I am doing the search:
scope = MyModelObject.search(:my_scope_proc => true)
scope.all
Theabove code obviously doesn't work because I didn't pass p1 and p2 parameters to my named scope.
I can't figure out how to pass parameters to the named scope.
I have a listview that generates thumbnail using a backgroundworker. When the listview is being scrolled i want to pause the backgroundworker and get the current value of the scrolled area, when the user stopped scrolling the listview, resume the backgroundworker starting from the item according to the value of the scrolled area.
Is it possible to handle scroll event of a listview? if yes how? if not then what is a good alternative according to what i described above?
So I need to load a file from disk somehow, and access its contents.. Sort of like how
<link rel="stylesheet">
works. Is there a way to do this? XHR requires a web server.. and using something like theabove doesn't let me access the contents of the file..
As above. Usually at work someone else does the database design, and when I do personal projects they're small enough to not really require more than five or six tables, but I'm about to start a personal project that I think will probably require around eleven or twelve tables and I'd like something to help me design it neatly and keep track of it.
Am I wondering if the follow are true.
If f(n) is O(g(n)) and f(n) is also O(g(n)) that means
f(n) is also big T(g(n)) right? Also if either of the 2 above are false, then f(n) is not big T(g(n))?
</Style>
I want to bind the textbox text to the Textbox's property such as text or something.
but you know what I think above dose't work.
can you help me ,thank you very much
hi,
i have one problem that, i have to change type of data in column based on foreign key stored in that row.
unit_id unit_name
1 String
2 Float
3 Date
4 Int
Id spec value unit id
1 "A" 1
2 30.90 2
3 null 3
4 100 4
now i should achieve theabove codition. how do i achieve it? please help me.
([UIDevice currentDevice].orientation);
using theabove code in my app, all i get is 0 (unknown)
is there something thats going wrong here? Seems pretty straightforward
edit: more research led me to the problem with using device orientation early in the app, which I am doing. However when I instead use interfaceOrientation, it always returns 1 (portrait)
$url = "http://google.com1215http://132.239.7.64:8082/jsp/wej29/en/Vm.jspHUAWEI";
preg_match('/http:\/\/.*?\.jsp/', $url, $match);
I want to retrieve http://132.239.7.64:8082/jsp/wej29/en/Vm.jsp from $url,but theabove returns more than I want: http://google.com1215http://132.239.7.64:8082/jsp/wej29/en/Vm.jsp
How to do it properly?
Is there a way to test a string, such as the one below to see if it's an actual number value?
var theStr:String = '05';
I want to differentiate between the string value above and one such as this:
var theStr2:String = 'asdfl';
Thanks!
I have a login form using a UITableView. One of the cells has a UISwitch which when on will delete the row above it and when off reinsert it.
But the first cell automatically has the keyboard up when the cell is created (basically when the view loads) (by using [cell becomeFirstResponder];)
Inserting/deleting any of the cells means that the keyboard animates out and then animates back in.
I'd like to remove this so the keyboard stays up while rows are deleted/inserted.
#!/bin/bash
function usage(){
cat <<EOF
USAGE: $0 [strategylist]
valid strategies are:
ALLD
ALLC
TitForTat
JOSS
WeightedRandom
Tester
EOF
exit 1
}
[ -z $1 ] && usage
javac robsAgents/*.java robsAgents/behaviours/*.java
agentlist='leader:robsAgents.TournamentLeader'
agentlist=$agentlist";$1:robsAgents.Contestant"
while shift;
do
agentlist=$agentlist";$1:robsAgents.Contestant"
done
java jade.Boot -gui -host 127.0.0.1 "$agentlist"
i have above bash script and have no access to a windows computer and i need to convert it to a .bat file, but don't even know how to do the shift and argument parsing
Hi,
SELECT * FROM ABC
WHERE PARATYPE = 'A'
AND MODELID = '50'
AND 'BA1' BETWEEN RAWMIN AND RAWMAX
AND ROWNUM < 2 ;
I have theabove query .i have difficulty in converting rownum < 2 in plsql to hibernate query.
Can u help me .it's urgent.
Thank You.
log4j:WARN No appenders could be found for logger ().<br/>
log4j:WARN Please initialize the log4j system properly.
Theabove message is shown and i would like to disable the logger if the log4j.properties cannot be found. How do i go about it?
BasicConfigurator.configure();
will output to console which is not what i want.
I am trying to expose some data, user names, as json format on my server. I want to use jQuery.getJSOn() method to query data. I can get my data converted to json with newtonsoft.dll on server and save it in a file. But as far as I know it is not queryable. I want something like
http://search.twitter.com/search.json?callback=?&q=abc
Can anyone help me out to expose my data ion theabove format.
done some html code updates on my company's asp.net website and theabove error appears.
i dont have a line 474 on the errored file.
this error only on IE, and not FF.
anybody?
Basically in relation to this question It seems like e.X,y and e.Location.X,Y is relative to mousedown? I seen negative values when i havent moved it left/above the parent picbox.
So it seems like the values are relative to my mousedown, but i need values relative to the parent because i update the left/top every event and other datat and relative to mousedown is breaking my code.
Hey guys I got a weird issue.. I have a datalist that's only loaded on pageload it contains 2 columns a name and date and has 398 rows.. In IE 7 and above(and prob previous version) when I open a modal via a button click it takes almost 5 seconds to open. HOWEVER, if I do not bind this datalist it's MUCH faster..
Also this is only happening in IE, Chrome, Firefox and opera both open the modal instantly with the datalist binded...
Josh
i save a user like this in doctrine:
$user = User();
$user->name = 'peter';
$user->save();
is there a way to save 20 users in one sql query?
or do i have to loop theabove code 20 times hence creating 20 sql queries?
thanks
hi ,
When I'm running the report I'm getting that message above.
The Report Works fine when I press the "Run Report" Button but I want also to avoid
that annoying message that appears when the page loads.
I've tried to set the report viewer control to Enable = false;
and only after hitting the button to Enable = true;
but it didn't work.