Posts

Showing posts from February, 2010

audio - how do i set output of submix voice in XAudio2? (metro) -

I tried to use the SetOutputVoices function, and the constructor parameter, but both results resulted in an XAUDIO2_E_INVALID_CALL result when used on a submix The voice goes Docs says that you receive this error by calling it an audio callback, but I am not. I have also tried to call it before starting the audio engine. The same way works for the source sound, so I'm pretty sure I'm not passing a bad XAUDIO2_VOICE_SENDS structure. Submix voices have processing commands, specified by process station parameters in IXaudio2.CreateSubmixVoice You can only send output to a submix voice with low processing platform and all my launch was on the default processing phase (0).

- Where Developers Learn, Share, & Build Careers

I have to show a warning box when click on the button but nothing happens I'm not sure that one thing If I want to unify the identifier var in the signature of the function, then function popup (var message) & Lt; Title & gt; Trial ... & lt; / Title & gt; & Lt; Script type = "text / javascript" & gt; Function popup (var message) {var a = 5 var 2 = 3 warning (message) if (one * two == 15) {warning ("you were right")} other {alerts ("you were wrong")}} & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; Hello, I'm here & Lt; Br / & gt; & Lt; Input type = "button" value = "click here" onclick = "popup" (this is my message ")" /> & lt; / body & gt; & lt; / html> gt; IE returns the following error details: Webpage error description User Agent: Mozilla / 4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trent / 4.0; SLCC 2;...

python - Compiling numpy with OpenBLAS integration -

I'm trying to install numpy with OpenBLAS I am but I need to write how to write the site.cfg file, as on the loss When the installation was followed without errors, but the performance decreased on the increase in the number of threads used by open BLAS (controlled by environmental variable OMP_NUM_THREADS) from 1. I'm not sure that the OpenABAS integration is correct. Anyone can provide a site.cfg file to get one. PS: OpenBLAS integration in other toolkits, such as Python based, promotes increased performance in the number of threads, on the same machine. I just compile inside numpy Compiled OpenBLAS : $ git clone https://github.com/xianyi/OpenBLAS $ Cd OpenBLAS & amp; Amp; If you do not have administrator rights, then you can set PREFIX = in a directory. Where you are Make sure that the directory is libopenblas.so , it is in your shared library search path. To do this locally, you can include your ~ / .bashrc file in the lin...

html - How To Create A Responsive Horizontal Layout Using CSS? -

Image
I work for a creative design studio who likes to break norms and conventions to create unique website layouts and Recently we have started the development of horizontal website layout while the horizontal website layout looks "cool", I have worked to make them liquid and responsive to work so far, as if you have a vertical grid base The can out of the website. A website with a container generally for verticals that holds a percentage width on your container element, then set the maximum width, with a responsive layout, your content is infinitely far from the page. Scrolls, it can vary in width, especially if the content is unique and therefore the formula target / reference * 100 does not actually work (or what is it?). Do you have any way of working on a grid-based responsive website to be responsible for the heights, padding and margins on the elements? I do not feel like using Javascript but a CSS fix would be ideal. I'm trying to create an example of the typ...

- Where Developers Learn, Share, & Build Careers

I'm trying to set up my controller to answer the Ext.XTemplate events And to avoid this, the hassle of writing a bunch of hacked javascript Unfortunately, I can not find a way to either 1) Log on one click event or 2) Use componentQuery to register XTemplate : {reportChooser: 'xtemplate [id = jobReportChooser]'}, control: {reportChooser: {tap: 'OnAnonymousTap '}}}, Is there a way to do this in the controller or at least listen to the audience? I could not find a direct reference because there is no built-in event in XTemplate But here's a nice solution that's a bit cleaner. To start the method get started: function () {this.element.on ({tap: function (e, Dom). {Var El = Ext.get (e.target), elParent = Ext.get (e.pare NT), fireworld; Window.jobAction = this; Window.jobEl = el; If (el.hasCls ('Job- Start ')) L. Parent (). Hackles (' Job-Start ')) {fireEvent =' start '; } And if (L HASCLS ('Job-Hold')...

- Where Developers Learn, Share, & Build Careers

I have an asyncTask that starts on boot (called by a service) in some cases i I would like to send a notification to get started. My problem comes when I try to make a call: Notification Manager No Manager = (Notification Manager) getSystemService (ns); Where Eclipse shows me an error because AsyncTask is not foundSystem System Service Because the getSystemService reference class is a method. See it. Before calling the function, create a reference variable in your AsyncTask. Then start it in your constructor, that is, context reference; Public MyAsyncTask {context = contextin;} Then use this reference variable to call your function: NotificationManager notManager = (NotificationManager) reference .getSystemService (ns); When you are performing asyncTask, do not forget to input your reference: MyAsyncTask mytask = New MyAsyncTask (getApplicationContext ()) ; Mytask.execute (); I also felt that an IntentService would be more suitable for your needs.

objective c - iOS UIView animation (animationWithDuration:) with multiple options -

मैं UIView एनीमेशन ब्लॉक को animationWithDuration के साथ कार्यान्वित करने की कोशिश कर रहा हूं और कई विकल्प यह ठीक काम कर रहा है, सिवाय इसके कि केवल तीन विकल्पों के बजाय मैं निर्दिष्ट विकल्पों में से एक का उपयोग कर रहा हूं। क्या मुझे विकल्प निर्दिष्ट करने की संख्या की संख्या या विकल्पों के कुछ संयोजनों पर एक सीमा है? नीचे मेरा कोड है "स्टाररोटेटर" एक UIImageView में एक UIView में है कि मैं घूम रहा हूँ मैंने कोष्ठकों में विकल्पों को लपेटने की कोशिश की, लेकिन उसने या तो काम नहीं किया। ऐसा लगता है कि यह केवल UIViewAnimationOptionRepeat विकल्प को लेता है और अन्य दो को अनदेखा करता है। [UIView animateWithDuration: 30.0 विलंब: 0.0 विकल्प: UIViewAnimationCurveLinear | UIViewAnimationOptionRepeat | | UIViewAnimationOptionBeginFromCurrentState एनिमेशन: ^ {स्टार रॉटर। Superview.transform = सीएजीफीन ट्रांससंकेत मेकोटेशन (एमओपीआई); } समापन: ^ (BOOL समाप्त) {}]; क्या आपने देखा है कि दो स्थिरांक जिनका उपयोग आप विकल्पों के रूप में कर रहे हैं उनमें शब्द शामिल हैं एक ...

xml - How to get $.ajax raw request response text -

I $ Can I get cross domain XML data by setting up by using Ajax datatip to jsonp . The good news is that I can get the data correctly by checking HTTPPx response data. The news I received is an XML that can not be printed or parsed by the Ajax function, it reports incorrectly to me, the data was stopped. So I thought I could get the raw feedback text before parse and before it, stop it, then I can parse the text by myself. Is this possible? What should I do? There is nothing that you can do on your browser, but I wiredhark You can view raw packets, and see the HTTP request / response. Then good luck!

- Where Developers Learn, Share, & Build Careers

I am trying to URLet RSS / Atom feed from my site's news page "Post" URL. This works for me as a logged user in the browser. I want to url a file because it looks super fast way to get the count of pages and date (& lt; 2 seconds). Do this via SitesApp page recurrence or 5 to 25 seconds of search). The site is a small content with lightweight content & lt; 50 pages. Anyway, so I want to url the URL of my site and I think that I need the oyoth area and will receive a token. I use it on the "https: / /sites.google.com/feeds/" GDAT sites API and on Playground 2.0 and this document works for API feed url but my site's Post. Not for XML URL So my question is: Is it possible to use ULFET with UAL token for the use of pages? I have a 401 "token invalid - there is a wrong scope in Athshub tokens" when I try to access it in the playground. Posts.xml? What out scope are I using to get a token? URLFchap currently only supports OAuth 1...

cocos2d iphone - cocos2dX setBlendFunc -

My image shows that it is too black I use the function setBlendFunc . But when the phantom does not run animate, it will work. How can this be fixed, to run, does not work? CCSprite * effectSprite = CCSprite :: create ("init_black.png"); EffectSprite-> Setbendfunk (ccBlendFunc) {GL_ONE, GL_ONE}); SolidarSpritt * Enemy False = (SolidarPrint *) (enemy-> ObjectItInx (0)); CCARA * Status = Enemy Solider- & gt; Solidarposition; Status- & gt; Maintaining (); Cout & lt; & Lt; (CCString *) Status-> Object at Index (0)) - & gt; Intu () & lt; & Lt; Endl; EffectSprite-> Setup (CCP (CC string *) Position-> ObjectOutIndex (0)) -> gt; Intave (), ((seistring *) position-> ObjectItendex (1)) -> Intuue ()) ); This- & gt; AddChild (effectSprite); String effect string = "effect"; If (this-> direction) {msg.property [1] .append ("L"); } Other {msg.property [1] .append ("R"); } CCAnimate * effectAct...

