Posts

Showing posts from January, 2015

write the data from an excel sheet to the text file though C# -

I have to write data from excel sheet / workbook in the text file, though C #. Also, I want to excel the worksheet data excel in a text file. Any other easy way to do this by reading data from Excel Sheets one by one and then adding it to existing text file? Can anyone help me with it? Thank you in advance I read the Excel file for a connection string Suggestion to experiment with You can use your preferred method, say, to spit the data in a text file.

interface - Hardware to do i/o to and from external devices -

I have found a potential client who wants a database based app, either driving MySQL or PostgreSQL in Java or Python, But we need to get input from the outer machine, every time when this external machine closes a microswight, then one value decreases in the database and it appears on the app. In addition, when the value in the database becomes zero, then we want to turn the light on the external machine until the operator does anything in the GUI, and then we want to turn off the light. The proposed solution for my client is to wire the microwwight in one of the keys on the keyboard and just avoid using that key for some more (they suggested the F12 button), and To control the light by ringing the sound, file it through the left channel to start it, and the right channel to stop it. This is a little thing for me, especially the wire going to the keyboard - and not just cheese, but it is possible source of hardware problems if the operator accidentally removes a wire. I want

flash - how to pass an object from a windowSWF to JSFL? -

I am working with a fla, as a file (document class), and a jsfl file. The SDF is generated in the window SWF folder (such as $ Flash / Window SWF) I have a simple window SWF and I have M3 Mxcute and Flow. I did not imagine that I would be in trouble if I use things. In my window Sweep I have a datagroup named SettingsGride with the following columns: ["prefix" "suffix", "type"] and I settingsGrid.dataProvider Tring to pass toArray () to jsfl script. The problem is that it is undefined on the other hand. Any indication about how I can get around that? Brief version: How can I type an array of objects in {prefix: "value", suffix: "value"}: "value"} actionscript to jsfl My function calls appear: "Element list missing after error" Like this: < Pre> MMExecute ('fl.runScript (fl.configurI + "Command / LazyJane.JSFL", "Generate", "_",' + settingsGrid.dat

opengl - Iphone app PNG sequence animation - How to use OPENgle optimally without crashing -

I am making an animation in opegle with pngs and I am considering using the highest Cuban compression and the PVR conversion Does not use. Do anyone know that you can do the maximum amount of frames before the processor starts? And I have a series of frames, I will also keep in mind that my PNG sequence is about 75 frames and many of these are being repeated to help. All the best, Charlie If you are all 75 PNG images If you are animating through, you may want to leave OpenGL, and just "animation images" in UIImageView.

ruby on rails - How does one collect rcov-style information on the processing of erb templates? -

I am using RCOV on the set of tests, in my automobile application through rail routes). It already produces knowledgeable results for set-up controllers, models, assistants, and Lib codes. Unfortunately RCV does not track code coverage in ERB templates, which makes sense. ERB templating is a very challenging vibe on the general concept of execution. Rails can generate good reports where exceptions are raised in templates and, like, I think this is the figure that can be harvested. I am currently trying to find points in the RCO on which I can conjure up, but it is making it difficult for nature of the system, see that what is happening is clearly telling me this There is also doubt that some amount of ERB will be necessary. If you have any ideas for your attitude or solution, then I appreciate it. Once I get the installation method found, I'm cleaning this code and plug it in as an open source plugin rails. "itemprop =" text "> I only really need

Is there a Database Diagram programes more powerful than that with MS SQL Server? -

As I have said, I want the program to give me more helpful diagrams for example: The MS SQL Server Diagram has not given you a good design for relationships, so if you have too many contacts in the same table Create and not set lines for specific columns that can confuse you if you have E table and complex database. You end the lines at the bottom of the individual key but if you move the table, they all Goes back to the table.

Getting a iPhone OS 2.2.1 app approved after the OS 3.0 release -

I'm writing a new iPhone app that does not depend on any of the 3.0 APIs. 2.2.1 should work fine and at present and on a larger scale in the user base near the final form I have seen that Apple had expected iPod Touch owners to pay $ 10 Upgrade to 3.0. It does not leave a number number of cheap users who will live with 2.2.1. Therefore, I have to create and release this app using the target 2.2.1. I know that all app store submission should run on 3.0, and I'm planning to do a lot of testing at 3.0. But the language leaves me optimistic, but will Apple continue to accept App 2.2.1 app submission (and for how long?), Or do they laugh manually, and just apply 2.2 to 2.2.1 app rejects We do? Main question: Since the release of 3.0, the 2.2.1 compatible app was released on any one and it was accepted (or 3.0 was clearly rejected)? <2.2.1 (3.0 on SDK) its own app (task coach) was made, but it is irrelevant) and was approved last week, so go for it.

database - General Oracle Results Table -

I am preparing a new laboratory database. I want all the raw results (for all tests) in a table ( RESULTS ). However, the numeric values ​​differ greatly in quantity and precision. For example, some results only count a whole number, while the other results are very sensitive. Which of the following cases (and why) ( ) Option 1: Store each one with the highest precision result in the raw_result column as a NUMBER . Option 2: Create the results table and type the same data type as a with a specific coding Each representation result of raw_result column and many child tables (i.e.: integer to 1 to 1000, decimal number to 6 decimal places, etc.) In addition to this, in the related posts, Ideally asked to store raw signal NUMB internally for oracle ER, regardless of precision and scale P> Option 2 Terrible maintenance seems like a nightmare, and if you decide to change the accuracy of one of your values, what do you do? Edit: For example, consider: SQL &

asynchronous - Does Java not do things asynchronously? -

I am trying to learn Java, I was reading a tutorial that said something like this: < Pre> while (N & lt; = 0) {TextIO.put ("starting point should be positive, please try again:"); N = TextIO.getlnInt (); } It seems that when you ask the user for input, it is not suspended until the response is received? I am getting asynchronous for these things. Is this normal for Java? Or can you both? Thank you. I'm not aware that TextIO is the library, but when calling, i.e. < When using the code> System.in.read () , this block will make it synchronous until input data is available. You can avoid this by using the second thread to capture the input (like make asynchronous).

Which is a better option, OpenGL or a game engine for developing a game for the iphone or ipod touch? -

