Posts

Showing posts from June, 2010

qt - QTableWidget: How can I get tighter lines with less vertical spacing padding? -

Great for simple grid display. Changing colors, fonts, etc. is straightforward. However, I did not manage to give the grid a 'hard' look with a less vertical whistle. I see around Qt documentation talks (like) margins border padding Widgets, but when I set them up, I get the change around the whole grid widget instead of inside. How can I set it (with style sheet or hard-coded option) to make the QTableWidget display harder? The code for 'yes' may be incorrect This was just an example. Copy & amp; Paste the rudimentary code instead of the following, change the value in "SetDefaultSectionSize ()", recompile it and run. You should see the difference that it determines the visible result of 10 or 50 yields. In the above code, it is possible that QFontMetrics or QFont is doing something wrong. Whatever height you want to use, you can use it, but the font size is most understandable. #include & lt; QtGui & gt; Int main (int...

jquery - Writable Select Box -

I'm looking for a jquery plugin so that I can have a select box that includes a writing option. So using javascript to merge a selection box with an input field, I'm thinking that this would be a very common requirement, is there any such plugin address? thanks I can not use the selection instead of using the plugin Will happen.

c++ - Can I force a parent window to redraw without causing its children to redraw? -

Is it possible to cancel the window without making it illegal for its children? (To display invalidity due to the rebuild of the parents window, but not to remodel your children) It assumes that the "clip-children" style already in the original window , So that its painting will not naturally invalidate the children. Invalid () already does this. Another way is with RedrawWindow () RDW_NOCHILDREN option.

Does SQL Server Integration Services (SSIS) re-compile C# code every time it's run? -

We have a process that is receiving data in real time and adding the database to the record. We can add our Extract Transform Using SQL Server 2008 Integration Services to run the Load (ETL) process. We download about 50 files from the FTP site, process them and then store the files. The problem is that processing is taking approximately 17 ss per file, even though the files are actually small (approximately 10 lines) and the processing code is quite simple, looking at the load on the machine This CPU is bound and there are not many traffic on the network, disk, or memory. I suspect that SSIS can be compiled every time the C # code is compiled. Has anybody participated in similar problems? Or have you used the same process without any problem? Is there any device that can allow us to profile a DTSX package? Since you are using SSIS 2008, your script work is always precompiled.

objective c - Incompatible type for argument 1 of 'setBounds' -

I am trying to learn to do my own custom classes and learn more. I am receiving this error that is an incompatible type for a logic 1. I have defined a straight and class like this: typed enum {kRedColor, kGreenColor, kBlueColor} ShapeColor ; Typefifth {int x, y, width, height; } Shape diagram; @Inteface Size: NSOBK {shape color filler; Bound size; } - (zero) setFillColor: (ShapeColor) fillColor; - (zero) setbound: (dimension) border; - Draw (zero); @end // size Then I try to import Shape.h file (code above) and create a shape like this: ID Size [4]; // I'm different! Diagram rect0 = {0, 0, 10, 30}; Size [0] = [new size]; [Shapes [0] Setbounce: rect0]; I get an error Setbones are incompatible. For some reason it is not looking at the size .h square for the SetBounds method and instead viewing the default Setbones method? Am I doing something wrong? setBounds: then using a type of method code> id Usually the first encountered set ball: (to determine the ...

ajax jquery groups validation -