- Where Developers Learn, Share, & Build Careers

मैंने Jsp XHTML टेम्पलेट का उपयोग कर एक छवि प्रदर्शित करने के लिए एक सरल कोड लिखा है लेकिन यह काम नहीं कर रहा है लेकिन जब मैं Jsp HTML टेम्प्लेट का उपयोग कर रहा हूं I ... & lt;? Xml संस्करण = "1.0" एन्कोडिंग = "आईएसओ -885 9 -1" ? & gt; & Lt;% @ page language = "java" contentType = "text / html; charset = आईएसओ -885 9-1" पृष्ठ एन्कोडिंग = "आईएसओ -885 9 -1"% & gt; & Lt;; DOCTYPE HTML PUBLIC "- // W3C // डीटीटी एक्सएचटीएमएल 1.0 ट्रांसक्रिप्शन // एन" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; html xmlns = "http://www.w3.org/1999/xhtml" xmlns: f = "http://java.sun.com/jsf/core" xmlns: एच = "http: // जावा sun.com/jsf/html"> & Lt; शीर्ष & gt; & Lt; meta http-equiv = "सामग्री-प्रकार" सामग्री = "पाठ / html; वर्णसेट = आईएसओ -885 9 -1" / & gt; & Lt; शीर्षक & gt; कार विवरण & lt; / title ...

WCF: How to change the processing order of messages? -

My wcf-service should process messages from customers in a particular order. If the message contains the same tag (defined, for example, as a parameter of operation), these messages should be processed sequentially, they can not be processed individually in separate threads. Messages with the same tag can be obtained from different clients. How to implement this requirement? is an integration design pattern that tells you what to do to implement the commands of your messages Will happen.

html - How to pass client side javascript return value to ASP classic server side -

जावास्क्रिप्ट कार्य परीक्षण (एबीसी) {var ddlArray = नई सरणी (); Var ddl = document.getElementById ('AdjusterList'); के लिए (i = 0; i & lt; ddl.options.length; i ++) {ddlArray [i] = ddl.options [i]। मूल्य; } Var indexsel = ddl.selectedIndex; वापसी सूचकसूची; } एएसपी strArrayCRN = osRecordSet.RecordCount strArrayCRN2 = osRecordSet2.RecordCount मंद StrCount StrCount = strArrayCRN + strArrayCRN2 HTML + एएसपी & lt; चयन नाम = "AdjusterList" id = "AdjusterList" onchange = 'परीक्षण ( "के & lt;% = StrCount% & gt;")' & Gt; & lt;%% & gt; & Lt; विकल्प मान = "0" & ​​gt; कृपया सूची से एक विकल्प चुनें। & Lt; / विकल्प & gt; & Lt;% जबकि (osRecordSet.EOF = False)% & gt; & lt; विकल्प मान = "& lt;% = osRecordSet.RowPosition% & gt;" & gt; & LT;% = osRecordSet.Fields ( "नाम")% & gt; & lt; / विकल्प & gt; & LT;% osRecordSet.Move...

