Posts

Showing posts from February, 2014

asp.net - How to modify front of URL in Silverlight Navigation app? -

Using the Navigation Framework, my Silverlight application is a very beautiful end to its URL due to the use of URI mapping. But the end of the front still looks worse, like: http: // server: port / silverlightpage.aspx # / uri-mapped-part How can I see the "SilverlightPage.aspx #" portion well, preferably removing ".aspx #"? You can use the URL routing that is part of the ASP.NET MVC or part of the regular ASP.NET Available in the form Edit: To answer your question in the comment: T has worked with itself, but if you use "routing with webform "Section, then it should be understood in detail that whatever I gather, you add routes Can. ("Some routes", new route ("Silverlight page", new customhighthands ("~ / SilverlightPage.aspx")));

css - Make a relative-positioned block element the same size as its contained absolute-positioned element -

OK, I am trying to take several divs and all of their contents, and pile them over each other In which the default method is seen in the normal flow of things (# stack) through the following method: CSS: #stack {position: relative; Display area; } #stack div {status: absolute; Left: 0; } HTML: & lt; Div id = "stack" & gt; & Lt; Div & gt; & Lt; Img src = "picture / 1.jpg" & gt; & Lt; P & gt; The first image & lt; / P & gt; & Lt; / Div & gt; & Lt; Div & gt; & Lt; Img src = "picture / 2.jpg" & gt; & Lt; P & gt; The second image & lt; / P & gt; & Lt; / Div & gt; & Lt; Div & gt; & Lt; Img src = "picture / 3.jpg" & gt; & Lt; P & gt; Third image & lt; / P & gt; & Lt; / Div & gt; & Lt; Div & gt; & Lt; Img src = "picture / 4.jpg" & gt; & Lt; P & gt; The fourth image & lt; / P &

c++ - Calling pointer-to-member function in call for a function passed to a template function -

This is a given function template that I'm trying to use: template & lt; Class process, class btnode & gt; Zero Post Order (Process F, BTnode * Node_PTR) {if (node_ptr! = 0) {postorder (f, node_ptr-> left ()); Post Order (F, Node_PTR- & gt; Correct ()); F (node_ptr-> data ()); }} This is my call, and the function that I am passing: zero city_db :: print_bst () {Posters (and city_dib :: print, head); } Zero city_db :: print (city_record target) {std :: cout & lt; & Lt; Target.get_code (); } This is the compilation time (G ++) error I receive: CityDb.cpp: 85: From here immediately BinTree.template: 80: Error: 'F (...)' to call the Pointer-to-Member function. ' 'or' -> 'should be used : *** [Citibob] error 1 this line < Regarding the code> f (node_ptr-> data ()); in the function template. This data structure is for project. The assignment was modified so we do not need to give the functi

python - How to use IPython with IronPython -

What is the process of using the Ironpathan as a Python interpreter for iPython? I know some issues first: But now these problems should be fixed, how do I really know about this? The installation does not recognize IronPython as the version of Python interpreter, it is not that I thought it would be. But I'm wondering how to do this how to do this. I (ideally) had the ability to run both the CPython and IronPython versions of iPython on the same machine IPython scripts that are installed in / usr / bin / ipython There are two lines of code for the interpreter to be called: Start with IPython Import_Python start_ipython () Run under IronPython and see how it works. But by February 2011, it seems that there were still problems: edit : it works now See,

Zend Framework SQL update query -

How do I write this SQL in the Zend Framework way? UPDATE register SET balance = (remaining + 10) where added & gt; 1259 9 44184; I can not find any example on the website of the website or the web. Do I need to use " Zend_Db_Expr "? "post-text" itemprop = "text"> To install the framework documentation $ Data = array ('balance' = & gt; 'balance + 10'); $ N = $ db- & gt; Update ('register', $ data, 'added_date> 1259 944184');

c# - Windows service and changing timezone -

I have a Windows service with .Net 3.5 in C #. It was running on the server for a few weeks when it came to know that the server's timezone was not set correctly, it was right but the service was not restarted. I am surprised that this service did not change the clock. My question is, will it also be a problem during daylight saving time switches? And if so, what can be done about the restarting of the service? Handler for the event However, it does not work directly in service: This event is only lifted when a message pump is running in a Windows service, unless the hidden form is used or the message pump is manually started, this event will not be raised. For a code example that shows how to handle the way system events use a hidden form in a Windows service, see the class. You need to see Example 2 on this second page: Example 2 The following code example shows a very simple Windows service that runs events and events, for example a service called Simple

Confused over getting GPS location in Blackberry -

I am really confused about getting the user's GPS location. Do I have to apply different logic for GSM and CDMA devices ? In addition to this there are several ways to get GPS location (cells, stand alone, cell support etc.) which are really confused to establish norms..and some networks have some modes (eg. Do not deny. Do I know that autonomous mode works for everyone but it can not be used on high buildings inside buildings ... so that does not make sense.

database - MySQL JOIN Abuse? How bad can it get? -

I am reading a lot about relational databases on each SELECT using several joint statements. However, I was thinking that there is a problem in the long term while misusing this method. For example, we say that we have a user table, I will usually add the "most used" data instead of doing any additional jons. For example, When the "most used" data is called, the user name, image, and location will be displayed. This data will always be required when displaying any user interaction on the website, for example: each comments table JOIN for articles . Instead users & amp; Use the information on the users_profiles tables, just the user table to get 'location' and 'display'. This is my attitude, although I know that there are very good and experienced programmers who can give me a word of advice about this matter. My questions are: Should I try? Being conservative with Jones? Or should I use them more? Note: I have to ex

NHibernate: Same class for multiple tables -

I have a file attachment class (file attachment) which is used in many other classes. For example, there are many attachments in one article. One category contains multiple enclosures. These attachments are actually the same file attachment class, but there are clear reasons that they are persisted in different tables such as the article_FileAttachments table The file attachment for the article and Category file attachment in the Category_File Attachment table. How can I represent this relationship in nhibernate mapping? Thx Please refer to chapter 8 for multiprogramming mapping rules with NHibernate. In short, you will need a differentiation column to specify which table is different to that, here is an example from the NHibernate documentation, or if you use legacy You will only need to map your derivative classes in the form of subclasses and with their base type class mapping, you must specify the datatable name for each of them. & lt; Class name = "IPaym

c# - .NET database connection pooling error occurred? -

मैंने web.config फ़ाइल में कनेक्शन स्ट्रिंग बना दिया है। & lt; connectionStrings & gt; & Lt; नाम जोड़ें = "Test_registration" connectionString = "डेटा स्रोत = DOTNET \ SA; प्रारंभिक कैटलॉग = परीक्षण2009; उपयोगकर्ता आईडी = प्रशिक्षु; पासवर्ड = प्रशिक्षु 123" प्रदाता नाम = "System.Data.SqlClient" / & gt; & Lt; / ConnectionStrings & gt; और सीएस फ़ाइल में एक कनेक्शन खोलने के लिए एक कन्स्ट्रक्टर बनाते हैं। सार्वजनिक मुख्य_कनेक्शन () {sql_conn = नया SqlConnection (System.configuration.configurationManager.ConnectionStrings [ "Test_registration"] ConnectionString)। sql.conn.open (); } लेकिन सर्वर पर प्रोग्राम के रनटाइम पर मुझे कनेक्शन पूलिंग त्रुटि मिल रही है। क्या कोई मुझे बता सकता है कि मुझे कनेक्शन बंद क्यों करना चाहिए? मेरी प्रोजेक्ट सीएस फ़ाइल की वेब। कॉन्फिग फाइल में जहां मैं कनेक्शन खोलता हूं? मैं उस क्लोज़ () कथन को केवल एक बार लिखना चाहता हूं जब कि मैं केवल एक बार कनेक्शन शुरू करता हूं। यहां कनेक

asp.net - Login control - error -

There is a login control on your ASP.NET (2.0) page. I handle such Logingin events have: protected void login L_logingin (object sender's cancel Aventarj e) {// Get the database and searches the user if (Ughrtebl! = Null & amp; Ughrteblkros Kkount & gt; 0) {int userID = convert. ToInt32 (userTable.Rows [0] [ "UserID"]); HttpCookie userIdCookie = new HttpCookie ("UserID", userID.ToString ()); Response.AppendCookie (userIdCookie); } And (e. Canal = true;}} found in the user database. E. Canceled at the end of this function is still set to false. But then LoginError. log is not one of them appears on the failure page me how to debug not know that it: ( have you certified event? & lt; asp: Login ID = "Log 1" run = "server" on authorized = "Mayonatiket" & Gt; Private Zero MyO nAuthenticate (object sender, AuthenticateEventArgs e) {bool Haadikrit = false; isAuthenticated = YourAuthenticationMethod (Logi

c# - How can I send input to Visual Studio using Windows API -

I work like an extender (trying to develop user systems and hooks) The user selects some text and presses a hotkey and spreads). It should work with Visual Studio I want to implement it using Windows API because I want to develop an app that works globally with any application (whether you are using VS or WordPad Yes, you have the same functionality). I'm able to do this successfully with Notepad, WordPad etc. using EM_GETSEL and EM_REPLACESEL messages. But these APIs are not working with Visual Studio or MS Word. Which API should I be able to use 1. Find out which text is selected. 2. Send input to the editor. I am programming in C #. If you should know what I am trying to do ... I am trying to make a universal port of junk encoding which works on any editor. Therefore all help would be appreciated. Why do not you use the system.indo.form.second user to emulate keyboard input Class for? You can use it: SendKeys.SendWait ("^ C"); // CTRL + C var se

javascript - Did button actually click? -

I have some javascript that ends with the click of a prologue on a button: Click on document.getElementById ("myButton"). The result in the form presented as the use of a function call: & lt; Form onsubmit = "submit_this_form (this); returnback;" Action = "" method = "post" & gt; It seems that the actual button is not going to be a good percentage of the time of click or the form is not being submitted. I think the button is going to be clicked and I know that the code is being called because I have a counter embedded and I can see that it is being executed. My question is ... is there an event or a way to verify that the form has actually been posted? By the way, I do not have control over the HTML code, so I can not change the tag content. & lt; Form onsubmit = "submit_this_form (this); return false;" Action = "" method = "post" & gt; Returning after submit_this_form () preve

excel vba - collapse subtotals to level 2 using VBA -

Do anyone know how to use subtitles (once created) to use VBA for the collapse of level 2, So that I just see the summary? Found in the MF Excel collection question - ActiveSheet.Outline.ShowLevels 2 < / P> When you know that simple ...

c# - How to get unique entries of products in a List<Order> with LINQ -

मेरे पास एक क्लासिक ऑर्डर -> ऑर्डर पंक्ति परिदृश्य ऐसा कुछ है: सार्वजनिक वर्ग आदेश {सार्वजनिक इन्ट आईडी (प्राप्त करें); सेट; } सार्वजनिक स्ट्रिंग नाम {get; सेट; } सार्वजनिक सूची & lt; OrderRow & gt; आदेशरेखा {प्राप्त करें; सेट; }} सार्वजनिक वर्ग OrderRow {सार्वजनिक इन्ट आईडी {get; सेट; } सार्वजनिक int ProductId {get; सेट; } सार्वजनिक int राशि {प्राप्त करें; सेट; }} और एक सूची & lt; आदेश> आदेशों की वह सूची से मुझे सभी अद्वितीय उत्पादइड्स की एक सूची प्राप्त करना है। मैंने इसे इस तरह हल किया: var ऑर्डर = नई सूची & lt; आदेश & gt; () ; // TODO डीबी var उत्पादों से दिए गए आदेश = नया शब्दकोश & lt; int, int & gt; (); ऑर्डर। फोरेईक (ऑर्डर = & gt; ऑर्डर। ऑर्डरर्स। फोरेईक (पंक्ति = & gt; उत्पाद [पंक्ति.प्रोडक्टआईडी] = पंक्ति.प्रोडक्टआईडी)); लेकिन मुझे डिक्शनरी के उपयोग के बारे में प्रश्न मिल गए हैं और मैंने LINQs समूह का उपयोग क्यों नहीं किया और यह भी टिप्पणी की है कि यह स्पष्ट नहीं था कि यह कैसे काम करता है। मुझे लगता है कि समाधान ठीक ह

