Posts

Showing posts from September, 2015

unit testing - Flex, Flexunit: How to test that an event is dispatched twice? -

I use FlexUnit's code to test for some events in the Flex app using the addAsync method. Testing that the incidents are transmitted so far, I can ensure that at least one incident has been removed. However, I want to be a bit more elaborate; I want to make sure that the set of incidents required by me is actually sent. Is there a useful test pattern (or even different test frameworks - I'm flexible!) To accomplish this? I tried this code, but it did not apply for a second time ResultPropertyChange Expected ResultPropertyChange (Events: Events, NumbersOfAvent: Int = 1): Zero {Trace ("Event" + Event + "" + Event + Target + "+" + + "Number OffIF Events "With" + "trail left ..."); AssertTrue (event.type == Response Chenzed Event.RESPONSE_CHANGED); if ( NumberOfAventis> 1) {event.target.addEventListener (Response Changed Event. REPNSE-Changed, Adesink (Expected Result Portrait Change, 1000, Number OFAVE-1))}} Public Fu...

oracleclient - Why do I get Oracle connection errors only in a VS 2008 web app/site project? -

Using Visual Studio 2008 on Vista 64bit, if I create a test web site or web application that looks like this Looks ... Public Partial Class _Default: System.Web.UI.Page {Secure Zero Page_load (Object Sender, EventArgs e) {OracleConnection Connection; Connection = New Oracle Connection ("User ID = User; Password = Usager; Data Source = Datasource;"); Connection.Open (); }} ... and to run it, I get the following error. ORA-12154: TNS: could not resolve the specified identifier identifier I am aware of this issue about parents ... Visual Studio 2008 is installed in program files (x86) but another god has only one setup and it works for him. The project itself is not in a directory with a name that has parents. I know that this is not my tnsnames.ora or my sqlnet.ora file. I am setting my machine in the same way that all the Gods who are working on this project. I also have 100% certain strings that I am using are correct. If I am creating a console applic...

c# - Object Syncronization Between Multiple Clients Algorithm -

Is not because to sort things as I sorted. To start I do not have to worry about the conflict because clients can only add to the object collection. But I am struggling to work in my head, how the clans interact, what things need to be transferred to each other. I think that has been done many times before, and should be of some type UPDATE: I think I'm asking if there is one way to sync the cycle through all the objects on each peer and check that they are present at the other end If you use INotifyPropertyChanged of serializable objects that implement ObservableCollection Objects can queue for objects because they change. If you have objects that require synchronization in a hashset , you can avoid double-entry in the queue at the expense of linear order. If you carefully override GetHashCode () , or gives a strong hash better way, you can filter the item that changes equally on both ends. Edit: Initial sync, create a packet that lists ...

Symbian Power Status Notification -

I have an application that uses a memory card and protects the power of the card reader / state operation The need to restore has been turned off and back again it usually happens after some time of activity and the phone goes into power save mode. In Windows Mobile, I solved the same problem by getting the power notification from the system and took the appropriate action. I would like to know whether this message is equivalent to Symbian? To clarify, I am not interested in the current status of the battery level, connected to the AB cable. I want to receive notifications before going to sleep mode and after waking up. Thanks There is a possibility of using the user's inactivity timer, which That's the incentive to go to power in the device - Save mode:

asp.net - Custom Validation -

I have two text boxes and submit buttons. I have applied custom verification to the first text box when I first I am losing my focus, validating custom legalization. But I have to click the verification button only. Validate the use of Javascript ... button Javascript click on the button, where you type the text box value And can see quick messages.

How to load another file's content to the current file in Vim? -

In the form of a title, in any convenient way? I want to load a template comment specifically for some CVS / GIT commit or sendmail. I think it is the Vi environment, not Vim. at the VIM command prompt: : read new_file Or for small: : new_file This will be the contents of the new_file For example, if it is the cursor, it is the contents of new_file : I do not like green eggs and I do not like the ham I am am I And this is what you are editing: I meant what I said and I said that I mean yes and your cursor is on the first line and you type: : read new_file Then your buffer will be: I meant what I said and I said that what I mean is that I do not like green eggs and ham. I do not like you. I am 100 percent faithful to the elephant. Pre>

linux - Running shell script in detached screen session. Must kill. How? -

I'm a Ubuntu Linux user I'm running away from jobs and starting a screen session. During this session I dug a file containing a long list of command line arguments to be executed. I was compelled to make connections and now the jobs are still on this screen and I am unable to kill them. Does anyone know how to execute all the ongoing execution of this script and how to kill future commands. Thank you in advance. Reach the screen screen - D-R Then you can resume your session.

iphone - Can you force a touch event to cancel after touchesBegan? -

Given a fixed position of one of my UIViews, I want to answer it and then touch any other touch I will cancel / end that is specially released by touching the competition. Actually I have a UIView subclass in comfort and if it is touched I want to take some other UIViews out of the way ... So the next time this response series is touched, touch normally You can respond to / expire ... Yes, I was seeing / running / ending this state touching but I am thinking that only the stage of that touch event There is a way to get rid of Fake touch: Set & lt; NSObject & gt; = [UITouch ()] event = UIEvent () self.touchesEnded (fake touch, event: event)

PHP - get image from byte array -

I am trying to create a back-end for my mobile application. I am sending the content of an image in the body of the HTTP request (output stream) as a byte array, I want to read this stream of bytes in PHP scripts and take back an image. Can anyone tell me how can I do this? Thank you. You can obtain the request body $ body = Reading from file_get_contents ('php: // input'); What you do with that data Depending on you, you can write the data in a file as you mentioned that this is image data, you can drop the data into the object can do. Another option is to use and load the image.

iphone - GPS coordinates in degrees to calculate distances -

On the iPhone, I get the position of the user in decimal degree, for example: latitude 39.470920 and longitude = -0.3731 9 2; This point A. I need to make a line with a GPS coordinate, even in decimal decimals, point B. Then, calculate the distance between the line (perpendicular) to A and B and the other point C. The problem I get confused with the values ​​in degree. I want to do the results in meters. Need conversion? How would the final formula calculate like this? - (CLLocationDistance) getDistanceFrom: (const CLLocation *) location FirstLogro = 30.0; First light = 30.0; Second Langatti = 40.0; Second latitude = 40.0; CLLocation * firstLoc = [[CLLocation alloc] initWithLatitude: first light latitude: first-time]; CLLocation * secondLoc = [[CLLocation alloc] initWithLatitude: Second latitude longitude: Second lengeness]; Double distance dimensions = [from first lock distance: sec lock];

How to find whether the .NET installed or not in the System by using c++? -

Is there an API available, to determine whether the .NET framework is installed in the system or not. Or atlest anybody how can i do this myself in c ++ and how does it even know where the .NET is installed if it is installed ?? How can I do this ... Anyone like this Help will be appreciated LoadLibrary () try mscoree.dll and then just pass GetProcAddress () to the coded loaded library) and GetCORSystemDirectory () and then try to get GetCorSystemDirectory () by the received pointer. Switch to. If all steps are successful, then .NET has been installed. Do not forget to deal with the error - every step can fail and you need to make sure that your program is ready for it.

ruby - How can I create a new Date with just a weekday number? -

I use the day of the day to date. I am using Wday, but then how can I create a new date with that number (without using Date.commercial)? I only need the next week's date. For example, if I have 2 (Tuesday) then the new date will be the next Tuesday date (2009-07-28). Thanks! You can convert a number of days (like 2 ) to one The name of the day is as follows: day_number = 2 date :: DAYNAMES [day_number] # = & gt; 'Tuesday' If you install gem, you can parsing the natural language of dates and times. For example: chronic Parse 'Next Tuesday' # It is currently Thursday, July 23rd, # = & gt; By adding them, you can require the 'old' class MyClass # next week gives a date for the ninth day of the week next_n_de (n) chronic. From ("next # {Date: DAYNAMES [n}} ") End End

python - Duplicate django query set? -

मेरे पास एक साधारण डीजेंगो क्वेरी सेट है: qs = AModel.objects.exclude (राज्य = "एफ")। Order_by ("order") मैं इसका उपयोग निम्नानुसार करना चाहूंगा: qs [0: 3 ] .अपडेट (राज्य = 'एफ') अपेक्षित = qs [3] # त्रुटि यहाँ फेंकता लेकिन अंतिम कथन फेंकता है: "एक टुकड़ा लिया गया है एक बार एक क्वेरी अपडेट नहीं किया जा सकता है।" मैं क्वेरी सेट को डुप्लिकेट कैसे कर सकता हूं? यह त्रुटि फेंकने वाली पहली पंक्ति है : आप qs नहीं कर सकते [0: 3] .update () क्यू [0: 3] एक टुकड़ा ले रहा है; अपडेट () क्वेरी अपडेट कर रहा है। अपडेट () बल्क अपडेट के लिए है, जिसके परिणामस्वरूप एसक्यूएल क्वेरीज़ जैसे UPDATE एप_मॉडेल SET state = 'F' WHERE state & lt ; & gt; 'एफ'; आप "आदेश" के अनुसार पहले तीन वस्तुओं को अपडेट करने की कोशिश कर रहे हैं, लेकिन यह इस प्रकार के अद्यतन के साथ नहीं किया जा सकता - आप किसी एसक्यूएल को ऑर्डर करने या सीमित नहीं कर सकते हैं अद्यतन। इसे अलग तरह से लिखे जाने की ज़रूरत है, उदा। UPDATE एप_मॉडल एसईट...

c# - Align TextBox and Label text -

I'm designing a UI, and I got my head scabbed: how do I get a text box text and a label text Which can be aligned. In design mode, it is easy, you take one with your mouse, a purple line appears and a wola! Alignment is good, but my code is generated, how can I align their contents? Thank you! Edit : Layout is something I can not use (I do not make rules, my boss does ..) I like the use of FlowLayoutPanel (instead of TableLayoutPanel ) for this purpose Because you do not have to be fiddle with the column. Remember , to control vertical centered both top and bottom anchors on each control, and Flow layout control. Set AutoSiss = True and Autozizamod = Grow and Shrink. Edit : "Layout is something I can not use" in relation to your restriction: so that you can access the purple text baseline snapline status program, respectively. Want instead? It is possible, but the layout is unlikely to happen faster because only designer knows for the control of whe...

Export Gridview to Excel / additional Content -

I have a grdiview and a button on my page that exports content to an Axle file, what companies I would like to add There is also logo, title, date and time of today. Is there any idea? Thanks in advance You can do this. You can probably find a sample in your ASP.NET samples that comes close to C # and what you want to do; VB - Perhaps one of the "Excel reporting" samples or one of the "DataGrid and Excel for Back" samples. Disclaimer: I'm near SpreadsheetsGuide LLC

.net 3.5 - Launch a WPF window -

I have one for 3.5. Increasing Net Project Windows.Forms.Application.Run (WinForm) in the current project "System"; "Creates the initial Windows form I am thinking that if in any way can tell me what is the equivalent of calling a WPF window. Any help or advice If you are using C #, then try: P> new app (.) Run (new window ());

sql - .NET/C# Drizzle database client -

I am planning to use it in my next C # app because no C # client is available for the bootel, So I thought that by my conversion I would have to write my own, and then have to work with it. After looking at the Java client, I know that this is a long-term job that I had guessed, and I have no time except the Java client yet not mature. Since there is an official Drial C client library (), so writing a C # wrapper can be the best solution. Is there any device available that can help in preparing code for it? You should take a look at the launchpad. Within that project, SWIG is used to make Ruby such as various languages ​​such as Ramras and Python. All SWIG related files are part of that project, so it can be worth keeping an eye on what you are trying to get very easy to make.

colors - Are there any good reasons for using hex over decimal for RGB colour values in CSS? -

RGB (255,255,255) notation is available after CSS1 but #ffffff seems extremely popular. Obviously this is a bit more compact. I know that hex is more closely related to the underlying bytes, and understand that arithmetic will be of those values, but this is not something you are going to do with CSS. Color values ​​are generated from designers (such as mine), who do not face hex marking anywhere, and are more familiar with decimal symbols, in which they can be used in the app The main way of specifying the color is - in fact I have met some people who do not know how the given hex value breaks into RGB components and it is assumed that it will color directly , Such as the Pantone color system reference (such as PMS432). So, there is no reason to use decimals? Hex value is easy to copy and paste from your favorites Image Editor. RGB value is easy to manipulate with Javascript. (My favorite hex color value is #EDEDED and a site that we had in the background of #F1...

database design - How to model optional one-to-many relationship in 1NF -

How can you first model a zero, one or several types without breaking the normal form? That is that no false value is stored. Different relation table? It is adding a "worth" table, or this is very common Here is an example that matches my real world case: We have some free There is a college, say curriculum and some free hostel rooms come with some courses and dormitory rooms a fee. And many more rooms of the course have the same fee (zodiac), although they will be different courses / rooms then we will. tblCourse serial name tblDormRoom id address tblFee id number to take this one to my model, to have optional one-to-many relationship The tables were used to connect. tblCourseToFee CourseId FeeId tblDormRoomToFee DormRoomId FeeId In this way I can avoid any zero value storage, and also to avoid duplicate storage Charges are shared between that dormroom and course. And the Quick N Dirtyire version is considered, which does not strictly adhere to 1 N...

c# - How to get Nhibernate to handle non existing database columns gracefully -

I am working on a project for which most databases are completely identical but some columns may be missing. For example, how do I handle NHibernate, for example, I have 4 columns, an index and 2 data columns which will always be available, but a song customer does not want a column in their database. As a legacy app is part of migration I do not have the luxury of directing the database format or even changing the database. Anyone have any idea about how to do this. I can not get NHibernate shards to work with it. KR Nikki I ignore columns I do not know how to mapped otherwise I will try to create several mapping files for different databases and then configure your SessionFactor by using the correct mapping files based on my environment. Will do This little work is setup in the beginning but it makes very clear that in the database X you have Columns ABC and in the Database Y, you have the column AB.

javascript - JQuery: Turn array input values into a string optimization -

jQuery का उपयोग कर मेरे पास निम्न कोड है: var selectedIdsArray = $ ("# selectId विकल्प: चयनित ")। नक्शा (फ़ंक्शन () {return.value;}); Var selectedIdsStr = $ .map (चयनित इडिशअरे, फ़ंक्शन (वैल) {वापसी "" + + + "";}); यह सफलतापूर्वक आईडी की एक स्ट्रिंग पुनः प्राप्त करता है उदा। SelectIdsStr = "2,45,245,1" एक से & lt; एकाधिक = 'एकाधिक' & gt; तत्व चुनें मैं सोच रहा था कि क्या यह हासिल करने के लिए एक अधिक कुशल तरीका (कम कोड) है? धन्यवाद! आप इस तरह दूसरी पंक्ति बदल सकते हैं: var selectedIdsStr = selectedIdsArray.get ()। शामिल हों (',');

iphone - When should you NOT use the asterisk (*) when declaring a variable in Objective C -

I have just started learning the purpose and the asterisk is giving me some trouble as I see through the sample code I sometimes use it when declaring a variable and sometimes it does not happen. What is the "rule" for when it should be used, I thought it was something to do with the data type of the variable (Asterisk for the object data type is not required, for simple data types like int) though , I have declared the object data type like CGPEnt without asterisk? Is there a definite answer or what to do with it and what variables do you use for it? Use. For coco objects, then always declaring an indicator, so you always use the asterisks. You can not place the object in the variable; You always handle a pointer in the object. For other things, it depends on whether the object will be included in the variable (in C mean) or a point-and-so-else object of the object. If the object should be included in the variable, then you do not declare it with an asterisk...

c++ - How to access DOM of a web page in QtWebKit? -

How to access the DOM of a web page in QtWebKit? I do not see any way to highlight the DOM in QtWebKit. now As Qt 4.4 / 4.5, I do not think there is any direct route, but it is coming.

How to stop other threads stealing focus when debugging in Eclipse? -

I am debugging a server running in eclipse 3.4.1. Sleeping 20 threads either, after waking up at many intervals. I have set a breakpoint in a method on one thread, and the eclipse closes there properly Thread has been expanded with a stack trace in the debug view, and I am using different buttons Can I use for staging? This is what I hope for. My problem is that it seems that when a second running thread is going on awake, this debug is stealing the focus in the scene. Selection of my suspended bag is no longer expanded (it has one + next) and all buttons are disabled to continue debugging I have to click back on the suspended thread. Has anyone seen this before and know any solutions or settings which I can change? If the above does not help, once you want to debug, Always disable breakpoints. In the breakpoint view: Ctrl-A, right click -> disable

Insert row into table that has FK obtained from another table - linq -c# -

I have 2 tables, customer and client lists. I PK / FK client ID type GUID Linux, where I want to include in the client intestate table ClientInterestRegistration clientRegisteration = new ClientInterestRegistration {ClientID = (from V. DB.Clients where v.Email.Equals (EmailAddress) select New {v.ClientID}). Single (), ClientInterest = SelectedInterests, ..}; Receives the error: type System.Linq.IQueryable from System.Guid First, query Consider removing new {...} and changing it: client id = (v.Clients in DB where v.Email.Equals (email address) v.ClientID Choose). Single () Are you doing this, as a property to create a new structure with ClientID . However, you should not work at all directly with the key column. Try setting the client directly to the object: client = (Select v.Clients in DB where v.Email.Equals (EmailAddress) v) . Single ()

controltemplate - Silverlight: Deleting Template Parts -

I have a question about template parts. I want to make the control that comes with the hairdryer, but I do not want it to be a boundary, right / close button, etc. Is not this acceptable to practice the removal of template parts? I have made a copy of the ChildWindow template in Blend and removed the template parts, and it works fine - I just want to make sure that there will be no problem on the road. Thank you, Charles, if you read some custom control development documentation on MSDN, then it specifically mentions that developers should expect that template. The parts are not present and the code can be for this, so I think you are okay. Personally, when I need to remove the template part I would like to leave them in XAML, but visibility = collapsed for some limit like button or borderwidth = 0. My personal priority

html - How to make an iframe fill an area defined by distance from edges? -

I have an IFrame, which I want to fill in all fields on the page specified below, right, top CSS styles though , When I work by law, it does not work: HTML: & lt; Iframe id = "example_frame" src = "http: / /example.com"></iframe> CSS: #example_frame {status: absolute; Top: 1 AM; Left: 1am; Correct: 1 AM; Bottom: 1am; } This is about 100x100 pixels in a small box with a web page I think because iframes , you can only see top , right , below , And left . Should you be able to? Absolutely. But you can not do this instead, you can use a horizontal property ( left or right ), and then set both height and width to 100% . To obtain the effect you are going for, other non-substitutes like Iframe around a 1em space, div Just wrap iframe in the element. & lt; Div class = "abs-frame-container" & gt; & Lt; Iframe id = "example_frame" src = "http://example.com" & gt; & Lt;...

Building a bridge between Joomla and eGroupware -

I am trying to create an integrated login and user management system between Joomla and eGroupware, ideally the driver's look In with Joomla That is, users will log in to Joomla and pass their credentials in the aggregate so that they can follow a link on EGW and do not log in again. Apart from this, administrators can add new users (or update existing user information) in Joomla and those changes are also reflected in EGW. I tried but I had to try to do all this that synchronizing passwords between existing users is both in the documentation (matching on their user names) in Portuguese, so I can remember something in the translation is. Apart from this, I have examined Jeffusion, but so far there is nothing available for EGW for a bridge. Any general advice about moving forward is greatly appreciated. I have some Joomla experience, but writing extensions / modules is not much; Would it be easy for me to change something like Jeffusion or something like that or write someth...

security - How do I add password login to an ASP.NET page? -

मेरे पास दो asp.net पेज हैं: site.com/foo/bar.aspx चाहिए दुनिया को सुलभ और site.com/foo/baz.aspx होना चाहिए, मैं पासवर्ड की रक्षा करना चाहता हूं। मुझे कोई भी अन-प्रमाणित उपयोगकर्ता चाहते हैं कि उपयोगकर्ता नाम / पासवर्ड पृष्ठ देखे और फिर, जब वे पास करें, मैं उन्हें असली चीज़ देखना चाहता हूं मैं सबसे आसान संभव समाधान (जब तक यह चीजों को स्थानांतरित करने के लिए मुझसे कहा गया था तब तक अच्छा लगा) तलाश रहा हूं, यहां तक ​​कि लचीलेपन की कीमत पर भी। मुझे जो देखना अच्छा लगता है वह नियंत्रण होगा जो उपयोगकर्ता कुछ भी नहीं करता है यदि उपयोगकर्ता प्रमाणित है और लॉगिन प्रक्षेपण के साथ "सभी" अन्य नियंत्रणों की जगह लेता है। मैं वर्तमान में केवल एकमात्र उपयोगकर्ता हूं जिसका खाता होगा ताकि मैं अब तक एक कठिन कोडित पासवर्ड सूची के साथ जा सकूं (और मैं उस के साथ और अधिक कम रहना चाहता हूं क्योंकि मुझे इसे कहीं और रखने की ज़रूरत नहीं थी)। उत्तर का उपयोग कर मैं व्यक्तिगत पृष्ठों को पासवर्ड संरक्षित बनाने में सक्षम था मैं इसे प्रपत्र प्रमाणीकरण करने के लिए सेट अप का उपयोग करना मैं कस्टम ल...

iphone - Scaling not as smooth in 3.0 as in 2.x -

मेरे पास CATiledLayer बैकड UIView है जो कि UIScrollView और इसे - (UIView *) के दृश्य में स्केल किए जाने के दृश्य के रूप में वापस किया जाता है viewForZoomingInScrollView: (UIScrollView *) scrollView प्रतिनिधि विधि अब समस्या यह है कि CATiledLayer (जैसा कि 1.333 उदाहरण के लिए) द्वारा प्रदान किए गए 2x चरणों के बीच गिरने वाले पैमाने पर स्केलिंग, जब मैं 3.0 एसडीके के खिलाफ संकलित और परीक्षण करता हूँ तो बहुत पिक्सलटेड छवि में परिणाम होता है । 2.2.1 में स्केलिंग बहुत चिकनी है। मैंने परत के minificationFilter से केसीएफ़िलटरट्रिलिनियर सेट करने की कोशिश की, लेकिन इसके परिणामस्वरूप एक तरह से धुंधला छवि भी हो गई। किसी भी विचार? कुछ खेल के बाद, मुझे पता चला कि केवल 2 एक्स सिम्युलेटर स्केल किए गए चित्र को छूटे। वास्तविक डिवाइस पर 2.x एसडीके के साथ, स्केलिंग 3.0 पर समान है।

design - What are some class names that would signal a need for refactoring? -

I find some articles that suggest that some words are never used as a class name should do. Example: Manager Example: The reason: Since almost all the class "management" means something more "manager", so people can put many responsibilities in the "manager" class, while still being able to claim the class "only one thing" . Consequently, naming a class with "manager" does not really say much about what actually does. For example, in this article mentioned, this point is shown: For example, take a class called "UrlManager" - you can not tell whether the pool manages or uses the URL. All the names tell you that this is not a URL, but it works in some way with them. On the other hand, gives a better picture of what the class named "UrlBuilder" does. Another example: Helper Reason: The names of a class like "ThreadHalper" surprise people That is why it is needed and why it can not be ju...

svn - Limiting the memory consumption of tsvncache.exe in TortiseSVN? -

Do anyone know how to control the memory consumption of tsvncahce.exe used by TortiseSVN? It is constantly the largest consumer of memory on my machine ~ 180 MB on my Vista 64 machine It uses more RAM than VS2008, SQL Server and even my browser, which usually has 4-5 tabs open It just does not seem normal I already drive and Any other advice from the gurus would be helpful if the folders have started to ignore which it does not need to be tracked, but it could actually change things. It seems that you have already figured out how to configure the directory to ignore Tsvncache Maybe this is your best choice. You can use the same settings dialog to set or any status cache . Any of these settings will completely disable tsvncache.exe, but the overlay icons will only appear for the current visible folder, or not at all. For more information, click on the Help button on the dialog, which will take you to the icon overlay setting section of the help file, which tells setti...

database - Linq to Sql Data class in dbml -

I'm curious about DBML ... should I make a DBML file for a database or a sad user dbml ( Only related to table users) etc.? When I do this, I will have to face problems, assuming that the user has a user table in DBML and if the order is also a user table in the DBML, this permission will not be allowed if the entity name space is the same. If I have set a separate entity namespace for each DBML, then it works but it will give me a separate unit of user table. When any data returns to business logic layer, it is difficult to know which unit's namespace is used to use the user table. If I had created a DBML file instead of separate DBML, then the single DBML will appear when getting data from the database slow while compared to the different dbml version. From Linux, the SQL is designed to operate with a single data reference object. Lifetime of SQL datacontent with a LINQ Using a repository pattern, the Nerd Dinner Tutorial is a very good example of SQL usage f...

perl - How I can run 'cpan' inside emacs? -

I know how can I run the cpan to install the module using emacs? I often do the same on the command line. UPDATE: I asked this because the message "has been warned: after ignoring the extra agg -e" when I use the M-X shell to run it. I still need help. have you tried open MX ? >

perl - Is a client-server setup a good way to move data between machines? -

I need to move some data from one machine to another. I use the socket in the pell to transfer the client server Writing app is good? If one side is written on one side in Java then will I have problems? I mean, can I have to face when trying to come up? Short answer: It is OK to use a Perl program as a client or server. Your only problem is the level of your personal skills and experience, but after doing so you can know how to do it. :) Most of the problems are choosing how you want to do it, not the technology involved, the Pearl problem is not going to happen, but it does not have any advantage in other languages. Some have already mentioned, the socket of the problem is going to be divided in most languages ​​because almost everything uses BSD stuff. Pearl has no barrier or special genet for it to transfer data from around you to listen to a socket on one side to open one connection to another and send data. Very easy. You might want to check Lincoln Stein for that b...

