Posts

Showing posts from May, 2013

comparison - Javascript: Comparing two float values -

मेरे पास यह जावास्क्रिप्ट फ़ंक्शन है: Contrl.prototype.EvaluateStatement = function (एसीवील, CfVal) {var cv = parseFloat (cfVal) .tFixed (2); Var av = parseFloat (acVal) .toFixed (2); जब मैं फ्लोट संख्याओं av = 7.00 और cv = 12.00 की तुलना करता हूँ, तो (अगर & amp; lt; cv) 7.00 & lt; 12.00 का परिणाम झूठा का परिणाम है कोई भी विचार क्यों? टूफिक्स्ड एक स्ट्रिंग देता है, और आप दो परिणामी स्ट्रिंग्स की तुलना कर रहे हैं। मौलिक रूप से, 12 में से 1 में 7 से 12 के पहले आता है; 7। मुझे लगता है कि आप की तरह कुछ तुलना करना चाहते हैं: (मठ। (पर्सफ़्लॉट (एसीवील) * 100) / 100) दो दशकों के लिए कौन सा दौर

testing - Fitnesse deployment practices -

Is there some documentation on the best ways of organizing phutteet to use in projects? I have many questions: How should it be stored? Should the entire fitness route be stored in SVN? How do you work with acceptance tests that increase many SVN repositories? We have some code that only runs on Linux and other code that runs on windows (client) that make up the whole system, how do you run it? Do you have many clever servers? In the company that I work on, we are setting up the function for the function of SVN and Selenium Integrated Test with This is our original idea: Store FitNesse (yes, root) in a repository on SVN Selenium tests SVN in repository (for both projects and .html and .java both testgie generated) To automate checkouts from SWN Use Hudson and put everything to run on a QA environment if Fiton's acceptance test period in more than one svn treasure, Hudson is capable of downloading and building projects. In this way, FitNesse does not have to de...

asp.net mvc - Resource (RESX) files messed up -

I had a resource file named Localize.resx, which contains English strings. I copy it and the same folder (AP_ Paste inside the Global Resosphorus), VS made a copy, I changed the copy to localization sl.resx and localization localization as ANRex. Now everything in the codebahind file (Localize.en.designer.cs) has gone. Creating a new but completely empty designer file makes the removal of the designer file and selecting the custom tool running. I still have all my strings that are resx but designer files (empty) have gone, so the application is not created. Any suggestions? It is within VS 2010 with ASP.NET MVC solutions. What this resource says about files. This does not specifically talk about the codebahind designer files prepared on the fly, but if you read the bold text carefully, then it is essentially saying that you are not specified without Language base file is required and given that it only makes sense that this file will include self-activated code. ...

c# - TransactionScope and Timeout Issue -

We know that TransactionScope class can use a user-defined timeout value. But when using exit {{block}, the timeout exception is thrown when exiting Impossible. The transaction scope simply stores the time when you started the transaction, then the transaction is checked at the time of doing the transaction. There is no way to throw an exception at any arbitrary point. In general, the only exception that can be inserted on any point execution (managed code) is ThreadAbortException . Therefore, if you really wanted, you create a separate thread that sleeps for the duration of the timeout, then closes its original thread. Still, this is a terrible idea.

c# - Image comparison - rotation, alignment and scaling -

I have the following requirements, there are some forms, ie spaces - for example people used in the survey. People who are not filled with information, I will call image templates from now on. In addition to the image templates, I have a lot of images, which are basically information-rich image templates. For example, there is a survey and there are two empty places to fill - these are image templates. Many people have their personal information Along with the empty space and these images are there. Image templates are scanned at a proper size but many scanned images are tilted or not properly aligned, or perhaps scaled. So I have the following requirements - Every image should be recognized after which it is related to which image template, after receiving this recognition, this image should be properly diagonally, aligned, and scaled in the template. I know this is a complex task and so I need a library, especially C # I've found a form , but now Till i have seen only ...

parsing - Basic problem with yacc/lex -

I have some problems with a very simple yacc / lex program. I have probably forgotten some basic steps (when I have used these tools since then it has been a long time). In my Lex program, I have some basic values ​​like: word [a-zA-Z] [a-zA-Z] * %% ":" Return (PV); {Word} {Yiwal = yatex; Printf ("yylval =% s \ n", yellow); Return (word); } "\ N" return (ENDLINE); In my yacc program is the beginning of my grammar (where the translation UIT is my% beginning): Translation: / * nothing * / | InfoBlock data; InfoBlock: / * None * / | InfoBlock InfoExpression {}; Information Expression: Word PV Word Endline {printf ("$ 1 =% s \ n", $ 1); Printf ("$ 2 =% s \ n", $ 2); Printf ("$ 3 =% s \ n", $ 3); Printf ("$ 4 =% s \ n", $ 4); } | ... /* other things */ ; Data: ... / * Other Things * / When I run my program with input: keyword: value I thought I would get the least: $ 1 = keyword $ 2 ...

java - How to test a Request Object in EasyMocks? -

I have a method that uses setAttribute on the set object to see that I need to test that method Is that the true value of the feature set? I am using EasyMocks and am new to it. I created a fake request object but I need some help to test the method. Thanks for any help Once you have created a duplicate object, You can set it by calling specific methods. If the values ​​need to be returned, then you use EasyMock.expect (...) to configure those codes. Once ready, you ask EasyMock.replay (...) to start the test phase. After the check, you should check the EasyMock.verify (...) to check that all pre-made calls are made with expected parameters. See for more details and examples. / P>

python - Getting user input -

मैं इसे चला रहा हूँ: import csv import sys reader = csv.reader (open रीडर में पंक्ति के लिए (sys.argv [0], "rb")) प्रिंट पंक्ति और मैं इसे प्रतिक्रिया में मिलता है: [' आयात पाठ '] [' आयात प्रणाली '] [' पाठक = सीएसवी। रीडर (खुला (sys.argv [0] ',' 'आरबी' '))'] ['पाठक में पंक्ति के लिए:'] ['प्रिंट पंक्ति' ] & Gt; & gt; & gt; sys.argv [0] के लिए मैं इसे एक फ़ाइल नाम दर्ज करने के लिए संकेत करने के लिए चाहूंगा। मैं इसे कैसे प्राप्त करूं मुझे एक फ़ाइल नाम दर्ज करने के लिए संकेत करने के लिए? अजगर 3.x में, इनपुट का उपयोग करें () के बजाय raw_input ()

c# - how to change originating IP in HttpWebRequest -

I am running this application on a server that has appointed 5 IPs. I use HttpWebRequest to fetch some data from the website. But when I make the connection, then I am able to specify which connections from 5 IPs to make connections. Does HttpWebRequest support this? If it does not happen, can I change the behavior of a class by changing it? I need such ideas. My code is just something like this: System.Net.WebRequest request = System.Net.WebRequest.Create (link); (HttpWebRequest) request .referer = "http://application.com"; (Using System.Net.WebResponse response = request.GetResponse ()) {StreamReader sr = New StreamReader (response.GetResponseStream ()); Return sr.ReadToEnd (); } According to, you may have to drop down to use sockets That is where I know that you can choose local IP. EDIT: In fact, it seems that it could be possible. HttpWebRequest has a servicepoint property, which is in turn, which may be what you are looking for. Give me one minute, I ...

delphi - how to detect if tfilestream has been freed? -

Is there a way to see if the tfile stream is being used? For example if I type fs type tfilestream, then type it buffer and finally download the stream for free using tfilestream.free I like something: if tfilestream.NotActive // if tfilestream code is ifused // code if tfilestream.free = true then // code active and is happening methods do not exist for real "text "> The way you expect it, you can not do it Do not you and it Friandnl () var FS with Tifailstrym; Start FS: = TFileStream.Create (...); Work with TFListream at end of Android (FS) End; // You need to check FS for some reasons. If not assigned (FS) then the stream // was released. End; End;

Micropayment processing using Paypal or other payment processing service? -

Currently, I use PayPal for payment processing. Approximately 90% of items have been sold for $ .99 and they want to use PayPal's microproot account, but PayPal "Micropromet for European countries traders for US, GB to GB, AU to Au and EU transactions Support for "support. My company is located in the US but the customer is very global, this means using the microprotation option, can not I pay from anyone living outside Europe or the United States? Currently I am using regular account and I am paying $ .34 for every sale, which is very profitable, can I use other payment processing services with a lower fee? Thank you. Unless you do a lot like a fast-food chain, get a merchant account It is very difficult to do where the transaction value is possible for micro-payments. Most providers will suggest a group model where you sell your content but can only bill your customers from time to time, that is, once a month, billed them so that many purchases are bundled to...

regex - python -- re.match vs. re.search -

संभव डुप्लिकेट: मैं हाल ही में अजगर के साथ regex को समझने में कूद रहा हूं। मैं एपीआई को देख रहा हूं; मैं इनके बीच के अंतर को समझने में असमर्थ हूं: re.match vs. re.search जब इनमें से प्रत्येक का उपयोग करना सबसे अच्छा है? पेशेवरों? कृपया कृपया और धन्यवाद। पुनः। मैच ( ) केवल तार की शुरुआत से मेल खाता है एक सामान्य पकड़ देखें।

php and smarty var. value -

चालाकी फ़ाइल {php} कुछ php कोड ... $ php_var = "{/ php} {$ smarty_var} {php} "; प्रतिध्वनि $ php_var; कुछ php कोड ... {/ php} smarty फ़ाइल क्यों '$ php_var' मान है:?> कैसे $ smarty_var मूल्य प्राप्त हो? धन्यवाद कारण यह है कि $ php_var गलत है क्योंकि आप जब आपने PHP कोड में {/ php} डाल दिया तो गलती से अपना {php} बंद कर दिया गया समझदार समझ में नहीं आता है कि यह एक उद्धृत स्ट्रिंग में है। वास्तव में चतुर चर को पाने के लिए, $ this- & gt; get_template_vars ('smarty_var') का उपयोग करें आपका '{php}' ब्लॉक। वैकल्पिक रूप से, टेम्पलेट को क्रम में लागू किए गए दो छोटे वाले हिस्सों में विभाजित करें।

Python: Email problem -

I am using the script below to send an email to myself, the script does not run properly with any errors, but I do not physically receive an email import smtplib this = 'foo@hotmail.com' receiver = ['foo@hotmail.com'] Message = "" "From: Person: To & lt; foo@hotmail.com & gt; To: person & lt; foo@hotmail.com> Subject: SMTP e-mail test This is a test e-mail message "" "Try: smtpObj = smtplib .SMTP ('local host ') SmtpObj.sendmail (Sender, receiver, message) "Successfully sent email" except SMTPException: "Error: Unable to send email" edit script Named test.py Why you use Lokhost as SMTP Are you If you are using Hotmail, you have to use Hotmail account, provide password, port and SMTP server etc. Here's what you are doing: Edit: Here's an example I'm using Gmail: def (to be mailed to) (Subject, text) : msg = MIMEMultipart () msg ​​['from'] = gmail_user ...

Operator commutativity for inequality != in C++ -

मेरे पास निम्न अभिव्यक्ति के बारे में एक त्वरित प्रश्न है: int a_variable = 0; अगर (0! = ए_वारेबल) a_variable = 1; " (0! = A_variable) " और " (a_variable! = 0) " के बीच अंतर क्या है? मेरे पास अभी कोई त्रुटि नहीं है लेकिन क्या इसका इस्तेमाल करने का यह एक गलत तरीका है? अगर आप भूल जाते हैं ! , पहले एक त्रुटि (0 = a_variable) देगा और दूसरा कहर को कष्ट करेगा (a_variable = 0) । इसके अलावा, उपयोगकर्ता-परिभाषित ऑपरेटर के साथ दूसरे फॉर्म को सदस्य फ़ंक्शन के साथ लागू किया जा सकता है, जबकि पहले केवल एक गैर सदस्य (संभावित मित्र) फ़ंक्शन ही हो सकता है। और यह संभव है, हालांकि एक बहुत ही बुरा विचार, दो अलग-अलग तरीकों से दो रूपों को परिभाषित करने के लिए। निश्चित रूप से a_variable एक int है, इसलिए इस उदाहरण में कोई उपयोगकर्ता परिभाषित ऑपरेटर्स नहीं हैं।

jquery - ASP.NET MVC portal/CMS - controller and widget design? -

I am currently working on a portal using portlets / sortable / draggable which also includes the content management system, Only the controller can change the layout / content of the site which is in 2. Each view receives personalization for the page (from the base controller) based on the controller and the action, after which the view disappears through the visits and makes the presentation call for each of them. Currently, I have the "edit" verb on each view to set in the editing mode on the page. As I repeat the code, there should be a better way, but I can not see it for my life! How will you allow each view to be edited? public proceeding legal () {Page model model = GetPageSetting (); See refresh ("portal", model pagesetting, master path, model); } [HTTP Post] [Authorized (Roles = "Administrator")] Public Action Legal Editing (Editor Modell E) {Page MODEL Model = GetPageSetting ("Legal", "Home", True); See refresh (...

php - Getting Logged Out During Navigation -

I am using a PHP / MySQL login system with a new browser session, log me when navigating to the site Have to be out. Thanks in advance, John W. class = "post-text" itemprop = "text"> It seems that the system is constantly using the session for user login Yes, the time has gone out of the browser after the browser closes. It is a solution to use cookies to monitor users, as long as you want, you can increase the life of cookies and they can be persistent through browser sessions.

Ruby on Rails: + AJAX: How do I set the value of a field -

there page. Code> But is such a place where I can put a value in the text field? I think that you have RJS and prototype , for example, if your textfield is in the "foo" value in the id, then something similar can be done: page & lt ; & Lt; % {Var input = $ ('foo'); Input.writeAttribute (with 'value', 'talk to change it'); } Updates the value attribute of the input element.

F# Custom Operators Precedence -

In F #, you can define a custom operator such as let (= ~) Input Patterns = Regex.IsMatch (Input, Pattern) Unlike Haskell, custom operators are defined without predecessors What is the operator predecessor of custom operators in F #? The operator's priority is determined by the first character (s), according to.

iphone - how to implement drop down menu -

I have to select a category from the drop down menu when I press a field .... You can try using a UIActionSheet like this: Then apply the representative methods like this: // A button is called when clicked. Scenes will be automatically rejected after this call return - (zero) Action sheet: (UIACffets *) Action sheet clicked Button ATindex: (NSITAZ) button index {Switch (button index) {Case X: // Choice option X break; ... Default: // Default Action Brake; }}

user interface - How to obtain bounding box of transformed text(java)? -

I currently have a text object that I need to set its limits. I get the text matrix of text I used to use the graphics object that I'm trying to attract, but since I added the functionality to rotate the object (and possibly more) I would like to get an edge of this object I should see the way I have seen many places and nothing really is not working for me yet. This is my most current effort: // This is the bounding box edges 0: left , 1: right 2: top 3: Returns for the intrate below [] = New int [4]; //this.transform is the text object for AffineTransform (currently only // rotated) FontRenderContext frc = new FontRenderContext (this.transform, true, false); TextLayout tl = new text layout (this is typed text, this.font, frc); Rectangle 2dbb = tl.jetband (); ToReturn [0] = (int) (bb.getX ()); ToReturn [1] = (int) (BB.getX) + BB.getWidth ()); ToReturn [2] = (int) (BB.getY ()); ToReturn [3] = (int) (BB.getY) + BB.GhatHight ()); Is this the correct way to get the bounding ...

ipad - how to generate html to pdf file in iphone -

How can I generate HTML in PDF file for IBP applications I found the html file but The problem here is that I can not do paging in the webview, so I will change the html file in PDF, it is working. If anybody sends a sample code or link to the body then thanks ... The one thing you would like to consider is sending the HTML server side, executing it on it like PHP library dot dpdf (which actually you ask: convert html to pdf ), And download the file. Just one thought, if you can not get anything compared to walking directly on the iPhone.

sql server - Condition text field character insert with SQL Update statement -

I have to conditionally update the fields in the SQL-server table in the field there are different letter types in the one-letter indicator , Which are all together in the field. Like "I" for insurance, "O" for other insured, "H" for health qualification, etc., but together in the field, nothing can be in the field, any letters, or all letters are included You can. Such as "IHO" or "HOI" or "O" or "OI" etc. A given letter should not appear more than once in the field, though. This application is running on a unique ID running through a record-based set, and only updated to update this unique ID of the record, whether it is possible in a single SQL update statement: / P> "If there is already 'I' in this area, then do not do anything; Otherwise, 'I' for the set of existing letters." ... and, If this is (of course), then what does this update statement look like? I am away from a ...

using ajax in rails with periodically_call_remote -

I am trying to reload partially on one page from time to time but this does not work. Partial load correctly when I first load the page but it will not be updated when presenting the new information without reloading the view. Looks like this: & lt; Div id = "menuarea" style = "height: 39 9px; width: 181px" & gt; & Lt;% = periodically_call_remote (: url = & gt; {= action = & gt;: find} ,: frequency => '20' ,: update = & gt; 'menu' ')% & gt; & Lt; P & gt; Please select a color & lt; / P & gt; & Lt;% # partil color table% & gt; & Lt;% = Render: Partial = & gt; "Colorable"% & gt; & Lt; / Div & gt; And the controller looks like this: def findnew bunny = Xparsing :: Xmlparse.new @ fuzzybunny = @bunny.hex1 @bolbibinae = @ bunny. Pantone1 @ blackbunny = @ bunny.description1 render (: partial = & gt; 'colortable') end All I'm trying to do ...

php - could script timeout cause javascript to fail at end of page? -

I have a simple PHP upload page, when Javascript goes a little bit to show a form when the upload is finished And the 'Save' button I enter different bits of information. When I upload a large file 100-200mb, I think the upload is hanging or hanging in. Javascript never shows the form. Is there a way to set execution time on a particular php page, so that the problem is that I can take a lot of time to execute it? you can use ... ini_set (' Max_execution_time ', 0); ... to determine the execution time limit for 'unlimited' for the currently executed script. Alternatively, you specify it to be defined by zero (unit seconds) to zero You can set more value.

regex - Python string match -

If there is a string in * SUBJECT123 , then how do I determine that the string in the Is the subject in the dragon? if "subject" in mystring.lower (): #customize

Convert HTML to PDF in python on Google App Engine -

I have seen this thread: I know we I can not use ReportLab, however, I'm not sure how I can give it an HTML file and get a PDF. Actually, HTML and PDF Out If you use external labs , Then

how can I get driver's version of Network Adapter ? by c# code? -

How do I obtain the driver adapter version of the network adapter? You should be able to do it through WMI to start a class by driver's property property. I think that something like this can work (please note, this code is not completely unwanted and it is only educated, guess how it can work): system. Use management; ... Management object explorer explorer = new management object search ("select * from win32_PnPSignedDriver"); Foreach (ozoz obz. Search ()) (//) in the searcher (unless you do not find the driver you are looking for (hopefully you can make this difference by DeviceName, DriverName or FriendlyName) string version = obj. GetPropertyValue ("DriverVersion") .tar (); }

c# - Need help identifying a subtle bug.. in IIS? The Session? Elsewhere..? -

I have a very small bug that I'm having trouble figuring out. Background: We have 2 sites running on the same site on the same web server Site A - www.SiteA.com Is used Site B - Accessed by www.SiteB.com When the first request is made, the site ID is identified on the basis of the host and The session is stored as follows: Secure void Application_BeginRequest (Object Sender, EventArgs e) {string host = Request.Url.Host; Int siteId = New Sitemanager () GetSiteByUrl (host) .SiteId; If (session user.Instruction (). SiteID! = Site ID) {session user. Instruction () SiteId = siteId; }} This ID has been determined to withdraw any data and to determine which style to present: // This happens during the initial stage _site configuration = _siteManager.GetSiteById (session user.install (. SiteId); // then later: Private Zero SetpageTheme () {string theme = null; Switch (_siteconfiguration.SiteId) {case ConfigurationHelper.SITE.A: Theme = "Siteheme"; break; ...

osx - How to use option key combinations in a text widget -

After the On the Mac, I can find a single-character character by typing + "After one - seen When using a text widget, the option + `wants to leave the reason for the combination unexpectedly. Is there any way to get around this? Is there any compulsion that will take care of it, and allow me to include one character in the lesson. The language I am working with (wolf) has about 8 special characters. Actually I just want to provide 'normal' Mac input coding. Tel > Here are the details of the error encountered 2010-07-28 11:57: 18.396 wish [2047: 903] ] Expected exception 2010-07-28 was raised 11: 57: 18.400 Wish [2047: 903] *** - [NSCFString characterAtIndex:]: Range or range 2010-07-28 11 out of index: 57: 18.401 Wish [2047: 903] *** The app 'NSRangeException' due to the unexpected exception, the reason: '*** - [NSCFString characterAtIndex:]:' Out of range or index limit '*** Call stack in first throw: (0 CoreFoundation 0x00007fff834e...

jquery - Change CSS Class of All previous <li> when i hover some other item -

What I need, with jQuery, can be a lot easier, I just suck it: / I have a list of the list of this nominated list, what do I do, I change to replace all the CSS classes of the previous list items, when I take any other item. For example, below this picture, if I want to change the CSS class of 1904, 1902 and 1903. "Text"> You can use to get to all the previous brothers and then use it to add / remove a square: $ ("li "). Hover (function) {$ (this) .prevAll ("li") ToggleClass ("myClass");}); Note that this does not style element, only the previous ones, if you want the hovered style ; Li & gt; Also as : $ ("li"). Hover (function {$ (this) .prevAll ("li") and auto (). Toggleclass ("myClass");}); In this case, we can set & lt; Li & gt; to include.

c# - Get a List using its ID -

I'm trying to get a list using this ID, though it is not working and I Why can not run This works without problems ... using (sps ite site = new sps ite ("http://example.org/ Sites / specific / staffhandbook ")) SPWeb web = site. OpenWeb ()) {SPList List = Web. List ["document"]; // process ...} It should be, but is not it? Using (SPS ite site = new SPS ite ("http: / /example.org/sites/specific/staffhandbook")) (SPWeb web = site.OpenWeb ()) {SPList list = Web.Lists ["29540646-bcab-4beb-8a91-648c1f3178b8"]; // process ...} SPListCollection Is either a Int32 (an index), a string (name of the list), or guid (identifier), then the above, you do Required: Guid Guid = New Good ("29540646-bcab-4beb-8a91-648c1f3178b8"); SPList list = web.Lists [guid];

c# - EF4 Poco Issue Mapping Types Same Name Same Assembly Different Namespaces -

मुझे EF4 और प्रॉक्सी पॉकोस के साथ एक समस्या का अनुभव है। मेरे पास उसी विधानसभा में एक ही नाम के साथ 2 वर्ग हैं लेकिन अलग नाम स्थान : उद्धरणमॉडल्स.कैश भुगतान ऑर्डरमोडल्स.कैश पेमेंट यह ठीक संकलित करता है लेकिन रनटाम ईएफ पर निम्न अपवाद फेंकता है: निर्दिष्ट स्कीमा मान्य नहीं है। त्रुटियां: \ r \ n सीएलआर प्रकार का ईडीएम प्रकार के मानचित्रण अस्पष्ट है क्योंकि कई सीएलआर प्रकार ईडीएम प्रकार 'कैश भुगतान' से मेल खाते हैं। पहले CLR प्रकार 'QuoteModels.CashPayment' मिल गया, हाल ही में सीएलआर टाइप 'ऑर्डरमोडल्स। कैशपैमेंट' क्या काम करने के लिए अलग-अलग नामस्थानों के साथ एक ही विधानसभा में समान नाम वाले कक्षाएं हैं एफएफ 4 के साथ? क्या मुझे उन्हें अलग-अलग नाम देना होगा या उन्हें एक और विधानसभा में स्थानांतरित करना होगा? मैंने एक काम पाया है-आस-पास यह एक बहुत ही स्पष्ट काम है- जो कि गैर-आदर्श है, लेकिन मुझे लगता है कि मैं इसे पर्याप्त रूप से हमारे लिए पर्याप्त कहने जा रहा हूं जब तक कि इसे ठीक करने के लिए ईएफ 5 बाहर नहीं आ जाता। संक्षिप्त उत्तर: ...

How to rename XML attributes from Java classes using JAXB annotations? -

मेरे पास यह क्लास निश्चितता है: @ एक्सएमएलआरूट एलेमेंट लोक वर्ग आरएस रूट {निजी स्ट्रिंग _वर्जन; निजी स्ट्रिंग _xmlns_content; @XmlAttribute () सार्वजनिक स्ट्रिंग get_version () {रिटर्न _ वर्जन; } @ XmlAttribute () सार्वजनिक स्ट्रिंग get_xmlns_content () {return _xmlns_content; } सार्वजनिक शून्य सेट_वर्जन (स्ट्रिंग संस्करण) {_version = version; } सार्वजनिक शून्य set_xmlns_content (स्ट्रिंग xmlnsContent) {_xmlns_content = xmlnsContent; } सार्वजनिक आरएसएस रूट () {सुपर (); This._version = "2.0"; This._xmlns_content = "http://purl.org/rss/1.0/modules/content/"; }} और यह इस XML को उत्पन्न करता है: & lt; rssRoot xmlnsContent = "http://purl.org/rss/1.0/moduleules/content / "संस्करण =" 2.0 "/ & gt; हालांकि, मुझे xmlnsContent को xmlns: content और rssRoot , आरएसएस । मैं यह कैसे कर सकता हूं? मैंने ग्रेटर से ऊपर और संपत्ति घोषणा के पास @XmlAttribute (name = "xmlns: content") के साथ कोशिश की, लेकिन कोई भाग्य नहीं। यह...

ruby on rails - Is there an easy way to have backgroundrb started with server? -

Is there an easy way to restart the background when the server is rebooted? Ex What will happen if your hosting is using Mongrel Cluster and you have access to it (besides start / stop), then I am one of the solutions found in the forum, background checks with check for PDR The code snippet is present in the plug-in (if it does not start with ADF or system) etc. Just your thoughts My solution: Add system call to bacgroundrb before running the script / server in Rail # ATO start backgraud RB # / div>

jquery - Condition if there exists any event at specific day -

I have just modified some functions such as to save extended drag and a timestamp (start and end) in a hidden input Modify (I send this information to MySQL) but one of the conditions is that the event I was dragged may not exist with any other event in one day. Is there any way in the fullcolor that can tell me that this situation has been completed? Thanks for the reply :) You can implement the function so that Could it be asked to see if there are events that overlap one who has been removed?

jsf - parameter in URL jsf2 -

I need this link: To remove from the id A code like this: HTTP request request request = (HTTPSERT request) Facsontax. Gate Current Instance () GetExternalContext (). GetRequest (); String clip id = request.getParameter ("id"); When I run it on Tomcat, I get: Message / Owner / Pager / clip.jsf Embedded = 9099 The details requested resource (/OnAir/innerpage/clip.jsf&id=9099) is not available. When I call it & amp; If id runs without id 9099 then it runs fine. How can I run it? Is the separator character url between path and query string ? , No & amp; & amp; for multiple parameters in the query string; is the separator character, e.g. name1 = Value1 & amp; NAME2 = 2 value & amp; NAME3 = value3 . If you ? , the query string will be seen as part of the path in the URL, so you will not get an HTTP 404 page / resource, as you came across. Therefore, this link should work He said, there is a better way to reach the reque...

Little vim regex -

मेरे पास ऐसे स्ट्रिंग हैं जो इस तरह दिखते हैं: '../ DisplayPhotod6f6.jpg? T = before & amp; Amp; tn = 1 & amp; amp; amp; आईडी = 130 ' , और मैं प्रश्न चिह्न के बाद सब कुछ निकालना चाहता हूं, जैसे ' ../ DisplayPhotod6f6.jpg ' s /\(.\.\./} प्रदर्शनफ़ोटो। \ {4,} \। Jpg \) * '/ / 1' / g यह regex कुछ पर कब्जा कर रहा है, लेकिन सभी घटनाओं, आप देख सकते हैं क्यों? मैं मैक्रोज़ का उपयोग करेगा , कुछ समय पहले regexp (और इंटरैक्टिव) की तुलना में सरल: qa / displayphoto & lt; enter & gt; और फिर कुछ @ ए , या 20000 @ a सभी लाइनों के लिए जाने के लिए।

Best way to load module/class from lib folder in Rails 3? -

Since the latest rail 3 release auto-loading modules and sections do not come from lib, the best way to load What will happen to them From github: Some changes were made to this commitment: do not automatically load the code in * lib * for applications It requires them to require it) It treats an app close to an engine (code in Lib is still autoloaded for plug-in); , config / application has a setting in Rb wherein you can specify directories that contain the files that you want to auto-load. From the application.rb: Custom directories with # class and module you want automatically loadable # Config.autoload_paths + =% W (# { Config.root} / extras)