objective c - Assist me understand ABPeoplePickerNavigationController Class -

Image
I am working on the iOS address book, but when there are some problems, I say that Prompt the user to choose a person's record: The ABPeoplePickerNavigationController class allows users to browse the list of their contacts and select one person and at your option, one of that person's properties. To use people's selector, do the following: Create an example of a class and start over. Set up a delegate, which should adopt the ABPeoplePickerNavigationControllerDelegate Protocol. Alternatively, set the displayed properties in an array of properties that you display. The respective constant is defined as integer; Wrap them with a number in a NSNumber object: The method can be inserted into an array without obtaining any object. People animated the current Model Week Controller as the Modular View Controller: The method is recommended that you present it using the animation. Point one says Create an example of class and start , in its init methods In...

interfacing - How to interface a memory hardware to a C++ program? -

If I have a special hardware unit with some storage that is connected to the computer and is a memory map, its storage address Category 0x55500000 is accessible in 0x555fffff How do I interface this hardware unit in my C ++ program so that dynamic memory is allocated in this hardware unit, not in memory of my computer? I need to implement the class in which it has the following function. Zero * allocMemoryInMyHardware (Int NumberoffBets TouAllocate); which assigns the pointer to the allocated memory chuck, or if it is unable to allocate You have to write your own allocation, search the Internet for a sample code and zoom it if you have simple requirements, the basic allocation can be written from scratch in 2-4 hours. This approach will work if your platform does not have virtual memory management and the code can directly access the boundary of your address otherwise you need to plunge into the development of the driver on your platform. Typical strategy is to add hea...

java - close() was never explicitly called on database exception recieved in android sqlite -

"इनटडेटाबेस ()" को "inserRecord ()" कहा जाता है लेकिन यह हर बार अपवाद दिखाता है और insertreckord () में मैंने closeDatabase () भी कहा है जिसमें मुझे डीबी (डेटाबेस) को बंद करने के लिए कोड है। 1 डेटा को सम्मिलित करने में त्रुटि रनटाइम: प्रोग्राम के शुरू में मैं insertRecord () का उपयोग कर रिकॉर्ड दर्ज करता हूं जो ठीक काम करता है, लेकिन रन टाइम पर जब मैं रिकॉर्ड सम्मिलित करता था तो यह नया पंक्ति आईडी देता है लेकिन जब मैं तालिका से चुनें तब यह दिखाता है कि अंतिम सम्मिलित रिकॉर्ड 2 हाशमैप में स्टोर कर्सर: हैशप में कर्सर को स्टोर करना अच्छा है यदि उस ऐप में जरूरी है। सार्वजनिक SQLiteDatabase initDatabase () {Log.v ("XIG" , "डेटाबेस बनाने या खोलना।"); Db_helper = नया डाटाबेसहल्पर (संदर्भ, डीबीएनएम्, 1); डीबी = संदर्भ.ओपेनओरक्रेटडेटाबेस (डीबीनाम, SQLiteDatabase.CREATE_IF_NECESSARY, रिक्त); DB.setVersion (1); DB.setLocale (Locale.getDefault ()); DB.setLockingEnabled (सही); डीबी = db_helper.getWritableDatabase (); वापसी डीबी; } ...

asp.net mvc 3 - Use Container/DependencyResolver in other dll -

I try to familiarize myself with MVC3 and autofac But I had to face a small problem that I am having trouble solving the problem. I am integrating autofac with MVC3 and all work well, pages are loading properly Dependencies are being injected and it is good. Do I have to provoke how to use autofac for container or MVC for DependencyResover class library in the project. I am trying to create a stable class which will help me manage domain events. I just want to be able to call the method with the event parameter and everything should be handed over by this class. Here's the code: Public Fixed IContainer Container {get; Set; } Increase Public static void & lt; T & gt; (TE) where T: IDomainEvent {foreach (eventhandler; IEnumerable & lt; EventHandlers.Handles & lt; T & gt; & gt; & gt; ()) {eventHandler.Handle (e) on eventEdemainEvent {foreach (DomainEventManager.Container.Resolve & lt; ); }} As you can see it is very straight...

Ruby unpack to Python -

I'm trying to convert some Ruby code into Python. I'm having trouble with this line: digest :: MD5 digist (message) .mpack ('L *') I think Is that I should use the struct module and hashlib , but if I do: struct.unpack ('L', Hashlib.md5 (message) .digest ()) I get this error: struct.error: unpack length of 4 bytes of a object Required What should I do? Thanks, Rubik P.S. Output should be a list of 4 x 32 bits: irb (main): 039: 0> Digest :: MD5 digest ('hash'). Unpack ('L *') = & gt; [631892218, 19671 99 614, 3683860, 94, 4130231798] "post-text" itemprop = "text"> There is no support for arbitrary length ( * Operator). You must specify a criminal manually. Fortunately, the Composition module assigns you a certain length, and the Hashlib module tells you how many bytes are expected before By entering L you can specify the number of times to apply the pattern. And there is a s...

windows - GetKnownFolderPath return empty string -

I am using this code (Delphi 7) to get users' cookies folder under win7. function MyCookieDir: string; Start the result: = ''; If Win32MajorVersion & gt; = 6 Then result: = GetKnownFolderPath (FOLDERID_Cookies, 0, 0); End; On some pc the function returns an empty string. Why? Many thanks By solving this issue: Check for price instead If incorrectly returned, CRIID serial Remy and David Thanks for

wpf - Fill Dataset From DataGrid -