c# - How do I improve the performance of code using DateTime.ToString? -

: LoginTree Time. Toastring ("DD.MM.IHH: mm: SS: FFF") Takes 33% of the total processing time. Does anyone have any idea about how to make it faster? Edit: This app is used to process some binary logs and it currently takes up to 15 hours to run. So the time of 1/3 will be 5 hours. EDIT: The application I'm using for profiling is processing approximately 17 GB of binary logs. It is unfortunate that there is no type of .NET "formatter" type that can parse a pattern And can remember it. If you are always using the same format, then you really want to hand-craft the formator to do this. Some on the lines of: public static string formatDetermission (datetime DT) {four [] characters = new colors [21]; Write2Chars (letters, 0, dt.day); Characters [2] = '.'; Write2Chars (letters, 3, dt.Month); Characters [5] = '.'; Write2Chars (character, 6, dt.Year% 100); Character [8] = ''; Write2Chars (letters, 9, dt.Hour); ...

subsonic3 - Can you disable pluralization in Subsonic SimpleRepository? -

I usually write my domain object name in my local language, and the plural of those names will look very ugly, do you How can some change? You can take a look at your solution: I have a t4 template To solve this problem.

iphone - Core Data Fetched Properties to rank connectivity between Objects -

after "text" itemprop = "text"> Other examples or organization I want to rank in examples how to effectively connect the instances of my graph I have only needed the most recently seen institutions to do this so I need another unit B due to the relationship between the two instances of one unit I need to describe every relation. Description I am very There was considering using a lie went home. Any isSourceOfRelation.destinationThing == "$ SOURCE_THING" or any isDestinationOfRelation.sourceThing == "$ SOURCE_THING" But I would be careful to do this Because I doubt it will evaluate this through relationships but via a thorough search it will not be such a problem on the desktop, but on the iPhone it will not be practical with my dataset. The properties brought are evaluated lazily and later cached as I could probably use the property obtained on every single object but this cache want to be maintained in the SQLite store Are you ...

