Posts

Showing posts from September, 2014

android - How to create ListView disabled item labels for sections of list items? -

I have a customized cursor based adapter for my ListView . Each cursor has some columns of data, sorted by priority column. I know that you can create a disabled list item, such as working as a header, such as an app in the market (small green label). What I would like to do, will display the header for each group of each priority, they are already sorted by priority. Example data: heading, priority note 1, high note 3, high note 2, less note 4, lower Example of what I want in the ListView === High Priority ==== -note1 -note3 === Low Priority ==== = - Note2 -note4 How can I do this but any thoughts? Since you are using the cursor, you can try me. How to see its source for an example.

html - How can I avoid the overwriting of css properties? -

इस कोड को लें: #wh_wrapper #slider .scrollButtons.left {width: 100px ; } 100px की चौड़ाई केवल इस पर लागू की जा रही है: #wh_wrapper - & gt; # स्लाइडर - & gt; स्कॉलबटन्स छोड़ दिया अगर मैं ऐसा करता हूं: .left {width: 50px; } सभी .left वर्ग अब 50px की चौड़ाई है, जिसमें पहले से एक भी शामिल है । अब, मैं पूरी तरह से समझता हूँ कि कैसे इस त्रुटि से बचने के लिए (विशिष्ट वर्गों को सेट करना। #wh_wrapper #slider .scrollButtons.left आदि से पहले डाले।) मैं क्या पूछ रहा हूं अगर एक रास्ता है गुणों को निर्दिष्ट करने के लिए जो "वैश्विक" गुणों द्वारा ओवरराइट नहीं किए जा सकते। मुझे आशा है कि मैं खुद को समझाने में सक्षम था। धन्यवाद संपादित करें: अब मैं समझ गया! महत्वपूर्ण: -) लेकिन इस अन्य उदाहरण को देखें: #wh_wrapper #slider .scrollButtons.left {width: 100px! महत्वपूर्ण; }। Left {width: 50px; } अब #wh_wrapper #slider .scrollButtons.left अभी भी 100px होगा, लेकिन इसके बारे में: .left {width: 50px; सीमा: 1px ठोस # 000; } इससे पहले कि मैं उस...

Error calling method on NPObject! in Android 2.2 -

I am using the JavaScript interface inside my Android application so that JavaScript works on my Java Java application To invite. / P> It works well in Android 2.1, however, in Android 2.2, I'm calling the error message "Call to NPObject!" Calling the method when I call the basic method of internal calling, though the exception is throwing in javascript. I get this exact error: Uncheck error: Error in calling method on NPObject! Exits I was trying to do this with a JavaScript interface function from the web server: AndroidJS.populateField (field); On the Java side, the function does not accept parameters: public void populateField () {} Just the Java function is allowed to accept a parameter for me to solve this error. Example, public void populateField (string field) {} ​​ This is probably not possible, and possibly, due to only one reason throw this error May be. This is the only way to solve my specific scenario, hope it will help! :...

iphone - UIButton inside a view that has a UITapGestureRecognizer -

I have a view with a UITapGestureRecognizer . So when I tap on the scene, another view appears above this view. This new scene has three buttons when I now press one of these buttons, I do not get the button action, I get tap gesture action, so I can not use these buttons anymore. What can I do to get the events through these buttons? The strange thing is that the buttons are still highlighted. After getting the tap, I can not only remove the UITAP Jester Ranger because as well as the new view can be removed as well. I mean behave like full-screen visual controls . You can set your controller as a representative of UITapGestureRecognizer or The view (which also creates the gesture identifier) ​​can then apply to the - ogorian in the representative: Resigve touch: . In your implementation, you can test whether the touch comes under your new subview, and if this happens then instruct the gesture identifier to protect it. Something like the following: - (BOOL) sign: Ide...

content management system - White label/reseller eCommerce providers? -

I am looking for companies that allow white labeling / resellers of Portal / CMS that are focused on ecommerce , Or can be configured to include ecommerce. A possible example is a company that provides white labeling of Duplicate with UberCart. 1) Our company is a service provider that helps the customer to create a personal site our branded site offering our offerings Our company helps us in making a portal / site for help the customer helps us (the label will be used during our site as well as the service) but ideally, client site client Can be branded for 2) Our company Safe Labels is a reseller of service, under our brand Our company resells white label services, adding our company value to your client under your own example Is found. On the technical side, we are looking for profit from upgrades, availability, scalability etc. from any other version; Therefore research on white label providers. Update To clarify, I am looking for a company to work with ...

java - How to use Servlet 3 @WebServlet & async with Spring MVC 3? -

I want to integrate servlet 3.0 async support with spring MVC. Like something: @RequestMapping @WebServlet (name = "myServlet", asyncSupported = true) public string getMessage (string user name) {......} Is this possible? Not so fast, it is not easy to implement good long voting method. Works from, but there is a serious issue of "Thread Starvation" Every long voting will use a thread, if you have 1000 concurrent users then you will need a long service of upto 1000 votes. (Most of the time the server side status updates on the client browser Tetan) There is a continuous pattern in JT6, which intelligently releases the thread of the longest voting request to be used by the actual application logic.

java - Uploading Image using InputStreams = Out Of Memory error -

I'm trying to upload an image, but I'm getting something from memory errors if the image file is ~ 2 mega There is an Android device file file = new file (& lt; my image file & gt;); FileInputStream fis = New FileInputStream (file); HTTP Client Client = New HTTP Client (); PutMethod method = new purumath (myUrl); Request Entity Request Entity = New Interstitial Survey Entity (FIS); Method.setRequestEntity (requestEntity); Client.executeMethod (method); Exiting the memory error on the execute method method. How can I change the entire stream to read the memory and read the stream due to the accident? Sample of HT DDS output: 07 -27 10: 46: 24.334: debug / dalvikvm (26,576): 46 :: 24.374: 1196 objects in GC 6787 07-27 Oct. 522,592 bytes Debuts / dalvikvm (26,576): GC 33ms 07 freed 1738 objects / 196,752 bytes -27 10: 46: 24.374: information / dalvikvm-heap (26,576): 253,968-byte allocation Go to 5.184MB (frag case) for 07-27 October: 46: 24.414: Debug / dal...

Mercurial: restore files -

I would like to restore a file which has been deleted in some Commit, and to restore it under a different name , So that it shares history, in reverse, I would like to do svn cp src . Use peg modification What is equal in Mercury? I do not think Mercurial has an inherent way to do this. But I think that you can achieve the same effect: hg up -C REV # Update with a copy of the file & lt; Modify file in question & gt; Hg committed # Create second head on the basis of the old revision # Mix two heads in one # Note: Make sure the file is present in the HG command HG MV MYFILE . The file holds all its old history, because the best Mercurial can track it.

objective c - Confounding Cocoa problem — program hangs unless there’s an unrecognised method call -

