Posts

Showing posts from May, 2012

c# - Why is TransactionScope causing problems using Entity Framework? -

I have a problem relating to the scope, I know that some local transaction, probably MSDTC (I do not know too much Is about it) Other project developer (similar codebase, committed everything) implements the whole solution, but when I try to get some data from the database (always), I have the following error:. The underlying provider failed on EnlistTransaction. System.Data.Objects on System.Data.Objects.ObjectQuery`1.GetResults on System.Data.EntityClient.EntityConnection.EnlistTransaction (Transaction transaction) (System.Data.Objects.ObjectContext.EnsureConnection) (Nullable` 1 forMergeOption) .ObjectQuery`1.System.Collections.Generic.IEnumerable & LT; T & gt; .GetEnumerator () System.Linq.Enumerable.First [TSource] & LT on System.Data.Objects.ELinq.ObjectQueryProvider on (IEnumerable`1 source); GetElementFunction & gt; b__0 [TResult] System.Data.Objects.ELinq.ObjectQueryProvider.ExecuteSingle [TResult] on System.Data.Objects.ELinq.ObjectQueryProvider.Syste

Disallow any member function to change its data members in C++ Class -

How can I do this? After starting the object in C ++, any member function can change the value of its data members. All members work const This is the only mechanism for the job, and It works just fine. If you also make them private , then you are completely covered. If for some reason you feel compelled to keep them safe, then things are more complicated. You will need to create a personal area const , and this will require you to start with the member initial list, or const_cast in the constructor Or maybe a temporary whistle, but I'm not sure there is such a thing.

iphone - Prevent automatic popToRootViewController on double-tap of UITabBarController -

एक UITabBarController का डिफ़ॉल्ट व्यवहार रूट निविष्ट करने के लिए निहित UINavigationController को पॉप करना है, जब किसी विशेष टैब को दूसरी बार टैप किया जाता है । मेरे पास एक विशेष उपयोग का मामला है, जहां मैं इसे स्वचालित रूप से काम न करने की इच्छा रखता हूं, और मुझे यह पता लगाना मुश्किल हो रहा है कि इसे कैसे रोकना है। क्या किसी ने इस में भाग लिया है, और यदि ऐसा है, तो क्या क्या तुमने किया? क्या मुझे UINavigationController subclass और popToRootViewController ओवरराइड करने की आवश्यकता है या क्या कोई आसान तरीका है? विधि का उपयोग करें । - (BOOL) tabBarController: (UITabBarController *) टैबबीआरसी नियंत्रक चाहिए SELECTViewController: (UIViewController *) viewController {वापसी viewController! = TabBarController.selectedViewController; } इस प्रतिनिधि विधि को वास्तव में लागू करने वाले ऑब्जेक्ट के लिए टैब बार नियंत्रक का प्रतिनिधि सेट करना भूलना नहीं है।

jquery - How to suppress jqgrid from initially loading data? -

I have a jqgrid in a modal popup in which the data is dependent on some input. I am showing the grid url options popups below based on input like: $ (container grid grid) .setGridParam ({url: urlGetContainers + 'CRALineId =' + CurrentCRALineId}). Reload grid (); When the grid is first loaded on the screen, it is not being displayed and does not need to recover the data until the modal popup is shown. Unfortunately, jqgrid still tries to request data based on its url option. I have initially tried to use the hiddengrid property to hide / shrink the grid, which also keeps it from requesting it does not work for the data, however, because it shows me the grid There was no programmatic way to expand / expand Is there a way to suppress jqgrid by initially loading data? Start your grid in the 'show' event of the modal popup. You can dynamically generate jqGrid and insert it into the DOM, and then you can tie the data late by using the normal initialization

internationalization - Turkish case conversion in JavaScript -

I would like to convert the string in local to Javascript in lower or upper case. I think the standard code like toUpperCase () and toLocaleUpperCase () do not meet this requirement toLocale functions do not behave as much as they want. For example, in Safari 4, Chrome 4 Beta, Firefox 3.5.x on my system incorrectly converts the wire with this Turkish characters. Answer Browsers Navigator.Language as "en-US" , "tr" , "en-US" respectively. But there is no way to get the user's approved-lang settings in the browser, as far as I could. Only Chrome gives me the "tr" , although I have preferred every browser Turkish locale. I think these settings only affect the HTTP header, but we do not access these settings via javascript Can. It says Characters change within a string ... For the majority of languages ​​while respecting the current locale, it will return the same way ... < / P> I think it is valid for Turkey, it i

wpf - How to bind ScaleTransformation.X to slider in Silverlight 3 -

I need to zoom the canvas. It is possible to tie the scale transformation.x in the WPF slider. Value I'm not able to do this in Silverlight - some errors. Is it supported in SL3? Thank you. The reason it does not work is that it is in the SL3 binding target framework element < / Code> should be. (This restriction has been raised in SL4, but it does not help right now). However the solution only takes a little back-thinking (or backward thoughts in this case). If the source object does not need the framework element then the answer is binding, which puts the binding on the slider value property and put it in the two mode gives. & lt; Border width = "200" height = "200" & gt; & Lt; Border.RenderTransform & gt; & Lt; ScaleTransform x: name = "goal conversion" /> & Lt; /Border.RenderTransform> & Lt ;! - Here's some content - & gt; & Lt; / Border & gt; & Lt; Slider value =

php - Detecting if integer can be written as sum of given integers -

Understand that I'm 3,5,610,10 constant, with the number of words at least one of these constants As a yoga, how can you know how to write $ n? Example $ n = 10, S = 10 $ n = 18, S = 9 + 9 $ n = 24, S = 9 + 9 + 6 $ n = 27, S = 9 + 9 + 9 $ n = 28, S = 10 + 9 + 9 thanks

sql - How to create Composite Key and how to refer it in other table as a foreign key -

