Posts

Showing posts from May, 2012

how can I get a larger stack trace from a node.js network error? -

I get this error: error: accept amphiel at fault (net. Js: 769: 11) On TCP. Connection (NET JS: 1017: 24) Can I get a line number of my code from a node. Js app that calls the TCP.conconvention in the first place is? No you can not, because your code is TCP. No connection . This is an event handler, so an event triggering it is one of the reasons because it is difficult to debug event-based programming. I think that you will see some luck, though that error means, though. Some searches suggest that you are killing a file descriptor limit, which may increase (but it will be OS based, so I can not tell you how without much information).

windows - Is there a way to check for redirection inside a batch file? -

If we have a batch file that redirects to a log like this: C: \ test \ example.bat> C: \ tasting \ example.log There is no way within the batch file to determine whether a logout file has standard output redirects? Actually the batch file I need three arguments with it. When the argument is left out, the batch file prints an example of an example, such as regular doss commands, and 'pauses' throws out So that the instructions can be read. Although the batch is called without any argument and it is being logged, then the batch file will always sit there for the key to break a break but will not show anything on the screen. Normally it will not be a problem at all, although I am trying to make this stupid proof because I will not be able to implement the batch file in other script / scheduled works. At this point it seems that I have to stop using it altogether, but I was hoping for the solution where I had not to. Thank you for the help. I have no way to ...

c# - Writing code that can work with multiple database objects -

I basically have two different databases, which have different tables in them but in both of them "Table1" is the exact same structure. var db = new ???; If (mode == "output") {db = new database 1 ("connection string for database 1"); } Else {db = new Database2 ("connection string for database 2"); } Var result = db. Table1.Where (a => a.Value == 1). first (); How can I do the above mentioned work, so I "result" from two different databases (based on "mode") without writing two different definitions for "results" "Can I specify? Store the connection string separately in your config file. You can then swap the connection string on the runtime to point to the database object in the correct database: if (mode == "PRODUCTION") {db = new database (configurationManager.ConnectionStrings [ "Production-key"]); } And {db = new database (configuration manager connection connection [...

ruby - Rails vestal_versions gem create versions without saving parent -