When a dataset is tied to the datagrid, then what property holds a dataset; If it is; So can this dataset return to the dataset? I do not think there is an asset which gives the dataset from the datagrid? If you have a datagrid in xaml: & lt; Grid & gt; & Lt; DataGrid AutoGenerateColumns = "True" Height = "200" Horizontal Alignment = "Left" margin = "41,32,0,0" name = "DataGrid1" vertical element = "top" width = "200" /> & Lt; / Grid & gt; and you are assigning the dataset to the dataset like: dataGrid1.ItemsSource = ds.Tables [0] .AsDataView (); Then you can do the following: DataTableDT = (DataView dataGrid1.ItemsSource) .toTable (); Dataset dsNew = new dataset (); DsNew.Tables.Add (DT); You will catch the DSNE table with a datagrid.

java - iText TextField on a Landscape page - Input text not rotated -

After I am creating a PDF using iText and a blue flames to include form and text fields so that Users wanted to fill the PDF form I have followed the example here: And here: By now, I have a TextField PDF's, and I can click the text. I have two problems: To click on the TextFile Alignment Text field, I will need to place my mouse on the right side of the cell which I have also given to TextField How do I align the TextField with cell? Recorded text rotation Once I enter text, it is rotated on the rest page and 90 degrees is displayed. How do I set the rotation of this displayed text? The rotation of the text entered is that I have the most worms I have tried to set the rotation on the cell and the text field but it has no effect. Any suggestions? Thanks Here is my code: int rotation = document.getPageSize (). GetRotation (); PdfFormField pdfForm = PdfFormField.createEmpty (docWriter); CoverSheetPdfForm.setFieldName ("form"); CoverSheetPdfForm....

- Where Developers Learn, Share, & Build Careers

When I published an app for the Google app scripts gallery for spreadsheet tools, then uploading the GUI builder components Failed in Do you know how should I go about treating it? I just received this: Invalid argument: Resource Name (line 37) Line 37 corresponds to the code when attempting to execute the code Where the code is present, which loads the GUI builder component in the UI app. I had to rewrite the code and create visual element according to the program, but it seems that it would be defeating purpose! Many thanks, Eamonn You are right , The GUI Builder gets smaller when you try to share it. Being through the script gallery, there is no way to export it and import it into any other script. And the reason for this is that I have never used it. Sometimes I play with it to ridicule quickly to see if an in-script script will actually look at any idea, but I'm going to develop as the real thing anytime. You should open an issue report, because publishi...

sql - What technique can be used to simulate multiple clustered indices on a table? -

Is there a technology that can be used to simulate multiple cluster indexes on a table in Sibyl 12.5? Thank you I do not think you can simulate multiple cluster indexes because when you have created in the table If there is a package index, then the data is rearranged according to the data in the compressed index column. Logically you can not arrange the data in any other order according to any other column. Whatever you can do is create a non-clustered index for the other column. Whatever you can do is combine two or more columns and create a package index

- Where Developers Learn, Share, & Build Careers

I have an ArrayList in which the object is filled with names and time objects I would like to remove the duplicate on the basis of the name And keep records with the latest record. That's why I override equal and hashsh for the name in my object and used the code in this way. Private list & lt; Replaced Reontteo & gt; GroupRecords (List & lt; changed reciprocity & gt; toList) {has been changed Recentlylyist.clear (); // Fixed list (changed in: toList) {if (!! Was changed was recently listed) () changed (recently added list); } And {if (changing recently list changes.) (Recently list. Unknown). (To) changedRecentlyList.add; }}} Changed exchange list; } But I'm thinking, is there a better solution? I was thinking about using the set but I do not understand how to put a time test. You have two ways for me, for which the work needs to be understood, and which is more For those who understand Leitler of Java Collections, they are understandable: ...

html - more than one keywords metatag on the website -

Is there a right approach for more than one keyword metatag on the website? For example: & lt; Meta name = "keywords" content = "test1" /> & Lt; Meta name = "keyword" content = "test2" /> Or is this an error? Thanks a lot for help keyword Meta tag no longer does anything, at least as far as most search engines are concerned you are trying to solve a problem that does not exist. Nowadays search engines index based on the content, and they do this without your help. See: The search engine started abandoning the support provided to metadata in 1998, and in the early 2000s, most search engines meta Dependence on elements had completely disappeared. In July 2002, one of the last major search engines still provides assistance; finally they were stopped thinking.

iphone - accelerate x264 encoding -

I am using x264 to encrypt raw data captured with an iPhone camera. But the encoding is too slow is. Anybody can help me speed up the encoding speed. I use x264 lib: // armv6 cc = / developer / platform / iPhoneOS to use the following settings. Plat / Developer / USR / Bin / GCC / Configure - host = Arm-Sep-Darwin - Serial = / Developer / Platforms / iPhoneOS Platform / Developer / SDK / iPhoneOSOS 4.3 SDK - prefix = 'dist' - accera-seflags = '- Command with armv6' --extra-ldflags = -L / Developer / Platforms / iPhoneOS Platform / Developer / SDK / iPhoneOSO 4.3 SDK / USR / Lib / System / - Extra-LD Flag = '- Command with armv6' --enable-pic --disable-asm // for armv7 cc = / developer / platform / iPhoneOS.platform / developer / usr / bin / gcc ./configure --host = arm-apple-darwin --sysroot = / developer / platform / iPhoneOS.platform / developer / SDKs / iPhoneOS4.3.sdk --prefix = 'dist' --extra-cflags = '-arch armv7' --extra-ldfl...

running java application from command line -

I have an eclipse project which I want to run from the command line in Ubuntu, after searching on the Internet, I am trying. java-cp Com.abc.utils.MyClassName I release this command from the directory that eclipses all the class files I'm using this but I get this error: "main" java.lang.NoClassDefFoundError: com / abc / utils / MyClassName What am I doing wrong in the exception and how to run the application from the command line? Your order is correct You missed something Please check that 1. You have compiled your code and have been created in the MyClassName.class file classes / com / abc / utils / directory. 2. You are running this command from the proper directory. Your current directory should be a class directory where your com directory is located. If not, switch to classes directory $ cd / path / to / project / folder / classes / This helps. In addition to this, if you want to learn how the eclipse automatically trans...