I am new to OpenGL, and I'm about to start a 3D game for the iPhone in which we are showing some cars Chasing or racing Is it possible only with OpenGL ES or UIKit, or do I have to use other tools for it? I'm comfortable with UIKit, but new to OpenGL / OpenGL; Which would be better to start this game? Should I use the game engine? If so, what game engine will give us the idea of ​​3D, motion and speed of images, and ideas with sound effects? It really depends on how easy you are the programming graphics code. If you have a strong background, then OpenGL can be used easily, but if you are using Java for an object-oriented language, then it can be difficult as Dominic has mentioned, you are on the ground To get a good game, the code must be written in sufficient quantity. 3D combines the amount of complexity more than 3d. I would suggest using a game engine like Uni, I have a friend who uses it using the iPhone games, and I am very impressed with the results. It wil

javascript - Maybe a simple question on html/php/sql -

I am using php to remove some text entries from the Oracle 10G database. The problem is that I also need to add a comment form to every text entry so that users can answer the original text (this is actually like the stack overflow: the original texts are as many questions and connected to every question, to answer Is a form of) When I insert a specific comment / answer in the database, I have to attach the question id so that I can find out which comment comes under that question. How do I do that? I have tried a hidden input that holds the value of the qid, but this value is always being removed from the last qid. It is difficult to reply without seeing this code, but I'm guessing that you have a point inside the page But to put your hidden tag / form where the questions related to that form are being displayed, before the next question is processed. So if you have 15 questions on a page, each will have a text made from a rows containing the questions ID, subject, text

SQL join, sum -

मैं 3 टेबल दो कॉलम युक्त bl_main bl_id और bl_area < / ol> bl_id यहाँ अद्वितीय है। दो कॉलम युक्त bl_details bl_id, नाम bl_id फिर uniue है। 4 स्तंभ युक्त bl_data bl_id, महीने, paper_tons, bottles_tons bl_id यहां अद्वितीय नहीं है। एक ही bu_id की कई पंक्तियां होंगी। मैं निम्नलिखित तरीके से डेटा पुनर्प्राप्त करने का प्रयास कर रहा हूं bl_id | नाम | Bl_area | राशि (पेपर_टोन) | राशि (बोतलें_टन) | पेपर_टाउन | bottles_tons योग (paper_tons) जनवरी की तरह एक ही bu_id के लिए सभी कागज टन की राशि दिसंबर तक वापस आ जाएगी। इसके अलावा सभी bl_main से bu_ids भले ही पुनः प्राप्त किया जाना चाहिए नहीं इसी Bu_id bl_data में मौजूद है इस मामले में राशि को 0 के रूप में दिखाया जाना चाहिए। मैंने पहले जटिल एसक्यूएल प्रश्नों को नहीं लिखा है, कृपया मेरी मदद करें! धन्यवाद अग्रिम! मुझे लगता है कि आपके पास एमएस एसक्यूएल सर्वर है इस (अभी तक जांच नहीं की)। का चयन करें bl_main.bl_id, bl_main.bl_area, bl_id। [नाम], योग (bl_data.paper_tons) से अधिक (bl_main.bl_id द्वारा PART

How do I get triple click to work in Visual Studio's Text Editor -

Go to Notepad, Internet Explorer or most other applications that display or edit text, triple-click on some text Windows cursor Will select the entire paragraph under. This does not work in Visual Studio 2005. How do I get triple click support in the Visual Studio text editor? VS 2008 or VS 2010 to solve? Is there a macro, setting or plugin that will solve it? I have not used it, but there is an article in CodeProject that says that you select the entire line To do three clicks can be done. Apart from that, VS About 2010 Further improvements include the ability to triple-click a huge element like a table, and the editor selects the markup of the entire table. Want to enclose that table with some additional markup? Just start typing with the selected table and your markup is placed around the selected mark.

wpf - How can I determine if my TextBlock text is being trimmed? -

The following text rolls the text as expected and trim makes the alipis "..." displayed after touching the text. goes. & lt; TextBlock MaxWidth = "60" MaxHeight = "60" text = "This is some long text I want to wrap." TextWrapping = "Wrap" texttraiming = "Characterplacesis" /> I would like to display a tooltip on the text with full text, but only if the text is sorted out, I am not sure how determined it is to "..." Whether or not it's being shown. How do I determine whether the text is being trimmed or not? I have not done much WPF recently, so I'm not sure that this is what You want, but check out this article: It is a bit complicated, but it seems that you are asking the same question. Update: Website looks, but you can find this article.

php - Any way to optimize this mysql query? -

I do this query is that I use Grup_ CONCAT, or an angel good way to capture the data, so I am very I take interest. I then blast it in, and put an ID / name in an array, and then use one for loop to echo out them. select mov_id, mov_title, group_concat (different categories.cat_name) as as as all_genres, All_actyl_id, all_actor_ids, mov_desc, mov_added, GROUP_CONCAT (DISTINCT cat_id), all_genres_ids , GROUP_CONCAT (DISTINCT case when gen_dominant = 1 then gen_catid else 0 end) join as dominant_genre_ids, GROUP_CONCAT (DISTINCT actors.act_name) as all_actors, GROUP_CONCAT (DISTINCT actors.act_id) Muvfon movies from movie _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ '_' _ '_' _ '_' _ '_' _ '_' .gen_movieid side lEFT JOIN on categories _genres.gen_catid = categories.cat_id lEFT JOIN _actors left (movies.mov_id = _actors.ac_movid) (_actors.ac_actorid = Actors.act_id and act_famous = 1) Joi

django - Get name for matched URL pattern -

I am writing a Django reference processor, which needs access to the URL pattern, which was successfully resolved. is. Looking at the pattern, url (r '^ home / $', 'app.index', name = 'website.home') And the request path / home, I want to get the value for the name, which is the website in this case. Home. I have received this code from djangosnippets.org: def _get_named_patterns (): Returns a list of "" "(pattern-name, pattern) topleps." "Resolver = urlresolvers.get_resolver (None) Pattern = Sorted (key, val [0] [0] [0]) for key, Resolver in Resolver. Resverse_dict.iteritems () If isinstance (Key, BasString) Return Pattern I can use it to achieve my purpose but my gut feeling that there should be a better way. Thanks for the help. Regarding doing this request through objects and middleware Like: Category MyMiddleware (object): def process_view (auto, request, view_funk, view_orge, view_corrh): If view_kwargs.ge

How to Create Master-Details view using Asp.Net MVC framework -

I am evaluating the Asp.Net MVC framework for my enterprise application for the past few weeks. The one thing I'm trying to achieve is the master-detail view. As it is very clear that there is no vivestate and there is no postback. For example, now I am using the product, customer, order and order details table from the Northwind database and I am using the especial MVC. I want to make master-detail view. Basically I do not have to have separate ideas (pages of other words) for order and order details. View order and order details should be included. How should I design my controller and see how to get this functionality. Thanks & amp; Regards, Burhanuddin Ghee You want to write a domain-specific view-model class Adds an order and details from its order (I'm assuming that order-> order details are 1-> n relation, not familiar with Northwind): public class command view model (Public order order); Set;} public inenemable & lt; Order deletate & gt;

