Posts

Showing posts from March, 2012

Oracle Number Data-Type -

When a column receives data type number (6,3), what would be a little work? 1234 1234.23 12345 123456 Google did not help me by BTW: / No, it will not happen. number (6, 3) 6 accepts digits with 3 Only gives the code 3 before the duration, and therefore, the maximum value is possible 999.9 99

.htaccess - correct format of URL rewrite in php -

I'm asking about the htaccess url rewrite ( mod_rewrite ) Actually I want to change the URL below http: //localhost/project/cms/edit_item.php? Id = MYc = (Actually this base is 64 encoded) to http: //localhost/project/cms/edit_item.php/id I like it on .htaccess file RewriteRule ^ ([\ -_ 0- 9A-Za-z] +) $ edit_item.php? Id = $ 1 [L] Save it to project folder but url is not modified Please tell me how to do this < / Div> rivvyte condom% {QUERY_STRING} id = (. +) Rewrite (edit_item.php) $ 1 / id / % 1?

c# - Checking the parent page address in child page using .NET -

I am using the C # language I am facing a problem, Please see the details below: I have a parent page at whose address () is a button, which is on click, enter some value in the session and insert some values ​​in the session Redirect the page to this page (), now I want to check in this page == "findaprice.aspx" if the parent page is requested. Some r {! } Please suggest! How to get the code above the code using the C # language. Thank you! View property.

mysql - How to accumulate results using mysqlimport -

I love mysqlimport, it's fast and easy to use (say faster, PHP to import Or Python front-end> 20 GB data files) However, I want to do the following: I have a data file that looks like: cat dog 7 cat dog cat 3 cat dog 1 varchar, varchar, int with the field and end result ['cat', 'dog', 11] code I would like to get the result, that is, I would prefer the result first, ignoring the case of the two areas, if this happens, then it is included in the database, if it does not exist and the existing (as a mathematical mean) has been added . I have a work solution in Python, but I'm looking for a native in mysql (import). For the sensitivity of the case, you can probably downgrade everything to lowercase (this is a function for ). If you want to add it to the previous entry, check it. If you want to add a record only, check if it does not exist or check it out.

PHP "require_once" says it can't find a file in the directory -

I'm debugging some PHP code written by the outsourcing company (I'm not a PHP guy, but I know the basics ; We have an offshore team of PHP developers working on this project for us) which is not working; The code should be called by a cron job every 30 minutes, but there is no firing on it. I have tried that if it is working, then I tried to run this PHP script through the command line to give this instruction, but it is giving me the following (anonymous) mistake: serious error: require_once (): required to open the required '/myapp/_lib/_classes/MySql.php' (include_path = '.: / Usr / share / pear: / usr / share / php') /var/www/html/myapp/_lib/_base/common.inc. On the PHP 6 line, However, the file exists under the /var/www/html/myapp/_lib/_classes/MySql.php correct directory. I'm missing something simple, I'm sure, but as I said I actually do not know anything beyond the basic knowledge of the PHP fleet and I really need to run this service

Cakephp paginator sort method with a habtm relation question -