html - Make table row(<tr>) linked without JavaScript -

I am currently adding non-JS functions to my site because some devices are still not able to handle JS , Some people turn it off faster loading pages (such as slow connections, slower devices like older computers) So, now I have a problem: I have & lt; There is a page with the profile listed in Table & gt; Each & lt; Tr & gt; & lt; Td> such as & lt; Tr & gt; & Lt; Td> & Lt; A & gt; Name & lt; / A & gt; & Lt; / Td> & Lt; TD & gt; & Lt; A & gt; ; & Lt; / A & gt; & Lt; / Td> & Lt; / Tr & gt; IO is not a good solution because I will have a lot of code and only text will be clickable. Also Text & lt; / Td> & Lt; / Tr & gt; & Lt; / A & gt; does not work. Is there any sense without javascript? Thank you in advance Naymecliff I'm afraid this is not possible. You can create a link to a td element, and the content of HTML5 rules (as well...

- Where Developers Learn, Share, & Build Careers

How do you open an example form on a modal path? I tried this. ShowDialog () but this form does not appear modal (you can still use other forms). I think this is because it is in its original form, if it shows itself, but I'm not sure. My problem: I have an application of 2 forms: mainform LoginForm MainForm creates an example of LoginForm to ask the user to authenticate And opens. There is a timer to check in regularly LoginForm and log in to the user - I want to open this timer LoginForm modally I know that this timer should be main form , but I would like to know how to create an example of a form ShowDialog () . Thanks in advance. Make sure that you ShowDialog after initial element : public newForm () {InitializeComponent (); This. ShowDialog (); } My Exams I have Form2 : public partial Category form 2: Form {public form 2 ()} // Public caller ShowModalForm () {InitializeComponent ();); ShowDialog (); }} And withou...

- Where Developers Learn, Share, & Build Careers

I have a list of restaurants, which I want to match with the restaurant in my database using the phone number. The problem is that numbers are formatted separately (i.e. (123) 123-1234 or 123 123-123 or other combination). My current solar search looks like this: search = restaurant / Search (Phone, SanspotHelper, sanitize_term (pr.phone) .gsub (/ \ s + /, "")) with page: 1, per page: 15 end SunspotHelper.sanitize_term (pr.phone) .gsub (/ \ s + /, "") will strip down my search query just numbers However, the values ​​in my database now include other non-numeric characters And thus, search.hits returns a blank array because I can not find any results. What thank you enter your phone number field Configure for It also enables you to index phone data in various formats and make them searchable. You will not need to make any changes to the database

Calling Jquery within / inside a Shadowbox -

I have a simple shodobox called by jquery: $ (' # StatsButton '). Click (Function () (this content = $ ('# userstats') .html (); Schrodobucks.Open ({content: this content, player: "html"})}} I have a div, click in that $ ('# userstats') object: $ ("#submitPosition") click (function ( E) {Warning ('test');}); But when I click, nothing happens. Both of the above functions are wrapped in their own document drawn blocks. In the beginning of the script, Shadowbox.init I call and it works great, this is just that it ignores the events inside jQuery. Can anyone help? Brief: Basically I have a shadebox I want to have jQuery and HTML Player, I want jQuery to do the required work within that HTML Player. If you are loading content dynamically in the container, you should use the click () C while the current #submitPosition should use as well as will bind because the material inside jQuery to bind the object on (...

- Where Developers Learn, Share, & Build Careers

हाय मैं एक नौसिखिया perl शिक्षार्थी हूँ यह साधारण perl प्रोग्राम $ inputline = & lt; STDIN & gt ;; प्रिंट "पहले इनपुट"; प्रिंट ($ इनपुटलाइन); $ Inputline = & LT; STDIN & gt ;; प्रिंट "दूसरा इनपुट"; प्रिंट ($ inputline); $ Sum = $ इनपुटलाइन + $ इनपुटलाइन; मुद्रित करें "राशि 1inInput और 2ndinput"; प्रिंट ($ राशि); आउटपुट perl count.pl 3 4 प्रथम इनपुट 3 दूसरा इनपुट 4 योग 1ininput और 2ininput: 8 क्यों क्या आप आउटपुट 8 को 7 की बजाय? क्योंकि आप $ inputline जोड़ते हैं जब यह 4 होता है तो स्वयं को। यदि आप दो निविष्टियाँ जोड़ना चाहते हैं, तो आपको इसे दो चर के साथ करना होगा या चर परिवर्तन से पहले जोड़ना होगा। उदा।: मेरे $ input1 = & lt; & gt ;; मेरा $ input2 = & lt; & gt ;; मेरी $ sum = $ input1 + $ input2; प्रिंट "योग: $ sum"; या मेरी $ इनपुट = & lt; & gt ;; मेरा $ योग = $ इनपुट; $ इनपुट = & lt; & gt ;; $ Sum + = $ इनपुट; प्रिंट "योग: $ sum"; आप कुछ आसान कर सकत...

c# - Get Specific Value -

मेरे पास एक url है: sys.php? X = 23 & y = 20 & amp; ; Z = 9d939b और मुझे वाकई पता नहीं है कि इसके से 'z' मान को कैसे पार्स करना है। एचटीटीपीयूटीलिटी। का उपयोग करें। पैरासेटिंग स्ट्रिंग () विधि, विस्तृत। यह एक संग्रह वापस करेगा जो आपको सभी नाम (एक्स, वाई, जेड) और मूल्य (23, 20, 3 9 9 9) देता है।

objective c - How to create textfields in scrollview inside of a tableview IOS -