c - How to auto login ssh server and run some command to modify a file -

Here are the limitations: No public key file has been uploaded to the server ( Because it can be run on different target machines), it is just for an automatic test program, so security is not a concern. This is the background to run programs automatically, so there is no user input. I do not want to use the "expectation" that the user needs to install. I know the root user's password. So I wonder if I can easily use light hope tools or a SST library to do this work. libssh C can help for the project. Using Perl, there is a module that can be used: Net :: SSH (I use it for +/- for the same purposes)

Best way to mock java web service -

I have to be very fake of Java web service and I am searching for the right solution. One way to do this is to use soap UI, but I need something that will be able to modify the server state ie. A request will affect future requests In this special case, this serialized object can be done quickly by saving to disk and sometimes saving asynchronous responses to the original client web site. My questions are: 1) Are there any other sapi benefits in this context? (Easy Migration to New Version of Example) Wsdl) Custom Java Much Implementation? 2) What would be the most appropriate way to generate webservice from WSDL and still be hooks with some custom functionality, i.e. Adding a few hooks that are editable in different files (to facilitate the reconfiguration of the updated wsdl code)? For simple mocks I use soap, whereas for more complex state between requests I am using a simple web service emulator written in Python. Use of such emulator can be used to answer all the lo

How to list active / open connections in Oracle? -

Is there a hidden table, a system variable, or to show an active connection at a given moment? Use the scene. displays the session information for the V $ session each current session.

user interface - Where can I find the Windows GUI Standard? -

I have heard that they have standard GUI guidelines, but I can not find a working link. Thank you. Is that what you are looking for? Or maybe rather document (~ 3 MB PDF file)?

ruby on rails - validates_uniqueness_of scoped to multiple columns -

When using Validates_uniqueness_of with the scope option, it is valid to pass an array of such columns: Validations_Nick_Expression: x ,: scope = & gt; [: Y ,: z] As I want: x should be unique in terms of both: y and: z If not, how can you get it? 2 Verification is one for each field? Thank you Yes, it is valid and your syntax is actually to get it The way is to look for more details.

objective c - #import using angle brackets < > and quote marks " " -