python - Django, Borg pattern, API calls, caching results -

I am using an API from a different site which returns a 'pricepoint URL' which is used by my user virtual goods Use to buy. I should cache those results for at least one hour, because they do not change the value points of their system very much (and we want to save both of them and their bandwidth.) After searching singleton in Python, I searched the Borg pattern, which also looks cooler, so I did the same: def fetchPrices (): # ElementsTree returns to get prices using urllib2.urlopen () Student # Perrs results Price PriceStore (): __shared_state = {} def update (self): if self.lastUpdate is no (Datetime.now () - self.lastUpdate) .seconds & gt; = 3600: self.prices = fetchPrices () self.lastUpdate = datetime.now () Alif self.lastUpdate is none: come back: self.lastUpdate = datetime now () - Timeliness (hours = 1) self.update () Def __init __ (self): self .__ dict__ = self. _ Share_state self Unknown person = no one himself. Update () The idea is to use it as f...

php - Write to htaccess file -

I am having problems with the idiots who come to my site and are just humiliating, I can ban their account and Then from xxx.xxx.xxx.xxx I can deny in the htaccess file. Can I do something else to bring them back? The main reason for this question is, what is the best way to deny HTACAC as an option in my admin panel? Thanks code $ $ $ ['REMOTE_ADDR'] is present in your restricted list, then php echo just a "go" message. Steven said, as you can change numbers better by changing the numbers from IP to ip2long () using the numbers to find the database, because this string Will be more skilled than searching.