I need to create more than one textfile in the scrollview that is inside a prototype cell "https://i.stack.imgur.com/eqwGq.png" alt = "Enter image details here"> The scrollview and all other elements have different tags When users add other files to the clips, there should be two empty textfields with labels in the subsequent scroll scroll weave. The ScrollView prototype is in the cell. Any ideas how can I do this? The topic name, time and Presenter One cell for each file Li> "Add another file" button can be placed in the footer view of the section

C infinite loop issue when prompting -

Why are an infinite loop without prompting re-users in the code #include & lt; Stdio.h & gt; #include & lt; String.h & gt; # Include & lt; Ctype.h & gt; Zero to_rot13 (four * values); Int main () {four words [1024]; Printf ("C-rote 13 \ nSome code codes or decoded \ n"); While (1) {printf (":"); Scanf ("% [^ \ n] s", word); To_rot13 (& amp; शब्द); Printf (":% s \ n", word); } Return 0; } Zero to_rot13 (char * value) {unsigned int x; (X = 0; value [x]! = '\ 0'; x ++) {if ((value [x] 'A') (value [x] & gt; 'Z' & amp; ; Value (value [x] & gt; 'z')) {} and if (tolower (value [x]) I would like to prompt the user again that I can not be more accurate. scanf ("% [^ \ n] s", word); Leaves the new line in the input buffer, so the next scanf does not immediately read any input, because the first char is a new line in the left buffer Land you must remove...

javascript - Is it possible to use Flexslider and Fancybox in the same page? -

Once I jquery for script, css, fxbox, my flexscript script does not work. I get this error: Javascript error: type error: $ (". Flexslider"). The Flexslider function is not When I remove the fancybox script, my FlexSlider works. Is it possible to use both of them? In this way I am working on both of my sites: HTML: & lt; Script src = "// ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "jquery.fancybox-1.3.4.pack.js" & gt; & Lt; / Script & lt; Script src = "jquery.flexslider.js" & gt; & Lt; / Script & gt; Javascript: $ (document) .ready (function () {$ (".fancybox"). Fancybox (); $ ('Flexslider') .FlexSlider ();});

- Where Developers Learn, Share, & Build Careers