यहां मेरा कोड है: groups: {phone: "phone1-phone2-phone3 "अंक: सच}, त्रुटि प्लेसमेंट: फ़ंक्शन (त्रुटि, तत्व) {if (element.attr (" name ") ==" फोन 1 "|| element.attr (" name ") ==" phone2 "|| element.attr ("नाम") == "फोन 3") error.insertAfter ("# टेलीफोन"); Else error.insertAfter (element); }, डीबग: सच यहां मेरा फ़ॉर्म इनपुट टेक्स्ट है: gt; & lt; / p & gt; उपरोक्त मान्य नहीं किया? किसी भी विचारों की बहुत सराहना की जाती है! समूहों में इनपुट आईडी को रिक्त स्थान द्वारा सीमांकित नहीं किया जाना चाहिए - । (फोन: "फोन 1 फोन 2 टेलीफोन"}, नियम: {phone1: "अंक", टेलीफोन: "अंक" , फोन 2: "अंक"}, ऑनसबमिट: गलत, त्रुटि प्लेसमेंट: फंक्शन (त्रुटि, तत्व) {if (element.attr ("name") == "फोन 1" || element.attr ("name") == "phone2 "" Element.attr ("name") == "फोन 3") error.insertAfter ("# टेलीफ...

How can I copy a file on Unix using C? -

I'm looking for Win32's Unix counterpart, I do not want to change the wheel again by typing my own version. There is no need to call non-portable API such as sendfile , Or open outside external utilities The only method working back in the '70s still works: #include 0) {char * out_ptr = buf; Ssize_t nwritten; Do {nwritten = write (fd_to, out_ptr, nread); If (nwritten> = 0) {nread - = nwritten; Out_ptr + = nwritten; } And if (error! = EINTR) {geto out_error; }} While (pulse & gt; 0); } If (nail == 0) {if (close (fd_to) = 0) close (fd_to); Errno = saved_errno; Return -1; }

asp.net - System.diagnostics and System.Debug not working from Page Method -

We have a page method on ASP.Net on the web page. We have both systems Diagnostics and Systems Diagnostics Attempted to insert a trace statement using debug. In Visual Studio 2008, the break point is not killed even for the line, but other break points are hit on other lines. There is no output from this method which we can see. There is also a global.exax error catcher that works fine in other cases but is not being calcated in page math. Any ideas why the page method and system Diagnostics do not play well together? attempt to use System.Diagnostics.Debugger.Log (0, blank, "messagestrings") Do;

Python: Can I overload the raise statement with def __raise__(self):? -

यहाँ मेरा अपवाद वर्ग है जो raise का उपयोग कर रहा है: वर्ग एससीई (अपवाद): "" "एससीई कार्यों का प्रदर्शन करते समय एक त्रुटि" "" डीईएफ़ __इनट __ (आत्म, मान = कोई नहीं): "" संदेश: एक स्ट्रिंग संदेश या स्ट्रिंग के एक पायदान। "" अगर मान कोई नहीं : Self._values ​​= [] elif isinstance (मान, str): self._values ​​= [value] else: self._values ​​= list (value) def __raise __ (self): प्रिंट ('raising') अगर नहीं लेन (स्वयं। _values) वापस आइएआर (self._values) def __repr __ (स्वयं): वापसी repr (self._values) ): रिटर्न डेफ __str __ (स्व): वापसी स्वयं .__ repr __ () def __iter __ वर्तमान में अगर मैं इस अपवाद को बिना किसी मूल्य के लिए बढ़ाता हूं, तो मुझे बाद में ट्रेसबैक मिलता है: __ मुख्य __। SCE: [] इसके बजाय मुझे क्या उम्मीद थी जो था: r Aising & gt; & gt; & gt; आप अधिभार कैसे करें raise ? जैसा कि दूसरे उत्तर कहते हैं, कोई भी __ उठाना नहीं है विशेष विधि 2004 में comp.lang.python पर एक धागा था, जहां किसी...

asp.net mvc - Entity Framework creating new record instead of modifying existing one -

I am using unit framework with an as.net MVC application. I have the user permission to create new records and modify existing ones. I am unable to bring any problems to existing records, but when I pass back into the edit unit and try to save it, it creates a new one and saves it and leaves the original unconnected. I get the object, I successfully recover it from EF using the primary key (such as the ID number for an employee record), and set MergeOption in this way: Context.Sector.MergeOption = MergeOption.No Tracking; I can find that the right data in the object (using the key of the original record), as far as I call: Context.SaveChanges (); However, after this, the new record has been created instead of modifying the existing record. Am I missing something? I would have thought that to recover the object and change some of its values ​​(id) and saving it will only work, but not clearly. Thanks NoTracking means that objectstate manager is bypassed and there...

algorithm - Computing the null space of a matrix as fast as possible -

Let me calculate the emptyness of several thousand small metrics (8x9, 4x3, not as I had written before) in parallel (CUDA) I need to. All references point to SVD, but the algorithm in numerical recipes seems very expensive, and gives me lots of things from very empty space that I really do not need. Gaussian eradication is not really an option? Are there any other commonly used methods? To answer your question directly ... Yes! QR Decomposition! Let's assume a QR decomposition with an M-by-n matrix rank n, the orthonormal M-by-M matrix Q and the upper triangular M-by-n matrix R such as A = QR if we Q = [Q1 Q2], where Q1 is M-by-N and Q2 M-by- (Mn), then the columns of AQ of Q2 form A ^ T. QR decomposition is calculated by either gram-schmitt, givination rotation, or domestic reactions. They have different stability properties and operations counting. You are right: SVD is expensive! What do I use cutting-edge stuff, but when I hear "calculate the blank space...

Is it possible to change backround color of editor and autocomplete tooltips in Visual Studio? -

I changed the color scheme for the visual studio, to set the background color to black, besides this I would like to increase the color syntax I use visual acess for Now the code looks good, but autocomplete lists and editor tooltips are shown on default white background. With a new color scheme it looks awesome closing list and editor tooltip I can not change enything except font size - colors are disabled Is it possible to change color anyway? I use VS 2008. Normally what comes with the Visual Studio on the River is a different-looking Intellisense and editor Tooltip I know that the only way to change things is to write your own provider and design them yourself. Maybe not worth the effort.

web services - Java WebService call - null parameters -

I have a JavaWS that has been developed with JAX-WS. There are only two parameters in the form of input of this service. Each time I try to call this service the parameter is 1. If I type in type 0 then it turns into zero. To understand these things, you must remove messages in and out of the service if it is HTTP Consider using a debugging HTTP proxy or (I do not remember the Java version of the proxy). Fiddler2 is not written in Java but it works fine for Java-based applications If the service does not use HTTP, Other methods will be required. Normally issue here XML schema by a single character in one due to an incorrect XML namespace on incoming message input to "tap" will be deserialized zero namespace of the deal - Value Suppose a missing trailing slash - may be the reason for this.

asp.net mvc - Running into an SQL Error with an MVC Application deployed on IIS -

So I'm new to working on web projects in general I was working on an MVC application in Visual Studio 2008 I am I have created a SQL database inside VS, and I have appointed my application on IIS. However, when I try to do something that will spark an SQL query, I get the following error: "Because the user's local application data failed to recover SQL The server failed to generate a user instance. Please make sure that the user has a local user profile on the computer. Ga. " I hit Google on this issue, and people have been doing it for many solutions suggested but I'm unsure how many of them are relevant to me when I VS 2008. I have tried some simple things like setting the Trust level to complete, and IIS has to set the user profile to correct, but there is no luck yet. Which of the applications have you posted, what version of SQL is running? If this is not SQL Express, then you have to remove "user instance = true" from the connection st...

java - removing the vertical scroll bar in a jscrollpane? -

क्या JScrollPane में खड़ी स्क्रॉल बार को निकालना संभव है? इस तरह से कुछ प्रयास करें: JScrollPane.setVerticalScrollBarPolicy (VERTICAL_SCROLLBAR_NEVER);

datetime - PHP parsing a date using strptime() or strtotime() -

Hi, I have trouble parsing a date in straightforward, because my system windows are running I I have stringetimes () I'm also trying to parse the date using, but not luck but because I am using the Euro date format. This is the date format I use for 30/11/2009 11:00 am and I need to get a timestamp from it. Any ideas how can I get it? $ us = preg_replace ('# ^ (\ d +) / (\ d +) / (\ D +) \ s ([\ d:] +) \ ([A-zA-z] {0,2}) $ # ',' $ 3- $ 2- $ 1 $ 4 $ 5 ' , $ Date); $ Timestamp = strotom ($ date);

javascript - How to instantiate a Actionscript class that is "movie-less" -

I am a full Flash Nube, and I am trying to create an audio player that uses Flash in the back-end Javascript in Front End, so I do not need the "Movie" capabilities of Flash. I have an encrypted class that plays audio, javascript which tells the epistrip to play, and swiffbags to embed the flash I do not know how to execute the code once the actions are loaded. I have tried Flex and MXML Seeing .. But I'm not sure what I have here. Audio. AS package {import flash.media *. Import Flash.net *; Public class audio {public var file: string; Public Var Audio: Sound; Public Channel: Soundchannel; Public function audio (f: string) {file = f; Audio = new sound (); Audio.load (new URLRequest (file)); } Public Function Play (Resume Time: UIT = 0): Zero {if (channel) channel.stop (); Channel = audio.play (resume * 1000 *); } Public function breaks (): zero {channel.stop (); } Public work progress (): number {if (channel = audio.length == 0) back -1; Var p: number = channel.p...

Which is a good Continuous Integration Solution (e.g. CruiseControl.net) hosting provider? -

I have a personal .NET (C #) project that uses Unit Reconstruction at Unfuddle.com. I want to use a hosted continuous integration device like Cruise ControlOnnet. Can anyone host a CI solution, which can be integrated with GIT and is reliable and cost effective? Thank you. Found but nothing about them found out. I would say, which is very simple to install your own CI server and you will probably be able to setup your projects for only 1 day.

Call UPS Parcel Tracking Web Service with Delphi? -

Delphi 2009 imported UPS WSDL without any errors, and I managed to launch a web service with my service information and an example parcel. Id. The response from the server is: & lt; Expansion & gt; & Lt; Err: errors xmlns: err = "http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" & gt; & Lt; Error: ErrorDetail & gt; & Lt; Fault: Severity & gt; Hard & lt; / Hum: Severity & gt; & Lt; Default: PrimaryErrorCode & gt; & Lt; Mistake: Code & gt; 9150002 & lt; / Num: code & gt; & Lt; Err: Details & gt; Invalid or missing check number - tracking number, shipment identification number, or reference number & lt; / Err: Details & gt; & Lt; / Mo: PrimaryErrorCode & gt; & Lt; / Error: ErrorDetail & gt; & Lt; / H: Errors & gt; & Lt; / Extension & gt; Has anyone already used the UPS Parcel tracking web service with Delphi Client, and knows what is wrong? Here is the client cod...

java - Finding resource utilization on a web site -

I am doing a project to get CPU, memory and IO usage that loaded after logging in to the page goes. Anybody help me? The question is a bit unclear as you have not mentioned technology, if you are using Javascript , You can use and profile by others. If you are using Java then you can use it and other Of course, this is not a strange list, but unless you give concrete details , It is favored :)

New to C# Concepts -

I am doing a crash course in C # OOP and I'm curious to know that the "LIST" keyword is the code below Shows in: var actor = new list & lt; Actor & gt; (); thanks list & lt; T & gt; is a class with a type parameter, it is called "generic" and allows you to manipulate objects in a class object, especially for container classes useful for a list or queue. A container only stores things, it really does not need to know whether it is storage, we can implement it without the generic: Class list {public list} {} Add public null (object to add) {/ * Add to object 'Orange' to / add '*' /} Remove zero (object to revive) {/ * Remove 'toRemove' to make the public public ] [] (Int index) {/ * storage array in index Return value * /}} However, we do not have type security, I can misuse the hell from that collection: list List = new list (); List Add (1); List Add ("Uh oh"); List Add (2); Int i = (i...

c# - SQL huge selection of IDs - How to make it faster? -

I have a large volume ID that I would like to choose from DB. The usual way would be to choose blabla from xxx where yyy IN (id) option (RECOMPILE) . ( Option recompile is necessary, because SQL Server is not smart enough that this query is a big waste to put your query in the cache) However, SQL Server is thus Query on the query when the amount of the id is high, the parser, which uses it to slow down, give me an example: SELECT * to the table WHERE id (288525, 288528, 288529, & Lt; approximately 5000 ida, 403043, 403044) option (RECOMPILE) to execute Time: ~ 1100 msec (this gives the appx 200 rows in my example) versus: SELECT * 2888525 and 403044 options Time to execute with table WHERE id between (RECOMPILE): ~ 80 msec (this gives 50000 lines appx in my example) Even if I get 250 times as much data, it makes 14 times faster ... So I created this function to get my ID list and make something that would be appropriate The The agreement between the...

mod rewrite - help me in .htaccess with RewriteRule -

अब मेरे पास set.php? Mod = avatar set.php? Mod = जानकारी अब मैं इसे सेट / मॉड करना चाहता हूँ यह मतलब है कि इसका उपयोग करना RewriteRule ^ सेट /(.*)/?$ set.php? Mod = $ 1 इसका काम करता है लेकिन जब इसे खोलता है / सेट करता है तो मुझे 404 त्रुटि दे सकती है कि मैं इसे कैसे एक बार में बना सकता हूँ उस रीव्रेटरील ^ सेट / अगर यह एक्सएसआईएसआईएस ठीक है, अगर मैं नहीं चाहता यह समान set.php onlly (। *) /? $ Set.php? Mod = $ 1 क्या के बारे में: पुनर्लेखन ^ सेट / ([^ /] +) /? $ Set.php? Mod = $ 1

html - Is it possible to set the equivalent of a src attribute of an img tag in CSS? -

Is it possible to set the src attribute value in the CSS? Currently, what I'm doing: & lt; Img src = "pathTo / myImage.jpg" /> And I want to do something like this & lt; Img class = "myClass" /> .myclass {some- src = attribute: url ("pathTo / myImage.jpg"); I want to without using background or background-image: properties in CSS . Full task resolution ( ): & lt ;; Doctype html & gt; & Lt; Style & gt; .MyClass123 {Content: URL ("http://imgur.com/SZ8Cm.jpg"); } & Lt; / Style & gt; & Lt; Test and Task: Chrome 14.0.835.163 / Li> Safari 4.0.5 Opera 10.6 Checked and No : Firefox 40.0.2 (By looking at the Developer Network tool, you can see that the URL is loaded, but the image is not displayed) Internet Explorer 11.0.9600.17905 (URL never loads)

Check valid html C# -

Is there an easy way in C # to validate HTML file (.html)? You can try the article on dot net pulses. If you are not obliged to do this in C #, then it is usually using the best method to validate HTML. You can, of course, write a test of type in C #, pushing all of your HTML through W3C Vedicator, if it makes sense in your case .

vim - how to draw <Bar> on each 4th space -

I like (g) the VIM in the fourth position of the index of the pipe sign | To draw something like a vertical indentation line. I found this plugin :, but it only works for the tab, and I am using spaces instead of tabs. My .vimrc includes: set ts = 4 set sw = 4 set settab set softtabstop = 4 Thanks for helping You can highlight only every fourth place. It's simple and more effective, please see from my side.

unicode - Best Open Source Asp.net (ajaxable) Forum -

I am looking for a good forum to include in my application. I am a community server but it is not disclosed to the source, will be any Shogestian epicyclic. This forum should have an API to expand. And Unicode support I only know 2 open source for ASP.NET Forum. The first one, yet another forum is perhaps your best bet, it supports Unicode (UTF-8).

jquery - Ajax delete help -

I have 10 rows per line table I am using AJAX to delete records from the table. But when I remove a record, I am left with nine rows, which is not desirable. How to maintain 10 rows per page (wherever applicable) after removal And with the offer I also do not want to refresh the page Even if your data has been split it should be considered as a continuous list on different pages, Therefore, to find the next line (which will be the first line on the next page), take the steps through offset after the line removed and return it from AJAX response.

Set and Read/Retrieve cookie using javascript within a java file(.java) -

Let me cool it I am writing a new HTTP server using sockets in Java-language (not JavaScript) And I want to ask the client to set a cookie. I want to do this JavaScript (setin to read cookie). If this is not possible, then is there any other solution? Thanks to all of you. Your question / requirement is very ambiguous, are you not really confused or maybe ? Or are you using server-side javascript? Why do you want to do this for "http server"? Why would you like to write an HTTP server instead of using one or the other as an existing server? At least, in Javascript you can manage cookies, depending on the context in which you are talking in Java. If the servlet is used in context, and if in the JSP EL reference, use the URL in the streaming context, and if the "raw" socket reference is followed only HTTP state management specification and indirectly " Raw "data is also HTTP 1.1 specification while writing. But you should already know that as you ...

Flash hiding mouse right button click and closing control buttons -

I can fix a platform the size of a swf file while running (there should be no right-click on the screen, is there any small, big and close buttons Please help me First off should not be closed, there is no way to disable right click in flash, as long as you use javascript. Disables a universal code that basically "Flash right click", you've made it allows you to customize. Is good for the game and to increase user interactivity between your application Details about the solution can be found (Credit goes to Uza) There is a downside to this: .. This code is just such as Flash applications that browse a web Running on Hr, works for Firefox and Internet Explorer , use the following code to change your platform height and dynamic width until you full-screen and / or possible to use scaling Not to do that: Import flash.system.fscommand; / ********************** fullscreen flash system commands * "right" is set to full screen, * "false" to win...

Split a value and units in Ruby -

What is the best way to split prices and units, so you have: 13min.some_method ["value"] = 13 13min.some_method ["unit"] = "min" I think it should use unpack or division, but I I can get to work! How about: & gt; & Gt; "13 minutes" .scan (/ \ d + | [^ \ d] + /) = & gt; ["13", "Minimum"] Another way: & gt; I = "13 minutes" = ~ / [^ \ d] / = & gt; 2 & gt; & Gt; "13 minutes" [0, I] => "13" & gt; & Gt; "13 min" [I, "13 minutes". Lengthy] = & gt; "Minimum" # string is not the best because it can get rid of the delimiter, but your two strings are against each other.

java - setting Swing JInternalFrame lnf manually -

UIManager.put ("इंटरनलफ्रेम। एक्टिव बैकग्राउंड", नया कलरयूआईआरएसओएस (नया रंग (207,255,247)); UIManager.put ("InternalFrame.inactiveTitleBackground", नया ColorUIResource (नया रंग (207,255,247))); जेडीस्कटॉपपैन बाबाबड़पैन = नया जेडीस्कटॉपपैन (); JInternalFrame iframe = नया JInternalFrame ("उद्धार करने के लिए सस्ता", सत्य, सच, सत्य, सत्य); iframe.setSize (400,150); baTabbedPane.add (आइफ्रेम); मेरी आंतरिक फ़्रेम की शीर्षक पृष्ठभूमि स्टार्टअप पर सेट नहीं है? मैंने इसे समग्र JFrame init पर सेट करने की कोशिश की है, लेकिन बनाया है कोई फर्क नहीं पड़ता (इसके विपरीत मैं अन्य JFrame ui घटक को बदल सकता है जैसे कि MenuItem.background इस स्थान पर इसलिए मैंने सोचा कि यह हो सकता है क्योंकि JInternalFrame एक शीर्ष-स्तर के घटक नहीं थे, अर्थात एक टैबबेड फलक के नीचे, जिसे किसी अन्य बिंदु पर बदलने की जरूरत हो, लेकिन कहां?) कॉल करने के लिए सही जगह पर कोई भी युक्ति UIManager .com () के लिए JInternalFrame ? इसे अंततः मिला - डाल करने के लिए कॉल () JInter...

sql server 2008 - How to create a relationship between table and view in the Entity Framework -

I have a unit framework model that was generated by the Visual Studio 2008 Wizard on a SQL Server 2008 database. There is a view of the model that has entered into many-to-many relationships with another table through a logically joined table (applied to the database by an insert / update trigger) . Both tables are part of the visual model, but because you can not have a foreign key obstacle on a view, there is no connection between the view and the included table. Is it possible to create a relationship between the Entity Table and the View in the Unit Framework Model for this link? Thanks for any help. Yes, you can do this, but the GUI designer will not be able to estimate it for you. The first thing you need to do is the designer can not assess the primary key, so you will need that information. Now you can right-click on the empty space in the designer and then choose to add an association. In EF1, you will need to remove the FK field by pressing the client schema ...

asp.net - jQuery server-side button -

I have a button (ASP.NET 3.5), many of which are buttons, some of them are saving buttons, Nothing is there. I have to be normal, i.e. different controls by ID can not be called. My save button will probably be a member of the user's user = type = save = right click event event handler, which type of button should be pressed, so: $ ('input [type = Submit] '). Bind ('click', function (e) {// If you need to know how to establish this situation (this.type = "submit") {// do something here} else {// do something else} }); How can I do this? If I understand correctly, you have multiple types of buttons, both regular and submitted Please. You can do this in a function such as: $ ('input [type = submit], input [type = button]'). Bind ('click', function (e) {If ($ (this) .attr ('type') == "submit") {// do something here} else {// do something else}}); You can break it in a more readable way: $ ('input [...

c++ - Unable to compile basic GLIB program after GLIB install -

I can not compile this basic program by using glib.h ... #include glib.h #include stdio.h int main () {return (glib_major_version) || (glib_minor_version) || (glib_micro_version)); ; Return 0; } glib.h /usr/local/include/glib-2.0 , so I $ GCC-V-C-MCPU = V9 -i / USR / Local / Incorporated / Glib-02 Testimeter 2C Now let me configure the grid. But it is in /usr/local/lib/glib-2.0/include/glibconfig.h ; Strangely glibconfig.h is the file in the / usr / local /lib/glib-2.0/include directory and more odd this /usr/local/include/glib-2.0 directory Here's some more error message ... from /usr/local/include/glib-2.0/glib.h:32, testme.c : 40 :: 34: 24: from glibconfig.h: Not so file / directory Here is an extract of /usr/local/include/glib-2.0/glib/gtypes.h ifndef __G_TYPES_H__ defined __G_TYPES_H__ contains Glibconfig.h included glib / gmacros.h G_BEGIN_DECLS typedef char gchar; Typingface short group; The question is how should GCC get glibconfig.h? ...

javascript - JQuery: how to access multiple css classes using .attr()? -

मेरे पास निम्न है: & lt; div id = "unique" class = " Myclass xyz_345 "& gt; ... & lt; / div & gt; प्रश्न : मैं xyz _ के बाद क्या # का उपयोग कर सकता हूँ, यह देखते हुए कि मेरे पास 2 सीएसएस वर्ग लागू किए गए हैं? (ऊपर दिए गए उदाहरण में, यह संख्या 345 होगी)। मैंने निम्नलिखित की कोशिश की है, लेकिन यह काम करती है: var num_after_xyz = $ ('unique ') .attr ( "वर्ग") सबस्ट्रिंग (4)। var num_after_xyz = $ ('# अनूठा')। Attr (" वर्ग ") मैच (/^.*_ (\ d +) * /)।। चेतावनी (num_after_xyz [1]); यह नियमित अभिव्यक्ति काम करना चाहिए। यह कुछ भी दिखता है, उसके बाद _ और कुछ अंक, कुछ के बाद।

How to use multifieldquery and filters in Lucene.net -

I want to search a multi field on a lucene.net index but filter out the results based on a field. Here's what I am currently doing: There are definitions for indexing areas: doc.Add (new field ("id", id. ToString (), field.store.Yes, field.inindex.IN_TOKENIZED); Doc.Add (new field ("title", title, field.store.no, field.index.onlygd)); Doc.Add (new field ("summary", summary, field.store.no, field.index.org, field. TermVector.YES)); Doc.Add (new field ("description", description, field.store.no, field.index.org, field. TermVector.YES)); Doc.Add (new field ("distribution", distribution, field.store.no, field.index.un_TOKENIZED)); When I search, I do the following: Multifield skitter parser = new multifielded screener (new string [] {"title", "Summary", "description"}, analyzer); Parser.SetDefaultOperator (QueryParser.Operator.and); Query query = parser Text (text); Boolean extraction BCE = n...

python - Thread safe locale techniques -

We are currently writing a web application based on a threaded Python Web Server Framework (Cherry) and together Would support from multiple locations The Locale Module Thread does not appear secure Are there third party libraries or modules that provide locale parsing and formatting functionality in a thread-safe manner? Suggestions appreciated! Regards, Malcolm contains some of the functionality (and i18n / l10n For other great support), and I'm using it for some time, but it is far from an accessible port of code based on the locale - you'll have to type your code again. Also, it does not support the environment where you are not allowed to install an arbitrary extension like app engine and some hosted environments. Unfortunately I do not know a good option without such obstacles: - (.

How do I call a call method from XAML in WPF? -

मैं WPF में XAML से एक कॉल पद्धति कैसे कॉल करूं? जिस तरह से यह नियंत्रित किया जाता है वह आपकी विधि को एक में लपेटकर, और प्रयोग कर रहा है। मैं इस दृष्टिकोण के कुछ फायदों को दिखा रहा हूं , खासकर जब आप RelayCommand कार्यान्वयन की तरह कुछ का उपयोग करते हैं।

haml - Sass options in Rails when installed as a Gem -

I have established Hamal / Saas as a gem and it has been used with rail. I can not understand how the Sass :: Plugin.options option to pass Sass such as template_location and style does not work ( Since hamal / sauce is not installed as a plugin). GEM is required through Rail :: Starter # Mani Sass :: Plugin.options still should work - Rail "cine" plugin " , As opposed to the standalone.

editor - WPF RichTextBox TextChanged event - how to find deleted or inserted text? -

While creating a customized editor with RichTextBox, I have to face the problem of finding deleted / inserted text with information provided with text-spline. event. There are some useful data in the example, but I think that not all requirements have been included in it, assume that many paragraphs are included, and at the same time, selected text (which spans itself in several paragraphs Has happened) has been removed. With the example of TextChangedEventArgs, you have a collection of text changes, and each change only gives you the number of deleted or added symbols and its status. I have the only solution, to keep a copy of the document, and apply the given list of changes on it. But as the examples of texchanges do not only give us the number of symbols (and symbols) that were inserted / removed, so to show unknown symbols we have to put some special symbols (for example '?'), Whereas we Original Copy Document After implementing all the changes in the original ...

java - Parsing cookie headers in J2ME/BlackBerry apps -

When using HTTP connections in a Blackberry app, you often receive HTTP cookies in the answer header. Unfortunately, the cookie header There are no built-in APIs to assist in parsing. Has anybody objected to the third party library to help parsing the title (s) in more useful data? Creating some custom code that parses the name and value of the cookie, it is not very difficult, but I would like to accept other fields such as termination and domain areas within the cookie. Just follow up on this topic - I think I am writing my code for cookies parsing and firmness. Sometimes an open-source library is not ready and waiting!

r - How do I use plyr to number rows? -

Actually I want an autoincremented id column based on my cohorts - in this situation. (Km, cvcit) & gt; MyDataFrame Size Kimar cvCut cumsum 1 8132 23 10 8132 10000 778 23 10 13789274 30000 324 23 10 23658740 50000 182 23 10 28534840 100000 65 23 10 33943283 200000 25 23 10 37954383 250000 584 23 12 16546507 300000 110 23 12 29435303 400000 28 23 12 34697860 600000 127 23 2 47124443 600001 127 23 2 47124570 I need a column which is the new line names based on Kimmer / Seawwat group & gt; MyDataFrame Size Kimar cvCut cumsum newID 1 8132 23 10 8132 1 10000 778 23 10 13789274 2 30000 324 23 10 23658740 3 50000 182 23 10 28534840 4 100000 65 23 10 33943283 5 200000 25 23 10 37954383 6 250000 584 23 12 16546507 1 300000 110 23 12 29435303 2 400000 28 23 12 34697860 3 600000 127 23 2 47124443 1 600001 127 23 2 47124570 2 I will do it like this: Library (plyr) ddply (df, c (" kmer "," cvcut "), changing, newID = seq_along (kmer))

namespaces - What's the python __all__ module level variable for? -

इस सवाल का पहले से ही एक उत्तर है: 8 जवाब मैंने इसे देखा है अजगर / लिब स्रोत कोड में बहुत कुछ है लेकिन मुझे नहीं पता कि यह किस लिए है। मैंने सोचा था कि इसका इस्तेमाल मॉड्यूल के पहुंच वाले सदस्यों को सीमित करने के लिए किया गया था। इसलिए __ सभी __ पर मौजूद तत्व तब दिखाएंगे जब डीआईआर (मॉड्यूल) । मैंने थोड़ा उदाहरण दिया और देखा कि यह काम नहीं कर रहा था जैसा कि मैंने उम्मीद की थी । तो ... अजगर __ सभी __ मॉड्यूल स्तर चर के लिए क्या है? इसके दो उद्देश्यों हैं: स्रोत को पढ़ने वाला कोई भी व्यक्ति पता चलेगा कि सार्वजनिक एपीआई क्या है जब से का उपयोग करते हुए मॉड से आयात * , केवल __ सभी __ में सूचीबद्ध नाम आयात किए जाएंगे। यह मेरी राय में महत्वपूर्ण नहीं है, क्योंकि सभी चीजों को आयात करना एक वास्तव में बुरा विचार है।

How do I unhide Debug -> Attach to Process in Visual Studio 2008? -

I am using Visual Studio 2008 Professional at work. Recently, I found a new workstation. Someone else has installed all the software for me. For some reason, I do not see the "Attachment process" option on the debug menu. I looked into the options, but I do not see any such option as it looks like it should be hidden. How can I choose the "Attach Process" option on the debug menu? Go to Tool-> Customize See in the Categories list, in the Commands tab. Locate the debug entry on the right, select "Attach process ..." entry, drag it back to your debug pull-down menu.

How do I remove a field from a model in google app engine with java? -

Shows how to extract assets with Deltaer from a model in the palette. Is there any way to do this in Java? Thank you! Yes, there is a method for this.

asp.net mvc - Autofac doesn't like MVC Source -

I've added the ASP.NET MVC2 RC2 source code in my solution (using these instructions :) But now it has not been created due to an error from 'Autofac. The type 'System.Web.Mvc.IControllerFactory' is defined in the assembly that is not referenced. You must add a reference to the assembly 'System.web.mvc, version = 1.0.0.0, culture = neutral, public keycon = 31bf3856ad364e35'. I'm particularly confused about the MVC version 1. Before adding MVC source code, I was using MVC 2 (from binary) and was not complaining about Autofack. Autofac.Integration.Web assembly reference System.Web.Mvc You do not say that the AutoFac , But if you're happy to use Autofack version 2 (currently Beta), there is a build available on the net. See for details.

remotely called java method - how to access a local variable -

I want to create an RMI server that can also function as a client, though this factor works well - One problem is that for any particular server / client relationship, acting as a server (for the moment) the local variables are changing (and thus the method used to start remotely). is. So the next time I try to use this variable or return it, the original comes through unchanged variables. In C ++ (if you have an RMI) I could pass a pointer - but do I have Java underlying value? How are you transmitting remote objects? There are two mechanisms, remote slates and serialization. Since you are talking about accessing the field, I believe that you use the serialization (remote stubs are not just interfaces, methods only, fields). The serialized objects are transferred as a copy, they are only value objects that will not affect the "their" version on the server, whatever happens. If you need an object that is "live" on the server, you have to use a remote ...

javascript - jQuery.ajax gives "TypeError: Cannot read property 'documentElement' of null" on server but not local -

I have a problem with my jQuery code, but local copy works fine as you can see that If you come on, the following error occurs in the AJAX call: error: the property can not be read 'Null of document availment' " I have checked and re-uploaded and re-uploaded Everything that I can think of, the documentation said to make sure I am right MIME type was being sent, which I did not avail of. The offensive code is here: function change page agx (new page, method) {if (method ! = "Replace") {window.location.hash = newPage;} NewPage = newPage.substring (1); // Remove the hash symbol title = "speller sit 1 dot com |" + Fix cass (newpage.releast (/ \ g , "& Gt;")); // Set the window title NewPage = "ajax /" + New page + ".html"; // Add route if (newpage == current page) {return; // current page To Do not load it from.} $ .ajax ({// jQuery makes me feel like a code ninja. Url: new page, datatype: "XML", success...

ruby on rails - wrong number of arguments (0 for 1) when using 'form' -

app / view / front / get_months.html. Showing the ARB where the row # 1 has been raised: Wrong number of arguments (0 for 1) Extracted source (approximately # 1 line): 1: & lt; % = Render: partial = & gt; "Months",: local = & gt; {: Form = & gt; Form}%> RAILS_ROOT: / rails_workcopy / er_spending_report My get_month.html. ARB has only one line code if I type & lt;% = form.select (...)%> , the error still occurs ... can someone show me how to use a partial function? Thanks in advance! Try it (assuming you are passing the form through a block for the form :

php - jQuery AJAX timing issue -

In my backend, I am using jquery 1.4.1 and the latest UI 1.8rc1. I have defined some buttons that do some work ... one creates a certain type of page which calls a php file using serialized functions and then reloads the whole page. Locally it always works like charm! But as soon as I put it on my webserver, it only works 5% of the time. Code: button: {'seat erstellon': function () {$ .post ("web admin / page .create.serialize.php", $ ("# page-form"). Sort()); $ (This) .dialog ('Pass'); Location.reload (true); }, 'Abbrechen': function () {$ (this) .dialog ('off'); }}, When it gets interesting, when I put in a warning just before the location. Reload part - it will always work so it takes time so that serialization is executed but the page can not end before reloading. I know that serializing does not mean to reload the page, but I create a navigation etc. So I need to reload. (I was thinking about that time ... I could reall...

unit testing - How to start and stop an Tomcat container with Java? -

मेरे पास एक मैवेन प्रोजेक्ट है जो प्री-इंटिग्रेशन-टेस्ट (जेयूनिट टेस्ट) के लिए टॉमकेड कंटेनर प्रारंभ करता है। मेरे अधिकांश परीक्षणों के लिए आवश्यक है कि परीक्षण के तहत वेब-अनुप्रयोग को पुनरारंभ किया गया है। इसलिए मैं टॉमकेटल कंटेनर को पुनरारंभ करना चाहता हूं इससे पहले कि प्रत्येक जेयूनेट परीक्षण निष्पादित हो। अब के लिए मैं टॉमकेड कन्टेनर को कॉन्फ़िगर करने के लिए कार्गो-मेवेन 2-प्लगइन का उपयोग करता हूं। अतः कंटेनर को जावा कथन के साथ शुरू करना और रोकना संभव है? तो, क्या जावा कथन के साथ कंटेनर शुरू करना और रोकना संभव है? आपका उपयोग केस अत्यंत अजीब लग रहा है (टेस्ट के बीच कंटेनर को पुनरारंभ करना है) परन्तु इस पर चर्चा नहीं करें। आपके प्रश्न का उत्तर देने के लिए, हां यह संभव है और यह जावा API का उपयोग करके किया जा सकता है टॉमकेट कंटेनर शुरू करने के लिए और अपने युद्ध को तैनात करने के लिए, आप setUp () विधि में ऐसा कुछ कर सकते हैं: // 1) कंटेनर को इसके वितरण की ओर इशारा करते हुए एक यूआरएल से इंस्टॉल करने के लिए वैकल्पिक कदम Installer installer = new ZipURLInstaller (नया...

objective c - Change color of cursor in text field -

Image
मैं अपने टेक्स्ट फ़ील्ड में कर्सर का रंग कैसे बदल सकता हूँ? IOS 7 के साथ आप tintcolor को UITextField की संपत्ति बदल सकते हैं। यह पाठ कर्सर का रंग और पाठ चयन हाइलाइट रंग दोनों को प्रभावित करेगा। आप इसे कोड में कर सकते हैं ... textField.tintColor = [UIColor redColor ]; ... या इंटरफ़ेस बिल्डर में: आप UITextField उपस्थिति प्रॉक्सी का उपयोग करके अपने ऐप के सभी टेक्स्ट फ़ील्ड के लिए ऐसा कर सकते हैं: [[UITextField उपस्थिति] सेटटिंटकॉलर: [UIColor redColor]]; नीचे सिम्युलेटर स्क्रीनशॉट दिखा रहे हैं कि एक अन्यथा सामान्य आईओएस 7 टेक्स्ट फ़ील्ड लाल रंग के टिंट की तरह दिखती है। टेक्स्ट कर्सर स्क्रीनशॉट: पाठ चयन स्क्रीनशॉट :

winforms - Get a Unique ID for a Hard disk attached to a PC in .net -

As a question, I need some ways to get a unique ID for each drive connected to my PC. The reason behind this is that if I store the location of a file in DB and I want to get it at the later stage, I will not always get the file because the number of letters of the drive Changes on the base drives plug-in Check this link

javascript - Set focus to the end of table inside of div when adding a new row -

I have a table inside a div with the set height, when the table is bigger than div, scroll bar Appears. The problem is that if the div's scroll bar is at the top, leaving the second row hidden below, and the user presses the button to add a new line, then this row is added to the table below, so you can Check it out. Is it designed with Javascript, VBSPPTi or CSS anyway, so that it has been created so that it is visible when it is added? This is the code where the task will be called to add a new row. strRow = strRow + " gt; & lt; / div & gt; " Any help appreciated Will go. PD: I think it should be on VBScript or Javascript, not JQuery please. Thank you. Try Element.scrollIntoView (); It works in Firefox, IE 6+, Opera and Google Chrome / Safari. You can also provide a boolean for the function, in which it will specify how to scroll the element: // Element.scrollIntoView (the original element) ) Align the element with the top; Elemen...

custom search provider - How to best Implement a Google CSE for a WordPress Blog -

What is the best way to implement Google Custom Search on WordPress blog, a plugin or just normal way? Are we still searching in the subject? Use PHP? Multiple answers:

How to order projects alphabetically in a Visual Studio solution with solution folders? -

There is a bug in Visual Studio (2008, probably 2005) which means that under the Solutions folders, the projects are not automatically ordered sequentially alphabetically. . What is the best solution for this problem? Choose a project, start changing its name (F2 or click it again) and its After a separate project click projects themselves sort themselves in alphabetical order.

c# - WCF PrincipalPermission Attribute Exception loggin -

I have a WCF service on which there are methods of the principalprimation attribute when the user has appropriate permissions to access those methods. If you try, the feature is thrown away by the Security Execution, but when the exception is thrown into the property, it is not possible to turn the attempt around the call. I tried to experiment with a logging handler using the exception shilling attribute from the Enterprise Library but it does not write any logs to write a WCF behavior extension to try and catch the exception Also try, but extensions can not match the exception management properly. Does anyone have a good idea of ​​getting this? Two suggestions for you: 1) new PrincipalPermission (. ..). Instead of the attribute ( ). 2) Take a look at the comments (# 5 I think). Ignore the link given to that code - the code is here. Nick Berardi has created an exception handler feature to turn the exceptions specified in web reactions. Now it does not match your scen...

iphone - UIWebview crashes when I load certain webpages -

I am hitting my head against the wall, it is trying to not understand any luck for two days. I have a basic UIWebview that is navigating to a page. There is a JavaScript function on the page that crashes UIWebView but works well in Safari. I have suffered losses. I get the following accident error: 2010-02-03 08: 30: 16.559 Vasappe [11380: 207] *** - [Domestic Structural Complexity Continuation]: For example, the unfamiliar selector Sent 0xf53e60 2010 - 02-03 08: 30: 16.561 ISP [11380: 207] *** Due to 'NSINID IDA Aggression Oppression' due to unlimited exceptions, the reason for canceling the action: '*** - [Domestic Structural Complexity Continuation]: 0x for example unrecognized selector F53e60 ' Thanks for any help or direction. The problematic javascript file can be viewed on an example of the new Gordon Flash sequence. With a reference to that page, file a bug with the apple UIWebView Should not crash even if html, css or javascript is defective....

How can i remove all attributes from any css selector? To override and reset any css id selectors? -

# खोज-बॉक्स {-मोझ-सीमा-त्रिज्या-नीचे की ओर: 0 पिक्सेल; -moz-बॉर्डर-त्रिज्या-bottomright: 0px; पृष्ठभूमि का रंग: #ffffff; सीमा: 0 पीएक्स ठोस # सीसीसीसीसीसीसी; सही नाव; गद्दी: 8px; स्थिति: रिश्तेदार; शीर्ष: 0; चौड़ाई: 20em; } # खोज-बॉक्स {/ * यहां सभी सीएसएस घोषणाओं को निकालें * /} आप नहीं कर सकता। आपको उनमें से प्रत्येक को मैन्युअल रूप से रीसेट करना होगा यदि आपको मुख्य अंतर के बीच कूदने की जरूरत है, उदाहरण के लिए, जब कोई उपयोगकर्ता तत्व पर क्लिक करता है, उदाहरण के लिए, आप इन तत्वों से खुद को निकाल सकते हैं, और उन्हें एक कक्षा में डाल सकते हैं। तो यह: # खोज-बॉक्स {रंग: नीला; } यह हो गया है: # खोज-बॉक्स {रंग: लाल; } # Search-box.focused {color: blue; } अब किसी भी समय आपको किसी तत्व के प्रदर्शन में कट्टरपंथी परिवर्तन करने की आवश्यकता है, । केंद्रित वर्ग को जोड़ें या निकालें।

java - How to wire a custom MailProducer with jBPM 4.3? -

मेरे पास एक कस्टम मेल निर्माता कार्यान्वयन है जो "वैकल्पिक" सामग्री प्रकार के साथ बहुपक्षी MimeMessages बनाता है। लेकिन कैसे क्या मैं डिफ़ॉल्ट के बजाय मेरी कार्यान्वयन को तार कर सकता हूं? (Org.jbpm.pvm.internal.email.impl.MailProducerImpl)

Fluent NHibernate delegate mapping Func -

Looking at this (horizontal) object graph that I does not change the public class email Can {public email (string e-mail) {...} // a bunch of useless stuff} Public Interface Ipson {Email Email {get; Set;}} Does such a thing exist? Map (p = & gt; p.EmailAddress). Use (s = & new; New EmailAddress ()); Essentially the person interface will not take a string and I do not have an email class so I can not modify it ... Fluent is not sure about NHibernate, but you can create your own IUserType which can be found in the email To string and vice versa. It's really easy: see for example.

jquery - Anything Slider: How to use the .cur (class) when slide jump is activated? -

Does anyone know when using a static link to jump between the slides? How to use the square? I'm doing a good job with my slider static link, but I would like to highlight the current active link. Cheers Stephen Mihan This is my solution together. The ID of my tags is like 'Slide 1', so I created a new variable named Current Page which creates a selector that adds # slid-jump to the variable base. Context page. Then I add 'Q' class based on that variable and remove it from the current one. To get you started, add class = 'cur' to your initial link. Hope it helps, sorry that this is a little messy, but today I am in a hurry. base.setCurrentPage = function (page, moved) {// if (move! == wrong) basis. $ Wrapper.scrollLeft (base.singleWidth * pages); // update local variable base.currentPage = Page; $ ('# Slider n' aur ''). RemoveClass ('cur'); Var currentPageNow = '# slide-jump' + base.currentPage; $ (CurrentPa...

perl - Looping through a dataset and handling missing values -

I am looping through a large data file and I am finding the type of variable in each column, such as Whether it is an engineer or a float etc. It works perfectly, though, at the moment it is still very basic and I want to add another idea. So far the announcement of the variable is based on the second line of the data set. (The first one is used as the header.) Here's the beginning of the code: #! Use / usr / bin / perl warnings; Use diagnostics; Getopt :: Use Std; Obtain ("I: S: T:") or "Bad Options: $!" Die; If ($ opt_i) {INFILE open, "& lt; $ opt_i"; Chomp ($ headline = & lt; INFILE & gt;); $ Sec = & lt; INFILE & gt; } And (die) "input file is given \ n"; } If ($ opt_t) {$ tablename = $ opt_t; } And {$ tablename = $ opt_i; $ Tablename = ~ s / \. W \ //; } If ($ opt_s) {$ sep = $ opt_s; } And {$ sep = ","; } $ Headline = ~ s / \ "//g; $ headline = ~ s /. / /___g; @header = split / $ sep /, $ headlin...

javascript - jquery submit event and return false -

Hi, I check the blank field in the form and warn the user. But this user posts a warning when I warn the user that I can not return the page to refresh $ ('# loginAccount'). Submit (function () {$ (this) .find (': input: text'). (Function (i) {if ($ (this) .val () == "") {// alerts ($ ('Label'). Eq (i) .html ()) $ ('# Alert3') .html ('Please fill in all fields.'); Return;}}}}}); You are currently returning from each of you There is a need to do this, it is a track that it is valid and will then return that value back to your submission.

In html/JSF - How to make any component respond to clicks? -

I changed the content of this question because I did not think the last one was made correct. I would like to know that component handles events such as mouse clicks / hover etc. of a JSF / Richfish ... Mouse button on target mouse button and good to click on mouse Make the button Thank you! Attributes in all (visual) components such as onclic , Onmouseover , onmouseout , onfocus , etc. This allows you to run the javascript code when a specific event is removed. For example: & lt; H: Input text ... onclick = "alert ('click');" /> Regarding your needs, you can try to do something like this: Pre> & lt; H: command button ... style class = "aCssClass" onmouseover = "this.className = 'other CSS class'" onmouseout = "this.className = 'aCssClass'" /> In other words, the button will be displayed about the CSS class aCssClass , and when the cursor enters the button, then it is used ...

python - Overcoming the "disadvantages" of string immutability -

I want to change the value of a particular string index, but unfortunately string [ 4] = "A" picks a TypeError , because the wire is irreversible ("item assignment is not supported"). So instead I used the waste instead string = string [: 4] + "a" + string [4:] Is there any better way to do this? The strings in Python are irreversible, such as numbers and tuples, that means you can create them, Can move around, but can not change them. Why is it like this ? For some reasons (you can find a better discussion online): From the design, the string in Python is considered to be original and irreversible. It uses better, safe programming styles. There are efficiency gains in the reliability of the strings, mainly in the field of the following storage requirements. It also saves the wire to use as a word key If you see a little dragon around the web, you will see that "my How to change the string "is the most frequent advice f...

osx - Prevent Email From Being Sent via Applescript -

I have the following AppleScript (below). I'm trying to confirm sending an email. This Apple script has already been successfully In Mail.app, the "Outbox Rules" (using the Mail Acton) is connected, and I have verified that when it is (at the time of sending) it runs. The ultimate purpose is to pop a dialog to the user, by asking if they really want to "send email" if not, stop sending email. The current script tries to delete the message, but does it not work any ideas? List for the rule to perform mail operations with the "mail" message message using the message from the message. Repeat this message with this message to display the Set Message Set dialog in context "Send"? Button "OK", "Cancel"} Default button 2 If the button is not given equal to "result", then delete this message, if the end repeat end mail action is I think the "cancel" button in the display dialog is immediately...

model view controller - Games: Who is responsible for display? -

What institutions should attract themselves? I have used this approach: it is easy and it works, but after learning MVC-pattern I feel uncomfortable about it. It is difficult to change the art style when all the display logic is buried in the model. One can present a visible class, which takes level in the form of an argument and pulls it, but this will mean identifying the unit type and a "switch" - the statutory, which I learned It's too bad, too. A place for drawing should be a place, in a way that is extensible, easy to change, clean and dry? /p> "post-text" itemprop = "text"> There is nothing wrong with the abstract design method in your organizations, which allows them to decide how specifically Drew for small games, which probably will not grow much. I have used this method in a small number of projects and it works great. Actually to use your game resources as a proxy for drawing operation. For example, an enemy unit can suspe...

visual studio - Issues exporting an Excel file from Crystal Reports -

I have an issue exporting crystal reports to the exile file. I tried both options of exporting Excel data and exporting as Axel file when I export my crystal report as an Excel file, I do not sort any field in my Excel file When I export the report as Excel data, when I open in Excel, the headers are actually messing the first three headers in all the columns Which appears in the end - which does not matter to me. Do anyone know how to change export options in Visual Studio? I am using Crystal Reports Visual Studio and I do not know how to change any of these options. It seems that your report is not optimally exported for Excel, and this is not the view studio or export option which is the problem here, depending on your version of the crystal, there are some tips: / P> 1) Make sure all calls The headers are the same width and left-most position, which they are in the form of related data. 2) Reduce the gap between the interval can be the difference between the column...

uiviewcontroller - Viewcontroller question in iPhone SDK -

I'm an iPhone app newbie I have a visual controller and after initializing the first one directly loads a different view controller Want to do Any help would be appreciated. :) Cheers Sebastian Use a UIAV Control Controller Using -initWithRootViewController, and then -pushViewController: Animated: With your second view controller, no one is passing for animated.

jquery - Check whether specific radio button is checked -

I am trying to return and if it has been selected or not I have tried many things but I can not find it right: & lt ; Input type = "radio" runat = "server" name = "testgroup" id = "test1" /> gt; & Lt; Label = "& lt;% = test1 .clientID%>" style = "cursor: hand" runat = "server" & gt; Test 1 & lt; / Labels & gt; & Lt; Input type = "radio" runat = "server" name = "testGroup" id = "test2" /> gt; & Lt; For label = "& lt;% = test2.ClientID%> & gt;" Style = "cursor: hand" run = "server" & gt; Test 2 & lt; / Labels & gt; & Lt; Input type = "radio" runat = "server" name = "testGroup" id = "test3" /> & Lt; == & quot;% = test3.ClientID% & gt; Label for; Style = "cursor: hand" & gt; Test3 & lt; / Label...

ruby on rails - jquery to prototype format question -

I am currently using the facebox_render plugin for Rails, and I'm trying to work without jquery (hence using prototype). I found it 99% functional, but there is a line in which I have difficulty. How do I use the following prototype? link_to_function (name, "JQuery.facebox (function () {# {remote_function (options)}})", html_options || options.delete (: html)) I am not familiar with the prototype, then it is likely that there is actually a simple solution: p this jQuery.facebox (function ...) Bit that is causing me sorrow. is a plugin that depends on. That is, it depends on the loading of jQuery work. To use Facebox, you have to load jQuery. Try using Facebox prototype JS port, see:

asp.net - passing multiple values from multiple textboxes in jquery -

Below is a jquery script that takes an input from textBox1 and passes it to a web method, giving the person's name And displays it in Textbox 2. The web method has only one parameter, the user initials. & lt; Script type = "text / javascript" & gt; $ ('# Textbox1') Live ('keydown', function (e) {var keycode = e.kcode || e.which; if (keycode == 9) {e.preventDefault (); $ .ajax ({type: "post", url: "Default.aspx / GetName", Content Type: "Application / Jason; Charset = UTF-8", Data Type: "Jason", Data: '{"value1": "' + $ ('# Textbox1'). () + '"}', Success: function (data) {$ ('# textbox2'). Val (data.d);}});}}); & Lt; / Script & gt; I want to be able to pass two values ​​of two text boxes for a web method, for which two parameters are required, how do I modify the jquery code above to complete it? Can i do You add parameters for the data...

c# - Looking for patterns/best practices for calculating complex discounts -

I am developing a value calculation engine. I have seen everything and there is nothing in it that really fits Which we should However, now I'm looking at how to implement specific prices and / or exemptions. I do not want to present a rule based engine for my end users because they will not get it. For example, when you order an ItemX, the price is $ 30. But ItemX costs $ 20 with ItemY or when five itemX items are ordered, after each, only $ 15. Where to start from any thoughts? How to take it? Perhaps some (open source) examples of such applications in which these practices are? Any one (technical) pattern I could use? Preferably thanks in advance in C #! Find a decorator pattern to look at similar situation and become a good option Check out: Cheers In addition, I am also checking for a straight type pattern that is looking to apply the discount:

flash - Default variables with multiple developers -

This may be a weird question, but I (maybe using namespace?) Is different if there is any way Thinking efficiently I ask the default variable in a class of a developer in the ActionScript project because we are currently working on a series of flash games: 24 in total Each shell is loaded by a container. Shell gets a flash game for which the game is loading. In our development environment (Flash / FlashDek velop), there are no flashwares, so defines a constant in AS that when there is no flash, what game loads to load: / ** game is not set through the Ultimate Flashwork * / Public Stable Command DEFAULT_GAME: string = "playname"; Therefore each developer changes the game on which they are working. However, to make changes in the repository (SVN), the developer has to change it back or the change will have to be reversed, and each god will have to change it in his game when another will replace it. In a way to specify the default parameters like flash IDE or flash...

sharepoint - Accessing SP 2010 Object Model from Silverlight 4 Application -

I have a Silverlight 4 Beta application where I want to use the SharePoint object model to upload a document to a SharePoint site It should be quite simple, except that the exception is thrown on: using (SPS ite sitcom = new SPS ite (site call URL)) could not be found on the web application. Verify that you have typed the URL correctly. If the URL should serve the existing content, then the system administrator may have to add a new request URL mapping to the desired application. This special exception is actually really well-documented, it's obviously a real underlying issue masking. There are some things about which I have read and try without success : DNS / Host header : This exception occurs when the specific URL is not in the IIS metabase, it is being controlled by DNS in my web application in the IAS The web The AAM set up and host header on default. I also tried to run the code without using the FQDN of the site, e.g. Http: // Service Name: 4860 Permissi...