Posts

Showing posts from August, 2010

c# - Handle Database Transactions & Exceptions in TreeView with Multi-Tier MVVM -

पृष्ठभूमि: मेरे पास WPF TreeView के आस-पास एक कस्टम उपयोगकर्ता नियंत्रण है। मैं MVVM पैटर्न का उपयोग कर रहा हूं और TreeNode वर्ग और कई व्यूअर किए गए मॉडल जैसे LocationNode, LocationFolder, PersonNode, PersonFolder, CollectionNode, CollectionFolder आदि का आधार दृश्य मॉडल है। पेड़ को कैसे रखा जा सकता है इसका एक उदाहरण है: - संग्रह फ़ोल्डर -> संग्रह नोड -> स्थानफ़ोल्डर -> स्थाननोड -> स्थाननोड - जब मैं ड्रैग एंड ड्रॉप ऑपरेशंस करता हूं, तो प्रत्येक वर्ग व्यावसायिक तर्क को संभालता है, यानी अगर मैं ड्रॉप करता / करती हूं PersonNode पर एक CollectionNode , CollectionNode दृश्य मॉडल में तर्क है कि यह कैसे PersonNode को जोड़ने के लिए इसका बच्चा है PersonFolder । समस्या: सब कुछ बहुत अच्छा काम करता है, मैं पूरे स्थान पर खींच और ड्रॉप कर सकता हूं, और निहित कक्षाओं में कोड को अच्छी तरह से निहित किया गया है। यदि मुझे एक अतिरिक्त बूंद नियम जोड़ने की आवश्यकता है, तो मैं इसे उपयुक्त ड्रॉप लक्ष्य दृश्य मॉडल में जोड़ता हूं। समस्या तब होती है जब PersonNode को Per...

java - Eclipse - Setting .classpath file for existing project -

I have a Java project I'm working from another project of Eklips (this is a propono symphonic project I think). In my eclipse I created a new Java project and asked it to use the existing code. It seems that it has brought in all code. However, after loading the project, I get this error: Project 'My Project' is missing the required Java project: 'Weka 3-7' There is one with these materials in it. The slashpath file is: & lt ;? Xml version = "1.0" encoding = "UTF-8" & gt; & Lt; Classpath & gt; & Lt; Classpathentry kind = "src" path = "src" /> & Lt; Classpathentry kind = "con" path = "org.eclipse.jdt.launching.JRE_CONTAINER" /> & Lt; Classpathentry combineaccessrules = "false" type = "src" path = "/ wca-3-7" /> & Lt; Classpathentry kind = "Output" path = "bin" /> & Lt; / Classpath & gt; W...

C++ standard on export of Templates, can any one explain it? -

एक नामस्थान-स्कोप घोषणा या गैर इनलाइन फ़ंक्शन टेम्पलेट की परिभाषा, एक गैर-इनलाइन सदस्य फ़ंक्शन टेम्पलेट, क्लास टेम्प्लेट के एक गैर-इनलाइन सदस्य फ़ंक्शन या क्लास टेम्प्लेट का एक स्थिर डेटा सदस्य निर्यात कीवर्ड द्वारा पहले किया जा सकता है। यदि ऐसा टेम्पलेट उसी अनुवाद इकाई में परिभाषित किया गया है जिसमें इसे निर्यात के रूप में घोषित किया गया है, तो परिभाषा को निर्यात किया जाना माना जाता है। ऊपर दिए गए बयान में क्या मतलब है? कृपया प्रोग्राम के साथ किसी भी एक प्रदर्शनी को? इस जटिल अनुच्छेद का अर्थ है कि यदि आप इसे परिभाषित करने से पहले निर्यात किए जाने वाले एक templated वर्ग को घोषित करते हैं, और उसके बाद में। एक ही अनुवाद इकाई (प्रभावी रूप से, प्रीप्रोसिंग के बाद फ़ाइल) आप वास्तव में कक्षा को परिभाषित करते हैं, तो क्लास की परिभाषा निर्यात की जाती है। लेकिन अगर आप वर्ग को परिभाषित करते हैं और तब के पास "निर्यात" कीवर्ड के साथ एक प्रोटोटाइप है, ऐसा नहीं है। वहां, वह अंग्रेजी है, ठीक है?

delete files which are more than one month old using c# -

How to delete files older than one month using C # script I am using Frame 2.0. string path = @ "C: \ temp \"; // "Directory Info dirInfo = new DirectoryInfo (path); FileInfo [] fileInfos = dirInfo.GetFiles (); foreach (fileInfo fileInfos in fileInfos) {if (fileInfo.LastWriteTime & date; DateTime.Now.AddMonths (-1)) fileInfo Delete ();}

objective c - How can I use the facebook connect api for the iphone to to invite friends to an application or send a message -

In my iPhone application, I wanted to add a sign of Facebook and add a friend about the app. I know how to sign and get a list of friends, but I can not find a good way to invite a friend. So far, I can not see a way of inviting a friend (I do not think anyone can still send messages with the iPhone Facebook SDK) or in the inbox. Is there any one of these methods? If there is no better option than I have not thought? Thank you for any advice. Check out this tutorial. I used it to solve the Facebook header file. Once you've done the work, you should be in the space to easily send a message:

python - Geopy in Django: JSONDecodeError -

मैंने इस काम में ठीक ट्यूटोरियल का पालन किया है: g = geocoders.Google ( संसाधन = 'मानचित्र') मैं आउटपुट स्वरूप के रूप में json का उपयोग करना चाहता हूं क्योंकि मैं परिणाम जावास्क्रिप्ट में संभाल करना चाहता हूं। लेकिन हर बार मैं इसका उपयोग करता हूं: मुझे नीचे त्रुटि मिलती है: g = geocoders.Google (संसाधन = 'मानचित्र', output_format = 'json') पर्यावरण: अनुरोध विधि: अनुरोध यूआरएल: http: // localhost: 8000 / व्यापार / दृश्य / 13 / Django संस्करण: 1.2.1 अजगर संस्करण: 2.5.1 स्थापित अनुप्रयोग: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'पंजीकरण', 'pley.business', 'pley.review', 'Django .contrib.admin ',' django.contrib.webdesign '] इंस्टॉल मिडिलवेयर: (' django.middleware.common.CommonMiddleware ',' django.contrib.sessions.middleware.SessionMiddleware ',' django....

security - How to calculate the Modular Multiplicative inverse of a number in the context of RSA encryption? -

How to calculate the modular qualitative inverse of a number in relation to RSA encryption? Use, which is much faster than the direct modular exponentation in practice.

javascript - jQuery gallery doesn't work in IE.. but DOES after refresh? -