Resizable Iframe for facebook iframe applications -

I have an IFrame application built on PHP. I have set the size of the IFrame as resizable. / P> One problem is that if the content is too large the display is not appropriate I available on my xd_receiver.htm file Code is inside my template folder where my php files remain. The code I am using is: div id = "FB_HiddenIFrameContainer" style = "display: none; position: absolute; left: - 100px; top: -100px; width: 0 px; height: 0px; "& gt; & Lt; / Div & gt; & Lt; Script src = "http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; FB_RequireFeatures (["CanvasUtil"], function () {FB.XdComm.Server.init (xd_receiver.htm>); FB.CanvasClient.startTimerToSizeToContent ();}); & Lt; / Script & gt; Please guide on how to make the display correct. Althoug...

svn - continuous integration based on maven2 -

I am trying to find out how to set up continuous integration using Maven. What do I need: Check new things in SVN If the changes have been detected, then check them create and deploy I think that all this can be pushed into shell script by Kron to implement it. In this way, we will make continuous integration (automatically build the night, for example) I know that Maven has the SCM plugin to work with version control systems, but I do not know Depending on how this can check the changes in the repository and launch the results based on checkout. So I am asking the audience :) PS I forget to tell - I am not interested in any existing application! They are too heavy for my VPS server. Please do not advise them. I Recommend a recognized experiment because CIs are just comparable to construction. But if you are determined to roll your own, then you can use some goals with Maven-scm-plugin and capture output. This is a local copy of the project so that you ca...

LINQ Dynamic Expression API, predicate with DBNull.Value comparison -

itemprop = "text"> I have an issue using the dynamic expression API. I can not compare a DataTable field against DBNull.Value. The API should be able to support "static area or fixed asset access. Any public area or property can be used." However the following question has been given: var whatever = table1.AsEnumerable (). Add (table2.AsEnumerable (), (x) => x.Field & lt; int & gt; ; ("Table1_ID"), (Y) => y.Field & lt; int> ("Table2_ID"), (x, y) => New {x, y}). Exogenable . Where ("x [\" NullableIntColumnName \ "] == DBNull.Value"); I get an error: "A property or field is present in 'DBibul' type '& lt;> f__AnonymousType0` 2" " to get around this For? I can not use the presentation. The field ("NullableIntColumnName") has been passed in the string, where the method is either BTW, or otherwise I would be able to compare DBNull.Value with the tap inst...

postgresql - Aggregate function with Date on Postgres -

I've rusted on my SQL in a way, maybe you can help me on this question. Table Ticket I have these two tables for a ticket system (I am leaving some fields): ID - built-in theme - text user_id - left off - boolean first_commission - large (for foreign key, for foreign key) I inquire about closed tickets, and first message creation and final message creation In average the time spent between _date. This is what I have done so far: SELECT t.id, t.subject, tm.creation_date Tickets from Tickets to TNI as ticket_messages TM on TM ID = T. First_memez or Tm.id = t.last_message WHERE t.closed = true I am looking at some groups or total functions to get all the data from the table, and to calculate the time Trying to spend between the previous and the first, it is also trying to show the dates for the first and the last message. UPDATE I inserted an internal with another table instead of "OR", now I get both dates, and I can get the amount from my ...

openoffice.org - How to convert OpenOffice ODF files to HTML -

I have some ODF files with math sources and I have to present them ... or the owner will set me on fire (qualified ). Please, is there any way to do this? Or can they be sung only in the open office? Sometimes saving and modifying documents as PDFs is better than PDF files instead of as a tool or

javascript - java equivalent of swfobject -

Looking for a JavaScript class like swfobject to embed java and has a simple fallback if the user is not java or denied Does not have security prompts Thanks, Josh You are very easy Can build one from. Do something like this a Div Set: & lt; Div id = "java-applet" & gt; The message for the user is saying that they need Java & lt; / Div & gt; Then add () to your JavaScript then, if it is true, do something like this: document.getElementById ("java-applet"). InnerHTML = "& lt; Applet> Accessories Here & lt; / applet & gt;";

jsf enter key pressed problem -

I have an XHTMLX popup page that has two buttons. Two buttons are functioning ways in their backing beans when the user clicks on how can I ensure that the first button is called the adrenaline method. Many structures allow for a tag, for example & lt; S: defaultAction / & gt; From it just adds a piece of JavaScript to your page that listens for the entry key If you are not using SIM or similar, add yourself JavaScript - Example

Should one override equals method for asserting the object equality in a unit test? -

Suppose we are examining the results of a method by emphasizing the similarity of all the properties of the results, the expected results Object should apply equally to us and use the apprehension. Recyclable (expected result, actual resource) ... but the equivalent means something different in the output code. Which is the best practice? Emphasizing the similarity of objects through overrides or Emphasizing the similarity of all the properties I have two main reasons for using a custom practices: Do not bind test-related problems, it means that in the test method, the meaning of equal can not match the meaning of the output code; It may not be enough for all the tests that may be different. Different tests will require different arguments, so you can probably use custom claims.

NHibernate DTO Parent child relation -

I have some entities and now some DTOs have to be made based on the use of anihirnet. I have a service - allocation -resources where allocation is described, how the resource has been allocated for the service. I like a DTO service DTO -name -RASASDDO where RessourceDTO also has a name. Look for NHibernate projection / DTO in my example, then you can either use the property or the constructor. If I use the Constructor approach then I would have something like service DTO (name, list ), but I did not know how it was working. Another way is to remove all services and then loop through them and press the database every time, or get a big result and then the DTO the best way What is it? I'm going to hide all this inside a repository. how about public service DTO GetDTOFor ); {Var service = session Creatitivity & lt; Services & gt; (). (Add restriction AC ("id", id) .Setpet MOD ("Resource", fetchmode.eager) // Curious Load Resource. ...

c# - Getting subject line of e-mail using webDAV and .NET -

I should be well aware of someone else in this area for the re-title of the question. / P> I am trying to learn more about webDAV and .NET. I wrote an app that needs to pull all the e-mails from the Inbox on the server. I need to load this email in an object that has the following properties: - to - topic - body I got a lot Useful Posts But I'm not quite sure what I need to manipulate the XML file. Specifically the following code: XmlDocument document = new XmlDocument (); Document.Load (responseStream); // Set up namespace XmlNamespaceManager nsmgr = New XmlNamespaceManager (document.NameTable); Nsmgr.AddNamespace ("a", "DAV:"); Nsmgr.AddNamespace ("b", "vase: uuid: c2f41010-65b3-11d1-a29f-00aa00c14882 /"); Nsmgr.AddNamespace ("c", "xml:"); Nsmgr.AddNamespace ("d", "vase: schema: mailheader:"); Nsmgr.AddNamespace ("e", "vase: schema: httpmail:"); // Load each re...

vb.net - color chooser (color palette) showing all colors -

I would like to place an image on my appearance like this. Depending on where the user clicks, I would like the background of the form to change this color There are some ColorPicker codeprojects on it.

Where to find HTML source code in document written with Word 2007? -

In Word 2003, a document can be translated into a web page and translated into HTML coding. You can use VIEW and see the source code for getting HTML coding for that file. In Word 2007, you can save as a web page but I do not know how you can see the source code created with it. What you need to do is right-click on the file and open it with ... and use Notepad to view HTML. Keep Your Eyes Safe; It's ugly, ugly code. Edit : To reduce some bloat and make things more legible, I suggest - I have had very good results with it, but only up to 20kb Works for files. For SO bonus points, see Geoff's C # code here.

How can I transcode an IMA4 ADPCM audio file recorded on the iPhone? -

For bandwidth reasons, I would like to use Apple's implementation of IMA 4 format for recording on iPhone. This format is great for space But it seems that it is difficult to find a program that can transcode it to something like linear PCM or MP3. I have not used socks and transcode to take advantage of this automatically and on the Linux server Mitigation should be able to, so iTunes is out of the question. IMA 4 is not a very complex form, so if you had to do then you would write your parser Here is a post that contains all the information you need ...

math - What do [0, rows) and [1, rows] mean? more specifically [ and ) -