मेरे पास टेबल के नीचे एक टेबल है तालिका बनाओ tblcountry (unqid uniqueidentifier नाम varchar (100 ) को हटाया गया बिट) मैं unqid + के आधार पर प्राथमिक कुंजी बनाना चाहता हूं + और हटाया गया है सच में होना चाहिए मुझे एक अन्य तालिका मिल गई है: मुख्य बात यह है कि मैं चाहता हूं कि जब मैं कोशिश करे कि मुझे छोड़ दिया जाए तो टेबल टब्लेस्टेट (अनक़ीड अनूइंट डिडिटीफायर, नाम varchar (100) f_tblcountry uniqueidentifier, फ़ील्ड को सच के रूप में या 1 टैब्रंट्री से 1 की तुलना में मुझे त्रुटि देना चाहिए अगर मैंने इसे संदर्भित तालिका टैबस्टेट में उपयोग किया है और जिस रिकॉर्ड के लिए इसका इस्तेमाल किया गया है वह सही नहीं है। और यदि टैबस्टेट को हटाया गया है तो उस प्राथमिक कुंजी के लिए सही है, इससे कोई त्रुटि नहीं होनी चाहिए। i अपने समाधान को चलाना ठीक चल रहा है जब मैं टैब्कंट्री में डेटा सम्मिलित करता हूं, मुझे इसे सम्मिलित करना पड़ता है, लेकिन जब मैं टैबस्टेट में त्रुटि देने के लिए कोशिश करता हूं select * tblcountry से 5CF96D52-994B-45E3- 9CF9-1BC948280E57 भारत 0 AC2AB153-7FBA -48BC-91

How to hide/change asp.net page extension from the viewer? -

How to hide / change asp.net page extensions from the client-side? That means when reaching a page www.xyz.com/Dir/MyPage.aspx , the viewer should only select www.xyz.com/Dir/MyPage.html < / Code> or will see www.xyz.com/Dir/MyPage/code>. You need to use the URL rewrite. If you are using IIS 7 you can use I also use the URL relay software, in fact you will end up creating a rewrite rule to add the .aspx extension to IIS page requests, which have There is no extension. Then all your links created in your code should be created without the .aspx extension. I know that this reaction is a bit short, but I suggest that you start learning about rewriting the URL. EDIT: I'm not sure that you will get it, but I have created a screencast and posted it on my blog which includes the original idea. I hope it helps: -)

asp.net - How to call a webmethod asynchronously and partially render a control? -

I have to call the webservice of the webservice from the code behind the code of a web page in the callback function to bind me the gridview And it needs to be render. I want to present that gridview partially in the callback function in codebind. How can this be implemented? Is it possible to apply all these in CodeBeHD without using JavaBytes? Proxy Use Visual Studio to create a class For the service, use of published WSDL Create an async web page by setting up Unconnected = True in Page Directive Page_load of your code ( ) In the method, register the methods that create the PageAsyncTask object and create asyncTask objects Start and End Async Web Service Call Call the method that was created as part of the proxy class, and the returning caller associated with the IAsyncResult < / Li> When the web service call is complete, the runtime will call your registered end method, to get the results of the call, call the ending method in the proxy. Results To your

python - No output from QProcess -

Why does a blank line print instead of 'Hello Q process'? Import from QQQQQ, QTIC proc proc = qtcore.QProcess () proc.start ("echo" Hello Q Process "") proc.waitForFinished () Results = proc.readAll () Print result proc.close () I am at Windows XP, btw. Because any program "Search" If you wanted to run it through the shell, then you should use "CMD / C Echo Hello Q process". There is no error checking in your program, even if you check for errors correctly, it would be easier to replace the mistake.

php - Creating variables using $GLOBALS -

I am currently working on a php framework, in some cases, such as ZendFramework. I did not find any matching matches with my problem. My "problem" I have a variable number of classes (model, controller), e.g. Http_handler Now I have many such classes, which I can not set all of these manuals in variables. Can I use $ globals for $ variableVar? foreach ($ classes as $ square) {include_once ($ square. '.php'); $ Global [$ square] = new $ square; } Is this a new variable that will be accessible through the entire code? Example: // ... Code $ http_handler-> Send request ($ someArgs); // ... code this will happen, but you have to import the global variable In the field of method: function fu () {global $ http_handler; Although there are better solutions for this. See for example I used a singleton pattern to ask a question about how to organize all these classes recently, maybe some answers give you additional thought:

c++ - Finding the command line options a process was launched with -

How do I want to find this, I am currently using CreateToolHelp32. To get the list of running processes in the snapshot and I have found FilePaths for running executables at the moment, but I should be able to know about using command line options to start the process. I know that this is possible because you can see this process on Explorer, I tried to find the source code of the old process explorer but there was no luck: ( Check and win API calls are what you need. There is no easy example for this, so check the source code here: < / P> Another way to get this data is to select WMI, smth like this: Command Line FROM Win32_Process WHERE ProcessId = ??? More information here:

flex - Converting button Icon back to Image -

I want to remove the button icon image as a flex image component, then change it to filter it Apply to / white and then apply the image to another button as an icon. Any ideas how can I do this? So far, I can get this as an object in the form of an object: var iconImg: Object = myBtn.getStyle ("icon"); It is not certain how to convert that object into an image. IconImage object type is DisplayObject so you can draw in a bitmap data object, then apply the transformation You can do this and set the 'icon' style of the second button in this new transfiled object.

php - netbeans: the replace button is unclickable? -

I want to find and replace a string in netbeans. But the Edit -> Change Button is Unclickable Why is this and how do I solve it? The Change menu item is only enabled when the input focus area is in the field. When an open files or input focus is not on the side tab (project, files, etc.), the menu item is not available.

datetime - How to get delay of 30 sec in current time in php? -

The date ("FDYH: I: S") currently returns to php. Not sure how to get a delay of 30 seconds and 1 minute using PHP, but the date ("FD YH: I: S-30") or date ("FD YH: I-1: s" )? date ("FD YH: I: S", time () + 90) There is a second, optional parameter in date : Timestamp time returns the current timestamp to convert to string, which is just a Integer, so you can add 90 to get 90 seconds time from the present time.

php - Problem with login button value -

Hello, I have just started a codeigniter a few days ago, I have the following problem. When I define the value of the login button (no value) to styling with CSS, the login form will not work, the value must be logged, this is a way, I'm sure there is a way to get it From there .. Here are some code .. Controller: & lt ;? Php class extends the login controller {// var $ success = ''; Function Login () {Origin: Controller (); } Function index () {$ success_tmp = '0'; $ This- & gt; Load-> Model ('member'); $ This- & gt; Load-> Assistant (array ('form', 'url')); $ This- & gt; Load-> Library (array ('encrypt', 'form_validation', 'session')); $ This- & gt; Form_validation- & gt; Set_rules ('member_username', 'user', 'required'); $ This- & gt; Form_validation- & gt; Set_rules ('member_pass', 'password', 'required'); $ This- &

Complete online reference for the C standard library? -

Did any of you get a link to an online reference that completely refutes the C (99) standard library is? When I say that describes, I mean that I can open anything and when I refer to IM coding. I am looking for something for the C standard library. 352 You are searching the standards available from the ISO for low low prices of Swiss francs. I have to standardize around, it pays the official version, especially when cross-compiler works, do whatever you do, do not do Google for C99.pdf as this can get you fewer copies. For reference, I should say that you have Posix extensions and ISO 99

jquery - anchor linking to a certain position of the page -

I have an anchor link that is linked to another page when it is clicked, by default it Goes to the top of the next page I want this page to be in a certain position. How can I do this (either with jQuery slide effects or normal HTML)? For example, when the sample is clicked one, I want to bring it to a certain position on the linking page. OK, so this answer is very specific for your problem. The other solution that works is that your div element, which matches the anchor, are hidden when pages are loaded. To prove it, click on your links on the home page, and see it not work again the hash from #whatever to #bgaboutbody and you will see it will work properly. So, by doing something like this, it will work for you. Actually, if there is a hash, then it will be cheated at the right place, place it in the script block at the bottom of your page (above the & lt; / body & gt; tag) window.setTimeout (function () {if ($ .location.hash) {var $ target = $

user interface - BlackBerry:Built-in Date Picker API? -

In my application screen, I am an area where the user can choose his DateOfBirth. I want to popup any underlying "date" calendar or some underlying date picker to the user so that it looks professional. As I am new to this development, I wanted to know that any code sample is available to pop the underlying date picker? Note: After selecting this in my current constant storage I want to store the user's selectable date. Thank you for your suggestions.

Is there an Open Source Python library for sanitizing HTML and removing all Javascript? -

I want to write a web application that allows users to enter any HTML that is Lt; Div & gt; Element then this HTML is being displayed to other users, so I want to make sure the site does not open up to XSS attacks. Is there a good library in Python that will clean all the events controller from HTML or DOM tree, & lt; Script & gt; Elements and other Javascript Crraft? I intend to use the beautiful soup to regularize the HTML to ensure this does not have an attached tag and in such a way but, as far as I can tell, all javascript There is no pre-packed approach to touch. If there is a good library in any other language, then she can do the work, but I will really like Python. I have searched a bunch of Google and have hunted on PP, but nothing has been clarified. Related Whitelist's approach to approved tags, attributes and their values ​​is the only reliable way. What is wrong with existing markup languages ​​used on this site?

.htaccess - mod_rewite advice -

I was wondering if you can advise whether I have a more efficient way of writing down? Can it be achieved in 1 rule? rewrite rule / search ((car | boats | plant) / ([- a-zA-Z0- 9] +) / type - ([0 -9] +) / price - ([0- 9] +) - ([0-9] +) /? $ Search.php? Category = $ 1 and location = $ 2 & Type = $ 3 and amp; minprice = $ 4 & Amp; Maxprice = $ 5 [L] Rematerialized Rules ^ Search / (Car | Boats | Plant) / ([- AZA-Z0- 9] +) / Type - ([0-9] +) /? $ Search.php Category = $ 1 & amp; Location = $ 2 & Type = $ 3 [L] Remitament Rule ^ Search / (Car | Boats | Plant) / ([- a-zA-Z0-9] +) $? Search.php? Category = $ 1 and location = $ 2 [L] rewrite rule / search / (car | boats | plant) /? $ Search.php? = $ 1 [L] Also, I have difficulty finding a friendly URL after the form. How to do any idea? Thanks ! Perhaps you redirect from search / search to search.php and then parse the remaining URIs Is it better to write a rule? (Ie redirect to search.php? Q = REST_OF_URI_GOE

c# - Getting the time of compilation -

Is there any one that takes time to compile in pure environments? I am looking for something for C ++ in __ Date __ , I have to keep the window about myself in the time of compiling the code. Thanks Despite the answers to others, the short answer is yes. You will add compilation date / time at the end of your assembly and "compiler version number string - which can easily be read from the executing accord. See for details. / P>

java - Value checking logic inside or outside of a class? -

Take this skeleton class that any web site wants to fill the RSS stream on a series of sites: Now, we think that the fresh time is more than zero and that the RSSURL is a valid http address Should be. The obvious reflex has to put some value test logic inside the constructor, however, the constructor gives the caller a call to an object immediately, whatever happens. This means that if the objects do not allow it to work, the object becomes useless. It also means that the object must be drum or reused. So, here are some questions on the subject: Some classes are a getInstance () probably a private producer? If I remember well, then an example would be the Gregorian calendar. In what case would you use such an approach? In most cases do you have logic in your constructor? If so, do you apply to the unit-style classes used in the context of the persistence of the domain model or not? All your answers are welcome, it would be interesting to get a clear view of the m

sql server - Is there a UNION equivalent to FULL OUTER JOIN in T-SQL that will union dissimilar column sets? -

I am trying to complete the following: select col1, col2 Select table1 union with Col2, col3, col3, col3, col2, col3, col3, col3 1, 1, 1, 1 with result: Columns of columns and are returned to the lines. You can think about it that there is a complete external unions consonant. The simple answer to this question is: select col1, col2, null as col3 to select table1 unions, tap ac col1, col2, col3 to table 2 This, however, is difficult to do with dynamic T-SQL and dbo.sp_executesql, and the resulting query can be very long, comprising a large number of units. I could come up with the best solution to create a temporary table with all possible columns and put each selection in the temporary table, such as: create table Insert in #temp (col1 int, col2 int, col3 int) #temp (col1, col2), select col1, from col2 to # 1, select (col2, col3), select col2, col3 to table 2 But for this it is necessary to know ahead of time what the names of the columns are. My specia

Updating Logon Hours on a user using C# System.DirectoryServices (windows 2008 Active Directory library) -

This week has hours of access tables ... how can I do this? Directory Programming. See this thread on the net - this is the best information so far (and I have one while!). There is also an article on CodeProject - which shows a certain degree of how logon hours work from a DirectoryEntry object. Here's how to set logon hours in Java - this can also be useful, to see how they do it.

Setting application hooks - C#/ASP.NET -

Many popular applications such as WordPress, WHMCS, and most PHP Forum plugins to core application events (such as registration, logging in, posting) Etc.). I understand that these applications have not been compiled before, but what is it possible to do with C #? I have seen in the event handler, but it seems that you can only accomplish this if the plugin has the ability to institute the class that we want (or at least it is what I have believed by searching ) Ideally, these hooks will be done in the event / methods of the category of business level and can be applied to by many objects , so it's WinForms or ASP. NET will work in MVC. System.AddIn Tools and Samples

protection - Protecting a high value C# application with only one user -

I have the same application - written in C # - which is used by only one user. Provide for a very high monthly fee (> $ 10,000). I want to protect this application against any other user's use and I want to be able to stop a user from using the application if he stops paying the license fee. I know that there is no right security plan, and I have reviewed many such questions on SO, but my question is a bit different because I have only one customer, I have their hardware There is complete access to, and I do not have to take anything for an increase in security, installation per hour. You can spend it for 10K / month instead of your hardware, which you You can manage your hardware in a datacenter, which does not have physical access to it. The hardware must be run on the client's site on the customer's site. Therefore, I think they are sensitive about their data. There are several third-party licensing solutions (for example, Inflation, Net Reactor, O

ruby on rails - jQuery UI Dialog Buttons Not Responding to click_button or selenium.click in Selenium/Webrat -

Is anyone able to get the jQuery UI dialog button to respond to click_button or selenium.click? I do not seem to be able to do this work. Actually, I am trying to test a form in the jQuery UI dialog in a Rail app using Cucumber / WebRat / Selenium. I have a page with several table rows, and one row closes a dialog box with each form on the click. Each form element has a unique ID, so markup is valid. Because the button can be dynamically created by the dialog plugin, I initialize the dialog to add the 'Save' and 'Cancel' button. Interestingly, the plugin includes a button tag, not an input tag. I also add open eds as shown below so that the button can be targeted by the test framework. $ ('.inventory_dialog'). Dialog ({autoOpen: false, modal: true, button: {'save': function () {// submit AJAX}, cancel: Add an ID to the button for the function () {// Cancel}}, Open: Function () {// Selenium var inventory_id = $ ('' '' '

how to use push notification in iphone SDK3.0? -

I'm new to iPhone application development. First tell me what is push notification? Why do we use push notifications? And last how can we use push notifications? Push notification where a remote server can send messages and sound to iPhone and iPod touch messages But do not run your application. That is, this is a way of getting around this fact that the iPhone does not allow the third part behind the background Apple has documented it very well, see for more details.

vb.net - How to reference on cobol projects without compiler? -

Is it possible to separate a project with another without the one installed COBOL compiler? I have a big project in VBNET with some undo projects written in Kobol. Is it possible to make different configurations like "debug vb" for seabol cracks and "debugcob" for cobol cracks? I think of a project reference for Cobol solution. And just one reference to coboll.dlls for vob one. The goal is to eliminate the need for a cob compiler for VB-coder. In this solution, is this possible? OK ... manage something like this When you make conditional creation If you use is used, and by using different configurations, you can eliminate the requirement for each task of the COBOL compiler. Muskin. Saved some bucks! Yes!

XSLT: what is the difference between <copy-of> and <apply-templates>? -

मुझे & lt; apply- के बजाय & lt; copy-of & gt; का उपयोग करना चाहिए I टेम्पलेट्स & gt; ? उनकी अनूठी भूमिका क्या है? & lt; लागू- टेम्पलेट्स & gt; के साथ & lt; copy-of & gt; की जगह अधिक अजीब आउटपुट देता है ऐसा क्यों है? एक्सएसएल: कॉपी-ऑफ मिलान किए गए इनपुट xml तत्व की सटीक प्रति है कोई एक्सएसएलटी प्रसंस्करण नहीं होता है और उस तत्व से आउटपुट इनपुट के समान ही होगा। xsl: लागू-टेम्पलेट < / Strong> चयनित तत्वों से मेल खाने वाले टेम्पलेट्स को प्रोसेस करने के लिए एक्सएसएलटी इंजन को बताता है। xsl: apply-templates है, जो एक्सएसएलटी को अपनी ओवरराइड करने की क्षमता देता है, चूंकि आप तत्वों पर मिलान के साथ बनाए गए टेम्प्लेट को विभिन्न प्राथमिकताओं के साथ बना सकते हैं, और सर्वोच्च प्राथमिकता वाले टेम्पलेट को निष्पादित किया जाएगा। < / Li> इनपुट: & lt; a & gt; & Lt; p & gt; asdf & lt; / p & gt; & Lt; b title = "asdf" & gt; asdf & lt; / b & gt; & Lt; / a & gt; एक्स

delphi - Querying a TClientDataSet using a TADOQuery -

My question is very simple I have TClientDataSet which is connected to a TADOQuery via a TDataSetProvider. I can add data from TLDOQuery to TClientDataSet, but how do I get data from TClientDataSet in TADOQuery? When I run the query and set it, the data is automatically transferred from TLDOQuery to TClientDataSet to correct the active property of TClientDataSet, but if I deactivate TADOQuery and then How can I retrieve data from TClientDataSet if I can activate it again? I add multiple databases and TClientDataSet results to the same query. It is working fine. Now my problem is that I need to get the inserted result back from TClientDataSet in TADOQuery so that I can save TADOQuery's SaveToFile process ( For compatibility reasons). how can I do this? I do not do TDoAquisition because I use dbExpress, but I think the same technique Need to use After posting your changes on TClientDataSet, call 'apply data (0)', which transfers the data from the customer's

c# - Get domain groups for a specified user and permissions for a specified file using .Net -

I want to return a list of group membership for a specific domain user. In some way ... string [] user group (string domain, string domain username) {// query domain information // a list of accounts is a member of the user back} In addition, I want to be able to see which domain accounts / groups have access to a specific file / folder. string [] Allowed Subscribers (string domain, string filePath) {// query file / folder permission} Returns a list of accounts with logging in to the file / folder} What is the best way to do these two tasks using C #? Here's an example. You do not need a domain for file access function, unless you want to filter. string [] user group (string domain, string domain username) {WindowsIdentity ident = new WindowsIdentity (domainUserName + "@" + domain); & Lt; String & gt; Group = new list & lt; String & gt; (); Leading (ident.reference in the identity group) {groups.Add (g.Value); } Return group. Tore (

delphi - "either bof or eof is true or the current record has been deleted.." error on applyupdates that contains a delete operation -

I get this error when solving the removal process from ClientDatset to TAdoDataset (which is bound to access the table) I am here. I am using the Delphi 2010. My Dataset Provider between TClientDataset and TAdoDataset: Item DSPT referer: TDThatChat Provider Dataset = DM.qryTarifeler ResolveToDataSet = True Options = [poPropogateChanges, poUseQuoteChar] end < / Pre> An error occurs in this function that is TDataSetResolver.EndUpdate (); The process is called by the TCustomADodataSet.InternalGotoBookmark (bookmark: pointer); Start Recorset Set. Bookmark: = Palavierian (bookmark) ^; End; I have the same problem with the TAODataset, what's wrong with it, why not I left the block and override the method in an attempt. Try it: TADODataset = class (ADODB.TADODataSet) Public processing internalGot bookmark (bookmark: pointer); Override; End; {TADODataset} Process TADODataset.InternalGotoBookmark (Bookmark: Pointer); Try the internal goto bookmarks (bookmark)

asp.net - How to refresh iframe parent page after a submit in the iframe? -

I have an iframe inside the page, and iframe has a submit button that will do some functions. What do I want to do: After submitting the iframe, please call the parent page to refresh. I know how to refresh it: parent.location.reload (); But I do not know how to do this after finishing. ScriptManager.RegisterStartupScript (this, typef (string), "script", "I" & lt; script type = text / javascript & gt; parent.li cation.hr = parent.location.href; ", incorrect); And the reason I did not write parent.location.reload () and do not send the data to server parent.location.href = parent.location.href I have to load a new page fresh.

xcode - iPhone app was working, suddenly starts crashing on startup, reinstall fixes, but why? -

Here's the situation: - You build your development, we submitted it on our phone, working fine for the day (and Previous - Tomorrow, I touched the app icon, then the app launches, then crashes (I was not connected to my computer at the time, but if I guess, then around Or before when the app runs the define). Actually, I see my default page, then the app stops. The bar is when I try to run it. - I am restarting my phone. It does not matter, the app has still failed to launch. I think all the other IPhone apps are working fine. - Let me re-install the app from my development computer this morning and it's okay, it's working fine, no problem, it's the same build parameter With same exact code . There is any information about what might have happened to anyone, it seems that the app has broken itself permanently, before it does not reduce any of my code before: (. I had a theory that could have been with an expired provision profile, but I did not get any mess

asp.net - How to use Microsoft.Web.Administration without IIS7 -

My site develops on Windows 2003 using IIS6 and Development Server which runs with Visual Studio 2008. My production site is on IIS7. How can I use Microsoft Reference / Microsoft.Web.Administration without visiting an IIS7-enabled machine during my development? No short answer, you can not do this. IIS6 and IIS7 are completely separate products and there are major differences in how to store configuration data. You can duplicate / stub at Microsoft.Web.Administration namespace but I think your time is running for OS running IIS7 (Vista, Windows 7, Windows 2008) Spend better time.

wpf - Sortable combo box with columns -

I have a combo with more than one value (different bindings from the same source) I would like to create a combo box where Users can be sorted according to those columns and include a header to clarify the information. Example: Item no. Name | Rank 00 | Foo | 0 01 | Bar 2 02 | Too. 1 We may be ordered by item number, name or rank. Is this possible? Thank you! It is definitely possible to do this with ComboBox Contains the combo box that hosts popups a ListView . As a simple option, you should consider only the toggle button and popup inside popup with ListView can do.

blogs - Style a code snippet with css -

Do I have to add a link to my blogs to a feature, a tutorial or a previously created CSS template I saw an example in many blogs, but, now I am searching for one, I can not put it on hand! I want to be able to post a code EDIT: I know there are some solutions like developer art, but I am on a platform and I use Javascript An online copy / paste Syntax Highlighter provides: This tool allows you to publish on your web site or blog with your C #, VB, HTML, XML, T-SQL Or MSH (Code Name MonD) allows formatting of the code. The output is consistent with the HTML 4.01 specification and is color-coded to make it easy to read. Modifying the CSS style sheet can change the color. See a sample. And you want to see the project on Codepax (Not sure how much activity it is still): Syntax Highlighter code to convert text to HTML Where ordinary language elements are formatted using a style sheet class, such that the color scheme can be simplified or replaced as a CSS file. Pri

java - Adding a clickable, action-firing JMenuItem directly to a JMenuBar? -

क्या एक जेएममेनूइटम (या समान बटन प्रकार ऑब्जेक्ट) को जेएमयूयूआरएआर में जोड़ने का एक तरीका है? एक जेएमएनयूटीएम जोड़ना जेएमयूएनबार के लेआउट के साथ अच्छी तरह से नहीं खेलता है, और बटन बटन की तरह दिखते हैं। क्या हम जेएममेनू इटैम की तरह दिखने के लिए या जेएमयूयूआईटीम को प्रदर्शित करने के लिए जेएमएनयूआरआर को छूने के लिए बटन दबाएं सही ढंग से? या कुछ और पूरी तरह से? निम्नलिखित कोड को कैमिक्र का समाधान लागू करता है, हालांकि मैं उसी के साथ आया होता डिफ़ॉल्ट तरीका JMenuItem s को देखने के बाद एक जेमेनूबार में प्रदान किया जाता है। यह काफी हद तक प्रामाणिक दिखता है और क्लिकों का जवाब देता है, लेकिन स्मरक को नहीं मैंने जेमेनू त्वरण त्वरक (कोड देखें) देने की कोशिश की और यह काम करता है, लेकिन यह वास्तव में अजीब लग रहा है। सार्वजनिक श्रेणी थियोड 1 जेफ्राम {विस्तारित किया जाता है {निजी वर्ग Action1 AbstractAction {Private Action1 () {सुपर ("एक्शन 1"); PutValue (MNEMONIC_KEY, (int) '1'); // सेट वैल्यू (ACCELERATOR_KEY, कीस्ट्रोक.गेटके-स्टेक (केएवेंट। वीके_ए, कीइवेंट। स

php - SMTP protocol issue with Zend_Mail -

I am trying to send some emails through Gmail SMTP and CC and BCC are not able to email the email. I have tested Gmail SMTP with Evolution (Linux Email Client), which works fine, although I could not find a raw dump of communication because it is via SSL. There is a communication log from Zend_Mail: 220 mx.google.com ESMTP 22sm2669783yxe.39 EHLO localhost 250-mx.google.com at your service, [67.152] 160.2] 250-size 35651584 250-8 bitmate 250-at-log plane 250- ENHANCEDSTATUSCODES 250 piping at login 334 VXNlcm5hbWU6 [deleted] 334 UGFXC3 DVCMU 6 [deleted] 235 2.7.0 with approved mail: [deleted] 250 2.1.0 OK 22sm2669783yxe.39 RCPT TO: & lt; Zf-mail-test-1@mailinator.com> 250 2.1.5 OK 22sm2669783yxe.39 RCPT TO: & lt; Zf -mail-test-2@mailinator.com> 250 2.1.5 OK 22sm2669783yxe.39 RCPT TO: & lt; Zf-mail-test-3@mailinator.com> 250 2.1.5 OK 22sm2669783yxe.39 Data 354 Proceed 22sm2669783yxe.39 From: [Removed] From: zf -mail-test-1@mailinator.com CC: zf -mail-test-2@

Rails will_paginate routing caching duplicate pages -

I use the will_paginate plug-in To generate routes I I can cache ( / posts / index / 2 instead of / posts? Page = 2 ) I added the following to my routes. RB: map.connect '/ posts / index / 1' ,: controller = & gt; 'Redirect' ,: url = & gt; '/ Post /' map.connect 'post / index / page:' ,: admin = & gt; 'Post',: Action => 'Index',: requirements => {: Pg = & gt; / \ D + /} ,: Page = & gt; Zero To avoid a duplicate of the first line, use a redirect controller to / posts / index / 1 to / posts / Redirects page Do I set up the 'Post / Index / Page Page' rule? I thought : needs = & gt; {: Pg = & gt; / \ D + /} will ensure that / post / index / without : page parameter can not work, but / posts / index To avoid having both html caching and / posts.html , I can convert / posts / index / to < How can I redirect code> / posts / and /posts/index.html ? thanks U

c++ - What is the best single-source shortest path algorithm for programming contests? -

I was working with the UVA problem set This is a single-source-lowest-path problem, which has no negative edge. The best big-o-running algorithm for such problems, which I've gathered, is a biostat in the form of a priority queue with a physonic stack, although practically a binary pile is easy to speak and works very well is. However, it appears that a binary pile also takes some time to roll, and is limited in the time of a competition. I know that STL provides some heap algorithms and priority queues but they do not provide low-key functions, which Dijkstra needs or am I wrong here? It seems that there is another possibility that not only use bicuscamps. People have claimed that they have solved the above problem with the first discovery / Belman-Ford, which are very easy to code up (edit: Otoh, without the time of the dzkastra for the queue time Of any sort array). BFS / Belman-Ford surprised me a bit because I thought the size of the input was huge. I think different p

wxwidgets - wxExecute without a terminal window pop up -

I'm trying to use wxExecute like this: wxExecute ("taskkill / f / im aSServer.exe") ; And I do not intend to see the terminal window that pops up (window). Is there a way to do that? The way you did the link on the wiki page is the standard way of doing this, but if you actually If you can not stand it in, then you should do the following: wxProcess process; WxExecute ("Taskscill / F / IMServer.exe", wxEXEC_ASYNC, and process);

CSS: background-images base -

Is it possible to enter the original tag / annotation in CSS, something that is in HTML? I need one because I use mod_rewrite and the URL looks like this: domain.com/path/to/something/ So my background images are not correct (just index / home page) ). I can think of adding the whole domain (which I have to change every time I update CSS on my webspace), but I do not like to do this. Make a structure something similar: /index.html / Img /image1.png /image2.png / css / styles CSS Move all your CSS rules to the external styles.css stylesheet. Now, within the CSS, your image is relative to the reference space the stylesheet - so that you have a related code like background-image: url (../ img / image1 .png); Finally, make sure that in your HTML code, you use a full URL to link your stylesheet - like: & Lt; Link type = "text / css" rel = "stylesheet" href = "/ css / styles css" /> Using Relative URL within your CSS means that

python - Problem with import curses.ascii -

I'm trying to from curses.ascii import * on the project Diegogo, but I get : A module named _curses , I'm using Python 2.5, any suggestions? Anyway, I only need to use the isalpha () function .... You did not say which platforms you are on, but there is probably a package that will install a curved binding for you. For example in Debian / Ubuntu, this is part of the default python install If you have created Python on your own, then you are probably disappearing in libraries - dev If you are on windows then you can check - curses are on windows, but there is a module Edit: Since OP is just isalpha Using strings of its own iLFA () method & gt; & Gt; & Gt; "Hello" .isalpha () true & gt; & Gt; & Gt; "world!". Alpha (false) works only on one letter with a curse gt; & Gt; Import from Curses.ascii isalpha & gt; & Gt; & Gt; All ("hello" is the iSlafa (x)) for X in true & gt; &a

wpf - Is it possible to capture any unspecific input event in C#? -

I want my application to be able to display some information when there is no user input for some time (Such as a welcome / instruction layer) Is there no way to apply the user input (keyboard, mussdown / move etc.) without any type of handler for all those events? Is there a normal input window message that is sent before it is interpreted as a mouse or keyboard or other device? I want that behavior is like sleeping wired on screen saver / keyboard or mouse input. I want to avoid something: Zero SomeHandler (Object Sender, EventEurge E) {Wakeup (); } ... this. Coden + = some handler; This.MouseMove + = Some Handlers; This.SomeInputInteraction + = SomeHandler; Maybe what you want. This final input receives the time of the event.

ASP.NET AJAX: How can I send information to the client from server-side -

The page already runs 'initialise / load sequences', but then catches an event. Probably it does not matter much, hopefully it will be clear: I have a grid (Telereak) RadGrid) in a user control (A) and when the user grid Selects a line, then I want to update other user controls (B) with selection. I've wired an event so that user control B is notified about the newly selected value, but the setting says that the user controls a textbox value B server-side rendering (I think because the grid selection is happening on AJX and so does the user control b never re-submit?). So, how can I force User Control B to re-rendered with updated values ​​or how can I call this value to clients like AJAX? Or I'm going completely wrong about this. The basic question really is how can I get data from User Control A to User Control B. When the page is not being posted back. Thanks There are ways to push data from the server (which is "Long Polling ") but it do

c# - Get all the values of a dataGridTextboxColumn -

I have a datagrid view that has a date called column, which is a type of system. Datetime I want to put these dates in a month, do I have to iterate through the column? Do I need to put it? To get the date from each column, you have to iterate from all the rows, as in the column If you are displaying dates in the form of text you will need to parse by using the DateTime.Parse or DateTime.TryParse methods. Edit: - It is believed that the applications of forms I have used a DataGridView , a MonthCalendar and a button Added I was able to get the date from Gridview and could make the selected dates bold in the month. Public form 2 () {InitializeComponent (); CreateData (); } Private Zero CreateData () {var dtb = New DataTable (); Dtb.Columns.Add ("column1"); Dtb.Columns.Add ("Column2"); Dtb.Columns.Add ("Column 3"); Var dt = DateTime.Now; Var rand = new random (); (Var i = 0; i & lt; 10; i ++) for {var r = dtb.NewRow (); R.ItemArray

coldfusion - How to Format Text in Eclipse with cfeclipse plug-in -

How can I reformat the text (.cfm file)? I work with CTRL + SHIFT + F, which works for Java files, but it does not work with Coldfusion files. ? Can anyone format text anyway? Not applicable in CFLPs or CF Builder (YAT)

mfc - C#: Getting label injected into native app's statusbar pane to show up -

I am writing .Net COM DLL which runs in the original Windows application. I'm trying to inject an extra pane in this app's statusbar, and there is no specific implementation to do this, so I try to sub-class myself to the app's statusbar I am doing I'm using the Win32 API SetParent () one for the Msctls_statusbar32 example. Switch from the net form to the guardian of the label control. I used a label because it is the closest implementation of a native "static" class control that I could get without writing my control. Either way I successfully managed to hook the Nevtevindo into both the status bar and the message of my label (although at the moment it only passes them all to the next WndProc), and I have the window of my label Matching styles and styleExs are assigned, and I can see my labels as a child with msctls_statusbar32 as my parents. Everything looks like as if it should work properly, but it is not. My control does not appear in the paren

get Records from Excel sheet to MySQL database using php codeigniter -

How to obtain records from Excel Sheet using the MySQL database using the colinator php? The best place to start is: In config / autoload, or $ with it-> load-> excel) and fire the links that are listed in the CI wiki. It is very straight forward.

if index > 0: loop; else: do only once (JSON & jQuery) -

I am optimizing something on this jQuery paging script I I have found paging well , And it is controlling different Javascript responses correctly. I have a problem though. The response is that JSON is expected to keep an index / arrame. 90% of the time, in my JSON I have several entries, but sometimes I only return one item, this is the result in zero entries. Here I have the code var pagedContent = {data: blank, holder: empty, current index: 0, init: function (data, holder) {jQuery ( "Body") data (holder, data). This. Holder = holder; this. Show (0, holder); // show last}, show: function (index, holder) {this.data = jQuery ("body"). Data (holder); If (! This.data) {return; } Var j = 2; If (this.data.length- index & amp; lt; = j) {j = this.data.length-index-1; } Var jsonObj = this.data [index]; If (JsonObj) {return; } Var holdSubset = ""; For (i = 0; i & amp; lt; = j; i ++) {jsonObj = this.data [index + i]; This.currentIndex = Index

cocoa - Storing AudioBufferLists from the ExtAudioFile API for later use -

After using the Xcode / Cocoa and ExtAudioFile API, I am trying to remove the objectbuffer list * object for later use, but I am having trouble accessing the data again. This object repeated repeats ExtAudioFileRead calls Coming from. I realize that I can not only bring these audiobilist * objects to NSAA, but I had the impression that an NSPointerArray would work for this purpose. However, when audio buffer list-> ambufers [0] .mditta attempts to access audio buffer lists after accumulating in NSPIeter arrays, they only come out of zero. I was recalling the Audiobuffer list to the Audiobuff list because I am reusing the same audio buffer list for each ExtAudioFileRead call. I'm not sure that this is enough, though, and remembering the ZERO * AUDIOBOOFER-LIST-> MBAFFER [0]. The MDAATA object is not helping either. What is the easiest way to store these audio buffer lists * objects? Am I on the right track? Audiobufer lists keep your data in audioBufferList.mBuffers

javascript - call a method with jQuery AJAX -

html> I try this code and call a method from my controller in the codeigniter, Click $ ("# blog") (function () {var url = $ (this) .attr ("href"); $ .XX ({url: "index.php / home / category ", Type:" POST ", success: function (html) {$ (" #cert-content "). Attachment (html);}});}); Ajax could not be removed, something that I'm missing, # blog represents the ID of a link in my navigation menu, whatever link it is Works normally in Any help please: - ( You need to stop it General link behavior from. $ ("# blog"). Click (function (e) {var url = $ (this) .attr ("href"); // block general Click Action e.preventDefault (); // Post $. Post Create ("index.php / home / category", // <- Request URI {url: url}, // & lt; - Any data here Attachments (html);}});}); In addition to this, the function (html) {// ; callback $ ("# right-content" Thank you for See Avejh

mysql - populating different data with select onChange in php -

I need some explanation about how to populate selection (s) with data from mysql basically i What I'm trying to do: This will be the first selection box with some data. & lt; Select & gt; & Lt; Options & gt; 1 & lt; / Options & gt; & Lt; Options & gt; 2 & lt; / Options & gt; & Lt; Options & gt; 3 & lt; / Options & gt; & Lt; / Select & gt; When the user first chooses an option in the selection, then there is a second selection below it, which should reflect the value according to the selection made in the first selection. <> pre & lt; Select & gt; & Lt; Options & gt; 1.1 & lt; / Options & gt; & Lt; Options & gt; 1.2 & lt; / Options & gt; & Lt; Options & gt; 1.3 & lt; / Options & gt; & Lt; / Select & gt; The data is common with MySQL. I'm not sure that you need to post on the same page, but if I do, how can the selected values ​​be

javascript - How can I add an onclick to a generic control in asp.net? -

I want the programmer to pass a control to a method, and then I want to add an onclick to it. But there is no property property in control. Is there an interface or something out of control that I can use to add an onclick attribute to it? Note that I want to add a JavaScript onclick (ClientClick?). Check the System.Web.UI.WebControls.WebControl class - It is derived from System.Web.UI.Control and has a property property.

actionscript - convert asc to java -

How can I change the code of my main.asc (the server side of the video conference with Flash Media Server) Application.java (server exists there. Is it relevant to your needs?

PHP file naming conventions (.class, .inc) -

I see .class and .inc file names were included several times in my current understanding that it is clearly The purpose of the file is a best practice for creating content. Is there an example in PHP where one Is there a special purpose of class or .inc file name and really something? In fact you file your .htaccess Based on the set up, you can determine which classes are visible to the world, I believe that the best practice still tells every file to end with .php If you can.

regex - Validate an email address is valid and came from a specific Domain -

एक ईमेल पता को देखते हुए, कहते हैं: bob@google.com कोल्डफ्यूज़न में, मैं कैसे मान्य कर सकता हूं कि ईमेल "google.com" से है और कोई अन्य डोमेन नहीं है? ठीक है, यहाँ जवाब है सीएफएमएल में :) & lt; cfset email = "bob@google.com" / & gt; & Lt; cfif ListLast (ईमेल, "@") ईक्यू "google.com" & gt; Horray! & Lt; / cfif & gt; संपादित करें विशेष रूप से अमरघोश के लिए हम इसे इस तरह से कर सकते हैं, कोई चिंता नहीं: & lt; cfscript & gt; ईमेल = "bob@google.com"; अगर (सूची लिस्ट (ईमेल, "@") == "google.com") {// यहां आप जा रहे हैं} & lt; / cfscript & gt;

linux kernel - Ethernet checksum checking in wireless stack -

When a raw ethernet packet is received on a wireless connection, where the ethernet checksum is calculated, and where the errors are handled goes? Does the wireless stack handle it, or is it handled in the upper layers? checksum can be done to it Recently from the Ethernet card network stack Let's offload the checksum. I had to disable hardware checksum to make Network Foransics easier. It should be clearly understood that without this functionality the hardware will always drop the packets.

asp.net mvc - MVC Ajax.Beginform OnComplete/OnSuccess fired before controller call -

I am trying to clear an AJAX form when an item has been added to the database, but full and Onsewase is called AjaxOptions How can I get it before submitting a form so that the form is submitted first and is included in the reciprocal. Use of & lt;% (Ajax.BeginForm ("AddTable", New AjaxOptions {UpdateTargetId = "Table", InsertionMode = InsertionMode.InsertAfter, OnComplete = "ClearForm ()"})) ) {%> call ClearForm () function {$ ('# DisplayName'). Val (''); } However, the DisplayName text box is cleared before presenting the form to the left to the controller. There is no way around this. hypothesis = "clean ()" should be called without parentheses, That is, OnComplete = "ClearForm" . I can not say for sure that this will fix your problem.

windows 7 - Math on batch (win) -

I am developing a CMD batch, I want to do some math in it. This formula: (x + 1) 100: y in batch, x =% x%, and y =% y% . I know how to define the variable now, how can this calculate the batch? (Windows CMD) Do I need some extra? (I need that for windows XP users are available in 7.) The set command supports a limited number of calculations. In your case, you want: set / a result = (100 * x) / y play set /? to see supported documents. The / a switch also allows automatic variable adoption, so you can use x instead of x x .

jquery - SimpleModal Confirm fails to submit form -

I am trying to confirm jQuery to show yes / no confirmation when I submit a form. I had modified (in the last list) to capture and block form submissions. However, it only works with jQuery 1.2.6, a recent upgrade stops 1.3.2, if yes is clicked, then by submitting the form. But I can not understand what is wrong / inconsistent in my code now. Demo (which works in both versions of a simple window.href implementation). $ (document) .ready (function () {$ ('input.delete'). Click (function (e) {e.preventDefault (); var target = $ (e .target); Confirm ("Really delete this event?", Function () {target.click ()});});}); How about something like this? The idea of ​​catching clicks (and fire!) On the submitted event is not click event. $ (document) .ready (function () {$ ('# myForm'). Submit (function () {var f = this; Confirm (" Remove? ", Function () {$ (f). Submit ();}) Return; Return the initial session;}}}}; Hope That this is som

Adding text to RichTextBox from a module -

In my attempt to clean my code, I have tried to keep all of my functions and subfines in one module. One of these sub-routines introduced a grid of Rich Textbox with data from the MS Access database. It works when sub-routine was in the form it was being used on, but not in my modules. Is there any specific reason for this? I noticed that when I tried to use the Rich Textbox in the code I needed to define it, so I went ahead and added it to the top of my module: dim mon1 As new Rich Textbox Diem Mon 2 New Rich Textbox Diem Mon 3 As New Rich Textbox Diem Mon 4 Like New Rich Textbox Diem Mon 5 As New Rich Textbox There was also does not text and Sbstrainin not thrown back to an error on my form f textbox. I tried to change it from dim to public and it does the same thing. Can anyone put some light on it? Thank you. You need to refer to it in your module, form 1. Reach Textbox 1 (Clearly replace them with placeholder with real name properties of your form and richtext

objective c - Set a custom subclass of UINavigationBar in UINavigationController programmatically -

Do anyone know how I can use my custom sub-class of UINavigationBar Can I update UINavigationController program (without IB)? Drag a UINavigationController in the IB to show me under the navigation bar and I can change the class type using the Identity Inspector and enter my own UINavigationBar but programmatically I can not, Navigation Bar The property of the Navigation Controller is read only ... I have the navigation bar programmatic What to customize Should rana? Is IB more "powerful" than "code"? I believe that IB can be done in whatever programmatic form can be done. You use dirt bus kvc with XIB. [self.navigationController setValue: [[[Custom NavBar alloc] init] capeth for autorelease: @ "Navbar"];

c++ - Header inclusion optimization -

Is there an automatic way to include header files in C ++, so that the compile time improves? With the word "automatic" I mean a tool or program. Is it possible to find out which header files are obsolete (e.g., highlighted functionality is not used)? Edit : Adding a header to each "is only important once, but there is a way to change the contents of the files so that it often uses" functionality " Can be included in the specific and the less frequently used functionality is included in the other? Am I asking too much? Unfortunately, we are talking about thousands of files about an existing code base. Or is this really a refactoring tool that I'm really asking? Thank you. Update I use what you really want "rather than the minimum set of headers." IWYU "means that as much as possible Announce and include the header, which directly announces the symbols you use. You can not fail to clean a file IWYU because it can no longer be c

Objective C - how to resize a window programmatically with given window id? -

How to change the window of any program with objective-c / cocoa? So far I have got the app's name and window number but I do not know how to use the window. I can do it with the Apple script, but I want to learn it with purpose. AppleScript example: Tell the application "System Events" First set the front-end in the name of the application process, whose biggest true end is, tell that the app in front of the application Specify the set window range 1 to {(Screenshoot / 2), 0, screenwidth, screenhit} end Thanks for any advice. In this case, the Apple script is actually the right tool for the job, to change its window size. Speaking to another application is an automation problem. Writing that code in "cocoa" means only sending less work to building / Apple Avent. I will try to load and execute that script from within a coco program. If you learn how to do this, then how will you embed the applet in your purpose-oriented programs, and this Th

java - Idiom for achievieng imperative wiring in a declarative Spring xml config? -

I am a user of class A, which has been given to me as a library. In my spring configuration, I specify a bean, which is instant for me to spring with pleasure, as a side effect, makes an example of A, which it is called as A.T. Displays through B (). B unveils a setC () method which I want to start with C. Which I do in the spring, how can I do this? I have looked at the util: property-path for reference on B, but it will not let me put any material inside it. I was also watching the proxy, but there is no way to catch B and I say something to do something when I get stuck in the declarative world. Repeat, I can not make B. It is made only as a side effect of the formation of A. I have no facility to call A STC (). Help? When you have non-trivial arrangements like you have described, it is usually easy to implement your own, which is your non-ben-friendly object graph. Factory Bean is inclined with all the necessary partners, and then, giving you your desired compulsor

Mimicking typedef in ActionScript? -

I'm working on some action script codes that use the same-on-the-interchangeable types (e.g., position-in- Pixel, internal-state, line-and-column-position) and I'm trying to come up with a naming scheme to reduce the complexity. In addition to this, I still do not know what is the best format for "internal status" - there are all the advantages and disadvantages to using int, uit and numbers. Normally I solve it with Type Type: typing float pixel piece; Typedef int internalPos; Typedef int rowColPos; Is there a way to get the same functionality in the Action Script? If you are using Flex or other command line compiler to build your project, then You can add a pass through an external preprocessor to your creation process. Type protection is not provided, but otherwise appears to do as you wish.

antlr - Take input from function parameters, not a file -

All the examples that I have read in a file, Lex & amp; Pars this. I need a function that takes a string (four *, I am generating the c code) as a parameter, and works on it. How can I do that best? I thought of writing a string in a stream, then fed it to the laser, but it does not look right. Is there a better way? Thank you in advance you antialr3 newsecii string infraxtreme Method If you have not used which version of the entry, then I'll consider entrer v3. This method has the string to parse the input, this is the length and then you can probably use zero for the last input. This creates an input stream similar to antlr3AsciiFileStreamNew , which you will use to parse a file. I see that you mentioned about writing input in any stream. If you can use C ++ then this is the best way you might come. This is the commonly used BornBox code: std :: istringstream issInput (std :: CIN); // If you want to parse a file laser allput (issInput), make it