IronPython - how to rename a folder name -

उदाहरण के लिए: C: \ Program Files \ Music_Files को C: \ Program Files \ MusicFiles के नाम से कैसे बदलें और अगर आप इसे अजगर तरीके से करना चाहते हैं: import os os.rename ("C: \\ प्रोग्राम फ़ाइलें \\ संगीत_फाइलें", "c: \\ प्रोग्राम फ़ाइलें \\ संगीतफ़ाइलें")

python - Django Admin "Helper" Functionality Not Working on Server -

In my local host Django administrator, I was able to fill the date and time zone by clicking on "date" and "date" I am Time "Assistant icon next to my pub_date field However, the same administrator does not show this icon on my server, the server-side administrator also does not pop the pop-up window for the field in the related credentials. BTW, my admin media directory is otherwise working correctly. Thank you in advance! L. You probably want JavaScript Ipt files are not properly for this functionality should be appropriate JavaScript load.

asp.net - Does Forms Authentication work with Web Load Balancers? -

Image
I am working on a web application which is using form authentication. & lt; Authentication mode = "form" & gt; & Lt; Forms slidingExpiration = "true" loginUrl = "~ / User.aspx / LogOn" timeout = "15" name = "authToken" /> & Lt; / Authentication & gt; When I log in, I see this cookie set in my cookie: The question is when will I put this website into a balanced model loaded? Is ASP.Net Session Cookie Setting? I have not done it clearly in the code, so I think it is behind some kind of scenes in ASP.NET. In addition, if the session cookie is determined by Web server A, then I believe that Web server BB can not recognize it and consider it as an invalid session if this is the case , So I probably do not want to use it, right? You must keep the key of the machine the same and the name should be the same as both machines ... if it did If you go then you should not have any problem load balancing w...

Manipulating Excel Data using Visual C# -

can i pull a dirty tree with git? -

I have a build system that I use to test the code that I am currently working on. I have to like the script to pull the existing code from my workstation's GIT rep as soon as possible. I am trying to quickly draw any change from the original / master with any modified files. More than the definition, modified files are not tracked (unconnected modifications, well, Without a latent.) If you have access then you can definitely copy the work tree, but otherwise, if you want to draw it, then you need to do it. You can do it in a temporary branch, of course, but in some way it should be committed. EDIT: This answer is about dragging with git If you want to copy the file in response to OP (or want to copy an FIP), then you You can do this, but the bottom line is that it is an operation that requires file system access, not a git remote operation.

css - Z-Index in Internet Explorer -

I am trying to get z-index to work in my HTML code . I have seen it in many places, and it says that I need to add a place to my place. I have done this beforehand and it is still not working. Below is CSS and HTML which I have used for z-index . CSS: Place {width: 1000px; Margin-top: 50px; Margin-left: auto; Margin-down: 0 pixels; Margin-right: auto; } .logo {background color: white; Status: Relative; Left: 40px; Swim left; Width: 225px; Z-index: 10; Padding-left: 15px; Padding-bottom: 20px; Padding-top: 20px; } The one you got is correct to implement the z-index: The situation with the relative, fixed or full IE problem is that it does not apply the z-index of an element to the entire document around the world as it is in other browsers. In IE, the z-index is applied only in a stacking context, which is automatically created by any element, which is related to the position, relative, fixed or complete, has been implemented . As a result, you most likely have ...

Sencha Touch and ExtJS -

Touchscreen looks impressive, and EXJECTs look good. I'm evaluating whether I'm going to extjs or spyroot for the upcoming app. Should use. Now that Sean's touch is in the mix, I wonder if I choose Exxes, the port of the app will be easy to port / transfer in the mobile world. is it true? Will I be able to get the same code base for both the desktop browser and the chest touch for the mobile browsers for both extages? If not, how different will the code base be? Just came from an EXTJS meetup where a presentation was about touch with. An app was added later - it was claimed that ~ 40% code can be reused. He said, it was also told that Sekai Touch has a huge iPhone to look and feel, so if you want to free some more platforms, then you can use Sproutcore (and its related mobile framework) You might want to consider.

Order of a newly defined C# array -

In C # 3.0, when I give an array of stars in a method like the following, Can I be maintained or can there be any condition under which the order can change? Is it recorded somewhere I have not seen? CalculateOmniturePageName (new [] {Model.GetOmnitureDomain (), Model.SectionTitle, Model.Title}) Order is OK First item index is 0, next index is 1, and so on. It's defined, see. The Exchange index starts in order to increase the order elements starting with the element in the zero. is a complete (annotated) and an amazingly easy and knowledgeable read.

c# - Anonymous types query or normal query in LINQ -

var emps = x in db where x.id = 100 select x; Var emp1 = x1 in db where x1.id = 100 select new {x}; What is the difference between these two questions? If we use anonymous-types then what performance will increase or what will be the other differences? There is a big difference between those two questions first, the collection of its entity, the second name is an unknown-type return The collection contains a member called 'x' which contains your unit. Access to ampses: emps first (). SomeMember access to emp1: emp1.First (). X.SomeMember The first path is true and natural, the second is strange and not in my opinion what exactly do you want Apart from this, it is also not correct That using an anonymous type here will increase the performance, the object represented by the object is in any way, but at this time you are getting it in less favorable form.

html - JQuery: return values to load callback function -

आंशिक अपलोड HTML पृष्ठ के साथ $ (selector) .load ('/ sitepath', params, function () {...}); विधि एचटीएमएल लेआउट ठीक आता है लेकिन जावास्क्रिप्ट के लिए कुछ अतिरिक्त वैल्यू भी वापस करना अच्छा होगा। आजकल मैं विशेष जावास्क्रिप्ट ब्लॉक को लोड कॉलबैक पर अपने मूल्यों को पढ़ने के लिए HTML लेआउट के अंदर जावास्क्रिप्ट चर के साथ वापस लौटाता हूं। इस तरह के ऑपरेशन के लिए सबसे अच्छा अभ्यास क्या है? पहले से धन्यवाद! मैं JSON और .ajax () के लिए जाना था । एजेक्स ({url: '/ sitepath', डेटाप्रकार: 'जेसन', प्रकार: 'पोस्ट', डेटा: पैराम्स, सफलता: फ़ंक्शन (डेटा) { $ (चयनकर्ता) .html (डेटा.न्यूसेंटेंट); var info = data.additionalinfo;}}); बेशक यह मानता है कि आप अपने सर्वर पर एक JSON स्ट्रिंग बनाते हैं जो कि दोनों को आयोजित किया जाता है, newcontent नाम वाली एक संपत्ति है जिसमें एचटीएमएल मार्कअप और अतिरिक्त इंफोस नाम की एक संपत्ति है।

photoshop - How do I get started in graphics design side of web design? -

In the past years, I have learned the most important languages ​​for web development (CSS, HTML, JS, PHP) and I Well-structured sites But an important part of web design is pictures used for buttons, backgrounds, text, gradients ... besides the main logo The layout of a website is a very important element. However, I do not know how to get started in that part of web design for developing good looking websites. Which tools should be used for that purpose? Do you know good guides? I have read some books about books and Photoshop, but they are usually about graphics design and I am focusing on a guide / books the web Graphic design and even (if posible), focusing on how to use these images properly CSS and XHTML. PD: Sorry for the bad english Thank you! I am definitely not a supporter, and probably not even so much Looks good, but I think that's a good way to do this. The more you practice, the more you learn and improve, the more your designs will be better an...

Associating a variable with a class in C# (for JSON) -