मैं इस तरह jquery का उपयोग कर रहा हूँ: $ (document) .ready (function ( ) {गैलेरिया। लोडथीम ('जेएस / गैलेरिया / थीम / क्लासिक / गैलेरिया.क्लासिक। जेएस'); $ ('# गैलेरिया')। गैलेरिया ({image_crop: true, / * transition: 'fade', * / data_config: फ़ंक्शन (आईएमजी) {रिटर्न {विवरण: $ (आईएमजी)। न्यूक्स्ट ('पी')। Html ()};}, विस्तार करें: फ़ंक्शन () {this.play (6000); // हर 4 सेकंड द्वितीय अग्रिम}} );}); यह क्रोम में अपेक्षित काम करता है, फ़ायरफ़ॉक्स में लोड पर एक छोटी झिलमिलाहट होती है। लेकिन आईई में इसके ऊपर की तरह कोड कभी नहीं कहा जाता है छवियों को बाहर रखा गया है क्योंकि वे होंगे यदि मैंने कभी ऊपर कोड नहीं कहा है हालांकि, बस ताज़ा और IE फिर सही काम शुरू कर देंगे। किसी भी विचारों को यह होने के कारण हो सकता है?

.net - Only Search for Text Within XAML Files using Visual Studio 2010 -

Many times I think I want to search my entire Visual Studio project for a text string, but I only want to No XAM files and code-back (.cc) files. Does anyone know if there is any way in Visual Studio to do this or if I can download the add-in, complete it? Thank you. Have you tried to use in the file ( Edit-> Search and Replace-> Search in Files (Ctrl + Shift + F)), and then specify a file type Find the option. To do just XAML files, *. Add Xaml .

mapreduce - hadoop on vmware, namenode not finding slaves -

I have installed 3 similar Linux (CentOS) servers on Vmware basically created and 2 full clones were created. I edit the hostnames of each server: server1, server2, server3 and they worked with SSH and enabled passwordless SSH added to each other host. Server1 # ssh server2 server2 # So it works. On the name end, started DFS formatted Dfs and the map-less What's going on? Any thoughts? Whenever I had this problem, I would have a namespace collision on the slave nodes. . To solve this, I removed everything in the temporary directory of each node, then reproduced nomination again. At this point, getting started with DFS usually moves.

javascript - Difference between onclick() and onClientClick()? -

If I use both onclick () and onClientClick () Can I be sure that the server side will be called only after the client-side function returns or vice versa? For example: & lt;% @ Page Language = "C #" AutoEventWireup = "true" codefile = "Default.aspx.cs" Inherits = " _Default "%" & Lt;% @ Import Namespace = "System.Xml"% & gt; & Lt ;; DOCTYPE HTML PUBLIC "- // W3C // DTT XHTML 1.0 Transcription // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt;% protected void save_n_display (object sender, eventArgse E) {// when valid () it will be correct ...}%> & Lt; Asp: button id = "button1" OnClientClick = "valid ()" onClick = "save_n _display" "text =" check "runat =" server "/> gt;

javascript - asp.net web service and extra qouatation in json result ! -

I want to call web service method in javascript. (Asp.net 3.5) I have detected the result with the firebug, here's the result: {"d": "[[\" TI \ ": \ "Www \"}, {\ "TI \": \ "www1 \"}] "} I think the correct result should look like this {"d": [{\ "TI \": \ "www \"}, before and after the bracket, What is quote ? // edited: In webserivce: public class test {public test (string t) {T1 = t;} public string T1 {set; get; }} [WebMethod] [ScriptMethod (ResponseFormat = ResponseFormat.Json, UseHttpGet = true, XmlSerializeString = false)) Public String Load (String E) {List & lt; Test & gt; Post = new list & lt; Test & gt; {New Test ("www"), New Test ("www1")}; Return JsonConvert.SerializeObject (post); } and in the JS file: var store = new Ext.data.JsonStore ({Proxy: New Ext.data.HttpProxy ({url: '/core/webservice/service.asmx/Load...

php - How to send link id's to a sql query using jQuery? -

I am trying to send the link ID in SQL query to filter the data. When I click on a link like the link below, I would like to send an ID of SQL query as the following link: Example: link (click) : & lt; P & gt; Fitler results & lt; / P & gt; & Lt; A href = "#" class = "category" id = "marketing" & gt; Marketing & lt; / A & gt; & Lt; A href = "#" class = "category" id = "automotive" & gt; Automotive & lt; / A & gt; (not clicked): & lt; A href = "#" class = "category" id = "sports" & gt; Game & lt; / A & gt; SQL query - I have worked hard on ID but I want to know when someone clicks on a link, in this case marketing and automotive, I want the ID to be automated By jquery form but it is not known how to do it properly: $ query1 = "SELECT * FROM WHERE from category IN ('marketing', 'automotive',)...

WPF/XAML: Is there a way to use x:static with a function? -

यह मेरा एक्सएएमएल है: itemsSource = "{x: स्टेटिक ऐप: हेल्थकेकसिस्टम कैरेक्टर लुकअप। सभी} क्या हेलसिंखेसिस्टम कंट्री लुकअप बनाने का एक तरीका है? संपत्ति के बजाय सभी फ़ंक्शन? नहीं, x: स्थिर केवल enum सदस्यों, संपत्तियों, और फ़ील्ड को संभाल सकता है। यदि आप किसी विधि कॉल के परिणाम के साथ बाँधना चाहते हैं तो आप उपयोग कर सकते हैं। ऑब्जेक्टडेटाप्रदाता एक्स: कुंजी = "डेटा" ऑब्जेक्ट टाइप = "एप: हेल्थकेकसिस्टमकार्टलुकअप" विधि नाम = "सभी" /> और & lt; / विंडो में कुछ ऐसा है: & lt; विंडो। संसाधन & gt; संसाधन & gt; & lt; लिस्ट बॉक्स आइटमस्सोर्स = "{बाध्यकारी स्रोत = {स्टेटिक संसाधन डेटा}}" />

I can get follower_count, but what about FOLLOWING count for twitter users? -

I can not find any explanation anywhere. The share of the value of a twitter account is as follows: follower ratio (at least this is correlated with high profile Twitter accounts) but I can not get the following count via API. Do anyone know why? Or if I am missing something, where can I find information about this? Thank you. You can use the list of friends for friends list, which you can follow Are there.

Does RTSP live streaming just not work on Android 1.5/1.6? -

My main Dev phone is running a Nexus 1 2.2. I am currently streaming live video on this device from a Wowza server for several weeks. I have now taken my application (without modification) and run it on Sony Ericsson Xperia 1.6. The video will not play, I get the following error: Media Player: Could not open file on client side, trying on server side ... MediaPlayer: info / warning (1/26) PlayerDriver: Command PLAYER_INIT Complete error or information with one PVMFFailure MediaPlayer: Error: (1, -1) VideoView: Error: 1, -1 I have been googling around but now The answer can not be clear. Does anyone know if live streaming just does not work on some versions of Android? We live streaming on RTSP 1.5, 1.6 and 2.1; So you should be able to work it out; But you have an encoding that only works on 2.2. What kind of streaming are you doing?

c# - When to use Singleton vs Transient vs Request using Ninject and MongoDB -

I do not believe that when I create a Singlesonscope () versus TransactionShop () vs. Config Scope (), my global cc file In. For example, I have a Mongo session (using the NORM and MVTstarter project) which is set to the singletascope but I have created a repository that uses this MongoSession object to call Mongo easy For example, I have a news repository that uses MongoSession to fetch my news items from the data, as an example, I have a call that is available for news items. Rdrshit does that DisplayOnHome is set on the right and has the latest by Kriasndet. Can such a repository singlescapes be possible or will RequestScope be more appropriate? How should I use it and why? In a web app in general, you want the state to make the scope of the request as much as possible . In case of only very low level adaptation, do you ever go to a case where appropriate for creating a single object (and then it is likely that you have such caching / shared logic in the second category...

c++ - MSVC 2010 templates compiler problem -

1 & gt; सी: \ प्रोग्राम फ़ाइलें (x 86) \ Microsoft Visual Studio 10.0 \ VC \ include \ list (1194 ): त्रुटि C2451: प्रकार 'शून्य' की सशर्त अभिव्यक्ति अवैध 1 & gt; प्रकार शून्य के भाव अन्य प्रकार 1 में परिवर्तित नहीं किए जा सकते हैं & gt; सी: \ प्रोग्राम फ़ाइलें (x 86) \ Microsoft Visual Studio 10.0 \ VC \ include \ list (1188): वर्ग टेम्पलेट सदस्य फ़ंक्शन 'शून्य std :: list & lt; ___'; :: remove (const__y_y); 1 & gt; 1 & gt; के साथ [1 & gt; _Ty = सर्वर लॉगिन रिस्पॉन्स कॉलबैक 1 & gt; ] 1 & gt; C: \ users \ shawn \ edu \ csclient \ ConfigurationServerClient.h (56): क्लास टेम्पलेट तत्काल 'std :: list & lt; _Ty & gt; संकलित किया जा रहा है 1 & gt; 1 & gt; के साथ [1 & gt; _Ty = सर्वर लॉगिन रिस्पॉन्स कॉलबैक 1 & gt; ] यहां कोड उत्पन्न होता है जो त्रुटि उत्पन्न करता है ... typedef std :: shared_ptr & lt; प्रोटोकॉल :: सर्वर लॉगिनरस्पोंस & gt; ServerLoginResponsePtr; Typedef std :: function & lt...

How to flush a pipe using bash -

I have a script that writes in the named pipes and the other reads from the pipe. Occasionally, while starting the script, I have seen that the content of the pipe exists from the previous run of the script. Is there any way to flush the pipes at the beginning of the script? I think DD is your friend: dd if = myfifo nonblock iflag == dev / null and in fact Does not even block on an empty FIFO.

is there a way to make the browser reload my javascript code after an ajax call -

How can I re-evaluate the browser all my javascript after calling an AJAX call? I am using the mootools structure and I would like to reload JavaScript by adding it to the header section of my HTML page I'm assuming that your AJAX call is returning Javascript as part of the call. I am not very familiar with mute, but most popular frameworks allow you to delete javascript from the string. Therefore, you can get the appropriate return value and "Aqual" from AJAX calls. If it is not what you are trying to do, then I do not know what problem you are trying to solve.

java - JMX/RMI issues when starting broker -

Hello friends StacksOverflower. While trying to start my brokers, I am getting a lot of mistake, with ActiveMQ it seems that, for some reason, there is an attempt to introduce something in the context of management which is already is registered. Stack written on top of the trace: [SpringOsgiExtenderThread-127] debug org.apache.activemq.broker.jmx.ManagementContext - Failed to create local registry java.rmi.server.ExportException: Interior error: first sun.rmi.transport.ObjectTable.putTarget (ObjectTable.java:169) in use on sun.rmi.transport.tcp.TCPTransport on sun.rmi.transport.Transport.exportObject (Transport.java:74) on ObjId .exportObject sun.rmi.transport.tcp.TCPEndpoint.exportObject (TCPTransport.java:229) (TCPEndpoint.java:393) sun.rmi.transport.LiveRef.exportObject (LiveRef.java:129) on sun.rmi . server.UnicastServerRef.exportObject (UnicastServerRef.java:190) sun.rmi.registry.RegistryImpl.setup (RegistryImpl.java:92) is sun.rmi.registry.RegistryImpl & the lt ;. I...

MySQL connection limit and PHP MySQL connections -

I'm having a frustrating problem In my web service, there is an email for php module in brief, once my user Sends an email to my dedicated email address, then my mail server captures email, pipe into PHP script running on my server This PHP script opens a MySQL connection and saves e-mail content to the database. So far it is so good once the MySQL connection limit exceeds /etc/my.cnf, then the problem starts up is set to 500. If 500 or more users send email at the same time, my MySQL is unable to manage the new connection. What do you suggest? Should I use a continuous MySQL connection or any other method like writing the received email content in a txt file and then save it to DB with a cron job? Thank you for your suggestions!

objective c - If I want to make a new instance of an object in a function whose pointer is passed by reference in it -

- (शून्य) createAString: (NSString **) str {* str = [NSString stringWithString: @ "हाय सब!"]; [* आरआर आटोरेलेज]; // ???? क्या यह सही है ? } मुझे रिहाई या ऑटोरेक्ल का उपयोग कैसे करना चाहिए? मैं पाठ्यक्रम के फ़ंक्शन के बाहर रिलीज नहीं करना चाहता हूं:) ... NSString * createStr; [मैन्युअल रूप से निर्मित: & amp; createStr]; NSLog (@ "% @", createStr); आप सही हैं कि आप आमतौर पर ऑटोरेलेज़ हुए (या पसंद ) जब आप इस प्रपत्र का उपयोग करते हैं तो बाहर पैरामीटर ऑब्जेक्ट्स फ़ंक्शन में आपका असाइनमेंट कथन जो एक स्ट्रिंग के लिए * str सेट करता है: * str = [NSString stringWithString: @ "foo"]; पहले से ही सही काम कर रहा है, क्योंकि यह तरीका NSString का एक उदाहरण देता है कि कॉल करने वाला स्वयं नहीं है। जैसे कि आप इस स्ट्रिंग ऑब्जेक्ट को बिना किसी और मेमोरी प्रबंधन के बदले अपने फ़ंक्शन से वापस कर सकते हैं, वैसे ही आप इसे पूरा कर सकते हैं जैसे कि आपने किया है। यह कहा, मैं आपके कोड में कुछ चीजों के बारे में चिंतित हूं जो आपको सुनिश्चित कर लेना चाहिए...

forms - jQuery Grab Value of Dynamic Textarea -

मान लीजिए कि आपके पास एक टेक्स्टरेआ ( id = "fred" ) है जो appends ( । Append () ) या ( .html () ) की जगह अन्य तत्व Textarea के सबमिट बटन को textarea में संशोधित पाठ ब्लॉन्ग भेजने के लिए प्रतिनिधि के माध्यम से कहा जाता है ... आप संशोधित टेक्स्टब्लबर का चयन कैसे करते हैं, जो मूल रूप से पहली प्रतिनिधि के जरिए टेट्टेरिया में डाला गया था? मेका culpa ... val () चाल करता है

How to prevent Installshield from removing files? -

I am developing a package using Installshield 2008 primer version and project type Installscript MSI Project. There is a problem facing the installation, I am setting some location to the following location "From this location" C: \ Program Files \ Company \ SystemFiles "I'm copying and using the Installscript file being set in the System32 folder, contains DLL and OCX files, copying to the System32 folder has gone. During installation the file installed due to this is being removed from System32 due to this other dependent application for which the same set of DLLs has stopped working. I have contacted the installer to copy the system 32 folder from the program file, in the options because we have a problem during the upgrade to avoid using inscriptions Even I have tried several types of actions such as file system copying to file system using FILE_ATTR_SYSTEM as file system. L'copies have tried to create, which sets the system attribute, b...

silverlight - StaticResource not found -

I have a situation where a solid coilbrush (defined in App.xaml) can not be resolved during runtime, When I use Brush Static Resource as a Style. The brush is found during design time (using Visual Studio 2010), so when I change the color of the brush, UIElement is updated with the new color along with the styles. An XAMLParseException is raised during the runtime, that the resource "color" is not found. Is this a normal behavior? I thought the solution of static resources starts up from UIElements to application resources and that application resource is a good place to define default values ​​(color, font etc.) for UIIlames. App.xaml & lt; Application xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns: x = "http://schemas.microsoft.com/winfx/2006/xaml" x: class = "silverlight application 1. App "& gt; & Lt; Application.Resources & gt; & Lt; ResourceDictionary & gt; & Lt; Solid colo...

Android: Within Android Device Chooser the same device shows up several times -

I am using Eclipse for the program for Android OS. I am using a real tool to test my application. To test my application, I click on run, then the Android device selector pops up after which I want to run the project, where I can select the device or emulator That I want to run the application (possibly like every programmer here). But occasionally when my app crashes due to some exception, then Android device handler gets some good behavior. Now every time I connect my device to a computer via USB and shows a new device in the Android delivery selector, but all (which are similar) are "unknown", so I no longer use my device to test can not do. The only way to solve this is to restart my computer. Is there no other way to solve the problem? Am I forgetting something? In your command line adb kill-server adb start- Server adb device / html>

asp.net - How to associate each user visiting a web app with a separate, temporary process allocated by a service? -

I want to develop a web application using ASP.NET running on IIS. If a user submits a MAXIMA input command, the back-end code will ask to create a new temporary process to execute an external temporary service from a custom Windows service. More precisely, the service of one window service to all users, but each user will be associated with a separate, temporary process that is running an external assembly. Window service on a fixed port is to hear a socket and list of asynchronous socket for communication. Each socket in the list will communicate with a separate, temporary process that runs an external assembly that works as a client socket. Note: I use a process instead of an application domain because the external assembly is not a batch file (managed assembly). My questions are: How to call windows service with the back codes How to affiliate each user is a separate, temporary process? If more and more users are working together, how to improve scalability? I...

c# - Which technology ocean to swim for a software engineer, Microsoft or OpenSource/Linux/Java? -

I'm a software engineering student from Turkey and I can do my best. A software engineer should have knowledge of any technology, C, C ++, Java, C #, Linux, Windows etc. But a person can not be a real professional in all of them. Those technologies continue to grow ocean ... For a software engineering student who first wants to work in Australia or Canada , if they 'What are the United States of America or Europe you Microsoft solutions such as C #. Trying to become a professional at Net, Silverlight, SQL Server etc. or a professional open source solution such as Linux, Java, MySQL etc ... For example in Turkey C # compared to Java Is used more widely. Corporate Microsoft likes solutions about the countries I have listed above ..? What would you suggest, what would be your opinion? In addition, please understand this question for a long time like 2-3 years, not just because now everything changes rapidly in software technology. (I wrote this because Microsoft ...

ruby - link_to_remote wants to render a template - how not to? rails -

If some conditions are met then I want to delete my work Ajax style. The thing I do with the help of link_to_remote is that link_to_remote wants to render a template and I do not want it. In my view (_task_sth.html.erb): In my controller (tasks_controller.rb): def delete_task task_pers = functionalization. Search (params [task_pers_id]) horse_task = task_pers.task task_pers if horse_task task_personalizations.empty? Horses_stascorestore and end The work is removed, but I get an error saying: Visual path / task / deleted_task template in the scene. ARB is unavailable. How can I not find it for a template? I tried to add: Delete method at the end of method =>: link_to_remote and to add my name, I also added the render: nothing => true. I also played a bit with the routes but still I get the same error. The question is how can I not look for a template because I do not want to present it to anything? Many thanks, no answer, stop Do you get an error when ...

ruby on rails - How to select only one element of associated objects in to_json / to_xml -

I have the following problem my app (a prototype of the API) should be able to respond to the ultimate (like language). I am already able to respond to the request by sending an entierly object (with related items) as a JSON but now I want to select related items by parameter. My code: object.to_json (include => gt; {: texts_in_diff_languages ​​= & gt; {#here I only given params [: language] Should be able to select)}} Do you have any ideas? Thanks! OK, I try to explain it in another way: I have three tables, texts and third languages ​​are called books and there is one language in a text. BooksC OntoRoller, I want to write a method which only gives a book to JSON: title, book: text: content of a specific language This language I want to get from a parameter (parameter [: language_id]). Do you understand it now? My code: (Selects a book and is included in all the texts of all languages) Render: Jason => To_json (: = => [: title],: include = & gt; {:...

java - Uploadify doesn't send filename -

"itemprop =" text "> I'm trying to use Uploadify for uploading multiple files, $ ('# Fileuploadinput'.) Uploadify ({uploader: '/js/uploadify/uploadify.swf', script: '/ uploadpath', cancelImg: '/js/uploadify/cancel.png', multi: true , FileDataName: 'uploadFile'}); And there is a spring controller with comons-fileupload 1.2.1 on server side. for (org.apache.commons.fileupload.FileItem item: items) {string name = item.getName (); // some other stuff} I need to get the original name of the uploaded file, and when using the standard input tag it is fine - name where it should be and Item.getName () returns it back as expected only, however, when Uploadify returns item.getName (), it returns zero. Is there a way to get the name? A wrapper class I am using spring MVC, they provide, org.springframework. Web.multipart.multipartfile You can use the method, getOriginalFilename () to get the file name. More info...

Create an Eclipse plugin with customizable key bindings -

I worked with customizable key bindings to customize an Eclipse plugin. I tried this with plugin.xml: & lt; Plugin & gt; & Lt; Extension point = "org.eclipse.ui.commands" & gt; & Lt; Command description = "do something" id = "com.myplugin.myCommand" name = "my order" & gt; & Lt; / Order & gt; & Lt; / Extension & gt; & Lt; Extension point = "org.eclipse.ui.bindings" & gt; & Lt; Key command Id = "com.myplugin.myCommand" contextId = "org.pythczdev.ui.editor.scope" scheme id = "org.eclipse.ui.default Accelerator Configuration" order = "Ctrl + Return" & gt; & Lt; / Key & gt; & Lt; / Extension & gt; & Lt; / Plugin & gt; The default binding Ctrl + Return works perfectly, but it does not appear in the preferences. What is missing it to appear in preferences, so that the user can customize the key binding? Try ...

c# - programmatically select next listbox item -

I am trying to program two buttons to mimic up / down arrow key behavior, which means that When I press the button up, it takes up an item in my list box and so on. I have written the following code: Private zero mainlistup (object sender, System.Windows.RoutedEventArgs e) {if (ListBox_Copy.SelectedIndex = -1 & amp; listBox_Copy.SelectedIndex & LT ; ListBox_Copy! .ems.Count & amp; amp; listBox_Copy.SelectedIndex = 1) {listBox_Copy.SelectedIndex = listBox_Copy.SelectedIndex - 1; }} Private Zero Mainlistdown (Object Sender, System.Windows.RoutedEventArgs e) {if (ListBox_Copy.SelectedIndex & lt; listBox_Copy.Items.Count & ListBox_Copy.SelectedIndex = -1) {listBox_Copy.SelectedIndex = listBox_Copy .SelectedIndex + 1; }} This works, however, the item has lost its selection when pressing the button ... the selection index is set correctly (other data-bound items, binded in the selected item But the list box item is no longer highlighted. How do I set selected it...

java - JSF: display h:selectManyCheckBox vertically in h:dataTable -

I have a face that displays a list of products in tablet format. In the last column of each row, a checkbox is used to mark the product to be used. So far, I've put a select Boulion checkbox in each line and the property has the property of "mark to remove", but I think it's ugly because there is some presentation material in my model bean. For anyway ah: select several checkboxes, which have its prefix: SelectItem delivers on each row of datatelles? Thanks This is a great suggestion. As an alternative, you can also force h: selectBooleanCheckbox component to the map & lt; Boolean & gt; Property where long represents the entity ID (or whatever identifier you can use to identify the line) and boolean are checked Represents the state. Example Public category bean {Private list> Unit & gt; Institutions; Private map & lt; Long, Boolean & gt; Check = new Hashmop & lt; Long, Boolean & gt; (); Public void submit () (...

reporting services - Unable to make Business Intelligence Projects. How do I resolve a "Configuration system failed to initialize" error message? -

My problem is that I "failed to start the configuration system." Every time I try to open or open a Business Intelligence Project at Business Intelligence Development Studio. I am on a fairly new installation of Windows Server 2008 R2 Enterprise, in which I previously installed SQL Server 2008 R2 Enterprise with Business Intelligence Development Studio) and then Visual Studio 2010 Professional in that sequence. I have tried to set up Visual Studio 2008 completely, but it seems that does not matter. The message appears from System.configuration.ConfigurationErrorsException . Too many Googling that I have pointed to the config files, but I do not know which configuration it will be related to. I have not created a project with a related config file, because I can not create a project at all, trying to do this will create a folder for the project and then will fail before doing anything. solution to copy the machine from .cong: \ Windows \ Microsoft.NET \ Framework...

Roll back changes made by mistake in Excel 2007 -

When using Microsoft Excel 2007, something strange happened and all the names changed after the nth line Gone ABCD and I accidentally saved the file. How can I get my old names back into ABCD? If you do not have a copy or back-up, it is possible to use the features of your operating system It is possible.

Database Design Question: Treating GUID's around the place -

यहाँ एक सरल उदाहरण है। UserDetails (UserID INT UserGUID UNIQUEIDENTIFIER नाम VARCHAR (50) युग आईएनटी) यूज़रराइटिंग (यूजरआईडी आईएनटी रेटिंग आईएनटी डेट डेटइटम) यूज़रवॉट (यूजरआईडी आईएनटी वोट आईएनटी डेटेटटाइम) युजरग्रीड केवल मुख्य टेबल में मौजूद है। इसमें आवेदन परत केवल GUID के आसपास पार्स किए जाते हैं, INTS कभी नहीं। यह प्रतिद्वंद्वियों को मेरी साइट पर कुछ प्रमुख नंबरों (जैसे उपयोगकर्ता गिनती) की अनुमान लगाने से रोकने के लिए है। तालिका के साथ संबंधित SPROCS में UserRatings और UserVotes, मुझे UserID को सेट करना होगा और यह UserGUID पर सेट करना होगा जो हर प्रक्रिया की शुरुआत में वापस पार्स हो रहा है। यह केवल उपयोगकर्ता तालिका के लिए नहीं बल्कि प्रत्येक अन्य ऑब्जेक्ट के लिए होता है जिसमें मुख्य टेबल और ब्रंचयुक्त टेबल होते हैं, इसलिए इन DECLARE / SET प्रकार के टन हैं क्या यह एक अच्छी डिजाइन है? उपयोगकर्तागत केवल मुख्य तालिका में मौजूद है एप्लिकेशन परत में केवल GUID के अंश हैं, कभी भी INTS नहीं। यह प्रतिद्वंद्वियों को मेरी साइट पर कुछ प्रमुख नंबरों (जैसे उपयोगकर्ता गिनत...

wpf - Databinding selectedindex + 1 -

I would like to bind a text box in which the text of the item given below the item is selected. Example: Item 1 - Text = Line Number One Object 2 - Text = Line Number Two - Item 3 - Text = Line Number Three I Select I am item 2 output textbox 1 - text = line number two (this is easily bound to the selected image) Text box - Text = line number I was thinking about the custom xpath of selected index + 1 but it does not appear to be working The first attempt failed - see below You need to implement a IValueConverter and it will be binding to Set to the converter attribute. Create a class that is derived from the IValueConverter , and in the Convert method, you type the value parameter to (because you will force textbox to list box and convertor to something meaningful.) Then ListBox 's selected index property. You want to return the listBox.Items [selectedIndex + 1] method. You can leave ConvertBack the method is unchanged. You...

internet explorer - CSS Compatibility on IE. Box shadows -

I am creating a website and I need some box style like this. Although, their speed has not been fixed for its dynamic content, I used to use the -webkit-border-image and -moz-image-border and completely Unfortunately, IE is bad bad guy and I want to display it properly. I thought that with box-shadow and -webkit-gradient and -moz-linear-gradient with CSS3 But IE does not work again I should know some CSS techniques so that I have a gradient box and shadow "post-text" itemprop = "text">

c# - Testing a method called many times in moq -

मेरे पास ऐसा इंटरफ़ेस है: इंटरफ़ेस IWriteFile {string FileName {get; set ;} शून्य ओपन (); शून्य लिखित डेटा (स्ट्रिंग डेटाटोवड़ाइट); शून्य बंद करें (); } मैं एक वर्ग का परीक्षण करना चाहता हूं जो एक फ़ाइल को पॉप्युलेट करने के लिए इस इंटरफ़ेस का उपयोग करेगा। यह कई बार WriteData को बुलाएगा और मैं सिर्फ अंतिम आउटपुट का परीक्षण करना चाहता हूं। क्या नकली वस्तु के लिए एक नया निजी क्षेत्र पेश करने का कोई तरीका है जो हर बार लिखे गए डाटाडाइज को जोड़ दिया जाता है? मैं वास्तव में यह देखना चाहता हूं कि फ़ाइल अंत में कैसा दिखाई देगी दिन का। क्या इस पर एक बेहतर दृष्टिकोण है? अतः, क्या आपको संख्याओं की संख्या बार कहा जाता है? int count = 0; सूची के & lt; स्ट्रिंग & gt; आइटम = नई सूची & lt; स्ट्रिंग & gt; (); Var मॉक = नया नकली & lt; IWriteFile & gt; (); Mock.Setup (m = & gt; m.WriteData (यह। किसी और;; स्ट्रिंग & gt; ()))। कॉलबैक (स्ट्रिंग डेटा) = & gt; {आइटम; जोड़ें (डेटा); count ++;});

android - Height of statusbar? -

Is there a way to get the position of the titlebar + titlebar? Testing the God Forum is the only question, but there is no solution (which I can get). I know that we can get it after the initial layout pass, but I mean it (my) activity. Thanks rectgle rectgle = new rect (); Window window = getWindow (); . Window.getDecorView () getWindowVisibleDisplayFrame (rectgle); Int statsbrown = rectgle.top; Int contentViewTop = window.findViewById (window .ID_ANDROID_CONTENT) .getTop (); Int titleBarHight = ContentViews - StatusEverything; Logs. I ( "*** Jorgesis ::", "Stetsbar height =" + Sthitibarhait + ", Shirshkbari height =" + Taitlbarhait); Get the height of the status bar on the onCreate () method of your activity, use this method: public int getStatusBarHeight () {int results = 0; Int resourceId = getResources (). GetIdentifier ("status_bar_height", "dimen", "android"); If (sourceId> gt; 0) {result = ge...

c# - Programmatically logging in to a website -

How to enter the program on a website? I just want to check that the username and the website provided is correct or not. Thank you. The easiest way to do this is to do something from .NET: Using (var browser = new IE ("http://mysite.com")) {browser.TextField (Find.ByName ("email")). TypeText ("my@email.com"); Browser.TextField (Find.ByName ("password")) TypeText ("password") .; . Click on Browser.Button (Find.ByName ("Login to")) (); If (Browser. Content text ("Welcome my@email.com!")) {// Success}} To do this with HTTP Webbate, you want: var req = (HttpWebRequest) WebRequest.Create (url); Req.method = "POST"; Req.ContentLength = postContent.Length; Req.ContentType = "application / x-www-form-urlencoded"; (Var Stream Water = New Streamer (using req.GetRequestStream ()) {streamWriter.Write (postContent); } (Var res = (HttpWebResponse) using req.GetResponse ()) {_status = res...

php - How can I enable use of math in my html web page -

I have a blog where people can post their comment My problem is that I want people to use latex syntax Those should be able to use mathematical formulas. I can not make any changes to the server I can only embed a script in my HTML page, please use to solve this problem. This is all client-side JavaScript, but you have to refer to JSMAT Library to use its functions Will happen.

osx - How to change transparency of X11 window under Mac OS X (Xquartz)? -

XChangeProperty () परमाणु नाम के साथ _NET_WM_WINDOW_OPACITY बदले BadRequest त्रुटि कोड ... _NET_WM_WINDOW_OPACITY कम्पोजिटिंग मैनेजमेंट के द्वारा काम करता है, अपारदर्शिता को लागू करता है जब यह विंडो को कंपोज़ेट करता है आपको ऐसा एक कंपोजिटिंग प्रबंधक चलाने की आवश्यकता होगी जो यह करता है (उसने कहा, भले ही आपके पास कोई भी मुख्यमंत्री नहीं है जो संपत्ति का उपयोग करने जा रहा है, आपको बैड रेक्वेस्ट नहीं मिलना चाहिए, बैडरूइवेट की संभावना है कि आप XChangeProperty कैसे कर रहे हैं, जैसे कि एक अवैध विंडो या परमाणु या प्रारूप) एक और चीज जो आप करने की कोशिश कर सकते हैं सिर्फ एआरजीबी दृश्य के साथ अपनी विंडो बनाते हैं और फिर अल्फा चैनल को विंडो में ही रूप में पेंट करते हैं। यह कैसे करें यह आप पर निर्भर करता है कि टूलकिट आप किसका उपयोग कर रहे हैं आदि। और यह केवल तभी संभव है यदि आपके एक्स सर्वर में एआरजीबी दृश्य है, मुझे नहीं पता कि मैक क्या करता है।

ASP.NET MVC Partial Model Binding from Stored Procedures -

Currently, I have a set of stored procedures that are asked to populate different fields on a page . I'm calling stored procedures from LINQ to SQL class, on which I left them, which works fine. However, it automatically generates (StoredProcedureName) name of the result class with whom I have to work. Can anyone take a stored procedure and bind the result into several sections? For example, I have a stored procedure that gets information about blog posts. I want to pair that data into a post class and a user class (for the author), but I'm not retrieving all the data from the stored procedure to fill an entire post object or user object (the stored procedure only returns the headline Is the name of the content and author). What is the best way to handle this scenario? I'm opening to change the stored procedure but I do not have to return that data. I'm not going to use to fully populate the object and I want to query from database to LINQ to SQL Can not use ...

Removing a word from a <p> only using css -

Due to the rights of mod on a site, I can only add CSS (no JS etc ...) Users have input text in a comment box, then saves it and then & lt; P & gt; displays any method via CSS what & lt; P & gt; Can search for a specific term in the tag and remove / censor it? Thanks There is no practical solution for this Select elements and hide them in CSS3, but it will not be cross-browser friendly, if possible) I'm afraid that you get a JSON / Server-based solution for a real solution Have to use. On the right side of things and for IE only, you should use the expression and display: any elements which contain some strings in their nodevelle It will not work for modern browsers.

assembly - Do different 68k simulators have different TRAP tasks? -

I am recently reviewing Motorola 68000 programming. Of course, when I did the course, I did just what was necessary to pass (and was a terrible professor) ... but now I'm really interested in stuff. However, seeing through my old textbook, he uses the following code: ORG $ 8000 HMSG DC. B 'hello!' DC. B ORG # 8100 START MOVEA.L # HMSG, A3 TRAP # 3 Trap # 9 and start It will not be compiled in it, but in the book when I changed this code, So it worked. ORG $ 1000 HSmg DC B 'Hello!', 0 start LEA HSMG, A1 move # 14, D. trap # 15 and start Is this the only difference between the compilers? Or am I missing something big here? I understand that implementing TRAP # 15 in the simulator, at which time the work is in the D0 register, but whether there are separate network functions for the simulator, or whether it is across 68000 processors Is the standard? Thanks This TRAP command calls only Has a routine that is pointed out in memory somewhere by ...

iis 7 - How to refresh #include files - they are caching on IIS7 / ASP.NET -

मेरे पास ASP.NET मास्टर पेज है जो #include फ़ाइल को निम्नानुसार संदर्भित करता है: & Lt;! - # include virtual = "/ include / scripts.inc" - & gt; मैंने फ़ाइल को संशोधित किया है / इसमें शामिल है / सेस्क्रिप्ट.inc लेकिन पृष्ठों में बदलाव दिखाई नहीं देते हैं। सर्वर को पुनरारंभ करना आईआईएस पुनः आरंभ करना वेब। कॉन्फ़िग को संशोधित करना (कोई प्रभाव नहीं है) बहुत ज्यादा कुछ भी जो ऐप डोमेन को पुनरारंभ करने का कारण बनता है कोई अन्य विकल्प? क्या कोई ऐसी सेटिंग है, जो आईआईएस कैश # फाइलों को कब तक सीमित करती है? सबसे पहले, जैसा कि आप शायद जानते हैं, आपको एएसपी.नेट के साथ #include निर्देश का उपयोग नहीं करना चाहिए। सही समाधान एक उपयोगकर्ता नियंत्रण या सर्वर नियंत्रण का उपयोग करना है। हालांकि, यदि आप चाहते हैं कि एक HTML और जावास्क्रिप्ट को एक पेज (यानी कोई सर्वर-साइड कोड) में गुच्छा करना है, तो आप प्रतिक्रिया का उपयोग कर सकते हैं। Writite: & lt;% @ पृष्ठ भाषा = "vb"% & gt; & LT; html & gt; & LT; बॉडी & gt; & Lt;% Res...

javascript - Programatically generate PNG from Raphael.JS image -

I am writing an app that allows users to generate images with Raphael. JS User input parameters Li> We Generate We generate a JS wrapper that calls above and calls. HTML on Container design, giving us SVG (which we send back somewhere) We execute JS wrapper SVG is sent to Image Magazine and a PNG pop out In step 4, I need some guidance. I can use IE; We have no guarantee that JS is ever executed in SVG Browser. In any case, we must be reliable for it to run the server-side so even if there are three possibilities with me: Install Firefox on the server and Firefox Run the result of (3) in This option is useless because installing FF means installing a bunch of X accessories on our servers means running FF runs a lot overhead, and I really do not want to kill it with tracking this process and killing it. Use Node.js + jsdom () The result here is that it is not clear how the support is being supported - the alleged site, jsdom.org, does not actually exist. ...

javascript - jQuery UI Dialog - change the content of an open dialog (Ajax) -

I've got some links, I dynamically open in a jQuery UI dialog in jQuery.load () I want to use . Once the dialog is open, I want the links to be loaded within the dialogue already opened. Then, the site loads, you click on a link, and it opens in a dialog. no problem. You can turn it off and open it as often as you want. Though it is open, if you click on a link with the loaded content, then it does not work. A GET request is made, but the resulting material is not loaded successfully in the dialogue. (Shows the request) The previous dialogue title and the dialog content has been erased but new content has not been shown, Nor is it inserted into the dome. (The source does not show the source anywhere.) The links look like this ... & lt ; A href = "http://www.example.com/index.php?action=something&amp;search=somethingelse#fragment" rel = "dialog" title = "title attribute" & gt; The click event is bound to ... $ (...

java - Resource usage in Google's MapActivity for Android -

Do anyone have to know whether Google's MapActivity will eat additional resources if no activity is used in Google's map view Does it? Because of this, I ask this because I would like to have the base activity class (which will increase map activity) for my activities in my application, but I do not want my resources to be eaten when user is in any activity "itemprop =" text "> Willing to be careful by doing the way - I'm not sure whether smart enough is not that network access, etc. If no map view is present, but Docs state Only one map activity per process is supported Multiple maps running simultaneously are likely to interfere in unexpected and unwanted methods What can you get the benefit of map-activity of your non-map based classes? This will definitely confuse the reader of your code.

html - How can I remove scrollbars from an iframe using jquery? -

I have a page on which I do not control the source. It has an iframe iframe has scrollbar and border I want to remove both of them. I tried to use Jquery like this: $ ('iframe'). Attr ('scrolling', 'no'); Whatever I did, it will affect all iframes attributes. Any thoughts? (IE8) & lt; Iframe scrolling = "no" frameborder = "0" & ​​gt;

c - Child Window with Limited Resizing -

I want to create a child window that takes all the place on the left side of the main window, but its minimum width is 128 pixels. Also want it to be shaped, but only on the right edge, and make sure the width stays at a minimum of 128. Make a hair window with these styles: WS_EX_STATICEDGE, WS_SIZEBOX | WS_CHILD | Handling WS_VISIBLE and WM_NCHITTEST messages, I can only resizable it on the right edge, but I can not do this, so the minimum width remains at 128. Can anyone tell me how to do this or if there is any other window class which takes care of all of this? You must handle messages that resize windows: WM_POSCHANGING , WM_SIZING , WM_SIZE and WM_POSCHANGED . The best user experience is to handle.

shared libraries - Determining version of zend framework installed on server -

Is there a way to install version of / jnd framework on the server included in the app? I am asking that this is the reason that I am on a shared host and would like to use a different version than the one provided by the host and I would like to make sure that the version I am supplying should be used. Is my website Thanks a lot! The file contains version information in Zend / Version.php . resonance Zend_Version :: VERSION;

gwt rpc - GWT .client and .server -

I will ask if what is in the .client file and what is the .server file for GWT? I have followed some tutorials which are asking me to paste this code into .server and .client file, but what is unsure of these files? Apart from this, it contains an XML file and CSS file. Do anyone know how they interact with each other? Can anyone explain? If this is the case, can we also control what happens in the cache in the client side and what request is sent to the server to retrieve the data? Javascript will be compiled by the code GWT compiler in the client package, which will be run in the browser. The bulk of these files are usually cached by default, but you can configure your server if you want to cache it differently. I suggest asking a new question for it, though it has its own subject. The server will run the code in the package as Java on your server, and the customer will respond to requests. To learn more about customer / server communication, I suggest and, in general,...

iphone - Is there a method somewhere supplied by Apple which will trigger when a UIWebView changes pages? -

I am trying to resize the webview when the website changes to see if it matches that one Is what I am looking for, what do I need to see the URL of UIWebview Or just change everything in If you implement the protocol in your view controller, (UIWebView *) webView should startLoadWithRequest: (NSURLRequest *) Request Navigation Type: (UIWebViewNavigationType) Navigation Type P> and get the URL as a string: NSString * urlString = request.URL.absoluteString; Update Make sure that you have set the property on UIWebView .

statusbar - Why iPad can't hide Status Bar from splash? -

Image
Greetings all! I am curious about what this can solve, I am working on a universal app, hides the status bar from the beginning of the special image animation on my iPod Touch and iPhone. However, until the splash image does not appear on the iPad, it hides it. This is in my app delegate: - (zero) Application Definition Launching: (UIApplication *) Application {[UIApplication ShareApp] setStatusBarHidden: Animated: No]; [Add window] View: Controller view; [Window-making and knowledgeable]; [[UIDwise Current Division] SetOrrentation: UINPreferenceOrrentationNandscapeArt]; } In my info.plist ... "The status bar is hidden in the beginning" is checked. Thanks Thank you. The easiest way to hide the status bar for the universal app You have to go to Info.plist; Right click to add a line and select initially hidden status bar. This ensures that the status bar will be hidden when you launch the app.

Android Number Picker Dialog -

Image
Do anyone have any dialog that will allow a user to choose a number within a certain range? It seems that this would be a very common requirement, but I can not get a common dialogue for this and I will not have to spend time making my own time. Any help? I know that more than two years have passed but the answer is still real and I get some good number pickers. Here's one of them

mingw32 - Error compiling C code using MinGW in Windows 7 -

मेकफाइल इस प्रकार है: .PHONY: सभी को साफ़ करें: backtrace.dll test.exe backtrace.dll: backtrace.c जीसीसी -O2 कमरा साझा -Wall -ओ $ @ $ ^ -lbfd -liberty -limagehlp --verbose test.exe: test.c जीसीसी जी -Wall -ओ $ @ $ ^ साफ: -del -f backtrace.dll test.exe स्रोत कोड backtrace.c एक पुस्तकालय है जो आपको सी में स्टैक ट्रेस प्राप्त करने की अनुमति देता है। विवरण Google कोड पर है: जब मैं कमांड का उपयोग करता हूं: mingw32-make मुझे त्रुटि संदेश मिलता है: जीसीसी -O2 कमरा साझा -Wall -ओ backtrace.dll backtrace.c -lbfd -liberty -limagehlp सी: /MinGW/lib/libbfd.a (libbfd.o): libbfd.c :( पाठ + 0x6ee) 锛 氬  鈥 榣 ibintl_dgettext 鈥 欐 湭 瀹 氫 箟 鐨 勫 紩 鐢 सी:। /MinGW/lib/libbfd.a (libbfd.o):। libbfd.c :( पाठ + 0x740) 锛氬  鈥 榣 ibintl_dgettext 鈥 欐 湭 瀹 氫 箟 鐨 勫 紩 鐢 सी: /MinGW/lib/libbfd.a (libbfd.o):। libbfd.c :( पाठ + 0x79b) 锛 氬  鈥 榣 ibintl_dgette xt 鈥 欐 湭 瀹 氫 箟 鐨 勫 紩 鐢 सी: /MinGW/lib/libbfd.a (libbfd.o):। libbfd.c :( पाठ + 0x7d0) 锛 氬  鈥 榣 ibintl_dgettext 鈥 欐 湭 瀹 氫 箟 鐨勫 紩 鐢 सी: /MinGW/lib/lib...

javascript - how can i add a function to json object which has __type attribute? -

I am sending an object generated in a class from the server as a result of a web service call. It is coming back with __type and it has other attributes from the server. I want to add some functions to this object so that my files can be easily called. How can I get this? Thank you ... OK if I tell you right then You can not add the function server to a function () back object, because you are not allowed to move the executable JavaScript code within the JSON object . So you have to add that method / property after the object your client has created your javascript object like success: function (data) {data.my_new_method = function () {// yay! }},

java - JAX-WS client without having to generate new proxies when switching between test/production -

I configure your JAX-WS client to switch between test / output without re-generating proxy classes I am trying to be with Wsimport. The service I am trying to consume in testing and production to use various WSDLs. For example, targetNamespace is different, as well as soap leaf. I have tried to use the springs jacksporpropoxy factory and have managed to pinpoint various WSDL on the basis of the deployment environment, but still I have produced, it is still tested by Webith Agency addresses Uses. I think the reason for this is that they are working hard in the service interface which was generated using wsimport while pointing to test-wsdl. Does anybody know that switching between wsdls is possible without the use of separate targetNamespace and action addresses, again generation proxy? You can override the property of an endpoint address: Provide service and proxy with generated service category HelloService Service = New HelloService (); HelloPort proxy = service.get...

maven 2 - How to avoid the dependencies of jar files to be included in the war build -

I have optimized pom.xml in maven to create a war file, for which I compile some class files I am on some jar files which I have included them as dependencies. The build was successful, but the end result puts me in trouble. Now I have class files which are involved in my war which I do not want. Can you help me get rid of jars with the help of the lib folder of war? Regards Gnash-85 You just have to change " provide Scope " "Liberty provided" is not included in the final war file for your reliance on Maven POM from " compiled " (by default) "(by default) Will be done. All options are listed.

.net - Replication/Synchronization Library for Occasionally Connected Systems -

Here's the case I have a net desktop application that stores data on local file system (using sqllite) . And there is a master database on a remote server that requires the desktop application to synchronize the data database in the master database, whenever there is a dial-up connection to a specified server or whenever there is an internet connection. Is there a simple library to synchronize / copy data from a master database / sometimes connected system using delu-up or internet connection? You may want to consider using a SQL Server Compact Edition database on the client side and Microsoft Uses the Sync Framework, which takes advantage of SQL Server 2008 (assuming the server also has SQL Server on the server) or you implement a custom sync provider in the sync framework.

Json in Javascript -

Trying to learn json due to work req ... I try to dynamically add and remove json objects I am doing ... can someone tell me why I have not received the message .... here is the code ... Thanks for the help! & lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Test & lt; / Title & gt; & Lt; Script language = "javascript" type = "text / javascript" & gt; Function addC () {var index = document.getElementById ('type'). SelectedIndex; Var type = document.getElementById ('type'). Option [index] .value; Var Name = document.getElementById ('inpName'). Values; Var date = document.getElementById ('inpDate'). value; ProcessJson (type, name, date); return false; } Function processus (type, name, date) {var count = document.getElementById ('counter'). Value * 1; Var current resholes = document.getElementById ('holder'). Values; Var newRecordType = "{\" name \ ": \" ...

asp.net mvc - Merge an Object that wen outside the datacontext -

I have the following question: It is easy to insert an oBject in the database with a form. Create a single object Link it to your field Post back to the controller, Create and datacontext datacentext. Insert Onbesmate (Object) Public Static Zero AddPage (string string, page page) {using (var db = new CardReaderDataContext ()) {page.Lang = lang; Page. URL = UrlHelper.CreateValidSeoUrl (PageName, "-"); Db.Pages.InsertOnSubmit (page); Db.SubmitChanges (); }} But if you want to update an object, then this is a daunting task. You do the same flow, You get the object, Link it to your form, Post it, but now! !! Because it has exited your datacontext, you have to reload the object from the datacontext, To move and save all the variables, this is a bit complicated explained, so I give an example To update an object that you have modified in one form: public static void Update (page page) {(var db = new CardReaderDataContext (using)) {Var _page =...

java - need help in webservice -

I am new to webservice, I used to eclipse for the consumption of a third party free webservice "" webservice " Successfully tested the following Java files StockQuoteSoap12Stub.java StockQuoteSoap.java / li> StockQuoteSoapStub.java StockQuoteSoapProxy.java Then I tried without assuming using the pivot and command prompt, all added to the D: \ axis-1_4 \ lib jar for square paths Managed execution java org.apache.axis.wsdl.WSDL2 Java http://www.webservicex.net/stockquote.asmx?WSDL now StockquoteSoap12Stub.java StockQuoteSoap.java StockQuoteSoapStub.java The file is missing StockQuoteSoapProxy.java I have tried my time but unable to get the stack OckQuoteSoapProxy.java file With this command line you will be able to generate all: wsdl2java -uri -p client.package -d Xmlbeans -s

asp.net mvc - MVC 2.0 Validation Summary groups -

I have 3 portals on the scene with a submit button (a form) to be the verification summary for each of this portal What should APPN.N? Are there any assumptions for assumptions? I was thinking that if I put HTML on every portal, then it will only validate the input for this portal, but it does not have all the help pages for all the assumptions for all the assumptions and as a result I have three places on the page. The same verification errors appear as ASP.N. There is no way to validate assumptions like validation in the form of Validation There is no facility for discriminating between different partial ideas in the micro-methods. A solution is to create your own extensions that accept a filter parameter and automatically add the model extension to the name, which you can pass in your extension.

How to display the site name and site list,library available in the site collection using sharepoint client object model -

How to display the site name and site list, available in the site collection, by using the SharePoint client object model on SharePoint 2010 Check out this video: