Posts

Showing posts from February, 2012

wpf - data binding on properties confusion -

I have a WPF tabstime whose data reference is set to my object 'Product' 'Get my data from the object I have a list view, whose item source property is set in a list in my object' Product.DetailsList 'list view column' Product. Distinct list is bound to object. Up until everything works fine, now I need to bind some columns in my list view to the properties of my datacentext object ie ' Product 'Can anyone tell me how can I get it? I think it is not entirely clear how the hierarchy is in the middle of your control, datacontext Works like this: Access to their children from top level control is being achieved. In this case, if the WPF TabItem is the parental control of ListView, then ListView will have the same DataContext as TabItem. Besides, by thinking that I can get it right, you can do this: Where the interesting part is the relative source set on FindAncestor and since you know that DataContext is set on the product object, you c

c# - bitmap compression -

I am trying to send a bitmap screenshot over the network, so I need to compress it before sending it, So if someone has a library or method just tell me, thanx than a lot When you have an image In the stream, you is to select a format, almost all the bitmap formats (BMP, GIF, JPG, PNG) 1 or more. HE Government use of compression. So just select a suitable format, and make sure the sender and the receiver agree on it.

debugging - AbsoluteTime with numeric argument behaves strangely -

यह अजीब है: दिनांक लिस्ट @ निरपेक्ष समय [5 9 6523] रिटर्न {2078, 7, 2, 2, 42, 9.7849} लेकिन दिनांकसूची @ AbsoluteTime [596524] रिटर्न {1 942, 5, 26, 20, 28, 39.5596} सवाल: क्या चल रहा है? ध्यान दें कि एक संख्यात्मक तर्क के साथ AbsoluteTime को undocumented है। (मुझे लगता है कि मुझे अब पता है कि यह क्या कर रहा है लेकिन यह समझ गया कि यह भविष्य के संदर्भ के लिए एक StackOverflow प्रश्न के रूप में उपयोगी है; और अगर कोई कारण है उस मैजिक 596523 नंबर के लिए।) पीएस: मैथमैटिका में यूनिक्स के समय में परिवर्तित होने के लिए इन यूटिलिटी फ़ंक्शन लिखते समय मुझे इसका सामना करना पड़ा: (* यूनिक्स समय का प्रयोग ( एक पूर्णांक) के बजाय गणितिका के AbsoluteTime ... *) टीएम [x ___]: = AbsoluteTime [x] (* टीएम AbsoluteTime के लिए एक उपनाम है। *) Uepoch = tm [[1970}, टाइम ज़ोन-> 0]; (* Unixtm टीएम के अनुरूप काम करता है। *) Unixtm [x ___]: = गोल [टीएम [x] -यूपोक] (* टीएम और यूनिक्स के बीच यूनीक्सम कनवर्ट करें) * यूनीक्स्टएम [x_? NumericQ]: = गोल [x- Uepoch] (* एमएमए युग का समय

virtual memory - Linux: page faults and network filesystems -

If a Linux system stays outside of physical memory, should it disable the executable code pages Leaves it? I think the answer is yes, because there is no reason to keep them in swap, so if necessary, they are released and loaded again (as far as I know, that is what is freeBSD is). If the above is true for Linux, I have a question, how does it govern the executable executable with network file system (for example NFS)? Does it go to an executable pages on the page and if there is any page fault? If a Linux system runs outside of physical memory, does it disable passive code pages Leaves it? I think the answer is yes, because there is no reason to keep them in swap, so if necessary, they are released and loaded again (as far as I know, that is what is freeBSD is). Yes it does. If the above is true for Linux, I have a question, how does it govern the executable executable with network file system (for example NFS)? Is there any page fault? The NFS client caches cont

vb.net: Replace function with double quotes in From part -

संभव डुप्लिकेट: Vb.net में से प्रतिस्थापित को इसके मूल्य में दोहरे उद्धरण चिह्नों का इस्तेमाल करने पर फ़ंक्शन का उपयोग कैसे किया जा सकता है? मंद रूप में स्ट्रिंग = स्ट्रिंग। बदलें ("कुछ स्ट्रिंग", "कुछ" "स्ट्रिंग्स") >

wpf - Create popup "toaster" notifications in Windows with .NET -

I am using .NET and creating a desktop app / service that is notified in the corner of my desktop Will display, when some events are triggered I do not want to use a regular message box B / C which would be very intrusive, I want to slide to see the information and then want to fade after a few seconds. I'm thinking of something that will work out like Outlook alerts when a new message arrives. The question is: Should I use WPF for this? I have not done anything with WPF, but try it to appreciate what that end means the best it is a way to meet with regular NET libraries? WPF makes it absolutely trivial: it will take practically ten minutes or less these steps Raise: Create a window, set AllowTransparency = "true" and add a grid to it A ScaleTransform with the origin of 0 of the grid Set RenderTransform, 1 Gray that ScaleX from 0 to 1 then 1 to 0 Window.Top and Window.Left calculation in the creator animate animating opacity for place But one anne Registra

sdk - UIEvent for iPhone locking & unlocking? -

I am creating an iPhone app in which I want time user activity. However, while calculating the time the iPhone was locked (or when the user received a phone call) I did not want to calculate that time what is the best way to do it? Is there a UIEvent on which my app can get the iPhone lock or unlock (and can work on)? find methods applications: and applicationDidBecomeActive: .

CLLocationManager Delegate changes in iPhone OS 4.0 -

I have run my app using the iPhone OS 4.0. But when I'm running my app, the CLLocationManager representative is not being called. Location Manager: (CLLocationManager *) Manager updated the location: (CLLocation *) Location transfer: (CLLocation *) Old location { } I can probably help, as I successfully on iOS4 on the 3GL device Working from CLLocationManager, but I need more information. 1) Did you previously allocated CLLocationManager and called startUpdatingLocation ? Please include that code, we can help specifically, where / are you setting a representative? Also, make sure that someone maintains your representative class so that you can receive calls. CLLocationManager will not keep the rep. 2) Are you testing on any device or simulator? If you are testing on the device, which device?

MySQL query problem on group by and max -

My table structure is (id, cluster, qid, priority). I am trying to explain how I can display the maximum value for each cluster. Say cluster 1's priorities are 100, 102, 105. I want to display records containing 105. help please. This is an article that describes how to select the row with the maximum value for each group .

wpf - Binding PropertyName of CollectionViewSource SortDescription in Xaml -

यह मेरा xaml है जो collectionviewsource सॉर्ट प्रॉपर्टी नाम को बताता है। & lt; CollectionViewSource स्रोत = "{बाध्यकारी संपर्क}" x: कुंजी = "संपर्ककॉल्क्शन" फ़िल्टर = "संग्रहदृश्यससोर्स_फ़िल्टर" & gt; & LT; CollectionViewSource.SortDescriptions & gt; & Lt; scm: क्रमबद्ध विवरणलेखन नाम = "प्रदर्शन नाम" / & gt; & LT; /CollectionViewSource.SortDescriptions> & Lt; / CollectionViewSource & gt; ऊपर xaml ठीक काम करता है लेकिन मेरे पास समस्या यह है कि मुझे पता नहीं है कि SortDescript PropertyName के लिए एक वैरिएबल वैल्यू कैसे देना है। मेरे पास व्यू मॉडेल में एक संपत्ति है जो बताती है कि किस संपत्ति को क्रमबद्ध करना है लेकिन मैं इस प्रॉपर्टी को SortDescription के PropertyName फ़ील्ड में बाँध नहीं कर पा रहा हूं। क्या कोई तरीका है? XAML: आप कोड के पीछे सॉर्ट विवरण सेट कर सकते हैं। Window.Resources & gt;> & lt पूर्व; & Lt; संग्रह दृश्य स्रोत स्रोत = "{बाध्यकारी लोग}" x: कुं

Easily Zoom an Image in Silverlight 3 with slider control -

Simple question, SilverLight 3 application (no toolkit) is not there. I want to use an image and a slider to fit the image on the screen, and then the slider has to zoom in and out the image, when its value changes I do not use anything else Wish, like deep zoom. How can this be done? immediately, thanks, XML Below code: & lt; ScrollViewer x: Name = "Scroll" HorizontalScrollBarVisibility = "Auto" VerticalScrollBarVisibility = "Auto" HorizontalAlignment = "Muscles" VerticalAlignment = "Muscles" & gt; & Lieutenant; Layout: Layout Transformer x: name = "layout" background = "{x: tap}" & gt; & Lt; Layout: LayoutTransformer.LayoutTransform & gt; & Lt; ScaleTransform x: name = "content scale" ScaleX = "1.0" ScaleY = "1.0" /> & Lt; / Layout: LayoutTransformer.LayoutTransform & gt; & Lt; Image x: name = "img" source = "../

php - mod_rewrite: no ? and # in REQUEST_URI -

What am I trying to do: format is the "beautiful url", which is a PHP script (index. Php) by looking at the REQUEST_URI server variable. In my example, there will be REQUEST_URI '/ one / two / three' (BTW. Is this a good idea in general?) I use Apache's mod_uite to get it I am here. Here is the rewrite that I use in my .htaccess: RewriteRule ^ /? ([A-zA-Z /] +) /? $ /index.php [NC, L] This really works well so far; It makes every REQUEST_URI forward in which A-Z, A-Z or '/' to / indix.fp, where it is processed. Only fault: '?' (Question mark) and '#' (hash keys) can still be allowed in REQUEST_URI, maybe even more characters that I still like to search for. To restrict them through .htaccess and an adequate additional thanks piece identifier, e.g. # Some-anchors are controlled by the browser, not the server. Javascript will need to redirect it and delete it, although I'm not sure why you want to do this. [Critici

foxpro - Error in ADS OleDB when inserting data into VFP Database? -

I need some help with Visual FoxPro ADS OleDB provider. I am trying to include data from a 64-bit .net-application into a FoxPro database that will store data in 130'000 records, 139 fields and 11 indexes Are there. Every time I run my sample app, I get an error that indicates that indexes get corrupted only after 3 or 4 recorded records. If I use a small table to insert some sample data then infected indexes. Does anyone know this problem and have found a way to solve it? Thank you! VPP does not support 64-bit --- PERIOD ... however, direct VFP OleDb Provider Why not use it I have used it for years and in fact have not encountered any problems with all types of queries, convergent, updates, deleted and even execution () calls. Explanation ... Have you tried to use the ODDB provider of VFP instead of ADS? I'm sure that it still has derivative objects like the same interface objects ... Object Linking and Embedding General Interface ---------------- -----

php - Salting example in Zend Framework -

I'm very new to the Zend Framework and I'm looking to create an application with very tight password security. I am trying to follow the User Guide in relation to Password Salting, but there is no luck yet. I have set up my database and table adapter (as mentioned in the documentation on the Zend Framework site, but this does not seem to end the example (or I am not following it adequately!) I started with it Is: $ authAdapter = New Zend_Auth_Adapter_DbTable ($ dbAdapter, 'users',' username ',' password ',' MD5 (CONCAT ('.' 'Zend_Registry :: get (' staticSalt ').' ',?, Password_salt)) "; But from here, what did password do with salt I just need an example and I will stay away! Does anyone have an example or tell me right?

iphone - SplitView app with master and detail view visible in both orientations -

I have the idea of ​​both Master and Extensions that appear in landscape and portrait mode. How the Setting app is implemented like. I have not received any samples for this. Appreciate your help. Matt has done amazing work Source at GitHub is available

asp.net - remember me in login form -

I have a "login" control that I want a "remember" option. How can I complete this ? I recommend reading ASP.NET login controls. Read the following, and you will need to create the information you need: < / Div>

sql server - Creating a database instance in C# -

Is it possible to create a SQL database instance with the C # code? For example, to create WONEA \ SQLEXPRESS, but another SQL instance such as WONEA \ SQLEXPRESSTEST, there is no problem adding a database for an existing SQL instance, I'm a little stumped. help! The short answer is that you can not use this # C # code. SQL Server examples are essentially the installation of SQL Server - To create a new SQL Server instance that you need to run the SQL Server installer, and ask to install it (which you technically do C # from the code, but I did not collect those, the answers were looking for you)

display an image stored in the database with Java -

I have a problem when I want to display the image stored in the database in Java with OAL. If your image data is stored in your database in the form of some blob, then you might use it And it can be used by byte [] imageData constructor: ImageIcon (byte [] imageData) An image icon creates an array of bytes which was read from an image file, in which a supported image format, such as GIF, JPEG, or PNG (as of 1.3)

sqlalchemy - How can I "override" deepcopy in Python? -

I want to override __Deepcopy __ for a given SQLAlchemy-mapped class, such as It ignores anybody on the SQLA features of Godkopia, everything else that is part of the class. I am not particularly aware of overriding the underlying objects of any Python, but I have some ideas that I want. / P> Creates a very simple class mapped by the SQLA user class user (object): def __init __ (auto, user_id = none, name = none): self.user_id = user_id self.name = name I have used the dir () to look before and after mapping are SQL-specific attributes and can be sent to _sa_class_manager and _sa_instance_state Got it. questions provided they are only those that I will ignore it when defining ___________ ? Does SQLs inject in mapped objects? (I did this in the last question (as did a few days after selecting the answer to the main question), but I think that I It is that as an additional logic, you can send Dipakopi with memorandum Need to define around

c++ - Is it possible to connect slots of a model object to the GUI in QT4 -Designer? -

So I try to create a model-view window using QTDesigner and C ++. For this reason, created a QOBject derived class as my model, it provides slots and signals such as: setFileName (QString) or filename (custom). I found the signal drag and drop down in QTDesigner and found it quite like VA-Smalltalk-a while later I was wondering if I could add it to my model too I am So is it possible to present my model object in window / GUI in any way and let the model connect the QTDesigner signal and slot in the GUI to the object. To summarize: Write to me: connect (model, signal (filename (topstrings)), UI-> label FN, slot (set text ))) Connect (ui-textEdit2, Signal (Text Chenned (Caststring)), Model, Slot (setFileName Joppa said, if you want to do it in the designer, then you need to know the designer about your component, which is probably only worthwhile Gar is something that you will often use again IMHO is great for designing prototype or early UI design, but it is not go

conditional - What is this syntax called Bool bool = object.method() > 0 in Java -

मैंने अभी अपने कोड के कोड में यह कोड देखा है। bool bool = विधि () & gt; 0; या स्ट्रिंग नाम = "टोनी"; बूलीयन नामआइएसटीनी = नाम == "टोनी"; इसका परिणाम nameIsTony हो रहा है true हो जाएगा। तो क्या आप एक इनलाइन कंडीशनल स्टेटमेंट प्राप्त कर सकते हैं? < / P> इसे क्या कहा जाता है? नाम == "टोनी" / कोड> (या बजाय name.equals ("टोनी") जैसा कि होना चाहिए) एक बूलियन अभिव्यक्ति है, इसलिए मैं बूलियन अभिव्यक्ति अनुमान लगा रहा हूं कि आप जो खोज रहे हैं उसका सबसे निकटतम शब्द है। यह एक बयान के बजाय एक अभिव्यक्ति है - यह कुछ करने के बजाय, कुछ का मूल्यांकन करता है और यह वास्तव में सशर्त नहीं है, क्योंकि यह हमेशा बूलियन मान का मूल्यांकन करता है - इसके व्यवहार में सशर्त कुछ नहीं है, सिर्फ इसका परिणाम है इसलिए मैं "बूलियन अभिव्यक्ति" के लिए जाना था "इनलाइन" वास्तव में आवश्यक नहीं है।

encryption - What algorithm should I use for encrypting and embedding a password for an application? -

Which algorithm should I use to embed a password for an encryption and an encryption? This is not explicitly bullet proof but should be sufficient to fail anyone scanning the database with hex editor, or to detect code by scanning for encrypted password. Use difficulties to use, or use the debugger to run through decryption code. Object Pascal would be nice. Major Editing I think I did not understand myself adequately, password should be decrypted back to its original form and applied Will be done. This application uses the local SQL database and the local webserver, and the password is fixed and can not be changed by the end users. It is to ensure that changes will be made only within the app. / vfclists If you want an easy solution, just press Paste with good hashing algorithms such as MD5 and store only hash inside your app. Then whenever the user joins the password, you will calculate the password hash and check that it is equal to someone stored. Of course

SQL server 2005 remote connection problem -

I have installed SQL Server 2005 Express on two computers. I installed SQL Server Management Studio Express on both computers. I used to manage every Studio Management Visited the studio and connected to SQL Server using Windows authentication (connection example of a computer: "A-63A4D4D7E7834 \ SQLEXPRESS"). I have created a database called "test1" and created some tables with saved data. I did all this on this site: ", except that I have completely disabled the firewall. I-63A9D4D7 "SQL Server Management Studio Express" has been started on computer A-63A9D4D7E7834, connected to the E-7834: "ALL-E425BE6C41D \ SQLEXPRESS" Naming: "Authentication:" Windows Authentication "and" Connect '. The following error: ALL-E425BE6C41D \ SQLEXPRESS can not be connected. Additional information Kari: User login for 'ALL-E425BE6C41D \ Guest failed.' (Microsoft SQL Server, Error: 18456) For help, click: < / B

winforms - i am using .net window application . i need to make my form UI better. how to do that? -

I am using the .NET window application. I need to improve my form UI Is there a predefined shin available? ... There is a new suggestion in this that I give any good suggestions ... You can use.

Bigger map annotation callouts in iPad -

In the iPad photo application, under "Location", you can see a map of where photos are taken. When the user taps an annotation, a callout is showing a stack of photos for that place. How can we get the same effect (big annotation callout with custom notification) in our own iPad applications? Do we have to create a custom Mk annotation view class or do it - I do not think you have to do your Annotation View Rolls Default MKAnnotationView (and MKPinAnnotationView ) do not give you many rooms for callouts customization.

sql server - Conditional Common Table Expression (CTE) in SQL -

After I am trying to select a product category tree hierarchy in SQL. My code looks as follows. When I'm trying to get a dynamic sort order using the IF or Case on the sort order parameter. The row commented on @SortOrder 'sortorder' should be active. I have tried to add a statement around it, but I have failed ... < P> Can you help? create process [dbo]. [ProductCategory_SelectHierarchy] @SortOrder varchar (30) Set Naknet current; As categories (number, ParentId, SortOrder, RowOrder) (select parentCategory.Id, parentCategory.ParentId, parentCategory.SortOrder, --cast (REPLACE (STR (parentCategory.SortOrder, 8), ',' 0 ') varchar (2)) as the varchar (4) cast (DatePart (year, parentCategory.DateCreated)) + Cast 'RowOrder' cast (DatePart (MONTH, parentCategory.DateCreated) as varchar (30) + Cast (DatePart (DD, parentCategoryDateCreated) varchar (2)) + Cast (DatePart (hour, parentCategory.DateCreated) varchar (2)) varchar (50)) ProductCateg

java - Explanation of JAXB error: Invalid byte 1 of 1-byte UTF-8 sequence -

We are parsing an XML document using JAXB and get this error: [org .xml.sax.SAXParseException :. Invalid byte of 1-byte UTF-8 sequence 1] javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException at (AbstractUnmarshallerImpl.java:315) What exactly does and how do we Can this solve ?? We are implementing the code as: jaxbContext = JAXBContext.newInstance (Results.class); Unmarshaller unmarshaller = jaxbContext.createUnmarshaller (); Unmarshaller.setSchema (getSchema ()); Result = (results) unmarshaller.unmarshal (new FileInputStream (inputFile)); The problem appears due to this "strange" character in the XML file: ¿ update / code> Why is such a problem caused ?? Update 2 There are two odd letters in the file. They are in the middle of the file, note that the file is built on the basis of the data in the database and those weird characters get in the database in any way. Update 3 Here is the full XML snippet: & lt; Det

What are the drawbacks of session replication on Tomcat? -

I was trying to decide what is better in the Tommack + Apache reverse proxy mode for replication of the session. What is more common on deployment? Session replication or stick session? Are there any drawbacks for session replication? Thanks I can tell if you go for session replication Following considerations. Display The main drawback will be on display in repeated sessions, the cluster contains a copy of the session data on all servers DeltaManager (Default) and backup manager > This URL using the above configuration will use Delta Manager to repeat session delta All-to-all sessions will enable replication. From all-to-nothing we mean that all other nodes are repeated in the session cluster. It works great for small clusters, but we do not recommend it for large groups (many tomcat nodes) when using Delta Manager it will mimic all the nodes, even the nodes that are not deployed Are there. To resolve this problem, you want to use the backup manager, this

c++ - Program won't compile -

Below I have a code in C ++, which is to reverse the argument in a vector, but not the sequence is. I listed my problems in the code given below as sidenotes Invert function is considered to overturn each argument, and then the main function only outputs inverted words in the same sequence, for example, the program ("One Two three four ") = ruof eerth owt eno # include & lt; Iostream & gt; #include & lt; String & gt; using namespace std; Int Invert (string general) {string inverted; For (intu = common siz () - 1; num> gt; = 0; num--) {inverted.append (normal [number]); // I do not know how to get each character // I need another command for append) return ** Inverted **; & Lt; ----} int main (int argc, char * argv []) {string text; For (int a = 1; a & lt; argc; a ++) {text.append (invert (argv [A])); // analog function text.append ("") can not be run; } Cout & lt; & Lt; Text & lt; & Lt; Endl; Return 0; } The pr

c++ - Determine when using the VC90 compiler in VS2010 instead of VS2008? -

Is there a (Microsoft-specific) CPP macro to determine that when I used the VC9 compiler in Visual Studio 2010 Resistance to Visual Studio 2008? Returns the _MSC_VER compiler version, so with the VS2010 multi-targeting feature, I will get the same results as VS2008. The reason for wanting to know the difference is that I have created a new VS 2010 project, which contains the code removed from the big project, I have left the VS 2008 stuff "as is" because we are anyway Are also going away from "VS 2008" and I do not want to undergo the hassle of creating vcproj with the new vcxproj . Right now, I have defined my own macro to indicate whether or not the code has been compiled in its own DLL; It works just fine, but it would be nice if a little more elegant. _MSC_VER returns the compiler version It looks like what exactly do you want (or do I have a misunderstanding?). If the compiler is using VS2008 (also known as confusingly VC9 or cl.exe

asp.net - Problem pulling data from website in .NET and C# -

I have written a web scrapping program that writes all html to go to the list of pages and writes a file. The problem is That when I draw a block of text, some letters are written as '' how do I drag those characters into my text file? Here is my code: string base = string.format ("http://www.rogersmushrooms.com/gallery/loadimage.asp?did={0}&blockblockName={1}" , Id.ToString (), name.Trim ()); // Our third request after login is for the actual webpage. HttpWebRequest request = (HttpWebRequest) WebRequest.Create (baseUri); request. Method = "received"; Request.UserAgent = "Mozilla / 4.0 (compatible; MSIE 8.0; Windows NT 6.1)"; // Receive feedback object so that we can obtain session cookies HttpWebResponse response = (HttpWebResponse) request.GetResponse (); StreamerMinder Reader = New Streamerder (ReactionGetterSponsScream ()); // Read more feedback string page = Reader. Read-end (); Serial SW; String file name = string Format ("{0}

php - How to hide div serverside by reading cookie -

I am using a tutorial from here: This is the script I use: & lt; Script type = "text / javascript" language = "javascript" & gt; $ (Function () {// SETUP: // When the notification banner is clicked: $ ('#setup') Click (function () {$ ('# intro'). CSS ("Display", " No. "); $ .cookie ('intro', 'collapsed');}); // cookies // info banner state var intro = $ .cookie ('intro'); // Read the cookies if (intro = = 'Collapsed') {$ ('# Intro'). CSS ("display", "none");};}); & Lt; / Script & gt; Hides the following div as cookie: & lt; Div class = "feedback focus" id = "intro" & gt; Text goes here & lt; An id = "setup" href = "#" & gt; OK, I get it, please do it & lt; / A & gt; & Lt; / Div & gt; Everything works great but when the page loads, the split is shown for the second par

html - Expand <div> tag to bottom of page with CSS -

I know that this question is called a lot because I called it "many of the trying to work for me" I have seen the solutions I can get it to work if I hack html but I want to use all CSS. I want it to have a header with two columns, and I want to fill these three items for the whole page / screen, and I want to do it with CSS and without frames or tables. It looks like how I want to see my page, but again, I do not want to use frames. I can not get two colored colored columns to extend to the bottom of the screen. I have this, it seems that the right column spans the lower part of the screen, just changing the color of the body color in the same color as the left-hand column, but I would like to extend both the columns down to me I did not even have to do so far: HTML & Lt; Link href = "stylesheet.css" rel = "stylesheet" type = "text / css" /> & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = "container

c++ - GCC template issues -

संभव डुप्लिकेट: यह कोड जीसीसी में संकलित नहीं करता है: टेम्पलेट & lt; typename T & gt; Struct बेस {सार्वजनिक: int x; }; टेम्पलेट & lt; typename B & gt; संरचना मध्य: सार्वजनिक बी {}; टेम्पलेट & lt; typename T & gt; संरचना उप: सार्वजनिक मध्य & lt; बेस & lt; T & gt; & Gt; {सार्वजनिक: शून्य एफ () {x = 1; // त्रुटि: इस क्षेत्र में 'एक्स' घोषित नहीं किया गया}}; यदि या तो बेस या उप टेम्प्लेट क्लास नहीं थे, तो यह शिकायत नहीं करेगा। वीसी इसे संभालता है। क्यों? का प्रयोग करें this-> X = 1; संकलक को यह बताने के लिए कि x एक (टेम्पलेट-) निर्भर नाम है। ध्यान दें : मानक के अनुसार जीसीसी क्या करता है, एमएसवीसी सिर्फ थोड़ी अधिक सहिष्णु है।

dynamics crm - Exporting workflow templates -

Is there a way to export a workflow template (and then import them into other CRMs)? I exported all of my workflow, but the templates were not between them. I'm not seeing how this is done. It seems that there is no direct way to export workflow templates . To export it, you have to change it to a regular workflow. After importing into destination CRM, you can edit it and change it in a template before publishing it. Will this be an acceptable solution in your scenario?

.net - Business Intelligence Development Studio encounter error on Rendering -

I try to develop a data processing extension for STRS 2008 so that we can access the database through an entity framework. . But when I make a copy and enter expansion in BI development studio, then I get an error message when loading this extension. "I used it with Visual Studio 2010 to create targeting framework 4.0 because my data model class The library was created with that version of the target / P> Any help would be greatly appreciated. > Su Iscit not that it is completely relevant, but you can point in the right direction

jquery - jQueryUI dialog won't go modal -

I need a modal dialogue to open on top of a tiny MEEE editor and other jQuerified items. I followed the jquery site but it is not modal, I can still change and use the rest page. $ ('# sureDelete'). Dialog ({modal: true, buttons: {"yes": function () {$ ('li #' + $ id) .remove ();}, "no": function () {}}, dragable: wrong}); & Lt; Div id = "dialog" & gt; & lt; Div id = "sureDelete" & gt; Are you sure you want to delete this page? & Lt; / Div & gt; & lt; / Div & gt; Besides, I have no style in the dialogue. Is this an issue? You need to make sure that you include the jQueryUI Base CSS file. IE: & lt; Link rel = "stylesheet" href = "* jQueryUIDir * / css / * themeDir * / jquery-ui- * version * .custom.css" type = "text / css" />

python - I keep Getting KeyError: 'tried' Whenever I Tried to Run Django Dev Server from Remote Machine -

I am running django 1.1.1 on python2.6.1, and thus started the Django web server manage.py driver 192.0.0.1:8000 then to connect to the django dev web server Retrieving this message on an attempted remote message traceback (most recent call final): The file "C: \ Python26 \ lib \ site-packages \ django \ core \ servers \ basehttp .py ", in line 279 self-running = application (self.enuvre, self.start_response) file" C: \ Python26 \ lib \ site-packages \ django \ core \ serve Rs \ basehttp.py ", line 651, __call__ in the return self. Application (environment, start_prescription) file" C: \ Python 26 \ lib \ site-packages \ django \ core \ handlers \ wsgi.py ", line 241, __call__ In response = self.get_response (request) file "C: \ Python26 \ Lib \ site-packages \ django \ core \ handlers \ base.py", line 115, get_response return debug.technical_404_response (request, e) file "C : \ Py Thon26 \ Lib \ site-packages \ django \ vi

CakePHP dynamic element -

I am trying to create a message-board type element in the KPHP app. This element will be displayed on all pages and views which use a special layout. I want to display all the messages in the model, then add a link when showing the form, then return to the updated message list submitted. All this without affecting the current view / page. My message model / controller / index set up, with a message board element that requests index action, it works fine However, how do I return back to the original page / action? The link was clicked on I could not use $ the-> referer () because it will link with the add () verb; I am using Ajax on this, and I use an AJAX layout. Then you will be able to set up a full stack for processing it, and will be able to pass various things in the form of parameters in the controller functions. Using Ajax, you will not have to worry about passing the Referrer Controller / Action pair by calling MessagesController and also using the Retur

How do I calculate the size of an entity stored in Google App Engine? -

Is there an easy way to calculate the size of the entity stored in app engine? I would like to know how to kill the upper limit of 1 MB on the unit size is a special unit app engine Stores each unit as one. You can use the db.model_to_protobuf () function to manually convert your unit into a proto, and then set the standard len () to set its size in bytes. / Code> method. / P> Example Usage: to google.appengine.ext import db sz_in_bytes = len (db.model_to_protobuf (some_entity). Encode ()) Updates for NDB In the comments given below, kiketo indicates that a different approach is needed for the ndb organizations (thanks kekato!): < / P> lane (some_entity._to_pb (). Encode ())

f# - Could not load file or assembly FSharp.Core, Version=4.0.0.0 -

I'm trying to implement a web application that uses F # 4.0 on Windows Server 2008. This works on my computer where VS2010 is installed but it does not work on the server every time you receive this error message, open the page: The file or assembly could not locate the specified file 'FSharp.Core, Version = 4.0.0.0, Culture = Neutral, PublicKeyToken = b03f5f7f11d50a3a' or one of its dependencies could not be loaded. I have installed .NET 4 using the Web Platform Installer. F # PowerPack is also installed. I found this page: It suggests you to restore F #, but the link to download the F # seems broken and I can not have the same problem. I also tried to install Microsoft F # 2.0.0.0, because it is only F # redistribution which I can get. Must have to install. For example, see: (or) For information that VS The project series is how to install the installer as you have found, redist (located here: ); FSharp.Core is not part of .NET, but it is a

binary - what is exactly an EOF? -

EOF is a special byte sequence that is at the end of each file, or this is a slight exception (which is notified) By Kernel Long time ago on DOS machines this ^ Z , but Nowadays it tries to read it while notifying the kernel and program to reach the end of the file.

.net - How to close a UserControl View in mvvm-light? -

I created a sample with mainView and 2 other views (usercontrols). I have kept the button "closed" on the child's view and I want to close that scene. There is a command associated with that button, and when close is pressed I ask ViewModelLocator to clean it. BUt-view is still being displayed .. What am I doing wrong? How can I turn off the user control view with mvvm-light? Private relay comand _ close command; Close Public Relay Commands {{{(_closeCommand == faucet) {_closeCommand = New relay command = (=) = & gt; ViewModelLocator.ClearAllChannels (),); } Return _closeCommand; }} ViewModelLocator function: public static zero clear AllChannels () {if (_allChannels! = Null) {_allChannels.Cleanup (); _allChannels = Null; }} The view model lokater does not actually host your thoughts, it's just a specific Provides a way to view ViewModel supporting the view. So you have to ask those controls that host your thoughts (possibly a window or frame

windows - What is MSSRPD? -

Recently, I've found that some searches in Firefox are redirected to Bing (my primary search engine is Google Instead of). I'm not sure, but it seems that it is not bound to search, but to resolve hostname. After entering a single word, which may redirect hostnames to Bing. O -> uses Bing to search hey -> I found out that the resulting search URL has MSSRPD: http://www.bing.com/search?q=hey&form=MSSRPD < P> I am wondering what is the MSSRPD and how can I uninstall / disable it, so is my primary search engine used? Edit EDIT2: Safari in the same problem.

php - Zend Framework Project - Calendar: Need web calendar with events (like google calendar) for every user separately -

I am doing multi user website (it should work for more than 100,000 users) with the Zend Framework. I need to create an event calendar like Google Calendar (like it is possible to use Google Calendar - please tell me). Post-text "itemprop =" text "> There are some calendar proposals on ZF, e.g. this . You can easily extend it as a data provider with Google Calendar. Take a look at the option of Google Calendar, which is written in jQuery: Also.

ruby - DataMapper import primary key -

I am running an import script that uses the DataMaper to import the database's CSV dump into a local SQL database. My models look like this: Class employees include DataMar :: Resources property: staff_id, string,: key => True Property: FullName, String and Class Project in Datamapar :: Resource Property: project_id, integer,: key = & gt; Real Property: Title, String Property: Position, String Related_to: Staff End The primary key is in the CSV, so when I import I am using it because this is the key The next time I run the import, I clean the tables and start again, although the datamaker provides because the primary key has already been taken. Can the DataMapper be stopped or should I remove it? Create a blank.db file again before running the DB file and import? If so, what is the easiest way to do this. You DataMapper.auto_migrate! to remove the table, and then they match the current model state. New tables will be empty of any data from previous runs.

geolocation - precise geolocalization via IP -

I tied the iPad the other day, and was surprised by the accuracy of the geo location by IP. Actually, against the hunger in the world This is the action which tells you very precise where the person is located, who has participated in this petition: I want to integrate it into one of my projects Took a look but I could not understand how he did it. Can somebody help me out? Is there a web service for this? What I'm not looking for is a service that gives back to the location of my ISP, I need a situation of real IP For example, I am located in Friborg, Switzerland, ISP is in Switzerland Zurich. Most of these services come back to my ISP, iPad or the place of linkage by me, giving me accurate localization by IP. (Actually even the address is correct) Is Google Maps API doing this or are they using another service? They are using another service that provides wireless access points < / Strong> uses HTML5 : function do_something (lat, long) {warnings (la

c++ - Refactoring a leaf class to a base class, and keeping it also a interface implementation -

I am trying to reactivate a working code. I code basically receives the interface class in a functional implementation , And I want to use this implementation outside of the original project as an original class. However, I do not want to make a fork, and I want to use the original project to be able to carry out its implementation, and use me the problem is that the hierarchy structure is very different and I'm not sure That it will work. I can not even use the basic base class in my project, because in fact it is quite confused in the project (it is included in very large sections) and I only have to take care of a subdomain of the problems of the original project. I wrote this code to test how to implement it, and it is working, I'm not sure I like it: #include & lt; Iostream & gt; // The original code is: // IBase - & gt; Derived1 // I need to redistribute Derive2 to be both of the immutable class / and programmer interface class // Derived2 - & g

blazeds - Flex client disconecting -

I am using BlazeDS Do anyone know how to disconnect the client from the server? So far as I knew that BlazeDS does not support open connections between the Flash Player and the server If you want to do this then you have to use Live Seekal. When you make a server call using an HTTPService, WebService, or RemoteObject tag, such incidents happen when you receive a response from the server, such as results or defects when those incidents fire , You can safely assume that the service call is no longer connected to the server.

rails script/generate scaffold problem -

The script / scrawold book title generates: string The following fails - gives me a strange path error script / path app Name Generates: String The following tasks Script / Scaffold App Name Jen The freight to: string Can someone shed some light on this? Is 'application' a reserved word? All your administrators are subclass of ApplicationController created by Railways. You can not create another controller with this name.

python - I'm trying to install psycopg2 onto Mac OS 10.6.3; it claims it can't find "stdarg.h" but I can see it's there; what should I do? -

I am trying to install psycopg2 successfully, but I am running in errors. The latest one seems to be missing "stdarg.h" (see code below). Although I can see with your own eyes that Stdargkh called a file / developer / on SDK / Maksoks 10.4u.sdk / usr / include / stdarg.h (where it claims that it can not find him) So I do not know what to do about it. I am running Mac OS 10.6.3 and in the past few days I have ensured that I have all the latest OS developer tools. > I have Python 2.6.2 and PostgreSQL 8.4, if it does not matter. dragon running setup.py running install running set build_py build_ext Building 'psycopg2._psycopg' Extension Construction / temporary .Macosx-10.3-fat-2.6 Construction / temp.macosx- 10.3-fat-2.6 / psycopg gcc -arch pcc -arch i386 -serrut / developer / sdk / macozux 10.4u.sdk -fno-strict-aliasing -fno-mammoth-dynamic-DNDEBUG -g -O3 -DPSYCOPG_DEFAULT_PYDATETIME = 1 -DPSYCOPG_VERSION = "2.2.1 (DT-DC XPP33)" -DPG_VERSION_HEX =

java - Hibernate Search synchronous execution in main thread -

Text after " It looks like Hibernate Search uses synchronous execution other formulas other than calling thread for parallel execution. How? I execute hanging serial search hibernate sequence in the thread Problem in being the org.hibernate.search.backend.impl.lucene.QueueProcessors class looks: Private zero runoff () throws blocking exceptions {list & lt; Future & lt; Object & gt; & Gt; Futures = New Arrestist & lt; Future & lt; Object & gt; & Gt; (DPProcessor size ()); // Perform all the tasks in parallel on each directory provider; // Each DP has its own Executioners service. (PerDPQueueProcessor Process: dpProcessors.values ​​()) {Executor Services Exporter = process.getOwningExecutor (); // Wrap every runner in every future future & lt; Object & gt; F = new futuristic & lt; Object & gt; (Process, empty); Futures.ed (F); Executor.execute (f); } // And then wait for all tasks to be completed: For (future gt; f: futur

regex - Matching Unicode Dashes in Java Regular Expressions? -

I want to create a Java regular expression to split strings of "foo-bar" in the normal format Trying and using "Pattern.split" (), the "bar" character can be one of several dashes: ASCII '-', m-dash, en-dash, etc. I have created the following regular expression: Private static last pattern title Segment Separator = Pattern.compile ("\\ s (\\ x45 | \\ u8211 | \ u8212 | \\ U8213 | \\ u8214) \\ s "); Which, if I am correctly reading pattern documents, then any unicode dash or ocean dash should be captured, when the whitespace is surrounded on either side. I am using pattern as follows: string [] sectionSegments = titleSegmentSeparator.split (sectionTitle); No happiness. For sample input below, the dash is not detected, and title segments separator. Mitch (section title) .Find () returns false returns! To ensure that I was not reminiscing any unusual character organizations, I would like to print some debug info to System.ou

c++ - Precompiled headers question -

I am currently restructuring my project and recently a simple application has now become a couple of C ++ projects Is - stable library and actual application . I would like to share a precompiled header between two projects, but .pdb file path. My first project is called library and it should be related to the .lib file related to Library.pdb file now, the second The project is called app and creates everything in the same folder ( .exe and another Application.pdb file). Now make my own precompold header file ( Library.pch and Application.pch ) based on both of my projects . A real header file does this work, but I think it is a waste of time and I also think there should be a way of sharing a precompelled header among the two projects. If the project in the application tries to set , set the Precompiled Header (/ Yu) option and assign it to < Code> Library.pch , this will not work for the following reasons: Error C2858: Command Line Opt

Varnish waits for the complete page load before sending response to browser -

I have setup varnish to sit in front of a biscuit server. What I noticed is that the varnish loads the whole page Waiting to do (all CSS, JS, etc.) before it sends a response to the browser. The user sees anything before that causes a major interval if I bypass varnish and go straight to the site, it immediately responds the total page Load time can be the same, the notion that the site is slow. Has anyone encountered it? If you do not inline JS and CSS in your HTML, then the behavior you describe is technically impossible. Your browser must have & lt; Script & gt; and & lt; Link & gt; To remove the tag and send different HTTP requests, you will need to obtain and parse the HTML; Even if they arrive at the same varnish server, there is no indication that they are part of the same "page". Try to change the HTML to load static (JS, CSS and images) from a different hostname, they do not go to varnish; This makes it easy to debug things. You can g

vb.net - Html.DropDownListFor not behaving as expected ASP.net MVC -

I'm new to Aspiknet MVC and I'm having trouble working correctly dropdown lists. I have a strongly typed view that is trying to use HTML. Dropdown List Fire: & gt; I limited the list with a property in your model: list as public Reedlain property ArrdepOptions () (the SelectListItem) get dim list new list (as SelectListItem) are dim arriveListItem new SelectListItem () dim departListItem as new SelectListItem () as arriveListItem.Text = arriveListItem.Value = ArriveDepart.Arrive departListItem.Text = "departure" DepartListItem.Value = ArriveDepart "arrive at". Get Select Case Me.Arrdep case of arrival Depart.Arrive: arriveListItem.Selected = True Case Else: DepartListItem.Selected = True End Select list.Add (departListItem) Return of list.Add (arrivalListItem) List End End End Property Select Case works to find and it sets the right SelectListItem as selected, but when my view drops the dropdown list, whatever is marked as selected HTML It

Rescuing redirect :back after destroy in Rails? -

I am looking for one of the best practice solutions that might be able to use redirects: successful removal action After, many items can be removed from different types of lists. Unfortunately, in one case the strategy fails, when the item begins to be removed after seeing it. What approach do you recommend for this situation? If an item has been removed from its view, then you have to consider what you want Page. I suggest one of two options: In view of your redirect: back , and on the requested resource Applying another type of redirection no longer exists - i.e. / products / 10 redirection to / products @product = Product. Find_by_id (paragraph Ms [: id]) # However, I believe that I do not know that redirect_to products_path will change about @product # about or redirect the redirect if the special path is destroyed One matches the @ product.destroy # You may have to save the path before the object is deleted. Redirect_to: back and return request.refer

gcc crtbegin crtend -

जीसीसीसी का उपयोग किस उद्देश्य के लिए crtbegin.o और crtend.o? < Div class = "post-text" itemprop = "text"> उन फ़ाइलों में C ++ वैश्विक कंस्ट्रक्टर और डिस्ट्रक्टर्स को नियंत्रित करने के लिए कोड है।

flex - Does window.open not work inside an AIR html component? -

& lt; mx: एचटीएमएल आईडी = "Html" width = "100%" ऊंचाई = "100%" स्थान = "https://example.com" स्थान बदलें = "प्रेषण स्थान बदलें (ईवेंट)" / & gt; यह लोड किए गए पृष्ठ में यह शामिल है: & lt; एक onclick = "सतर्क ('onclick')" & gt; अलर्ट & lt; / a & gt; & Lt; a href = "जावास्क्रिप्ट: अलर्ट ('जेएस')" & gt; अलर्ट & lt; / a & gt; & Lt; एक onclick = "window.open ('http: //www.google.com', '_blank')" & gt; नई विंडो & lt; / a & gt; 2 अलर्ट दोनों काम करते हैं हालांकि जब आप नई विंडो लिंक पर क्लिक करते हैं, तब कुछ भी नहीं होता। सभी 3 लिंक्स एक असली ब्राउज़र में काम करते हैं, इसलिए मुझे इसका ठीक पता है। क्या विंडो के लिए कोई समर्थन नहीं है। एआईआर एचटीएमएल घटक? या यह एक बग है? क्या कोई काम है? मुझे पता चला कि आपको कक्षा HTMLHost का विस्तार करने की आवश्यकता है और ओवरराइड < कोड> बनाओवंडो इस तरह की विध

windows - Which "platform" should we use for a notifier-component? -

We need to develop a pointer component. We are running on Windows, and so what we will do, to scan a database on the given interval (say, every 15 minutes) to see if any notifications are sent needed. We are looking at either a Windows service or a Windows Task Scheduler. Our biggest concern is that the strength of our implementation is that if it crashes for some reason, can it restart the next interval automatically? Can we use custom logging logic to take care of crashes? What educated guess was given to me here :) Do you think that if you want additional information, to guess this The props will be given, if any window service versus the windows task scheduler can make a brief list of professionals. Also, it should be noted that we are not set to any of these, so please post if you have any options. Thank you in advance :) If your application does not need to run continuously , There are some advantages to using the task scheduler. It is easy to set up and you ca

cocoa - Problem with setContentBorderThickness:forEdge: not actually setting the value -

I setContentBorderThickness: forEdge: of'm trying to use one in a Cocoa application To make the bar below. Mpeedi was on to something, but check it out, I think it may be slightly different problem: - (minus) to adjust Krensngeetbraujhrbojdanarekantrolr select {if (( ([[self. Risponsarerekantrolr selected Aksteks] count] == ​​0)) [[[self window] set Kantentbordertikshn: 40.0 F Adej: Sijiartimaiaijed]; Anselog (@ "% f", [[self window] Samgribordercodneafej: Sijiartimaiaaidij]) ;} And {[inside The window] set Krententbordertikshn: 60.0 F Adej: Sijiartimaiaij]; Anselog (@ "% f", [[self window] Samgribordercodneafej: Sijiartimaiaaidij]);}} two do NSLog () thickness values ​​show that the message is 0.0, even after I explicitly set it. does anyone know what's going on with it? < P> At any point you have checked to ensure that [the self Window] isn 't no? Do you correct your outlet setup? I get that behavior if the window is not set u

php - Question regarding Ajax Hacking -

All, I have a PHP website in Z Framework and MVC. Most controller actions check whether the request is an Ajax request, otherwise they redirect the user to the home page. I am thinking of various ways to break that site, I am considering the following scenario: A user creates his own PHP project on his local machine. writes a JQuery ajax post request to one of the users tries to post the controller and malicious information on my site. Ex: $ "HTML", success: function (Html_response) {warning (html_response);}, error: Ajax ({type: 'POST', url: "https: // marketite / getinfo / getstuff", cache: incorrect, data type: Work (xhr, ajaxOptions, errorThrown) {warning (errorThrown);}}); My question in the AJAX request given above is not the "url" attribute? I know that it takes a relative path, it is possible to break any site by sending such requests? Thanks It prevents the request from creating and reacting, until it is for th

delphi - ShellExecute not working from IDE but works otherwise -

I want to create and then want to open a txt file by using the ShellExecute command. I've used it for years with code Delphi 7 and it worked: Function Execution (Const. ExeName, Parameter: String): Boolean; Start if parameters = '' then result: = shellexetute (0, 'open', picar (xenam), zero, zero, SW_SOWNOWNMAL) gt; 32 and the results: = Shellacsecute (0, 'Open', PCAR (xenanem), picar (parameter), zero, speedHomoramL) & gt; 32; End; Now, I switch to Windows 7 and the code IDE does not work anymore. Delphi shows the CPU window with the heading "Window-Processing Unknown (2352)". I close the CU window and by the time I stop the application everything works fine, when Delphi shows the CPU window once if I run the app from outside the ADI, then it works fine. It seems that Debugger has something to say to me, but I do not know. I feel like you've turned on the options. When it is enabled, the debugger interrupts the new proce

iphone - label in my tabel celll -

संभव डुप्लिकेट: आपके त्वरित प्रतिक्रिया के लिए धन्यवाद लेकिन जो मेरे लिए काम नहीं किया मैं तालिका में लेबल्स का उपयोग कर रहा हूं .. UILabel * label1 = (UILabel *) [सेल दृश्यविवरण: 1]; Label1.backgroundColor = [UIColor स्पष्ट कॉलर]; label1.text = aStation.station_name; Label1.textcolor = [UIColor colorWithRed: 0.76 हरा: 0.21 नीला: 0.07 अल्फा: 1.0]; [लेबल 1 सेटफॉन्ट: [UIFont fontWithName: @ "ट्रेबुचेट एमएस" आकार: 15]]; इस प्रकार के लेबल के लिए मैं वर्णों की संख्या को सीमित करना चाहता हूं। आशा है कि मुझे एक जवाब मिल जाएगा .. NSString * myString = [स्वयं मिलते स्ट्रिंग वेल्यू]; // किसी भी तरह से आपको पसंद मान सेट करें। Int maxLen = 10; // या जो आपकी असली अधिकतम लंबाई है Label.text = myString; यदि (([myString लंबाई]> gt; अधिकतमलेन) label.text = [myString substringToIndex: maxLen];

Codeigniter form validation config file not working -

I'm using the technique to save the codeadder form validation rules as specified in the config file, but it does not seem that Maybe it is working. I am also trying to start the verification callback function from a Validation_Callbacks.php library, which I am automatically loading via the autoload.php mechanism. Below is a snippet of my Form_validation.php form validation rule config file: & lt ;? Php if (! Defined ('BASEPATH')) Exit ('no direct script entry is allowed'); / ** * Custom validation library with app-specific verification functions * / class validation_backback {/ * checked date string is formatted as expected / * function date_check ($ date) {$ ddmmyyyy = '(0 [1-9] ] | [12] [0- 9] | 3 [01]) [- \ /.] (0 [1-9] | 1 [012]) [- \ /.] (19 | 20) [0-9] ] {2} '; If (preg_match ("/ $ ddmmyyyy $ /", $ date)) {return TRUE; } And {$ this- & gt; Form_validation- & gt; Set_mess ('date_check', $ this-> lang- &

c# - Making WinForm ContextMenu Background Gray? -

The context menu has a default white background. It looks great, but for stability, I want to be gray with any other app like context menu How do I get this style for my context menu? Take a look at another item about the menu item. You need to use one instead of ContextMenuStrip . It will set the default color (i.e. brown) and styles in the built operating system instead of their own defined colors and styles .