Posts

Showing posts from February, 2013

reporting services - Multiple value parameter not loading on server -

B>, where I get names of some people I Respestep, and it shows on the preview. But when I upload it to the server, it wins: It shows that it is loading for less than one second and then the report remains empty. Note: This behavior only works when I set parameters to allow multiple values. I thought this was a null problem, but from where the parameter values ​​come, no one is helpless and still presents these problems. I am desperate to know where the problem can be , The data source on the server and everything is well-directed. In fact, it does not show any missing, just does not load anything and leaves the page empty. Delete the report on the server and reprimand it again. After this you can see the parameters in the report

joomla - How to specify a numeric component parameter for article selection -

In setting parameters for my component, I want one of them to be an article ID that opens and uses is done. According to, text is the only option. Can the integers be specified, or is there any way to validate the input? As far as I know, text is your only standard solution Joomla, however, allows for custom parameter types. You can imagine that for an integer, but if this is for article selection only, then what can you do for Joomla for the com_content component? Create a new folder in your admin component called: admin \ component \ com_mycomponent \ elements Copy admin \ components \ com_content \ elements \ article.php in your new folder (and for index.html security) You can now add "Articles" to your component as shown below You can specify a parameter type, and component configuration will have a dropdown of your articles. Be sure to include the adapter in your Elements folder in your "Parameters". & lt; Parameter addpath =...

Rails 3: wrapping ActiveRecord operations and external credit card in a single transaction -

I am using ActiveMerchant to process a credit card transaction that can be successful or unsuccessful, which Part of some transactions, if any part of the internal accounting using activivercard processing fails, then I am not clear about how to roll back the whole transaction. I have a payment model, and a point model - the user's digits are converted into dollars to reduce their payments. Save points transactions: Debit user accounts, credit internal accounts Save credit card transactions results ( Whether it succeeds or fails) Again, if everything works, send an email to the user I see how it works And believe that I callback to handle the contents like email to the user after after_commit (and after_rollback ). But how can I make an unsuccessful credit card transaction as a similar rollback, which is a failed AR save reason? Is it as easy as coding like increase active activation: rollback if my non-AR transaction fails? The above document contains a...

jpa 2.0 - How to handle EntityNotFoundException in Spring Data JPA (or just standard JPA 2) -

I am in the process of clearing databases; is. I have developed a program with Spring Data 1.1, which is the process of recording in batches. The problem arises with one association @ 2 entities in relation to the record for the unit B is not present, though it is in reference to Unit A. My job is to clear the references of entity B. If this is the case. The question is: Should I pre-process the data to clear it or can I adjust the Spring Data or JPA settings if the unit is not found? This is "normal" - with this data - in the unit A there is an FK which is not present in unit B, so I want to handle it in my code and an additional step or other tool Data is not pre-processed with data batches so that any pre-processing can make things more complicated for the user. In short, I want to set the Spring data field to blank and continue the process instead of being able to find a org.springframework.orm.jpa.JpaObjectRetrievalFailureException. . . Maybe...

C++ Pass by reference vs. pointer in a Class -

Then, I have a class that stores the pointer vector for objects. I have a method that adds objects to the vector. While adding, I know that I can pass by reference or by the indicator, and have read about the advantages and disadvantages of each, but in this case, I can not understand who is better and why. Code> HPP: Class Room {Vector & lt; Item * & gt; item; Public: Zero Edith (item *); }; CPP: Zero Room: Added Item (Items * Item) {items.push_back (item); } ... and pass with the reference: hpp: class room {vector & lt; Item * & gt; item; Public: Zero Edithum (item & amp;); }; CPP: Zero Room: Added Itam (Items and Items) {items.push_back (and items); } Who should I use? This is not a minor thing, so do the things that sounds more natural on the call site, or the rest Is more compatible with the code. OK, I can see points in favor of everyone, but I can not tell you if they talk about your case. Going through the pointer, you ge...

javascript - How can i create the collection of following data structure and send using socket.io? -

