getting started with osgi, i wonder what's the conceptual diffence between bundles and components. And when to use which of them. Any pointers are welcome.
Hey folks,
i just came to the conclusion that a project i am currently working on might have a "logical" error in functionality.
Currently I'am using server technology with PHP/MySQL and JQuery.
Within the page there's a normal link reference with tag
<a href="contentpage?page=xxx">next step</a>
The pain point now seems to be the given jquery click event on the same element. The intension was to save the (current) content of the page (- form elements) via another php script using the php session command.
For any reason, IE can handle the click event of Jquery right before executing the standard html command, that reloads the current page again with the new page parameter. By using FF the behaviour is different. I assume, that FF first execute the html command and afterwards execute the javascript code which handles the click event. Therefore the resultset here is wrong respectivly empty.
My question now is whether you made the same experience and how you handled / wordarrounded this problem.
I'd be thankful fur any of your tips or further feedback. Maybe you also have a solution on how to rethink about the current architecture.
Regards,
Oliver
The IP addresses logged in by the Drupal 6 core "Statistics" module are not being displayed by the AW statistics displayed by my hosting server (hostgator). I am not able to comprehend why and which statistics are more reliable ? Also I would request some light to be shed on the best practices to monitor a Drupal 6 website. Thanks for your help people.
In F#:
> let f x = x + 2;;
val f : int -> int
> let g x = f x;;
val g : int -> int
> g 10;;
val it : int = 12
> let f x = x + 3;;
val f : int -> int
> g 10;;
val it : int = 12
In Clojure:
(defn f [x]
(+ x 2))
(defn g [x]
(f x))
(g 10) ;; => 12
(defn f [x]
(+ x 3))
(g 10) ;; => 13
Note that in Clojure the most recent version of f gets called in the last line. In F# however still the old version of f is called. Why is this?
Hi fellows,
I just wrote a javascript code for layering in raphaeljs it works perfectly on FF.
But it doesn't on IE. The problem is IE returns null for nextSibling for any object.
How does one use it correctly, or is there a nextElementSibling call in IE?
Here is the code fragment I used to change the order of objects:
n = items[selected_item_id].nextSibling.id;
if (n != '') {
items[selected_item_id].insertAfter(items[n]);
}
<div id="consarea">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="100%">
<desc>Created with Raphaël</desc>
<defs/>
<rect x="188" y="100" width="200" height="200" r="10" rx="10" ry="10" fill="#ee8515" stroke="none" style="opacity: 1;" opacity="1"/>
<rect x="253" y="158" width="50" height="50" r="0" rx="0" ry="0" fill="#0080ff" stroke="none" style="opacity: 1;" opacity="1" id="0"/>
<rect x="230" y="140" width="50" height="50" r="0" rx="0" ry="0" fill="#c03022" stroke="none" style="opacity: 1;" opacity="1" id="1"/></svg>
here it is above. the piece of the html im working on
Can anyone tell me why the timestamp generated by the php time() function is so different from SQL datetime?
If i do a date('Y-m-d', time()); in php, it gives me the time now, as it should. If I just take the time() portion and do:
$now = time();
//then execute this statement 'SELECT * FROM `reservation` WHERE created_at < $now'
I get nothing. But hey, so if the value of $now was 1273959833 and I queried
'SELECT * FROM `reservation` WHERE created_at < 127395983300000000'
Then I see the records that ive created. I think one is tracked in microseconds vs the other is in seconds, but I cant find any documentation on this! What would be the right conversion between these two?? any help appreciated.
hiiiiiiiiiiiii
i got Htc Hero. There are 2 kind of Contacts marked as Google and Phone.
Both are stored in phone memory.
If i want to access only Phone Tagged Contact info what should i do?
And if i want to convert Google Tagged Contacts to Phone Tagged Contacts what should i do?
thanks
I have the coordinates of three points on a plane. Let's call them X1,Y1, X2,Y2, X3 Y3.
I need to calculate X4,Y4 but all I know is:
X1,Y1 is 350 units in distance from X4,Y4
X2,Y2 is 200 units in distance from X4,Y4
X3,Y3 is 50 units in distance from X4,Y4
I Know The Exact Values For X1,Y1, X2,Y2, and X3,Y3
How can I determine the exact location of X4,Y4?
I have the coordinates of three points on a plane. Let's call them X1,Y1, X2,Y2, X3 Y3.
I need to calculate X4,Y4 but all I know is:
X1,Y1 is 350 units in distance from X4,Y4
X2,Y2 is 200 units in distance from X4,Y4
X3,Y3 is 50 units in distance from X4,Y4
I Know The Exact Values For X1,Y1, X2,Y2, and X3,Y3
How can I determine the exact location of X4,Y4?
A class implementing an interface has to implement all the methods of the interface, but if that class is implementing an abctract class is it necessary to implement all abstract methods?
If not, can we create the object of that class which is implementing the Abstract class???
I have used JSON::Any package in my program to transfer the hash between client and server.
I faced one problem, I want to find whether the text ( sent by client ) is normal text or JSON encoded text.
Can anyone please tell me how to find,
without checking, I got some error in server side and it is closed.
I came across this question on transcender:
What should you apply to a field if its value is not required during deserialization?
Me = [NonSerialized], ANSWER = [OptionalField]
My gut reaction was NonSerialised, I have no idea why but in the space of 5 seconds thats what I thought but to my surprise, Transcender says I am wrong. OK fair enough .... but why? looking more closely at the question I have a good idea what to look out for as far as the [Nonseralized] attribute is concerned but still I would really like this clearing up.
As far as I can tell the former has relationship with versioning conflicts between newer and older versions of the same assembly. The later is more concerned with not serializing a field FULLSTOP. Is there anything else that might pick these two apart? MSDN does not really say much about this as they both are used on the BinaryFormatters and SoapFormatter with the XMLFormatter using the XMLIgnoreAttribute.
My second question is can you mix and match either one of the two attributes ... I am yet to use them as I have not had an excuse to mess about with them. So my curiosity can only go so far.
Just throwing this one out there, but does my answer have something to do with the way [OnDeserialized] and the IdeserilizationCallback interface is implemented???? Am guessing here ....
Thanks In Advance
UPDATE:
I know that optional field attribute does not serialize the value held by a data member but NonSerialized will not even serialise the data member or its value. That sounds about a right???? That's all I got on these two attributes.
http://validator.w3.org/#validate_by_input+with_options
What options should i select in both
if i want to check validity against
XHTML 1.0 Strict
and
XHTML 1.1
What are the differences between these built-in Python data types: list, sequence and slice? As I see it, all three essentially represent what C++ and Java call array.
For those familiar with Excel, I'm trying to use a similiar NETWORKDAYS function within Cocoa.
Can anyone help with the type of info I'll need to construct an NSDate catagory that can give me only the working days betweek two dates?
many thanks
Nik
I've noticed that some sites (including http://jobs.stackoverflow.com) have query strings that look like this:
http://somewebapp.example/?123
as compared to:
http://somewebapp.example/123 or http://somewebapp.example/id/123
What are the reasons that developers choose to implement their web apps' URLs using the first example instead of the second and third examples?
And as a bonus, how would one implement the first example in PHP, given that 123 is the primary key of some row in a database table? (I just need to know how to retrieve 123 from the URL; I already know how to query the database for a primary key of 123.)
I came upon Smarty which is a template engine. But there are also the Zend, CakePHP frameworks. Is Smarty like Zend, or are they completely different? Smarty just separates logic from display - is this similar to a framework like Zend?
I want to create a timer for my app.
The sample code is shown below.
When the method datetwo() is called the same time in milliseconds is shown as there in the main method. Please help me out with this
import java.util.Date;
import java.util.Timer;
public class TimerChe {
Timer timer;
static Date date = new Date();
static Date date2 = new Date();
public static void timerMethod(){
new Thread() {
public void run() {
try {
while (true) {
sleep(10000);
datetwo();
}
} catch (InterruptedException ex) {
}
}
}.start();
}
public static void datetwo() {
System.out.println ("OK, It's time to do something!") ;
System.out.println("The Time is " + date2.getTime() + " milliseconds since 1970/01/01");
}
public static void main(String args[]) throws Exception {
System.out.println("The Time is " + date.getTime() + " milliseconds since 1970/01/01" );
System.out.println ("Schedule something to do in the mean time.") ;
timerMethod();
}
}
>>> from datetime import datetime
>>> t1 = datetime.now()
>>> t2 = datetime.now()
>>> delta = t2 - t1
>>> delta.seconds
7
>>> delta.microseconds
631000
Is there any way to get that as 7.631000 ? I can use time module, but I also need that t1 and t2 variables as DateTime objects. So if there is a way to do it with datettime, that would be great.
So I have some class starting with
#include <wchar.h>
#include <stdlib.h>
ant there is that function wmain.
What is it different from main function i usualy use in my C classes?