मैं सोच रहा हूँ कि क्या तय है कि आपको & lt; header.h & gt; या "header.h" जब आप उद्देश्य सी में फ़ाइलें आयात कर रहे हैं अब तक मेरा अवलोकन हो गया है कि आप अपने प्रोजेक्ट में फ़ाइलों के लिए उद्धरण चिह्नों "" का उपयोग करते हैं, जो आपको कार्यान्वयन स्रोत मिल गया है, और कोण कोष्ठक जब आप एक पुस्तकालय या फ्रेमवर्क को संदर्भित कर रहे हैं लेकिन यह कैसे काम करता है? ब्रैकेट का उपयोग करने के लिए मेरी अपनी कक्षाएं प्राप्त करने के लिए मुझे क्या करना होगा? अभी Xcode मुझे अपने ही शीर्ष लेखों के लिए ऐसा करने की इजाजत नहीं देगी। इसके अलावा, कुछ चौखटे हेडर में देखकर, मैं देखता हूं कि हेडर एक दूसरे के साथ और lt; frameworkname / file.h और gt; ; । कि कैसे काम करता है? यह जावा में संकुल की तरह दिखता है, लेकिन जहां तक ​​मुझे पता है, उद्देश्य-सी में एक पैकेज जैसी कोई चीज नहीं है। उद्देश्य-सी में सी / सी ++ के साथ समान है; उद्धृत फॉर्म "स्थानीय" फाइलों के लिए होता है (आपको वर्तमान फ़ाइल से संबंधित पथ को निर्दिष्ट करना होगा, जैसे #include "heade

Django template tag for Model query result -

I get a simple tag to show the table of any model arrays: {% Table city_list%} Does anyone see such things? You can try the app, so that you book the following model: column (name = 'title') author = table. Columns (Data =============================================== == <'Author__name') Class Meta: Model = Book # initial_queryset = Ideas in your thoughts = Book.objects.all (Books) = Booklet (initial_quaestrate) Returns Render_to_propins ('table.html', {'table': books}) # Table.html & lt; Table & gt; & Lt ;! - Table title - & gt; & Lt; TR & gt; For table {table.column%},% lt; Th & gt; {{Column}} & lt; / Th & gt; {% Endfor%} & lt; / Tr & gt; & Lt ;! - table rows - & gt; {% Row in table.rows%} & lt; Tr & gt; {% Value in row%} & lt; Td> {{Value}} & lt; / Td> {% Endfor%} & lt; / Tr & gt; {% Endfor%} & lt; / Table & gt; I think the above is more be

Unpacking an executable from within a library in C/C++ -

I am developing a library that uses one or more helpful executables while doing business. For my current implementation it is necessary that the user has auxiliary support installed on the system in a useful place. To work properly for the library, the helper app should be in the right place and the correct version should be. I would like to remove the requirement that the system is configured in the above manner. Is there a way to bundle executable assistant in the library, it can be unexpected on runtime, can be installed in a temporary directory, and can be used for a run period ? Temporary executable can be removed at the end of the run. I personally considered creating a file that contains an unsigned char array that contains the text of executable. It will be done on time compilation as part of the manufacturing process. In the runtime this string will be written in the file, which will be executable. Would it be possible to do such a task without writing executable (

iis - Is there a file-based equivalent to .htaccess in IIS6? (not config/plugin) -

There are many similar questions, but they all either need to configure permissions or Install the plugin. I am looking for a solution that is "dumb" - that code can be deployed from source control and access some of the blocked paths to configure without any Are the server I just need the directory & amp; File Blocked, none of the other capabilities is that .htaccess Just to be clear, we are using coldfusion, no. NET, and when CF has mixed the way to manage its scripts, then do anything with this non-CFML script (this is possible, for example config.xml.cfm, but this is a messy solution, which The code needs to be updated.) (Of course, standard these directories / files should not be in webtrust, and if I I can switch to Apache or IIS7, so I can just use .htaccess, lake They do not have the time option.) Is to my current solution is a Reedme .deploy.txt including instructions on how to set the permissions of files related to manually & amp; Direct

ssas - fact tables (Analysis Services) -

I was just thinking that there can be any table of facts, whose keys are not related to any of the dim tables? However, the facts table contains blurred data. With this question, I have come to see that I was looking into a package that uses a dim table and fact table to pull data, manipulate and dump the facts into the table but, When I was trying to find any dependency on the fact table (in the Add DSV / Remove Table dialog box, I added the fact table, and then when I clicked the related tables there was no one) < P> and My claim to find some figures retarded tables to the fact table. Correct me if I am wrong. Is the table in your fact table with dimension keys, but are not forced with any foreign key ? I think SSAS uses foreign keys to identify related tables, so in this situation, they will not find those tables, you can manually add related tables. Another possibility is that the facts table indirectly involves all dimensions in a denormalized form. Rather th

namespaces - Spring RuntimeBeanReference -

I have a custom namespace that I am parsing for the spring project, and I'm having trouble with RuntimeBen contexts. . I have a class myclass which takes a list. In my beadfile file, I have a bean type of MyObax type named "MyOz". In my custom namespace parser, I have a code that looks like: RootBeanDefinition MyBean = New Routine Definition (MyClass.class); Constructor agreement value cav = new constructor agreement value (); List list = new linked list (); List.add (new Runtimebine Reference ("MyOuse")); Cav.addIndexedArgumentValue (0, list); However, when I see the bean through the spring, I get an exception that it can not convert the Runtimebine reference to MyObject, whether it is specific to solving some references. Need to make? thanks, jeff I found it now . I need to use a ManagedList instead of a regular Linkedlist. I will have references resolved by Spring near the managed list (and Manageddam).

c++ - Best practices: syncing between threads -

What is it that is almost always necessary to synchronize threads (i.e. use of mutes, scomphrs, important sections, etc.) cross-thread To access the data, even after analyzing the requirements it is not needed? I have always been recommended to go with the simplest, simplest synchronization scheme until the analysis shows you That's what you should do - it is usually made up of many large locks, which contain many fine locks or lockfree. The problem is that if the lock-free code is correct, it is more difficult to determine whether the code related to the lock is correct. This creates a huge burden on the maintenance of your code, and there is a good chance that they will find it wrong and present bugs even if you know how locked your code is used, May be safe in the future, may change in the future by people who are not familiar. Secondly, in many cases, the difference in performance is neglible between the lock and the code with the lock-free code - as long as you d

django - python observer pattern -

I'm new to python, but I've gone into a heart trying to apply the variation of the supervisor pattern. / P> class X (models.model): a = model It is not said that X is defined . Some things are possible: A) There is a way of referring to the current class (examples, but class objects). B) You can not even run the code outside of a method (I thought it could work almost like a static manufacturer - it will only run once). There is nothing wrong with the code (limited) in class definition: class X (object): print ("Loading X") However, you can not reference x because it is not yet fully defined is.

sql - Querying Oracle with a pick list -

I have an Oracle database in which I have only read access (without permission to create a temporary table). I have a peak list (in Excel) of 28000 IDs related to 28,000 rows in a table, in which how do I write a query to return 28000 rows of millions of records? I tried to create a table and tried to get involved through ODBC but the entry took freeze / incredible long hours. Do I have to make a question with 28,000 items in these statements? What is something in PL / SQL that will make it easy? Thank you for your time and support. - Jesse "post-text" itemprop = "text"> Do you make 28,000 rows special? Is there another area in the record that you can use to restrict the query in a WHERE clause (or at least a few million rows)? Perhaps the ID is interested in falling within a certain limit?

Unable to put a variable in Python's print -

मेरा कोड: वर्ष = [51-52 , 53,55,56,58,59,60,61] फोटो = [{70,72,73}, {64,65,68}, {79,80,81,82}, {74,77,78 }, {60,61,62}, {84,85,87}, {57,58,59}, {53,54,55,56}] में श्रेणी के लिए (7): प्रिंट "& lt; img src = \ "http://files.getdropbox.com/u/100000/Akuja/", साल, "/ P10104", तस्वीर, ".JPG \" & gt; " मैं इसे चलाता हूं और मुझे फ़ाइल "/tmp/aku.py" मिलता है, पंक्ति 2 फोटो = [{70,72,73} {64,65,68} {79,80,81,82} {74,77,78} {60,61,62} {84,85,87} {} 57,58,59, {53,54,55,56}] ^ सिंटेक्स एरर: अमान्य सिंटैक्स मुझे निम्न आउटपुट चाहिए & lt; img src = "http: / /files.getdropbox.com/u/100000/Akuja/51-52/P1010470.JPG"> & Lt; img src = "http://files.getdropbox.com/u/100000/Akuja/51-52/P1010472.JPG" & gt; & Lt; img src = "http://files.getdropbox.com/u/100000/Akuja/51-52/P1010473.JPG" & gt; & Lt; img src = "http://files.getdropbox.com/u/100000/Akuja/53/P1010464.JPG"

string - PHP - Function to skip strtolower() if variable contain "wikipedia.org" -

My site allows users to enter URLs into a database. I am using the "$ site = strtolower ($ site)" code; "To make all these URLs lower-case. However, I realized that the Wikipedia URL case is sensitive, so I want to avoid using" $ site = strtolower ($ site) " ; On Wikipedia URL, all of which include "wikipedia.org". How can I write a function which will skip the "$ site = strtolower ($ site)" phase; "If $ The site contains "wikipedia.org"? Thank you in advance, John * Nix All URLs on the server are case-sensitive. Edit: The domain name is case-insensitive (in fact, the customer converts it to lowercase). http: // user: pass@domain.com/somedir/somefile.ext? SomeQueryString = someValue # fragment ======= ---------- ===== ===== ------------------ --------------------------- ----------- Legend: - Case sensitive =: Case insensitive Specifications are case sensitive according to pieces, but it has not been i