Stay with me, it's hard to explain. I hope some heroes from there will know what is going on here, some history is needed; One of my coca objects, "ball" represents a small graphic. It is understood only within one scene. In some of the ball's methods, it asks the scene to Radra, the most important thing It is that whenever the position of the ball is set to the ball, it asks to see the redraw. It is achieved in setter. This is the mouth, as suggested in the suggestion: M - (zero) mouseup: (nse *) event {if (! [Runner is empty]) [[walkpath removeAllPoints]; [Voilepath append bisier path: runner path]; [Remove runner] all points; [[Organizing yourself] Setup: 0]; [[Self-organizing] Setpath: Voyalpath]; [Nstimer scheduled timer with interval: .01 target: [self-organized] selector: @sillector (speed) user information: zero repeats: yes]; }} In the ball. M - (zero) speed {CGFloat juice = 10; BOOL loop = yes; While (loop) {if ([self-step] == [[self path]...

wpf - How System.Windows.Threading.Dispatcher in the main UI thread is accessible from other threads? -

I have read that we can not access anything in the main UI thread in the Silverlight application from other worker threads. So it is possible to use an object of class system. Windows threading. Dispatcher that is linked to other worker threads from the main UI thread when we want to do some work on the user interface? Public Partial Class Dispatcher Example: User Control [Public Zero] AnyFunctionExecutingInSomeOtherThread () {this.Dispatcher.BeginInvoke (SomeDelegate); }} A dispatcher example accessed from any Thread can be because this thread is not related, if this thread is related, then it will be essentially useless because its main reason is to transmit messages from any thread to the right thread.

How to read email headers? -

Can anyone tell me that I can get full context of email header (date, sender, sender, sender, etc.) is. .), If any? Can I recommend Wikipedia's comprehensive article on this topic? Any questions you give to the RFC article should be answered.

Comparing c and java programs runtime -

I had a job interview today, we were given a programming question, and it was asked to solve it using C / C ++ / Java. , I solved it in Java and its runtime was 3 seconds (the test was 16000 lines, and the person with us said that the time to walk was appropriate), another person solved it in C and the runtime was 0.25 seconds, So I was thinking, 12 is a factor of general? Edit: As I said, I do not think there was really much for algorithm variation, except that in a small matter, anyway, this protocol was that we had to implement : A (client) and B (server) dialogue according to some Protocol P, the messages are examined before checking their validity, the protocol is defined by its position and text message, when it is a well State, had only one legitimate message in all states, which could be sent except to a state where there were 10 messages that can be sent, there has also been defined by the protocol transition 5 State Es and states. So what did I do with the state, out of whi...

NServiceBus: Events, Multiple Inheritance, Handlers being called more than once per event -

I have some mysterious problems, which once correlated with events created through more than one event per event called Looks Inherent Inheritance We are using only the interface for our messages and put it on to the NServiceBus.MessageInterfaces.MessageMapper.Reflection.MessageMapper () .BuildInstance () to use to do . Our Interface: IOperation Eligible - This includes basic operation information, members of this event work on things in a normal way. This incident is never raised directly. ISpecificOperation Eligible - Inheritance IOperationOccured . It contains more specific information. The problem is that when ISpecificOperationIckured is raised, handlers for IOperation Code> is called, HandlerXide for ISpecificOperation is called and then the message appears to be re-processed, then call the handler. What am I misunderstanding? To call me once per event, handler for IOperationOccured and handler for the one time call ISpecificOperationIckur...

c# - 2 WCF services, 1 common interface, multiple headaches -

I have 2 WCF services which apply an interface to a different library. Interface methods are not marked with the WebGet or WebInvoke attribute, but one service is going to handle the POST request, while the other GET is handling the request. So it looks like this: Service 1: All posts request handles the request is in JSON, the response is in JSON all methods inherited from the interface and they are marked with WebInvoke Service 2: All GET handles the request The request is in JSON, the response is JSONP with all methods inherited from the interface and are marked with WebGet So far so good Now let's fire these people. I think the error Is: In Operation 'SomeMethod' contract, 'IServiceContract' contains both WebGetAttribute and WebInvokeAttribute; Only one can exist Hmmm, it would be understandable that the actual interface was already marked with one or both attributes, but it is not. Double Hmmmm: This setup works perfectly well. If you create...

Any XML binding frameworks for Objective-C? -

Is there an XML binding framework for Objective-C? I have tried some searches Google and have not got anything yet. I'm looking for something that reads from XSD / DTD / XML and generates: Model class to store prices The actual parser, which reads from XML and populates model squares here There is a huge and simple tutorial that helps in creating an XML document using the GDataXMLParser Does it

iphone - problem with user defaults when saving a game... (int array) -

I have a problem in saving something and officially out of ideas. What I want to do, is an integer in userDefaults The array saves, then when this array is loading and restarts the game from this last point. What I do is that every time my ARI logic saves the actual game position in an array -> so far that it works fine, the array is saved and when I saved the array I read it, so it feels ok ... okay in fact it has saved the right array! Now I am restarting the game. I used to check for a bool variable that I also saved if the game was interrupted out of the system works fine. Now the part of the trick is. I read the array from userDefaults and WOHOOO! I got a little different array then I saved! I really can not understand why: ( Good: Now Code: What do I do to save the board here: NSData * Data = [NSData DataWithbites: & amp; BoardToV length: sizeof (boardToSave)]; [userDefaults Data for Data: @ "MB_boardSave"]; And here's how I Return data wh...

android - How to get the instance of the dialog (like DatePickerDialog, ProgressDialog, TimePickerDialog) after it pop up -

Precondition: I am working on Android automatic test, so we can not touch the application's source code, but just Test it out. Q: How to get an example of a dialog after popping up? After its example, it will be very convenient for further action, such as determining its value at times rather than sending the main event of activity. Thank you. It seems that you are testing "black box", which is "robotium" and " Roblickik "is the domain of such utility. See them, they specially press the button, wait for the dialogue, accept the dialogue and are ready in the same way.

python - Duplicate key-value pairs returned by memcached -

We are using a cluster of memcached servers for caching purpose, in a Django (Python) production, both of the CMAC And the problem in the form of Python-MMKitch API is under high concurrency, we have started to add duplicate key-values, that means we're assuming a multi value for the same key. Is there anyone who has such a situation and what is it? Since the memcatched servers themselves are not communicating with each other to maintain the singularity of the key-value pair, so these functions are the client library, so we are trying to understand further how Semmachate and Pygm-Mechchesh works. The client has to find out which memory server a value is based on its key. If you are using two different clients (or two different configurations of the same client), they are using different algorithms to map a key on one server, from which the same key Can send values ​​to two different servers. Would you like to switch in or when I reviewed the Pygmon Memkesh client last ...

nlp - Parsing bulk text with Hadoop: best practices for generating keys -

I have a 'big' line that delivers full sentences, which I'm processing with headop. I have developed a mapper which applies some of my favorite NLP techniques to this. There are many different techniques that I am mapping on the original set of sentences, and during the reducing phase, my goal is to gather these results into groups, like sharing the same basic sentence to all the members in the group. I think the use of the whole sentence as a key is a bad habit. I thought that creating some hash value of sentence can not work due to the number of limited (inappropriate belief). Can you recommend the best ideas / exercises to create unique keys for each sentence? Ideally, I want to preserve the order. However, this is not a main requirement. ASTO, Standard hashing should work well in most hash algorithms There is a much higher price point than the number of people who are likely to work with you, and thus the probability of a collision will still be very lo...

BaseAdapter or ArrayAdaptor - Android -

I am going to create a grid of images and I'm trying to figure out whether the array adapter or baseadapter While using it, stores data in an array, it uses the bassetor instead of an array adapter. I am curious that this is why I have seen one thing about an ArAidAptter, that its creator takes a textViewResourceId for an unknown reason - though the documentation says that getView has it If you want a certain grid of pictures for the menu, then what category would you recommend to choose from? Depending on what model data is usually, you choose your adapter class. If you have ArrayList objects, then use ArrayAdapter . If you have cursor with a database query, use a cursor adapter . The BidAdapter can be used for anything, but it requires more coding, because there is no intuitive knowledge to override the data.

database - Rails join tables or HABTM associations -

I am creating an application, in the application, I want to make events, then by registering directly for the event, creating a team By registering or joining an existing team, you can register for the event. I have originally set it up, as is the event- several teams, teammay user, user belongs_to team and event. However, if a registered user wants to join another event (or a team for another event), then I expect problems, and whenever I want to list things like @User.Event or @UserTemplates in Control Panel. Try to use someone to join these in a table and make a registration model / migration. Can I have a model that falls under the event, team and user? Am I doing all this wrong? You can create a joined model registration, and relative_to polymorphic, so that it can be of any type Could reference the object. Here's an example: Model / team.rb: The square team & lt; ActiveRecord :: Base has has_many: registration, as: = & gt; : Owner end model / user.rb ...

android - Off the shelf or roll my own? -

I want to take an Android based tablet - not a phone, I need a bigger screen And I do not need 3G. The person with the tablet will attach a webcam in it and the feed in the adinoroid tablet will be streamed on a web page as the w / app (later the video needs to be streamed back into the Android tablet Is - TDD). In addition, I need 2 types of voice over IP. I (TDD) can be a TCP inters device which can be, or may be obtained through endodai. So open: is there an open source which can handle it, either group or differently, or how should I have my code? Since I usually do not do this kind of stuff, what is the best way to deal with protocols, etc. I want to do some demos in a month or a short time. Sorry it's unclear - but the person is also asking for it (which can make me lean to win me to win because of the need for transfer. But I can roll around my own shelf building block For example, if I found out the shelf open source VoiP, etc.) Any open source that ca...

iphone - Questions before writing own RSS reader for iPad -

This is not a new topic, an iPhone () My aim is to add something new and the RSS reader Useful information before my implementation for (With the iPhone, okay? What's the only GUI difference?) Apple already provides examples, which uses native networks and XML parser etc. ASIHTIPEEEES also provides a good feature for downloading RSS XML data and using coca-rss. Just like Search in Gitob with RSS, there are lots of projects around it. So my questions can be: 1). What are the best or popular open source projects for RSS reader for iPhone and iPad? 2). Workflow can be simplified in the form of a network connection -> Download -> Parse XML -> Display data, any real problems around it? 3). GoogleReader is just an ordinary RSS reader example? I mean, can the normal RSS reader be used to read Google RSS reader content? Thanks for any other comment or suggest helping me to know more about this is not a complete answer for all your questions, hopefully...

standards - International phone number max and min? -

What is the maximum and minimum score for an international telephone number? (Country code + area code + phone number) , where the format of telephone number is ITU Standardized recommendation in E.164, which states that the whole number should be 15 digits or less, source: In addition to this, check the other Question on SO SO:

java - How to make DB return different rows for subsequent transactions? -

I have the following flows in a multi-threaded environment Start the transaction Update those sets of rows committed / rollback transactions I I'm using optimistic locking to handle multi-threaded scenarios, but in the above situation, DB is always returning the same set of rows, so if the second thread runs at the same time always Successful. Is there a better way to handle this? Can we force DB to return different rows for each transaction using some options? (atomicity, stability, etc.) I get the same top n record for all threads due to , separation, durability) theory of transaction separation means that other operations can not access such data Which has been modified during a transaction that has not yet been completed. So unless your threads do their transactions, other threads can not see what they have done. It is possible to change on most databases for one of the following: Recommended Read Read Unread unread In your case, you...

c# - Which class has the responsibility of setting Piece's pixels on a Board(2d matrix)? The Piece or the Board? -

Then, I currently have the board class which is composed of the piece s Each piece is a color and a string that describes the type of piece. It also has 2D matrix which is set or closed on bits, which allows me to know which pixels paint with desired color or not. My question is, what square should be responsible for pieces on the board? On one hand, I can say that the piece class should do this. But to do this, I have to pass the code as piece 's draw () as a reference to board and although it is not terrible I think it sounds awkward. It raises the problem that the piece board "know" the class. On the other hand, I can have a piece boolean [,] IsPixelSet (int x, int y) and the form of the form after the board will be: zero DrawPieceOnBoard () {For (int y = 0; y & lt; height; ++ y) {for (Int x = 0; x & lt; width; ++ x) {if (piece.ispxset (x, y) {board.DrawPixelAt (X, Y, piece.gatecar ());}}}} How do you do it? And why? I can not...

python - Reusing the same SVG in a PDF with wkhtmltopdf -

I have the following HTML for conversion of PDF using wkhtmltopdf: Lt; Html & gt; & Lt; Top & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Object data = "first. Svg" width = "100" height = "100" type = "image / svg + xml" & gt; & Lt; / Object & gt; & Lt; Object data = "seconds svg" width = "100" height = "100" type = "image / svg + xml" & gt; & Lt; / Object & gt; & Lt; Object data = "third. Svg" width = "100" height = "100" type = "image / svg + xml" & gt; & Lt; / Object & gt; & Lt; / Body & gt; & Lt; / Html & gt; I will use these SVG files more than once, for example, at the top of each page. How do I output Output PDF files re-use the already existing SVG, where the document increases the filestyle without a new broadcast in the PDF. It seems that you can turn t...

unix - How to add a directory tree to a ClearCase repository? -

I have a directory tree with a sub-directory, and I want to add it to a ClearCase repository. Currently I need to change the name of the directory, use CC's MKDir, and for every further Dior. Is there any way to do this automatically (maybe a clearance command I do not know, or a script)? I recommend using clearfsimport Give it View: "". " What's good with this script: Check the original directory, mkelem to add new elements to the required

maven 2 - Include additional resources in a jar -

I have compiled some class files and a jar file. Now I want to add some wsdl to jar file. Can you please tell me how to get it, pom.xml can be modified in the mim. Regards Gnash - 85 Where do those WSDL files come from? Are you part of your source? Assume that you have project + src + main + java + wsdl + resources please add to POM, & lt; Project & gt; ... & lt; Build & gt; & Lt; Resources & gt; ... & lt; Resources & gt; & Lt; Directory & gt; $ {Basedir} / src / home / wsdl & lt; / Directory & gt; & Lt; Resources & gt; & Lt; / Resources & gt; & Lt; / Create & gt; & Lt; / Project & gt; Then it should add your wsdl as additional resource Edit: An alternative way for which we do not Need to update project.build.resources to include all resource directories. This & lt; Project & gt; ... & lt; Build & gt; & Lt; Plugins & gt; & Lt; Plugin & gt;...

css - how to give two heights to DIV (one for IE and second for other browsers) -

In a CSS file, there is a way to give a specific height for a DIV which only applies to Internet Explorer And, at the same time, the same DIV is applied to all browsers, except for another height Internet Explorer? try it

ipad - How can I present an UIPopoverController from an UITableViewCell? -

- (शून्य) तालिकादृश्य: (UITableView *) तालिकादृश्य ने किया था चयन करेंअटइंडपैथ: (NSIndexPath *) indexPath {if (indexPath। पंक्ति == 5) {[तालिका व्यू चयन रद्द करेंअवश्यपैथ: इंडेक्सपाथ एनिमेटेड: हाँ]; [इंजनपॉपओवरकंट्रोलर उपस्थितपोपेओवरफ्रैक्टरः [टेबलव्यू सीमाएं] इनव्यूः स्वयं। दृश्य अनुमतिएरो डायरेक्शन: यूआईपीओपरएअररोइनएनिअनै एनिमेटेडः हां]; }} [popover नियंत्रक presentPopoverFromRect: [tableView rectForRowAtIndexPath: indexPath] inView: [स्व दृश्य] अनुमतिएरो डायरेक्शन: UIPopoverArrowDirectionAny एनिमेटेड: हाँ]; गुड लक!

c++ - Solve this Error ,while using 'export' keyword in templates? -

प्रोग्राम: main.cpp struct x {int x; }; निर्यात टेम्पलेट & lt; कक्षा T & gt; टी const & amp; मिनट (टी const & amp ;, टी const & amp;;); Int main () {वापसी मिनट (2, 3); } x.cpp struct x {int x; }; निर्यात टेम्पलेट & lt; कक्षा T & gt; टी const & amp; मिनट (टी const & amp; a, T const & amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; एक & lt; b? ए: बी; } त्रुटि: जीसीसी के साथ कंपाइल करना export.cpp: 23: चेतावनी: कीवर्ड 'निर्यात' लागू नहीं किया गया है, और export.cpp को नजरअंदाज कर दिया जाएगा: फ़ंक्शन 'int main ()': export.cpp: 27: त्रुटि: अतिभारित 'न्यूनतम (int, int)' की कॉल अस्पष्ट swap.cpp: 16: चेतावनी: कीवर्ड 'निर्यात' लागू नहीं है, और इसे अनदेखा कर दिया जाएगा त्रुटि: ईडीजी कंपाइलर के साथ कंपाइलर export.cpp ", पंक्ति 27: त्रुटि: अतिभारित फ़ंक्शन export.cpp" का एक से अधिक उदाहरण, रेखा 23 : त्रुटि: निर्यात टेम्प्लेट्स के लिए समर्थन अक्षम है swap.cpp ", पंक्ति 16: त्रुटि: नि...

winapi - How to achieve correct folder listing in C++ -

में "stdafx.h" शामिल है #include & lt; windows.h & gt; # शामिल करें & lt; tchar.h & gt; # शामिल करें & lt; stdio.h & gt; शून्य _ टीएमएएन (इंट आर्जिक, टीसीएचआर * एजीआर []) {WIN32_FIND_DATA फोल्डडाटाटा; हैंडल एचएफआईंड; Printf ("लक्ष्य फ़ाइल% s है। \ N", argv [1]); HFind = FindFirstFile (argv [1], और FindFileData); यदि (hFind == INVALID_HANDLE_VALUE) {printf ("FindFirstFile विफल (% d) \ n", GetLastError ()); प्रणाली ( "थामने"); वापसी; } और {करना} {printf ("% s \ n", FindFileData.cFileName); } जबकि (FindNextFile (hFind, और FindFileData)! = 0); FindClose (hFind); } प्रणाली ("विराम"); FindClose (hFind); } मुझे आउटपुट में एक फ़ोल्डर सूची प्राप्त करने की आवश्यकता है, लेकिन यह मुझे निम्नलिखित देता है: । । F f f असल में, मेरी फ़ोल्डर प्रविष्टि है: .. file1 file2 file3 मेरे पास केवल फ़ाइल नाम का पहला अक्षर क्यों है? धन्यवाद। का प्रयोग करें _tprintf (TEXT ("% s \ n"), FindFileDa...

php - acl for edit post page? -

I wonder if I have an ACL rule (PHP / Zend_Acl in my case ) Is used as edit page short? Editors / Arbitrators / Administrators The owner of this post Guessed parameters to allow for posting I will question if yes (to use ACL), how can I define it (I am using Zend_Acl , but if I give some code examples, then I will translate it May be able to). I think the application will usually be defined on start / bootstrap. In this case, in my partially dynamic form I should chk against the logged user. Or if it would be simple or enough? I think it was called

localization - Localizing XForms in EPiServer File Manager -

In the EPiServer file upload talk, meta data will be uploaded to an uploaded file such as title, link, description, author and publisher The form field has been implemented using xform and filesmyseri. Configured in config. The headings for these areas are defined directly in the HTML markup, in which the XForms controls are as under the snooplate. & lt; TR & gt; & Lt; Td square = "EP-tableCaptionCell" & gt; & Lt; Span id = "id_field1" & gt; Author & lt; / Span & gt; & Lt; / TD & gt; & Lt; Td valign = "top" width = "200" height = "10" & gt; & Lt; Xforms: input ref = "author" value = "" id = "id_field2" size = "40" square = "normal input" /> & Lt; / TD & gt; & Lt; / TR & gt; My question is, how can I transfer these field captions? In this case it will be the author. Localization is working in Japanese in ...

tsql - Pivot a one row column T-SQL -

I have returned a row line from the query that looks something like [ [Date 2] [Date 3] [Date 4] [Date 5] [Date 6] And I want all dates to be stacked in such a way [Date1] [Date 2] [Date 3] [Date 4] [Date 5] [Date 6] Various questions and statements of association How will I do without it? I tried to play with the PIVOT function but since there is nothing to collect the rows in it, I am confused. Try to use UNPVIOT, such as: Select dates (choose from your SEB) as P UNPIVOT (Date for Sake Inn ([Date1], [Date 2], [Date 3], [Date 4], [Date 5], [Date 6]) Unpvt

wpf - How to get databound TreeViews selected TreeViewItem's Header section height without child heights -

I am using a WPF tree with some heritable datatlets. Treviewview has drag drop capability. Can anyone help me get selected TreeViewItem header section height (actual height)? If I get the selected item's actual height (trevium. Actualheart) it will give height with the children. But I want it to be the height of the header element. I have achieved this by using a visual search to find a control inside the data template, which includes the entire head. I want to do it faster. The way is (more than the visual tree search) because I'm doing it in a dragrover event in the preview. There is a title with the name of the treeviewititit's name, which is named as a PushHeader, and to get reference to that part Can be used. Note that if the control template has been changed and the new template does not actually present the header, then it may be lost. var header = trivium. Template.Fundname ("Pantheidder", Tryvytim) as Framework Element; If (header! = Null) {...

regex - TCL Regular Expression Doubt -

According to my understanding of RE -> * mean Mail 0 or more events of previous regex - -> + means that the previous regex matches 1 or more frequencies Now take a look at the following examples: First: - % regexp {: +} "DHCP: Enabled" first puts 1% $ first: - & gt; ":" Variable is stored in the first% second: - % regexp {: *} "DHCP: enabled" puts $ 1% Sec - & gt; Why ":" is stored for the first one and not the other? second regexp {: *} matches empty string because empty String : has 0 events. If you use the -indices option for regexp , you will see that this position matches 0. % regexp -indices: * "DHCP: enabled" index puts 1% $ index 0 -1 In other words, regexp matches the first letter Account and returns returns.

eclipse - Missing package property files in war build -

My project contains unwanted various asset files that are located in packages that are being run from package target Maven build. Using the 0.10.2 m2eclipse plugin and the default "Package" target. In the project: src-> Main- & gt; Java-> Mypackage- & gt; MyProperties.java src- & gt; Main- & gt; Java- & Gt; Mypackage- & gt; MyProperties.properties After running a "package" target in the extended war directory: target-> Classes-> Mypackage- & gt; MyProperties.class - No asset file I am trying to get the group to adopt Maven, and to solve this issue Transferring properties files to be a deal maker will not be practical, any help is highly appreciated. The right way to do things is to do it. But some developers keep resources ahead of their sources (for example this is a standard procedure in the wicket). If you are going to do this, then you have to add your source folder to resources: pre &...

Pass Array From C# COM object to JavaScript? -

Similar to but in C #. I have a COM control that returns JavaScript to an array of strings. It seems JavaScript slang understands what I am doing and the array in JavaScript is always undefined. Javascript: Try {keystore.openKeyStore ("MY", true, wrong); Var fNames = new array (); FNames = keystore.getAllFriendlyNames (); Document.getElementById ('equals'). InnerHTML = fNames [0]; } Hold (error) {document.getElementById ('err'). InnerHTML = err.description; } fNames [0]; C #: This output for the public 'undefined' object [] getAllFriendlyNames () (if!! KeystoreInitialized) throw a new exception (" Store has not been started "); X509Certificate2Collection allCerts = certificateStore.Certificates; Int storeSize = allCerts.Count; if (storeSize == 0) throw a new exception (" The empty key store could be opened using the wrong keystore name. "}; Object [] favorable name = new object [archive size]; for (int i = 0; i ...

android - Rotate an image on the entire screen -

I can not seem to rotate an image properly on the whole screen. The problem is that when the image rotates, you can see the background in some areas. I also need to fill the image to fill the screen, when it rotates, this layout is I have tried different levels without success. & lt; LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" Android: layout_width = "fill_parent" Android: layout_heat = "fill_perrent" & gt; & Lt; ImageView Android: id = "@ + id / image" Android: layout_wind = "fill_parrent" android: layout_heat = "fill_parente" android: scaleType = "centerCrop" /> & Lt; / LinearLayout & gt; And here's the code I'm using. image = (ImageView) findViewById (R.id.image); Image.setBackgroundResource (R.drawable.back_big); Rot = AnimationUtils.loadAnimation (this, R.anim.rotation); Image.startAnimation (rot); I start the animation in onResume . ...

android - Launching another Activity creates a blank screen and crashes -

UPDATE: Fixed, this was due to missing properties in the views and I do not know how the debugger works: ) I'm really new to Android. I've just completed the Notepad tutorial and doing something like that (most codes are exactly the same). Events through which I am going: Debug app Click on the menu, which contains the correct item Click on Insert New activity opens (GoalEdit) I hit a breakpoint on the first line of GoalEdit.onCreate and get these warnings: a. (Activity Manager) The launch timeout has ended, keep awake! b (ActivityManager) Activity Record Timeline {...} I have a breakpack in setContentView in GoalEdit.onCreate - passed this After being: A activityTrade. Fo: Source not found. The related code is below: GoalsList.java / ** * of this activity Add a menu for * / @ override public boolean on cret option menu (menu menu) {super.onCreateOptionsMenu (menu); Menu.add (0, INSERT_ID, 0, R.string.menu_insert); Back true; } / ** * Select...

continuous integration - hudson lastest builds being pushed to updatesite -

I was thinking that there was a plugin or best practice to pursue Hudson's latest successful production. On the developer update site This is especially useful for manual testers as well as to get latest version of the product as well. Any comments and help are always appreciated. Exoxo, Gossip Girl. ps I hope someone will get a fun signature. Depending on what you want to do, there are many plugins to update sites to create artifacts To push it to deploy it from a simple copy to sftp or your app on an application server. Almost all things are possible. Also there is a publicity plugin, which you can use to automatically build or manually build. You can send an email or add jobs like other jobs or promotions ... If you want specific answers, then post some more information on your system to answer the questions For: * Do you have to push something for your updated site? * Which language is the app you wrote (like Java, PHP)? Which equipment do you use for buildin...

vb.net - How to draw readable tiny text quickly -

In the development of Flash-based memory manager, I should be able to see large amounts of data. With my eyes and monitor resolution, I can read 3x5 letters hand-drawn without much difficulty on 4x6 matrix Yes, but none of the system's TrueType fonts can better render at that size. I have tried to write the code to drag the font size in the off-screen bitmaps, and then use the drive to copy those bitmaps on the screen, but I can not get good performance, it is for development, the output Not so, therefore the display does not have to be optimal, but I do not want to wait too long for the data screen to refresh. What would be the best way either a pure font that I want to pixel-perfect, or even a bit of a bit of pieces is producing bitmaps? I am using vb.net, so I can not just create a bitmap as a byte array and can not pass to the bitmap constructor unless someone shows me how to change an array in an intake. . I would suggest to make the font myself Typing Light - ...

How to change default WCF page returned in browser? -

The old ASP.NET ASMX web services were used to create a web page, navigating the user in a variety of ways Allowing them to invoke and invoke them (unless the parameters are all simple types). WCF web services make pages very useful (you have created a service ... blah, blah, blah ...). My question is two parts ... Can I get WCF to produce results such as ASMX? OR Can I produce custom HTML which documents my service? if so, how? This service is a great example of the kind of thing I would like to do ... No, no more. The service page that WCF generates is difficult, and I have never heard of any tricks or techniques to change it. And no, you can not get back the old ASMX service page, either you have something you can do: Based on your WSDL Which fully describes your service, you are displayed under HTML support or man pages (or pages) and a static URL (like http: //myserver/myservice/helppage.html ) To fully describe your service, separate pages, as you...

c++ - Why do we need compiler defined constructor? -

Compiler-defined constructor is empty and does not start member variable. So why does the compiler make one? What is the difference besides what if a compiler was defined as a blank constructor between a defined constructor and a user? The existence or absence of a manufacturer affects how users of the classroom can instantize objects If the compiler has not created any default constructor, then you will not be able to use a class or a string unless you make your own constructor.

dictionary - using Python/Pexpect to crawl a network -

This is a logical thinking problem rather than coding. I have some working code blocks already working on one device - Telnet on a device that parses the result of a command that organizes the dictionary etc., now says that I want to analyze the network with unknown nodes I, A, B, C etc. (but I only know about 1) I give my code block node a. The result is a table with B, C; I save it in a dictionary Then I want to use that first entry (B) as a goal and see what this can see. Possibly add D, E, etc. and those (if any) add to the dictionary And then in this new populated dictionary do the same on the next node. The final output will be that only all nodes Visited, and all the devices viewed have been entered in this (or other) dictionary. Although I can not understand how it grows as well, and I can not understand how to avoid seeing more than one device. I understand that this is clear to me, I have explained, sorry if it is confusing Are you looking at graph algorith...

objective c - compile problem for xcode 3.2 -

I have a problem compiling the code in hex 3.2 I have a code where it is using the API of iOS 4, it will compile "MFMAsSUJSup Controller". With 4.0 fine xcode, but when I try to compile with 3.2 then I get the error due to "MFMessageComposeViewController" It seems that Xcode can not find the keyword for MFMessageComposeViewController for compiling for 4.0 and 3.2 To be able to and still use the MFMessageComposeViewController, what should I do? Thanks! I can not determine whether the version numbers you are referring to or not the Xcode version IPhone OS version of Shows that it is only available in iOS 4.0 and beyond, so you can not use it at all in previous versions of the iPhone OS. If you are having trouble with Xcode version 4, then you can not ask for help here because it is under a non-disclosure agreement, as far as I know it. If you are using Xcode 3.2 to compile iOS 4.0 to target source code, make sure that your project settings are correct and rea...

Adding pin points to google map with static list of street addresses -

I have a spreadsheet that is full of street address and I want to add them as a pin point on Google Maps I am Can anyone tell me that they should be converted to geo-code to work with Google Maps API? And if so, is there a device that will produce a list of addresses in a way where I can plug it in some javascript and it's good to go? ... or some suggestions I've never worked with the Google Maps API. You will need to change the street address in Latitude / Longitude values ​​for your object in Google Maps. Because you have a constant list of addresses, you probably want to geocode once, get the values ​​of latitude / latitude and associate them with the data points present in the spreadsheet. P> Once you add your figure points with latitude / longitude, you can create markers for each. When you create your marker object, you specify objects in the options: var markers = new google.maps.marker ({status: new google.maps.LatLng (myLatitude, MyLongitude ), Map...

JobDefinitions for Timer Jobs in SharePoint -

I've hit a problem with a timer job demand within an event handler is fine on my dev machine Works even where user is a farm administrator. On the staging server (and also production), this user will be different. Obviously it is necessary to become a farm administrator who creates / updates the timer jobs because they have access to Configuration DB. To combat this perception, I may be updated once several items using used a timer job that datasheet and if that happens, then I edit an update rollup Wanted to keep it in a certain period. Now I'm thinking I may have "a set time" job and timer job instead of a recurring timer job, check to some situations that no one is perfect before you act. Any suggestions about achieving my desired result after running a rollup function after any update, but not every one? The last answer is not correct, or at least not correct for SharePoint 2010. You can not make a definition of job like this in 2010, even with high...

Why doesn't rails clear (a cached) belongs_to value when setting the _id value? -

रेल का उपयोग करना, पर विचार करें: & gt; पी = पोस्ट.न्यू & gt; P.author = person.find (1) & gt; P.author_id = 99 & gt; P.author_id = & gt; 99 & gt; पी। लेखक = & gt; # & Lt; व्यक्ति आईडी: 1, नाम: "व्यक्ति 1" & gt; जो मैंने कभी नहीं समझा है: क्या कोई सचेत निर्णय सीक है? क्या कुछ प्रकार के एक प्लगइन है जो इसे ठीक करता है?

flash - Using a graphic to scroll the timeline in AS3 -

I have a movie clip with the instance name 'core' which has 500 frames in the core, and from the root timeline I have a I want to be able to click on the filmclip which I have the example 'scroller' and it has to clean 500 frames, front or back in a limited area. I have tried some things like timelinemax, but I'm having trouble doing the work of troubles. The timeline is created manually (without twitsmax or anything). Any thoughts? I can not find good examples anywhere. Thanks If you made a simple example, you could catch the argument. You can tune up the Scroll Range according to the needs of your value. import flash.events.MouseEvent; Import flash.geom.Rectangle; Import flash.events.Event; Var scrollP: point = new point (scroller.x, scroller.y); Var scroll range: int = 100; Var timelineetleframes: int = core.totalFrames; Var rect: rectangle = new rectangle (scrollP.x, scrollP.y, scrollRange, 0); Core.stop (); Function OnDown (E: MouseEvent): Zer...

Iphone UITableView custom cell button event -

I have a UITableView that has its rows in the form of a custom cell; they have 2 buttons in these custom cells. I click the button in the custom cell class Just wondering how I direct that event from custom cell class to the original view controller which holds the UITableView control. advice? Thanks You can: - (zero) Button Tap: (ID) Sender Event: (ID) Event {CGPET Touchposses = [[[Event All Talkies] Any Object] Location Inview: Stableable View]; NSIndexPath * indexPath = [self.tableView indexPathorrowoutpoint: touchpath]; If (indexPath! = Nil) {// do something here}} // in cellForForAtIndexPath, bind to selector: UIButton * button = (UIButton *) [cell view description: 1]; [Button addTarget: Self-action: @Selector (buttontap: Event :) Control events: UI ControlWatch Touchup Inside];

iphone - open iBooks from my app -

There are some PDFs in my app. I want to provide an alternative to open those PDFs in the other third party e-reader app. I can install on the device, such as the Stanza and iBooks Dropbox apps have successfully implemented this feature and I have other e-readers available on the device or about finding out the custom URL scheme for those apps. Any information Any help of any kind can be welcomed. Thanks in advance people. Check it out!

exception - Java Desktop app with Ms Access -

मेरा डीबी कनेक्शन त्रुटि है " वर्ग नहीं मिला अपवाद !"। मुझे क्वेरी परिणाम के साथ जावा jTable में दिखना है .. स्थिर कनेक्शन डेटाबेस कनेक्शन () कक्षा नो फूट एक्सपेशेशन फेंकता है {कनेक्शन con = null; फ़ाइल फ़ाइल = नया फ़ाइल ("PlayDb / PlayIS.mdb"); कोशिश {class.forName ("sun.jdbc.odbc.jdbcodbcDriver"); Con = DriverManager.getConnection ("jdbc: odbc: ड्राइवर =" + "{माइक्रोसॉफ्ट एक्सेस ड्रायवर (*। एमडीबी, *। Accdb)}; डीबीक्यू =" + file.getAbsoluteFile ()); System.out.print ("सफलता सफल !!"); } पकड़ (अपवाद ई) {System.out.print ("कनेक्शन विफल !!"); e.printStackTrace (); } वापसी के साथ; } यदि आप पूर्ण स्टैकट्र्रेस पोस्ट कर सकते हैं, तो आपके प्रश्न का उत्तर देना आसान होगा। विवरण के अनुसार ("क्लास नहीं मिला अपवाद!") ऐसा लगता है कि जेवीएम आपके जेडीबीसी चालक को लोड नहीं कर सकता है। कृपया पूर्ण स्टैक्सट्र्रेस पोस्ट करें। क्या आपने "डेटा" स्रोत नाम "सही ढंग से? ट्यूटोरियल कैसे" डाटा...

ms access 2007 - macro to email Accces reports not as an attachment -

I do not know VBA, for me there is a way to send emails to macros where the report will be in the body of the email and the attachment not as as? I currently use the "send-object" command and send it in HTML format, please advise. Thank you very much If you are using Outlook, you can write a report or query on the disk Can and use either HTMLBody or RTFBody, this is a time since I have tested it, I hope it is still useful. Const ForReading = 1, ForWriting = 2, ForAppending = 3 Dim FS, F DIM RTFBDI Slight MyApp New Outlook.Application Dust MyItem Outlook.MailItem DoCmd.OutputTo acOutputReport, "Report 1", acFormatRTF , "Report1.rtf", "DoCmd.OutputTo acOutputQuery," QUERY1 ", acFormatHTML," Query1.htm "set as FS = CreateObject (" Scripting.FileSystemObject ") f = fs.OpenTextFile (" Report1 .rtf ", ForReading) '' f = fs.OpenTextFile set (" Query1.htm ", ForReading) RTFBody = f.ReadAll ...

c# - Iterate over each Day between StartDate and EndDate -

इस सवाल का पहले से ही एक उत्तर है: 11 उत्तर मेरे पास एक दिनांक समय प्रारंभ और समाप्ति तिथि उदाहरण: StartDate 7/20/2010 5:10:32 PM और समाप्ति तिथि है, मैं कैसे कर सकता हूँ, समय के बावजूद, उन दोनों के बीच प्रत्येक दिन में फिर से दोबारा? उदाहरण: StartDate 7/20/2010 5:10:32 PM और समाप्ति तिथि 7/2 9/2010 1:59:12 पूर्वाह्न है। मैं 7/20, 7/21, 7/22 में पुनरावृति करने में सक्षम होना चाहता हूं .. 7/29। दिनांक तिथि और दिनांक> दिनांक = दिनांक = दिनांक> दिनांक तिथि । दिनांक यह सुनिश्चित करना है कि आपके पास उस अंतिम दिन है, उदाहरण के समान।

perl - How do I learn about programming fundamentals? -

I'm starting in programming, I have a big piece of code. I break it into functions, return values, I want to pass values ​​into another function. I want to be an expert in doing this to tell me where to study or how to become a specialist on these simple basic principles when I use the pointers in the function and all this? As the beginning, Pearl The best way to read a standard book eg; From inventor himself. This book helps you to understand a lot of things like subrutines Data structure Context , etc.

c# - WMZ files from MSWord when porting to HTML -

When I copy clipboard data to Clipboard.GetData (DataFormats.Html) in C # . Toasting (); , the ".wmz" files are being stored in the "floating" path. (It exists in the v: imagedata src section) The original word file contains symbols of mathematics like Delta, and these are not "Windows Media Player" video files (in which ". Wmz "extension). Then I copied this temp file to a permanent place and updated the src path and cleared the clipboard. But my new HTML content does not display the actual image (stored in the format ".wmz"). But regular ".png" or ".jpg" files in HTML, this approach works fine. I am facing problems with these ".wmz" files as well. Can someone help in converting these ".wmz" files correctly into an acceptable format in a browser? This is a format. I think you can work with System.Drawing to convert it directly to a .jpg or .png, like WMF (which is a PNG form...

c# - Not able to Call a webservice from VISTA -

We have a webservice that is called from a Windows application, it works only with the exception of 3 users, which When machines trying to access the webservice, they get an error below "An essential clutter is not organized by the customer" when they are using the VISTA operating machine. Although they are able to use the webservice ASMX URL directly from their credentials Browser with Yl. Can someone ask me to understand this problem Try running as an administrative user and check that this problem persists.

WPF Binding: Expression evaluation -

I have a list box in Markup and an extension control list box template determines a description button for each element. If this button is pressurized for the dependency's property in the element's datasource, the visibility is set to == visible. As long as I have a select object, everything is fine. But if there are no selected items, then the extension control is always displayed. Markup: & lt; List box x: name = "myListbox" /> & Lt; Local: detailcontrol visibility = "{binding element name = myListbox, path = chosen itam.individuality}" /> Everything I need is something like this: & lt; Listbox x: name = "myListbox" /> & Lt; Local: detailcontrol visibility = "myListbox.SelectedItem! = Tap? {Binding element name = myListbox, path = selected Iemem.DetailVisibility}: Visiblity.Hidden" /> The snippets do not compile both, but they are made available for clarifying my point.

multithreading - TimerCallback Delegate to drive an STA model .NET library component -

I use the timer callback rep mechanism to run instances of objects from a third party .NET library component on different threads. I am trying to Executed on a timely basis. When I try to make an example of an object from the library, an exception is raised: (The name of the object) can only be called > Single-threaded COM components have a tough requirement that you create on the STA thread. By using the [STAThread] attribute on your main () method and you create a message by pumping the loop. Such as the application made by the app. Like that. (). Now you can call such a component from an employee thread or timer callback. COM ensures that the single-threaded requirement is met for the component and the martial who calls the STA thread. Losing all that you were trying to accomplish, all the components of the component move on only one thread. You will slow it down, not fast. Marshalling the call not is fast. There is no secret sauce here, you can n...

c# - what is the ascii code of windows key? -

What is the ASCII code of the Windows key? In my C # application I want to lock or disable the window key. Actually like the Windows key, key 't has an ASCII value only' Printable 'key To have an ASCII value you will have to use the keydown or key up event to find the key as the key key and press the key to use the keycode. This key is for ccode 93. Ex: - Private subtxt_KeyDown (shift key as integer, as KeyCode integer) if KeyCode = 93 then msgbox "93" end if end subs >>

javascript - Html: how to calculate layout boundaries -

Is it possible to calculate the boundaries for the html layout block? For example & lt; Div id = "region" & gt; ... & lt; / Div & gt; and #area need to find the minimum size (width, height measured in pixels) to fit the popup modal dialog. How are these perspectives stable? Thank you in advance! You can use jQuery width and height functions. See This works for me in FF and IE 6/8, so it is quite stable.

.net windows application with sql database + create a setup -

I created a Windows application in .net 2.0 and used the SQL database in the back-end. I want to create a setup file for this application so that I can install it and run it on any machine, which is not either the .NET framework or SQL Server. Please give me some useful links for this. Being part of SQL Server is a difficult part. You will not be able to package SQL Server with your project. Probably SQL Lite? I have not used it, but adjust the search according to the above version and see what you can find.

.net - How to prevent expected exceptions from breaking the debug test run? -

When running a MSTE unit test in debug mode, execution exits every expected exception. My test looks like this [TestMethod (required) [Expected exception (type of argument)] Public vacuum should be Sheeshractions Packaging () {Object data = zero; Target.CheckNull (data); } The target method looks like this: public zero checkonal (object data) {if (reference (data, empty) () new logic ( "Info");}} // test run break here: ArgumentNullException user code Try running tests using ctrl-r ctrl-T instead of ctrl-R T ? Edit if If this keyboard shortcut is not a problem, then check the link below. Try the following notes: Disable the "User Break on Unrestricted Exceptions" exception types that are coming here (via debug -> exceptions) For all exceptions, "User Unhold Disable Breaks on Exceptions (via Debug -> Exceptions)

vbscript - Scripting.FileSystemObject and ..lnk file -

I am looping all the files inside a folder Scripting.FileSystemObject It appears that a file named lnk is present Is there any way to fix this? Thanks Looping through folder using WMI also * .lnk files Try looking for this example: strComputer = "." Set ObjWMIService = GetObject ("winmgmts:" _ "and" {Impersonation Lill = Impersonation}! \\ "& Struct Computer & amp; \" \ root \ cimv2 ") Set ColFiles = objWMIService _ ExecQuery (" CIM_DataFile Select from * Choose where drive = 'C:' and path = '\\ Temp \\' ") For every obz file call files, Wscript.Echo objFile.Name next to I hope That it helps. / frank

asp.net - How much time would be good to set in expire header for a website? -

"Web pages are becoming more complex with more scripts, style sheets, images, and flash There may be a number of HTTP requests to load all the components in order to be loaded from time to time. These components are cacheable by using the explorer header, which avoids unnecessary HTTP requests on subsequent page views. Finally ending with header images. But they can be used on all page components, including scripts, style sheets, and flash. As written in Yslow . My question is, would it be good to set the end time for website with stylesheets, flash headers, javascript, images, PDFs, MS Excel files, PPTs etc.? I want to set the equal end time If your page resources (images / CSS / JS) do not usually change and are fixed, you set the ending header as 1 year can do. Pages for this really depends on the content . If you have a lot of changes in the material, then you should make sure that your expired header is not large or your visitors will get the latest co...

c# - Copy the RequestMessage at IParameterInspector.BeforeCall() on WCF Service -

I have a WCF service with the IParameterInspector class that stores the message for each incoming message I assume that I need to remove the values ​​from the input parameters. I'm trying to get the message Blockquite Operation Context. Present. File request Request Message Blockquite and call to create CreateBufferedCopy () method to make a copy so that I can work in the message (read) and send it forward, But I am receiving the following error: "This message can not support operation because it has been read." Any thoughts? thanks a lot! IParameterInspector is removed followed by The message is read by the contract / XML serializer so that the message body can be eaten in advance. If you want to receive raw input messages, then you should do so by creating IDispatchMessageInspector instead of the message so you can still cross it under the WCF pipeline. .

concurrency - Unit testing concurrent software - what do you do? -

As the software becomes evenly concurrent, how do you test the main behavior of this type with its unit tests (not parallel behavior, just main behavior)? In the good old days, you had a type of what you said, and you have returned it and / or what others called it things to say. Nowadays, you call a method and the actual work is determined to run on the next available thread; You do not know when it will actually start and call other things - and what's more, these other things can also be together. How do you deal with this? Do you summarize / inject the concurrent scheduler (for example providing duplicate / duplicate work parallel libraries and unit tests)? The resources you have helped have helped you? Edit I have edited the question to emphasize on this kind of general behavior (multi-core advantage) Is used to ignore parallel mechanisms to take, eg TPL) The unit tests for race conditions and deadlock The area is relativly new and lacking good equipment...

c# - Template for Control Effect -

I was wondering if there was a way to create a template for an effect, so I applied it to all its controls In this way if I had the effect of being modified, then I would have to change it only in one place ... Assume that I have: Lt; Button content = "foo" height = "50" width = "50" & gt; & Lt; Button.Effect & gt; & Lt; Drop Shadow Effective Blur Radius = "10" Color = "Black" Opacity = "0.5" Shadow = "0" /> & Lt; /Button.Effect> & Lt; / Button & gt; I would like (I know this is not correct): & lt; UserControl.Resources & gt; & Lt; Effect x: key = "myfact" & gt; & Lt; Drop Shadow Effective Blur Radius = "10" Color = "Black" Opacity = "0.5" Shadow = "0" /> & Lt; / Effects & gt; & Lt; /UserControl.Resources> ... & lt; Button content = "foo" height = "50" ...

asp.net - HTML Select Size not being rendered -

Recently we copied an ASP.NET webforms solution. In this solution we are using some ASPs: listboxes where rows have more than 1 property set to This renders the following HTML .. I'm feeling OK but the strange thing is that the browser does not render in the copy solution that what it should be rendered. The size of the property is being ignored. It is sung as simply if the size was set for one This solution applies to all listboxes in the masterpages and the web. Comparison and no difference. This problem also applies to all browsers. I used the IE8 Developer Tool to compare documentmodes and to solve both of them. I have no clue where to go from here .. Can I sample big code? The syntax on that line looks ok is there a unique identifier in all the options? If so, try putting self-generated tags with some dummy data. EDIT: Asp.net net MVC

javascript - Show request's timestamp in Fiddler? -

I got a long fiddle trace (with a complex scenario) and need to correlate the requests with application logs. Unfortunately, while Fidler displays the requests in chronological order, it does not display the timestamp of the request. To access that information (which has been recorded), I have to right-click each row and look in the pop-up window with properties, it takes a lot of time to comb through hundreds of lines. Looking at the raw capture data is not good because each request has its own file and I need the feedler interface. Pedantic Note: I know that there is no timestamp to show below (all the timestamps recorded below) would be OK to connect the client (or some other, unless it is the same, Eye allows to correlate the log). Thank you. == Time Info =========== Client Connected: 10: 32: 57: 8 9 06 Client DonorAidist: 10: 32: 57: 8 9 6 Gateway Scheduling: 0 ms dns lookup: 0 mms TCP / IP connect: 0 ms serverGujarati request: 10:32:57: 9 002 serverbuzzing response: ...