I use node.js and socket.io. This my data structure is in mysql table: ABC3, Name: 'ABC3', TUUSERID: 1 ID: 2, Name: 'ABC 2', Touuser ID: 1 ID: 3, Name: 'ABC3' ToUserId: 1 ID: 4, Name: 'ABC4', TUUSERID: 2 ID: 5, Name: 'ABC5', Tuuseir ID: 2 ID: 6, Name: 'ABC 6', TUUSUCID ID: 2 ID : 7, Name: With ABC 7 UserID1 and Rows (ID4 - ID6), userID2 and user with a user ID as a collection (i.e. ID-3) Want to send as a collection, TUUSERID: 3 in line with User ID 3 (ID7). How do I create a collection and send a collection to the user? I read the data as follows: getUsers: function (callback) {client.query (select 'user from', select function (mistake, result, field) {If (err) {fail err;} var userslist = {}; if (Results.length & gt; 0) {for (var i = 0; i & lt; results.length; i ++) {var row = Create a collision in the results [i]; // object loglist ific user ------ v //io.sockets.socket(USER_ID).emit('sendusers', ...

c# - Having Timestamp in Entity Framework actually tell the code the date of change -

I need my entities in the first environment of the EF 4.3 code when they were last updated. Is this possible? If so, how to get the last shuffle in the unit category of the following property: [timestamp] Public byte [] roversan; Set; } I have to take the time to update the method in this very unit category. A datetime property was updated to in your model or (whatever). updated the public date time {received; Set; } Then in your code, I think you can set it to a update () (or something similar) updated = date time.Now, In this way, the update method is called on a line every time, to execute the updated property method Will be set at the right time.

XOAuth versus oauth -

In this way Gmail supports the XOauth protocol to authorize an app to access its data. Is: Is there any qualification on its normal auto mechanism and can I use any of these to get the entry token? Or does Gmail not support the normal OAuth process? For SMTP / IMAP / POP, the oscillation of OAuth as the authentication mechanism for XoT Mechanism An app to use though you can use standard error flaws to authorize your app to the user. {/ P> Note that these protocols currently work with OA1.0A only. OAuth 2.0 is not yet supported for XoT system.

- Where Developers Learn, Share, & Build Careers

Hello how can I get a list of maps to print all possible combinations It is said that the core mapping = {1: [A, B], 2: [C, D] ...... then with the list [1,2] and above all the sample mapping Product Mapping by importing itertools = {1: ['A', 'I' 'B'], 2: ['C', 'D']} data = [1, 2] for the combo in the product (* (mapping for data [D]): Print Results in ('a', 'c') ('a', 'd') ('b', 'c' ('B', 'D') Edit It looks like you actually want Which wire == ['AC', 'Advertising', 'BC', 'BD'] .

ios - How to leverage CCSpriteBatchNode when frames are distributed into multiple textures -

In my game, there are lots of enemies (subclass of CCNode ) which are animation frames Distributed in many texture files (enemy01.png, enemy 02.png ...) and enemies can be generated from different textures in the same scene. I want a unified way to dynamically add to the enemy randomly generated on the correct CCSpriteBatchNode , but a lookup table does not look so elegant. Is there any better way to handle it? Thanks Since each enemy uses its textures, Can use a phantom batch node for Therefore, when you make the enemy "X", even when you store it (perhaps an NSDictionary), it should not be difficult to obtain a phantom batch node. Keep in mind that Texture Atlas is small for each enemy due to enemy type per phantom batch node and maximum allowed size (1024x1024 for older devices, iPhone 3GS and newer 2048x2048 or greater) Not close. If possible, order multiple images in a texture atlas and use a phantom batch node for it.

- Where Developers Learn, Share, & Build Careers

I have a bunch of Python scripts that I use to read files in a pipeline, and to create data And converts data to change Sqlite3 database. I use a mess file to do this; Because some of my input files are quite large, i.e. 5 GB and so takes a lot of time to process, I do not want to run the whole file in the file to run the whole pipeline when I just edit one file. However, because they all edit the same file, i.e. the database file, they are making all the impressive fake targets, there is a way to do this, by which only the targets that modify those files Can be prepared: who had their files? Here is the messy I am using: .PHONY: Everything: blogs.db blogs.db: User likes posts blogs blog_likes Peano: Create Create: create.py $ (Python) .py: User Users: users.py $ (Python) users.py Phone: Posting posts: posts.py $ (PYTHON). Like: Likes: likes, make $ $ (Python). Blog: blog blog: blogs.py $ (PYTHON) blogs.py .PHONY: Blog_likes blog_likes: blog_likes.py $ (python) blog_likes....

visual studio 2010 sp1 - IIS Express Blocks VS 2010SP1 Builds -

After several build / debug cycles, IIS Express (both 7.5 and 8.0 RC) VS 2010 SP1 seem to be blocking the construction of the project. . The build will hang indefinitely until the IIS Express is terminated. Is there a fix / workaround for this problem? Finishing the addition of a pre-build event to kill IIS Express has ended. Taskscill / FI "IMAGENAME eq iisexpress .exe" UPDATE This solution helps But not correct. Sometimes the build error message will fail with the IIS Express process can not be finished. Still hope for a better solution ...

c++ - Changing devices to which predefined stream objects are connected -

By default, when a C ++ application where the headers are included, the following 4 stream objects are sent immediately, cin, Cout, cerr and pause (related extended character types as well). By default cin is connected to the standard input device, which is usually the keyboard and cout, cerr and pause Standard output is connected to the device which is usually the console My question is how can we change the equipment, it is connected to the predefined section objects? Yes, this is possible and it does not depend on operating system. There is a quick demo, cout is redirected to a file: #include & lt; Iostream & gt; # Include & lt; Fstream & gt; Int main () {// Make a file buff, and open it on a file named "your_output.txt": std :: basic_filebuf & lt; Char, std :: char_traits & lt; Char & gt; & Gt; B; B Open ("your_output.txt", std :: ios_base :: out); // Connect `std :: cout` to the file selected through ou...

guice - Android - Setting up Roboguice 2.0? -

मैंने एक नई परियोजना (एक्लिप्स् क्लासिक में) शुरू की, roboguice-2.0.jar गाइड-2.0-नो-एओपी.जर और जेएसआर 305-1.3.9.जर मेरे प्रोजेक्ट और मेरे बिल्ड पथ पर। पहला चरण है विस्तार RoboApplication, लेकिन ग्रहण इस वर्ग के लिए मिलान पैकेज नहीं मिल सकता है। मैंने स्रोत को देखा और रोबगुएस के लिए पैकेज रोबोग्यूइस.अप्लिकेशेशन। रॉबो एपलिफिकेशन है जो मौजूद नहीं है तो, निराशा से, रोबोक्यूइस पुस्तकालय के विकास में है नई लाइबरी में कोई रोबो एपलीकेशन क्लास नहीं है इसके बजाय आपको उस फाइल को हटाना चाहिए और अपने मूल्यों में एक roboguice.xml फ़ाइल बनाना चाहिए जो आपके कस्टम रोबो मॉड्यूल को इंगित करते हैं: & lt;? Xml version = "1.0" एन्कोडिंग = "utf-8" & gt; & LT; संसाधनों & gt; & Lt; स्ट्रिंग-सरणी नाम = "रोबोग्यूस_मॉड्यूल" & gt; & LT; आइटम & gt; com.mypackage.MyModule & lt; / मद & gt; & Lt; / स्ट्रिंग सरणी & gt; & Lt; / संसाधन & gt; इसके अलावा, अगर आप अपने मॉड्यूल कोड के लिए ऐब्स्ट्रस एंड्रॉइड मॉड्यूल...

- Where Developers Learn, Share, & Build Careers

I have almost one question. Based on that post, I know that PDO :: The last InsertID () is called when a separate connection is safe. However, what does this mean by PDO :: ATTR_PERSISTENT = & gt; Should the correct should be not in the PDO constructor if you want to use PDO :: Previous Industry () during that connection? In other words, if I use PDO :: lastInsertId (), my application "documents every time a script needs to talk to a database" as "a new one Connection is forced to bear upwards on the side. No matter Who will use the same connection after the work of your php script. That you will have the last entered ID that is done by it, and not another connection. So do not hesitate to experiment with this both continuous and continuous connections.

android - Get Default Browser Bookmarks, and store to text file -

How to obtain the default browser bookmark, and how to store the default browser bookmark in text files. In these, I found the bookmarks URL and label (Include all sub folders URL and label). See this link How to get a bookmarks URL and label in the tree structure format. The default browser contains a URL. In this bookmarks contains the url and folders and sub-folders . Some URLs and folders in each folder How do I obtain a tree structure format? For example, how to obtain the structure of this tree Bookmarks (original folder) Java (hair folder) http: //www.java2s .com / http://roseindia.net/ ANDROID (Hair Folder) AndroidDevelopo (Hair Folders) http: //developer.android.com/index.html https://play.google.com/store?hl=en http : //developer.android.com How to obtain tree structure format. Is it possible. Please guide me Thanks in advance. Below Add to Your Android Manifest File Lt; Use-permission Android: name = "com.android.browser.pe...

google chrome - How can I seamlessly transition from self-hosting to the web store? -

I currently self-host my chrome extensions - but with recent changes, Chrome for less technical users Extension, I'm considering moving it to the Web Store. The problem is: I do not see a 500,000 + users downloaded a new version from the Web Store to download the next updated version once I get it there. Is it as easy to upload my new version and point to the update_arnal in the manifest. Journals to that download link? Update_url Could there be something that indicates a different domain name than the original extension? The main issue is that the same version of your self-hosted version of Chrome Web Store It needs to be - which means that it has to be signed with the same certificate. In order to achieve this, you also need to upload your signature certificate at the Web Store. Add your certificate to the zip file as the first time in the form of key.pem , when you are uploading your extension, the web store will automatically use it to sign it (remove it from the ...

- Where Developers Learn, Share, & Build Careers

I have an XML that looks like the bottom in which the number of items can vary from 0 to n. There is a way to write XSD to verify the schema. & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; ShoppingItems & gt; & Lt; CUSTOMERNAME & gt; John & lt; / CUSTOMERNAME & gt; & Lt; Address & gt; Walstreet, Newyork & lt; / Address & gt; & Lt; Item 1 & gt; Milk & lt; / Item 1 & gt; & Lt; Price1 & gt; 1 $ & lt; / Price1 & gt; & Lt; ITEM2 & gt; Coolie & lt; / ITEM2 & gt; & Lt; Price2 & gt; 1 $ & lt; / Price2 & gt; & Lt; ITEM3 & gt; Bread & lt; / ITEM3 & gt; & Lt; Price3 & gt; 1 $ & lt; / Price3 & gt; & Lt; Item4 & gt; Egg & lt; / Item4 & gt; & Lt; Price4 & gt; 1 $ & lt; / Price4 & gt; & Lt; Item..n & gt; Egg & LT; /Item..n> & Lt; Price..n & gt; 1 $ & lt; /Price....

- Where Developers Learn, Share, & Build Careers

Image
How can I display such a string in TextView . I tried a lot but the solution could not be found. I can not display the base value CHA2DS2-VASc I suggest you create an HTML string for this formula and display it inside textview: string formula = " CAA 2 DS 2

asp.net mvc 4 - MVC4 application on handling list -

This is my model class, two classes employee and employee list edit namespace Multilevel Models {Public Class Employees {Public Ent ID}; Set; } Public string name {get; Set; }} Public Class Staff: IEnumerable & lt; Employee & gt; {Public List & amp; Staff; Employee & gt; Employee {Received; Set; } Public IEnumerator & lt; Employee & gt; GetEnumerator () {returns employee. GETEnumerator (); } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator () {Return employees. GETEnumerator (); }}} This is my view where I am writing code for editing using javascript @model EditMultiplerecords.Models.Employeelist @ { ViewBag.Title = "homepage"; } & Lt; Link href = "../../content / stylesheet 1.css" rel = "stylesheet" type = "text / css" /> & Lt; Script src = "../../ script / jquery-1.6.2.min.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt;...

expression encoder - Can I play xesc file on Silverlight? -

It looks very strange and I can not understand it, why xesc, expression output encoder 4 screen capture, can not be played on Silverlight ?? Why is the screenpritewor videoprofile codec always anonymous? Is not the left hand know what the right hand is doing? Answer from the Microsoft Expression Encoder Team Optimize for screen capture Being, the dependencies of the XESC codec are dependent on the platform and thus it is not really fit in the Silverlight model.

Android:App launch notification -

I'm new to Android development. I was just looking for a notification to launch any app on Android. Whenever another third app is launched on the device, my app should be notified with that app information. In this, Palm, Windows Mobile and everyone, are thinking about anything available on Android. Please suggest me Thanks To check whether you want to show notifications, your application Show the dialog in the startup before and save the result in the shared pages. If the person chooses the Yes: Keep the right in SharePreferences and send the user to the GCM server to send the information. Information about GCM:

php - Submit Form Data through Web Server to MySQL Server using Stunnel? -

I have a form that users can fill, and the data will be stored in a MySQL database using PHP . The connection to the Apache server is encrypted with HTTPS, and I want to encrypt the connection to MySQL database. Both Apache and MySQL are on the same server machine. I dug around the interwab and I think what I need is what I need. OpenSSL and SSL are supported and active on the server, because we have been given the option of using standard ports and stanel ports to connect to the MySQL server. However, all the articles I found online deal with using a stainless steel to connect a MySQL client to an external MySQL server, but PHP was not used to connect to a local MySQL server. Do I have the right to believe that just because the form is transmitted via https, does not it mean that the connection to the database is also encrypted? Database "," standardport "); This works fine using standardport though, if I change it to a stern port, then I g...

C# Image outofboundmemory exception -

I have tried to convert binary data into image here here is my code: Byte [] bytes = (byte []) (reader ["avatar"]); Fs1.Write (byte, 0, bytes lang); PictureBox1.Image = Image.FromFile ("image.jpg"); PictureBox1.SizeMode = PictureBox SizeMode.Stretch Image; PictureBox1.Refresh (); But the exception in the wrong line is out of memory: "pictureBox1.Image = Image.FromFile (" image.jpg ");" I do not know why this happens, please help me Try this method: public image image framebits (byte [] bytes) {(var ms = new memorystream (bytes)) {return Image.FromStream (ms); }}

iphone - resourcePath not working Xcode -

I have created a SQLite database with data for my app, and dragged it into a supported file group in Xcode. NSString * bundlePath = [[[NSBundle main bundle] resourcepath] stringbapping path comparison: @ "database ADB"]; This file does not read. However, if I enter the full file path: NSString * bundlePath = @ "users / xxxx / apps / app / database.db"; The app works fine. I have printed the file path by: NSString * bundlePath = [[NSBundle mainBundle] resourcepath] stringByAppendingPathComponent: @ "database.db"]; And this is: / user / xxx / library / application support / iPhone simulator / 5.1 / application / EE614 EFA-BAF 9 -478E -xxxx-xxxx / app.app / database.db Any ideas why? The best way to deal with the path is to tell the API path string details about "applying" stuff Keep in mind NSString * path = [[NSBundle main bundle] pathForResource: @ "database" type: @ "db"];

javascript - Code completion not recognizing members from OpenLayers js file -

मेरे पास एक विज़ुअल स्टूडियो 2010 एएसपी.नेट एमवीसी 4 प्रोजेक्ट है I एक दृश्य में, मैं फ़ाइल आयात कर रहा हूं: & lt; script type = "text / javascript" src = "path / to / openlayers.js" & gt; & lt; / script & gt; नीचे, मेरे पास एक इनलाइन स्क्रिप्ट है: & lt; script type = "text / javascript" & gt; फ़ंक्शन इनिट () {var नक्शा = नया ओपनलेयर। मैप ("मूलमैप"); Var osmLayer = नया ओपन लेयर। लेयर.ओएसएम (/ * कन्स्ट्रक्टर पैरामाज * /); } & Lt; / script & gt; मैं इस तरह संपत्ति और विधि नामों का सुझाव देने के लिए विजुअल स्टूडियो / रेसरर इंटेलिसेंस कैसे प्राप्त कर सकता हूं: osmLayer.w // osmLayer.wrapDataLine osmLayer का सुझाव देना चाहिए .एटी / / osmLayer.attribution सुझाव देना चाहिए कि यह सुझाव है कि सदस्यों को JQuery: constructor , प्रोटोटाइप और दुर्भाग्य से, ReSharper का जावास्क्रिप्ट इंटेलीसेंस सही नहीं है और वर्तमान में गैर-मानक जेएस वर्ग के फ्रेमवर्क का समर्थन नहीं करता है जैसे ओपन लेयर द्वारा उप...

linker - Lua compilation link error -

When I try to compile a little lua program, I get these errors: Undefined reference to ` Of course, I have the link with the -lll lua5.2-dev installed on my ubuntu if you have any more information Ask me if you need it. Thank you! When I try to compile a little lua program, I get these errors No link program you receive these errors. To add -ldl to the end of your link line is to be fixed.

javascript - Error in My First Titanium Mobile Project -

I am new to titanium studio (I am using titanium studio-2.0.0GA on WindowsXP) Is added to titanium, but I am able to open the imilators too. But when I run my first mobile project, the following error is displayed in the console. Can anyone help me? Thanks in advance. [ERROR] Application Installer Unusual Process End Process Exhaust Price 1 [ERROR] Invalid number of parameter [ERROR] An exception occurred when creating an Android project: [ERROR] File name, Directory name Or volume label syntax is incorrect I [Error] Traceback (most recent call final): [Error] File "C: \ Documents and Settings \ shyam.sundar \ Application Data \ Titanium \ Mobile \ Del \ Win32 \ 2.1.0 .GA \ Android \ builder Py ", line 2206, & lt; Module & gt; [Error] s.build_and_run (incorrect, avd_id, debugger_host = debugger_host) [error] File "C: \ Documents and Settings \ shyam.sundar \ Application Data \ Titanium \ MobileDisk \ win32 \ 2.1.0.GA \ Android \ Builder. In the build_and_run ...

- Where Developers Learn, Share, & Build Careers

I have a problem with dealing with event dojox gfx Consider the following code:. & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" & gt; & Lt; Title & gt; Example & lt; / Title & gt; & Lt ;! - Load Dojo - & gt; & Lt; Script & gt; DojoConfig = {async: true, gfxRenderer: "svg, silverlight, vml" // svg becomes priority}; & Lt; / Script & gt; & Lt; Script src = "dojo / dojo.js" & gt; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Script & gt; ("Dojox / gfx", "dojox / gfx / movable", "dojo / domReady!", "Dojox / gfx / fx"], function (gfx, movable, dome, gfxfx) {var surface = Gfx.createSurface ("surface element", 400, 400); var rect = surface.createRect ({x: 30, y: 30, width: 100, height: 100}). Setfill ('blue'); rect.connect Other...

.net Directory Class have to close handle? -

एनरेटेडफ़ाइल या GetFiles या GetDirectories जैसे .NET निर्देशिका वर्ग विधियों का उपयोग करते समय मुझे लगता है कि वे एक अप्रबंधित हैंडल को पकड़ते हैं यह संभाल कैसे जारी है? क्या वे IDispose उपयोग कर रहे हैं? मेरा मतलब है कि संभाल रिसाव की संभावना है? नहीं, निर्देशिका नहीं करता है 'कोड' को लागू नहीं किया जा सकता है, और वास्तव में इसकी सभी विधियां स्थिर हैं। अप्रबंधित हैंडल को जारी करना प्रत्येक पद्धति के भीतर होना चाहिए - अगर आप वास्तव में अधिक देखना चाहते हैं, तो इसे परावर्तक की तरह देखें। वास्तव में, यदि आप ऐसा करते हैं, तो आपको एक आंतरिक फ़ाइल सिस्टीमअन्यमेरेबल इटरेटर & lt; T & gt; नामक वर्ग, जो IDisposable को कार्यान्वित करता है और जिसका डिस्पोज़ विधि संभालता है।

- Where Developers Learn, Share, & Build Careers

I need some help. I run a radio station which uses downloadable news feeds. At the moment I download it manually every hour. I like a script, preferably CMD, anything is not fancy to run like this, which will once download the file (using Windows Task Scheduler) and put it in a fixed folder . The download user / PW is not protected, it is free and thus copyrighted. Will some kind of spirit kick me? Thank you. Use a Windows version is available as part of the package. It is easy to use: wget http://www.example.com/myfile.mp3

android - java.lang.RuntimeException: Unable to start activity ComponentInfo: java.lang.NullPointerException -

My app gives me this error when I click on this app Private OnClickListener btn_Config_Onclick = New OnClickListener () {click on Public Zero (see V) {bundle bundle = new bundle (); Bundle.putString ("name", selected_name); Bundle.putString ("Image", selected_image); Intention = Intention = new intent (v.getContext (), configure .class); Intent.putExtras (bundle); . V.getContext () startActivity; }}; The class is here to configure: And the whole error here: I'm looking at everything I think is wrong Everything is well defined in the manifest, etc. The issue of fear of fresh eyes will be found. "post-text" itemprop = "text"> You have never started chk_RunVNC . It is null if you do not give it anything, then it's a NullPointerException in onCreate () : Chk_RunVNC.setOnCheckedChangeListener (chk_RunVNC_OnCheckedChange) throws;

- Where Developers Learn, Share, & Build Careers

question How to appear on each page is a widget (database call) Can I apply to the website? Context I have a traditional web application with sidebar. The sidebar includes data: Username, Details about the account (last connection and others) Demographic message users by profile And other data extracted from the database. So far the solution As it is shown in the official document, it is possible to present a template inside a template which is an interesting feature but it is not enough Since I need data from the database to be sung in my widget, I This will mean: Obtaining all the data needed for the sidebar anywhere From each controller, each view of that data Passing switch to Calls to an external template for each template at the end, with the data. What I would like to do as I am present in the Symfony2 framework I want to be able to call the controller directly. {% myController: MyActionMethod%} How can this kind of mechanism be implemen...

javascript - How to remove the web address from graph in HTML -

I am creating graph in HTML, I'm using API AMCharts, but the problem is that it is " Amchart "indicates text How can I remove that text so that it looks okay? & lt; Html & gt; & Lt; Top & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" & gt; & Lt; Title & gt; Chart & lt; / Title & gt; & Lt; Link rel = "stylesheet" href = "style.css" type = "text / css" & gt; & Lt; Script src = "amcharts.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Var chart; Var chartData = [Country: "United States", Visits: 400, Color: "#FFFF200"}, {Country: "China", Visits: 380, Color: "#FF 6600"}, {Country: Japan ", Visits: 360, Color:" #FF9E01 "}, {Country:" Germany ", Visits: 340, Colo...

database - Can string be used for hibernate generator id tag type -

I am using hibernate to map my program to the table, in which the varChar value as its primary key I was wondering if it is possible to type type = "string" in place of long or any other number, for example & Lt; / Id & gt;

android - ActionBar Divider Styling -

Image
मेरे पास दो प्रश्न हैं इन सवालों का ब्यौरा करने से पहले, मैं ActionBarSherlock का उपयोग कर रहा हूं। पहला सवाल यह होगा कि मुझे ActionItems मेरे एक्शनबार में प्रिंसस्क्रीन में, 3 डिवाइडर होते हैं, उदाहरण के लिए, पहला वाला वापस बटन और चेक इन के बीच है। मैंने नीचे की शैली का उपयोग करके मेरी एक्शनबार को कस्टमाइज़ किया है। हालांकि, small_detail_divider नामक ड्रॉएबल दिखाई नहीं देता। मैंने setBackgroundSplitDrawable () का उपयोग करके इस विभक्त प्रोग्राम को जोड़कर भी प्रयास किया। इससे या तो मदद नहीं मिली ActionItem s के बीच विभक्त जोड़ने के लिए मुझे क्या करना चाहिए? & style; name = "Theme.Example" parent = "Theme.Sherlock" & gt; & Lt; आइटम का नाम = "एक्शनबारस्टाइल" & gt; @ शैली / विजेट। स्टाइल.एक्शनबार & lt; / item & gt; & Lt; आइटम का नाम = "absForceOverflow" & gt; सत्य & lt; / item & gt; & Lt; / शैली & gt; & Lt; शैली नाम = "विजेट। स्टाइल.एक्शनबार" पेरेंट = "वि...

how to change gtk tab height in gtkrc file? -

I want to change the gtk tab (something like the terminal tab or the fiends tab). I know that TKNotebook can do this but I do not know which property's height is GTKNotebook :: height = xxx does not work, by the way, what's the GTK Firefox tab Can change height? I do not think GTK can change the look of Firefox, as Firefox has its UI / widget system Uses probably extensions or themes that allow it to be changed.

Python List: How to append objects while being used by a function? -

संभव डुप्लिकेट: मैं एक अजगर स्क्रिप्ट लिख रहा हूं जहां मैं एक विधि के भीतर से एक वर्ग के शरीर में बनाई गई सूची में वस्तुओं को जोड़ने का प्रयास कर रहा हूं। मेरा कोड अब तक यह है: वर्ग के कार्यकर्ता: myList = ['एक वस्तु', 'दूसरा आइटम'] def itter_List_Func (स्वयं, सूची_परम): सूची में आइटम के लिए-परम: more_items = item.split () self.myList [:] = [स्व। MyList + item_toems में आइटम के लिए) लेकिन किसी अजीब तरह की फैशन के लिए मैं कुछ 'में चलने वाली त्रुटि को संशोधित नहीं कर सकता' क्या मुझे इन-प्लेस परिवर्तन को छोड़ देना चाहिए और नए आइटम के साथ एक नई सूची ऑब्जेक्ट भी बनाने की कोशिश करनी चाहिए? या वह सूची- param या कुछ के लिए खोए गए संदर्भ के कारण अधिक समस्याएं पैदा करेगा? " मेरी लिस्ट में आइटम के लिए (item.split ()), []) यह सिर्फ लिखित तरीके से है, कि दुर्भाग्य से धीमी गति से हो जाता है यदि आपके पास बहुत सी मद हैं (क्योंकि sum जोड़ पर निर्भर करता है, और इसके अतिरिक्त list एस पायथन में)। स्पष्ट लूप का उपयोग करना: परिणाम = [] myList ...

- Where Developers Learn, Share, & Build Careers

I use Selenium WebDriver , I need clear cookies before I execute the test I I use the code from the 'Selenium' site. This code is: cookie cookie = new cookie ("key", "value"); Driver.manage () addCookie (cookie) Set up & lt; Cookie & gt; Allcookies = Driver. Management (). GetCookies (); (Cookie loaded cookies: all cookies) {System.out.println (string format ("% s ->% s", loaded cookiejetname), loaded cookie.get value ())); } Driver.manage (). DeleteAllCookies (); But I get a notification: - The cookie can not be sorted in a way, the set can not be sorted in a way java.util is of the package. is of org.openqa. Selenium package. You need to import those two sections to work your code: import java.util.Set; Import org.openqa.selenium.Cookie; In order to make pain less painful, every modern Java IDE has an auto-function for it: In eclipse, it "imports" Systematic "and sit under Ctrl + Shi...

openoffice.org - renaming a sheet openoffice calc using c# -

I have a program that reads in a number of differnt files and has created various information store in OpenOffice Calc. The following code I have used to create a spreadsheet sheet: public XSpreadsheet getSpreadsheet (integer nIndex, XComponent xComp) {// Sheet XSpreadsheets xSheets = ((XSpreadsheetDocument) xComp) .getSheets Archive (); XIndexAccess xSheetsIA = (XIndexAccess) xSheets; XSpreadsheet xSheet = (XSpreadsheet) xSheetsIA.getByIndex (nIndex) .Value; Return xSheet; } This method is called as: XSpreadsheet newSheet = getSpreadsheet (sheetIndex, xComp); I know how to enter data in the table etc. However I do not know how to rename sheet for an OpenOffice application. Looking through the internet I have been able to get information only for Excel application which do not work for OO. Do anyone have any idea on how this is possible? Thanks I have never programmed OpenOffice, so I think On 'docs you're using again, I found that it is the device tha...

ms access - When i import the date format in excel(dd/mm/yyyy) to msaccess it is showing non date value -

When I'm importing the excel file in the debt format (DD / MM / YY), this non-date value Showing this problem. Example: From 27/3/2012 to 33765 here is a non-date value of 33765 The reason for this is that all the dates in the world of MS Office are actually numerical values, as you did on 27/03/2012, equal to 40995. Create a new table while using the Import Wizard, Access reads it automatically because it is the correct numeric value and sets the column type as such. Fortunately it's easy to fix, open the design view of your desk, modify the column in question, in date format and save the table, now all of these values ​​can be presented correctly. . Alternatively, set an empty table with the column already set to date data type, and then import your table into the current table.

java - How to connect android to a remote database -

I'm working on an Android app that has the data to store in the database. This database also includes an iPhone app and a Can be accessed by web application. I would like to use MySQL for this because it is open source. I was looking for some information on this and apparently I need to make a web site that connects to a database is probably in PHP, but I have no experience with PHP. . How do I write this webservice and store it? Where can I create and store databases? ... Can anyone help me on this issue? tnx Using SQL Server to manage data on your desktop Make and create web services on the net at Visual Studio. Then connect to the web service in your application and get / receive data from DB Link on how to create web services in .NET (does not include implementation in Android): How to connect your service with Android:

Setting input focus after tab is clicked -

When a page contains more than one tab containing a search box, one of the tabs is always selected; Either the default tab is selected or the user has changed the tab. Example: The search box Do you know that in any case, the search input box in the selected tab should always have keyboard focus in order for users to start typing their keywords. When a separate tab is clicked, could I take the focus in the input box? I got to work on the first tab, but when I click on another tab, the focus is lost. I am using scripts:

jquery - Animate textarea height makes text shake? -

I animated a text field to increase the height and rows on a button click. However during the animation the text moves the text of the field up and down and once the animation is over, it is taken slightly up once, how can I stop it? This is my code: thanks :) function morespace () {var thetxt = document.getElementById (. 'And more') value; Var box = document.forms ["myForm"] ["comment"]; If (box. Rows == 3) {$ ("#memail"). Fadeaut (200); $ ('# Comment'). Chetan ({'height': '+ = 235'}, 400, "swing"); Box.rows = 17; Document.getElementById ('more'). InnerHTML = "less space?"; } And {$ ('# comment'). Chetan ({'height': '- = 235'}, 400, "swing"); $ ("# Emailme") fadein (800). Box.rows = 3; Document.getElementById ('more'). InnerHTML = "more space?"; }} & lt; A href = "javascript: morespace ();" Id = "more...

Python user-defined exceptions placement and catching -

I'm new to Python and I'm not sure what is the best place to put an exception defined by my user, and Where to catch them. For example, I have a program that starts the game, when the game stops, the exception defined by the user is picked (StopGame). After throwing this exception to the game, I should catch the exception from the game outside. However, the exception is specific to the game, so the definition of exception should be in the game module (or perhaps the game package?). Here is a simple layout of the program: Program Structure : __ main__.py game / __init__.py Game.py _ _main_ _ .py Import game def main (): g = game.Game () Try: g.start () except game. Close Gamm: Print '\ nby Bye!' If the game imports from __name__ == '__main__': main game / game.py This code works just like this, I do not know yet That is the way to go, I feel somewhat disappointed that I Need to import all the exceptions in the game setup / _ ...

php - PDO get data from database -

I recently started using the PDO, before I was just using mysql. Now I I am trying to get all the data from the database. / P> $ getUsers = $ DBH-> Prepare ("Choose from user command by ADC select"); $ GetUsers-> FetchAll (); If (count ($ get user) & gt; 0) {while ($ user = $ milluser-> fetch)) {echo $ user ['username']. "& Lt; br / & gt;"; }} And {error ('no users.'); } But this is not showing any users, only one blank page .. PDO method gives an array / result-set, which you need to assign to the variable, and then use / iterate through that variable: $ users = $ getUsers-> Fatch ALL (); Forex Currency ($ user $ user) {echo $ user ['username'] '& lt; Br / & gt; '; } (unavailable execute () ) Also, it seems that you are not calling that method, After that you prepare the statement before you actually get the data: $ getUsers = $ DBH - & gt; Ready ("Select * By Or...

c++ - Seg fault in copy constructor -

I'm working on an assignment in which we compile "and then the call constructor is called. Here's where: Image :: Image (Constant Image and ImageTop) {fileType = imageToCopy.fileType; Width = imageToCopy.width; height = imageToppyHigh; MaxColor = imageToCopy.maxColor; Image = new int * [height]; for (int i = 0; i & lt; height; i ++) {image [i] = new int [width]; for (int j = 0; j & lt ; Width; j ++) {image [i] [j] = imageToCopy.image [i] [ja];}}} It is said: image2 (image1); Why does this happen to some extent I am in loss, I do not know what is wrong because the code is similar to my Constructor, which works fine. The only difference is that I have image [i] [j] = imageToCopy Instead of [j]; image intestream> gt;> image [i] [j]; Thoughts? Thanks Edit: Manufacturer is below: Image :: image (const char * filename) {ifstream imageInputStream; ImageInputStream.open (file name); Image Intestream & gt; & Gt; File type; Image...

eclipse - UML to XML representation -

I am creating a class diagram using the Eclipse Modeling Tool - Papers, the representation classes, attributes, and generalization in XML relationships How can I export the UML diagram in XML format? how can I do this? According to the paperwork website: You will get an example: Diagram Interchange: / P> Export Exima: Because I do not use my own pirutus, about the tutorials I've browsed. There is no indication that how to actually export it is two to two starters You are ...

php - Cross-Class PDO Not Performing -

I am working to use all mysql_ * and mysqli connections PDO but I can not even get this The basics right I have two files: which makes the connection and gives returns and which uses the connection for any purpose which I consider to be necessary for some reasons However, I use to properly Can not get the connection to return. If I run any PDO function (Query, Ready, etc.), I get a server response of 500 with an error message. I know, however, that if I'm making a connection and I do all the queries in the same function, then everything is hooky-dori. I'm assuming that this is something simple, so maybe fresh eyes can help me. db_connect.php (for connection): class db_connect {function __construct () {} function __destruct () {} public Function Connect () {require_once 'db_info.php'; {$ Dbh = New PDO (try 'mysql: host =' .db_host. '; Dbname =' .db_DATABASE, DB_USER, DB_PASSWORD); $ Dbh- & gt; Set Attribution (PDO :: ATTRRAMOD, PDO :: ERRMO...

c# - Access Email Address from DetailView -

I am trying to access the email address in DetailsView , but getting this error textbox email address = this. Delivery view 1. Fund control ("email") as text box; String myemail = EmailAddress.Text; System.Net.Mail.MailMessage Mail Message = New System.Net.Mail.MailMessage (); MailMessage.From = New System.Net.Mail.MailAddress (System.Configuration.ConfigurationManager.AppSettings ["From Email Address"]); MailMessage.To.Add (New System.Net.Mail.MailAddress ("myemail")); // error Therefore, the code is stopping on this line and I have received the error: mail message. To add (new system .net.mail.mailAddress ("myemail")); I can not help but note that the "myemail" quote in your code Has: mail message. To add (new system.net.mail.mail adress ("myemail")); Try changing it to the following? mail message. To add (new system.netmail.mail adress myemail); referenced string myemail = EmailAddress.Text...

- Where Developers Learn, Share, & Build Careers

Good afternoon friend. I have been struggling with a very disappointing problem for the last few days and at the end of my rope, everybody in my team can take some time of that time and this is driving me crazy! Anyway, I have a controller with the delete action that is called when a user confirms the removal action from the bootstrap modal dialog is called and the redirect statement gets hit properly in the debug . It also shows the call called in Chrome Developer Tool! But, for some reason, the page never redirects. I have also tried to redirect Google with clearly any other code in action, I do not know what the deal is, I will post a relevant code; Tell me if there is any other code that you may need. CatalogController.groovy def delete = {Def catalog = Catalog.get (params.id) if (Catalog: == blank) {Redirect (Controller: 'Home', Action: 'Dashboard') println "Catalog is empty and can not be removed" return} if (request.method == "po...

- Where Developers Learn, Share, & Build Careers

I am trying to delete a custom field based on my value, but it dies in the trial. Current code: function testDelete2 () {var contact = ContactsApp.findContactGroup ('test'). GetContacts (); (Var i in contact) {var checkfield = contact [i] .getUserDefinedField ('testlabel') if (checkfield == 'testvalue') {var customfiled = contact [i] .getCustomFields (); CustomFields.deleteCustomField ('testlabel'); }}} I get this error: TypeError: Function deleteCustomField in object custom field is not found. Nobody has this meaning. Please help. I have read this page more and it is not of any help: I also tried to make this change which does not work: customFields.getLabel (' Testlabel ') .deleteCustomField (); Also, are Google Contacts sampling anywhere to deal with custom fields? It is impossible to add, remove, just get the value, I appreciate the help with this question, but I do not have to find a guide somewhere with simple samples to...

SQLite update fields with replacing words -

I'm not good at SQLite, so the question came: how can I update some columns from fields like / Media / soft / forward path to / media / username / soft / furtherpath ? The problem is that after updating Ubuntu 12.10 from 10.10, I can not work on my Shotwell library, because the new Ubuntu uses / media / username /...// to increase in any way . Thank you for your reply.

integrate paypal payments advanced with curl in php -

I need to integrate advanced paypal payments into a website. I have configured the necessary settings on manager.paypal.com . I am now using the safe http request curl. But curl_exec does not return anything here is my code. I have confirmed that all the variables have the correct values. $ ch = curl_init (); Curl_setopt ($ CH, CURLOPT_URL, $ pf_host_addr); Curl_setopt ($ CH, CURLOPT_RETURNTRANSFER, TRUE); Curl_setopt ($ ch, CURLOPT_POST, true); Curl_setopt ($ ch, CURLOPT_POSTFIELDS, $ postdata); $ Resp = curl_exec ($ ch); If (! $ Resp) {return " unsuccessful "; } I failed as output official document This page is quite useful

oop - Need to 'extend' various classes in ActionScript for one class -

I have a class which needs to use the graphics methods of the Sprite category, so I have said that using Sprite While doing the classroom, though I have my own custom class, the first class needs to expand to use the properties and methods written in it. Of course I can increase my custom class by Sprite and use both the first grade, but my custom class has nothing to do with Sprite and should not be extended. How do I use the properties and methods of my custom superclass and will I use the graphics properties of the Sprite class in a sub-class? My simple example: My custom class is renamed to MovingObject.as and has two variables and some methods included Moving object inherited by a subclass is intended to keep information about the speed and acceleration of your child's orbits. Sprite has been expanded to create a child class 'racecaper' using given given graphics methods, but allows me to move the object speed and accelerate the racecar to get it. Ho...

jeditable - jquery function not working if alert is commented out -

I am running a post function, after the function is over. I am running another function if the function does not contain any warning message, then it does not work second, it does not work ... The jquery function is: function applied () {// warning ('trying to apply editable class ...'); $ (". Edit_mystatus"). Editable ('/ cgi-bin / my_cgi_script.pl', {event: 'dblclick', // or dblclick data: "{'A': 'active', 'c': 'full', 'd': ' Deleted '} ", type:' select ', submit:' OK, Indicator: '& lt; img src =" http: //my_website/images/indicator.gif "& gt;', placeholder: ' Double click to edit ', Tooltip:' Double click to edit ... ', Style:' Display: Inline ', Name:' name ', id:' id ', callback: function (value, Settings) {/ Console.log (this); // console.log ('back value =' + value + 'now disable the full fo...

get selected node jtree java -

यहाँ मेरा JTree javax.swing.tree है .DefaultMutableTreeNode treeNode1 = नया javax.swing.tree.DefaultMutableTreeNode (".NET फ्रेमवर्क"); Javax.swing.tree.DefaultMutableTreeNode treeNode2 = नया javax.swing.tree.DefaultMutableTreeNode ("स्थापित करें"); Javax.swing.tree.DefaultMutableTreeNode treeNode3 = नया javax.swing.tree.DefaultMutableTreeNode ("V1"); treeNode2.add (treeNode3); पेडनोड 3 = नया javax.swing.tree.DefaultMutableTreeNode ("V2"); treeNode2.add (treeNode3); पेड नोड 3 = नया javax.swing.tree.DefaultMutableTreeNode ("वी 3"); treeNode2.add (treeNode3); पेड़ नोड 3 = नया javax.swing.tree.DefaultMutableTreeNode ("वी 4"); treeNode2.add (treeNode3); treeNode1.add (treeNode2); पेड नोड 2 = नया javax.swing.tree.DefaultMutableTreeNode ("मरम्मत"); पेड़ नोड 3 = नया javax.swing.tree.DefaultMutableTreeNode ("V1"); treeNode2.add (treeNode3); पेडनोड 3 = नया javax.swing.tree.DefaultMutableTreeNode ("V2...

- Where Developers Learn, Share, & Build Careers

I'm curious about what the most effective way to read the text file (do not worry about size, it's quite a lot Is java.io OK) and then put its contents in the display for a JTextArea . e.g. Can I completely consume any file in a string and then use it to display JTextArea.setText or I should read lines from line or byte arrays and give them stringbuffers Should be populated in and then setting the text area that You can use and pass it. Just do this: Java 7 - Attempt-processing block (file reader reader = new file reader ("myfile.txt ")) {TextArea.read (Reader, blank); } Java 6 - try-end block FileReader reader = null; Try {Reader = new FileReader ("myfile.txt"); TextArea.read (reader, tap); } Finally {if (reader! = Null) {reader.close (); }}

autohotkey - Clicking when part of window changes color -

I'm trying to create a program that will click on a certain location when some location color changes in the desktop application It goes from white to green words or else somewhere I can understand what commands the client sends to the program, when they click on a certain button and then loop the command until the button is available. . I know that it seems misleading and strange, but please tell me what is the best of programming language for any of these options. Apart from this, I would like to know how this program will be challenging and how to do it. Currently I'm using auto hotkey if I want to clarify anything, then tell me thank you in advance. Look into AutoHot's documentation. Keep in mind that pixels should be visible, and that X and Y are relative to the active window, until it changes. PixelGetColor, OutputWire, X, Y [, Alt | Slow | RGB] Then you can compare the color with the color you are looking for. Keep in mind that colors are in BGR form...