I'm interested in using vestal_versions gem in my rail app, but I'm wondering if anyone knows that anyone The way I can create a new version but can not actually update the associated ActiveRecord. For example, if I have a user with the first name "jim", and I want to be able to continue the version without a new version of "Steve", I change the original record until I Revert_to! (Newer_version) or something like this) If it is not made gem, any clue where should I start the bar? After checking the behavior of this gem, I found that it is nothing like that In fact to really have been established. You can force this behavior with something: def create_version merge_version_changes create_version end a 'variant' model With the changes that have been modified in your Live ActiveRecord without any parent object tables: blah = blah.first blah.version will tell you that you are using the latest version, but do not load that data (s...

ios - Random white flash in phonegap app -

I have an app created with phonegap and jazzery mobile which runs between multiple multiuser jazz mobile documents. It works well for the work I want, but the odd thing is that sometimes I get a white flash when I go between different HTML files. Now I have seen that this is a common issue, while using JQM and Phonegap, but all the other posts I have seen but there is no other solution than getting rid of page transition? Has this problem been resolved in PhoneGap 2.5? I use Jquery Mobile 1.3, Jquery 1.9, and Phonegap 2.4 something Well documented for this I had a similar problem recently, you can either set page transition to 'None': This eliminates all the issues of flicker. You can also try to add it: .ui-page {-webkit-backface-visibility: hidden; } For your CSS, this is not a correct fix, and causes severe instability for me.

powershell - Checking for null arrays in an PSObject -

How do I check for an object or empty, which has multiple arrays? $ Buildings.north = {bld1, bld2, bld3} $ buildings.South = {} $ buildings.East = {bld5, bld6} $ buildings.West = {bld7, bld8, bld9 $ Buildings , Bld10} I started with if / elseif to go through each, but it would be 16 combinations: if ($ buildings North Coat ount-AQ "0" - and $ Building. South Quint-I "$ 1" and $ Building. East Quant's "1" -And $ Building. West Control- "1" {Set-Function- OPT1 $ Building. South-OPT 2 Dollar Building. Est-Ofty $ Dollar Building.West} Otherwise ($ Building. Earth Count -ge "1" -And Building $. South Cout-C "1" - and $ Build East Count -ge "1" -and $ Building. West Seat-C "1") {Set Function -OPT1 $ Building. Upper-OPT 2 $ Building. South-OPT 3 $ Building.Aust-Off4 $ Building West} Otherwise ($ Buildings.No.co.uk - AQ "0" - And $ Building. South Cottage -Ek "0" - And $ Buildin...

vb.net - Match a string variable to the location in data file(specified column) so I can use all values in that row VB? -

The row that corresponds with, I want to assign the variables to the rest of the values ​​for that column. I've tried to find the match that I think: String as an integer for every straw in the dim intIndex (1) if Str.Contains (strID ) Then intIndex = Str INDexOf (strID, 0) end if next Even once I get the matching line number, how do I tell each variable, the row and column Ask to assign yourself? The sample of one line and each column is divided by ",": 1234567,03 / 02 / 20137,2, B, L, ST and has unlimited rows Go here - assuming that you already have an array of strings (probably readAllLines ), something like this should run in the right direction: Boolean as a rigid line = Incorrect dim row number as integer = 0 dim columns like str String (string) = "" like dim col1 "string =" "as a dim col2 string =" "string =" as dim col3 = "" "String = 7" as a stroke while the rowfound and not the row...

javascript - Multiple og:image tags not being displayed by share dialog or update status box -

I am currently using a new feature to select thumbnails when users share a page on Facebook Will happen. The user should be able to use Facebook widgets, such as the Send Dialog or Share Button, along with the URL, will have to paste and paste YouTube into Facebook on its status status dialog. I have read a lot of documentation, which seems to indicate that I need to add more than one OG: the image tags are being shared in the page I have done this and the page is made of cylinders Is run through the medium so that the cache can be updated. When shares are shared directly with the stock.fpp, then the dialog is being presented in scrapping by effectively removing my client side code, I am looking at 3 images from the available page. I'm not sure what I'm doing wrong here. This is, the, and more. What is the idea that I am doing wrongly? I have confirmed that at least OG: title tag is being respected by the stock dialogue. I also tested the size of images and includ...

html5 - CSS 'position:relative;' and 'top:xx%;' tag combo work in chrome but not in any non-webkit browser (FF, IE, Opera, etc) -

Especially for the code that I consider to be a simple piece, I have come in a very strange practice! In fact, I am trying to 'position: relative'; In the footer navigation chrome below my page it is properly below in FF (or any other non-webkit browser) it is not below and is almost at the top of the page if I change a CSS line (position: position Based on: Absolute;) It works for all browsers, but it does not float correctly because I resize / zoom in / out the screen size. I have confirmed it in the 'Boiler Plate' HTML / CSS and reset it along with all the proper browsers (resets) and am getting the same behavior. It's in Windows 7. Two very few snippets of HTML and CSS are given below. Why is not this working? To work in browsers, I have a solution about how to get a simple footer navigation and to float it correctly because I appreciate the zoom in / out! & lt; Ul id = "avmenu" & gt; ; & Lt; Li class = "on" & gt; &...

Associations in ruby on rails -

I have created a user using device authentication. I have created article view, controller and model, where in the model title , body and article_id are now I want to apply comments (with the condition that the user logged in on only one article Can do). I have created a is_admin as a special user who created new articles through the application through power. The user table contains all the fields that are generated by the device by default. The paragraph table contains fields such as article_id , title , and body between the user and the article table. In the comment table (according to my understanding) will be comment_id and comment_body . Expected Organization: class comment & lt; ActiveRecord :: Base is_to: article is_to: user I want to make sure that only logged in users can comment on the article, and that is is_admin User can create new article. How can I create relationships between users, articles and comment tables? Do I need to organize ...

Is there a way to receive a notification/callback if network proxy settings change in OSX/iOS? -

I change network proxy settings in OSX / IOS (C, C ++, or Objective C) so I want to receive a notification / callback. Monitor system configuration with SCDynamicStoreSetNotificationKeys () . You need to look for those keys, see who. See SCDynamicStoreCreateWithOptions () , how to set the SCDynamicStore object with notification callback.

javascript - Sticky Navigation Bar / Right of a Centered Div -

I am editing a squarespace template and want to create a sticky navigation sidebar. There is a SquareSpace field where I can enter "custom CSS" I already have the sidebar, but how do I modify it to stick CSS? on the right side. I have tried # sidebar1Wrapper {status: fixed; } px or % with a left or right value, but whenever I change the window size, either the sidebar Being away from content or overlaps with it How can I stop it from happening? Can I define my fixed position regarding the contentwrapper div ? Thank you for your help! Here's the site I'm talking to:. Unfortunately that functionality has not yet been created in CSS. This is done with Javascript basically detects javascript when the page scrolls to the top and then sets the sidebar to status: fixed . Here's a solution that uses the jQuery library: You can set the sidebar using CSS and it will be permanently fixed in the browser window . . Sid...

asp.net - PHP Curl login into APSX page, after need to post data to Login page -

To begin, I'm sorry for my English, I'm not writing good in English and I have to go through There is no time to spell check. KKK So, there is an overview of my problem. I was able to log in to ASPX pages with PHP cURL command, sending post data with all the crazy variables of Epix request. My problem is, to send post data (with user and password) on the login page, to send post data (with some crazy stuff) on the login page, in other words, to gain access to the page After that I want to, if I send some specified post data (with that crazy stuff) to the page, I only have access to the login page, if I do not send it, then I return to the main page I do not have login page. I was able to order a curl on the login page with a crazy post and was getting access to the login page. Have you not been redeeming people? Now, how can I send a post with a user / password on the login / page? If not, then I can try to understand more. Thank you! Rafael If you want to gi...

python - xpath to select from child element to end of parent -

I'm trying to do this by using lxml, but this is actually a question about proper xpath. I & lt; PgBreak & gt; element until the end of her parents, in this case & lt; P & gt; I want to select from XML: & lt; Root & gt; & Lt; PgBreak pgId = "1" /> & Lt; P & gt; One paragraph & lt; PgBreak pgId = "2" /> to fill some text some more text & lt; Quote & gt; A quoted block & lt; / Quote & gt; Paragraph & lt; / P & gt; & Lt; / Root & gt; XML Out: & lt; Root & gt; & Lt; PgBreak pgId = "1" /> & Lt; P & gt; One paragraph & lt; / P & gt; Some text to fill in & lt; PgBreak pgId = "2" /> & Lt; P & gt; Some more text & lt; Quote & gt; A quoted block & lt; / Quote & gt; Paragraph & lt; / P & gt; & Lt; / Root & gt; What you are trying to do is not trivial: not only match you Want ...

express - How to setup log level in Winston/Node.js? -

I have my node Using Winston Logging with JS App and I defined a file transport. During my code, I'm either logger. Log in using Terror , logger.warn , or logger.info . My question is, how do I specify the log level? Is there a config file and the value that I can set so that only logical log messages are logged? For example, I want to log in level "information" in my development environment, but want "error" in production. It seems that the options passed are a level option that From the doctor: var logger = new (winston.Logger) ({transports: [Newton (Winston. TransportSource console) ({level: 'error'}), new (Winston.transportance. File) ({filename: 'somefile.log'})}}); Now, those examples show the passing level in the console object's choice object. When you use a file transport, I believe that you will pass an object object, which includes not only the file path but also the level. This should do something like this...

jquery - Dynamic text highlighting using the rel value from a link on a previous page -

This is not possible, but I will remove it anyway. I want a way to highlight the text so that when you have come to a page from a link, jQuery will highlight specific text by using the rel attribute from the link (or any other identifier). For example, we say I have an event registration site and there is a section for 'speaker' who will provide talks in different seminars throughout the program. After this, when a speaker is presented, there is a separate page with the calendar. The name and the picture of the speaker are linked to the calendar which is based on the table. Up to now, I'm only able to link the picture and name of the speaker to the table row on a calendar row, using an ID in the table row, where the associated time slot is contained. The problem is that sometimes a speaker will be lumped with other speakers or their table row is very close to the bottom and therefore the browser window will not align with it altogether I I am trying to understand ...

php - File structure for dev server and repo -

I have a development server at dev.mysite.com and I work to work with Cod and GIT repo There is a developing branch that points to my dev domains. As of now the file structure is just as anyone looking at anything that should change me to reconsider. I am asking this because there is a public_html or what's inside the dev folder with this setup. Currently when I load dev.mysite.com this index shows / which shows .gitignore, .git, and public_html. ../ / dev /mysite.com .git .gitignore / application / public_html / property index.php / system /mysecondsite.com / application / public_html / assets /index.php / system / Sites /mysecondsite.com / application / system index.php Does anyone have any ideas? If you want a development environment and a production environment. While the main files for CI outside the public AHMT, you have to redefine your document root; I believe that you are using the server coming with cPanel as the means of administration for your server. ...

c# - What is the greatest inaccuracy in a range of floats? -

Given two textual values ​​( flow and fHigh ) after ), How could you calculate the largest or maximum jump / gap between two consecutive values ​​ For example:? range in 16777217f to 20000000f Answer 2 to , the value effectively counted in the nearest two is. This is scratching my head to normalize an arbitrary boundary - any suggestions? Cheers, It should be neutral language, but I am using C # (which is similar to IEEE-754, I think). This is in C. There are some IEEE 754 requires practice, roundness and so IEEE 754 64-bit binary ( double ), SmallestPositive 2 -1074 , almost 4.9406564584124654417656879286822137236505980261e-324, and DBL_EPSILON 2 -52 , 2.220446049250313080847263336181640625-16 32-bit binary ( float ), DBL the FLT and double to float whether they have any visible (and fabs fabsf and fmax to fmaxf , though it does not change these changes Education should work). Then is the smallest positive 2 -149 , almost 1.4012984643...

debugging - Slow load time of bash in cygwin -

It takes about 2 seconds to load the bass at the moment. I have run bash with the -x flag and I see the output and it seems that the path is being loaded several times in Saigwin. The funny thing is that I use the same file in the Linux environment I do it, but it works fine without having to reload the problem. The following reason may be the problem? if [`uname -o` =" Cygwin "]; Then .... fi As you noted in your answer, the problem SiGwin's Bash-Perfection package is quick and easy to disable, to disable bash-completion, and the correct way to do this is to run Setgui's setup.exe (if you need to) and uninstall that package Select to do To work with the long solution file in /etc/bash_completion.d and disable the ones you do not need. To slow down Bash's load time (mailman, shadow, DSNIF and e-UFSprogs) on my system, the biggest culprits did not do anything at all, because they did not install the devices they were designed to fulfill. I went. ...

android - preferences getting lost after app has run for awhile -

मेरी मुख्य गतिविधि में मैंने कुछ वरीयताओं को पढ़ा सार्वजनिक व्यर्थ क्रिएट (बंडल सहेजे गए इन्स्टेंसस्टेट) { super.onCreate (savedInstanceState); SharedPreferences सेटिंग्स = PreferenceManager.getDefaultSharedPreferences (संदर्भ); FontSize = settings.getFloat ("टेक्ससाइज़", (फ्लोट) 20); UserName = settings.getString ("उपयोगकर्ता नाम", ""); } विभिन्न अन्य उप-गतिविधियों में मैं इस तरह के इन वरीयताओं का संदर्भ देता हूं body.setTextSize (main.fontSize); यह ज्यादातर समय ठीक काम करता है। ऐप कुछ समय के लिए चल रहा है और मैं इसे पुनः लॉन्च करने के बाद कभी-कभी, सभी कॉन्फ़िगरेशन चर रिक्त दिखाई देते हैं। डीबगिंग करते समय यह अनिश्चित और पुन: उत्पन्न करने के लिए कठिन है। जब ऐसा होता है, तब तक मैं सभी पुरानी स्क्रीन के माध्यम से बार-बार वापस हिट कर सकता हूं, जब तक कि यह बाहर नहीं निकलता, तब तक पुन: लॉन्च करें और वरीयताएं वापस आती हैं और काम कर रहा है मैं बेतरतीब ढंग से चीजों को चारों ओर अलग-अलग जगहों जैसे कि स्टार्ट (), या OnRestart (), जो अभी तक मदद नहीं...

Excel VBA To Allow Manual Input if List Value Selected -

I currently have validation cells which are of type XLValidationList Whether a specific value is selected in the drop down menu Is it possible to allow manual input in Vba?

Set display of jQuery show hide toggle in css -

This is because I want to set a display in CSS because all pages need special content to be expanded or Separated from page to page. As it is now, it seems that I would need to load a different JS file for each page's display preferences. I want to keep it centered all in one file ... CSS: div.expandable1 {display: block;} div.expandable2 {display: html: / P> & lt; P id = "tab1" class = "button plus 1" & gt; News - & lt; / P & gt; & Lt; Div class = "expandable1 panel1" id = "one" & gt; [Content] & lt; / Div & gt; JS: $ (".button"). Show (); $ ('. Plus1') Toggle ($ {"(" # one "). $ (" (Plus ")" $ " ). (["Plus + 1"). Text ("News +")})}} [etc] My question: How can I use CSS to control the following: Example: Page A-Expandable 1 has been expanded, expandable 2 short pages B-Expandable 1 collapses, Expandable 2 exp...

c# - How do I access a UserControl resource from a .net class -

I'm trying to use a resource UserControl and TreeViewGroupItemTemplateSelector class I TreeViewGroupItemTemplateSelector do not have access to UserControl class within the class are having problems formatting I i Uri remains PackageExplorer.xaml UserControl and the root name of the local assembly area, which includes the TreeViewGroupItemTemplateSelector class. I'm having the following error: Resource 'resource / packageexplorer.xaml' can not be detected of the Instion During the URI Public Square TreeViewGroupItemTemplateSelector :. DataTemplateSelector {public override DataTemplate SelectTemplate (item item, DependencyObject container) {var configGroup = Items as IConfigurationGroup; If (configGroup == zero) return zero; Var Processing Area = New Resource Deduction (); SourceDictionary.Source = New Uri ("/ myAssembly; Component / Resources / MUSS Control.xml", UricKind.Relative Ossolute); If (configgroup.ItemType == type of r...

python - How to exit the cmd loop of cmd module cleanly -

However, with this documentation: It is not clear what is a clear way to get out of the program (i.e. CMDLop) programmatically Ideally, at some command exit prompt, I will exit the program. You must override the postcmd method: CMD. Postcmd (stop, line) Hook method executed immediately after the expiration of the command dispatch. This method is a stub in CMD; It is overridden by subwalse line command line that was executed, and the stop is a flag that indicates whether postcmd () will be aborted after execution call; This return value of the ACMD () method will be used to return the value of this method as the new value of the internal flag, which matches to stop; The interpretation continues because of the wrong return. and cmdloop from the document: This method will return when the postcmd () method returns a true value postcmd () Is the return value of the do_ * () method related to the stop arbikar command ATAC. In other words: Import...

python - Django choice field with a lot of choices - Is there an easy solution that's efficient? -

एक चुनिंदा विजेट का उपयोग करते हुए Django का विकल्प फ़ील्ड, & lt; option & gt; तत्व ज़ाहिर है, यह बहुत लंबा समय लेता है और कई सफ़र मेमोरी करता है जब सैकड़ों विकल्प होते हैं। जब यह विदेशी कुंजी की बात आती है, तो contrib.admin के raw_id_fields के जैसा कुछ भी इस्तेमाल किया जा सकता है, लेकिन कठिन-कोडित मानों के मामले में (उदाहरण के लिए, दुनिया में सभी pycountry से आते हैं, से चुनने के लिए, मुझे यकीन नहीं है कि ए) के अलावा अन्य क्या करना है, AJAX को सूची प्रदान करने के लिए (अभी भी बहुत सारे मान पाइप आउट) या बी) विजेट के लिए एक चार फ़ील्ड का उपयोग करें, जिससे फ़ॉर्म को खराब इनपुट को मान्य करने की इजाजत दी जा सके। क्या कोई सर्वोत्तम प्रथाएं हैं, जो कि ऊपर की ओर ए या बी विकल्प, या यहां तक ​​कि जो भी आसान है | साफ | प्लगेबल जिसमें ए विकल्प शामिल है? मेरे पास एक ही समस्या थी और, मेरी राय में, इस से निपटने का सबसे अच्छा तरीका एक स्वत: पूर्ण फ़ील्ड का उपयोग कर रहा है। यह टेक्स्ट फ़ील्ड की तरह है लेकिन उस पाठ इनपुट में लिखते समय उपयोगकर्ता को विकल्प मिलता है। ...

python - Try opening a file as an archive, otherwise read as a regular file -

I'm trying to process a list of files, where each can be a regular text file or archive a bz2 . How can I try the most efficiently except for the block in an effort to open each file in the appropriate format? I will not check the extension of the file, because it can not always depend on (and not much EAFP). I am currently I have: def data_generator (* corpora): Diiarf parse_lines (Fobije): The line Fob: # A lot of processing # .. in. # fruit for corpus corporate were made several rows ( 'lots' 'of' 'data'): try with bz2.BZ2File (corpus, mode = 'r') f: parse_lines (f) data: yield except IOError data: Parse_lines (f) with codecs.open (corpus, encoding = 'utf-8') for the data: production data I think That is repeated in parse_lines TA looks for (F): ... address urgent, but I can not think of a way to get rid of it. Is there any way to reduce the last time, or is there another way to try a file "smart open"? Edit: Op...

c++ reset default array length within class constructor -

दिए गए वर्ग को परिभाषित किया गया है: struct A {std :: vector & lt; int & gt; एक सूचि; ए () (के लिए (इंट आई = 0; आई & lt; ARRAY_LENGTH; i ++) aList.push_back (0); }} प्रोग्राम के दूसरे भाग से ए के तर्क-कम नियंत्रक की आवश्यकता होती है। क्या ARRAY_LENGTH भिन्न है (बाहरी फ़ाइल से पढ़ें / गुई से संशोधित), ताकि चरण 0: ARRAY_LENGTH = 10 चरण 1: ऑब्जेक्ट बनाएं ए, के रूप में एक। के साथ 10। चरण 2: ए के नव निर्मित वस्तुओं का उपयोग करें चरण 3: A Li> चरण 4: प्रोग्राम के अंत तक, एआरआरएआई_एलएएनएनटी के विभिन्न मानों के साथ चरण 0 से 4 दोहराएं ARRAY_LENGTH का संशोधन बाहरी फाइल से या तो ग्इ द्वारा संशोधित किया जाना चाहिए। और प्रोग्राम के किसी अन्य भाग में इस मान को लिखना-प्रवेश होना चाहिए। संपादित करें (2): मैं एक अनुकार परियोजना कर रहा हूं, और कक्षा ए में aList परिवार के आकार के संभव पीडीएफ मूल्यों का प्रतिनिधित्व करता है। (एएलआईआईआईएस [0] = 0.5, एएलआईआईआईएस [1] = 0.2, एएलआईआईस्ट [3] = 0.3 कहते हैं)। अधिकतम परिवार के आकार का परिवर्तन तभी होगा जब कार्यक्रम अलग-अलग ...

javascript - Relative "crossing" percent calculation -

Image
I have this math problem: I should know the formula to get something like this: 70% (x) = 100 150% (x) = 150% of 150% (x) = 50% = 70% of% (x) = 70% 200% (x) = 25% of 70% It sounds easy, but I'm stuck with this small issue. Please note, (x) is a variable and is irrelevant to this calculation. For more information, I am computing the offset of an image, the offset should be relative to the resizing. This is an example (the width test is 1920 px, the original offset is 70 px): 50% of 1920 = 150 = 150% = 105 100% = 100 = 70% 70 = 70 150% of 1920 = 70% = 50% = 20 = 20% 200 = 25% 70 = 17,5 ... The final code is in javascript. * Edit * In fact, I need to understand how I increase a value and at the same time synchronize each other Subtract ... 25% ==> 200% 50% ==> 150% 100% ==> 100% 150% == & gt; 50% 200% ==> 25% ... is render (sorry that it is created quickly) In fact, for my calculations, "70" is more stable My image is bigger (...

Is it possible to use opengl or directx with visual basic with only visual studio installed -

I was wondering if it is possible to use OpenGel or DirectX only with Visual Studio installed on the system. I can not establish anything else because it is a school computer on which I am working. This is possible with OpenGL. You only need to download OpenGL .DLL and link them to your project. There are some tutorials for that online. You can find some tutorials on Neighborhood Edit: I have just read that you want to use VB. This is another story, although editing this is not an answer to your question, I suggest using C ++ I know that there is a cover for C #, which is called CSGL. Also see the Tao Framework: or section on VB.

java - How can I enable/switch to the internet based keyboard instead of the traditional keyboard? -

How can I enable / switch the Internet based keyboard instead of the traditional keyboard? I am trying to show one that has less Com buttons are included when the user clicks on a text field and the keyboard is displayed. Thanks in advance! Amani Swans edit this About a property input type of the property You need to set the input type, documentation. You can set the input type either XML in your layout android: inputType = "textEmailAddress" Android: inputType = "textUri" or by using the setInputType method for editText

php - Caching through a cronjob -

Then this is a deal, Using Justin TV's API and a bit of PHP I The script that checks out that some players are streaming at this time. After applying it to my site, I found out that it took the age to load (actually expected) So I read a little about this chronoboy work and thought that maybe this was the way to solve it. So, it's starting again, I want to create a chronobose that runs that script, checks whether those players are streaming and then it is being said to save it in the cache, Uses the cache and want to create a widget for the saved data there. Any thoughts? Would you like to save the information from Cron Job to Wordpress database. This will allow you to access it from another page later on. See this page for more information (option 4 is possibly most appropriate):

ibm midrange - GET Save file from AS/400 via FTP Empty File -

I am trying to download SAVEFILE to a library from the AS / 400 server. I always get an empty file which is 0 bytes, These steps I have taken Go to an MS-DOS shell Go to the location on that PC where you You want to save the file. Type: FTP (AS / 400_IP_ADADAR) or FTP (AS / 400 _NAME) Enter the AS / 400 username and password for that system when prompted. To ensure the transfer mode is binary (no conversion will be done), type: to go to the library on BIN / 400 where the saved file is stored, type: your PC to save the CD library file from AS / 400, Type: GET NAME When the transfer is completed, exit the FTP session by typing: To stop the QUIT MS-DOS shell, type: EXIT in the AS400 side I Can see file I can but the file is empty. Any reason? We always make empty savf. In FTP, switch to binary mode. CD & LCD, Remote & amp; Local current directory, if desired, change the NAMFMT, if desired. If you do not change the local directory, the file goes to anothe...

c++ - Unable to create simple archive -

I am trying to create a simple archive using the following makefiles: Inc: = -libbs / rapid ml-1.13 all: $ (cfa) -k $ (inc) -o pigeon Dove HP AR RVS Libodov.a pigeon RRLIB Libid A clean: RM-F Dove. O Libode A In this dove.hpp file, #include is "rapidxml.hpp" , which you can see that I compile a specific rapidxml I indicate. Complete all runs to meet the goal, but 1) output pigeon. It is huge (19 MB!) When rapidxml + dove.hpp is only about 150, and 2) neither the last libdove.a or pigeons seem to be useful items: [hamiltont @ 4 pigeon] $ nm dove.o nm: dove.o: file format is not recognized [hamiltont @ 4 dove] $ nm libdove .a nm: dove.o: file format is not recognized [... in other projects ...] [Hamilton @ 4 pigeon] $ g ++ -o bin / antHybrid build / * .o -l / home / hamiltont / foobar / pigeon -hawo / home / attack / foobar / div / libdew.A: symbols Could not read: in the archive Oi is no index; Runlib to run a collection: ld 1 exit status Ah, Clear mistak...

javascript - Microsoft Dynamics: Value of the field shows on the form, but it doesnt show on the grid view -

I have a problem with the visibility of the field value I'm using MS Dynamics CRM Later, in the form, the value of this field is fully visible, however, it does not turn on the view I have tried, onSave , onLoad , read only etc and it just does not work. I also debug it, and there was no error. I do not know what the problem is. Code: function change_currentstatus () {var chk0 = document.getElementById ('New_pc1'); Var chk1 = document.getElementById ('new_m1'); Var chk2 = document.getElementById ('new_m2'); Var chk3 = document.getElementById ('new_m3'); Var chk4 = document.getElementById ('new_m4'); Var txt = document.getElementById ('new_currentstatus'); If (! Chk4.checked == incorrect) {txt.value = 'm4'; } And if (! Chk3.checked == incorrect) {txt.value = 'm3'; } And if (! Chk2.checked == incorrect) {txt.value = 'm2'; } And if (! Chk1.checked == incorrect) {txt.value = 'm1'; } And if (!...

What's the difference between logging.warn and logging.warning in Python? Or are they the same? -

यहाँ नमूने चेतावनी और चेतावनी दोनों का उपयोग करें logging.warn को पायथन 3.3 से हटा दिया गया है और आपको लॉगिंग। वार्निंग का उपयोग करना चाहिए। पहले पायथन 3.3 के लिए, लॉगिंग.वॉर्न और लॉगिंग। चेतावनी समान फ़ंक्शन थीं, लेकिन लॉगिंग.वॉर्न दस्तावेज नहीं था, जैसा कि एक बंद पायथन बग ट्रैकर में समस्या: यह जानबूझकर है मूल कोड (पायथन में शामिल होने से पहले) ने चेतावनी दी थी (), जिसे पिछड़े संगतता के लिए रखा गया था। डॉक्स चेतावनी () को संदर्भित करता है क्योंकि यह वही है जो सभी का इस्तेमाल करना चाहिए। विधि का नाम उचित लॉगिंग स्तर नाम के निचले केस में होता है। लॉगिंग.वर्न () पिछली संगतता के लिए रखा गया था लेकिन। लॉगिंग। वार्निंग () है जो सभी का उपयोग करने वाला है।

spring - Java internal message queue /JMS -

I have a web application that I am rewriting which currently sends a large number of audit data in SQL User interaction is executed in each stage of the results, in a manner that can be executed, which writes some information to a database. It has the ability to affect users due to stopping contact due to database issues. Ideally, I call it a message-based approach where data needs to be written, it is also removed from a queue, where a consumer raises them and writes them in the database This is not required data, and if the server goes down then the loss is acceptable If I want to use and use an embedded JMM queue and broker or Java queue, I am in Ljn. Or is not familiar with some such things (suggestions?) What is the best way? More info: App uses Spring and running on WebSpace 6. All messaging communications are local, it will not talk to any other server. I think entering JMS is redundant, and especially if JMMS is the only one to use The reason is loggin. / P>...

google app engine - dev_appserver crashed after upgrade to gae 1.7.6 with UnicodeDecodeError -

After upgrading to gae 1.7.6, dev_appserver crashed because I have folders with German umlauts. 1.7.5 works with no problems! Running the command: "[C: \\ Python 27 \\ pythonw.exe ',' C: \\ Program Files (x86) \\ Google \\ google_appengine \\ dev_appserver.py ',' --skip_sdk_update_check = yes' '--port = 8080', '--admin_port = 8000', '--storage_path = C: / rugad', 'c: \\ rugad \\ gae'] "2013-03-21 07: 26: 33,154 Devappserver2.py:401] SDK Update Checking touching INFO 2013-03-21 07: 26: 33,276 API server started: http: // localhost: 49981 INFO 2013-03-21 07:26: 33,283 dispatcher.py:98] Starting server "Default" is running: http: // localhost: 8080 INFO 2013-03-21 07: 26: 33,288 admin_server.py:117] Starting with admin server: http: // localhost: 8000 tracebacks ( Most recent call File: C: \ Program Files (x86) \ Google \ google_appengine \ _python_runtime.py ", line 194, _run_file (__ file__, global ()) fil...

GlassFish Load balancer configurator plugin installs 64-bit binaries on a 32-bit machine -

I am running Glassfish 3.1.2.2 and AppleNet 7 on 32-bit Ubuntu 12.10 - I am installing glassfish load balancer Configurator Plugin v3.1.2.2 The installation process cures and does not report any errors: INFO: Start the installation of the GlassFish Load Balancers Plugin Information: Oracle IPlanet Web Server Detected Information as version 7.x: Full installation of GlassFish Load Balancer plugin - Info: Glassfish load-balancer plugin installation successfully completed But when I started the iPlanet example Tax I am attempting to try it: ADMIN3603: Error starting server: failure: Core 2253: Error running Init function load-module: DLOPN. .. ... / webserver7 / plugins / lbplugin / bin / libpassthrough.so failed (... / webserver7 / plugins / lbplugin / bin / libpassthrough.so: incorrect ELF class: ELFCLASS64) failure: server initialization failed I am looking at that lipstastro: file libpassthrough.so and reports that libpassthrough.so: ELF 6 4-bit LSB shared o...

c# - JSON - ButtonClick in asp.net is not firing? -

हाय एएसपी.net में पहली बार JSON का उपयोग कर Iam। मेरा aspx कोड: & lt; script type = "text / javascript" & gt; $ ('Valservice' + valservice); $ .jax ({$ {@} ("# imgbtnGo") पर क्लिक करें (फ़ंक्शन () {चेतावनी ("हाय"); var valService = $ ("# ddlService")। Val () टाइप करें: "GET", url: "/VoyageOneService.svc/BindVoyageDetails?valverervice =" + valService, contentType: "application / json; charset = utf-8", डेटा प्रकार: "जेसन", processdata: true, सफलता: फ़ंक्शन Msg) {सेवा प्रत्याशित (msg);}, त्रुटि: सर्विसफ़ाइल});}); फ़ंक्शन ServiceSceeded (परिणाम) {चेतावनी (परिणाम); } & Lt; / script & gt; और और asp: ड्रॉपडाउन लिस्ट आईडी = "ddlService" runat = "server" width = "100px" TabIndex = "1" & gt; & lt ; / एएसपी: DropDownList & gt; & Lt; asp: ImageButton आईडी = "imgbtnGo" runat = "सर्वर" ImageUrl = "~ / ...

java - SelectionSort and BubbleSort - how to count number of comparisons and number swapping? -

First of all, I have seen a similar question related to C ++, but I did not quite understand it - plus my question Java is about. Actually I have coded two methods that can use selection and bubble on the array. I believe that the methods work properly (I have run the tests and they have sorted all the numbers in ascending order), I am not sure that I am counting the number and number swap correctly. If someone can test my code below and give some feedback, then I would be very grateful. Note: I can zip my Java project files and send them to someone. BubbleSort Method: public string bubble sort (int [] number) {System.out.println ("***** * | Bubble Sort * * ***** "); StringBuilder Root = New StringBuilder (); For (int i = 0; i & lt; = numbers.length - 1; i ++) {Original Array .append (number [i] + ""); } System.out.println ("Basic Array:" + Original Array); Int temporary; // Temporary Variable // Set Boolean Variable true, // To allow th...

python - Theano install warning: g++ not detected -

I tried to run it after installing the thiano but received the error message: Warning: (Theano.configdefaults): G ++ was not found! Theano will be unable to perform customized C implementation (for both CPU and GPU) and will default to Python deployment. Performance will be severely humiliated Why G ++ compiler Python is very slow, so for performance-critical parts, you need a compiled language like C ++.

c# - Who get Access to the Database in MVVM Pattern -

After reading many articles about this, I still do not really know how the best solution can look. / P> Some should tell me the ViewModel and model should get access to the database telling me that only models should be accessed . And does it also depend on the way it actually connects to my database? If I want to use a repository then both of them can actually access it and if I want to use EF then now only "models" are able to do database interaction? Does any general rule do not know which database should you get access to? You should split your application into layers UI layer - Responsible for the graphic part of your app with your visual and view models. Business Layer - This is your layer UI layer that contains all the logic and it acts as the gateway of your database. It includes your model and domain model. Database layer - This layer is responsible for all communications in your database, generally your data is used and continues to p...

symfony - Symfony2 FOSUserBundle User entity field override -

I have a problem overriding an organization. I do not need the field email legal to be unique. Here's what I did: XML in my UserBundle \ resources \ config \ doctrine \ User.orm & lt; Feature-override & gt; Accordingly, I've added the attribute-override configuration. & Lt; Attribute-override name = "email canonical" & gt; & Lt; Field column = "email_connectional" unique = "wrong" name = "email canonical" /> & Lt; / Feature-override & gt; & Lt; / Feature-override & gt; Then I run the following console command $ php app / console doctrine: migration: diff $ php app / console doctrine: migrations: migrate Everything worked well Email Connection was made non-unique but now, when I need to create a unit in the other bundles of the project, then I have a strange error: $ php app / console doctrine: generated: entities Skydom's bundle: category building unit "sky \ bundl...

ios - Disable a button when the keyboard is popped up -

I have got a UITFFIELD, when you click on it, a keyboard will pop up; I use UITFFIELD And now when I pop up the keyboard, I want to disable a button. How can I do this? To disable the button: [self.howButton setEnabled: NO]; But where do I keep it? You can add your code to notifacticon , when it is shown , Then disable the button, - (zero) init {[NSNotificationCenter defaultCenter] addObserver: auto selector: @selector (keyboardWillHide) button in init to add name Enable: UIKeyboardWillHideNotification object: zero]; [[NSNotificationCenter defaultCenter] addObserver: Self Selector: @Selector (KeyboardWlash) Name: UIKeyboardWillShowNotification Object: Zero]; } hide the show and hide the method - (zero) keyboardHallHide {{self.how button is set to enable: Yes]; } - (zero) keyboard hollows {{self.howButton setEnabled: NO]; } Finally remove the supervisor, when the class is dealloc - delete (deleoc) dealloc {[NSNotificationCenter defaultCenter]; observer: se...

c# - Sending jpg using tcp socket -

I have a problem sending JPG data via socket. From: Socket Customer_s = New Socket (AddressedInternetwork, SocketType Stream, Protocol Type. TCP); Ipdpoint serverpe = new ipadpoint (ipadress loopback, 4567); Client_s.Connect (serverEP); Network Stream Stream = New Network Stream (Client_s); Bmp.Save (stream, system, drawing. Imaging.mage format.jpg); To the receiver: clientSocket = listenSocket.Accept (); NetworkStream S = new networkstream (client socket); Bitmap slice_bmp = new bitmap (s); Graphics G = this.CreateGraphics (); G.DrawImage (slice_bmp, 0,0); When I execute the above, bitmap slice_bmp = new bitmap (s); The sender's socket is blocked until it is closed. After the socket closure of the sender, an image is normally prepared. I want to know why the operation is blocked? In addition to this, is this example of networkstream right in the form of the argument of the creator of Bitmap? (My code is based on heritage) First of all, I'll give you ...

Dojo's Support towards CSS3 -

डोजो के पास CSS3 ढाल बॉक्स छाया गोल कॉर्नर क्रॉस ब्राउज़र समर्थन यदि नहीं, तो आप लोग इसके बाद के संस्करण को प्राप्त करने के लिए डोजो पर ऐप बिल्ड से सुझाव देंगे। क्लारो थीम का उपयोग करते हुए आईई (एएफएआईके) को छोड़कर अधिकांश ब्राउज़र्स, यह आसान बनाता है क्योंकि यह कम सीएसएस फ्रेमवर्क के शीर्ष पर बनाया गया है और ग्रेडीएन्ज, बॉक्स-छाया और गोल कोनों को बनाने के लिए उपलब्ध कराया गया है ... यह देखने के लिए देखें कि यह कैसा दिखता है आप आसानी से शुरू करने के लिए आप जो कुछ भी चाल चाहते हैं (उदाहरण के लिए पीआईई देखें) आप आसानी से उन आरंभिक सीएसएस मिक्सिक्स को आईईएस के लिए जोड़ सकते हैं। , इन फ़ाइलों पर एक नज़र डालें: dijit / themes / claro / variables.less: वह जगह है जहाँ आप अपने विषय के कस्टम चर (रंग, आदि) डाल दिया dijit /themes/claro/compile.js: यह वह स्क्रिप्ट है जिसे आप अपनी अस्थायी फ़ाइलों को संशोधित करने के बाद अपनी थीम को पुनः कंपाइल करने के लिए लॉन्च करते हैं। इसके लिए आपको नोडजे इंस्टॉल करना होगा। यह उसी निर्देशिका में README फ़ाइल में प्रलेखित है। निश्च...

using libssl.so in native Android app -

I am writing a native lib (mylib.so) for Android using NDK. Mylib.so depends on libssl.so. The Android NDK doctor tells me that I should not use libssl.so from System / lib because it is not a part of the static API. Instead I should compile LIBSEBILL myself and add it to NDK. But I think the mylib.so system is automatically connected to / lib / libssl.so because the Dalvik vm (which is loading mylib) is already dependent on libssl.so . $ readelf -d / system / bin / dalvikvm | Grep Share 0x00000001 (NEEDED) Shared Library: [libdvm.so] 0x00000001 (NEEDED) Shared Library: [libssl.so] 0x00000001 (NEEDED) Shared Library: [libz.so] 0x00000001 (NEEDED) Shared Library: [libc. So] 0x00000001 (required) Shared Library: [libstdc ++. 0x00000001 (NEEDED) Shared Library: [libm.so] So what is the correct way to deal with this? Are you using the system / lib / libssl.so anyway? Thanks You can download it at the following site:

apache - apache2 django mod_wsgi htaccess -

I want to get the Apache Savings .htaccess file to fix Firefox. Access-Control-Allow-Origin I am using mod_wsgi and my httpd.conf looks like this: alias / static / / home / ubuntu / my-django-app / static / & lt; Under the directory / home / ubuntu / my -dangango app / stabilize & gt; Decline order, allow all & lt; / Directory & gt; WSGIScriptAlias ​​/home/ubuntu/my-django-app/apache/django.wsgi What do I need to see Apache for .htaccess file in / home / ubuntu / my? Do -django-app? & lt; Files match ". (Ttf | otf | eot) $" & gt; & Lt; IfModule mod_headers.c & gt; Header has access-control-permission-origin "*" & lt; / IfModule & gt; & Lt; / FilesMatch & gt; If you have access to httpd.conf, then you may be unable to configure your configuration. Requires access-control-permission-generation

how can i convert a datetime format to a date after fetching the datetime from database in a BIRT? -

How do I convert a date after bringing a date-time format to a date on a database from a database Can i ? To format a datetime item so that it only shows the date: Click the datetime data item in the BIRT layout panel; In the Property Editor - select the Properties pane, Format Date Time tab; As the format property will not be formatted by default; You can select from a number of predefined formats from the dropdown list, or if none of these match your desired format, you can select custom from the dropdown list and then you want to Format can be entered in format >

android - page indicator with tabhost -

Hello I want to create a page indicator with a tab host. Not just click on the tab tab sliding the page tab, but how to change it. Thank you in advance If you want to use tabs, then see this basic tutorial and start it. Hope, you will get an idea Use Jake Wharton's visual pager indicator library for sliding.

php - Get value from view -

I have two table users & amp; There are links between paragraph tables Model: class articles eloquent {public static $ table = 'article'; Public function user () {back to $ this- & gt; Has_one ('user', 'id'); } and class user eloquence {public static $ table = 'user' extends; Public Work Article () {Return $ $-> Belong_to ('article', 'id_user'); } I have to get the value of the name directly from the user on paragraph view, but does not work with error My Controller: Public function action_index () {$ article = paragraph :: order_by ('id') - & gt; Endorse (10); See Return: Creating ('article.index') - & gt; Together ('$ article', $ paragraph); } My view: @foreach ($ articles-> $ Arti results) & lt; Tr & gt; & Lt; TD & gt; {{$ Arti-> Id}} & lt; / TD & gt; & Lt; TD & gt; {{$ Arti-> Tag}} & lt; / TD & gt; & Lt; Td> ...

c# - Why IPAddress.Any needs to connect to remote host? -

I am creating a client server application in C # where the server is a remote host. I have a router and a firewall in my network. My client side code is hostSocket = new TcpClient (); HostSocket.Connect (serverIp, serverPort); and my server side code eqListner = new TcpListener (IP address, eqIp), eqPort); In this scenario I am able to connect the client to the same PC by giving IP 127.0.0.1, but when I run the server on another PC in my network, I can not connect . Then I changed my server side code by following: IPAddress ipAddress = Dns.GetHostEntry (Dns.GetHostName ()). Address list [0]; IPEndPoint ipLocalEndPoint = new IPEDpoint (IPADress, eCaport); TCPLStanerEkelistner = New TCPLSTener (IPLOCLandPoint); But still the result is the same. After this I changed my server side code again: eqListner = new TcpListener (IPAddress.Any, eqPort); And it works perfectly well. I have read msdn for IPAddress.Any and have found that this property set server is ...

android - How to programmatically answer a call? -

I want to answer a phone call. I got the intent android.intent.action.ANSWER but it seems that the only effect I have achieved is an activity notfound exception. Why? Is this an outrageous motive? How do I get answers? I've also heard about "Telnet technology" what's this? Thanks This is not possible, check the thread for more information.

python - Add 1 bit to a string -

I'm looking for a path to add "1" for the message in Python, so that the MD5 algorithm Mentioned. I did this, but the problem is that msg is actually a string: msg.append (0x01) What should I do? use chr to convert the byte value to string. Then you can add them to msg . msg + = chr (0x01 & lt; 8) while len (msg)% 56! = 0: msg + = Chr (0x00) In Python 2.7, the letters 8 bits are large in each ASCII string. So with this method, you are not really adding "1 bit" every time, this is the reason that the left shift is required to do 1 times eight times otherwise you can change the 0b10000000 instead of 0b00000001 in the string.

unix - AIX binaries - size & symbols -

There are some differences in symbols between two binaries created using the same resources on the AIX system. I ' An example for the 'main': xxxx1: .main T 4294975624 xxxx2: .main t 4294969472 516 Why is the difference in size? The 'T' guy is the global text symbol according to the page. What is F? In addition, there are considerable variation in the size of two binary: 3924048 versus 17701460. Why? Ax version, compiler version, makefile (same CFLAG) are identical. I'm pretty sure that returning an F1 function is int. This is a "stub" string which is output when the compiler has given the -g option. It will also be due to size difference. Can you try to "size" and "size"? It also has the option to make more verbose in size, you can also do "file" etc. And it will tell you whether it has been snatched or not. At the link time - between the G and the Strip flag, I think that the differences you...

Parallel output using MPI IO to a single file -

I have a very simple job, but somehow I'm still trapped. I have a large data file ("File_initial.dat"), should be read by all the nodes on the cluster (using MPI) which will display some manipulation from this large file (FILE_SIZE / Number_of_node) and finally each node will write the result in a shared BIG file ("File_final.dat"). The number of elements of the files remains the same. By Googling I understood that it is better to write the data file as a binary file (I only have decimal numbers in this file) and the format of * .txt file Not in Since no human can read this file, only computers. I tried to apply myself (but formatted and output in the output binary file), but I get wrong behavior My code is as follows:. Include # lt; Fstream & gt; #define NNN 30 integer main (int argc, char ** argv) {wing ifstream; // MPI environment integer rank, installation of nprocs; MPI_File file; MPI_Init (& amp; argc, & argv); MPI_Comm_siz...