Posts

Showing posts from April, 2010

- Where Developers Learn, Share, & Build Careers

Using the Require.js adapter with Node.js, I only want to include some of my project files. How do I specify which file I want to compress? This is my current node. Js script is: var requirejs = require ('requirejs'); Var config = {baseUrl: '/ generic', name: 'main', outside: '/ compressed'}; Needjs.optimize (config, function (buildResponse) {// buildResponse, is a text output of only module // Load the created file for content. // Use config.out to get customized file content. Content = Fs.readFileSync (config.out, 'utf8');}); I want to compress files in general. The main also is common in such files that are dependencies which I do not want to compress. How does the adapter choose which file to combine? I do not think the Require.js build system works like this; This is like an all-or-normal operation from the site (): The build system will then detect the dependency for the main.js and give them an API directory-build / scrip...

objective c - ios drag and drop subview only working once -

I have UIView in which I want to be able to drag and drop the subview, and it is working fine Once . - (zero) pan: (UIPanGestureRecognizer *) identifier {if (recognizer.state == UIGestureRecognizerStateBegan) {CGPoint startPos = [identifier location InView: self]; (Self.subviews in UIControl * sv) {If ([sv point end startPos withEvent: zero]) {self.controlBeingDragged = sv; }}} If (((recognizer.state == UIGestureRecognizerStateChanged) || (recognizer.state == UIGestureRecognizerStateEnded)) & amp; amp; amp; & amp; amp; amp; amp; ControlBeingDragged) {CGPoint Translation = [Identifier Translation InView: self ]; Self.controlBeingDragged.center = CPExMake (Self ControlledBangraGrid Center.x + TranslationX, Setroiling Dredged Center. + Translation.); [Identifier set conversion: CGPointZero inView: self]; If (recognizer.state == UIGestureRecognizerStateEnded) {self.controlBeingDragged = zero; However, if I try to pull the same UIControll again, that scene will no longer kno...

.net - calling checkBox1_CheckedChanged function in c++ -

Can anyone tell me how to call checkbox1checkedChanged (system :: object) ^ Sender, System :: EventArgs ^ E) Function? I tried: checkbox1checkedChanged (checkbox 1, EventArgs :: empty); and checkbox 1 checked (checkbox 1, gcn eventsAgds ()); But it does not work. Change your call from: checkbox 1 is checked ( Checkbox1, event, order :: empty); From to: Checkbox 1 is checked (checkbox 1, EventAge :: empty); (The first letter C is the capital).

oauth - fetch gmail with oauth2 -

I am working on oyoth authentication for my app and I'm planning to use Oauth2. Someone can tell if Gmail supports the attracting inbox by Oauth2 access-token. I have noticed that it is possible by Oauth1 token but I found that OAuth1 support is now excluded by Google. No, just now OAuth 1.0.

apache - Redirect ip to url using .htaccess -

I want to redirect from my IP (a host) to my website URL. Earlier I used the following lines in the .htaccess file and it worked fine. rewrite% {HTTP_HOST} ^ [0-9] + (\ [[0-9] +) {3} [or] rewrite% {HTTP_HOST} ^ www \ .example \. Com $ [nc] revised rule ^ http://example.com/$1 [L, R = 301] The above code has directed my IP to the web url. I have now changed the code to the following and the IP redirects to a strange URL rewrite% {HTTP_HOST} ^ [0-9] + (\ [0- 9] +) {3} [or] rewrite% {HTTP_HOST} ^ www. (. +) $ [NC] rewrite rule ^ http: //% 1% {REQUEST_URI} [L, R = 301] I want to use the {REQUEST_URI} feature and Also redirect to my base url. Try : rewrite% {HTTP_HOST } ^ [0-9] + (\ [[-9] +) {3} [or] rewrite \% {HTTP_HOST} ^ www \. (. +) $ [Nc] Rev. ^ http: //% {HTTP_HOST}% {REQUEST_URI} [L, R = 301]

css - css3 simple animation, when hovering off of the element, it doesn't animate, it just snaps back. How to make it animate smoothly back? -

This is a simple example, but for this I need it, transition is not working Will need to use animation. When the element is hovering, the animation easily animates the element when the element is closed which pulls it back to its original settings without animating it back. Is there any way to change its settings instead of snapping it back? Animate needs to be used for this: the hover event, but when the element closes, I can use the transition, if it does work, I can not get it to work is. I have tested your version in Google Chrome and it worked fine for me even in Firefox compatibility And it also works good for me. What I have now here: HTML: & lt; Ul & gt; & Lt; / Li & gt; Trial & lt; / Li & gt; & Lt; / Ul & gt; CSS: ul {background color: black; White color; Width: 100px; Height: 100px; } @ -mose-keyframe flow-down {0% {padding-down: 0%; } 100% {padding-down: 30%; }} @ -WebKit-keyframe flow-down {0% {padding-bottom: 0%...

Can i send parameter to php controller using javascript but without jquery or ajax? -

Well enough questions can be explained. What I'm trying to do is get the data from the popup and turn on I want to send the material I received for processing in a PHP controller. But I do not want to use the jquery library, because it is making a struggle for me. Update Window. Afterwards = Confirm Exact; Confirm functionExit () {var a = document.getElementsByTagName ("div"); (I = 0; i & lt; a.length; i ++) {if (a [i] .className == 'ymx-frame-content') {var b = a [i] .getElementsByTagName ("div" ) InnerHTML; // warning (b); }} Ajax should be a window here. Load later = reload opener; If (top.opener & top.opener.closed) {try {opener.location.reload (1); } Hold (e) {} window.close (); }} Window.ununload = function () {reloadOpener (); You can only use jquery-less AJAX: var a = New XMLHttpRequest (); A.open ("GET", "myscript.php on = foo & amp; othervar = bar", true); A.onreadystatechange = function () ...

java - shutdown hook in tomcat (necessary) not running -

I have a long running CPU and database intensive thread (which runs on low priority), which is my Tomcat application manager by request. I use a shutdown hook for this thread, so that if the application ceases forcibly, it can clear the database position before exiting. Works entirely in standalone mode, with Control-C and Canceling in Eclipse Console. But when I'm undergoing Tomcat, and when I do this: $ CATALINA_HOME / bin / shutdown.sh I verified with debug logging I have done that the message that my chopped off is sent by Tomcat, but there is no way that the message can stop it, and the important thing is that my shutdown hook never fire. / P> I have seen other people that people who used the reference had seen, but this would not work for me, and some questions and answers also show that the shutdown hook works for them in Tomcat. Using Tomcat 6.0.35 I have a long running CPU and database intensive thread that runs on less commonality ) Which can be r...

- Where Developers Learn, Share, & Build Careers

I am using an in-in loop to be an array of two elements, but this is twice Its like looping. / P> I have an example here: This is because the result is GetElementsByTagName is not a simple array - it's a nodelist and it's "live" You can specify the nodelist in the array To turn on, use the "slice" method on the array prototype: Var slideer = [] .slice.call (slide, 0); In addition to this, you should be repeated with a numeric index with the array (or nodist for that node): For (var slideIndex = 0; slideIndex & lt; slideAlline; ++ slideindex) {

Floating widget / Overlay on Android launcher -

Does anybody have any idea how this can be implemented? Some examples: Any thoughts? Thank you. This is done without using an overlay at the top of any existing activity. The source you found here on my website is to prove that the question of Android was on the question of the concept, in which someone who was suffering from a disability and could not swipe to scroll the screen and looking for a way , In which I can tap on the top of the text (actually, its one button) on top of an activity, with the minimum agitation 'Page Up / P Ge down 'show code drawn together for. But due to Android and security work, the scroll event could not be injected into the ongoing activity. The way this works, this is the place, to onCreate activity is there WindowManager.LayoutParams layOutParams = new WindowManager. LayoutParams (WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY, WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH, PixelFormat.TRANSLUCENT); The flag ...

c# - How do I programmatically launch an application? -

I am trying to call a program to launch a program in Windows Phone 7. How do I do this? Am I seeing how do I schedule this event call? (For example, opening an app in WP7)? I think you are talking about work . All available tasks can be consulted here: The call app you are talking about is PhoneCallTask ​​ : If you want the call and the app, open an app from the phone, you can not really do this. Please see:

- Where Developers Learn, Share, & Build Careers

field here: I'm reading the book of Crockford and wondering what a proven approach is Can the child's objects be used to open the base constructor object and avoid adding an option to it? I thought I could use the prototype of my object and it appears that my current code is not possible. You have several errors: Your Constructor Function Completely Returns unrelated objects. Do not do this this (if a return statement does not exist, then the constructor stays on it) Super Constructor calls in JS very comfortable You are not ugly creation MySuperclass.call (this, arg1, arg2, ...); is needed, in your case breast cal (this, spec); cat class In order to immediately trigger the object using the prototype series, you need the new keyword. See for a certain version of your code.

- Where Developers Learn, Share, & Build Careers

Image
I'm afraid. Just do not align the arrows due to copying and pasting the example. (See below) update Do: It works in chrome and cleaning, but not in Firefox ... even more confused thanks Post text "itemprop =" text "> It works in Chrome and Safari and has broken into Firefox 14 (and maybe earlier). It's Firefox 15 and later OK View bugs I did it firefox 14 (this failed) and 15 Is the answer). The answer to the original question is: Because it is broken in Firefox.

asp.net mvc - Where does Web API fit in a typical n-tier architecture? -

Normally when I take a n-tier architecture for a project, I get the following layer: Domain (Domain Models, Repository Contract) Data (the repository working on top of the domain model) Presentation (MVC app) Where ASP.net will be MVC 4 Web API fit to consider that its use should come true Not to be done by external customers? Is this a part of the Service layer or does it use the Service layer and sits at the same level with the MVC app? 2 approaches can be: The Web API decides to consume via the MVC application via HTTP. In this case, the calling code ( HttpClient ) sits in your data layer. Whether you are bringing your data from a database or a remote web service call, it should not really make a difference. In this case because Web API probably already contains a lot of business logic, your service layer will be very thin, data will not bring just one cover around the access layer, or even any additional value . > Since web APIs have been writ...

reporting services - SSRS 3.0 Report Map + Map Report Part change position when run -

Image
I have created a simple geographic map using Report Builder 3.0. To zoom in to a sub-section of the map, I have published a part of a report from a separate report and have included it on my map like this: However, when the report is run, it transmits the report part outside of such a map Is: print view The one thing shows back as I expected for this map The final goal will be in the form of a SharePoint PerformancePoint Services Report. Does anyone know why I am facing this weird behavior? / P> overlapping report items Overlapping report items are not supported HTML, MHTML, Word, Excel, in the preview or in the report viewer if overlapping items are present, then they are transferred The following rules apply to overlap report items Are: If the vertical overlap of report items is high, then one of the overlapping items is taken to the right. Interpretation is left is the remains most items, where it is located. If the horizontal overlap of report it...

ruby on rails - Spree 1.1 missing templates when inheriting from Spree::BaseController -

I'm trying to load a customized spry page by inheriting from Spree :: BaseController. Classroom Controller & lt; Spree :: BaseController layout 'spree_application' def home end and but I get a whole bunch of missing template errors The template is missing {: Locale = & gt; [: N],: format = & gt; [: Html],: handlers = & gt; [: Erb,: Builder ,: coffee ,: rabl]}. Searched in: * "/ user / mm / storeonline / app / view" ... This does not look right if I have to change all those templates, I can use controllers / tasks / scenes, then my question is - is it not supported in Sprite version 1.1 ++? I was just the controller defined in the wrong place, really better documentation on this material for enjoyment Has the desire However, move it into app / controllers / spree / page_controller rb and it worked fine.

publish subscribe - Remove read topic from DDS -

I have a problem subscribing to data (using the Java platform) When a customer subscribes to a topic, Then the data containing that subscription should be removed from the DDS. But in my case whenever I subscribe to the data, the same data is subscribed multiple times. The data has not been removed from DDS. I tried with QoS but I do not know how to use it. Please suggest how I can remove the data I read from DDS. This behavior is not due to your QOS settings, but to reach DataReader Is by your method When you retrieve your data, you are probably making some calls in one of the following loopholes in the read () : FooReader.read (DataSec, information SEC, 10, ANIISAMAPMEDAAT, value, ANY_VIEW_STATE.value, ANY_INSTANCE_STATE.value); reading () The method applied will return all existing samples in your FooReader . After reading () , these samples are still available in FooReader , so the read () method behaves. Think about reading as "Peak". The next ...

objective c - Using shake API to detect shakes -

गतिबगण: या गतिएंडेड: की तरह की घटनाओं का उपयोग हिलाता केवल तब ही निकाल दिया जा सकता है जब मेरे विचार में पहली बार जवाब दिया जाता है ठीक है, इसलिए मैं इस तरह से पहले उत्तर को देख सकता हूं: [self.view बनना फर्स्ट रेस्पॉन्डर]; लेकिन दृश्य डिफ़ॉल्ट रूप से पहले क्यों नहीं हो सकता (क्यों?) तो मुझे एक UIView उपवर्ग बनाने और डिफ़ॉल्ट canBecomeFirstResponder से हाँ ओवरराइड करने की आवश्यकता है। यह UIView subclass वास्तव में कैसे मदद करेगा? यह सब कैसे काम करता है? कृपया मदद करें। इस गाइड को देखें, विशेष रूप से पहली प्रतिक्रिया के बारे में सामान:

android - How to get rid of the Title Bar without losing the ICS look? -

I tried that googled when readily available: android: theme = "@Android: Style / Theme. No Title" But when I apply it, then it changes the overall theme to pre-ice cream sandwich. That is the gingerbread themed, not the ICS themed, such as TextView 's, date picture etc. Any ideas? setContentView () before it type the onCreate () method: requestWindowFeature (Window.FEATURE_NO_TITLE);

asp.net mvc 3 - "Null" Foreign key relationship creating record on MVC3 + EF -

I am using EF + MVC 3 + razor, I have a user profile model class whose name, surname variable + foreign The key is hobbies (as I want to see it as a dropdown) I have selected only this clue and data reference to a controller. When I try to create a record, it is not for me, as they say in the verification area: "Hobby field is required." I want the "Hobby" dropdown not to be needed. Model: Public class UserProfile {[Key] get public int id { Set; } [Required] Public string name {get; Set; } [Required] Public string aliases {get; Set; } Received public harmony hobby; Set; } Public Virtual Hobby Hobbies {get; Set; }} Public Class Hobby {Public Entry Hawkins ID {Received; Set; } Public string HobbieName {get; Set; } Public virtual iconging & lt; UserProfile & gt; UserProfiles {Receive; Set; }} Public class UserProfileDBContext: DbContext {public DbSet & lt; UserProfile & gt; UserProfiles {Receive; Set; } Public DbSet & lt; Hobby & gt; ...

ruby on rails - Can't resize uploaded image -

I am using the paperclip gem to upload and resize images. This setup works fine. I am capable of displaying uploaded images. The problem comes when I try to resize the uploaded image Here is a snippet from the model file has_attached_file: picture,:. Size = & gt; {: Small = & gt; "150x150">.} When I try to upload the image I get this error photo / var / folders / gram / gram -SegRMHuOkSlYtTMkO8U +++ TI / -Tmp- / file.jpg Not recognized by the 'Identity' command. I'm sure the file is JPG image data, JFIF standard 1.01, comment: "Manufacturer: Using GD- jpeg v1.0 (IJ" file.jpg I'm not sure, but in our application we do the same thing and it works. Our code looks like this: has_attached_file: image ,: styles = & gt; {= small = & gt; "280x173 #" ,: Medium => "635x393 #"}, convert_options = & gt; all = & Gt; "-Quality 80"}, # ,: default_style = & gt; moderate: default_...

c# - CalendarWeeks in WPF Datepicker -

मेरे प्रश्न का शीर्षक बताता है: क्या WPF DatePicker-Control में क्रिएंडोडिंग कैलेंडर वीक को दिखाने की कोई संभावना है? WinForms के साथ यह कैलेंडर के बाएं हाथ के पक्ष में दिखाने की संभावना थी। यह कैसे WPF में प्राप्त करने के लिए? अद्यतन करें: मेअर इन्फिनिटस के अच्छे उत्तर के लिए धन्यवाद मैं सही (मेरे लिए काम कर रहा था) के ब्लॉग में समाधान। आईएसओ-मानकों को पारित करने के लिए मुझे सप्ताह के नम्बर की गणना करने के लिए तर्क को बदलना पड़ा! :) सबसे पहले: हाँ, यह संभव है: यहाँ है स्रोत कोड जिसे आप चाहते थे: कृपया वीक कॉलम विज़िबिलिटी प्रॉपर्टी पर एक नज़र डालें। आपकी रुचि के लिए, यहां अधिक जानकारी है यहां एक एस यहां कुछ विस्तृत जानकारी दी गई है कि ऐसे नियंत्रण के साथ क्या करना है और, अगर आप इसे पसंद करते हैं, तो कुछ त्वरित और हाथ कैलेंडरों पर उदाहरण हैं

deployment - error activating .wsp file in sharepoint server 2010 -

I have developed a sample app in Visual Studio 2010. I have created an empty SharePoint project and have given the local site URL for debugging. A visual webpart was checked and checked as a trust level of SharePoint solution, "Deployed as a firm" and added a class for solution. I'm able to create and run applications using Visual Studio. SharePoint is using SharePoint Foundation 2010 in my local machine to debug the application. Now I want to deploy this application in SharePoint Server 2010 which is in the virtual machine. 1. I have copied the .wsp file of the application created for the virtual machine. 2. I created a web application and site archive from the central administrator in VM. 3. Then use Site Actions - & gt; Site Settings - & gt; Solution (gallery), to upload. Choose Wsp file. "Warning: If you believe this solution, then you should only activate this solution. An active solution can read, modify, and delete your data." And active buttons a...

android - Destroying a Layer with its Child in Wiengine -

I'm new to Android gaming, the development I'm using is engine's wigenin. I want to know that How can I destroy a layer with her child? I thought how to do it This will remove the children of the layer layer. Removes AllChild (true); And it will remove this layer with your children. RemovesChild (layer, true);

c# - How would you find that a date is how much percent more or less than another date? -

विचार करें कि आपके पास 2 तिथियां हैं: var left = new DateTime (2012,10, 05,13,30,00); Var सही = नया दिनांक समय (2012,10,05,13,31,30); तथ्य यह है: सही बाएं से अधिक 1,5 मिनट अधिक है अगर हम मिनटों के संदर्भ में बात करते हैं, तो मुझे लगता है कि बाएं दिनांकित समय से 5% अधिक है (जैसा कि वर्ष, महीना, दिनांक, घंटे समान हैं। परन्तु ये अलग भी हो सकते हैं।) मैं यह कैसे गणना कर सकता हूं कि बाएं तिथि से कितने प्रतिशत या उससे भी कम सही है मिनटों में आप अंतर प्राप्त कर सकते हैं: कोड> डबल अंतर = टाइमस्पेन। फ्रॉमटिक्स (दाएं। टिकटें)। कुल मिनट - टाइमस्पेन। फ्रॉमटिक्स (बाएं। टेक्स)। कुल मिनट; आप निम्न कार्य कर सकते हैं लेकिन मुझे नहीं लगता कि इसका परिणाम दो तिथियों के बीच अंतर प्रदर्शित करने में बहुत उपयोगी होगा: डबल प्रतिशत = टाइमस्पेन। सेटिक्स (दाएं.टिक्स)। कुल मिनट / टाइमस्पेन। फोर्मटिक्स (बाएं.Ticks)। कुल मिनट * 100 - 100;

pointers - C++ How to store element in deque without copying -

I want to store the indicators in a deck that looks like this: deck & Lt; OfImage * & gt; Pointer Dick; Zero testApp :: iTakeAPointer (iGes * and Pointer) {cout & lt; & Lt; "ITAKAPointer" & lt; & Lt; & Amp; Pointer & lt; & Lt; Endl; PointerDeque.push_back (pointer); Cout & lt; & Lt; "Pointerdec.back ()" & lt; & Lt; PointerDeque.back () & lt; & Lt; Endl; } When I run it, I get it (the function is called on the queset): key pressed 0xbffff240 iTakeAPointer 0xbffff240 pointerdek.back () 0x9f2e08 Because deque.push_back () creates a copy My question is: How can I get reference to 0xbffff240 in this context, in the deck? Edit: Thanks. Sometimes you do not see wood for trees. Your diagnosis is incorrect. This is printing the address of the pointer, not the address that holds the pointer (which you want): cout & lt; & Lt; "ITAKAPointer" & lt; & Lt; & Am...

unix - Transpose using AWK -

संभव डुप्लिकेट: नमस्ते मैं नीचे प्रारूप में एक आउटपुट फ़ाइल प्राप्त करने के लिए AWK का उपयोग करना चाहूंगा मेरी इनपुट फ़ाइल एक स्थान से अलग पाठ फ़ाइल है I इससे संबन्धित किसी भी मदद का स्वागत किया जाएगा। धन्यवाद इनपुट फ़ाइल आईडी मात्रा रंग आकार आकार आकार आकार आकार आकार आकार 1 10 नीले वर्ग 10 लाल त्रिकोण 12 गुलाबी सर्कल 20 2 12 पीला पेंटागन 3 नारंगी आयत 4 बैंगनी अंडाकार 6 वांछित आउटपुट आईडी रंग आकृति का आकार 1 नीला वर्ग 10 1 लाल त्रिकोण 12 1 गुलाबी सर्कल 20 2 पीले पेंटागन 3 2 नारंगी आयत 4 2 बैंगनी अंडाकार 6 यह सामान्यीकृत है ताकि आप नाम से आउटपुट के लिए कॉलम चुन सकें। मैंने इसे इनपुट डेटा में अतिरिक्त कॉलमों के साथ परीक्षण किया है और वे अपनी स्थिति की परवाह किए बिना उत्पादन प्राप्त नहीं करते हैं। #! / Usr / bin / awk -f BEGIN {col_list = "color आकृति आकार "# प्रारूप में स्ट्रिंग (उदाहरण के लिए% 6dB) के पहले या # के बाद में रिक्त स्थान जोड़ने के लिए एक बी (" रिक्त ") का प्रयोग करें, लेकिन आम तौर पर संख्यात्मक तर्क का उपयोग करें col_fmt =...

- Where Developers Learn, Share, & Build Careers

Image
I have imported an existing Maven project but I'm getting some errors in pom.xml: The execution of the plugin is not covered by the lifecycle configuration: org.apache.maven.plugins: maven-compiler-plugin: 2.3.2: compilation (execution: default-compilation, step: compile) pom.xml / Org.squashtest.csp .tools.unittest line 50 Maven project lifecycle mapping problem creation but I do not understand that, here pom.xml Is: & lt ;? XML version = "1.0"? & Gt; & Lt; Project xmlns = "http://maven.apache.org/POM/4.0.0" xmlns: xsi = "http://www.w3.org / 2001 / XMLSchema-Example" xsi: schema location = "http: / /maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> & Lt; ModelVersion & gt; 4.0.0 & lt; / ModelVersion & gt; & Lt; Parents & gt; & Lt; ArtifactId & gt; Squashtest-csp tool & lt; / ArtifactId> & Lt; Group & gt; Org.squashtest.tm & lt; / Group ...

- Where Developers Learn, Share, & Build Careers

I'm an iPhone developer. I'm trying to select multiple items in the dropdown box in the iPhone. Have tried, but unable to do it. Please suggest me it is really important to me. Please post your thoughts as soon as possible. Thanks in advance. From the I dropdown box, you think that a picker view has been created for some type in a selection area. . It would be good if you posted what component you are actually talking about. Even though, depending on the assumptions I can do on your question. I think what you want is the answer:.

c# - Label DataTemplate depending on selected item -

Based on what type of item I have selected in the tree view, I want to use different data templates XML & lt; Tree View Name = "SourceDuments List" Item Source = "{Binding Sourcedments}" & gt; & Lt; TreeView.Resources & gt; & Lt; Hierarchical dataTypeplate dataType = "{x: type docom: document}" item source = "{binding block}" & gt; & Lt; Text block text = "{binding filename}" /> & Lt; / HierarchicalDataTemplate & gt; & Lt; /TreeView.Resources> & Lt; / TreeView & gt; & Lt; Label name = "description labels" datacentext = "{binding element name = source document list, path = selected etam}" & gt; & Lt; Label.Resources & gt; & Lt; DataTemplate x: Key = "DocumentTemplate" datatype = "{x: type docom: document}" & gt; & Lt; Text block text = "{binding description}" /> & Lt; / DataTemplate & g...

Moving from scriptalicious to jquery, show/hide effect on link in asp.net repeater -

In my blog, I have a repeater in which the actual blog and comments from that blog are now on the comments with Scriptalicious I use a show / hidden effect but now I want to convert it to Jquery but I have some problems. It seems that I have to destroy a jquery script for every divi, which is going on for this effect is? This is html, where the link to show / hide comments is today (scriptwriter): , {duration: 1}); return back;" & gt; Show Comments (& lt;% # Counments (Databender.Aval (Container, "DataItimId"))%>) & lt; / A & gt; | & Lt; A href = "#" onclick = "Fade ('i & lt;% # Eval (" id ")% & gt;', {duration: 0.5}); return back;; & gt; hide comments & Lt; / a & gt;; As you can see, I am using: onclick = "new effect.fade ('i & lt;% # Eval ("id")%> New effect. Fade is passing in id. Can someone give me this hint how can I do this with Zacry? UPDATE is n...

- Where Developers Learn, Share, & Build Careers

"Post-text" itemprop = "text"> I have found an alternative solution to focus a large image (no background) in a small division. #pic {width: 60%; Height: 34 9px; float right; Hidden flurry; Status: Relative; } #pic img {left: 50%; Margin-left: -100%; Status: Relative; } I am happy with the positioning. However, once I use the Jaguar cycle plugin, it completely corrupts the position and size of the images. As I inspect the element (with DOM inspector), it is striking through the following values: left: 50%; Margin-left: -100%; This is causing reinstatement. Why are they all abort after using Jquery and you add Can! Important in CSS #pic {width: 60%! Important; Height: 34 9px; float right; Hidden flurry; Status: Relative; } #pic img {left: 50%; Margin-left: -100%! Important; Status: Relative; }

asp.net - MVC [HandleError] HandleErrorAttribute called twice when using global logging -

In an MVC3 web application, I was using Public Static Zero Global Filter Filter (GlobalFilterCollection filter) In order to implement global error handling, where the user was shown 'Error' view, if there was no exception, an exception occurred. For a particular view, I also wanted to display a different error view, if by decorating the method with [HandleError (View = "SpecialError")] Unwanted exceptions occurred. It works fine. Then I want to add global logging to unsociable exceptions. I created a custom handle error feature with the logging code: Public class MyHandleErrorAttribute: HandleErrorAttribute {The public override zero over exponence (exception context context) {// code to log code code. Xxation (reference); }} And instead of using this attribute name, register global filter and method decoration has been updated. It usually works, but when there is an exception method that is decorated with MyHandleError (see = "special error...

object - C++ Destructor Called Multiple Times -

I'm making a little wrapper class for the slide. To obtain data from the database / I have a class called SQLiteValue, the binding data for the query is created on the SQLiteValue instance stack and some functions are passed near. The skeleton outline of the square is given below. SQLiteValue: public SQLiteObject {private: // Indicator for data in the repository (can be different types) union {int * i; Double * D; Std :: string * s; Std :: wstring * ws; Byte * B; } Peeda; Int type; Public: SQLiteValue (const char * val); SQLiteValue (const wchar_t * val); .. and similarly different types of virtual ~ SQLiteValue (); }; The object is created by one of the many overloaded constructors, the constructors start a "member" of PDAT on their own basis. This important thing for this class is now, the problem is that the consultants have been overloaded to me, so I get a clean method call and do not need to explicitly call SQLiteValue (xxx). As I do not really want to use ...

- Where Developers Learn, Share, & Build Careers

In the Firefox and Chrome documentURI , the property of an XML Dome document node will return the property of DOM URI if it is created using the XMLHTTPRequest object. Is there an equal asset for Internet Explorer Dome, and if so what is it? The documentURI , url , url and baseURI attribute all return either blank or undefined. url For the property I hope this will return the URL used in the HTTP request that was created in DOM - but given examples does not use XMLHTTPRequest . The code used to make domes and then the following is the test of the property: function getXslDom (url) {if (typeof XMLHttpRequest == "undefined" ) {XMLHttpRequest = function () {new ActiveXObject ("Msxml2.XMLHTTP.6.0"); }; } Var req = new XMLHttpRequest (); Req.open ("GET", url, false); Req.send (zero); Var position = req.status; If (condition == 200 || condition == 0) {return req.responseXML; } And "throw" "+ HTTP request for" + url ...

facebook - PHP Curl CURLOPT_IPRESOLVE -

I am working on a Facebook application which uses Facebook graph AP for authentication, recently Facebook Has upgraded from IPv6 and supports my network 'NT' IPv6, hence the return of all my calls is getting started, the host is an unrecoverable error, I searched on Facebook bugs and found that we still have to force the Force Can request that they curl Using Ropitiaipiarsoelii can use IPv4. Now when I try to send a request for a Facebook Graph API using Curl, I get a notification: Use of undefined CURLOPT_IPRESOLVE - has been assumed 'Curlop_IPRSOLEEV' I want to know how I can enable this stability or how can I disable IPv6 support php so that I can send a request to Facebook Graph API using IPv4. My code $ url = ("https://graph.facebook.com/me / ACCESS_TOKEN tokrn"); $ C = curl_init (); Curl_setopt ($ c, CURLOPT_RETURNTRANSFER, 1); Curl_setopt ($ c, CURLOPT_URL, $ url); Curl_setopt ($ c, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); $ Content = curl_xa...

python - How do I resample/align a pandas timeseries to the closest calendar quarters? -

सरल सेटअप आयात पेंडस से datetime आयात datetime v = [100, 200] i = (दिनांक, 2012, 1, 31), दिनांक समय (2012, 4, 30)] s = पंडों। शृंखला (डेटा = वी, सूचकांक = i) यहां मूल समय-सारणी है: में [11]: एस आउट [11]: 2012-01-31 100 2012-04-30 200 और रीस्मुप्लिंग के बाद: में [12]: s.resample ('Q') आउट [12]: 2012-03-31 100 2012-06-30 200 फ़्रीक्वः क्यू-डीईसी तो जनवरी / अप्रैल मार्च / जून के साथ गठबंधन हो गया क्यों नहीं पंडस ने दिसंबर / मार्च को चुना है? इसके अलावा, क्या मैं इसे दिसंबर / मार्च में संरेखित करने के लिए मिल सकता है (जो मूल के करीब दिखता है दिनांक) समय के साथ काम करता है? सबसे निकटतम संरेखित करने के लिए मुझे कोई आसान हल नहीं पता है और मुझे वर्तमान संस्करण को काफी तार्किक लगता है। "post-text" itemprop = "text"> लेकिन label = 'left' के साथ आप मौजूदा डाटा के साथ क्या चाहते हैं, इसे प्राप्त कर सकते हैं, फिर भी यह निकटतम में संरेखित नहीं है, इसलिए कुल मिलाकर आपको कुछ और पता लगाना होगा तिथियों को बदलने के लिए, ताकि वे आपकी इ...

- Where Developers Learn, Share, & Build Careers

I want to manage CDI applications by using an inline outline @ Inject Other examples should be given to these examples because their life cycle is based on different caching strategies. Ex: The same example can be seen in the same thread scope, many requests remain in scope, the scope of the sessions does not apply. Do I need to set a new area to target such instances? What is the best way to do this? An extension, is it possible with the manufacturer's methods? I have to work together with the manufacturer method with: @Inject @CustomInject FwObject obj; @ Products @CustomInject FwObject createConfig (InjectionPoint p) {return (FwObject) ctx.get ((class But this should be clear about the type that is not possible because there is no general framework interface. Any help appreciated. may be with the creator's methods, all of your needs Depending on it, but perhaps one of the best ways to go an extension is if you need to go with a new scope (if you are...

design - Strategy pattern in domain model -

I'm experiencing an example where the pattern of the strategy should be used in a domain model. I have a user class that shows users of the system Each user can receive a request when using the system. After processing the request, some processing logic is possible: Automatically remove requests Received requests Notify the user about etc. . In this case, it seems that the nature of the strategy is favorable. I have an interface called RequestReceivedPolicy with many sections implementing this interface (i.e. per process logic one class). The user class places a reference on an example of a class related to the selected policy. This item seems right on the side. My question is related to the stubborn side, in my case, there is a relational database. A user selects a policy through a management interface. I want to continue this option so that the next time the user is logged in, this information will be saved. I had thought about continuing the example of the ...

cocoa - How to set the action of a NSButton in a binding scenario? -

I have a button that is inside a repeated view inside an NScLuplayview. I can tie the title of a button to one of the properties in my model class, but I want to wire one of the selectors of my model class to the button selector. Obviously, the button must send a message to the model object related to the related collection view item. I managed to tie the target for the button, but how to set the selector? If possible, I want to do this in the interface builder ... I understand it in IB A selector is a text box that specifies the path text box where I bind to the target. I do not know why I did not see it. I spent nearly an hour to solve this issue.

Django unexpected keyword argument 'instance' -

Hello I am crating a scene to edit the model using model forms. My variations.py look like: user_profile. Moderate user_profile.modiles import project Import ModelForm def ProjectForm: Class Meta: Model = Project and my thoughts .gi:. Import: django.shortcuts import from import from django.template import render_to_response from user_profile.models Import RequestContext from user_profile.forms Import from ProjectForm def EditProject (request, project_id = none): "" "This view allows a user to add a project Edit the project's project = project.objects.get (id = 4) if request.method == 'POST': form = Project.POST (Request.POST). If form.is_valid (): # form form.save () otherwise save: return render_to_response ('edit_project.html', {'title': title, 'form': form,}, RequestContext (requested)) I: Finding a project form () is an unexpected keyword argument 'example' : title, 'form': form,}, requestcontext (request)...

datetime - Convert Month Year function to Time Ago PHP -

संभव डुप्लिकेट: मेरे पास निम्न है जो महीने का उत्पादन करता है। & lt;? Php echo date ('F Y', स्ट्रटोटेम ($ वीडियो ['वीडियो'] ['पोस्ट_डेट']); ? & Gt; मुझे इसे "टाइम" पहले आउटपुट करना चाहिए I.e 3 घंटे पहले, 6 महीने पहले, 2 साल पहले। किसी भी मदद की बहुत सराहना की जाएगी। धन्यवाद एंडी $ अब = नया दिनांक समय (तिथि ("Ymd H: i: s" )); $ वीडियो पोस्ट किया गया = नया दिनांकटाइम ($ वीडियो ['वीडियो'] ['पोस्ट_डेट']); $ अंतराल = $ अब- & gt; भिन्न ($ वीडियो पोस्ट); प्रतिलिपि $ अंतराल- & gt; प्रारूप ('% h घंटे,% m महीने और% d दिन पहले'); केवल अगर PHP संस्करण & gt; 5.3

Rails sessions with redis and no database -

Hello I am currently working in this application which uses some APIs to retrieve and send all APIs, API manages databases. And there is no database on my side (rail app). I was asked to use the redis to store the session, so I'm working with redis and do not use any databases, my model ARERCORD nor ARESource . Keeping this in mind, I am working in the logout method but I have no database, so I am not sure what to do to handle it, because the session is stored in the red and I do not know the key of the session and I do not even know how to link that session with the user, I have no idea how to delete this session. I'm open to suggestions, but it should be a sort of solution, there is no certification for railways working with railways? Take a look at Red, Synatra Ruby: Lala Store is a complete repository for all modern Ruby Frameworks. Set ( cache , I18n, session, HTTP cache). , Rack, rack :: Cache and I18n This supports basically object mashling, timeout, single or ...

java - Typeface of Title and Buttons in a AlertDialog -

I wonder if it is possible to set the title and button typeface in an AlertDialog? Check this link: here You can manage the author text and modify it. Hope I can help you.

ruby on rails - Need Help to write a jasmine spec -

Hi, I am trying to write a jassin test for backbone view and to use it in one of its functions too. I want to check the correct behavior of the function, when a user checks a checkbox in the rendered scene, then submit. Here is the test: Description ("buildCI ()", function () {description ("Select a class with quidget model", function ( ) {this ( "Return" a CoacheeIssue model with the selected categories, function () {selection_allowed = true lcc_selection_allowed = false; var scene = new Rails3DeviseRspecCucumberkViewskCategoryPicker ({Collection: categoriesCollection, answers: answers, category_ids: category_ids, credibility : credentialsCollection, user_hash: user_hash, selection_allowed: selection_allowed, lcc_selection_allowed: lcc_selection_allowed}); // then render the scene we can shuffle view.render () your DOM elements. (view $ L) elDebug = $; / / Check $ a square box as the program (elDebug.find ( 'input.category- checkbox # 5061c6a4862...

objective c - Transition to a view in table with dynamic cells -

I am creating a tableview and I fill the table dynamic data. How to make a transition between the cell and the other I use the storyboard. The app for the iPad. You can transition from cell to second view using the following code SelectionRowAtIndexPath: (NSIndexPath *) Index Path {anotherView * obj = [[Other View Alloc] initWithNibName: @ "AnotherView" - (zero) table view: (UITableView *) Bundle: zero]; [Self. Navigation controller Push ViewController: animated obj: yes]; [Obj release]; } This method is a representative method of the table view and when you select any cell, it will be called and will go to another view

pycuda - Why is my rather trivial CUDA program erring with certain arguments? -

I have created a simple CUDA program for practice. It only copies data from one array to another: Import pycuda.driver as cuda import pycuda.autoinit as import numpy as np from pycuda.compiler Import SourceModule # Global Constant N = 2 ** 20 # Array size aa = np.linspace (0, 1, N) e = np.empty_like (a) block_size_x = 512 # Instant block and grid size Block_size = (block_size_x, 1, 1) grid_size = (N / block_size_x, 1) # Create the CUDA kernel, and run it. Mod = SourceModule ("" "__global__ zero D2x_kernel (double * A, double * E, int n) {int tid = blockDim.x * blockIdx.x + threadIdx.x; if (tid> 0 & amp; Amp; & amp; amp; amp; amp; amp;; - N - 1) {e [tid] = one [tid];}} "" "funk = mod.get_function ('D2x_kernel') func (a, cuda.InOut (e) , Np.int32 (N), however, I get this error: pycuda._driver.LogicError: cuLaunchKernel failed: invalid value / P> When I get rid of the second logic in my kernel function double * e and witho...

activerecord - Rails test data, in the database -

This may be a basic misconception on my part. I have a bunch of logic in my app that sets data from several tables and adds them to memory structures. I want to write a test for that argument. It looks like the fixtures, factory girl and similar equipment create examples of in-memory models. If I call activerecord, like Model.find (foo: 12) they apply only against records that were saved? Thanks! In most cases, I agree with the opinion of @ MRBDRO: Like rpsec stub method but a rail As a programmer, I think you have to know both "stability" and "stub". The fixtures, whatever your yaml file or factory girl data , will save in your database in your config / database.yml See the file for the place where they are. Actually this is useful when you want to make sure that during your testing, always some data in DB, such as "Admin User" with a fixed ID Stubs, it is faster than stability because it will not be saved in DB, and probably very usef...

- Where Developers Learn, Share, & Build Careers

I am trying to export data to CSV, where the data contains two lists of unequal items Length import csv item_dictionary = {'13742': 'cat', '25037': 'dog'} name = item_dictionary.values ​​() data = [[1, 2, 3] , 4, 5, 6], [7, 8, 9, 10]] export_data = zip (* data) myfile = open ('sample.csv', 'wb') wr = csv.writer (myfile) wr.writerow (Names) Wr.writerows (export_data) myfile.close () This gives me this output, which includes 5 and 6 in data [0] Is not done. > dog cat 1 7 2 8 3 9 4 10 What I should do is: dog To include all values ​​of cat 1 7 2 data [0] , how can I modify my code to not be limited to the length data [1] In fact, ZIP prevents it to reach the end of the least movable. This is a function to use when you want to zip at the end of the long runner. itertools export_data = itertools.izip_longest (* data, fillvalue = '')

device driver - Determining the name of the HAL that is installed on Windows 7 SP1 32-bit -

I'm just trying to install checks HAL and kernel on Windows 7 SP1 32-bit. Instructions given on the Microsoft Dev Center Web site show that I do the following: Open the file% SystemRoot% \ inf \ setupapi.dev.log and search for hal.dll. You should get a line like TargetFilename - 'hal.dll' Find the related source filename in the same part of the log file, the name of the name of SourceFilename is the name of the HAL file that is copied from the checked build Need to create. The setupapi.dev.log file is on my machine, however, it is not mentioned hal.dll. In fact, I searched hal.dll in the IF directory and did not mention any of it in any other log file. I found mention of acpi_hal and ACPIAPIC_HAL in setuppi.dev.log, I'm not sure that it can help me choose the right hall. Is there any other way to use Hala? EDIT: I understood it below. I understand it Windows internal , on page 6, x86 HAL There is a list: HELP DLL - Advanced Configuration and Powe...

ios - Save image taken from iPad/iPhone to sql server database base64 -

I'm having trouble saving SQL Server data from my iPad app, I think it's mostly with data types To start with the database, I have a SQL Server data type as my image field: The image I searched for .NET in an equivalent data type and I found this link: that the best option is a byte array: Byte [] In unit / class I am in .NET I'm doing yoga. Following: Public Classroom MyClass {public byte [image] {get; Set; }} And the parameter used to pass this data looks like this: SqlParameter param_image = cmd.Parameters.Add ("IMAGE", SqlDbType.Image, item.Image. Length;) Param_image.Value = System.Convert.FromBase64String (item.Image); Param_image.Directing = Parameter Direction.Input; However, I'm getting an error from the parameter about trying to convert from string to a byte array. Has anyone done this? two comments: Item.Image byte [], And not expecting the string as Base64String (maybe this is your error?). Try: param_image.Value = item.Image...

- Where Developers Learn, Share, & Build Careers

I have been given a question on an assignment that stumped me. I'm thinking very hard about it ... the question is as follows. Give a linear time algorithm to determine the longest non-detached route in an anaside underride graph (which is a tree). My first intention is to go with DFS. But it seems DFS tells me the longest route from the node only that I start on the second top; However, the problem asks for the longest path in the tree ... not the longest path from the node, can i set someone directly to me at the beginning? Thank you. One such method is the distance for all nodes, A, and all other nodes in linear time. Counting of. Suppose is far from the BA. In step 2, find the node far away from B. Let the command (p, q) denote the distance from the p to the queue. Note that if E is the lowest common ancestor A, B, C, then D (A, B) = D (A, E) + D (E, B) and also note that D (E, B) A ?? ¥ D (E, C). Edit 1: algorithm or method ??? Find the most distant B ...

How to evaluate and generate a result from a html form using javascript -

I need to create a game when I say it in the form of title but my problem is that I do not know how the radio button Read Javascript and based on the options, it creates a scenario with the difficulty of choosing a player with the game mode. I am using a text input for the nickname and thus using 2 fields for the player to choose the type of game and difficulty. & lt; Fieldset & gt; & Lt; Story & gt; Dificuldade: & lt; / Narrative & gt; & Lt; Input type = "radio" name = "dificuldade" value = "easy" & gt; Easy & lt; / Input & gt; & Lt; Input type = "radio" name = "dificuldade" value = "medium" & gt; Medium & lt; / Input & gt; & Lt; Input type = "radio" name = "dificuldade" value = "hard" & gt; Tough & lt; / Input & gt; & Lt; / Fieldset & gt; I suggest you use jQuery, making life so easy Goes: $ ('[na...

backbone.js - What do I get with the default Backbone.Model initialize function? -

For reference, I use coffeescript if I create a base model that provides backbone. Models and I create another class (ie App.Models.Project App.Models.Base) .. Everything works as expected. What if there will be a difference in the project example I wrote the base class: start: - & gt; Super console.log 'hi' and just plain start: - & gt; Console.log 'hi' Without spending too much time, it seems that an urgent object is required in both cases. I think that you always say 'super' but I do not know what I'm doing .. backbone , you can define an empty task initialize: function () {} this is up to your model to override. Generally, the model variables have been set here. Whenever you make a model object, the initial is called internally. The same principle is fine when creating scenes and collections.

windows runtime - How to correctly implement hotkeys in a WinRT application? -

I try to use the window's buttondown event as well as the grid's buttondown (all window elements inside this grid) Is of However, these incidents sometimes do not fire. Where, logically, the code should be in a WinRT application (to implement hotkeys) to handle the buttons below the events? I thought someone recently blogged about this, but I just got this post Is not detected. However you can check these articles:,. Actually you have the window. Cordwondo Kadown will handle / above , the current state will store the modifier key ( Ctrl , Alt , Shift ) and respond to combinations to handle them. After this you should also specify the attributes and strings on your strings: ToolTipService.ToolTip = "shortcut key: Ctrl + P" AutomationProperties.AcceleratorKey = "Control P"

ios - Strip symbols while retaining unstripped binary in xcode 4.5 -

I am sorting symbols in Xcode 4.5, but it felt that if we sorted them, can not do. So, I'm trying to make a copy of Unstified Binary before Stripping. It seems that normal xcode symbol is not possible with stripping settings, so I have tried to dig into run scripts. My problems are: a) It seems that the written code runs after the signature, so the app fails to run. b) I have no way to run a run scripts under distribution / release. Any suggestions? You can crash the report when the binary is snatched! Stripping the obstacles are 30-50% smaller, signaling with unstired binaries, No will give you line numbers even after symbol numbers. During the building process, you also get a DSYM package which is a symbol of its crash report along with its usage, line number among them! In addition, whenever you create a new, you get a new unique pair of app binary and DSYM package, so when you release the beta you should use the archive instead of the build or the productio...

tree - Scheme 2 minimum values for huffman BST -

Okay then say I was given a list of letters containing the letter, and its frequency - or the number of times that saw Was in a lesson in the former '((# \ A4.4) (# \ B. 2.) (# \ C.9)) How can I get 2 minimum frequencies so that I can add them to a tree? Is there any work that will help me find them? Look at the section in the book, where you should apply the Huffman encoding tree with scratch. You will get full details in About the question, there is a possible way to find two minimum frequencies in the list with the format specified here: (define frequencies' (# A.4) (# \ b.2) (# \ c. 9)) Take (sorted by frequencies (lambda (xy) (CDR +) (CDR))) 2) = & Gt; '((# \ B. 2.) (# \ A4. 4))

php - Proper way of doing a Twitter-like follower and retweets system on CakePHP 2? -

I'm super new for CakePHP. I've searched everywhere for this but I think it's ok to get it right. Unable to enable or search for orientation of some kind. I still do not get the full HABT thing working and I'm hoping to know more about it. I am trying to do a Twitter-like system, with users and followers, and post (s) and shares (retweets). I've posted sets and models to users, and can join tables for followers (between users and users) and shares (among users and posts). How should I set up my model associations? I am trying in many ways but I am not sure whether I am doing right or not. And the other question is, the people I have followed, will be the appropriate search query to receive all the posts posted by them, and without obtaining all unnecessary data like user information, Only posts in an array? Is it possible to find it in a query, or should I do so and then the arrays should be merged? Also, it would be very useful to understand how to properly...

python 3.x - find a data type suitable for my cache -

I want to cache my object in the display, but it needs to be recycle if it is not too long is. The function will be called every 30 minutes, check each cache object, such as the file's attributes in the Windows Operations system, each object should have two attributes: the last modified time stamp (or a flag) ) And the last accessed time stamp, if the last modified time is greater than zero, then make a SQL to update them in the database and reset the modified time to 0 , If the last access time is more than 30 minutes, remove them from the cache system. What is the best way to implement them? And there is a similar system already in Python so I do not need to change the wheel again. ps should not have any memkached objects directly, no serialization and no discretion. You can either create a class with these attributes, or you just use one dictionary Do it is a matter of taste, both works, being a class gives you the possibility of making methods like "is_old...

objective c - Singleton Instance vs Class Methods -

While recently I have seen two really popular singleton patterns, with the purpose-written and written works in various libraries. One version brings a singleton example and calls its frequency methods and other versions only highlight class methods and does not give you an example of working at any time. Everyone has a summary of the purpose of accessing the same resource (Storekit, CoreData, Pars API etc.) For example, here is the former approach used in the MkStoreKit: // Start a singleton during the app booth [Mkstore manager shared manager] // Some time later in the app [[MKStore Manager Share Manager] Purchase Feature: KfairID on Complex: ^ (NSSTING * Purchased Feature) {NSLog (@ "Purchased:% @", Purchased Feature); } Canceled: ^ {NSLog (@ "User Cancellation Transaction"); }]; Or alternatively NSUserDefaults, UIApplication etc. Other approaches can be seen in a magical record or with a parse API here: // Configure API credentials sometime in the app b...

android - Loading Bitmaps Efficiently -

I was going through the developer. To load Android page bitmaps efficiently, and here: they talk about loading a scale-down version of memory, which is clearly very efficient Now my problem is that given The method requires resources ID, which is when we download images / bitmaps from the Internet (Please correct me if I am wrong here). So is there any way we can use some variation of the method given for images downloaded from the internet ?? increases the public class fetch image activity tools OnClickListener {int id ; Override public null on @reate (bundle saved instainstate) {super.naught (savedinstenstate); Id = 1; // now declared as steady} {new page geometric (). carry about (); File storage path = environment .getExternalStorage directory (); File imgFile = new file (storage path, "/ image /" + id + ".jpg"); If (imgFile.exists ()) {bitmap myBitmap = BitmapFactory.decodeFile (imgFile .getAbsolutePath ()); }} Class parsed root asyncTask and lt; ...