Thursday, 15 March 2012

Using orientDB ETL json transform -


Anyone has examples of Oriented DB Atom transformers with many transformations or something that can create class identifier on the fly, For example, if you want to create organization organizations and ID may be a hash by the name of the organization, then it is important that if we are importing JSN, then it is not exactly what we want in destination

your ETA What about the block in the configuration file code ? You can use it in the start step, so you can change the ID column in your .csv input file. This is not an ideal solution I agree with.


ios - How to control the transition between 2 UIView states using a swipe gesture? -


I want to be able to swipe transition right gestures between the two states of a UIView with a swipe left. Basically I want to start increasing the height of the scene because the user starts swiping to the left and becomes "shrinking" when it swipe. I can easily animate with CAN Animation between the two states, but what I want is ideal that it is the signal to control the transition rather than giving it "duration". So essentially mapping the extension / shrinkage of the boundary height of the signal ... I am doing a terrible thing to explain to myself, but Apple is all this time.

Here's how it appears in your custom UIView moment:

  class CustomUIView: UIView {@IBOutlet bridesmaid swipeView: UIView! Var must have Except Expand Animation: Boole = True; Var needs extract shank animation: Bool = true; Required init (coder aDecoder in: NSCoder) {super.init (Coder: aDecoder) NSBundle.mainBundle () loadNibNamed ( "CustomUIView", the owner himself, option: zero). SwipeView.backgroundColor = UIColor.grayColor () self.addSubview (Self.swipeView) func performAnimation (Transansform: CATransform3D, toTransform: CATransform3D, duration: CFTimeInterval) {var animation: CABasicAnimation = CABasicAnimation (keyPath: "transform") animation. = self var transformView = conversion animation .fromValue = NSValue (CATransform3D: fromTransform) animation.toValue = NSValue (CATransform3D: toTransform) animation.duration = term self.swipeView.layer.addAnimation (animation, forKey: zero) self.swipeView.layer .transform = toTransform} expandView () {function if shouldExecuteExpandAnimation {performAnimation (CATransform3DIdentity, toTransform: CATransform3DMakeScale (1, 4, 1), duration: 0.1) executeShrinkAnimation = true; } ExxuteExpandAnimation = false; } Func shrinkView () {ifxexuteShrinkAnimation {executeAnimation (CATransform3DMakeScale (1, 4, 1), toTransform: CATransform3DMakeScale (1, 1, 1), duration: 0.1) shouldxecuteExpandAnimation = true} Chahiaakseksrenkanimeshn = false; } Func manageViewWithGesture {switch gestureRecognizer} {switch gestureResourceDescriptions {Case} UISwipeGestureRecognizerDirection.Right: expandView () Case UISwipeGestureRecognizerDirection.Left: shrinkView () Default: break}}}  

< Div class = "post-text" itemprop = "text">

As Aaron says, you can not get intermediate value with a swipe. If nothing happens, then it seems to be a fire, you have to use the pan gesture identifier or your own custom gesture identifier. For this, it is possible that you will be able to interpret the translation values ​​that you get from a standard pan-echchure identifier.

Then you can use those values ​​to change the animation from start to finish manually. I have a project on Gitbab which makes you different from ending the animation using the slider using the slider.

You can customize that approach to running an animation, because the user leaves a pan gesture.

View this link:


64bit time_t in Linux Kernel -


I've compiled kernel 3.19.1, but still have problem with time_t just simple program with cout & lt ; & Lt; Sizeof (time_t); Returns the size of 4 bytes, not 8 bytes, as I intend, should I switch to a particular option during Menukonfig?

Currently time_t is just tall kernel In: See definition of type. So if your CPU has long type 32-bit long, time_t is 32-bit too long Basically, if you have 32-bit CPU - long If the type is on your system then 32-bit is long if you have 64-bit CPU - long type is 64-bit long.

If you need your own 64-bit type - just use long time . If you want the kernel time API to work with the 64-bit long type time_t - this is a bit hard (to change kernel sources). For example, taking a look apart, you may be interested in reading the following link:

[2]

[3]


to longer

UPDATE

( __divdi3 etc with issues)>.

Now that you have changed the size of the time_t to 64-bit, any code using time_t is used for 64-bit operations. __detail3 means: div IIN operation d ouble i on ntegers 3 < / Strong> stands for the count of operands (e.g. 1 = 2/3 ). See for details so this operation is not clearly implemented for your platform. You should either apply it to yourself (in the kernel code) or by any means use the code from GCC Next link can help you:

[ 1]

[2]

[3]


python 2.7 - Find the start and ending sector index of a file in Windows 7 -


Hi, I want to find a real physical start and end indicator of a file on Windows 7.

Hi. Is there any operating system command that can help me find out that a dragon script or C program will also solve the purpose. Thanks for any help or suggestion.


Getting the value of a variable inside a while statement - PHP -


I can not find the value of a variable inside a loop here my code is:

  Function Check Login ($ username, $ password) {global $ dbh; Global $ queryPassword; $ Query2 = $ dbh- & gt; Query ("Choose WHERE user name from employee = '$ user name' and 'password` =' $ password ';"); $ Query2 - & gt; Settep Mod (PDO :: FETCH_ASSOC); While ($ line = $ query2-> fetch ()) {$ queryUsername = $ line ['username']; $ QueryPassword = $ line ['password']; } If (password_verify ($ password, $ queryPassword)) {echo ' 

no There may be problems in keeping it up

  $ stmt = $ dbh-> Ready (such as private, or preserved)  

and its more like it Also change to protect. "Choose from employee employee accounts WHERE User Name =: User and `Pasward` = pass; $); $ Stmt-> Execution (array (': user' = & gt; $ user name, '' pass' = & gt; $ password)); $ Query2 -> Settate mode (PDF :: FETCH_ASSOC);

Thus user input is escaped.


Remove a file that was previously added from Shared With Me to My Drive -


Google Drive has a good feature: someone can add a file or folder to my drive I've shared.

Enter image details here

Then I will call this file Anyway, I can remove from my disk anyway (note that if I delete the shared file in the web version it will not go to the trash)

However, I'm having a 403 forbidden error while trying to delete this file using the Google Drive API (whose Due insufficient permissions Not because I am not the owner of the file). Therefore, as no one can see, this is not a simple removal request. How can I apply this functionality?

Add to my drive change the parent store for the item in question, to change it, you delete Instead of wanting to unchanged the item.

Use about.get call about retrieving my drive ID, then delete that ID from the parent list in the file resource file folder. Update the file with a new list of parents


No CollaboratorJoinedEvent in Google Realtime after CollaboratorLeftEvent triggered by inactivity -


In the Google Realtime API, after a period of inactivity, a collaborative laugh event has begun for the local collaborator. However, on the awareness or on subsequent activity, no ColaboratorJoinedEvent appears to be triggered.

Is this a realtime bug, or maybe there is a hope / recommended way to deal with this behavior? If there is a local user (i.e., the ISIE is true), then should the associate Leftpiece be ignored?