I have a start and end card stored on client devices with HTML5 local storage. To use Google Maps driving list (not a map .. Directions in text formats) The application is in Jazzery Mobile. & lt; Div data-role = "content" & gt; & Lt; Div data-role = "content" id = "list" & gt; & Lt; Ul data-roll = "listview" data-inset = "true" data-filter = "true" id = "myList" & gt; Can I add my list of inventory to id myList? Function Pass Direction (geo) {var directionsService = new google.maps.DirectionsService (); Var Directions = New google.maps.DirectionsRenderer (); DirectionsDisplay.setPanel (document.getElementById ("MyList")); Var storedlati = localStorage.getItem ("text1"); Var storedlongi = localStorage.getItem ("text"); Var destilati = localStorage.getItem ("text2"); Var destilongi = localStorage.getItem ("text3"); Var Request = {Or...

- Where Developers Learn, Share, & Build Careers

I have a problem with the primary language. I have a board and when I want to see the player does not have pieces with values ​​between 1 and 10, which are called mobile pieces. Codes are shown above: test_board ([[piece ('', 12, black), piece ('r2', 2, red), piece ('rb', 11, Slice ('', 12, black), slice ('', 12, black), piece ('', 12, black), piece ('', 12, black), piece ('', 12, black), piece ('', 12, Black)), piece ( '', 12, Black), slice ( '', 12, Black)], [piece ( '', 12, Black), slice ( 'RB', 11, red), the piece ( " Piece ('', 12, black), piece ('', 12, black), piece ('rb', 11, red), piece ('', 12, black), piece ('', 12 , Piece ('', 12, black), piece ('', 12, black) Piece ('', 12, black), piece ('', 12, black), RB ', 11, red) piece (' RB ', 11, red), piece (' ', 12, black) ...

java - Handling Objects coming from RMI server and delegating to objects in the client -

I am using RMI using an instant chat application the server sends some objects through, I want to handle For example, the server will send a connected group operation class. In my client application, I need to identify the class and move my handler ( HandleJoinedGroupOperation ). This class will make a bunch of stuff on the client side. My question is how can I handle classes that come from the server from a class so I do not have to make statements? I.e. if (join the server.getResponse (example) group operation) {handeljoint group operation handle = new handlodge group operation (); Handle.foo (); } Using one of the possible options in your case is the design panoron Make some abstract of potential operators (such as HandleJoinedGroupOperation ), then linking those handlers (at the start time) as an example, create an interface Interface OperationHandler {zero handle (Operation op); } Where operation is also a basic type for all possible tasks; in this type ...

python - Problems with Tornado Web Server filedownlaod -

broth web server I have a question I have a Tornado web server How do I download files? This is my code. I ('content type', 'app / apk') itself .set_header ('content-break', 'attachment; filename =% s'% 'test.apk') F = file ('test.apk') itself Write (F.PD) self.finish () I'v gets a file with unreadable content such as "asdfafasfd a ??? ?? ?? ???? ???? ???? ???? ???? ???? ???? ???? ???? ???? \ N ') is unreadable. APK, image file etc. I can download but the file size is 0k or 1k How can I file several types of files (Image, APK, etc.) Download Hurricane Web Server? I want the example source code plz. Code Tow Down Nedo is for download file from the server, which I used to download the CSV file in my app. This can help you. def post (auto, file name): print ('I'm downloading file handles:', file name) ifile = open (filename + ".csv", "r") itself .set_header ('co...

wordpress - Using LESS and Version Control: Should generated CSS be included in a repo? -

I'm considering using less for CSS development with server (or development) side processing, but I Can not decide whether I should keep Season files in version control. There are lots of solutions with hooks, but it adds software dependency on the server. A hook can be added locally, so on the stage and in the production areas, the same file will be found. Therefore, the question is: Should the CSS files be included in version control or not? Please keep in mind that some frameworks require a CSS file for a particular reason (for example, WordPress themes require a styled .css file so that they should be recognized). Cheers! EDIT: When I say 'considering using less', I mean that it becomes a requirement. After the option is reduced, new developers will not have the option of vanilla CSS. You have a very high answer to your question. It depends on how it is positioned on your website. If the server is just going to pull directly from the GIT repository: 1)...

timer - Do after specific time, Android Runnable -

Ive found an app with a square that implements Runnable where a thread starts and runs () method overrides It runs my graphics. 1. Question: How many times is called ()? I have set a time for it so it should be a default value? 2. Question: I should do stuff after a certain time (2 minutes, 5 minutes, 10 minutes) etc. What would be the best way to do this, I was thinking about using an integer as a counter and once it hits a specific value, what do I want? 1. Question: How many times is the run ()? I have set a time for it, so it should be a default value? Your thread is called the run () method when you call it for example. yourThread.start (); 2. Question: I should be made after certain time (2 minutes, 5 minutes, 10 minutes) etc. What would be the best way to go about doing this, I was thinking of using an int as a counter and once I assume it is a specific, what do I need? You can call the thread, sleep () method (NB: Never make it in your UI thread). Or ...

wpf - Why does this XAML produce textboxes that resize with the window? -

I'm trying to create some round textboxes, and I've got some XAM on this site, and Works fine if I change the size of my window, either in the designer or run time, the height and width of the text box change with it, and they become distorted and useless. I'm still learning WPF, so I'm sure I'm missing something easy thanks for any help. & lt; Window x: name = "main window" x: class = "CMDB_Express.MainWindow" xmlns = "http://schemas.microsoft.com/winfx/2006/Jaml/Presentation" xmlns: x = "http: // schemas. Microsoft.com/winfx/2006/xaml "title =" CMDB Express "height =" 289 "width =" 600 "size syntax =" height "minhite =" 289 "& gt; & Lt; Window.Resources & gt; & Lt; ControlTemplate x: key = "textbox box control button" target type = "{x: type text boxbase}" & gt; & Lt; Border background = "{TemplateBinding Backgroun...

Options to get around 404s in my selenium webdriver tests? -

I am running my Selenium WebDriver tests in parallel at the law level. Due to the high number of entry time, I have found a lot of intermittent 404, which results in failure of my test. I was browsing through the solutions to capture these 404s and came in a lot of HTMLUnit and Proxy options. All look good? Im a 404 test run (surrounded around reading, then assure: but before going into any of these options, I'm not sure which im is possible to take your mind related to the requirements of the following Needed for the WebDriver is there any way to do it currently?), How do I get past / near to pass my test? Until I go to 404, the only way I can think of refreshing the page? And then will continue? Not sure if this is an easy way to do this? I think it would be better to get the web application to fix or decrease the runtime of Selenium for. If the web application does not work, why should it pass the test? Note that there are "errors not found" errors in 4...

c# - Application Testing Best Place to put Events -

With MVVM WPF I'm not in a situation where I put the code to make sure that the test Ran across to try to follow. All lines btnReset_Click method UI so I do not know the command if they are visual models but I do not want to also back to put code in my code. I have thought of two options which I have thought, but also open for another solution. public class Main Window {private void btnReset_Click (object sender, RoutedEventArgs e) {DynamicStackPanel.Children.Clear (); Controls.Clear (); TxtUsername.Text = string.Empty; TxtPassword.Text = string.Empty; TxtResponse.Text = string.Empty; CbxTestEnvironment.SelectedValue = string.Empty; CbxOperation.SelectedItem = null; CbxTestEnvironment.SelectedItem = Zero; }} or public class MainViewModel: DependencyObject {public MainViewModel: DependancyObject {public MainViewModel (UtilityMain win) {win.btnReset.Click + = btnReset_Click ; } Private void btnReset_Click (object sender, RoutedEventArgs e) {DynamicStackPanel.Children.Cle...

asp.net - How to make 2 asp:Menu control render in the same line? -

I am trying to add a second menu control to a second row with an existing row but I do Can not manage for & lt; Div class = "hidden skeptical" & gt; & Lt; ASP: menu id = "navigation menu" runat = "server" cssClass = "menu" enabled widget = "false" styleball = "wrong" orientation = "horizontal"> gt; & Lt; Items & gt; & Lt; Asp: MenuItem NavigateUrl = "~ / Default.aspx" text = "home" /> & Lt; Asp: MenuItem NavigateUrl = "~ / about.aspx" text = "About" /> & Lt; / Item & gt; & Lt; / ASP: Menu & gt; & Lt; ASP: Menu id = "small menu" run = "server" CssClass = "smallMenu" enabled ViewState = "false" includes styleballcock = "wrong" orientation = "horizontal" & gt; & Lt; Items & gt; & Lt; Asp: MenuItem NavigateUrl = "~ / Settings.aspx" te...

android - How do I place buttons on top of FlakeView in Layout? -

I am a Nobel for Android development and I try to install buttons at the top of Flex V from 9 Old Android Library. I am doing As I am using a frame layout in which the button above the layout is placed FlakeView. However, when I run the app, the buttons on the back of the Flex appear instead of the front of them. I used the frame layout to complete it without any problem, so I do not understand that it is working now not doing. Any help is greatly appreciated layout & lt; FrameLayout xmlns:. Android = "http://schemas.android.com/apk/res/android" Android: Orientation = "Vertical" Android: Layout_width = "FillPart" Android: layout_height = "fill_parent" & gt; & Lt; LinearLayout Android: Orientation = "Horizontal" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" & gt; & Lt; Button Android: layout_width = "wrap_content" android: layout_height = "wr...

- Where Developers Learn, Share, & Build Careers

Does anyone know that a type of announcement file for msnodesql.d.ts is for node.js of SQL Server database driver Exists for? You can find the definition on. File here:

Android "hollow" color -

Is there a way to set the "hollow" color in an Android application? What I mean is that I have to be a box with some kind of background and the text will actually cause background transparency. In other words, if the whole scene is on the blue background, then the text will be blue, if it is on red, it will turn red, if it is on an image, the image will appear through the text, but not The rest of the box. You can actually do it. You have to use your paint object and draw text on the canvas given in the Ondra () method. After that, set this Exemption on your Paint: New Porterdaf XFormode (PorterDef.Mode.cellar);

asp.net mvc - MVC4 Conditional Required Annotation -

I have assets which are required through data annotations to work perfectly, to form this form, but I do not want to make this property necessary for editing. How can I go about doing this? You can create different visual models to create and edit scenes. Class and get the succession of those 2 visual models of that general category. public class customer view model {public string name {set; Get;} public string locale {set; Public class CreateCustomer: CustomerViewModel {[Required] Public String LastJobTitle {set; Get;}} public class EditCustomer: CustomerViewModel {public string LastJobTitle {set; Get;}} and you can use them in this manner in your methodology create public actions () {var createVM = New CreateCustomer (); See return (createVM); } Edit Public Functionality (id) {var editVM = New EditCustomer (); Var Customer Model = Repository Gate Customer (ID); EditVM.LastJobTitle = customerModel.LastJobTitle; // set also return other attributes (createVM); } The...

ruby - rails pg db migration undefined method `database_authenticatable' for Devise Users -

अपरिवर्तित विधि डेटाबेस # प्रमाणिकृत 'के लिए # & lt; ActiveRecord :: ConnectionAdapters :: PostgreSQLAdapter :: TableDefinition: 0xd715388 & gt; माइग्रेशन है: वर्ग DeviseCreateUsers & lt; ActiveRecord :: माइग्रेशन डीएफ़ self.up create_table (): | टी | T.database_authenticatable: null = & gt; गलत t.recoverable t.rememberable t.trackable t.timestamps अंत add_index: उपयोगकर्ता,: ईमेल,: अद्वितीय = & gt; सच add_index: उपयोगकर्ता,: reset_password_token,: unique = & gt; सच अंत डीईएफ self.down drop_table: प्रयोक्ता एंड एंड अगर मैं गलत नहीं हूँ , Devise ने इसे उत्पन्न माइग्रेशन शैली बदल दिया create_table (उपयोगकर्ता) do | t | T.database_authenticatable end से create_table (उपयोगकर्ता) do | t | ## डेटाबेस प्रामाणिक योग्य t.string: ईमेल,: null = & gt; गलत, डिफ़ॉल्ट = & gt; "" टी। स्ट्रिंग: एन्क्रिप्टेड_पासवर्ड,: नाल = & gt; गलत, डिफ़ॉल्ट = & gt; संस्करण 2.0 के बाद " अद्यतन करें: इसे देखें।

- Where Developers Learn, Share, & Build Careers

I have some texts that I am getting from the database that should be shown to users. Each lesson contains some links to other texts that I need to render. Links are dynamic, which means that I can not already know how many of these links will be provided (and where in the text). Just to give a quick example: T1 This is the first example of text LINK1 to give a LINK2 short idea of ​​my problem T2 Another LINK3 example of this is my problem Is LINK4 Anybody can help LINK5? What's the best way to do this in Wicket? Without pre-cooked markup? a) Do not just do it with wickets, use any templateing solution B) If your links are already final in your texts, then use SmartLinkMultilineLabel .

python - I'm making a triangle class finder and I'm stuck -

I am coding a program that lets you type in the side of three angles or triangles, and it states that Is it equilateral, contemporary, etc. I am not worried about the rest, but I am stuck on its equivalent. Here is my code: pre id (print " 2: "angle") like = input () if preferred == 1: print ("\ nType at all sides length.") T1 = input ("1:") T2 = input ("2:" ) T3 = Input ("3:") Print ("Your triangle is a parallel triangle.") Menu () elif choice == 2: pass idtri () The first thing to notice is that the triangle has to be made of scalyin, isocale, or alloy It does not matter if you have three values, angle or side length, process: If all three values ​​are the same, the triangle is the right angled; otherwise, if you have Any two values ​​are equal, triangle isoceles; otherwise, the triangle is scalin. Then you can write a simple task to return the type depending on the number of identical values ​​provide...

jquery - datatables search column -

I am using the datatables plugin and when I scan intentions, I have problems searching through columns, As is on this page: The problem is that I want to filter the data, not only are text numbers, so I have a secret column numbers, but I only Do some things like this: tablalistaproductos = $ ('# tablalistaproductos'). "Nothing", "Redundant", "Redundant", "Redundant", "Redundant": "Vertical", "False", "Vertical": "SCTC": "450px", "empty", "uneducated", "unrest", "pointless" Null]}) table cellpadding = "0" cellspacing = "0" range = "0" square = "display" id = "tablalistaproductos"> gt; & gt; & lt; tr & gt; & Lt; th & gt; id gt; & lt; th & gt; description & lt; / or & gt; & lt; th & gt; share & lt; / v & gt; & lt ; Th &...

Paginating an Array in Ruby with will_paginate -

I have an array @ level 1 which looks like this: [ 3.0, 4, 2], [2.0, 48, 3], [2.1, 56, 4], ............] on the page This array displays the number of lines in each page only once. I tried to do this: @ temp1 = @ level1.paginate (: page => parameter [: page]) but it The following error throws: [0, 4, 2], [2.0, 48, 3], [2.1, 56, 4]]: array undefined method 'paged' Previous> How can I paginate on page I_paginate? Sure, you can mark arbitrary page in willfgnnet :: archive archives For making. Assuming an array named value : @values ​​= WillPaginate :: archive .create (current_page, per_page, values.length) do | Pager | Pager.replace values ​​can end you can treat @values ​​ , such as any other dissolving archive, in which it will be will_paginate View Assistant