I understand that it is in rows 0 through rows and 1, but which is included and who is involved? [- including, (excluding example: [10, 15] 10, 11 , 12, 13, 14 Example: (2, 4) 3

Is there any good reason why the #region and #endregion does not work in F# -

This is very useful in organizing and browsing the code. Why is this not implemented? And if it prevents some constructions then why is not there something similar to F # It would be nice to add a feature F # team, but this is a "good" type of feature Is more and not required to ship to the V1 of the product release. We will make our way into F # in future versions of the Visual Studio release. For Visual Studio 2010, this is a huge task to get F # for product quality.

c - Alternative to Complex.h in Visual Studio -

Let me know VS There is a lot to know about, and when my Linux code was not compiled on windows, it was a surprise. & lt; Complex.h & gt; The problem of lack of VS in is my question: People have to re-apply in their windows applications or there is a public domain version. C ++ is not an option, and neither is GCC, you just do not do it since Download the header ... and include it in your project: #include "complex.h" ? You can download a minimum version of Minu and just copy the header file.

javascript - Do you know a date picker to quickly pick one day of the current week? -

Most date pickers allow you to select a date from the tin calendar or to enter a date manually. For example, For this - Two clicks (to choose one another to display calendar) - Good sight (usually a pop-up calendar is very small) - And good hand- Glance Coordination Choose the right date in the small calendar with your mouse. This is not a problem for electricity users, but there is a problem for older people and computer beginners. I got a website approach. It seems that most of their users have been selected for the current week's dates, so they are listed in one day at a time with all the days of the week. The current day is marked in another color on the right hand is a small calendar icon that opens a regular date picker. This lets you access all regular date picker functionality. Here's a screenshot: Do you know of any jquery plugin that has a similar feature? If not, will you help another plugin or widget to accelerate the development? Thank you! Of co...

pointer memory management misunderstanding w/ objective-c -

I'm using the iPhone SDK 3.0, but I think it's how things work in W / C & A The general misunderstanding is, (Bool) animated {NSArray * items = [NSArray arrayWithOjbects: (zero) viewWillAppear - memory management I have overridden the method like the @implementation MyViewController viewWillAppear: . Search button, self Trash, zero]; [Self. Bottombar Set ITEMS: Animated Items: Yes]; } // Other stuff ... @end When I switch off the above view controller and switch back try everything works correctly. But, my reference to "release" to the original pointer is "item" because I think a reference for NSArray is now organized by bottomBar. . But when I try to switch this off (see the code below) and switch away from the UIViewController, I get a memory management error (- [CFArray count]: Message deallocated example sent for 0xd5f530) - (zero) viewWillAppear: (bool) animated {NSArray * items = [NSArray arrayWithOjbects: self.searchButton, self....

Correct way to remove a many-to-many relationship via linq to sql? -

Assume that we have two tables with several tables: public class byte Public square right {/ **} Public square byte right {/ ** /} The following is enough to open these records (ignore the possibility of More than one relation or no relation defined) Public zero disgusting (left left, true right) {var relation = Left.LeftRights x where x is x Right == no ?; Left.LeftRrights.Remove (relation.First ()); Db.SubmitChanges (); } Or do I have to do it on both parts? Here's what is needed "itemprop =" text "> Here's a 'small' extension method I've written to make this problem easier : public static class EntitySetExtensions {public static void UpdateReferences & LT; FK, FKV & gt; (The EntitySet & LT; FK & gt; refs, & lt; FK, FKV & gt; fkvalue of the ceremony, & lt; FKV, FK & gt; fkmaker, the action's & lt; FK & gt; fkdelete, IEnumerable & Lt; FKV & gt; value) where FK: square wher...

mysql - Select Top Viewed From Last 7 Days -

I have the table with a date stamp eg. (1241037505). There is also a column with the number of views. Looks like the data stamp looks like. So I want to select the threads seen from the last week. How do I do this? Try this: SELECT * WHERE DATEDIFF (now () , Created_date) & lt; 7

excel vba - vba userforms carriage return behavior -

In a text box of a userform in VBA, I would like to enable this feature where the user can add a new line to the user Textbox by pressing the "Enter" key on the keyboard. However, I had trouble finding UI options in UI editor to get it. Is it also allowed in VBA userforms? Thanks in advance for advice and answers. Set the multiline property of the textbox for the Truebox and set the EnterKeyBehavior for the truth. / P>

Web service: PHP or Ruby on Rails or Python? -

I am a Net / SQL Server developer through my day-to-day work, and for the sake of development, I develop some objectives I am the phone I would like to develop a web service and since dreamhost supports Ruby on MySQL, Python, Rail and PHP5, I want to make it using one of those languages. If you do not have any experience on either Python, Ruby or Railway, who will you go with and why? The service basically just takes a request and talks to a MySQL database. Note: The SOAP was planning to use the protocol .. However I am open with suggestions for suggestions since a clean slate. Ruby-on-Rail, Python and PHP will all have excellent options for developing a web service . Languages ​​are enabled (Sure Ruby is the language in which Ruby is written on the rail), if you are fancy (Dangogo is an example of a good dragon, and there are some good examples such as Drupal or KPPHP) and can play well With MySQL I can say that it depends on your previous experience and you will be most ...

regex - Read MIME data using PHP -

I have a third party program, which basically allows users to send email and then display it in the system Does. But the problem is that it is generating an output like this: I just want to take this data and format it for things to be presented. Do I Want to Avoid Reggae Is Any More Theorem There are no alternatives or standard ways to show the content below in fashion? Actually I'll add everything as $ text below and then call a function like clean ($ text) type. & gt; This message is in MIME format. Since your mail reader does not understand this format, so some or all messages may not be legible. --b_3331365494_4098727 Content-type: text / plain; Charset = "US-ASCII" Material-Transfer-Encoding: 7-bit Test - B_3331365494_4098727 Content-Type: Text / html; Charset = "US-ASCII" content-transfer-encoding: quoted-printable & lt; HTML & gt; & Lt; HEAD & gt; & Lt; Title & gt; Test & lt; / Title & gt; & Lt; / HEAD> ...

compiler construction - Boost Filesystem Library Visual C++ Compile Error -

I am trying to compile / run some example programs with buffer file system libraries. I am using MS-Visual C ++ with Visual Studio .NET (2003). I have installed the Boost Library, version 1.38 and 1.39 (just a version issue) when using the BoostPro installer. If I just try to include /boost/filesystem/operations.hpp , I get the following error: \ Boost_1_38 \ boost \ system \ error_code.hpp (230): Error C2039: 'Type': 'boost :: enable_if & lt; Boost :: system :: is_error_condition_enum & lt; Cond, boost :: detail :: enable_if_default_T & gt; Is not a member of; Any help is greatly appreciated. Thanks! It seems that SFINAE is not working - which may be a specific problem for VS 2003 . I suggest that you edit the creator defined on that row to edit that other parameter. There may be less useful error messages, but nothing should be broken (that there is no other 1-argument constructor.

java - Add a Build Path to Eclipse Plugin -

I have to add a variable to a jar in my Avlast Plugin project. I get the "no class definition found" exception. My idea is to add it to the manifest file in some way? The best way to do this (if it will work for you) is to put a jar in the bundle Including which you want to use it, it allows you to use the functionality in the jar, but it can not display any API other than your app and display it in the rest of the application. You can add the javascript to your plugin's classpiece, so that you can access all your squares This is the best if you hide the external jar completely by not revealing your internal package with the manifest file , Any application from the rest of it, though, if you have to do this, then it is possible. I have done this both ways and have liked to hide external jars. The Eclipse RCP Book (McAffer and Lemieux) incorporates this process into some process.

c++ - Execute a process and return its standard output in VC++ -

The easiest way to execute the process is to wait for it to end, and then add it as a string Return standard output? In a little belt like Pearl. I do not seek a cross-platform thing, I just need the fastest solution for VC ++. Any thoughts? WinAPI Solution: You will receive redirect input (hStdInput area in STARTUPINFO structure) and Output (hStdOutput) to make the process with your pipes (see CreatePipe) (see CreateProcess), and then just read from the pipe (see ReadFile)).

c# - Visual Studio 2008 Warning About Changes to Designer-Generated Code -

This question is kind of arbitrary but still interesting to me; I was thinking that Visual Studio 2008 constant : public class Service101: ServiceBase Showing the following warning at design time: Warning 1 can not process code on designer line 68 : If (EventLog.SourceExists (DISPLAY_NAME)) {EventLog.CreateEventSource (DISPLAY_NAME, "app"); } The code is generated by the code designer within the 'InitializeComponent' and should not be manually modified. Please remove any changes and try to open the designer again. E: \ Proyectos \ beanstalk \ dotnetfx \ trunk \ WinSvc101 \ WinSvc101 \ Service101.cs 69 0 Any comments would be greatly appreciated. Thanks in advance. When you add the code to InitializeComponent (), the designer is not happy . Try doing something instead: Public Service101 () {InitializeComponent (); This.createEventSource (); } Private Zero start initializeComponent () {this.ServiceName = SERVICE_NAME; This.EventLog.Source = D...

Which layout techniques do you use: HTML tables, CSS tables, absolute positioning, floating or some mixture of those? -

However, I know that much depends on a particular web site, what is the mainstream? =) Also, what do you think about implementing a CSS table-based layout, while IE 6 and 7 are in use? I use CSS floating, tables for aggregate data and full position when necessary I am

