Posts

Showing posts from April, 2013

What's an Application layer? -

I think I understand business logic layer and data access layer, but what does the application layer word mean? Is this something you use in distributed applications? Part of this project, which is unique to the actual application.

asp.net mvc - how will you do this in MVC custom route? -

www.yoursite.com/image/ I need to know here that the Controller Action, and Global .sx routes : The character is not valid The path segment of the URL, Then you have to either put it in sign language, or delete it altogether after that, you can specify that the value of the route should be assigned to the balance of the URL. routes.MapRoute ("Image", "image / {* url}", new {controller = "image", action = "index"}); For the url http://www.yoursite.com/image/images.google.com.ph/images/nav_logo7.png , the above paths < ImageController.Index () will execute with a url argument with code> "images.google.com.ph/images/nav_logo7.png" . Also note that a URL authorization can be composed of a domain name and a port number, which is also encoding : (www.google.com:80) Will happen.

php - Adding amount to background-position on click (jQuery) -

I am very new to js and jquery, please stand by me. I want to change the background position and # 1 when adding # button to # 1, clicking on # button 1 takes 1% at # 1 and ## while clicking on button 2 How do I get it in jQuery? Hey, Bonus Question: These are going to be dynamically generated via PHP. Like this: $ i = 1 while ($ i & lt; = 5) Is it possible to use php in JS-scripts? : $ Div [$ i] = 'div' $ I; $ Left button [$ i] = 'left left' $ I; $ Rightbath [$ i] = 'rightboot' $ I; $ I ++; Endwhile; Or how to learn a loop in JS;) Edit: Follow the questions: How can I update a text field with this value as I click on the button? And how can I modify it if I also want to add button above / below? Thanks a lot! Thanks in advance! -Simon like this: function makeClicker (index) {$ ('# Leftbutton' + index) .click (function () {var bPos = $ ('# div' + index) .css ('background-position'); bPos = bPos.replac

java - How can I determine the J2ee application server type and version? -

I have to know the information about the application server running in my AJB. System Properties have lots of information about Java and operating systems, but I should know what type of application server and version if possible. Is there a way to independently apply this information (JMX perhaps)? Alternatively, is there a webpreader specific way to get this information? Take a look through that available. It seems that you may have some information you are looking for.

c# - How can I add a line break or html inside of a Panel? -