I have to capture the JS provided the API for a project, and this means that JSON using a class Deserialising, and I have chosen to go with the DataContract classes. In any case, different URL APIs are tailored to different JSON outputs. So what am I asking? To see if the DataContract sections are public T GetObject & lt; T & gt; There is no better way of URL to create (string yuri) and it's GetObject & lt; ExampleDataContract & gt; ("Http: // blah /") . The code below shows my current endeavor, which I am thinking is not absolutely good idea, not to mention the fact that if I have ever changed the name space, then I I'm a little fun. PublicT GetObject & lt; T & gt; () {String uri = ""; String type = typef (t). Ostring (); Switch (type) {case "namespace. Example Dot Contract": Yuri = "http://www.example.com/blah.json"; break; } Returns JsonHelper.Deserialize & lt; T & gt; (This.GetJson (ur...

vbscript - How to create a object of java class in excel vba -

I have a Java class ... I have registered in my system (this message has been successfully registered) ..but when I try to create an object (code is given below) is throwing this error because the module is not found..I have set the path. If yes .. .. Dim con set set = CreateObject ("main") The main Java class is in C: \ windows \ Java \ trustlib Please help me..I am new to Vba Excel Check out this description. & lt; Server & gt; ; is the name of the application providing objects.

.net - Rhino Mocks 3.5 failing in TFS integration build while running test lists -

सर्वर बनाएं: TFS 2008, W2003 त्रुटि संदेश: System.IO.FileLoadException: फ़ाइल या असेंबली 'Rhino.Mocks, संस्करण = 3.5.0.1337, संस्कृति = तटस्थ, PublicKeyToken = 0b3305902db7183f' या उसके निर्भरता में से एक लोड नहीं किया जा सका प्रवेश निषेध है .. यह केवल aprox होता है पिछले 2 सप्ताह

windows ce - Embedded xml database with .NET binding -

Does anyone know the embedded XML databases on Windows Can run CE 6.0 and Joe .NET binding is Do you mean something like this: If this is the same That's what you want, I'm sure that the above-mentioned versions (like SqlCE 3.5) will result in similar things with quick search in the above-mentioned sense.

Windows Phone 7 open new email -

How do I open a new email in Windows Phone 7? I only found the solution to use WebBrowser control and to navigate the method with "matching" syntax. Is there a better way? There is another option.

Windows Server 2008 : Speech Runtime - What am I missing? -

I'm trying to get speech recognition to use system.speech on Windows Server 2008. I have created a console application that is Vista Vista Vista. System on Speech. Uses Recognition (SAPI 5.4). Works great on this machine. Tried to install / execute it on a Windows Server 2008 x86 machine. It has .NET 3.5. No luck ... Throwing errors - After the investigation, it was found that there are no identifiers installed by default in 2008. New established, and, all of which were released a month earlier. As I think, runtime is an identifier compatible with WinServer 2008. Tried to run its application again, and still no identifier was found. I can see that an identifier dll is installed here: C: \ Program Files (x86) \ Common Files \ microsoft share \ Speech \ SR \ v10 .1 \ spsreng.dll What am I doing wrong? :) You need to use Microsoft.Speech.Recognition to use the speech platform server is; System Speech. Recognition requires a desktop recognition engine, wh...

visual studio - Automatically deleteting old IntelliTrace recordings -

I've recently seen that I've collected IntelliTrace recordings of 22 GB worth of money. Sorry, let me in IntelliTrace settings No place was found, so that I would get permission to remove them automatically. Is there a solution in its visualization studio or do I have to take care of this? Edit : According to Hans Paccent's suggestion, I submitted one to connect. "> There is currently no setting that will automatically clear IntelliTrace files. Wait for SP1.

flex - Events dispatched by setFormatofRange -

I have a text field on which I want to listen to change events when I use setFormatOfRange () Change text formatting. I have tried all the events till now, such as events. CHANGE or text operation event CHANGE are transmitted only when the actual text changes. Does anyone know what I should listen to? Actually you can get text operation events. CHANGE When formatting changes, but only if you use EditManager, you should create an EditManager object and assign it to TextArea.textFlow.interactionManager and all your format operations should be done through this EditManager object. There are ways to firearm in it. And I do not recommend using setFormatOfRange because it is very slow for a large number of format operations, instead you should use EditManager or ApplyFormatOperation object.

F#: how to elegantly select and group discriminated unions? -

I have a list of shapes: type = size = | Float Board | Float Rectangle * Float A = [Circle 5.0; Rectangle (4.0, 6.0) How can I test a Circle present in one? I can create a function for each shape. Let the headline s = match with S. Division - & gt; True | _ - & gt; The wrong list.exists have a , but I think there should be a more beautiful way in F # except for defining such a function for each shape type. What a | Gt> Seq.groupBy (& lt; size type? & Gt;) You can combine the F # image quote quotation to get a general solution type size = | Float Board | Float Rectangle * Float Let Union Sees (C: Xp. & Lt; _ - & gt; 'T & gt;) = Match C. Lambda (_, Newlykese (UC, _)) - & gt; Tagrider = Microsoft.FSharp.Reflection.FSharpValue.PreComputeUnionTagReader (uci.DeclaringType) Enjoy (v: 'T) - & gt; (Tagreder v) = uci.Tag | _ - & gt; Failed "Invalid expression" a = [Circle 5.0; Rectangle (4.0, 6.0)] | ...

c# - FireFox randomly breaks login? -

Update: I ended my app as the starting point of NerdDinner 1.0. NerdDinner 2.0 had a more robust account controller, so I changed the line line for my account controller v1 altogether. It was at this time that I started to start logging problems with Firefox (confirmed with an amendment rollback). There are several differences in the entire NREAD Dinner 2.0 that I want to apply till I apply them. If someone can keep an eye on the account controller between two tips and tell me what I want to stop from leaving V2 to the extra piece of the puzzle, I appreciate it. I can post any and all of my code as needed. Nerd Dinner 1: NerdDinner 2: I am using an ActiveDirectoryMembershipProvider and with NerdDinner tutorial to authenticate the user. My logins in Firefox are no longer working, but they are working just fine in IE. I have tried to clear all the cache / cookies etc. Also a build-> clean / rebel / build mix. Sometimes I'll work it again but I can not find the source or t...

spss - Replicate "Custom Tables" comparison in R -

I use SPSS everyday but I'm really trying to learn R. What I'm holding is holding back. I easily need to produce tables, banners and cross-tabs for market research. I like the Custom Tables option in SPSS and want to get advice on how to replicate it with R. I believe that there is a ton of profit on RSPSS, one of which has the ability to integrate with latex reproducible report SPSS is a quick exploration (point and click) Great for, but gives much more to packaging it to get desired and deliver acceptable for customers. It is said that R is so powerful, I think I can do everything. If I only need my banner / crosstab, then I can. In short, what are my options for creating reportable tables similar to what I have been given below? I am copying for SPSS syntax command and reference. Citiables / VARS version = Age of Adral Peduayay Maiduk Special prestg80 happy display = default / table age [MEAN F40.3, Wallis Comat 40. 0] + educ [MEAN F40.3, Valued COMMA40.0] + Peduk...

sql server - Incorrect syntax near the keyword 'with' (SQL) -

I have a bit of a weird problem. When I run it on SQL: with as IDHTable (more than SS_ID) by line number (SS_ID from order), line_ID from slide_ash In the form, select slide_show from SDIID) * Using TDO * T1 as TDI internally slide_show T. on T1. Ties_ID = Join T0.SS_ID T1.row_id between 0 and 1 Order t1.row_id asc; Runs in SQL Express and returns the first line, as it should (similar to the range 0,1 in MySQL). However, when I run it in Delphi via the TADOQuery object, I get an error in the headline. I'm guessing ADO Objects like to do something, but I do not understand. Note: This is the correct SQL which I am passing in the ADO object. Anyone have any ideas? Try: SELECT t0. * From (SE_O_ID) (SD_IND by SR_ID) (SR_ID by ARDIIP, Slide_Show from SS_ID) AS T1 Join Join T1 on T1 as Slide_Show SSIID = T.SS_ID WHERE T.OriIIID 0 and 1 ORD BY T.OoIID ASC;

c++ - boost program_options accept all values after last flag -

Is there a way to gather all values ​​after a specified argument with boost :: program_options? Although there are two precautions I need to take care of, I need to accept unrecognized arguments, and I have to accept the values ​​in which the dash can happen I have tried to play with command_line_parar vs. parse_command_line and I either Can get unrecognized or value in which the dash is, but not both. Example: ./myprog Ignore1 Ignore2 - Accept 1 - Highly Accepted 2 - Accept all 1 2 -3 4 Verifying this to me is really no difference - All approved final flags have been passed; I'm just looking for logic that gives the strings vector for everything after that flag. tried? #include & lt; Boost / program_options.hpp & gt; # Include & lt; Boost / foreach.hpp & gt; # Include & lt; Iostream & gt; #include & lt; String & gt; Name space po = boost :: program_options; Int main (unsigned int argc, char ** argv) {std :: string foo; Std :: vector ...

static - linkage error with non-member functions -

------------------ blah.h ----- ------------------- #pragma नाम स्थान एक बार कुछ नामस्थान {स्थिर शून्य कुछ विधि () {}} ----------------- Blah.c -------------------------- #include "blah.h" int main (int argc, char ** argv) {SomeNamespace: : someMethod (); वापसी 0; } उपरोक्त काम ठीक है लेकिन अगर मैं 'स्थिर' को छोड़ देता हूं: > stdafx.obj: त्रुटि LNK2005: "शून्य __cdecl कुछ नामस्थान :: कुछ मोड (शून्य)" (? SomeMames @ someNamespace @@ YAXXZ) पहले से ही Dude.obj 1> ... \ Debug \ Dude.exe में परिभाषित है: घातक त्रुटि LNK1169: एक या अधिक गुणा अधिक परिभाषित प्रतीकों पाया मैंने पढ़ा है क्या 'स्थिर' गैर सदस्यीय कार्यों के लिए करता है ... ... ... इसे आंतरिक लिंक देना ताकि यह संकलन इकाई के बाहर दिखाई न जाए - यानी, (ओवर-सरलीफाइड) लिंकर नहीं करेगा इसे देखें। 'स्थैतिक' का यह उपयोग नापसंद किया गया है, और इस सीमा को लागू करता है कि फ़ंक्शन का उपयोग टेम्पलेट तर्क के रूप में नहीं किया जा सकता है। आधुनिक तरीका यह है कि किसी अज्ञात नेमस्पेस में...

How to fill a line with character x up to column y using Vim -

How can I fill a line with a specific column using a certain column using Vim? For example, imagine, the cursor is on four columns and I want to fill the rest of the line with the remaining line above the 80's dash. How do i do this There is a function to implement whatever you ask, and a little more. This fills the line with its current end of the line, rather than the position of the cursor It currently compels a single space between lines and between repeating characters This allows you to specify a string to fill the remaining line The function is defined as follows: It uses the Vime's textwidth setting, to determine how much the line And should "Fill the remaining line with the characters function! Fillain (str)" Wanted to two added to the total length tw = and textwidth if tw == 0 | Let's do two = 80 "To determine the total number of representative" reps = (tw-col ("$") / len (a: str), to calculate the total numb...

java - What is needed to add emailing capabilities to web application? -

I have a Java web application for which I would like to add emailing capabilities, however, I have uncertainty what is required for it Complete this, especially I want my app to be able to: Send email confirming sign-up Send send Allow email to be sent to one of my app's domain i.e. dan@my-app.com Ray research it seems that I need an IMAP server like postfix and possibly courier or a postal transfer agent (MTA); But I do not understand the need for an IMAP server. Thank you. You can send your web for SMTP-e-mail creating and sending Code is required inside the app, usually JavaMail is used for it, and you can either attach it to your web application or (preferred) right-configured example through JNDI near the web container. . This seller is specific. If you do not have an SMTP-server (often it is an exchange for Windows stores) to connect to JavaMel, you are running one (ask your IT administrator) or you can use Google Mail or Hotmail or other if it's ...

iphone - Windows mp3/mp4 streaming -

I need streaming audio / video data from iPhone server to iPhone application. Do I know any solutions for this? ? I know that this question is a bit old but if someone else I did, Wanted to point in. Microsoft now offers this capability with IIS 7 and IIS Media Services 4.0.

Sending text messages with perl? -

Is there a way to send text messages for free or cheap with Pearl? I see a lot of things on CPAN, but they all cost a little. Is there any way to send any email as a text message? Some providers have such email addresses, such as formatted: 1234567890@sms.provider.com.

abstract - Using extends in Java gives enclosing instance error -

I am trying to use expansion in Java. I created a quick table to expand in detail. , And then extended it. However my IDE is now saying that "A brief example that requires abstract_class" and provides my constructor with major error rows for derivative organs. What is happening on the earth? The intangible class does not need any kind of constructor. For reference, I am using the extension rather than the tools in the part because the implementation details which I do not want include every derived class which equally uses the reflection on it. Edit: I have read some responses, what is a static (or non-static, for that matter) class in the name of God? And just to bother you all, did not solve this problem. // some_class.java public class some_class {public static abstract class abstract_class {...} ...} / / model Java public class model in some_class.abstract_class {public model (...) {// There is no ending example! serious error. ...} ...} And I thought that C...

How to write from n-th row to a file using perl -

I have a source text in a file and is looking for code that is the second (or EN) in general Print) Row and print a different file from this file. Any ideas how to do that? You basically do it in Perl and by special variables ( .. Can be used internally), in which the current line number is: prints from # stdin to 3 to 8 lines: while ( Or from the command line: perl -wne'print if 3 .. 8 '& lt; Filename.txt & gt; & Gt; Output.txt You can also do it without a pell: head -n3 filename.txt | Tail-N1 & gt; & Gt; Output.txt

java - Logarithmic Mouse Movement -

OK, this would probably be a simple question to answer. I did not have a mathematical class with Logrimad in some years, so I apologize. So I have a USB controller that I use using the left joystick to control the mouse on the screen. Now how it works, the controller doubles between 0.00 and 1.00, depending on how far the joystick is in the direction (0.00 center, 1.00 pushed all the way). I use it to adjust the speed of the mouse motion movement, which by multiplying the returned value at a given speed (double * speed returned) it gives me a linear motion, but the accuracy of the mouse and the things on the screen For the purpose of clicking, I want to consider it more logarithmic, so when it is hard to slow down, and then the speed increases when you move joystick Number way you can get good speed to go on the screen, while slowly gaining running good sensitivity. So I need help with the formula, because I'm sure it's very easy. Besides, I am working in Java. Right now my...

shell - escape string and make it unix ready -

I would like to take a string that can contain many places and do the following: 1) One Change whitespace with underscore 2) Remove characters that are not AZ or 0-9 3) Make the result all lowercase Then a variable Any ideas able to use the result in the form? I think you can do whatever you like. variable = $ (echo "$ {input}" | tr az az | tr [: empty:] _ | tr -cd [: alnum:] _) Explanation: tr az az - translate the uppercase letters to lower. tr [: blank:] _ - Translates the blank to underscore. tr -cd [: alnum:] _ - Delete all characters that are not alphanumeric, or underscores. Note: If you want to remove the underscores before converting the empty space into underscore, then the tr-cd _ can be added near the beginning of the pipe chain.