c++ - Design choice with a container class that several classes use -

I have a class that wraps around a list called an explosion group (which I explain to the explosion (a Other class). My basic design choice, and which was running for a while, was an explosion group in the 'level' class which runs all the levels. Any class (ships or owners) Like) that is caused by the explosions in those works, they crossed the tasks to this explosion group Originally, the level blast group had started sucking in all the blasts (hence it was called All Explosions). void Foo :: Explode (AllExplosions and explosions) {. .. // Create an explosion explosion. Add (newexpliance);} Recently I ran into a problem where this solution would not work because I did not have any of these functions Need to make an explosion, and only those functions Will pour. Make no sense and b) do not work correctly. In this way I come up with the idea that each group that explodes has its own explosion group. This allows classrooms to be allowed to deal with the blasts, alth

objective c - keyUp event heard?: Overridden NSView method -

Update: Now I'm overriding an NSView keyup method from an NSView subclass which is set to the first responder as below, But still there is no evidence to see it being called. @implementation svsView - (BOOL) accepts FirstResponder {return yes; } - (zero) key up: (NSECT *) Event {// - Keeping Up Chees - NSLog (@ "Keys Enhanced!"); } @end - Original post - I'm new to Coco and Obj-C and am trying to do one (zero) key: from within the control of my controller class (Which is of the type NSC controller itself) I'm not sure that this is the right place, however, I have a series of sets for each unique key equivalent (IB button attribute) and call each my (IABTP) key input method Which does And the identification of each key on the other object. It just runs fine, but I also want to track when every key is released. - Original [bad] example - @implementation svsController // init / / IBActions - (IBAction) Key Input: (id) sender {// - stuff below Key} - (zer

jQuery.get callback not firing from C# ASP.Net response -

I have a Bucommarket, which is clicked on, opens a Div popup on their current page (www .cnn.com). This div has a button, which requests jQuery.get for my application domain when clicking. It's all working fine, but I'm getting an error on the reaction. This is the function that requests function postWishXML () {jQuery ("ServerSponse"). AjaxError (function (event, XMLHttpRequest, ajaxOptions) {// enter here}}; Var Wish = wishObject (); if (will == false) {jQuery ( '. Srhwarrspons'). Html (' Please enter a gift title '); jQuery (' GiftText. ') val (' ').} other {jQuery ('. ServerResponse '). Html (' '); Var WishXML = Create XMLTags (desire); JQuery.get (root +' / app / service / toolbar / Wishlist Popapkshaiks', { 'SAP' cookie, 'desire': WishXML}, Response, 'text');} } This is the server code Public Zero Processing Request (HTTP Reference Reference) {if (Se curityContext.IsAut

wcf extensions - What is WCF dispatch pipeline message flow -

I am trying to gain a better understanding of the dispatching process of WCF, especially the impact and effect on various expandable points. From the web pages listed below, it appears that WCF will do the following sequence in the following sequence that a message sender has been passed by the channel stack. Operation Selector Message Formatting Parameter Inspector Operation Invitation. I am trying to find I have some options to solve a problem and in a way I am thinking that message inspector, operation selector, message formatting and operation invite To use the combination of Unfortunately, my observation indicates the sequence of execution, as follows: Operation Selector Message Inspector Operation Invoicer (Invoke ()) I can understand a small difference where a custom invoice allocated the input () method is called before formatting the message because Ndesh formatting section essentially requires the message set to deserialising appropriate action t

arrays - How do I "add" strings in PHP - not concatenate, but "add" them. (as if each character was a base 36 numbers) -

Unfortunately, I inherited some code (C / C ++) that manipulate some strings and now I need to copy / port it on. Php can therefore be accessed on this functionality internets Specifically the functionality takes some arbitrary strings and combines them together "(C code repeats the character array and then to make sure Some checks out that they are in alphanumeric category) I can not find specific code examples on how to do this (I am not a PHP developer) - did anyone tell me some resources Could that explain it? (How to manipulate the string / character array originally) Edit In response to some comments and replies: I want results in ASCII, but essentially I have a base 36 I'll add the number. C code is now converted to base 36 (ASCI), then connects each element together (does not take it - though the original author had intended - and it "adds" to some weird reason "from the most important to the least ) Then the converts converts to ascii back can b

Algorithm needed in any laguage - Related to Arrays -

I have a question where there are four arrays, two for men and two for women. The male array is aging in a growing order and the second array is the height of men in increasing order. Now if a man marries a woman, then he becomes the age of the man, men on the left side of this man should marry women with women on the left. And the officers of this man should marry women on the right side of this woman. Example: If the men's age range is {8, 9, 23, 25, 27, 28} .. and women are age arrays {7 9, 12, 20, 28, ...} And if a 27-year-old woman has married a woman from the age of 20, then men 8,9,23,25 should marry women from 7, 9,12. No matter if they do not get married, but if they marry, then this matter should be a case. After the marriage, they have children on the basis of height Array, if the difference between couple is difference difference 0 then they have 7 children, if the difference in height is 1-2 then they have 6 children, If the height is 3-4 then they have 5 c

cocoa - Centering Windows on screen -

Small and sweet: How can I tell the interface builder to focus a window on the user's screen? I have seen the positioning tool on the inspector, but Ibyiling does not always land in the form of intersection as I want. Is there anything where I should switch to Xcode and add something to the init or awakeFromNib methods? you use [center of the window] as per Answer by Wahake May be, but it may not be exactly what you want. States that this window is horizontally centered, but to some extent vertical center will be placed above. This way there is a visual prominence near the window. If you want to keep your window in the Precise center, you will work for manual positioning (as commented by Kenning Bard XIV).

php - Windows Netbeans with PHPunit, not working -

Image
I ran into this question: But implementing fixed fixes does not work there it happens. Netbeans continues to say that the version of PHPUnit is too old and I need at least 3.3.0, while I'm using 3.3.9. Screenshots: I have not written anything about the files, I Just downloaded the TGG, all this has added unzip and link. To add a path to the Pair Library to include the path in your php.ini Do not forget, not only in NetBeans In my case was established under Peer F: / PHP5 / Peer. So I had to add this line include_path = ".f: \ php5 \ pear in my php.ini file

iphone - How to delete row in TTTableViewController (Three20) -

There are three great libraries, it's very easy to work with tables. But one difference which I saw - is the extinction of rows with animation I spent many hours trying to do this, and this is what I am doing: // current index patch Get UITableView * table = [super tableview]; NSINXPath * IndexPath = [Table IndexPathforesSocked Road]; // Delete the line in the data source TTLIIdDataSource * Source = (TTLIIdDataSource *) auto data source; [Remove Source.itemsAbjectEarthx: indexPath.row]; // Delete the row from the table with the animation [Delete the tableWind XPPath: [NSArray arrayWithObject: indexPath] withRowAnimation: UITableViewRowAnimationFade;; Error appears after this code: [NSCFArray objectAtIndex:]: Index (0) Beyond Boundary (0) I inherited the class I'm using TTTableViewController And I do not apply datastoreleget or tableview align because I am using as many as three 20s as possible. So, that's how I create a data source: for (in NSARE * albums) (T

flash - Get filesize of remotely hosted file -

I'm looking at an AS3 function to get a file's file that is being hosted on a remote webserver Tried to find some functions but did not succeed. Maybe somone could help me? You can not do this straight through the action script before you can get the file size before you have to request to download the file. Once the download request is made, you can get the total number of bytes of the file through the LoaderInfo class. Obviously this undesirable side affects that file continues downloading. Two solutions ... There is an XML file on a server that has the size of the files (if done manually it is a real pain in the ass, as pronounced to change the file size Are). You can do some sort of server side solution, which you can request to get the size of a particular file. Or you have setup to generate XML for the file size of all files, maybe many server-side solutions exist. With no region of my expertise, I can not really recommend the best approach My idea is that it

algorithm - Determine font color based on background color -

Given a system (for example a website) that optimizes the background color for a user for some section , But there is no font color (to keep the number of choices at least), is there a way to programmatically determine whether a "light" or "dark" font color is necessary? I'm sure there are some algorithms, but I am not sure enough about color, shine, etc. to understand it on my own, to understand it on my own. I had to face the same trouble. I should get a good method to select opposite font colors to display text labels on color kells / heatmaps. It should be a universal method and the resulting color was to be "good looking", which means that the simpler complementary color was not a good solution - sometimes it generates a weird, very intense color that was hard to see and read. After long hours of trying to solve this problem and trying, I came to know that the best solution is to select white font for "black" colors, and for

Git workflow for corporate Linux kernel development -

I work for a company that creates embedded systems using Linux Historically, we have always used CVS to store our kernel work. Drivers for our proprietary hardware Random Fixes for Linux bits which we use Non-proprietary hardware drivers To prepare Linux for our application, random yukky hacks We are at that stage where we want to leak out some of our old corners on new versions, depending on the changes our To decide the old CVS workflow Psht like git. I am struggling to come up with a sensible workflow. I have exported our CVS repository for one of our kernels and there is a collection of changes over the appropriate base linus kernel. Where do I go from here? I have a central store that wants to make changes to all the developers. Are we safe to use Rebecca to pursue new base kernel modifications to carry forward the collection of new changes and Then will our development be taken to the top of the new central branch? Bonus points for getting workflows which we

string - C++ Overloading the >> operator -

I need to overload the stream extraction operator. I need to do this so that a user can use a string Input on the signal, say "imastrising", and then the operator will remove each letter from the string and check whether it is white space or not, and this is not a white space store or it is in a character array, which is an object Send it to Or. @Shift et al. For example, I hope that it is not expected to output anything on the screen. Instead of entering the user type and hit in a string, the user should be prompted again to enter a new menu selection. As it stands still, user input enters a string hit and then a "poor read error" is displayed and the prompt is waiting for new input back. Four buffer [buffs + buffer [ispersprop = "text"> it's quite weird - your name is like me, but the opposite is :) 1]; // No need for dynamic allocation here unsigned I = 0; While (std :: cin & amp;! Std :: isspace (std :: cin.peek ()) & amp;

How to dynamically load & unload a TinyMCE Plugin -

Does anyone know if I can dynamically load and unload a TinyMCE plugin in a way when TinyMCE Already loaded? Specifically, I am thinking of asking the user whether they would like to load a radio button or some above fullpage plugin on top of TinyMCE: & lt; Input type = "radio" name = "full page" value = "enabled" /> Enable fullpage plugin & lt; Br / & gt; & Lt; Input type = "radio" name = "full page" value = "disabled" /> Disable fullpage plugin & lt; Br / & gt; & Lt; Textarea name = "tinymce" id = "tinyymce" & gt; ... & lt; / Textarea & gt; I think I can destroy the original example and load a new config (one for enable / one for disabled), but it seems that loading and unloading should be a more excellent method. Plugin I have used TinyMCE in the past few times, and do not miss any kind of doing so On. On examining API documents, it seems that t

multithreading - BlackBerry - Does TimerTask run in the background? -

Does timer Task work even on exit from my work and comes to the Home screen or other app detected Could? I have read the forum and to find the easy way to thread type, use the timer cookies in BB. I should always have a running bag, my app has not been launched (after the first time) so that when a particular interval comes, I can show my dialogue with the application. I tried the following: (I get this code, rather than main screen screen, click on main screen) try {timer = new timer}; // Start after 1 second, repeat every 5 seconds / timer schedule (new clickTest (), 0, 5000); // seconds * 1000 timers. Schedulatile Factorat (new clickTask (), 0, 5000); } Hold (exception e) {// nothing} Private class ClickTask TimerTask extended {public zero run ({{System.out.println ("test printing .."); // Screen Screen = New Dialog (Dialog.D_OK, // "Watch Out !!!", Dialog.OK, // bitmap.jeteditbitmap (bitmap.exclamation), // ManagerVERTICAL_SCROLL); }} But this timer ru

c - How to be informed when gtk.paned slider's position changed? -

I want to be pressed to remember the position of the slider, then I want to hold the status of the changing slider position of the hip the wanted. According to the official doctor, there are only few signals in the pan, and none of them are about the position of the slider. So, is there an event about the Happened Slider? And how to catch it? You can connect to the "Notify: Status" prompt.

erlang - NoSql - which is best for my needs - i am having mental breakdown -

I am creating a reddit clone in Erlang. I am considering using some erlang web frameworks but This is not a problem. I'm having trouble choosing a database how it works; I have several dedicated reddits examples, science, funny, corporate, games you can consider them sub reddits each sub reddit categories. A user can post the following information: Title, Category Tag, Description, Category, Future Date , Add more pictures, link video With Reddit, users will be able to vote on stories and comments. Comments will also have a vote system. How the problem; I do not know what kind of database to use, there are scalability problems with the MyScl on the site (trust me if it will not suggest now I Which is required, 1) A user will go to Sporting Saabreadet, P> They will want to see all the stories with the future date , For example in the NFL category, or in the Soccer World Cup category they date of the future Or , which show upcoming games or events.

Can't uninstall a service developed in Visual Studio -

I have a visual studio project that includes a service and installer. During the development, I have installed and uninstalled MSI-package for at least fifty times, but the last time I tried to uninstall it, I got an error message, "Installed product does not match installation source" and if I But click on the "OK" message I get the following: "Path xxxxxx.msi can not be found." So, first it does not match and can not be found again. or something else. MSI-package is present on the path given in the error message (I have replaced the actual path and package name by xxxxx). By installing the service, what do I mean by double clicking on the MSI-package creates a "build solution" function and by uninstalling I mean Control Panel -> Add or Remove Programs. I use Windows XP and Visual Studio 2003 in this special project. I have installed it and uninstalled it and other visual studios have been developed hundreds of times or thousands of

How can I create and maintain authentication sessions on an iPhone? -

Hello, I'm about to make an iPhone app whose account system will be. (Login Logout). If there is a server side then how to manage session while your client is the iPhone How can I do this ?? I use the library to communicate with my webservice. This is the built-in ability to handle cookies, so I only log in with a post request and the cookie is set like a normal browser. When your network connection is down, you may still be able to check a valid cookie: SignInIn Cookie {cookies} {NSArray * cookieJar = [ [NSHTTPCookieStorage shared HTTPCookieStorage] cookies); (In the NSHTQ cookie cookie * cookie) {if ((([[cookie name] compare: @ "jernitagid"] == nosordedam) {return yes;}} no refund;}

jquery hover image fade swap -

I've been searching online for some time, it does an easy job to find the best way to write jquery scripts Trying: Swapping with a beautiful fade effect, an image on hinge has found many solutions (some way to unwind and friction), and I see it as two things below: For the purposes of me, I do this hover swap several times on the same page I want to be able. Page I currently mesh on my "Services NAV" (different types of hinge), but I want to apply them with all the NAV buttons along with social icons in the footer. All latters will have one or two image files, which will rotate each other and return to the holiday. What is the best way to go about this? Perhaps one of the above links probably? You can also use a single background image, and fading in & amp; A transparent div out Here is a quick example, which can be extended to work automatically for a single class image: $ (document) .ready (function () {$ ("# Mask-div") CSS ({"status

jquery - ajax and codeigniter duplicating header -

I have a strange problem that I am unable to track down. I am using Codeigniter and Jquery to create an AJAX search feature. Everything is working fine and the correct data has been returned from my model, but when I load the view from the controller, in response. I have tried an empty scene to load and even then the header of the page has been included. My Javascript function is like function filter (id) {var str = "test"; Var series = {}; // init array data ['id'] = id; Var url = "/ baseurl / controller / filename"; $ ('# Result'). Load (url, data, function (str) {}); } Since then, I get results from the model from within my controller. I only load the view $ this-> load-> View ("Results", $ data); > P> & lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = "container" & gt; & Lt; Div id = "wrapper" & gt; & Lt; Div id = "header" &

Ipod Touch 3G vs Iphone for app development -

संभव डुप्लिकेट: क्या नया आईपॉड टच 3 जी आईफोन के लिए डिज़ाइन किए गए सभी ऐप का समर्थन करता है? और कैसे आईपॉड टच के 32 जीबी संस्करण आईफोन 3GS हार्डवेयर-वार (सीपीयू / मेमोरी) के मुकाबले ढेर हो सकता है? क्या मैं आईपॉड टच पर ऐप्लिकेशंस का विकास कर सकता हूं? आइपॉड स्पर्श में आईफोन की कुछ विशेषताओं की कमी है आपके पास फोन नहीं है, आपके पास वाईफाई नेटवर्क (कोई 3 जी नेटवर्क नहीं है) कोई कैमरा नहीं कोई जीपीएस और कुछ अन्य मामलों (जैसे एक्सीलरोमीटर और कम्पास) आप आइपॉड स्पर्श से शुरू कर सकते हैं, और जब तक आपका ऐप उपरोक्त में से कोई भी उपयोग नहीं कर रहा है ठीक हो जाना चाहिए। लेकिन सुनिश्चित करें कि आप अपने ऐप की योजना बनाते हैं और देखें कि क्या आईओपीआईडी ​​स्पर्श पर नहीं होने वाले किसी भी फीचर की आवश्यकता होगी हम आईपॉड टच का उपयोग कर रहे हैं, लेकिन आईफोन पर भी परीक्षण कर रहे हैं (ज्यादातर नो वाईफ़ाई परिदृश्यों के लिए)

java - only JLabel not showing up -

I am responding to a simple application that has a button that opens a new window, then a simple GUI / lesson A user displays to get from the input. But for some reason, I can get JLable to display on a new window. The application has the following structure: + Main frame - JFram + Newfork - Jeffreem - + NewPanel - Zeppel ---- Title - Jellybell - SubmitButton -button ... ... Buttons and text fields display all ok, but Jlabels will not appear at all. I have tried to use different layouts and all but I still could not show it. JLabels inside the main frame tree, works fine. It seems that the problem is due to the new frame announcement or for some reason, but then the button should not be displayed either, I have lost and some suggestions to me What can I check? thanks :) Before making sure you make it visible First frame .pc (). It can also help to set limits on different components (different colors) for debugging. / In order to reduce your problem size 0, do not

c++ - Segmentation fault when instantiating object from particular library -

I have a C ++ app (heavily shortened, shown below); #include & lt; Iostream & gt; #include "MyClass.h" void foobar () {MyClass a; } Int main (Int arc, four ** argv) {std :: cout & lt; & Lt; "Hello World! \ N"; Return 0; } Where "MyClass" is defined in a library linked to a static link (.a). However, this application started immediately Segfaults, and I never get to "Hello world" I can make an example of an interface from the same library, But I can not make an example of a class implementing the interface. I.e; zero float () {IMyClass a; // This application works in Miklas B; // Segfault if it's inside.} As you can see from above, there is no need to call the code even for application for segf. I am using Netbeans 6.7.1 and GCC 4.3.2. Now, I think there is something wrong with linking the library but I can not tell that I am linking to other libraries (all statically linked), the above class is linked t

Create groovy xml with an "envelop" - add nodes in the middle of a xml structure -

(Sorry for the strange title ...) I want to use the groovy builder system Make an XML. My problem is that I have to put a heap of something on which the user has to ignore. An example: def builder = new groovy.xml.MarkupBuilder () builder.foo () {bar ('hello')} should create it & lt; Some ID: '123' & gt; & Lt; AnyInfo & gt; & Lt; Foo & gt; & Lt; Bars & gt; Hello & lt; / Bars & gt; & Lt; / Foo & gt; & Lt; / AnyInfo & gt; & Lt; / Some & gt; so that there is an xml structure in the background, in which the user can add his XML structure to a predefined node (in the example 'AnyInfo') It is to be seen that I can add a nodes somewhere in the middle of the pile with the markup builder (or any other builder)? I hope this is somehow understandable ?! Thanks Marty You can do this easily with shutdown. Close one to make the cover. Then you can dynamically remove your hand in t

protocol buffers - Should I use a binary or a text file for storing protobuf messages? -

Using Google protobuf, I am saving my sorted messages in a file - there are many messages in each file. I have the code of C ++ and Python versions, so I need to use the protocol function that Available in both languages I have experimented with using SerializeToArray and SerializeAsString and here are the following unfortunate conditions: Serialize Other: As one answer suggests, the best way to use it The way to prefix each message, with its data size, it will work very well for C ++, but this does not look like Python - am I wrong? SerialistString: This creates a serial string equal to the binary equivalent - which I can save in a file, but what happens if the serialization result is one of the characters \ n - How do we find the end of the line, or the closing of the messages for that matter? Update: Please refresh me a bit. As I understand it, I can not write binary data in C ++ because since then our Python can not read application data, since it can only parse strin

python - Is there a buildout recipe that uses pip but does not install virtualenv? -

I would like to use buildout instead of virtualenv. This decision means that I do not want to stop Virtual Eniv in my kit, That's why I installed the Virtualman VMV Virus GP. I'm looking for a way to tell Rapipopi not , or thoughts P> Of course, you want to use it in your buildout. Specifically, (taken from the mr.developer page), something like this: [buildout] extension = mr .developer auto-checkout = my.package [ Source] my.package = svn http://example.com/svn/my.package/trunk update = true some.other.package = git git: //example.com/ Git / some.other.package.git < / Code> He will get you packages that were made after GIT, which were installed as an egg developed in your buildout.

Long running workflow in .NET 4.0 problem adding required references -

I am trying and understanding how the integrity works in the .NET 4.0 workflow, I am trying to fulfill . Unfortunately, there may be an error in the documentation or there is a problem with my setup, because I have the following components System.WorkflowServiceModel System.WorkflowService These components are specified in the steps (1) of the section: Have been "to enable persistence in the workflow application". I tried to research this problem, but I did not find anything very useful. It seems that I am not the only person whose problems are: A user here says that "The problem was that the client profile was used" but I did not really Understand what this means. I have added my question on that page and will be updated here if any answer is coming from Microsoft. Update: Comment after Chris, I found a better link, which I put in a comment. I think the acceptable approach to the stack overflow is to update the initial question? This

methods - Need plan of action to upgrade graphics toolkit in company's applications -

My job is to upgrade all our applications, which are OpenSceneGraph (an OpenGL Toolkit) version 0.9.9 latest and greatest 2.8 Well some weaknesses come with this task: 1. After version 9.9) there was a major overhaul of the core OpenGraph graph (OSG). Generally used tasks and classes were added and removed. Simply put, I can not just replace the old place with the new ones and modify some degraded or deleted works - there is a lot to be changed. 2.) Our applications were used in MFC Visual Studio 2003. They would have to stay with the use that I want to upgrade. 3.) For the OSG, good organized documents can be found for my special scanner and the best of unrelated and scattered. My question is: what will be the approach in some broad way to deal with this problem. I have about two weeks to upgrade one of the applications, then the plan is to follow and implement this approach for the rest of the applications. For me, the biggest obstacle is getting the starting point. I wor

linux kernel - What is the overhead involved in a mode switch -

Many times I have read / heard that the disabling of many calls etc. will be disabled because the apps make a mode The switch goes from user mode to kernel mode and after a system call execution, a mode switch starts after re-implementing in user mode. My question is, is there a mode switch overhead? Does the CPU cache become invalid or TLB entries come out or what is the reason for this? Please note that I am asking about overhead involved in mode switch and do not have context switches. I know that mode switch and reference switch are two different things and I am fully aware of the overhead associated with the reference switch, but I am unable to understand what is the cause of the overhead due to a mode switch? If it is possible, please give some information about any special Nix platform like Linux, Free BSD, Solaris etc Regards Redness There should be no CPU cache or TLB flush on the simple mode switch. A quick test tells me that, on my Linux laptop, this 0.12

c++ - Code with undefined behavior in C# -

There are many ways in C ++ that you can write codes that compile, but yields Is something similar in C #? Can we write code in C # that compile, but what is undefined behavior? As others have pointed out, nothing much more "unsafe" blocks implement implementation-defined behavior Can provide; Misuse of unprotected blocks can change the byte of the code that you make the runtime itself, and therefore all the bets are closed. In the case of the integer division corner, there is implementation-defined behavior. Leaving an exception and catching it ever causes the implementation-defining behavior - the process ends, a debugger starts, and so on. There are many other situations in C # where we are forced to release the emitted code which has implementation behavior. For example, this situation: However, the implementation-defined behavior in a safe, streamlined C # program must be quite scarce in situations.

jquery - scroller problem in IE -

The table layout below is viewing the code of the page in FF as I think the scroller below the center of the cell is underneath Does it, it was dropped in IE 7 What am I doing wrong? And how can I fix it? url Each browser has its own default CSS styles for field level Reset your CSS as a normal framework, such as yui reset or Blueprint reset, it will simplify the life of your multilingual development.

math - Formula for a curve (algebra in javascript) -

मुझे निम्न पैरामीटर के साथ एक घातीय समीकरण की आवश्यकता है: जब x = 0, y = 153 जब एक्स = 500, y = 53. वाई को एक्स के दृष्टिकोण के रूप में तेजी से बढ़ाना चाहिए और एक्स 500 तक पहुंचने पर तेजी से कमी करनी चाहिए। किसी कारण से मुझे याद नहीं आ रहा है कि कैसे करना है इस। मुझे यकीन है कि एक बार जब मैं समीकरण (या एक समान) देखता हूं, तो मैं बाकी को समझ सकता हूँ। प्रोग्रामिंग में संदर्भ: यह एक जावास्क्रिप्ट फ़ंक्शन के लिए है, जो एक डिवेल के रंग को बदलता है जब एक टेक्सटेरा के अधिकतम- लंबाई तक पहुंचने वाला है। अन्य विकल्प या कोड स्निपेट्स का बहुत स्वागत है। अद्यतन करें: मुझे पता नहीं क्यों है लेकिन -1500 / (एक्स + 15) +153 मुझे कुछ और बताता है जो मैं हूं की तलाश में। तो ऐसा लगता है कि मैं क्या पूछ रहा था वह नहीं है जो मैं वास्तव में चाहता था। मुझे लगता है कि मैं क्या चाहता हूं: जब x = 0, y = 53. जब x = (आपके अपडेट के बाद): / P> अपने बदलावों के साथ, आप एक आरोही फ़ंक्शन और y = 1 / x जैसा कुछ पूछ रहे हैं। आपके फ़ंक्शन के पैमाने को आपके सटीक निर्देशांक में फिट करने के लिए

php - How to prevent multiples instances of a script? -

I have PHP scripts that I want to run on Linux as well as on Windows Server. Any changes for those two environments I want to use the same script without doing. Theses script will be set with Cron (on Linux) and with Window Scheduler (or other, I do not care), for my Windows environment. However, some theses script may take several minutes to complete. I just want to stop the script from launching the scheduler (one of the cron or windows), before it was started for the last time. I'm not sure how to do this .. I'm sure that "lock" is issued when something goes wrong during execution, so it is launched next time without human intervention. . Maybe move on a dummy file with a bunch, but I'm not sure how to do this I also have a MySQL database on the Thousers server I thought the database Using a lock on the side. 1- Start a transaction 2- Enter the name of the script in a table. 3- Script execution. 4- If successful, then delete the line and transa

javascript - Reset style properties of an HTML element to stylesheet-defined defaults? -

सीएसएस कोड: p.myparagraph {color: yellow; } मान लें कि मैंने & lt; p & gt; तत्वों का रंग बदल दिया है जो कि myparagraph वर्ग को लाल रंग में उपयोग करते हैं I क्या सीएसएस-परिभाषित डिफॉल्ट के लिए इस वर्ग (रंग तक सीमित नहीं) का उपयोग कर पैराग्राफ के सभी स्टाइल गुणों को रीसेट करने का एक तरीका है? निम्न कोड संशोधित होगा और नाम सीमा के साथ वर्ग & lt; script type =" text / javascript "& gt; $ (दस्तावेज़) .ready (function () {$ ("borderParra")। फ़ोकस (फ़ंक्शन () {$ (this) .addClass ("blueborder"); $ (यह)। चयन ();}); $ (".borderParra")। धुंधला (कार्य () {$ (यह) .removeClass ("blueborder");});}); & Lt; / स्क्रिप्ट & gt; जहां शैलियों हैं .yellowBorder (सीमा: 1 पीएक्स ठोस # एफसी 3;) .ब्लूबॉर्डर {सीमा: 1 पीएक्स ठोस # 014165;}

java - HashMap with StringKey problem? -

I have a list of Fu objects. If a name appears several times, then I have the first item with that name I want to do something hashmap & lt; String, foo & gt; Map = new hashmap & lt; String, foo & gt; (); (Foo Bar: this.FooList) {if Map! Pops (bar.getName ()) {map.put (bar.getName (), bar); } And {map.get (bar.getName ()). DoSomeThing (); }} But that is not working, because every name (unique or not) is thrown in that map. Is Hashmap not just for reference equality and equality on important items? This is the required code for you: hashmap < String, foo & gt; Map = new hashmap & lt; String, foo & gt; (); (Foo Bar: this.FooList) {if Map! Pops (bar.getName ()) {map.put (bar.getName (), bar); } Else {Foo foo = map.get (bar.getName ()); If (foo! = Null) foo.doSomeThing (); Map.put (bar.getName (), faucet); }} A test has been done for this: import java.util.HashMap; Import java.util.ArrayList; Example of public squares {public static ze

Invalid use of property in vb6 -

मेरे पास रिकॉर्डस rc1 है जो txt फ़ाइल से मान पढ़ता है। फ़ील्ड rtn , amt , नाम हैं। अब मुझे तालिका t_rec से डेटा प्राप्त हुआ है और इसे किसी अन्य रिकॉर्डसेट rc2 पर नियत किया गया है। और रिकॉर्डसेट आरसी 1 के साथ तुलना करें। यदि rd1.Fields! [AccountNbr] = rc2.Fields! [RTProvided] फिर आरसी 2 सेट करें .फिल्ड! [दावेस्टैटस] = "सी" आरसी 2 .फिल्ड! [दिनांकक्लाश] = सीकएडेट आरसी 2 फ़ील्ड! [Audit_LastUpdated] = CqDate rc2.Fields! [Audit_UserAdded] = "सिस्टम" अगर मैं उस प्रोग्राम को संकलित करता हूँ I errr जैसे vb6 में संपत्ति का अमान्य उपयोग क्या आप मेरी सहायता कर सकते हैं। उप DneFroceClose () CqDate = स्वरूप (दिनांक, "dd / MM / yyyy") सेट करें rcdreclamation = नया ADODB.Recordset rcdreclamation के साथ .activeConnection = objConn। स्रोत = " T_DATA_reclamation से "SELECT * T_DATA_reclamation"। कर्सर टाइप = adOpenDynamic। कर्सर स्थान = adUseClient .LockType = adLockOptimistic। ओपन एंड फ्रेम्डएनएललोड.लिब्लेस्टैट। कैप्शन = "रिकॉर्ड

Automatic file update on a non-svn folder while doing svn commit -

I have svn repositories and virtual hosts that are set on the same Linux server. Whenever developers have made changes, I I want the site files (files on Webroot) to be updated at the same time. Files on Webroot do not have a svn work copy; I was able to update a copy of another svn working using posted hooks, but do not know how to update another non-svn folder. You can do one with post-cut hooks.

c++ - gcc debug log files on Windows? -

I'm starting to run built-in Qt applications using minimal GP and there is a question about debug logs . When using the code compiled with MSVC, if my app used to crash the file or mini-dump, then it could have been priceless when diagnosing that problem. There is even a very quiet library that can generate and then automatically email this log file back home. Will I be blessed with the same debugging log when the application created using a GCC crash? If not, is there any device that can use useful logs that I can use to diagnose problems? Through default application compiled with GCC, they do not log when crashed - you Will have to do something. On some platforms (no windows), they can build a core dump, which can be used for debugging, but this is not particularly something with GCC.

java - Hibernate3: Self-Referencing Objects -

Need some help in understanding how to do this; I'm running a recursive 'find' on the file system and I want to put the information in a DB table - with a self-referenced hierarchical structure: This is my DB table structure. DirObject table: is not id int, name varchar (255) no, grandparent, parent not int); This is the proposed Java class that I want to map (fields shown only): public derobbet {int id; String name; Direct criteria; ... was going to use parent = 0 for the 'root' directory; Actual ID will start with 1, and ideally I need hibernate to automatically create an ID. Does anyone please provide a suggested mapping file for this? As a secondary question, I thought about doing Java class instead: public debarbox {int id; String name; & Lt; DirObject & gt; Subdirectory; Can I use the same data model for either of these two methods? (With a different mapping file of course). --- Update: So I suggested the mapping file (tha

export - Screencasting of a Silverlight Application? -

I have found a silver application, which basically plays video between other things, as shown below. Gone (Silverlight 3): & Lt; / Grid & gt; But when I 'screencast', the Microsoft Expression Encoder 3 Screen Capture Out output video is dentistic, and it appears as if it is recorded at a very low frame rate, screencast ' One site (for example) created by Microsoft Expression Encoder 3's 'Job Output', plays this record and plays back at a normal frame rate. Both recordings are done with the same settings, there is only one difference, and it is fully worked out when viewed in IE8, so I was wondering if there is a property in the Silverlight that you need to set, change etc. . Silverlight application is 'Screencast' Thanks, Update Otherwise, is there any way in which you export a relaylight page to a video file? Can, or similar? I have found that there is no problem with Silverlight (or my code), rather that the laptop was probably

soap - wsdl xmlns problems with NetBeans and wsimport -

Our application provides SOAP API Our wsdl initial lines are something like & Lt; Wsdl: Definitions name = 'Edit control' ... xmlns: soap = 'http: //schemas.xmlsoap.org/wsdl/soap/' ... This is usually ok Works, but a customer complains that when they try to use our SOAP API in NetBeans, we get this error: Web service can not be created by JAXWS : Wsimport utility reason: invalid extension element: "soap: body" (namespace "http://schemas.xmlsoap.org/wsdl/soap/") by running it easilyCan be Irmit is: wsimport -d -vistar -Xnocompile -keep -s -warbos & lt; Our wsdl file & gt; Generate error: [error] Invalid extension element: "Soap: body" (namespace "http: //schemas.xmlsoap unknown location Our support found that by changing xmlns: solves the problem definition to use , but this requires a change in our Products, and all the places that I see on the Web, where a wsdl: define definitions file Besides, th