Here's an example ... I use the table to manage all my situations I am doing the tree's behavior. I have a book model in which there is a situation for its condition and one for its availability, so the book model was also thought about HABT status that there may be only one condition and one availability in it. Is there a way to use $ paginator-> sort ('condition', '?') With HABTM? I would like to sort the title from the array below. It is that this $ -> data is giving me: [status] = & gt; Array ([0] = & gt; Array ([ID] => 2 [parent_id] => [[LFT] => 2 [rght] => 3 [Title] = & gt; Mint [built] => 2010-01-18 16:20:54 [modified] => 2010-01-18 16:20:54 [active] => 1 [boxstats] => Array ([id] = & gt; 7 [Book_id] => 3 [status_id] => 2))) i will use 2x with different names. $ correlate = array ('BookStatus' =>; array (' className '= & gt;' position ',' foreign ke

tfs - Domain model of Team Foundation Server -

Does anyone see the Domain Model (Information Model) of Microsoft TFS (Team Foundation Server)? Where can this be found? I need to understand the ability to integrate it with other products. This is not exactly the domain model (which is definitely not public), but TFS integration platform assistant Maybe:

c# - WinForms - MaskedTextBox - "variable-width" masking possible? -

I need to create a WinForms text box that allows the decimal text to be unique or integer text. Also, I do not want to specify the length of text in the mask; The user should be able to enter as many characters as you want, as long as the text fits the decimal or integer frame. However, masked textbox does not allow variables-length masking, as far as I know; I can not get any pre-existing control that does this, either. Advice? I think I could exchange text boxes, override onk and work there, but I do not know whether pre-existing controls make things look more beautiful. There are some decimal / integer parsing behaviors in the enumericupdood control - it seems that it can happen What do you want Of course, you also end up with the update control on the text box.

php - How to, Take a text file and wrap every word with a tag <v> </v> -

I want to take plain text and wrap each word with one element do this < / P> & lt; V & gt; Archer & lt; / V & gt; & Lt; V & gt; Aŭtomobilis & lt; / V & gt; & Lt; V & gt; Front & lt; / V & gt; & Lt; V & gt; D & lt; / V & gt; & Lt; V & gt; Antaŭkristnaska & lt; / V & gt; & Lt; V & gt; Festo & lt; / V & gt; & Lt; V & gt; N & lt; / V & gt; & Lt; V & gt; Suda & lt; / V & gt; & Lt; V & gt; Apudurbo & lt; / V & gt; & Lt; V & gt; Malgraŭ & lt; / V & gt; What is the best way to thank it in php $ tok = strtok ($ string, "\ n \ t"); While ($ tok! == incorrect) {resonant "<"> $ tok "; $ Tok = strtok ("\ n \ t"); }

jquery - $('tr:even').addClass('alt'); -

क्यों करता है $ ('tr: even')। AddClass ('alt'); चुनें 1 पंक्ति और $ ('tr: nth-child (यहां तक ​​कि)' से)। AddClass ('alt'); दूसरी पंक्ति से चयन करता है? ऐसा इसलिए है: यहां तक ​​कि 0-आधारित अनुक्रमण का उपयोग करने वाले तत्व भी हो सकते हैं और: nth-child () 1-आधारित अनुक्रमण का उपयोग करता है।

c++ - How to deploy application that depends on dynamic libraries? -

I am developing an application that uses the Gestemer library to reduce the deployment I used in a local bundle I want to collect all the Girthinder libraries. For this I wrote a small script which does the following: Recurring dependencies (using otool -L ) All dependencies (If you are interested, However, I am now seeing runtime errors on gst_init call: (process: 22843): GLib -Gobays -critic **: gtype.c: 245 8: Initial claim failure, use g_type_init () before this function (process: 22843): GLib-CRITICAL **: g_once_init_leave: Claim `initialization_value! = 0 'Failed These errors occur only when I use local libraries. Is this something 'normal loss', when it comes to using install_name_tool? Does anyone have an idea what I am doing wrong? If you need to know some details, feel free to ask. Update I have changed some things: Now for the dependent libraries I will only replace the DLB path and not the ID Use only install_name_tool

animation - Why does this ActionScript Flip cause a blur on my website? -

I am using the flip mechanism to navigate through my site (& amp;) the problem is that Once this material touches, as if I want it, the content is displayed well, but the solid left part (when you look closely) with some offset from fliped (right) parts . Apart from this, the right part is now slightly blurred (which is the troubled part of my problem). This is all due to the flip (I think rotation is causing the problem). When I click on a button, I do the following: flip = new flip (current page, NextPage, richting); Content.addChild (flip); CurrentPage = NextPage; NextPage = new movie clip (); There is a fix for this, consider the following: // Store Original Matrix var origMatrix: matrix = box.transform.matrix; // Set the initial status box. Roshan Y = -180; // Start Animation TwinLight (Box, 1, {Rotation Y: 0, On Complex: CleanBlur}) / / Animation Complete Function CleanBlur () Execute: void {box.transform.matrix = origMatrix; } You may find better results

coding style - What is best practice as far as using perl-isms (idiomatic expressions) in Perl? -

Some years ago I participated in writing the best practice / coding style for our large (and often the use of Pearl) As anything done unanimously, there were parts that disagreed with everyone. Duh The section that has caused the most disturbance was a strong recommendation for using many parliaments (loose code idioms are not defined as C ++ or Java) Such as "Avoid experimentation" ... until X; "Constructs". The main argument for such rules was that non-Pearl developers would have a hard time with the Pearl code base, I think the perception here is that the Pearl Code Jockey, rare breed overall - and newer work for the company than non-parallel. I was wondering if the SO had any good reason to support or reject this argument It is ... this time mostly academic That is because the Perl coding standard of the company is ego and I will not be modified again as far as I know. PS just to be clear, the question I did in context - an all The response to Pearl&

c# - Distinct with custom comparer gives vauge error -

मेरे पास निम्न कोड है: IEqualityComparer & lt; WorkItem & gt; तुलनाकर्ता = नया लैम्ब्डा कॉम्पपरर & lt; वर्कइटम & gt; ((मद 1, आइटम 2) = & gt; आइटम 1। प्रकार == आइटम 2। टाइप); Var someVar = Pad.Distinct (तुलनात्मक); (यह विचार प्रत्येक प्रकार का 1 मिलता है) और यह निम्न त्रुटि संदेश दे रहा है: विधि के लिए प्रकार तर्क 'System.Linq .नम्य। डिस्टिंक (सिस्टम। कोलेक्शंस। जेनरिक.आईईएनएमेरेएबल, सिस्टम। कोलेक्शन। जेनरिक। आईईक्वैलिटी कॉम्पॅटरर) 'उपयोग से अनुमानित नहीं किया जा सकता है। स्पष्ट रूप से टाइप तर्क निर्दिष्ट करने का प्रयास करें 490 मैंने कुछ समान किया है और यह सिर्फ ठीक काम करता है: पैड = नया शब्दकोश & lt; वर्कइटम, कैनवास & gt; (नया लैम्ब्डा कॉम्पपरर & lt; वर्कइटम & gt; ((एक्स, वाई) = & Gt; x.Id == y.Id, x = & gt; x.Id)); इसलिए मुझे नहीं लगता कि यह मेरी लैम्डा कॉम्पैयरर वर्ग है। इसे ठीक करने के बारे में कोई भी विचार? (मुझे लगता है कि मैं सिर्फ एक forEach कर सकता है और विशिष्ट मैन्युअल रूप से प्राप्त कर सकता हूं।)

gdb - How to automatically run the executable? -

I want to run gdb immediately executable, as I typed "run" (Motivation: I hate typing "run"). One way to pip gdb like this is: Run $ echo. Gdb myApp But the problem with this approach is that you lose interactivity with gdb , e.g. If a breakpoint triggers or myApp crashes, gdb ends this method has been discussed. - Help By looking at the options, I do not see any way to do this, but I'm probably missing something. gdb-x run ./a.out < P> If you need to give a reason for a.out : gdb -ex runs --args ./a.out arg1 arg2 .... .. Edit: This does not work on Mac OSX. Available after -ex flag GDB-6.4 (released in 2005), but OSX uses GDB's Apple fork , And the latest XCode for Leopard is GDB 6.3.50-20050815 (apple version GDB-967) , so you are out of luck. Building on the current GDB-7.0.1 Release is a possible solution, just be sure to read.

class - Does anyone design api or library code in this way? -

I was reading a few things about designing a library or API, and Joshua Bloch in Google Tech Stumbled into the great speech of Talks. Now though I am not with a professional API developer, I feel that programming is similar to a bunch of classes / functions, although a much smaller version of the same thing - a clear cut, easy and pleasant use of the verb, clean code Encourage, etc. I was going through some widely used open source Java code and got this idea (nothing is new, but just putting it clearly ...) Let us have an example pseudo-code (or maybe a few bids of the default bid): 1 new Label 2. Set name 'Hello World' 3. Set color 'blue' 4. Show 'topmost' 5. Click on hide Now get inspired by Java code I want to some : 1 label l = new label () 2. .SetName ('Hello World') 3.SetColor ('blue') 4. .show (zindex.top); 5. l.onClick = l.hide (); My question is: does someone design an API that starts with another pseudo code?

ajax - Create user folders like userfolder/ticket and manage on a server in c# -

I have a problem in the web server about creating user folders and management. I have a page that allows users to add content During this time, select the user a button and add the user folder / content to it such as content. I need to use personalized folders by user using some items added by user in the page and create personalized user folders like Userfolder / uservalue_item / thecontent. My problem is that I need some Ajax feature to pass the page uservalue_item to add to the folder's convenience. Regarding the security and management of all samples, it is well-known that what the user omits without user addition and folders or adding value to user folders. Env: Windows based server, asp.net, thanks, Romy Good By imitating the file structure in your database, the problem will be solved more easily in my opinion. I have to look at your code to see how the user is uploading data to a web server. But I will use two different tables in a DB with the following structure:

api - Fogbugz XML_API PHP CURL File upload -

मैंने एक PHP स्क्रिप्ट बनाई है जो $ _POST और $ _FILES में मूल्य प्राप्त करता है मैं पकड़ रहा हूं उन मूल्यों को, और फिर फॉगबगज़ को पोस्ट करने के लिए कर्ल का उपयोग करने का प्रयास कर रहा है। मैं काम करने के लिए टेक्स्ट फ़ील्ड प्राप्त कर सकता हूं, लेकिन फाइल नहीं कर सकता। $ request_url = "http: //fogbugz.icarusstudios.com/fogbugz/api.php "; $ NewTicket = array (); $ NewTicket ['cmd'] = 'नया'; $ NewTicket ['टोकन'] = $ टोकन; $ न्यूटिकेट ['पीसर्सएस्साइंड टू'] = 'ऑटोबुग'; $ टेक्स्ट = "\ n"; विदेशी मुद्रा ($ जोड़े के रूप में $ फ़ॉर्म) {$ text। = $ Pair [2] ":"। $ जोड़ी [0] "\ N"; } $ Text = htmlentities ($ पाठ); $ NewTicket ['sEvent'] = $ पाठ; $ F = 0; विदेशी मुद्रा ($ _FILES $ fk = & gt; $ v) {यदि ($ _FILES [$ fk] ['tmp_name']! = '') {$ Extension = pathinfo ($ _FILES [$ fk] ['नाम'], PATHINFO_EXTENSION); // केवल यदि हम उपरोक्त निर्दिष्ट फाइलों को लेते हैं (इन_अरे (अरै (

php - Is threadcaching faster than memcaching? -

I recently plugged memcaching into my PHP web software. I have a class, cache, which is the thing in my memke pool Stores. In that class, I also maintain a member array - a "threadkatch" - which stores up to more than 100 used objects. My question is, is it happening faster than mesquiking? I would have thought that, arguing that a memmash request potentially goes back through its local network, into any other computer's RAM, through the network, and the RAM of the requested computer. However, with Threading, everything will be running a PHP request on the local server. The local cache class is designed very poorly and does not control concurrency very well, It will be very fast all other things are similar, retrieving data from local memory is always going to be faster than any other system's memory.

JBoss and WMI using Jacob and Java -

Is there any problem with any Java application that JBib uses to call WMI queries, With that app being posted in Jebus? JBs locked around WMI calls with no other information available. Actually, it was discovered that making some JACOB calls with single-threaded apartments and COM objects It is important to first comet.IntsA () and then when it comatad. Releases () and Comrade Quitmansta () It should allow appropriate multi-threading with the COM object.

osx - Why do I have to use the keyword [open] in order launch mysql -

I have mysql installed (running on Mac OSX Snow Leopard) according to everything I have seen, bring the monitor to Instead, I have to type mysql open it opens the monitor However, I can not login as root I tried soda open ISSL He worked, but it still logs me as a localhost. What's happening ??? Thank you, John that / Usr / local / mysql is usually the directory where MySQL is installed on OS X. Try this command: / usr / local / mysql / bin / mysql In addition, I started local MySQL server by using the alias I: surname mysqld = "sudo / usr / local / mysql / bin / mysqld_safe"

REST-style URLS and PHP -

I have a hard time getting my head while using REST-style URLS Can you get a little help? I have a query string right now, like: example.com/calendar_expanded?date=1270094400 I have a modern rewrite that can hide .php Expansion is being done How to do this It should be calendar_ expanded / date / 1270094400 . Receive $ _ from the url after this fact? I like the concept behind this, but working 16 hours a day to complete a deadline for the whole month is taking a toll on my mind. Thanks for the help. If you want to create too many REST URLs, then you have a PHP framework that uses the design pattern. . In this way, each request is processed by the framework and you are flexible enough to design your URL, but they should be visible. The example supports a cheerful design outside the box. BTW Runt URLs are only understood if the parameter is fixed in some way and specify the resource, for example the title of the blog post if you want to pass the paramete

Many-to-many sorting in Entity Framework -

In my application there is a unit framework model that has many relation-to-many relationships, such as the following: Product Group: Scalar: ID, Name Navigation: Product Group Product: Scalar: Id, Sku, Details, etc. Navigation: Product group Product product group: Scaler: Product group IID, Product ID, Position Navigation: Product, Product group Note that the intermediate table has a scalar property called status, In which the product should be displayed within the product group. How would you write a LINQ query, which is a list of products sorted by the position property in a given product group? If I am writing good ol 'sql, then I will write something like this: SELECT p.Id, p.Sku, p.Description from product P INNER JOIN ProductGroupProduct pgp ON p.Id = Pgp.ProductId WHERE pgp.ProductGroupId = @MyProductGroupId by command pgp.Position but I can not understand LINQ. Um, your SQL will not work, because no ProductGroup.Position < / P> but I think

Drupal views: Allowing users to choose sort criteria on node display -

I have some nodes that I'm displaying in a scene. They are displayed as nodes, unchanged. I want to be able to choose the user through some predefined sort criteria (drop down list or similar). That's why they can choose the most active, most commentary, the latest, etc, and re-query for new results. Easy with tables because you can make the label clickable, but I do not know how the same functionality is with the raw node preview display < Div class = "post-text" itemprop = "text"> Just in my thoughts, and for anyone else who is trying to do this An easy, sleeve option is just for each type Will have to add another page view, and in the header of each page these other Will provide a link to the scenes. It can also allow for easy addition (personally), so say that you have a sidebar block while displaying the recently commented nodes, you can see the .tpl of the title. To display the full set of recently commented nodes, you can adjust

javascript - XMPP C# Interaction -

I am trying to connect via c # and javascript through an xmpp server (currently ejabberd) . Im a small problem that is how the connection will exist. Backtrack: I have a game engine that will take input from the user and send them back some kind of feedback. The user can be a windows app, a web app, everything needs to be connected in the same way. Game engine is a C # application which organizes the input accordingly. Is my game engine just like everyone on the XMPP server, just like everyone else? How does he talk to others and how can a detailed tutorial of such a thing by using their work XMPP, if possible, what x + MPP connection is to handle in the way described above Are the C # libraries? Does Javascript also want to kill XMPP server in the same way? Your game server is a XMPP component that your users can communicate directly Like they can do with any other user, server or component in an XMPP system. Users log in to your server (for example example.com) in st

how to deploy the CLR functions in SQL server 2008 -

I created a SQL Server project called 'Regular Express' in VS-2008. In that project I created a 'reggax CCS' class and I wrote a function about regular expression. Then I create a solution. Now my problem is deployed through script in SQL Server 2008. (Do not click on Deploy Only VS 2008). I use the unlimitedity of that project in SQL 2008 by using the CREATE ASSEMBLY & lt; AName & gt; 'DLL & gt;' to FROM '& lt; The path is, but iam is not getting the function that I wrote in 2008 in the SQL 2008 function section in VS2008. create assembly [regular expression] authorization [dbo] FROM & lt; DLL Path & gt; Get secured with PERMISSION_SET / ****** Object: User Defined Function [DBO]. [Reggae] Script Date: 01/23/2010 15:08:01 ****** / Create Function [DBO]. [Reggae] (@Patterns [Navbharqar] (2000), @Input [Navbharak] (2000)) Return [bitt] External name executed as collar [regular expression] [User Defined Functions] [Reg

gwt rpc - GWT - occasional com.google.gwt.user.client.rpc.SerializationException -

We are sometimes nervous about events such as: com.google .gwt .user.client.rpc.SerializationException: type 'xxx' was not assigned to 'com.google.gwt.user.client.rpc.IsSerializable' and it was not Siriyljhr custom fields. For security purposes, it will not be serialized. Example = xxx com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize (ServerSerializationStreamWriter.java:610) com.google.gwt.user.client.rpc on .impl.AbstractSerializationStreamWriter.writeObject (AbstractSerializationStreamWriter.java:129 at least com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ ValueWriter $ 8.write) (ServerSerializationStreamWriter.java:152) com.google.gwt .user.server.rpc.impl.ServerSerializationStreamWriter Com () Sserialaijh value (server Sserialaijheshn stream Wahkkjawa) 34) on com.google.gwt.user.server.rpc.RPC.encodeResponse (RPC.java:60 9) com.google.gwt.user.server.rpc .RPC.encodeResponseForSuccess (RPC.java:467) .google.g

tabs - How to survive the transition from tabbed-based to buffer-based coding (Vim) -

I have recently changed from Notepad ++ to Vime in Notepad ++, seeing me as a tab, I used to know about, so when I wanted to close or change them, I now have to go to Shift - Tab or Ctrl - W . There are also tabs in Vim, but when I use them, I think I'm going back to my Notepad ++ + what is the best way to manage my files, to divide them Manage, switch and delete other buffers list besides? Yes. I recommend using the buffer explorer plugin as well as buffer commands I use this plugin. The buffer pattern is quite elegant, when you use it, less visible clutter, but you are free of VIM to find your own thing

cocoa - NSTableView handling edititng cells correctly -

I have an NSTableView work correctly, when I'm editing a table item. If the user is still in editing mode, and this presses the OK OK button, then the table is not updated. I have the user right button (closed sheet) In addition, how can I control the ESC key to cancel the edit? Sorry if the question looks absurd, but only for a month < P> You should be able to call [sheet makeFirstResponder: sheet] , where sheet is the sheet that you are about to close, remove the respondent status before this text field , Which will motivate it to make progress.

unicode - (grep) Regex to match non-ASCII characters? -

On Linux, I have a lot of files, some of them have non-ASCII characters, but they all are valid. There is a bug in a program that prevents it from working with non-ASCII filenames, and I have to find out how many impressions I was going to do with this search and then the non- ASCII used to print the characters, and then do a wc -l to find the number. It does not have to be grep; I can use any standard UNIX, such as ,,, etc. However, is there a regular expression for 'any letter that is not ASCII character'? This will match a non-ASCII character: [ ^ \ X00- \ x7F] This is a valid ( Perl-compatible regular expression ). You can also use the shorthound: [[ascii:]] - matches a single ASCII character [^ [: ascii:]] - matches a single non-ASCII letter [^ [: Print:]] Maybe it will be enough for you. **

English grammar checker engine for .NET? -

I am looking for an English Grammar Checker Engine (not a spell checker). I got one, but it's more than $ 1000. These resources were found on SO. I like to use ready to use the engine. Feed it sentences, paragraphs, or text documents, and it excludes grammar suggestions as a text. If it's free, then I could have a web service engine software costing $ 200 or less. Any suggestions? found this resource with a search: Abbeyword is open-source so you can probably see how they did it. But as a separate, $ 1,000 does not seem expensive, if you need it?

javascript - Raphael JS and Text positioning? -

मैं x, y निर्देशांक < / P> var t = paper.text (50, 50, "राफेल \ n किकटें \ nबट!"); लेकिन अन्य सभी वस्तुओं की तरह पाठ की स्थिति नहीं है ... ऑब्जेक्ट के एक्स, वाई निर्देशांक निर्दिष्ट करें ! नहीं "बाएं और ऊपर सबसे ऊपर" पिक्सेल! मुझे "बायां संरेखित करें" एक पंक्ति के साथ पाठ, मानक HTML के समान। सहायता बहुत सराहना की जाएगी। पाठ पद्धति के लिए पाठ-एंकर गुण डिफ़ॉल्ट रूप से 'मध्य' पर सेट है यदि आप इसे संरेखित करना चाहते हैं तो ऑब्जेक्ट के लिए एट्रिब्यूट में टेक्स्ट एन्कर बदलें: var t = paper.text (50, 50, "Raphaël \ n kicks \ Nbutt! ")। Attr ({'text-anchor': 'प्रारंभ'});

file upload - hotfile uploader -

I want to write a cli program that uploads files to hotfile.com and gives download link which The best language for this and someone else can give me an indication of how to send the file? Thank you You can write it in any language that will allow HTTP requests to be either C # or Java Could have been in. Like the interaction of most websites, to support any kind of cookiecontainer in that language, to maintain your session cookie after a web login and to duplicate a post with your file content. Will be required. You can get help understanding this information. Because this is not a technical problem, you should first ask if you can do that the site does not have to break any TOS section for personal support.

Implement a method using a function value in Scala -

Is the implementation of the method possible by using the function object / value? I would like to write something in the spirit of this: abstract class A {def f (x: int): int} extension of class B A {f = identity} and supplement and, here's another: abstract class A {def F: (Int) = & gt; Int} class B extends A {val f = identification}} is expanded in class C. {def f = identity}} is expanded in class D {def f = (x: int) => -x} If you are connected to a normal DF, then you can do the best abstract class z {def f (x: Int): int} square y extension z {def f (x: int) = detection (x)}

actionscript 3 - as3, function active after 3 seconds -

मेरे पास 2 फ़ंक्शंस as3 में चल रहा है: फ़ंक्शन blueDownBounce (e: MouseEvent): शून्य {var blueDownY: ट्विल = नया टिविइन (नीला, "वाई", रेगुलर। लोपऑट, -49, -19, 1, सच); } Blue.addEventListener (MouseEvent.MOUSE_OVER, blueDownBounce); फ़ंक्शन blueUpBounce (e: MouseEvent): शून्य {var ब्लू अपवाई: ट्विल = नया टिविइन (नीला, "वाई", बाउंस। लेशऑट, -19, -49, 1, सत्य); } Blue.addEventListener (MouseEvent.MOUSE_OUT, blueUpBounce); मैं इसे बनाने की कोशिश कर रहा हूं ताकि ये कार्य 3 सेकंड के बाद सक्रिय हो सकें और वे उन 3 सेकंड के बाद पूरे फ्रेम के लिए सक्रिय रहें। मुझे पता है कि आपको टाइमर बनाना होगा और इसे उस टाइमर पर निर्भर करेगा, लेकिन यह अच्छी तरह से काम नहीं कर रहा था। धन्यवाद, वेड टाइमर में आने वाले टाइमर और ईवेंट श्रोता के ऊपर परिभाषित होने के लिए फ़ंक्शन आवश्यक है।

readability - Obfuscated C# Code -

Years ago, there was a competition to see who could produce the most vague C code, and some Results are dramatically unreadable. It was the same that you can actually screw things with the preprocessor. However, many new features of C # provide an amazing opportunity to obscure the code. I was thinking that anyone has any opinion on finding the right balance between the code and the compatibility of the code. Let me give an example for discussion, the function of filling the item in a ListView. (Yes, I know that you can do this with data binding, but go with me here.) The control is two columns that the stroke person {the name of the public string; Public string address; }; A clear and straightforward way to do this: Fill private zeros (person [people]) {foreach (people in person) {string [] column = New string [2]; Column [0] = person Name; Column [1] = person.address; ListViewItem Item = New ListViewItem (Column); ListView1.items.Add (item); }} Explicit and simple to

perl - How can I determine PerlLogHandler performance impact? -

I want to create a custom Apache2 log handler, and templates found on the Apache site: #file: MyApache2 / LogPerUser.pm # --------------------------- Package MyApache2 :: LogPerUser; Strict use; Use warnings; Use Apache2 :: RequestRec (); Use Apache 2 :: Connection (); Use Fcntl qw (: bunch); File :: spec :: functions use qw (catfile); Apache 2 :: Conte-compile = & gt; Use cude (fine) sub handler {my $ r = shift; My ($ username) = $ r- & gt; Uri = ~ m | ^ / ~ ([^ /] +) | | $ Apache2 :: Const :: Denied until defined $ user name; My $ entry = sprintf qq (% s [% s] "% s"% d% d \ n), $ r-> Connection- & gt; Remote_ype, scaler (local time), $ r->, uri, $ r - & gt; Position, $ r-> Bytes_sent; My $ log_path = catfile Apache 2: ServerUtil :: Server_Rote, "Log", "$ username.log"; Open your $ FH, "> $ log_path" or "$ log_path: $! Can not open";; Swarm $ FH, LOCK_EX; Print $ fh $ entry; About $ FH; Return Apache2

c++ - static binding of default parameter -

In effective C ++, a sentence in the book mentions why the default parameters are static: If the default parameter values ​​were dynamically binding, computers would have to come up with a way to determine the default values ​​appropriate for the parameters of the virtual function on the runtime, to determine the current mechanism of the compilation Slow and Fie will be complicated. Can someone expand it a bit more? Why is it complicated and incompetent? Thanks a lot! Whenever a class is a virtual function, the compiler runs on runtime to support dynamic binding and polymorphic behavior Creates a so-called V-Table to calculate the necessary address. Lots of class adapter work toward deleting the virtual function due to this. Less overhead, and small code. If the default parameters were also calculated in the equation, then it would make the whole virtual function mechanism more complex and bloated.

objective c - Overreleasing issue and Zombies -

This program crashes if I want to delete the release statements. I think I am overreleasing and realized that quickly But, just to test the zombies, I changed them to (NSAMBJANABLE = ESAS and CFGNElval = 16) and the program ran fine and did not throw exceptions. What gives? I thought that turning on the corpse just told me whether I am a doofus ... it is not okay. #import "AppController.h" @ Implementation AppController - (IBAction) countCharacters: (ID) sender {// does a button do this? If (! [Sender Hackindfclass: [NSBitton class]]) {NSLog (@ "% @ is not a button", sender); Return; } / Proceed NSString * userString = [textField stringValue]; NSNumber * Calculation = [NSNumber Numbers: [UserString Length]]; NSString * outputString = [NSString stringWithFormat: @ "'% @' has% @ characters.", Userstring, counting]; // [userString release]; // [counting continue]; [Labelfield set string value: outputstring]; // [output string release]; } @end

actionscript 3 - as3 tween position relative to current position -

मेरे पास टाइमर पर एक टिन सेट है: var manTimer: टाइमर = नया टाइमर (1000,14); ManTimer.addEventListener (टाइमरइवेंट। टीएमईआर, चालमन); फ़ंक्शन चालन मैन (ई: टाइमर एवेन्ट): शून्य {var मेनएक्स: ट्विल = न्यू ट्विल (आदमी, "एक्स", रेगुलर। लेशऑट, 0, -40, 1, सच्चा); } मुझे बस की वर्तमान स्थिति के संबंध में ट्विन की स्थिति बनाने की जरूरत है, क्योंकि चरण की 0 स्थिति से शुरू होने के विरोध में मंच के -40 स्थिति को आगे बढ़ने के विपरीत। इसे अपने वर्तमान स्थिति से उस स्थिति से चाल -40 प्रारंभ करना होगा। धन्यवाद, वेड

Can't pass mysqli connection in session in php -

I am trying to pass a session with mysqli connection to multiple queries on the site, but when I do a query I try to do this, warns "mysqli could not be brought" $ _ session ['db'] = new mysqli ($ host, $ user name, $ password, $ Db); Is it possible to undergo a mesculine connection reference during the session? Is there a different method to use it? Yes, this is clearly impossible. See mentioned in the highlighted warning: "Some types of data can not be sorted in sessions, in which resource variables or objects are circular references (i.e. objects that references on another object Passes through). " MySQL connections are such a source. You have to reconnect on every page running again. It is not as bad as it seems, if you can rely on connection pooling, but first see more background information in mysql_pconnect ().

c# - object reference is not set to an instance of an object repository -

I'm getting an XAMLParseException that is actually covering an exception. Here is part of the Stacktrace: Message = Object references are not set to an instance of an object. Source = Assignment Organizer - StackTrace: In the Assetment Organizer. Manvindo .. C: \ Users \ Mohit \ Documents \ Visual Studio 2010 \ Projects \ AssignmentOrganizer \ AssignmentOrganizer \ MainWindow.xaml.cs: Line 29 Here the row is 29: < Code> lvwMain .emsSource = _assignmentRepo.ListAssignments (); Where lvwMain is a ListView and _assignmentsRepo is an IAssignmentRepository as announced: IAssignmentRepository _assignmentRepo; This is where the error occurs. I am using a repository pattern which is ready to guess? Here is my XML: & lt; Window x: Class = "Assignment Organizer. Manvindo" xmlns = "http: // Schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns: x = "http://schemas.microsoft.com/winfx/2006 / Xaml "xmlns: toolkit =" http://

Create managed .NET array without initializing to all zeros -

After the take the following C # method: static double [] left AddArrays (double [] Given, double [] right) {if (left! Long! = Right langent) {new argument expansion ("array is not equal length"); } Double [] results = new double [left.Length]; For (int i = 0; i & lt; left.Length; i ++) {Results [i] = left [i] + right [i]; } Return results; } As I understand this, CLR will start the result to all zero , even if addArrays about bus It's completely in to start it anyway. Is there any way to avoid this extra work? ? It uses unsecured C #, C ++ / CLI, or raw IL code even if edit:. No, for the reasons mentioned, you should do this instead: < Pre> Fixed IEnumerable & LT; Double & gt; Adding (IEnumerable & lt; double & gt; left, ienumerable & lt; double & gt; right) using (ienumerator & lt; double & gt; l = left.GetEnumerator ()) (using IEnumerator & LT; Double> gt = R = right.GetEnumerator ()) {while (l.Move

After breaking a python program into functions, how do I make one the main function? -

This is the biggest newbie question on the planet, but I'm not sure. I have written a group of tasks that work, and I want a "main" function, for example, when I call "someProgram.py", run the function 1, function 2 and leave me " Main ", but I do not have any clue. Python is not a collection of scripts functions, rather the collection of statements - functions and class definitions are just such statements Which bind the function or class object names. If you put a print statement in your upper or middle program, it will run normally without any function. This means that you can enter all the main codes at the end of the file and the script will run when running. However, if your script is ever imported instead of directly running it, then it will also run the code. It's not usually what you want so you want to avoid it. Python transfers a

r - Convert table into matrix by column names -

इस सवाल का पहले से ही एक उत्तर है: < / P> 1 उत्तर मेरे पास डेटा फ्रेम है जो दिखता है जैसा कि निम्न मॉडल कोर समय 1 4 1 0.000365 2 4 2 0.00025 9 3 4 3 0.000239 4 4 4 0.000220 5 8 1 0.00025 9 6 8 2 0.00024 9 7 8 3 0.000251 8 8 4 0.000258 ... आदि मैं इसे तालिका / मैट्रिक्स में पंक्तियों लेबल के लिए # मॉडल के साथ, कॉलम लेबल के लिए # कोर और डेटा के रूप में समय बदलना चाहूंगा प्रविष्टियां उदाहरण के लिए 1 2 3 4 5 6 7 8 1 समय डेटा 4 समय डेटा वर्तमान में मैं इसका उपयोग कर रहा हूं इसे इस संरचना में परिवर्तित करने के लिए loops, तू Gh मैं सोच रहा हूं कि बेहतर तरीका क्या है? पैकेज को नयी आकृति प्रदान करने वाली विधि की जांच करें # परीक्षण डेटा एक्स और लेफ्टिनेंट; - read.table (पाठ कनेक्शन ('मॉडल कोर समय 4 1 0.000365 4 2 0.00025 9 4 3 0.000239 4 4 0.000220 8 1 0.00025 9 8 2 0.00024 9 8 3 0.000251 8 4 0.000258') , हेडर = TRUE) लाइब्रेरी (रीशेप) कास्ट (एक्स, मॉडल ~ कोर) परिणाम: मॉडल 1 2 3 4 1 4 0.000365 0.00025 9 0.000239 0.000220 2 8 0.00025 9 0.0

Delphi service on 64 bit machine using SVCOM raises error on stopping service -

I have redesigned my Delphi service which uses SVIom on 64 bit machine I have debug service and it All seems to work fine. However, when I install the service it works fine, but when stopped, the service stops, but I get an error: "Error 1061: Service can not accept control messages at this time". Any thoughts? JD Basically a mistake in the Scom below it is a custom of ASM Bit creates the main implementation of the services which will not work for 64 bit. You can either wait for patches from svCom, replace the TNTService component, or simply re-service your service from TService

c# - Bring Outlookelements to front -

I'm opening Outlookelements with the code shown (scroll down, C # code below). Sometimes the elements do not appear, so you have to choose them first. Any idea how to do this? Thanks Thomas MAPIFolder objFolder = New ApplicationClass (). GetNamespace (). "MAPI") GetDefaultFolder (OlDefaultFolders.olFolderNotes). Foreach (Note: objFolder.Items in Notat Note). Display (false); If you are calling from another app, you have to handle HWD, you You can do this via Win API calls or you can use redemption, which has a handle property. Here is a link whose configuration is WinApi

php - if($ext == ('zip' || 'png')) { echo "Is it possible ?" } -

I am currently writing a download manager and I was asking myself that this is possible: < Pre> if ($ ext == ('zip' || 'png')) {echo "Is this possible?" } It gives every right, so I think it is not possible. But do you know how I can do this easily? I mean, not thanks to a lot of "if" or "switches" anyway! :) You can enter in_array ($ ext, array ('png', 'zip) You can use ',' one more ',' more ')) see here:

(Eclipse RCP) How to redirect the output to Console View? -

I have two viewers, one has a text for the user's input and the other viewer is the built-in console view of Eclipse. . And I will run a Java program according to user input, and want to display log information in the console view. Does anyone know how I can redirect the output to the console view? Thanks Then give an example of questions and console redirection. The blog post

Iphone Animation - Calculation to plot Cartesian Coordinates -

I have two digits (x1, y1) A & amp; (X2, y2) b. I want to alert an image to point A to B but there is also a touch event on that image. What is the best way to accomplish this? I am currently using CP point Mac for point point, but I want a timer loop to plug in two coordinates and move the object. I still have it, but it does not seem to work. CGFloat xStep = x1; xStep ++; CGFloat yStep = (((Y2-y1) / (x2-x1) * xStep) + (((y2-y1) / (x2-x1)) * x1) < / Div> I think you are going to a very low level about things like doing:

c# - Removing border from WebBrowser control -

I have a web browser control over the form, which is a disturbed border around 2px inset. This is causing my content to be cleansed and cleared down to 4 pixels, and I do not know how to get rid of it. There is no border style property in control - how can the range be removed? See the red area in the screen shot: I want to see the web browser look like a blue area - that is, to fill the form and the edges of the form Flush against IE pulls the body tag as part of the default style. >

jquery - scripting a google docs form submission -

I am trying to open a book that parses a page and sends the results through such a form Ve is defined, Ve. The old bit of the script is: var format = document.createElement ("form"); Form.action = "http://spreadsheets.google.com/formResponse?formkey=Fd0SHgwQ3YwSFd5UHZpM1QxMlNOdlE6MA&ifq"; Form.method = "POST"; Form.id = "ss form"; Form.innerHTML = ["& lt; input id = 'entry_0' name = 'entry .0.single' value = '" + order date "/ /" "," & lt; Input name = 'entry.2.single' value = '"+ + email +"' /> "," & Lt; Input name = 'entry.3.single' value = '"+ customerID +"' / / gt; ",]. (" "); Form.submit (); Alert (form.innerHTML); // Returns: Some through bookmarket Not even saving in the form - is there any way to capture Google's feedback in my bookmarklet code? (Fwiw, I have jQueryify injected

.net - Problem attaching to a sql server express db file using network service account -

I am using VS2010 beta 2 to create an IIS hosted WCF service. I am a simple data store I use a SQL Server database file to use and interact with it to generate some LINQ SQL class. The problem occurs when I try to connect to Linq to SQL database. I get the following error: Make database permission denied in database 'master' file c: \ source An attempt to attach an auto-enrolled database to the \ SampleApp \ App_Data \ GameData.mdf file failed. A database exists with the same name, or the specified file can not be opened, or it is located on the UNC share. To get the previous issue I already have web.config user frequency: My first response is that the user account of the application pool (networker service) is unable to open the file, so I have given complete control over the database file and the log file but this does not help Interestingly, if I change the application pool to run under the local system then everything works correctly, is there something e

javascript - How to determine when fancybox is open? -

I should know that fancybox has been opened to allow or deny a function to start. Build-in functions such as 'onstart' or 'onclocked' functions are not functional. I'm talking about version 1.3.0 RC2 The version used by does not match the documentation; I saw the source and saw that the names of the options were different online docs. I have just tested the following with 1.3 RC2: $ (document) .ready (function () {function myStartFunction () {warning ('fancy box opened');} $ ("A #inline"). Fancybox ({'onstart': myStartFunction});}); The option you are looking for is 'Onstart' - My start function is alerted every time I open the box. I'm not sure when they changed the option, but you can see the source of any of the below versions, and see what the options should be said. Edit I have just double checked on v1.2.5 - the version I use - and the callback was actually given a different name. is. Works with ca

java - Grails and Google App Engine - Should I use them together? -

I'm playing with Grails and Google App Engine using Eclipse + STS + Google plugin and I I'm running in many obstacles However, I'm not sure whether this is in the absence of my experience with me or if Grails + GAE support is not yet mature enough. Can I switch to Java + GAE until the Grails support mature? I will not go for this. It requires more time to mature. The website itself says that the plug-in has been done. Insects It is true that there are some bugs with this plugin, but most of the time there is a solution. Example: "Data prevents buildings from building on Nucleus Enhancer because the length of the path over the maximum path length on Windows. However, a work-around- It does not stop using this plugin. Some annoying bugs are not fixed: On windows Every time, you have to manually end the Java process, , . If you plug in the plugin If you feel like the time of testing, writing and testing, go for it. Nevertheless, you will

ruby on rails - Problem after submitting a form -

I'm new to Ruby on Rails and I've made a list with checkboxes inside. I asked here how to get the values ​​checked with the Paramas and I found it to work. This idea is now to take some action with the selected items if I click on a few buttons, and if I click on each other then perform any execution, but always remains on the same page after the postback. What is happening now is that I am receiving actions, but at the same time for other URLs. For example: I have found the following forms in my opinion: form_tag delete_profiles_path ,: method => : Put do submit_tag 'Delete' @ my_announcements.each do | Ann | Check_box_tag 'announcement []', ann.id end and My Profile Controller: Delete def #some operation finished more routes RB: map.resources: profile ,: archive = & gt; {: Delete = & gt; : Put} After submitting it, I will be redirected to: / profile / complete, and my form / profile / some id / announcements < / P>

php - Problem getting value from multi-dim-array -

निम्न कोड: $ options = $ value [$ i] ['विकल्प ']; print_r ($ विकल्प); निम्न परिणाम को आउटपुट करता है: अर्रे ([0] = & gt; stdClass ऑब्जेक्ट ([id] = & gt; 1 [field_id] = & gt; 1 [option_name] = & gt; मैं एक सामान्य उपयोगकर्ता हूं) [1] = & gt; stdClass ऑब्जेक्ट ([आईडी] = & gt; 2 [field_id] = & gt; 1 [option_name] = & gt; स्टोर स्वामी) [2] = & Gt; STDClass ऑब्जेक्ट ([आईडी] = & gt; 3 [field_id] = & gt; 1 [option_name] = & gt; ब्रांड स्वामी) [3] = & gt; स्टड क्लास ऑब्जेक्ट ([आईडी] = & gt; 4 [field_id] = & gt; 1 [option_name] = & gt; डिज़ाइनर)) तो क्यों मैं उत्पादन नहीं कर सकता "मैं एक सामान्य उपयोगकर्ता हूं" का उपयोग करके $ options [echo] [0] ["option_name" ] < मेरी योजना आउटपुट लूप का उपयोग करने के लिए आउटपुट id और option_name है विदेशी मुद्रा ($ विकल्प $ विकल्प के रूप में) {इको "& lt; विकल्प मान = '"। $ विकल्प ["आईडी"]। "' & G

iphone - view all the subclass of UIView or NSObject -

You can view Java API in tree structure. So you can see all sub-squares of objects. How do I see all sub-squares of UIView or NSObject iPhone Cocoa API? I just found out that you can: Self. TableView.tableHeaderView = searchBar; The searchbar is the subclass of UIView. I want to add textField to a tableView. I wonder if there is such a control, the inputbar says, sub-class UIView: self.tableView.tableFooterView = inputBar; This input will fill the input text of the iPhone message app to the same task. Cheers Xcode has a class browser that shows the entire (public) hierarchy The easiest way to see all the UIView subclasses is

svn - How do you merge a feature branch in a Codeplex project? -

I have a project and I use to use the source code. I have created a feature branch and now I need to merge the changes in the feature branch from the trunk. I would eventually need to merge the facility branch back into the trunk but it seems! Is there any suggestion on how to complete the merge on the codeplex? Use Team Explorer to merge? Or TF.exe or codeplex client? As you already have turtles, you can simply use it alone to merge Unless you end up with many protests, a merge can be done easily out of any IDE.

javascript - Is there a project to generate a widget like uservoice? -

I want to create a widget such as the userwave it on the left or right side of the page and when the user clicks on the widget , A dialog popup will occur and the user can do anything that is provided by us. Is there an open source project to implement this widget? Do you mean the feedback button to the side of the page? I do not know of an open source project, but it is not very difficult to apply it to myself. Finding a lot of tutorials in a quick Google search Here's a great way:

In extjs charts, how do you hide the axis and axis labels? -

I am using the extjs chart to display some data. In this data, axis and axis labels are irrelevant - only data tendency is important. So I want to close the letters. How do i do this You want to set extra style x / yAxis . ..., additional style: {xAxis: {showLabels: false}, yAxis: {showLabels: false}}, ... < / P>

c++ - Specific Time Zone In boost::posix_time::ptime -

मेरे पास निम्न समय है: 2010-01-25 03: 13: 34.384 - GMT समय क्षेत्र 2010-01-25 11: 13: 34.384 - मेरा स्थानीय मैं एमएस में टाइमस्टैम्प में कनवर्ट करना चाहता हूं। हालांकि, चूंकि मैं केवल कॉलर से स्थानीय समय की स्ट्रिंग प्राप्त करता हूं "2010-01-25 11: 13: 34.384" अगर मैं इसे ऐसा करता हूं: // ts है "2010-01-25 11: 13: 34.384" (मेरा स्थानीय) बढ़ावा :: posix_time :: ptime t (boost :: posix_time :: time_from_string (ts)); बढ़ावा :: posix_time :: ptime end (बढ़ावा :: ग्रेगोरियन :: दिनांक (1970,1,1)); Boost :: posix_time :: time_duration dur = t - end; // युरोप 1264418014384 // 2010-01-25 11: 13: 34.384 (जीएमटी) - लेकिन मुझे चाहिए 2010-01-25 03: 13: 34.384 // 2010-01-25 19: 13: 34.384 (मेरा स्थानीय ) - लेकिन मैं चाहता हूं कि 2010-01-25 11: 13: 34,378 लंबे लंबे युग = डर। Tot_milliseconds (); क्या बढ़ावा देने के लिए कोई तरीका है: posix_time, जो कि टीएस स्ट्रिंग जो इसे प्राप्त करता है, वह मेरा स्थानीय टाइमज़ोन है? /// UTC const ptime में दीवार-घड़ी अनुवा

xml file updation in android -

I want to make an application in which I want to store the settings of my code in xml I need to update the xml file (updating the values ​​of nodes, removing nodes, attaching nodes). We use javax.xml in Java. Transfer package to class, but it is not available in Android, so there is no way to update xml (if you know the reason for Android If you want to store the settings for your application which you . The biggest benefit of doing this is to integrate the preferences screen and widget directly with the storage Which makes it very easy for a setting activity.

c# - How to exclude a thread from global hook -

हम टी extOut () , ExtTextOut () और ड्राफ्ट () विधि वैश्विक रूप से i.e। hhook = SetWindowsHookEx (WH_CBT, function_address, module_handle, 0); लेकिन हम अपने आवेदन (जो हम स्थापित / अप्रतिष्ठापित हुक के लिए उपयोग कर रहे हैं) को हुक से बाहर करना चाहते हैं यदि SetWindowsHookEx () 0 (शून्य) के अंतिम तर्क यह सभी मौजूदा धागे को हुक कर देगा। यहां पर जांच करने के लिए अगर वर्तमान थ्रेड "OurApplication.exe" है और फिर उसे hooking या इसे तुरंत से बाहर निकाल दें इसे खोलना कृपया सहायता प्रदान करें। मुझे नहीं लगता कि यह संभव है। आप या तो हर चीज या किसी विशिष्ट थ्रेड पर हुक कर रहे हैं। आप फ़ंक्शन_address पर अपने कोड को जो भी कोड में डालते हैं, उसे केवल फिल्टर क्यों नहीं करते? अधिकांश, यदि सभी नहीं, सीबीटी हुक कॉलबैक डब्ल्यूपीएएम या एलपीएएम तर्क पर खिड़की के संचालन प्रदान करते हैं। उसके बाद आप उस संभाल से प्रक्रिया आईडी प्राप्त कर सकते हैं और इसे अपने आवेदन पत्र में तुलना कर सकते हैं।

django - Writing eclipse templates -

मैं डीजेंगो टेम्प्लेट्स को स्वत: पूर्ण करने के लिए एक्लिप्स्-> प्रीफ्रेंस-> टेम्पलेट्स में डीजेगो टेम्प्लेट लिख रहा हूं। मैंने यह लिखा है {% block $ {cursor}%} {% endblock%} अब, जब मैं अनुरोध करता हूँ और स्वत: पूर्ण करने के बाद, टाइप करने के बाद < कोड> {% स्वतः पूर्णता {% {% block%} {% endblock%} मुझे पसंद है {% block%} {% endblock%} मैं यह कैसे कर सकता हूं? टाइप करने के बजाय {% और < कोड> dj_for_empty , टाइप करने की कोशिश करें डीजे _ और उसके बाद स्वत: पूर्ण बॉटम-लाइन: आप टेम्प्लेट नाम के आधार पर टेम्पलेट के आधार पर टेम्पलेट्स को स्वत: पूर्ण कर सकते हैं, न कि टेम्पलेट सामग्री के आधार पर। । ऐसा प्रतीत होता है कि स्वत: पूर्णता के दो स्रोत हैं: नियमित एचटीएमएल टैग्स (जिसके लिए मुझे एक्लिप्स, खेद में कहीं भी बदलने की परिभाषा नहीं मिल सकती है) और खुद टेम्पलेट्स (जो आपने अपनी टिप्पणी में सही तरीके से प्रदर्शित किया था टाइप करने के बजाय और स्वतः पूर्ण होने पर, मैं टाइप किया t । आप देख सकते हैं कि & lt; & gt; के सा

android - How to clear stack back to root activity when user leaves application? -

I have an application with 2 activities, logonact, and menact. LogonAct is a logon activity that I want to force the user to return to the application every time. I have set Android: LogonAct on Android: ClearTaxNowLow = "True" . When I start the app for the first time, I go through this sequence screen Home -> LogonAct - & gt; Menact - & gt; Home Then I follow this sequence, logonact -> Back - & gt; Men Act Why is it bringing me back to the menu? That activity should not be discontinued since Android: ClearTaskOnLock = "True" next to LogonAct. I'm hoping to get back to the button from LogonAct. Snippet related to AndroidManifest.xml, & amp; Activity Android: Name = "LogonAct" Android: clearTaskOnLaunch = "true" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.MAIN" /> & Lt; Category android: name = "android.intent.categor

objective c - any example of ofVideoPlayer on iPhone? -

Anyone knows any example of the video player working on the iPhone ?? Thanks Take a look at the library - a sample of them is there on the YouTube player

Data structure, best practice to build true "related by tags" items list? -

What do I mean "tags related to tags" list? We think that there are 3 tags in the article (A, B), (A, C), (B, C) etc. A, B, C. / P> Table: Tag tag_ id tag_title tag_title Table: Tag 2 article We can add a more table in which there is article_id and it is MD5 (A, B, C). Before hashing, we should sort the tags by the alphabet. Table: article_tags_hashed id article_id md5 count This table gives us the tag (A, B , C) will help find articles with the exact set, but it will not only help to find articles containing (A, B), (A, C), (B, C) most What is good practice? PS: Sorry for my english, it's too bad. I do not think you need article_tags_hashed because you have Tags2articles group the results for the query and can count. Example: Choose tag_id as tag_art tag (article_id) as tags in the tag_id where tag_id (...) tags by tag by article_id < / Code> / pre> Most tagged articles will be placed first.

java - How to improve email sending and delivery reliability? -

The current application uses the simple Java mail to send two emails daily but some email clients never make it. / P> Added time server of mail servers based on the server log, but it does not explain all the cases of missing emails. Adding the Retry feature will help with the problem of time, but is there any other way to improve email reliability normally? This is the nature of SMTP that does not implement transaction integrity. <6> 6 years ago, I did a very disappointing analysis about why I was matching to the company that was working then. I could only see the MTA to get, but it showed a very strong correlation between the type and failure rate of MTA (at that time, the Novell GroupWord and Sendmail, at the far end, the most reliable, at least MSES Exchange Qmail and In other). Note that this was highly empirical and could have influenced the available skills while making product choices rather than internal problems in specific MTAs - and not even from its curr

iphone - Parse .strings file with Python -

I am trying to write a short python script to parse the .strings file in my iPhone application project and it Determine which key is not in use, I'm also taking some results and filtering some strings to filter. This is where my problems begin :) If I try something like string for file_line in string_film : if 'search_keyword' is in file_line: ... Search keywords will not match very often, even though I print every file line in it because I think the text is reading properly and my search keywords appear . The problem is. String files are in some binary format Do anyone know the proper way to parse these files? Use the right encoding to open. String -file and your According to the encoding of your file can be UTF-16. Import codecs for line in .- .csen.open (u'your_file.strings'): # - * - coding: utf-8- *, encoding = 'UTF-16'): If the 'keyword' is in the queue: #process line

objective c - Xcode Tips for Eclipse users? -

I am slowly working through examples in the development of the iPhone and there are some things that I'm not understanding to understand But I'm sure you guys can help me with it. Generate a source-> generator / setters in Eclipse, can you do something similar to the synthesis of properties I do not even seem to find the Refactor menu < / Li> I am also struggling to search for source-> override / implementation method - edit - Failed to describe. I know that the synthesis properties will generate gates / sets for me, but I am looking for a way to generate @protecti/ @ synthetic code by selecting variables. When starting with a short list, but I would probably be more likely because my illusion increases. I will ignore that question and instead answer different questions: and find your question directly, view

google docs - Bookmarklet pulls data from current page then injects it in a remote page -

I am working with a script that is scanning data from the page I am currently viewing. I need to know who inject me those values ​​into a form found on a different page. Code for code: javascript: on% 20 = document.createElement (like 'script'); S.setAttribute ('src',% 20'http: //jquery.com/src/jquery-latest.js'); Document.getElementsByTagName ('body') [0] .appendChild (s); Zero (s); Up% 20 = document.createElement (like 'script'); S.setAttribute ('src',% 20'http: //juststeve.com/test.js'); Document.getElementsByTagName ('body') [0] .appendChild (s); Zero (s); Post-text "Itemprop =" text "> You can see it:

wpf - Change DatePicker style based on SelectedDate -

The first question here. Anyway, it goes here: I have an XAML Windows with many DatePicker controls (CodePlex on WPFToolkit with DatePicker). Each date picture is the default value of 1/1/1990 and if no second date is selected, then I want (or rather my boss :-)) to display the text in gray italic and not in black . Thus, it makes it easy to see which fields have not been entered yet. It may be easy, but I am quite new to WPF / XAML. Actually, this is my first step using it So what I have here and what really works great is: type = "{ X: type my: date picture} "& gt; & Lt; Style.Triggers & gt; & Lt; Trigger Property = "Text" Value = "1/1/1990" & gt; & Lt; Setter Property = "Foreground" Value = "DarkGrey" /> & Lt; Setter property = "tooltip" value = "please select a date" /> & Lt; Setter property = "fonttail" value = "italic" /> & Lt; / Catal

python - Is it possible get all context nodes used to evalute xpath result? -

Is it possible to use all reference nodes to spin the xpath result? In the code below: test_xml = "" " r> gt; & lt; b & gt; & lt; b / & gt; ; & lt; / a & gt; & lt; / R & gt; "" "test_root = lxml.etree.fromstring (Test_xml) node for res = test_root.xpath ("// following-sibling :: * [1] / b"): res: print test_root.getroottree (). Getpath (node) The results are: / r / a [2] / b / r / x [x] / r / a [1] / a [3] / b Is it possible that all reference nodes should be used in the xpath evaluation above: R / a [2 ] / R / a [2] / b and for the second result: / r / a [2] / r / a [3 ] / B / r / a [3] / b ? When using the hair axis, I can get those nodes from working on element_tree.getpath (elem) , but do other axes about? Tia, relation I have reverse xpath for each step So that the received items can be evaluated for the result: for res in node: j = node.xpath ('./ parent ::