slideshow - Simple Jquery Slide show -

I'm looking for a simple jquery slideshow option that pulls photos from a directory. I do not know very well about writing this type of thing and whatever I have found, actually I do not want to do anything (draw photos from the directory) or there is a lack of clear instructions on my head. Any suggestions would be greatly appreciated. You will get some description examples Regards.

.NET Settings File Available Types -

When a .NET settings modify the file, then I am given a choice of type of settings. However, my Not available in the 'Browse' window as well as accessible by the project. What determines whether any type of setting can be used for file settings? I'm making a type of I would like to be able to save, and I need to know that I need to change it to use it in a setting file. (Vs 2008 - .NET 3.5) What do you need to do With "hack" .setting and .designer.cs files, documented as small If you create a custom type in your project, such as: Namespace MyApp {Public Structure MyType {public string StringValue; }} To show it as an option in the Settings Editor, you must first add the setting value that uses the same type of files as follows: Settings file.Settings: & lt; Setting = name = "settings name, where" type = "my app. Mytype" scope = "user" & gt; & Lt; Value profile = "(default)" /> &...

Besides Boost, where can I get a single-file smart pointer implementation for C++? -

I want to start using Smart Pointers in my code but I really do not want to use Boost as it is too big is. Can anyone recommend a file smart pointer implementation? Thanks, Boda Sido Unfortunately, Smart Pointers are not quite simple, so implementation can be quite complex. If you are using G ++, you can get things like Shared IPTR without using Boost: #include & lt; Memory & gt; using namespace std; Int main () {shared_ptr & lt; Int & gt; P (new int); } but you have to compile with the -std = c ++ 0x flag.

Should I choose ActivePerl or Strawberry Perl for Windows? -

इस सवाल का पहले से ही एक उत्तर है: 11 जवाब मैं पूरी तरह से नया हूँ पर्ल, लेकिन मैं इसे बाहर की कोशिश करना चाहता हूँ मैंने विंडोज प्लेटफॉर्म के लिए उपलब्ध दो प्रतिद्वंद्वियों के वितरण के बारे में पढ़ा है (मुझे लगता है कि बस Perl अन्य ओएस पर है :) का कहना है कि यदि आवश्यक हो तो सीपीएएन मॉड्यूल को संकलित करने के लिए स्ट्रॉबेरी अतिरिक्त देव टूल के साथ आता है। मुझे बहुत अच्छा लगता है। यह भी कहता है कि ActivePerl में बहुत सारे प्रीपेक्ज्यूड मॉड्यूल हैं जो पीपीएम के साथ स्थापित करना आसान है I बहुत अच्छा लगता है! उन दोनों के बीच एक स्पष्ट व्यापार बंद है और मुझे आश्चर्य है कि मुझे आरंभ करने के लिए क्या चुनना चाहिए? अगर मैं एक दूसरे को पलायन करना चाहता हूं तो यह कितना कठिन है? संपादित करें: मैंने दोनों ही हफ्तों के लिए दोनों वितरण चलाए। मैं वास्तव में दोनों पसंद आया जो एक अच्छी बात है! इनमें से किसी एक के साथ गलत नहीं हो सकता। मैं ActivePerl के साथ जा रहा हूँ क्योंकि यह ऑफ़लाइन प्रलेखन (HTML में) - उन लोगों के लिए एक महान जीवन-उद्धारकर्ता के साथ आता है जो सड़क पर है...