model view controller - Best practices when Design iPhone Game with MVC? -

I have already made two matches for the iPhone, the first was a mess, and the other one is less messy but then I would love to hear if anyone has some links that use good MGC while making games using MVC indicating good class organization advice? Post-text "itemprop =" text "> You are the controller that holds everything together, it is less reusable than the MVC trilogy, your thoughts and models are that you have to : The controller manages all game-specific manipulation models that use the controller. Do not design for the future, just get a good basic design, And pasting that design Try the code during refactoring Avoid refactoring See my question.

libpurple - Are there any examples on python-purple floating around? -

I want to learn it but I do not know no from everything there is that Libpurple has read the source, but I do not think that I understand that enough c to really understand it. There is not much about it yet ... the, the, and (browse them here Doing online but you can definitely clone them) About this, in particular, the small examples obtained from you are some examples of use of purple facilities in the client (certainly not enough, but it is possible that You can start with some 'Dior', 'Help' and the help of such.?)

Access/use the same object during a request - asp.net -

"itemprop =" text "> I have an HttpModule that creates a CommunityPrincipal (apply the IPrincipal interface) on every request object. I want to store the object for every request whenever I do it without needing to cast it or need to re-create it anyway so i can get it. Actually I want to copy the FormsAuthenticationModule that works. This HttpContext.User property is an object that implements the IPrincipal interface, provides on every request I would like to be able to call HttpContext.MySpecialUser etc for some way. (Or MySpecialContext.MySpecialUser - create stable classes) that will return my object (specific type). I can use an extension method but I do not know how to store the object so that it can be reached during the request. How can it be obtained? Please note that I want to store it in a specific form (Community Principal - not just an object) it should definitely be available only for the current request being processed And not shared with ...

PHP: Sorting array with natsort -

I have a PHP script that creates thumbnails and lists an image gallery that is causing me problems That it lists the timestamp on the server, but I want to put it in 'naturally' list. & lt; Php # settings $ max_width = 100; $ Max_height = 100; $ Per_page = 24; $ Page = $ _GET ['Page']; $ Has_previous = false; $ Has_next = false; Function getPictures () {global $ page, $ per_page, $ is_Next, $ is_ext; If ($ handle = opendir (".")) {$ Lightbox = rand (); Echo & lt; Ul id = "picture" & gt; '; $ Count = 0; $ Skip = $ page * $ per_page; If ($ skip! = 0) is $ is_ previous = true; While ($ count '; Echo & lt; / A & gt; & Lt; / Li & gt; '; $ Count ++; }} Echo & lt; / Ul & gt; '; While (($ file = readdir ($ handle))! == Incorrect) {if_dir ($ file) & amp; Amp; ($ Type = getPictureType ($ file)) = '') {$ has_next = true; break; }}}} Function getPictureType ($ file) {$ split = explode ('...

image processing - Rotating JPEGs in .NET with minimal loss of quality -

I am trying to rotate JPEG images from ASP.NET MVC (in increments of 90 degree increments). I'm trying to use the System.Drawing (GDI +), though I'm running into issues. I tried to use that which is capable of rotating the image but causes the loss of quality. Even with the 100 encoder quality, there are still things that are visible on the rotated image which were not on the original image, nor when I used it to rotate it using other programs (gimp, etc.) I show. Using (image image = image.framefile ("C: \\ source.jpg")) {ImageFormat sourceFormat = image.RawFormat; Image.RotateFlip (RotateFlipType.Rotate90FlipNone); Encoder parameter encoder = null; Try (if (sourceFormat == ImageFormat.Jpeg) {encoder perm = new encoder parameter (1); Ankoderprmkpam [0] = new Ankoderpramitr (encoder. Quality, 100 L);} Image.Save ( "C: \ \ target.jpg ", GetEncoder (Srotformet), Ankoderprms);} finally {if (encoder perm! = null) encoder Params. Dispojh ();}} I fou...

ipython - How do I control number formatting in the python interpreter? -

I often use Python interpreter to perform quick numerical calculations and would like to automatically print all numerical results, For example, exponential notation. Is this a way to set up for the entire session? For example, I want to: gt; & Gt; 1.e12 1.0e + 12 No: & gt; & Gt; & Gt; 1.e12 1000000000000.0 Whatever you want, create a Python script ( Mystartup.py ) and its After setting an environment variable PYTHONSTARTUP in the path of this script, then Python will load this script when an interactive session starts (but not run the script). In this script, define a function like this: def _ (v): If type (V) == type (0.0): print "% e"% v else: print v Then, in an interactive session: C: \ temp> Set PYTHONSTARTUP = mystartup.py C: \ temp> Python ActivePython 2.5.2.2 (ActiveState Software Inc .) Based on the Python 2.5.2 (r252: 60 9 11, 27 March 2008, 17:57:18) [MSC v.1310 32 bit (Intel)] Win32 Type "Help", "C...

java - JUnit two variables iterating respective value sets, create test functions -

Checks the function takes two arguments, I want a test case for each element of the Cartesian product of the respective domain, But without typing all test cases manually such as zero check (integer one, integer b) {...} @Test public zero test_1_2 () {check (1, 2); } ... In Python I go with class test (one-time test): DEF check (self, I, J): Asset notable for garnand in (1, 4): Xchange (1, 4): For J. in: Orange (2, 6): Def Ch (I, J): Return Lambda Self: Self. Check (I, J) Setter (Test, "Test_% r_% r"% (i, j), ch (i, j)) How do I do this with Java and Junket Can i do I think you are searching for Paramijit Test in Genuine 4 Are there.

javascript - Dynamically reveal hidden divs -

I have searched for the solution for Hi and Low, basically I want a panel with one plus And when the 1 blank version of the user click form is repeated in a new panel, which is found after clicking on + sign: __________________________________ | & Nbsp; & Nbsp; & Nbsp; & Nbsp; Form 1 & nbsp; ; & Nbsp; & Nbsp; & Nbsp; | | & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; ; | & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; | & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; & N...