jsp - How to clean session attribute from all active session in java? -

Currently I'm working on a web project which uses JSP / Sarlet and Strat Framework. We are using the cache mechanism. I want to clear some session attributes from all active sessions on special sessions (for example, in case of fresh cache). So what is the best way to apply the same? You must provide a class that applies (part of the server API) interface and it's web Register in .xml Then you can track active sessions and use that information to gain access to the session and update the attribute. Effectively the implementation class will be a singleton, so you have to deal with synchronization problems carefully during session tracking Of course if you have a cluster environment with multiple nodes, the promotion of feature changes is quite complex Could.

c# - How do I create a dashed border with rounded corners in WPF? -

rectangle element has StrokeDashArray with which it can be prepared Dash, but it does not support round corners border controls support good thick lines with rounded corners, but will only bring solid lines. What is the best way to get the spherical border with the spherical border with any control? You are wrong that does not support rectangle this:

JQuery to find if any span inside label element -

I am using JQuery for my application. Let me know as an HTML * & Lt; / Em> & Lt; / Span & gt; & Lt; / Labels & gt; In my jquitt code, I want to check that there is a span like a tag inside the label and if it exists then I have to turn my check box on to do this. Please suggest me The following is my checkbox & lt; Input id = "required" type = "checkbox" name = "required" /> Use this to check if there is a spec with a category label. If so, set the checkbox with the required ID for checks. if ($ ("label> span.req"). Length & gt; 0) {$ ("# essential") atrum ("check", true); }

regex - Regular expression to parse html links -

I have html with this type of snippet: & lt; Li & gt; ; & Lt; Label = "Summary" for & gt; Summary: & lt; / Labels & gt; & Lt; / Li & gt; & Lt; Li class = "in" & gt; & Lt; Textarea class = "ta" id = "summary" name = "summary" rows = "4" cols = "10" tabindex = "4" & gt; $ {FieldValue (Bean: Book, Field: 'Summary')} & lt; / Textarea & gt; & Lt; A href = "#" square = "TT"> & Lt; Img src = "& lt; g: createLinkTo dir = 'image / button /' file = 'icon.gif' / & gt; Alt = "Help icon for summary field" & gt; & Lt; Span class = "tooltip" & gt; & Lt; Span class = "top" & gt; & Lt; / Span & gt; & Lt; Span class = "middle" & gt; Help Lessons for Summary & lt; / Span & gt; & Lt; Span class = "bottom&qu

ruby - Rails model that joins through a join table -

Is this possible? An event can occur many times in an event (i.e., if it is a 3 day event and every day it is on a different time). Every time there is a place associated with it. Finally, an address of each place is associated with it. Now, can I refer those incidents through my incident model? I'm thinking something like this: class event & lt; ActiveRecord :: Base is has_many: Time is Place_mera: Location: By: = & gt; : In time-space- Medium: Addresses: via = & gt; : Place Address: Through & gt; : Places This is the correct syntax. class event & lt; ActiveRecord :: Base has has_many: time_places has_many: locations, via = & gt; : The time_places are_maya: addresses ,: through = & gt; : Places Nevertheless work should be done, you may want to redesign your database. Running a lot of connecting queries requires an intensive database extension and makes your application a lot slower.

.net - Preferred method for handling Y2K date conversions? -

Is there a preferred algorithm for converting a 2-digit year into a 4-digit year? I have a 2-digit birth date (with month and day) that I want to convert to a C # date time . Naturally, there can not be a birthdate in future, but is there an existing facility for converting a two-digit year into a four-digit year? constant int GetFourDigitYear (int year, int maxyear) {System.Globalization.GregorianCalendar cal = New system.Globalization.Gregorian calendar (); Cal.TwoDigitYearMax = maxyear; Return callout Force degree (year); } Max-Year should be the current four digit year. Edit : OP Solution: Static GetFourDigitYear (int year, int pivot) {System.Globalization.GregorianCalendar cal = New System.Globalization.GregorianCalendar (); Cal.TwoDigitYearMax = New DateTime Year + (100-fog); Return callout Force degree (year); }

DateTime issue on different platforms (.NET 2.0) -