I am trying to create a menu with the following code. But I can not understand how each linkbutton will be displayed on different lines. MenuPanel.Controls.Clear (); Förch (form list f form) {if (f.IsActive == "y") {FormUserControl fc = (FormUserControl) LoadControl (f.StartControl); Linkbutton lb = new link button (); Lb.Text = fc.Title; MenuPanel.Controls.Add (pound); // I want some kind of line break}} to insert the square Use a line break ... MenuPanelControlSaidAd (new Little Control (" Or use CSS to create your link block-level elements ... # menu one {display: block; }

merge - How to identify conflicting commits by hash during git rebase? -

When I'm struggling in a merger using git rebase , how do I Can I identify the source of conflict? before git rebase - -continue , but sometimes the difference between files is not enough: I want to see commit logs and commitment of DIF which only fail to implement the tree that works in the works I have read in other questions that git log --merge shows that if I was using git merge then the parent's you have to come. I tried it in any way, when I had to face the conflict and I was Fatal: -Merges without MERGE_HEAD? said. How can I identify the problematic commitment? short answer if it says < Code> Patch 0001 failed message failed for F $ head -1 .git / rebase-apply / 0001 to ad1c7739c1152502229e3f2ab759ec5323988326 Mon September 00 00 : 00 2001 Use the git show ad1c77 to get SHA ad1c77 of the failed commitment, and then to see it Please. Long Answer Start with this tree: a --- B --- C --- D \ E --- F --- G $ git che

C# Regex quick help -

I am trying to read a text file, and then breaks it from each line that is "\ n". Then do it again and type regedix. string content = file. Read all the text (filename); String [] firefox = file name. Sample ("\ r \ n"); String prefix = prefix = regesx. Match (Firefox, @ "(\ d)"). Group [0]. value; File. Application all text (working format 2 + "configuration.txt", prefix); string [] Firefox = file name. Sample ("\ r \ n"); Does not work at all What I want to do, runs the regex front line of content and then write each line after regex so ... < P> filename: Hero 123 Hero 243 Hero 5959 writes this: 595 5959 OK , Everybody is suggesting some of the bases in which I started the regex with a 20-line Inge about the end result. I've got to parse it out of the line. var rows = file. Read Line (Basic Path); File. Select All Lines Merge (Newpath, Lines. (L = & gt; Reggae. Match (l, @ "\ d +&qu

java - Control Oracle Forms with outside program -

I work in a company that uses form based Oracle 11i. Many employees complain of overload of data entry and I want to write a program that will reduce some pain because it is due to all the efforts to ask for the failure of IT. The problem is, because the oracle form is Java based, there is no "control" as it will be on a Windows application or HTML based form. Does anyone know how to tell a PC (example only) Edit field 3 on RMA creation form and then enter data? The only way I can navigate programmatic is with Oracle Hotcases and it is very unbelievable. I am not worried about language or learning a new application to solve this issue. Currently I Know (Primary for Intermediate Levels) Java, VB Net and school will take C ++. Is there any such tool, bridge, any kind of element spy that will allow me to send commands to the elements on the form? Edit APC SEZ: Oracle Form as a Java Applet in the form of web applet. I mention this because it can be relevant to your

.net - Unhandled Exception: System.Configuration.ConfigurationErrorsException: Unrecognised element 'services'. Nested ConfigurationElementCollection -

मेरे पास App.Config में एक निम्न configSection है। & lt;? Xml संस्करण = "1.0" एन्कोडिंग = "यूटीएफ -8"? & Gt; & LT; विन्यास & gt; & LT; configSections & gt; & Lt; अनुभाग नाम = "servicesConfig" प्रकार = "Admin.Config.ServicesConfig, TestConsole" / & gt; & Lt; / configSections & gt; & LT; servicesConfig & gt; & LT; serviceGroups & gt; & Lt; services group = "group1" & gt; & Lt; add name = "Service1" host = "localhost" / & gt; & Lt; add name = "Service2" host = "localhost" / & gt; & Lt; / सेवाओं & gt; & Lt; सेवा समूह = "समूह" & gt; & Lt; add name = "Service1" host = "localhost" / & gt; & Lt; add name = "Service2" host = "localhost" / & gt; & Lt; / सेवाओं & gt; & Lt; / serviceGroups & gt; & Lt; / servicesConfig &

Questions every good Perl developer should be able to answer -

Inspired by the clones coming up and coming, here's one for the Pearl community. What should a good response to the Pearl programmer? Why use hard helpful?

encryption - Ecryption Issues -

I'm trying to store some encrypted information in the cookie. I'm generating a small string (about 64 characters), generates a key using the generated alerts (), and I am trying for AES or Blowfish encryption. I have tried to use default UUEncoding, Base64, and Hex parameters in encod () and decode () functions. With AES, I get an error An error occurred while trying to encrypt or decrypt my input string: com.rsa.jsafe.crypto.dr: Unpadding: invalid pad byte .. With bloepish, I get an error An error occurred while encrypting your input string or Trying to decrypt: The last block was not properly formed < P> What am I doing wrong? A 64-bit block size, which is 8 bytes, is 128 bits of block size, which is 16 bytes . Block size means that it can only do blocks of that size. So some 7,6,5,4,3,2,1 bytes can not bytes the block size of 8 bytes. If you have the desired bits or bytes (8 and 16 bytes) here, you must do pad to reach some 8/16 byte long

multithreading - How to synchronize a static variable among threads running different instances of a class in java? -

I know that using a synchronized keyword before any method brings synchronization to that object. That is, the same instance of the object running 2 threads will be synchronized. However, synchronization is at the object level, since 2 threads running different examples of objects will not be synchronized. Therefore, if we have a fixed variable in the Java class that is called by law, then we want to synchronize it in all instances of the class. Two examples are running in two different threads. What can we do to get the synchronization in the following manner? Public Class Test {Personal Static Int Calculation = 0; Private fixed final object lock = new object (); Public synchronized void foo () {synchronize (lock) {count ++; }}} Is it true that since we have define an object 'lock' which is stable and we are using synchronized keywords for that lock, now the static variable count class Is all the examples of the test being synchronized? There are several ways

html - Make a div's total width the same in both Strict and Quirks mode -

निम्नलिखित पर विचार करें & lt; div style = "width: 150px; border: 50px ठोस काला "& gt; टेस्ट & lt; / div & gt; यदि यह एक पेज पर आउटपुट है जो कि सख्त मोड में IE8 रेंडर करता है (या यदि आप फ़ायरफ़ॉक्स आदि में लोड करते हैं) तो डिवि के अंदर (सफेद क्षेत्र जहां टेस्ट है) 150px होगा विस्तृत है, लेकिन कुल में डिवी 50 + 150 + 50 = 250 पीएक्स चौड़ा (सीमा के लिए लेखा) होगी अगर यह क्वैर्क्स मोड में प्रदान किया गया है, तो यह 50 + 50 + 50 = 150px चौड़ा होगा। अंतर Quirks में चौड़ाई में किसी भी सीमा के रूप में समझाया यदि आप एक पृष्ठ पर एक html टुकड़ा डाल रहे हैं और आप समय से आगे नहीं पता है जो मोड इस्तेमाल किया जाएगा वहाँ कोई भी विश्वसनीय हैक्स (सीएसएस / जावास्क्रिप्ट या अन्यथा) यह सुनिश्चित करेगा कि सभी प्रमुख ब्राउज़रों (आईई 6/7/8, फ़ायरफ़ॉक्स, ओपेरा, क्रोम) पर दोनों सख्त / शॉर्ट्स मोड में डिवेल के समान आयाम हैं? मुझे लगता है कि मैं इसे टूट गया है (IE 6/7/8 quirks और सख्त मोड और FF3.5 पर परीक्षण किया है ) कुरकुक्स / सख्त मोड केवल एक डिवाई की चौड़ाई पर

algorithm - Where can I find review materials? -

I am getting interviews for internships this summer, and I want to review common algorithms and data structures that I None of the technical questions can be stopped by the guard. Can anyone recommend online or otherwise good resources for a refresher on common things like shuffling trees, downstream, linked lists etc? And obviously, Common et al. Introduction to Al's Algorithm to see another summary. Oh, and of course, Noah's "Art of Computer Programming", a definite collection ... can not forget

c# - Using generic methods, is it possible to get different types back from the same method? -

क्या मेरे पास ऐसा कुछ हो सकता है: int x = MyMethod & lt; int & gt; () ; स्ट्रिंग y = MyMethod & lt; स्ट्रिंग & gt; (); इस प्रकार, टी पर आधारित विभिन्न प्रकारों को लौटाने वाला एक तरीका निश्चित रूप से विधि के अंदर तर्क होगा कि यह सही बात वापस कर रहा है। मैं कर सकता हूँ कभी इसे चलाने के लिए कुछ नहीं मिलता यह शिकायत करता है कि यह रिटर्न वैल्यू टी: सार्वजनिक स्थिर टी MyMethod & lt; T & gt; () {if (टाइपफ (टी) == टाइपफ (Int32)) पर लौटा नहीं सकता {return 0 ; } और {वापसी "कुछ नहीं"; }} निम्न प्रयास करें सार्वजनिक स्थिर टी MyMethod & lt; T & gt; () {if (टाइपफ (टी) == टाइपफ (Int32)) {रिटर्न (टी) (ऑब्जेक्ट) 0; } अन्य {रिटर्न (टी) (ऑब्जेक्ट) "कुछ नहीं"; }} यहाँ चाल को वस्तु पर कास्टिंग है। आप जो करने की कोशिश कर रहे हैं वह स्वाभाविक रूप से असुरक्षित है क्योंकि कंपाइलर यह अनुमान नहीं लगा सकते कि 0 या "कुछ नहीं" किसी दिए गए T के लिए परिवर्तनीय है। यह सब के बाद असीम है तो बस कंपाइलर को स्पष्ट रूप से बताएं कि य

asp.net - Login control and ValidationSummary with Master Pages -

When login control is used with masterpages, the validation summary does not show the verification message. I have set the validation group property into login control ID. I tried to use the approach with no luck. thanks Try ValidationFirst 1. Validity Group = Login 1. ClientId; or ValidationMy 1 Validation Group = Login1. UNICID; Please note that if you choose to customize the layout template of this control in your ASPX page, then you should set up your validation verification group manually. By the way: & lt; Asp: RequiredFieldValidator ID = "UserNameRequired" Validation Group = "Login1" /> and code-behind: protected zero page_load (object sender, eventarges e) {validation f1. Validity group = "login1"; }

compact framework - How to end phone call in C# CF? -

Microsoft website gives an example to call C # compact structure, but I can not find an example that Thank you, You try to release an end key in your cell phone You can. Here's a thread that can help you:

uml - Bi-directional association between Footballer Mapper and Bowler Mapper -

This question is about a specific UML diagram in a book named Enterprise of Enterprise Architecture by Fowler. < / P> / P> < P> Not so. You are viewing a group from player Mapper: One of Copper Mappers: Footballer Mapper, Boiler Mapper and Cricketer Mapper. If you read the second paragraph on page 304, then it describes this design preference.

python - rstrip not removing newline char what am I doing wrong? -

By dragging my hair here ... for the last hours this is playing with, but what do I do to I can not get the I want, ie remove the new line sequence ifile = open (fpath, 'r') oilil = open ('ofile.txt', 'w') for line for ifile: if line == ' def add_quotes (fpath) \ N': ofile.write ("\ n \ n") Elph Lane (line)> 1: line.rstrip ('\ n') outline = "\" "+ line +" \ "," oilil. Written (converted line) ifile.close () offline.co.j () The sign is in the sign of rstrip . This is a copy of the string, but it has been stripped with the desired characters, so you have to specify the new value of line : Line = line.rstrip ('\ n') This allows for very easy chains of operations multiple times: "A string ".strip () As the observations say, the Python string is irreversible, which means that any "mutated" operation will produce a mutated copy. It does this in many types

google app engine request log breakdown -

In the Admin console log in section, an example line from the python app python is filtered for 'only request': 01-22 07:19 pm 55.483 / area / 5 200 82ms 161cpu_ms 115api_cpu_ms 0kb Mozilla / 5.0 (Windows; u ... w ... Anyone Columns 3: 55.483 - I think it's seconds in the time of the day. I think that's what the column is, the explanation anywhere about it is that I'm curious about: Is it, but it is weird ' Column 6: First I thought it was time to respond - but here's less than 82ms 161cpu_ms and 115api_cpu_ms, so what's the time? Columns 9: 0 KB - I think this is the size of the reaction. Our response is less than 1kb for this request, so I think they are doing the round. column 6: time to respond. Cause CPU time is high because too many operations Nantr jade. What are you doing in this request? CPU is the total CPU used to generate the request. Column 9: This probably rotates less and punching more integer

session - ASP Web App Timing Out Erratically -

I am going to work on ASP web application for a customer. Is there any problem to try to solve this problem? What Is there a problem? / Div> Perhaps some pages are adjusting timeout? Look ... Server.ScriptTimeout = x where x is the number of seconds before the timeout. I think the only other place to change the timeout is in IIS. . Good luck.

Determine number of Dimensions in a PHP Array -

Is there a way to decide how many dimensions are there in a PHP array? Good problem, here it is: function countdim ( $ Array) {if (is_array (reset) ($ array)) {$ Return = countdim (reset ($ array)) + 1; } And {$ return = 1; } Return $ return; }

php - Is this a correct JSON Data Structure? -

I changed my php result array to json. Now I want to know that this is in the correct Jason format. My code echo json_encode ($ line); I have to use it with jquery auto full plugin ... {"0": "1", "id": "1", "1": " "Algeria", "country": "Algeria", "country": "Algeria", "country": "country": "country" "Angola"} {"0": "4", "id": "4", "1": "Anguilla": "3", "id": "3", "1": "Angola", "Country" "" "", "Country": "Anguilla"} {"0": "5", "id": "5", "1": "Antigua", "country": "antigua"} {"0": "6 "7", "id": "7", "1": "Armenia", "id": &qu

Properties and Data Binding in .NET -

One advantage of hearing about the properties is that they can be used for databasing, while I Explanation does not get why "it works the way". Is there a way because there is no option (ie .net VM limit) or was it really designed like this, and if so why? This is just an estimate, / p> Although there is property descriptor may be equally Field descriptor , and you can do get the field as a reflection easily as a property ... so I suspect that this was a technical problem.

deepzoom - MultiScaleTileSource and Collections -

Does anyone know how to override GetTileLayers for archiving in MultiScaleTileSource class. I want to set the source in a xml document (which is a deep zoom archive dock). I need to remap from images and filename formats. It's simple with a single image, but how do you do it for archiving? Anyone? P> Thank you D Check it out is not officially possible. There may be a related question why the tileImageLayerSources argument of MultiScaleTileSource.GetTileLayers is not a collection of Uris in particular, and why it is a collection ... that is why we want to call several URIs in one call ?

api - What is an Endpoint? -

I'm reading about Oath and it's talking about ending points. What is actually a closing point? All answers posted so far are correct, one end point is only one end of a communication channel In the case of Oath, there are three end points for which you need to: Temporary Credential Request URI (called OO0 1.0A Community Specification, Request Token URL). This is a URI that you send a request to the server / service provider to obtain an unauthorized request token. Resource owner authorization URI (called user authorization url in OAuth 1.0a community specificity) This is a URI that you direct the user to authorize the request token received from the temporary credential request URI. Token Request URI (which is called Access Token URL in OAuth 1.0A Community Space) This is a URI that you send a request to exchange an authorized request token for an access token which can be used to access a protected resource. Hope that helps to clean things, learn about the f

WPF: Alternatives to Grid for displaying data? -

What are the grid options for displaying duplicated data in WPF? For example, how do I show clients as a list of business cards? You can use a ListView and use a custom datatappletlet that can be used by each customer The format, such as business-card , shows a nice tutorial here that does something similar.

java - Hibernate: How to set NULL query-parameter value with HQL? -

How can I set the hibernate parameter to "blank"? Example: query query = getSession (). CreateQuery ("country", "cadence", "hierarchy", "type", type, hibernate, etc.); CreateQuery ("countryDTO c to c.status =: condition and c.type =: type") .setParameter ("position", position, hibernate). In my case, the status string can be zero. I have debug it and it comes in hibernation, so this creates a SQL string / query like this .... status = null ... although this does not work in MYSQL, SQL statement should be " the status is zero " (MySQL does not understand the status = empty and considers it to be incorrect so that no record will return to the query, by the MacSQL docs I have read ...) My question: Why not < Code> Hibernate is "empty" to translate a null string correctly (and rather, "incorrectly" creates "blank")? What is the best way to rewrite this

How to handle time difference in ASP.Net (MVC)? -

I have published a web application on a server in the United States. The app is actually for people in Sweden (people in Sweden) and I am looking for the best way to complete the gap of time. There is a 7 hour difference. Should I store DateTime.Now as DB in , or should I use the date to change the time before making every record? What is the best practice here? What to store in the database? Should there be only differences while presenting it? Best Practices, Please! I usually get datetime. UTC now stores what UTC Time is. So when it is 13.00 in UTC, it is 14.00 in Sweden and 7.00 in the United States, you store the UTC time (13.00) and you will get a new culture Innfo ("SV-SE") for local time in Sweden. Always format date time with USA etc. Michael

caching - How to cache a List of objects in ASP.NET -

I have a list of items in an asp.net page when I load the page in the browser for the first time, I get the data from, create objects with those data and populate the list. All these page load events are done inside the handler. Now when the page is posted back to the page, the previous list has expired, because the variables have all been freed. How can I cache this list so that when all this stuff is available when this page is posted back? Elon asked, is this data user-specific or is this site unique? If the data is user-specific, you can use the session state to store it, though it will expire when the user session will end, and in some cases still on your database server A roundtrip (if for example SQL server is changed instead of in-PCS, etc.). If the data is detailed, you can also use it. This site is comprehensive, the process remains in the domain and is therefore available to everyone on that server, especially when using it in a multi-server scenario, but it i

Are there c++ classes or functions to use for asynchronous sockets between Unix and Windows? -

Would anybody please tell us that among the programs running Unix, sections that communicate with asynchronous sockets (TCP and UDP) Or find the function and windows? Thank you for your reply PS; I already have programs that communicate with synchronous sockets. There is support for asynchronous sockets on Windows and Unix.

javascript - How to programmatically set the value of a WebKit password text field? -

Update: This question is closed. Move along, nothing to see here. You can do set the value of the password text field either with js or objc I was wrong. I have a webkit based coke app that loads in an HTML document in a WebView HTML form has a password text field like: & lt; Form name = "foo" & gt; & Lt; Input type = "password" name = "bar" & gt; & Lt; / Form & gt; I want to set the value of this text field programmatically (if possible, with the objective, but whatever I do). I believe webkit (and every other modern browser) implements a JavaScript security feature which prevents JS scripts from setting this value to a program. Unfortunately, it seems that the same security restriction applies to the purpose-C, because I can not use the objcci to determine the value while js restrictions are fair, objc seems a little unfair is. Is the program a way to determine the value of this area (there is a lack of bun

svnignore - svn propget svn:ignore . returns nothing, but svn is obviously ignoring my files -

I am trying to add an existing iPhone project to a non-nuclear account on unfuddle.com. Everything looks smooth except for some such files which are ignored. I know that they are ignored because I do not see them in svn status unless I use the --no-ignore flag. When I Run svn propget svn: Ignore. I could not find any output. To ensure that I was not mad I ran svn propget --xml svn: ignore and get it < Pre> & lt ;? XML version = "1.0"? & Gt; & Lt; Properties & gt; & Lt; / Properties & gt; Does that mean there is no entry in the unseen property? How do I know when this neglect is coming from? New day. Clean the head. Thanks for the help, it definitely takes me in the right direction. The answer is a default global-invisible list that was created to delete itself, not the config files, which were there. * .a was coming from unseen. Ignoring global in my config file looks like this: # global-unblocked * * .o *

Must -read articles for C++ memory mangement -

"After reading the series, I think they should read the memory management Thanks! Read and learn well about idioms, from the two articles below: < / P> - Modern C ++ style - a conversation with the Burdy Strouststrup, Part II

Example of using HTML forms with Sparkview engine on ASP.NET MVC2 -

I'm playing with MVC2 on ASP.NET 4.0 with Sparkview 1.0. Trying to create a simple HTML form. When the form loads, it renders as expected. Click on the Save button on the form, the model validates, gives an error about the length of the field (expected), but then ! {Model.Name} tag is presented as $ {Model.Name} text, instead "Test blah blah" Where can I find an example of creating HTML forms using HTML helpers with SparkView? ! {Model.Name} $ {Html.ValidationSummary ("Edit was unsuccessful. Please fix the errors and try again.")} # Html.BeginForm (); & Lt; Fieldset & gt; & Lt; Story & gt; Fields & lt; / Narrative & gt; & Lt; P & gt; & Lt; Label = "name" & gt; Name: & lt; / Label & gt; ! {Html.TextBox ("name", Model.Name)} & lt; / P & gt; & Lt; P & gt; & Lt; Input type = "submit" value = "save" /> & Lt; / P & gt; & Lt; / Fieldset &

Suggestions on laying out web pages using CSS -

यह टेक्स्ट है: productName $ 100 कार्ट में जोड़ें मैं पाठ का अनुसरण करना चाहता हूं: productName $ 100 कार्ट में जोड़ें "productName ", और" $ 100 "को छोड़ दिया जाना चाहिए, और कार्ट में जोड़ें सही पंक्ति चाहिए, मुझे पता है कि इसे टेबल टैग का उपयोग किया जा सकता है, लेकिन तालिकाओं के अलावा, कोई अन्य सुझाव? < Div class = "post-text" itemprop = "text"> निम्न मार्कअप काम करेगा आप निश्चित रूप से किसी भी डिवा के चौड़ाई को सीमित कर सकते हैं, क्योंकि वे अपने मूल कंटेनर चौड़ाई का 100% होगा। & lt; div & gt; उत्पादनाम & lt; div & gt; & Lt; span style = "float: right" & gt; कार्ट में जोड़ें & lt; / span & gt; $ 100 & lt; / div & gt; & Lt; / div & gt;

java - Can I automatically update Hibernate pojos and mappings in Netbeans after adding a new table? -

I have hibernate mapping files and pods created by Netbeen, for which I've added the named query and additional methods. Now I have added the database and a foreign key column to an existing table. To add mapping to hand, there is not a big problem in just one table, but it becomes tedious and more prone to error. What I'm doing at the moment uses a wizard to create a new set of new sections and mapping in a new package and manually merge them, which itself is prone to mistakes Is there any way to update .hbm and java files automatically? What is the best way to keep the database and hibernate in sync, what you are trying to achieve is not. If possible, you should be surrounded in another way - should be in hibernation and change them in the mapping and they should be visible in the database. After all, this is your object model, which is not a database representation. / P> hibernate.hbm2ddl.auto check the property. If set to update , then it will upda

Winforms - a strange problem a with simple binding -

It is hard for me to describe my problem clearly but I will try to UserControl1 In which UserControl2 has many WinForms controls (most of them DevExpress). I simplify my dataset field for these controllers. So far, everything works fine when I take the focus to a record in the table (for example, by navigating into grid rows) binding works great, restraint moves the cursor and shows everything in the right control The problem starts when I add the new user UserControl3 to top UserControl2 and UserControl2.Visible = false . Now UserControl3 is displayed and UserControl2 is present but has not been shown. Now when I set the UserControl2.Visible = true to show again, the normal binding work stops! I navigate in the grid, but either the ConcurrencyManager closes the function or gets disconnected if it is bound to be compromised. My question: What is binding and with Android Are there any known issues? Concurrency manager? Thank you very much, Barda I got th

SQL Server 2008 user instance database creation failure within an asp.net project -

I have an ASP.NM Trying to create a database using the IDE within the MCC project's APIIDT folder, but I'm getting the "missing missing components" message which requires the connection (* .mdf) for "SQL Server files" Express 2005 ..... " I am using - Windows 7 Enterprise - VS 2008 Team System SP1 - SQL Server 2008 Developer Edition SP1 I use spaces By Tools - & g T; The database connection has changed to use the default settings on the spaces. Options - & gt; Database tool - & gt; Data connection: SQL Server instance name I also note from SQL Server Books Online that the user instance feature will be deleted in the future, but for now it is my application to develop an application The effort suits where many people are working on this project. Is anyone able to create a database in the same way? It appears that stupid dinner has done this << p> Examples of user-example database in App_Data code> will only

uiimageview - iPhone: Image View picture size limit -

Hey guys before me was a picture found that 2900x2100 in an image and the file size was approximately 4 MB, I have to see to move around a scroll was still image has also crashed it anyway, first I though it was Because 4MB size I made it 1287x1234 and 1.3MB, but when I zoom it it was pixeled. After this, I make it 2900x2100 to 1.5 MB! That's why I went on my device and it still crashes! Nobody knows why that is? Warning: Chek_ safe_call: could not restore the current frame > Here's more information, My view Hadidlod method: UIImageView * tempimage = [[UIImageView alloc] initWithImage: [UIImage imageNamed: @ "sanlucasFLAT.jpg"]] self._FLatLucasImageView = tempimage ; [tempimage release]; _FLatLucasImageView.frame = CGRectMake (-7, 0, 800, 800); _FLatLucasImageView.contentMode = UIViewContentModeScaleAspectFit; _flatlukasskrollvievkkantentsize = Kgsizemake (_flatlucasimagaviavkfremksaijkvidth, _flatlucasimagaviavkfremksaijkhait); _FlatLucasSc

computing large roots : bigdecimal / java -

I tried to use standard running algorithms to calculate nth roots. For example (111 ^ 123) ^ (1/123). The standard algorithm describes the high power of the base (111 ^ 123 in this case) , which takes a lot of time. The algorithm is given here However, I noticed that the only thing to use double is less than a millisecond. So obviously they use some smart ideas. Any sign on this? However, I noticed that the only thing that uses double is the least one Milliseconds, therefore, obviously they use some smart ideas. Not really double is simply limited precision, so it's basically just calculating the most important 52 bits of results and can leave the remaining calculation And of course, it also helps in being implemented in hardware.

Javascript equivalent to C strncmp (compare string for length) -

What is the equivalent function in javascript in strncmp? Strncmp takes two string arguments and an integer length argument. It will be comparable to the length of two strings and determines the length of the distance as far as it was. Is there a built-in function in Javascript equivalent? You can easily create this function: function strncmp (Str1, str2, n) {str1 = str1.substring (0, n); Str2 = str2.substring (0, n); Return (str1 == str2)? 0: ((str1> str2)? 1: -1)); } At the end of the function can be an option for Ternary, such as return str1.localeCompare (str2);

sql server - How do I count occurrences by day in SQL? -

नौसिखिया एसक्यूएल प्रश्न यहाँ -> मेरे पास एक घटना तालिका है जिसमें एक पंक्ति है हर बार उपयोगकर्ता ने कुछ किया। एक उपयोगकर्ता दिन में कई बार बात कर सकता है। ऐसा लगता है: दिनांक उपयोगकर्ता नाम ------ -------- 1/1/9 उपयोगकर्ता 1 1/1/9 उपयोगकर्ता 1 1/1/9 उपयोगकर्ता 2 1 / 2/9 उपयोगकर्ता 1 1/2/9 उपयोगकर्ता 3 1/3/9 उपयोगकर्ता 1 1/3/9 उपयोगकर्ता 1 1/3/9 उपयोगकर्ता 1 1/3/9 उपयोगकर्ता 2 1/3/9 उपयोगकर्ता 3 < P> मुझे बस उपयोगकर्ता नाम और उनके द्वारा दिये जाने वाले अद्वितीय दिनों की मात्रा (गिनती) वापस करने के लिए एक क्वेरी चाहिए उपरोक्त डेटा सेट के लिए, मैं जिस नतीजे की तलाश कर रहा हूं वह होगा: यूज़रनेम अद्वितीयDaysAppeared -------- -------------- ---- उपयोगकर्ता 1 3 प्रयोक्ता 2 2 उपयोगकर्ता 3 2 मैं खराब हो रही रखता हूं क्योंकि मेरी क्वेरी प्रति उपयोगकर्ता प्रति दिन अद्वितीय की गिनती नहीं लौट रही है बल्कि संख्या कुल मिलाकर उपयोगकर्ता की घटनाओं की। चुनें उपयोगकर्ता नाम, COUNT (DISTINCT (दिनांक)) के रूप में UniqueDays द्वारा उत्पन्न होने वाली घटनाओं से उपयोगकर्ता ना

c# - n-grams using regex -

I am working on an Enhanced and Alternative Communication (AAC) program. My current goal is to store the history of input / spoken text and to find the common word fragment or word NGram, I am currently using the implementation based on the lzw compression algorithm as discussed. Although this approach does not behave in the way of production of NGram. For example, I say that I "enter the mountain and through the jungle" many times. My desired production will be "the whole phrase" on the mountain and through the jungle. The use of my current implementation has broken into the Trigram and one word has been added on each repeating word. So on the first entry I get "on the mountain". This is an examination - this is another test. We believe that we have the following text: This is also a test - The emergency broadcast system test interrupted my favorite song My goal would be to "test this emergency broadcast system" I entered the nex

objective c - How access to response http headers from 'didReceiveAuthenticationChallenge' delegate method -

I need to deal with an HTTP authentication (401) using the NSURLConnection class, so I used "Connection: didReiveiveAuthenticationChallenge" Has implemented. Representative method In this method, to answer the server challenge, I need the information contained in the HTTP server response header (WWW-Authentication Header). My problem is how can I use this header with this method? (I noticed that the feedback headers are available from the NSURLResponse object (allHeaderFields method), but this object has been passed to the "Connection: didReiveiveResponse:" delegate method, too late to answer the server challenge Done.) Regards Sebastien. NSUrutitization challenge has a -failureResponse way. If that object is a NSHTTPURLResponse (and it should be for an HTTP connection!), Then you can query it for -allHeaderFields .

java - ArrayList Confusion and assistance! -

There are basically some pointers like IDs or tips to solve this question. Perhaps some of the things I can read About simplicity and loop that make me easy to understand! .. The question is: An ArrayList processing of characters: the type of cList type of object has been declared and is intialised to write a loop which will not count the characters There are no spaces and can print the number in the terminal window. And the second question will be: Looping through the string assuming that a variable has been declared as follows: string; And that the value has already been assigned, write a loop statement that will print the letters of S in the reverse order (so if s = "HELLO", your loop print Will be "olleh"). ArrayList () Public static zero major four f; Public array listing (int CLIST) {int cList =; While {cList} {System.out.println (cList); }} And another question: I have no idea, but it would be good to read! Thank you! You c

asp.net - web service link -

एक asp.net प्रोजेक्ट में वेब सेवा लिंक कैसे बदल सकता है? < Div class = "post-text" itemprop = "text"> मैं यहाँ भूसे पर पकड़ रहा हूँ, लेकिन क्या यूआरएल को विन्यास फाइल में जमा किया गया है? या फिर आप कक्षा के लिए स्रोत कोड प्राप्त करने के लिए परावर्तन () का उपयोग कर सकते हैं और फिर वेब सेवा को पुनः क्रियान्वित कर सकते हैं, हालांकि आपको इसकी आवश्यकता है।

Overhead associated with Exception vs Throwable in Java -

I know throwing a new exception (); There is a huge overhead because it creates a full stacktrace, etc. What to Throw new throttle (); The same problem exists? Is this behavior inherited, or is there a small (O) overhead to throw throttle? Edit From an Analyzer point, a user entering an incorrect password makes an exception to the general execution order of a program. So if I have: Public session new session () {validate_user_and_password (); } Throwing a UserNotValidException will correct from the Analysts point. Returning null or 0 just seems incorrect if your code is pretty intangible I just wanted to know if I could actually implement this code I am, or if I have to leave it on the theory. Programming-Point-of-View Exceptions and Analysts - Note-Off-View Exceptions. Note: I have given a very simple and silly example, this is not my case. Note 2: I know null will be a normal thing, but I need a summary and oo code properly, and, personally,

windows - Problem with Batch File -

I have the following batch file ... when I run it in a normal command prompt - it runs as expected. .. Find out that the server and destination are in existence, and backups and exits. When I run it using the task scheduler - it sends an email that it can not get the server, but still backup ... can someone put some light on it? I'm running it on a Windows 7 machine. : Check for network connection ... ping & lt; Server & gt; -N1 If Required "Answer by", if No Error Level 0 Goto No Networks If Not Available, then "\\" & lt; Server & gt; \ SHARE \ FOLDER "Goto Nofolder: Do Stop Robocopy" \\ & lt; Servers & gt; \ SHARE \ FOLDER "F: \ backup \ & lt; Server & gt; \ FOLDER "*. * / E / SEC / COPYALL / PURGE / V /LOG:"c:\logs?backup.FILENAME.log" / ZB / R: 5 / W: 20 / Tie Goto End: No Network Echo Network Not found ... c: \ Utils \ bmail.exe -s mailistister -t MAIL_TO -f MAIL_FROM -h -a "Error:

zend framework - is it possible to make a 'redirect' script in the library -

Is this possible? Say I have FF: class My_Redirect {function test} () // // some tests // other tests // direct script}} < / thank you in advanced! Yes, it is possible to speak technically but since part of the 'controller' of MVC application requests / feedback I do not recommend it, I do not recommend it. The library can be seen as part of your 'model'. If you want to redirect, you can use the Controller Assistant redirector , you can Zend_Controller_Response object, or you have a plain old PHP Headers () function (not recommended).

css - What are the differences between em and % in terms of text resizing and for fixed width site? Is em more hyped than %? -

टेक्स्ट के संदर्भ में em और % के बीच अंतर क्या हैं आकार और निश्चित चौड़ाई साइट के लिए? अगर मैं एक निश्चित चौड़ाई साइट में पाठ के आकार के लिए em या % का उपयोग कर रहा हूं और शरीर को {body: font -सईजः 100%} और पहुंच और मोबाइल डिवाइस मैत्री के मामले में निर्धारित चौड़ाई के लिए सीएसएस के उपयोग के लिए सीएसएस में ये सबसे अच्छा अभ्यास क्या है? क्या ब्राउज़र में टेक्स्ट को रीसाइज़ करने के लिए ctrl + 0 का उपयोग करने के लिए% और em में अंतर क्या है? कौन सा बेहतर है और क्यों किसी दूसरे पर उपयोग किया जाना चाहिए? % के साथ क्या समस्या है और मुझे em का लाभ क्या है, कृपया जीने के उदाहरण के साथ समझाएं। < P> दोनों रिश्तेदार उपायों को निर्दिष्ट करने के तरीके हैं I % कंटेनर के सापेक्ष है em फ़ॉन्ट आकार के सापेक्ष है इसलिए एक व्यावहारिक उदाहरण के लिए यह em की जांच करें और फ़ॉन्ट आकार (CTRL + और +) को बढ़ाएं, आपको दिखेगा कि इसमें डिव्स शामिल हैं इस दूसरे में, जब आप ऐसा करते हैं, तो डिव का आकार बढ़ता नहीं।

python Qt: main widget scroll bar -

We are trying to keep the scrollbar on the main widget, so if the user resizes the main window, you see the scrollbar , And they go up and down to see the hair widgets outside the small widget widget, allowing it to move right and left. The main widget has code with scroll bar. def Central WDG (Self, Main Wando): Self. Sentrlvidt = QtGui.QWidget (MainWindow) self.centralwidget.setObjectName ( "centralwidget") self.summaryBox = QtGui.QGroupBox ( "Project Management layout") self .summaryBox.setMinimumHeight (300) Atmsmrthnboks. Min Min (500) self.summaryBoxScroll = QtGui.QScrollArea () self.summaryBoxScroll.setFrameStyle (QtGui.QFrame.NoFrame) self.summaryBoxTopLayout = QtGui.QVBoxLayout (self.summaryBox) themselves. Summary Box TopLayout. Sets Controllers Margin (1,1,1,1) Self Support Box Layouts.Advisit (Self-Suppressed Box Sokol) SelfSurfBoxScroll.SetWide (Self) Central.svg (QtGui.QLayout.SetFixedSize) self.summaryBoxLayout = QtGui.QFormLayout (auto.centra

javascript - Confirm Save during onchange of drop down -

Changing the Selection Option I am confirming the user whether to save the changes or not, if the user selects the right one, So I am submitting the form automatically. Onchange = "If (Confirm ('Save?')) {This.form.gridedit.click ();}" When the user chooses to cancel, he is currently populating the selected option. My problem is that I have to populate the old value if the user selects the option to cancel the confirmation message. Please help anybody on this issue thanks Try this, do not think that you can complete it without some manual work. & lt; Script type = "text / javascript" & gt; Var ddHelper = {previousIdx: null, store: function (E, DD) {this.previousIdx = dd.selectedIndex; }, Confirm: Function (E, DD) {if!! Window.confirm ('save?') {Window.setTimeout (function () (// think that you need setTimeout for some browsers dd.selectedIndex = ddHelper .previousIdx;}, 0); }}}; & Lt; / Script & gt; & Lt; Onfocus = &qu

c++ - Link error: unresolved operator << for std::basic_ostream with CStringT -

I have reconstructed some of my Visual C ++ (7.1) project libraries and did not solve the problem with Linker can go. The project combines standard Windows libraries along with MFCs, all MBCSs Somewhere, something like this: std :: stringstream sstr; Sstr & lt; & Lt; M_MyCStringVar & lt; & Lt; Std :: endl; (I need this line, along with some other, basic & stream & lt; & lt;) Unless I have 2 other libraries in 1 Suddenly, all my exe linkser errors are: BasicFunctionsD.lib (CAccess.obj): Error (library) LNK 2019: Unsolved external symbol "class std :: basic_ostream> & __cdecl Operator & lt; <(class std :: basic_ostream> & amp; class ATL :: CStringT >> const & amp;) "(?? 6 @YAAAV? $ Basic_ostream @DU? $ Char_traits @ D @ std @@ @ Std @@ AAVA 01 @ ABV? $ CStringT @ DV? $ StrTraitMFC_DLL @ DV? $ ChTraitsCRT @ D @ ATL @@@@ ATL @@ @ Z) Regarded in the function "protected: zero __thiscall CAccessor :: C

eclipse - How do I get the "session data" shown in an error? -

I'm adding some functionality to the current application to show debug information when checking an error from error log view while doing something The name of "session data" suggests, usually it looks like this: eclipse.buildId = M20090917-0800 java.version = 1.6.0_11 java.vendor = Sun Microsystems Inc BootLoader constant: OS = win32 , ARCH = x86, WS = win32, NL = sv_SE Framework logic: -product org.eclipse.epp.package.rcp.product command line argument: -and win32 -ws win32 -arch x86 - product org.eclipse.epp.package .rcp.product It is something that can be useful to know how do I get this information? Some of these information from plugin org.eclipse.core.runtime.Platime.runtime Platform class, as shown: throws coreException (if "ARCH". Par (argument)) the public string solve value (IDynamicVariable variable, string argument) { // $ Non-NLS-1 $ return platform. TagsErch ();} and if ("ECLIPSE_HOME" .equals (argument)) {// $ non-NLS

how to declare a byte[] in C# so that ironpython interprets it as byte[] and not as a tuple -

In a C ++ / CLI we have a function that gives it: Array & lt; Byte & gt; ^ Outbuffer = GCNE array & lt; Byte & gt; (Buffer size); Iron Pethon it by byte [] . Regards as In C #, we have a function that gives this: Outbuffers = new byte [inbਫਰ. Length]; While a C # client treats Outbuffer as a byte [] , then IronPython treats it as a tuple with multiple arrays. How do we add IronPython to OutBuffer as a byte and not as a tuple? Why the discrepancy between C # and C ++ / CLI? Edit: This question opens and apparently resolves, but no answer has been given. Can it be corrected?

client server in android -

I'm new to Android What program socket programming is used in Android? If you give examples with dzamrh, then it is correct. Is the client who is the service? R - ray Socket programming is the same everywhere an application can be That you are using your Android as a controller for external systems (perhaps a set top box etc.) you can install external system as server and Android system as customer.

java - How can I write a ClassLoader that does this? -

I am trying to create a URLClassLoader that behaves as follows: if Otherwise, return a dummy class of your choice How should I go about this? My attempt was not to do this - see for details. Actually, you can not do this to see the answer to your first question

c# - Prevent opening a file -

I am using dsoFramer to open Docs files for victory. When a DOSX file is opened in DSofamer and the user opens the same document from Windows Explorer, the app becomes unstable. I will make a copy of the file and I'll work on it, if you have to save it, replace the original copy of the copy

scheme - define-type returning error on DrScheme -

When I try to run a defined type on the dosim, I get an error for an identifier "before its definition" Is: defined-type ". Why is this happening? I input: (defined type GUI [label (text string?)] [Button (text string?) (Enabled? Boolean?)] and returns to me: Before its definition, reference to an identifier: defined-type Defined-type is not part of the "basic" plan, it is a part of "typed scheme." To use this language in the DR scheme To: Ensure that "modi In the bottom window, enter: #lang type-scheme and "run" in the bottom left of the window. "Press the button.

reporting services - SSRS How to add a tablix footer group -

SSRS is feeling a newbie and a little silly. I am working on my first report (in VS 2008) and slang started working for my tablix group footers. It should be really simple, but how do I add it and report it to my Let's configure to show on every page of The group header working with me is fine, but I want to add the overall total to display at the bottom of each page in my reports. Thanks If you add a footer, then it will default on every page Will appear from There are two assets that can remove the footer from the first and / or final page of the report. However, by default, the footer is active on all pages of a report. So basically, if you add data to the footer, then it should work.

c# - Display change notification -

Is there a way to convert computer monitors into another? If the design settings are to be reset to the default, then the new one should be connected. system event. DisplaySettings changed = new event handler (System eventsDisplay Settings changed); You will find Microsoft.Win32; must be added to the context,

sql server - Copy Database Data from Many DBs to One. Data Replication (sort of) -

This includes data replication, type: There are many sites with SQL Express on each site 'Audit' database, which is 1 table in general form (to simplify life :) Now I need to get this table from every site, and copy the content (say, Date time value> 1/1/200 00:00, but it will obviously change) and SQL all For example, Many SQL Express DB with ID , definition name, definition type, date time, breakthrough, Navarakkhar 1, Navarakar 2 etc. etc. and the name of the site, the ID , the name of the definition, the definition type, the date time, the success, the new one, the redemption, etc. etc. Where the items are the primary key in the bold Is there a Microsoft (or non-MS I think) app / tools / manager already copying all the data, or do you have us Write yourself? Many thanks. You can use SSIS (which comes with SQL Server) to populate, It can be set with variables to change the connection string in different databases. I have a list that saves

convert rails plugin with rake tasks and capistrano recipes into gem -

I want to convert tracks into gems. Is there a way to auto add to the gem using the config.gem mentioned in environment.rb when rack work and castiestano recipes < / P> As Tadman said, you can not do this. However, you can either install a plug-in or require users to rack up their operations, such as

zend framework - How do I determine routing information when loading frontcontroller plugins? -

I recently added an admin module in my application. This application is different from the main site (different applications Administrator tools can be used on individual sites and admin users are stored in a separate table), and this is causing problems due to the singleton nature of Zend_Auth, I have an important time at my Zend_Auth example. Have been overwritten, and I am blowing my application. So ... I want to try to determine which modules are being requested in bootstrap and only the proper Front Controller plugin can be loaded. At this point of execution, there is a way to determine which module is being requested, or is there a better solution? how? Below is the method in Bootstrap to initialize the controller plugins. Protected Function _Infront Controller Plug-in Setup () {$ this-> Bootstrap (array ('Front Controller', 'Resource Loader', 'Session',)); // Get site security $ session INFO = $ this- & gt; GetOption ("resource"

svn - find all subversion working copies on machine -

How can I use the find unix utility to find copies of all work on the machine ? For example, I can use the find / -name .svn -type d command, but it outputs all the unnecessary results (many subfolders), while the mechanism of showing me Only the basic directory is required There is a related question, but it really does not help in my case: Maybe something like this? #! / Bin / bash if [-d "$ 1 / .svn"]; Then $ 1 for $ 1 and $ 1 in $, if [-D "$ d"]; Then ($ 0 $ d) fi; done with; Name it, for example - find_svn.sh, make it executable, and . Call like / Call_svn.sh / var / www (Some tweaking may require. Straight trailing slash. Normalize directory names, but works for me in this form, when something goes without slashes Is called).

html - CSS background with ) in its name? -

I want to display a div with a background image called "something like this": "image_ (1) _125x192.jpg ". It does not display, possibly due to ")" Is there no way to do this without changing the name of the image? #div {background-image: url (image_ (1) _125x192.jpg); Height: 192 px; Width: 125px; } Thanks! Use quotes background-image: url (" Image_ (1) _125x192.jpg "); W3 reference:

iphone - Getting a pointer or reference to a member of another object -

There is a newbie problem with purpose- c, cocoa and amp; IPhone - Phone I have declared a map view in my app representatives applicationDidFinishLaunching: Application: which is an example / indicator of the MKMapView class. mapView is a member of my application representative. viewDidLoad in my view controller: I get an example of my application representative with the following: app deliaget = [[UIApplication shared application] representative]; My View Controller also got MKMapView * mapView as a member. In ViewDidLoad: I try to set it up like this: mapView = [appDelegate mapView]; But it seems that I am not able to get the pointer or "reference" to the actual map view because when I [mapView sets Reciean: field animated: yes]; it does not work [[appDelegate mapView] setRegion: field animated: yes]; works. So the question is how do I get an indicator on appDelegates mapview It looks like you're caching View Map of your App Repre

wordpress - Why does get_posts() return only 5 matching posts, when it should return 9? -

वैश्विक $ पोस्ट; $ Cat1 = get_cat_ID ( 'test1'); $ Cat2 = get_cat_ID ( 'test2'); $ Myrecentposts = get_posts (सरणी ('post_not_in' = & gt; get_option ('sticky_posts'), 'बिल्ली' = & gt; "- $ cat1, - $ cat2", 'showposts' = & gt; 5)); $ Myrecentposts2 = get_posts (सरणी ('post_not_in' = & gt; get_option ('स्टिकी_पोस्ट्स'), 'बिल्ली' = & gt; "- $ cat1, - $ cat2")); $ Myrecentpostscount = गणना ($ myrecentposts2); गूंज करें $ myrecentpostscount; प्रतिधारा का मान 5 है (सही मान 9 होना चाहिए)। एकमात्र तरीका मैं इसे पोस्ट गिनती के लिए सही मान वापस करने के लिए मिल सकता है $ myrecentposts2 गणना को इस प्रकार बदलना है ... $ myrecentposts2 = get_posts (सरणी ('पोस्ट_not_in' = & gt ; Get_option ('sticky_posts'), 'बिल्ली' = & gt; "- $ cat1, - $ cat2", 'showposts' = & gt; 999)); वर्डप्रेस कोडेक्स में एक डिफ़ॉल्ट posts_per_page

jQuery return position of list element with class on table column click -

I was wondering how to return the status of a list element with a class of 'currentTab' in the following undetined list : & lt; Ul id = "coverTabs" & gt; & Lt; Li class = "current tab" & gt; & Lt; A href = "#" & gt; Individual & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Couple & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Family & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Single parent family & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; The class is set to be set to HTML. The following clicks sets the tab to 'currentTab' and then removes the previous square: $ ('ul # covertabs & gt; li'). Live ('click', function) Adds the 'Current Tab' categ

c# - Is BackgroundWorker a good subsititute for AsyncOperationManager? -

This is what I'm trying to do: My class (which is a UI Can be hosted by the app or a window service or whatever), need to get windows messages. Somewhere around, someone gave a suggestion (and some source code) to create a window in a separate thread, which forms the form, and whenever a window is sent to me at WndProc, it is a representative Runs using references to post. I was trying to work it but failed. Instead of spending more time on that Avenue and before I'm trying to copy the problem, to help post it here, I think I try to apply the same solution using the backgroundwalker I am here. By the tests I have done, I hope that when I am using the UI, then it should work very well, but my question is this: do not work with the UI Any advice about using? Edit: The way I am imagining this, every time a message is received by my "child" (background worker is running), then I A report will release progress. The only thing I need to cross through the threa

c# - How do you do transition effects using the Frame control in WPF? -

I thought it would be easy, but I do not think so. I have two pages that are loaded in my frame control I want to be able to either have a good slide effect from one page to the next or a simple fade-effect. It can not be found anywhere on the Internet. Update 1 The accepted answer is good, but I got a better one here. Update 2 If you can assume that I have found a better solution There is a similar problem discussed here: Take control of your frame when you navigate to a new page using the techniques described here. This kind of smell: xaml: ... frame name = "navigating" frames = "frames_ navigating" & gt; ... code: ... private bool _allowDirectNavigation = false; Private NavigatingCancellAventArge _navArgs = null; Private period _duration = New period (timespace.formsconds (1)); Private double _old heights = 0; Private Zero Frame_Navigation (Object Sender, NavigatingConselEventErguesE) {If (content! = Null & amp;; _allowDi

command line - How to get uBoot to work with a squashfs / What is FDT in uBoot? -

I set up a Commands Toolchain (from), and compiled the Linux 2.6.30.x kernel for a reference board. Have done However, for some reasons I am doing something wrong because I am not able to run the kernel from a squashface image. Image load on TFTP and unpressress is OK, but the console output does not start. I have not changed the linux kernel command line and this is just fine ( console = ttyS0,115200 root = / dev / mtdblock ). I am also a little confused that what is FDT in YouTube? I'm not completely sure that this is actually on the stack overflow, but then it's actually a superuser dot com I was able to solve it myself, I no < / Em> to use the openwrt-boardname-squashfs.img , but instaed should use the openwrt-architecture-uImage image, which contains only the kernel , From root.squashfs and openwrt-boardname.dtb as build_dir they are not copied to the bin / directory. After that, these commands will bring the board correctly: TFT 0xfc1e

rspec - rails image_submit_tag with cucumber/webrat -

I have the following search form with image_submit_tag instead of submit_tag. Now I fail clearly when the cucumber moves: When I fill "Q" with "true" / features / step_definitions / web_steps.rb: 33 And I suppress "submit" # features / step_definitions / web_steps.rb: 21 "Submit" button not found (Webrat :: NotFoundError) (eval): 2: in `click_button './features/step_definitions/web_steps.rb:22 : In "^ ^ (?: | I) Press" ([^ \ "] *)" $ / 'FEATURES / SEARCH. Feature: 20: and I press "submit"' ' This fails Cause in search of the submit button. Since I am using image_submit_tag, I What will be the webर्स / QC step for the form? I tried to do this and it Id option: & lt;% = Image_submit_tag "image_file_name" ,: id = & gt; "Submit"%> and in this feature: and I press "Submit" Note that : title = & Gt; "submit" did not wor

python: processing a 16-element list into an 8-element list -

I have a list of 16 elements [a00, a01, a02, ..., a15] and a list [b0] , B1, b2, b3, b4, b5, b6, b7] where b0 = a00 * 256 + a01 b1 = a02 * 256 + a03 b2 = a04 * 256 + a05 (etc.) What is the easiest way to do this? (I'm starting in Python) You can create an understanding list ... a = [a00, a01, ....] #Raid, 0,2,4 ... LAN (A) [will be closed at 15, 14] ## [I] * 256 + one [I + 1], then # one [0] * 256 + one [1], one [2] * 256 + one [3], ... a [14] * 256 + A [15] b = [a [i] * 256 + a [i + 1] i in category (0, lane (a), 2)]

windows - Portable scripting language for a multi-server admin? -

कृपया नोट करें: Portableapps.com में पोर्टेबल है, न कि किसी भाषा के पारंपरिक अर्थ में एकाधिक आर्किटेक्चर या ऑपरेटिंग सिस्टम पर इस्तेमाल किया जा सकता है जिसने भी इस शब्द को पोर्टेबल शब्द का उपयोग किया था, उसे मारना चाहिए। :) मैं एक DBA और sysadmin हूँ, ज्यादातर विंडोज़ एसक्यूएलएर चलने वाली मशीनों के लिए। मैं विंडोज़ के लिए प्रोग्रामिंग / स्क्रिप्टिंग भाषा की तलाश कर रहा हूं जिसके लिए व्यवस्थापक का एक्सेस या इंस्टॉलर की आवश्यकता नहीं है, जिसे किसी फ़ोल्डर में विस्तारित करने के अलावा कोई इंस्टॉल प्रक्रिया की आवश्यकता नहीं है। मेरा इरादा स्वचालन के लिए एक भाषा है जिसके आसपास मैं मानकीकृत कर सकता हूं। इस बिंदु तक, मैं sh.exe का उपयोग कर बैच फ़ाइलों और यूनिक्स खोल के संयोजन का उपयोग कर रहा हूं, लेकिन यह एक सही समाधान से बहुत दूर है। मैंने एक मुट्ठी भर विकल्पों का मूल्यांकन किया है, उनमें से सभी में कम से कम एक गंभीर कमी है या कोई अन्य। मुझे खुले स्रोत या दोहरी लाइसेंस के लिए एक मजबूत वरीयता है, लेकिन मुझे और अधिक कुछ भी पसंद है, मुझे सही उपकरण खोजने में दिलचस्पी है कोई भी चीज जो

php - how stop transfering form data when form is submitted to internal iframe? -

I have an upload file form and an iframe form presented with an af script, which has the goal of iFrame . I want to stop uploading the file when the user clicks on a stop uploading button. How can I stop transferring data in iframe? You have to break the connection and the only way to do this is to Btn.onclick = function () {reloading the page with window.location.reload (true); }

Setting up MbUnit for ASP.NET MVC -

I am using Visual Web Developer 2008 Express with ASP.NET MVC 1.0. I would like to use MbUnit as a test framework, then how do I set it as a unit test project for ASP.NET MVC web application? file -> new -> project -> windows -> class library Add reference to MbUnit.dll (or whatever name of their library) Add a reference to your ASP.NET MVC project enter a new category Add file and your test code You can try something like test dereven.net or resetter for the problem that you will be going through now. FYI latest features are included in the NUINT which are set to be added to the unit test. VS in NUnit and I think there is a better integration with various add-ons too.