एक 32 बिट ओएस पर, इंटेल प्रोसेसर के साथ, डेटटाइम उदा। 2/17/2009 12:00:00 पूर्वाह्न सूचना है कि यह है: मिमी / डीडी / yyyy एक 64 बिट ओएस पर, एक AMD प्रोसेसर के साथ, डेटटाइम उदा। 17-02-2009 00:00:00 अब जब मैं 1 प्रारूप को पार्स करने की कोशिश करता हूं, तो दूसरी प्लेटफार्म पर एक त्रुटि फेंकता है। इसका अर्थ है - दिनांकटाइम। पर्से ("2/17/2009 12:00:00 पूर्वाह्न") - एक त्रुटि फेंकता है - कन्वर्ट नहीं कर सकता जबकि, एक ही मंच पर, DateTime.Parse ("17/2/2009 12:00:00 पूर्वाह्न") काम करता है! इसका मतलब है कि डीडी / एमएम ठीक है, एमएम / डीडी नहीं है। इसका कारण क्या है? 64-बिट ओएस? प्रोसेसर? मैं कैसे इस समस्या से छुटकारा पा सकता हूं? दिनांक समय स्वयं प्रारूप नहीं है आप उन्हें पार्स या स्ट्रिंग में उन्हें प्रारूपित करते हैं। (यह संख्याओं की तरह है - पूर्णांक हेक्स या दशमलव में संग्रहीत नहीं हैं, वे सिर्फ पूर्णांक हैं। आप उन्हें हेक्स या दशमलव में प्रारूपित कर सकते हैं, लेकिन मूल्य केवल एक संख्या है।) प्रारूप ऑपरेटिंग सिस्टम की संस्कृति (या अधिक सटीक रूप से, थ्रेड

java - How does software update work? -

I've been reading Liang's introduction of Java programming for a few weeks, and on the question when the author said "there is There is no need to create a developer, and to install users, the major new software version. " How does software update work? For example, patch for the game, new versions of the products, and things like that in the book, is an example, as long as you keep the interface of a square the same, you need to make any changes to those sections Does not depend on what you change. It's fine, but still a bit abstract (for example, how can I make an update patch with only that class?). I also have interest in books on this topic. Thanks refer to the book (Jaroslav Tikh , Appress, 2008) I think it involves aspects about which you are asking. For the topic of shipping new software versions or updates, for example see the technology. / P> The update of a web application can be considered in the face of the users as the change

ClickOnce deployment with Crystal Reports prerequisite -

I have a .NET Winforms app (built in VS2005) which I deploy to use ClickOnce. I have user crystal report viewer control to view reports on one of the forms, but to use it in the app, I have to include Crystal Reports XI Release 2 precrack, which they install before app installs. It originally installs underwater versions of crystals on the users machine. It publishes this way, but it is difficult to wait for the user to install the crystal and it is a big problem for me because publishing the app with a precaution takes a long time because It has to upload a large preq on the server. Since publication takes so long and new installations are not super common, usually when I publish changes and instead publish it with just a prerequisite, then a new installation Necessary. If you have used ClickOn to publish an app with crystal reports, then how is it published or an easy / better way Instead of incorporating and installing crystal report preqr, CR DLL is needed / what is the

Ideas on database design for capturing audit trails -

How can I create a log of data in my DB? I keep maintaining a log every change made in each line means that I do not allow DELETE and UPDATE to execute can. How can I keep such logs? "Use only insert database" The basic idea is that You never update or delete the data. 2 datetime columns to and to in each table. When you add a new line, the values ​​in each of them start with the beginning of the empty (beginning ) at the same time that you to You can read data outside the table through a view that contains the = null in it This method gives you a picture of your database status at any time. Edit Just to clarify in response to the comment: Sequence will be given by the primary key on the table, which will be one user number.

php - What is the best way to get jQuery/Ajax to work with CodeIgniter in this example? -

I have a problem in trying to get CodeIgniter and jQuery to create Ajax functionality. I've been coding all day, learning jQuery, and generally getting my butt kicked. Let me break the situation, and hopefully someone will have the courage to help me. I have a hassle ticket system that displays many tickets on a page ... Each ticket is located inside many people Divs like: & Lt; Div class = "eachticketwrapper" id = "ticket-362" & gt; & Lt; Div class = "actionlog" & gt; & Lt; Form action = "& lt;? = Base_url () ;? & gt; Administrator / updateticket / 362" method = "post" id = "362" name = "362" & gt; & Lt; Ul class = "displayinline" & gt; & Lt; P & gt; Action log: & lt; Span class = "actionlog-362" & gt; & Lt ;? Php $ actionlog; ? & Gt; & Lt; / Span & gt; & Lt; / P & gt; & Lt; / Div & gt; & Lt;

web services - How can I get a Kerberos ticket with Delphi? -

What are the examples that show that Delphi has an Active Directory Kerberos server to request a ticket due ticket / general ticket Invites? Background: A web service requires a ticket for authentication that exchanges confidential information. EDIT: A small source code example would be very useful I found that is very impressed. I'm not sure that there is support for Kerberos. According to you must be able to receive a Windows API call.

iphone - PHP file storing on webhosting service? -

I was thinking - is it possible to change files stored on any type of webhosting service through PHP? I mean, I have a URL: "plist.atwebpages.com/action.php" Is this method possible to write a file on an FTP server on the web hosting service? Like Yes - you need one.

What function do i use to run code when ASP.NET starts up? -

When my asp.net server goes up I want to run some basic checks, mostly simple things such as DB exists I am missing any compartment, etc. What function do I call to call my code? You should use the application_start event at Global.asax

c# - Is there a more performant alternative to ImageList.Images.Add? -

मेरे पास एक winforms ImageList है जिसमें 200 256x256 छवियाँ हैं। जब मैं एंट्स। NET प्रोफाइलर के अनुसार जोड़ें विधि पर बिताए गए कार्यक्रमों का आधा हिस्सा, एक करके, छवियों को जोड़ता हूं। इस प्रकार प्रोग्राम को लॉन्च करने में 10 सेकंड और 5 वहाँ बिताया है मेरी राय में यह बहुत धीमा है। मैंने एक ही चीज़ को ImageList.Images.AddRange का उपयोग करके लागू किया है। नतीजा नहीं बदला। क्या किसी को यह हल करने के लिए कोई विकल्प या अनुकूलन पता है? क्या WPF ImageList कोई भी तेज़ है? क्या कोई तेज Winforms ImageList ? संपादित करें: foreach (छवियों में स्ट्रिंग छविफ़ाइल) {imageList.Images.Add ( Image.FromFile (imagefile)); // बहुत सारे प्रोग्राम का निष्पादन समय लेता है I } माइक्रोसॉफ्ट के WPF नमूने में से एक में एलबम और सूची दृश्यों पर एक नज़र डालें अनुप्रयोगों। उनके पास कुछ अलग थंबनेल व्यू स्क्रीन हैं जो बहुत तेज़ी से लोड होते हैं (सभी छवियों को एसिंक्रोनस रूप से लोड किया जाता है और केवल आवश्यक चित्र लोड किए जाते हैं)। और अगर आपको लगता है कि आप क्या चाहते हैं, तो आपको आरंभ

ide - How do I enable the column selection mode in Eclipse? -

News has written that Eclipse 3.5 ultimately supports column selection. Unfortunately I do not know how to enable it. I was trying to use the ALT-key as I used in Visual Studio and all other Microsoft products, but it did not have any effect. How do I mark a vertical block in Eclipse? Activate the cursor and select the columns you use Want: + Shift + a Mac: Deactivate to press + Option + A , then press the key again . This information was taken from.

rest - Uploading to Amazon S3 Services from iPhone App -

I'm pulling my hair on this ... I use Asaiactiteepiariiiiist () wrapper library Amazon S3 storage. I am just able to connect properly and without any problem I am getting the list of buckets. My disappointment is with trying to upload (put and / or post) a new object (a picture) for an existing bucket I am following Amazon's document in the letter (at least I think I I am.) But nothing is working. Please, before leaving the window, someone helps me, I do not want to wash my hands. : L. This is a basic example using PUT. Obviously, you should use the queue instead of a synchronous request in the real world. If you change Amje header, then forget to update 'canonicalizedAmzHeaders' according to Amazon instructions #import "ASIHTTPRequest.h" #import & LT; CommonCrypto / CommonHMAC.h>. ... - (zero) testS3 {NSString * filePath = @ "/ path / to / file", NSString * contentType = @ "text / plain"; NSString * bucket = @ &quo

html - css background image positioning (negative position?) -

I'm trying to add an icon that sits above the limit, dividing it into half. Even I have so far: & lt; Html & gt; & Lt; Top & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = ISO-885 9-1" & gt; & Lt; Title & gt; Untitled document & lt; / Title & gt; & Lt; Style type = "text / css" & gt; Body {background-color: # 26140C; }. Box {width: 800px; Margin: 0 auto; Margin-top: 40px; Padding: 10px; Border: 3px solid # A5927C; Background color: # 3D2216; Background-image: url (content / img / icon_nurl.); Repeat Background: No Repetition; Background-position: 10px-20px; } & Lt; / Style & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div class = "box" & gt; & Lt; H1 & gt; This is an exam! & Lt; / H1> & Lt; / Div & gt; & Lt; / Body & gt; I was expecting the image above the limit, below it. The backgr

logic - A java practice problem -

I have come to javabat () in this problem: We want to create a line The target's inches of bricks are tall, we have many small bricks (1 inch each) and big bricks (every 5 inches). Return to if possible to choose from the given bricks and make a goal. It looks like it is a little hard and can be done without any end. The Macbricks (3, 1, 8) → True MacBooks (3, 1, 9) → False Macbriks (3, 2, 10) → True I came up with this solution: Public Boolean Mechanics (int small, int big, int target) {If (target> small + big * 5) return false; And if (target% 5 == 0) return target / 5 & lt; = Big; The second goal goal is 5% & lt; = Small; } passed this exam but I got a counter-example: makeBricks (10, 0, 10) -> true. I will return my argument incorrectly. How should I fix my argument? Or is there a better way to do this? I think you can take your second test, I'll try it: < Pre> public boolean mechanics (int small, int big, int target) {if (targ

sql - MySQL Question - How to handle multiple types of users - one table or multiple? -

I am preparing a database for an organization that has many "types" of users First of all, User created table However, when all users share some common information (first name, last name, username, password etc.), then each user requires one or two additional fields that are not applicable to all users. While I can make these additional fields and set them as tap, I do not want to do this, because the fields are foreign keys and this is causing problems for me. How is this situation generally controlled? / P> Thanks! Your tendency is not to create large tables with many tapes on the right. The two most common approvals: 1) with all the common fields in it There is a user table, which includes the "UserType" field. Then there is a separate table for each user type with additional fields. All users have one line in user tables and one or more specific user type tables. It is the most generalized and most efficient for storage and quick login, it

c# - How can I clean up this ugly if statement? -

I have the following ugly statement that is part of a square that is drawn from the IOC container: < Pre-> Protected Virtual Zero ExecuteSourceControlGet (IBILMMadata Build Metadata, IPCertTTTT) {If ((BuildmateDataDepository Elementalist! = Faucet) & amp; (BuildMetadata RepositoryArrayList.Count & gt; 0)} {componentTree.DeleteWorkingDirectory (); Forex (version repository element build metadata. Repository elementalist) {repositoryElement.PrepareRepository (get components, threads). Export (); }} If ((buildMetaData.ExportList! = Null) & amp; (Buildmetda.export list.account> 0)) {var initialise = true; Foreach (buildMetaData.ExportList in the above sourceControl) {log.InfoFormat ("\ nThere is a problem getting the horn {0} \ n \ n." .TowUpper (), sourceControl.Url); Get.from (sourceControl) .ExportTo (componentTree, sourceControl.ExportPath, initialize); Initialise = false; }} Log.InfoFormat ("\ \ horn is being brought {0}. \ N \ n" .upper

.net - Can I do this in my unit tests? -

I'm not sure what I should do here. Should I have hardcoded all the values ​​or should they have them in any CONST variables? What was I doing now like this? In my controller, I had a verification test to check if the user tries to submit a form with empty fields. Now I have an empty or zero variable for I if this happens I will add the error modelstate which I wrote with an error message. So in my unit testing I have to make sure that if the blank form variable is submitted that it is caught. Now in my unit test I have just made a concrete verbal copy and have copied it and pasted the verification message in it. So in my argument I compare the actual message from the message, how much is stored in my cone, I call it like an ideal state and say the field where I expect error. Like: Result. ViewDataModelState ["Username"]. Errors [0]; So if there is a message it would have gone into my code otherwise it will not exist. So it may have happened to me

How to validate form element generated by js in Zend Framework -

I want to allow users to add textbox elements by using Javascript by clicking on the Add button. Want to know how I can use Zend to validate those elements created by Java. No way has been made for this but it should not be too difficult to do. First of all, I suggest designing my javascript-generated elements with array notation. name = 'someName []' , so that PHP can be parsed in the array in post / gate. Then, you can simply loop on the resulting array, and call your validator (s) / Verifier series.

java - django-like frameworks? -

Hi, I've been working with Django for a few months and it's really helpful i just like java or c # Is there a similar framework for other programming languages? The problem I have with Digengo is finding a server to host this project because support servers are more expensive and are hard to find. In Django, I find the following items useful: Object-Relational Mapper, Admin Interface URL Management. Thank you! Because of the hosting aspect, I suggest if you are looking for only one option That you are easily looking for suitable hosting, the way you like it. If you are looking for a good Django host, then I highly recommend it. If they are not your cup of tea, check out, which has a great list of good Django hosts.

Live messenger login with silverlight -

I have to use the Windows Messenger login to authenticate users and receive my contact details. Now the name Display. Currently I am using with a DLL that works fine but in IE8 it does not work with Win 7 or IE8 with IE8, then there is no other easy way to do this ? Thank you .. For some more information on Live ID

multithreading - Restarting a thread in .NET (using C#) -

I am looking for a way to restart a thread that has been stopped by abort (). Public Partial Class Microgram: Form {Personal Thread MyThread = New Thread (MyFunction); Private Systems Windows.form. Button startStopBtn = new system Windows.form. button (); Public MyProgram () {MyThread.Start (); StartStopBtn + = new event handler (desktop); StartStopBtn.Text = "Stop"; } Private Static Zero My Function () {// Something to do} Private Zero doStop (Object Sender, EventArgs e) {MyThread.Abort (); StartStopBtn - = new event heredoll (desktop); StartStopBtn + = New Event Handler (Dustart); StartStopBtn.Text = "Start"; } Private Zero doStart (Object Sender, EventArgs e) {MyThread.Start (); // & lt; & Lt; Error thrown when clicking on button to start another STARTBtn - = new event; Yesler (Dustart); StartStopBtn + = new event handler (desktop); StartStopBtn.Text = "Stop"; }} Any ideas? Just add MyThread = new MyThread.Start () doStart before

Objects and Relations in Ruby on Rails -

I am trying to create a simple web application for some personal development, but I have participated in an obstacle, Which I 'm hoping others will find despised are the classes I have to work with, but I am not sure how to define their relationships, or their models are also appropriate. For logic, I already existed: Users, teams, and athlete I have the functionality I want to make a team by adding an athlete in the team object to another user, otherwise the other users can either add players to the team, or they can add an option to an existing athlete on the team roster. Basically, I am one of the athlete objects Something to wrap the array I want to make a square of R, we call it athlete's If my understanding is correct, then there are relationships which will be appropriate: A team - many athletes will be an athlete - < / Em> athlete and a team athlete related < Strong> users , and related a athlete . Users - Man

php - `&quot;` not becoming quotation mark when output -

मेरे उद्धरण चिह्न, जब & amp; quot; में htmlentities () वास्तविक उद्धरण चिह्नों में वापस नहीं आ रहे हैं, जब [Postgres] डेटाबेस में संग्रहित होने के बाद आउटपुट। कृपया मदद करें - यह समय संवेदनशील है। क्या आप संभवतः दो बार (शायद प्रदर्शन से पहले एक बार htmlentities) दुर्घटना से?), और इसलिए इसे वास्तव में और उद्धरण; ?

c# - BigEndianBitConverter in Silverlight? -

I'm trying to use the MiscUtil.Conversion utility in Silverlight. When I try to compile it, I get an error that there is no two ways in the Bitcutone class of Silverlight: DualIIT 64 Bits Int64BitsToDouble Well, I opened the reflector and found them in mscorlib: Public Unsecured Long Dotant 64 Bits (Double Values) {Return * (((* * * * * * * * * * * & Amp; value);} Public Unprotected Double Ent 64bitstrod Double (long value) {return * (((* double *) and value);} But the problem with it is that the Silverlight does not allow the unsafe code. In the Project Properties menu there is an empty checkbox next to "Allow insecure code", but you can not change the value. How can I do this in Silverlight? Enter a look at itemprop = "text">

frameworks - Java Time Savers -

I think the nature of this question is very favorable for people with practical minds on stack overflow. I am setting up a large scale project in Java. I'm not going to go into the features, but it needs to include data management, parse odd formats, and have an attractive interface with editor words. I am a graduate student and I think it will develop into a good project to showcase its skills for employment - heck, ideally it will also be on the basis of a startup. I write to ask you that the shortcut I probably can not think of that would help with a complex project in Java. Of course, I am planning to go into eclipse, and Probably will use SWT for GUI However, I know that the quality of the unfortunately good in Java is high, and I do not want to get stuck. Before you tell me that I want to do it in Python, or just like, I just Java has a lot of experience with algorithms, and in them There will be quite a few. A large library of APIs want to expand the functiona

How do I configure CakePHP to detect my development / production environments or do I just keep the config files out of version control? -

"itemprop =" text "> I am a panic developer, but I currently have a project where I can not tweak the server for CakePHP Working with In my Rail production server, the passenger is automatically setup to use the "production" environment, overriding the local app setup. I would like to setup my own cakepip app to do the same thing. How do you usually complete with KPPHP? Do you set up a domain parser, or do you keep database.php out of core.fp and version control? Thanks in advance, David If I understand the question correctly, this may be needed: In short, DATABASE_CONFIG Creator: class DATABASE_CONFIG {// initalize Null on $ default form In variable = zero; // Set the connection details to be used in the live production server var $ prod = array (// ...); // Testing and development on your local machine for more details var $ dev = array (// ...); Function __construct (if {isset ($ _ server ['SERVER_NAME'])) {switch ($ _ server [&

Forcing ASP.NET GridView's pager to show -

Is there a way to force gridview to show the pager, even if there is only one page of the data on the screen? I am making gridview-based controls with a custom pager (pw for the pw / dropdown) and everything is working fine, except that when the user chooses PageSeries that's the current of the grid Row is larger than number. Pager disappears at that point. I'm goggling it and I think I should do something override. OnRowCreated ... Custom PageRank has been added by Overriding Initialize Pager. I would be happy to provide more information if needed! Welcome, J. Arola Well, it was not very difficult: -) My Beginners The following is the basis of the test: GridViewRow pagerRow = (GridViewRow) This BottomPagerRow; If (pager! = Null & amp; amp; amp; amp;; ;;;;;;;;;;;; 0 = false); pager. I also said that to override operavers, and lo, pager is visible, even when the data shown is only one page page, I am sure some additional tests To get it, though. Seems

clearcase - how do I create ADMIN VOB -

Image
I doubt there is an admin vob. Can anybody give an example in the command line? This is necessary. UPDATE: Thanks for answering me, but I am using BaseCheck and when I am not adminvob treated as adminpvob tag, do you give me an example Explain in detail with If you are using UCM, you should see each other for all UCM components. An administrator for PVob If you are using base quores, then a simple Vob is sufficient (remove the ' -ucm ' option) For example, on a Unix ClearCase server: < / p> $ sudo / usr / bin / atria / bin / cleartool mkvob -tag / vobs / adminpvob -c "Global administrator UCM PVOB" -ucm -public -password clearcase host MY_SERVER -hpath / MY_SERVER / vobstore / adminpvob.vbs -gpath /net/MY_SERVER/vobstore/adminpvob.vbs /net/MY_SERVER/vobstore/adminpvob.vbs Note: If all clear you're you're using - Admin in admin area (p) vob tag Committee is required. Fort example, on Windows: ct mktag -vob -tag \ adminpvob -public