Posts

Showing posts from August, 2015

silverlight 4.0 - Visual studio 2010: Can't show design view -

Image
मुझे विज़ुअल स्टूडियो 2010 में एक समस्या है: मैंने एक कस्टम उपयोगकर्ता नियंत्रण बनाया है, जो कुछ डेटा दिखाता है, फिर मैंने इसे किसी पृष्ठ पर जोड़ने का प्रयास किया। जब मैंने ऐसा किया, तो यह त्रुटि दिखाई दी ... जब मैं (डीबगिंग शुरू करें) अपना आवेदन चलाता हूं, सबकुछ ठीक काम करता है, केवल एक चीज जो काम नहीं कर रही है वह दृश्य स्टूडियो डिज़ाइन दृश्य है। इसको हल करने के लिए मुझे क्या करना चाहिए? आपका नियंत्रण डेटा प्रदर्शित कर रहा है - अगर वह इसे प्राप्त करने की कोशिश करता है दूरदराज के डेटाबेस से डेटा (उदाहरण के लिए) जो डिज़ाईन समय पर उपलब्ध नहीं है, इसलिए यह समस्या पैदा कर सकता है। डेटा स्रोत होने से निपटने के लिए आपको अपने कोड को संशोधित करने की आवश्यकता है (संभवत: एक अच्छा विचार वैसे भी ) या कोड को "इस डिज़ाइन मोड में" जांचें।

linux - Bash completion programming , '@' is always removed in completion string -

I am completing a bass for Gentoo, which searches for packages, sets (Portes 2.2 new feature) But one problem I found when I'm using the following command: emerged @ pay and I should get @ protected-libs, but Bash turns it in: emerge pres The first thought was that there would be a problem with my script "emerge-finder.pl", so I again Checked and this The script gave the correct output. And next I checked the Bash script: _portage_cmd () {COMPREPLY = (`~ / scripts / emerge-finder.pl $ {COMP_WORDS COMPPLY} before line [COMP_CWORD]} `}} full-width _portage_cmd em and I put" echo $ {COMP_WORDS [COMP_CWORD}} ", and the" @ "character has no output, wired . How can I remove my "@" from Bash? thanks a lot! Can help quote or avoid ... So cited: emerged '@pace' or by avoiding: emerged @ send

java - How can I force a CipherOutputStream to finish encrypting but leave the underlying stream open? -

मेरे पास एक अन्य आउटपुटस्ट्रीम द्वारा समर्थित एक सीफ़रऑटपुटस्ट्रीम है। मुझे सिफरऑटपुटस्ट्रीम के लिए एन्क्रिप्ट करने वाले सभी डेटा को लिखना समाप्त करने के बाद, मुझे कुछ अनएन्क्रिप्ट किए गए डेटा को जोड़ने की आवश्यकता है। कहते हैं कि कॉलिंग flush () अंतिम ब्लॉक को बाहर नहीं करने देगा एन्क्रिप्टर का; इसके लिए मुझे close () कॉल करने की ज़रूरत है लेकिन बंद () अंतर्निहित आउटपुटस्ट्रीम को भी बंद कर देता है, जिसे मुझे अब भी लिखना है। मैं स्ट्रीम को बंद किए बिना एन्क्रिप्ट करने वाले अंतिम ब्लॉक को कैसे बाध्य कर सकता हूं? क्या मुझे अपना स्वयं का नॉन-क्लॉजिंग सीफ़र आउटपुटस्ट्रीम लिखने की आवश्यकता है? यदि आपके पास साइफर , आप FilterOutputStream को उस विधि में पास कर सकते हैं जो CipherOutputStream बनाता है। FilterOutputStream में, बंद करें विधि ओवरराइड करें ताकि यह वास्तव में स्ट्रीम बंद न करे।

django - Custom user model breaks auth tests -

Hecko out there, I'm using a custom user model that I ?? The member has opted to call, which extends the default user model (as described in the form described). This is because it breaks many tests of the application, because test stability only makes standard users , subscriber not. When I add the missing member definitions / rows to DJ ango / contrib / auth / fixtures / authtestdata.json, they surely repeat, but certainly not a solution. Is this doing something wrong for me, and how should I go about doing the best about fixing it? In the final form, I will just add a patch to authtestdata.json in the Buildout, but perhaps there is a very beautiful solution. Thank you very much, Tilofoni You set the AUTH_USER_PROFILE parameter according to the settings Can get some pleasure from it, as it is a great way to expand the standard user model in such a way that it can work with Django.

UIButton setFont fails on iPhone 2G iOS 3.1.3 -

Hi, My tester is in iPhone 2 with 3G 3.1.3. The app crashes on this app on your phone: - (zero) viewDidoadload {[Super Viewedload]; [Resume Game.titleLabel setFont: [UIFont fontWithName: @ "Old English Text MT" Size: 20.0]]; [StartNewGame.titleLabel set font: [UIFont fontWithName: @ "Old English Text MT" Size: 20.0]]; [Options.titleLabel setFont: [UIFont fontWithName: @ "Old English Text MT" Size: 20.0]]; } and interface: @ interface puzzlewind controller: UIViewController {IBOutlet UIButton * resumeGame; IBOutlet UIButton * startNewGame; IBOutlet UIButton * option; } @property (nontomic, retten) ibotlet UIButton * resume game; @property (nontomic, retten) ibotlet UIButton * startNewGame; @protecti (nontomic, retten) IBOutlet UIButton * option; The font has been copied to the Resources folder and "Information. Plist" "The font provided by the application" is set correctly. How can I correct any thoughts? Best regar...

c# - Add-BindingRedirect not resolving NuGet vs issue -

I'm having a problem like I think the other poster to use Nugate to install FluNet Newbernet The file or assembly could not be loaded: 'NHibernate, version = 3.0.0.2001, culture =' error Neutral, Public Key Token = AAA 9 52020989 FADB 4 'or its dependency is a clear definition of the assembly located from the assembly reference Ell does not eat. (HRESULT: Exception from 0x80131040) I saw that the stack overlays answered and answered on other blogs: add-binding redirect However, it has not resolved my problem and all the results of running that command are: PM> Ed-Binding Redirection Name Oldversion Newversion ---- ---------- ---------- NHibernate 0.0.0.0-3.0.0.4000 3.0.0.4000 When I am setting up Fluent Enhnernet from Newgate, it says that its dependencies are 3.0.0.2001 Nhibernate but it installs Nhibernate 3.0.0.4000 What am I doing wrong? Update I think it adds the following section to the node: & lt; DependantAssembly & ...

Calling a USSD number without opening the phone app in Android -

I am trying to call a USSD number from my application: = Uri.fromParts ("tel", "* 110 #", ""); Int'l I = new intent (int. Action_CALL, U); StartActivity (i); This phone launches the app and calls the number. What do I need to call the USSD number without opening the phone app or please open it in the background. If the user is doing something, then he should not bother. Only one notification should be generated. Any suggestions? Fortunately, this is not possible, except for your own custom firmware If this is possible, then malware will take advantage of it to make a phone call without the user's knowledge.

objective c - Storing and retrieving a value and updating it -

I'm making an iPhone app with the objective-c. I have a math problem, I need help So I need to keep it simple. Any sample code will be appreciated. This is the problem I want to display The person A (UItext input) earns $ xa day (UITE input) and the total remains $ Y (Uilabel). Person B (UItext input) earns $ xa day (UIText input) and keeps total $ y. Individual C (UItext input) earns $ xa days (UIText input) and total $ y Grand Total = $ z I do not understand how to store the total, retrieve it, then update the total value One approach is to create an array of objects of the person, which are names, earnings and savings properties. Then use the collection operator to calculate the "grand total" NSNumber * grandototal = [People value ForKeyPath: @ "@ sum.Savings"]; [Grandtotal label settext: [grand coat string value]];

how to read a webform with php -

I'm trying to do something original but for this tutorial can not be found. I have created a simple web form using HTML, which I need to do is create a PHP file, which can read web form, a new browser window of web browser (or in the same page) Displayed), toys have people with no tutorial on this Many thanks Chris I'm sure many different posts will link to the tutorials they like , But I thought I just gave you the basic form of the form method and action method attribute ths tells the browser how to submit data, either via GET or POST. Action attribution tells the browser where to submit the form. (In your case it will be somepage.php) If you ever need a form to submit yourself back, you can type the name of the page here clearly or you can use PHP. Finally, make sure that all your fields use the field name attribute, because PHP elements will be accessed in this way. On the php side of things, your form variable will be stored in either $ _GET or $ _POST, depe...

javascript - stop scrolling to top after AJAX request -

संभव डुप्लिकेट: एजेक्स अनुरोध के बाद शीर्ष पर मेरे ब्राउज़र स्क्रॉल करें तो मैं $ ('html, body') का उपयोग करता हूं। ({ScrollTop: $ ('# load More')। ऑफसेट () शीर्ष} , 2000); मेरे div को वापस स्क्रॉल करने के लिए वहाँ एक रास्ता है मैं इसे स्क्रॉलिंग से शुरुआत से ऊपर से रोकता है आपको रिटर्न जोड़ना चाहिए झूठी आपके एजेक्स कॉल फ़ंक्शन के अंत में। या आपके इनलाइन कॉल की समाप्ति के लिए: & lt; a href = "#" onclick = "कुछएजैककॉल (); वापसी वापस" & gt; लिंक & lt; / a & gt;

virtual machine - qemu vs qemu-kvm: some performance measurements -

I organized the following benchmark in qemu and qemu-kvm with the following configuration: CPU: AMD 4400 process dual core with SMV enabled, 2G RAM host OS: OpenSUSE 11.3, with latest patches, running with KDE4 Guest OS: Freudos emulate Memory: 256M network: zero Language: Turbo C 2.0 Benchmark Program: Calculation screen memory from 0000000 to 99 99 99 99 (i.e. 0xb800: xxxx) It takes only 6 seconds, when running in qemu. But it takes 89 seconds to run in QMU-KVM. I ran the Benchmark together one by one, not in parallel. I scratched my head all night, but still do not know why this happens. Can anyone give me some hints? "post-text" itemprop = "text"> KVM uses qm as their device simulator, any device operation is simulated by user space QEMU program when you use 0xB8000 , The graphic display operates in which the guest has to do CPU `vmexit 'from guest mode and return to the KVM module, which in return the user sends the simulation request ...

c# - Querying by near, sorting, then paging -

I am using the geospatial "closest" search in MongoDB (using the C # driver) given the long / Long it kills homes / prolongs proximity and works great However, I want to add to the sorting (other areas such as house prices) and paging and here I Where am I stuck. To work correctly, it will be necessary to find out which homes are latitude / long within 25 miles, then sort those results (we say on value basis), and then 10 Take a "page" of the results. The problem with what I have done so far is that the page of results takes (based on proximity sort) and then I set the 10 result page in "SetSource Order" , Which is instead of sorting the whole result to late / long, so each page of 10 results is sorted in itself. var coordinate = find.GetCoordinates (); Var close = query Neer ("coordinate", coordinate, latitude, coordinate, length, search. GetRadiansAway (), incorrect); Var query = archive (). Find (near); Query.Skip = find.GetSkip ();...

c - Gaussian elimination from pseudocode -

I have tried to convert the Gaussian eradication of pseudoscopy into actual implementation in C. I have done it, I have not received any error, but in the form of input I am getting the same output, does anyone know, where can I find a fault? As an implant I have 3x4 matrix A, where the number refers to the number of rows (in this case 3) and num + 1 refers to the number of columns. zero ge () {int i = 1; Int j = 1; Int k, u; Whereas (i & lt; = num & j & lt; = num + 1) {int maxi = i; (K = i + 1; k & lt; num; k ++) {if (abs (a [k] [j]) abs (a [maxi] [j])) {maxi = k; }} If (A [Maxi] [J]! = 0) {Float P; P = A [Maxi] [J]; A [maxi] [j] = a [i] [j]; A [i] [j] p =; (U = I + 1; U & LT; number; U ++) {A [U] [J] = A [U] [J] -A [I] [J] * A [U] [J ]; }} // Andif J ++; I ++; } / /> Edit: FILE * Input Metrics = FOPAN ("file.in", "r"); Fscanf (inputMatrix, "% d", & amp; number); For (i = 0; i file.in: 3 2 -1 -1 8 -3 -1 2 -11 -2 1...

iphone - Delete Rows from UITableView -

After Here is the code to delete me, it works fine, but if you open another tab and after that Click on this tab again for the item should be removed because it is not a normal UITableView, you can not just delete from the array and then update the table. So can someone please help me refresh sequence also does not work the piece: // reload scene completely if ([self isViewLoaded]) {self .view = nil; [Self viewDidload]; } Here's my removal code: - (void) tableView: (UITableView *) tableView commitEditingStyle: (UITableViewCellEditingStyle) editingStyle forRowAtIndexPath: (NSIndexPath * ) Index Path {// If the row has been removed, remove it from the list. If (editingStyle == UITableViewCellEditingStyleDelete) {// Remove songs from the list & amp; Remove the disc \\ // from the arrays [auto. Remove the Explode ObjectIndex: [IndexPage Line]]; [Self. Remove book object folded: [indexpath line]]; [Self. Remove book image Object Outdx: [IndexPage line]]; NSString * Temp...

javascript - want to decrease the size of the div which is added in dialog -

I'm adding div content to the dialog box using jquery. I am using the same device content to display in my page.Now I want to reduce the size of the content based on the percentage which I am pushing into the dialogue. But it only for the content on my page Not only should it apply to the contents of the dialogue. So how can I do this using jquery? Help me $ (function () {$ ("# main container"). Dialiog ({auto open: false, width: 50%, height: 400, autoclase: false, show ("#maincontainer") .dialog ("open"); return false;});} ); You 'height: auto' property; It can work

java - How to handle jodatime Illegal instant due to time zone offset transition -

I want to set up 2 hrs Joda Time (see below sample code). But I'm getting this exception: formula exception "main" OrgkjodaktimekIllegalFieldValueException: no 2 supported HOUROFDAY: illegal immediate time zone due to offset transition: 2011 -03-27T02: 52: 05.23 9 (Europe / Prague) org.joda.time.chrono.ZonedChronology $ ZonedDateTimeField.set (ZonedChronology.java:469) on org.joda.time.MutableDateTime.setHourOfDay (MutableDateTime. Java: 702) Or to create a date time at a particular time of day? Sample code is the correct way to handle exceptions above: Now MutableDateTime = new MutableDateTime (); Now.setHourOfDay (2); Now.setMinuteOfHour (0); Now.setSecondOfMinute (0); Now.setMillisOfSecond (0); Date time myDate = now.toDateTime (); Thanks. The It seems that you have a Dinanktaim example And you want to be stronger than Daylight Savings. Try it ... (Note that I am in America / Eastern, so our date of transition was 13 March 11; I got the rig...

Jquery Selector Multiple Classes (this) -

I have a page that lists the content of the category that is included in a div with a class ad-container There is a hidden div with class ad-contact in that container. I want to bring the advertisement performance on the ad hover. Since there are many ads on a patent page, I want the ad-container ad-information currently being filled. My problem is that when you run on one of the ads, more than 10 ads are one page, all ad-contact divs slidedown and not the one you're slipping on $ (Document) .ready (function () {$ ('ad-container'). Hover (function () {$ (". Ad-contact"). Slide Down (1000);}, function () {$ ("Ad-contact"). SlideUp (1000);});}); I think, (this) is used here but I'm not sure. And it will really be highlighted for me. & lt; Div class = "ad-container" & gt; & Lt; Div class = "ad-title" & gt; Title & lt; Span class = "ad-title-img" & gt; (Pic) & lt; / Span & gt; ...

advantages of using Borland C++ version 5 -

Borland C ++ संस्करण 5 का उपयोग करने के फायदे और नुकसान क्या हैं मेरे सिर के ऊपर से दूर ... लाभ: आप उपयोग कर सकते हैं, जो बहुत से लोग सोचते हैं जीसीसी या एमवीसीसी की तुलना में बहुत कम समुदाय नई प्रौद्योगिकियों तक कम पहुंच लोकप्रिय कंपाइलर नई सी ++ सुविधाओं का समर्थन नहीं करता

sql server - What would the tsql be for this type of database schema? -

Image
मैं, और किसी ने इस प्रकार के स्कीमा का सुझाव दिया मैं कैसे सुपर / उपप्रकार काम से परिचित नहीं हूँ क्या आप मुझे इस डेटाबेस का निर्माण करने के लिए एक टीएसक्यूएल उदाहरण दिखा सकते हैं? एक अन्य समस्या मुझे मेरे सिर को लपेटने में परेशानी हो रही है, एक आदेश दिया गया है, और उस क्रम में वस्तुओं का संग्रह, कैसे होगा मुझे पता है कि कोई वस्तु पिज्जा, बेवरेज या साइड डिश है? धन्यवाद। टेबल्स: ITEM_SUPER_TYPE ITEM_SUPER_TYPE_ID (पीके, पहचान) वर्णन ITEM_SUB_TYPE ITEM_SUB_TYPE_ID (पीके, पहचान) ITEM_SUPER_TYPE_ID (ITEM_SUPER_TYPE.ITEM_SUPER_TYPE_ID के लिए)। वर्णन आइटम ITEM_ID ITEM_SUB_TYPE_ID (आईटीईएमआईआईबीआईटीआईपीआईटीआईटीआईसीआईआईटीआईआईटीआईएसआईबीआईटीआईपीआईआईडी) के लिए इस प्रकार, सुपर टाइप उपप्रकार से अनुमान लगाया जा सकता है।

haskell - Implementing lazy functional languages -

एक आलसी कार्यात्मक भाषा को कार्यान्वित करते समय, मूल्यों को असुविधाकृत चूंकों के रूप में संग्रहित करने के लिए आवश्यक है, जो केवल तभी आवश्यक हो जब मूल्यांकन किया जाए। एक कुशल कार्यान्वयन की चुनौतियों में से एक, जैसा कि उदाहरण में चर्चा की गई स्पिनलेस टैगलेस जी-मशीन यह है कि यह मूल्यांकन प्रत्येक थंब के लिए केवल एक बार किया जाना चाहिए, और बाद के अभिगमों को गणना मूल्य का पुन: उपयोग करना चाहिए - ऐसा करने में विफलता कम से कम द्विघात मंदी (शायद मुझे अपने सिर के ऊपर से पक्का यकीन नहीं है।) मैं एक सरल उदाहरण कार्यान्वयन की तलाश कर रहा हूं जिसका ऑपरेशन आसानी से समझा जाता है (जैसा कि औद्योगिक-शक्ति कार्यान्वयन के विपरीत है जिसे जीएचसी बनाया गया है सादगी पर प्रदर्शन के लिए) मैं उस मिहनहाकेल में आया था जिसमें निम्न कोड होता है। जैसा कि इसे "एक कुशल व्याख्याता" करार दिया गया है, मैं मानता हूं कि यह वास्तव में केवल एक बार प्रत्येक मूल्यांकन को पूरा करता है और पुन: उपयोग के लिए गणना मूल्य को बचाता है, लेकिन मैं मुझे कहाँ और कैसे देखने में कठिनाई हो रही है; मैं केवल दुभाषिया में ...

jquery - Attach draggable div to another div -

I'm trying to use jQuery UI / plugins. I have dragable div that I drag on target div target div is also dragable Drag div when I can not be able to extract a way to attach them to div on their targets. Any sign in the right direction will be highly appreciated. What is this you are trying to achieve? If you want to add a dragable divan, then you can use straight $ (ui.draggable) and add it to the target device, in this case you do not have to specify the drop device. Dragable Stack Drop

ios - How to import a large text file containing many small records in Objective-C without using large amounts of memory -

Import some large files (100 MB +) into CoreData in an app targeting for mobile devices targeted for Merid The ability to do is constrained. Each file contains a large number of small records which will be processed before being added to the database. Searching from several sources is a recommended method of reading in a text file: NSString * stringFromFileAtPath = [[NSString alloc] initWithContentsOfURL: URL encoding: NSUTF8StringEncoding error: & amp; Error]; At first glance it is necessary for me, it seems very intensively, but assuming that there is no other recommended way to read the file, let me guess It is true that Apple has kept this in mind and managing its memory - maybe a mistake in the data from the file when necessary? If moving forward to use NSTrim and NSSCan and one line ]; If I use this method then I am assuming that it will need a complete text file in memory so that this memory is again intensive. Would it be better to use NSScanner to sav...

Setting up openId in tornado python -

All of them ... I'm studying the storm doctor and I have come into the open id mix, so I myself The thought of "Wicked password system on my side", then how I applied it, was the only example of this: class GoogleHandler (tornado.web.RequestHandler, tornado.auth.GoogleMixin): @ Tornado.web.asynchronous def (self): If self.get_argument ("openid.mode", none): self.get_authenticated_user (self.async_callback (self._on_auth)) self-authentication_redirect () def _on_auth (self, User): if No users: raise tornado.web.HTTPError (500, "Google auth failed") which does not show large pictures, routes, apps, etc. # With the save user, for example For, set_secure_cookie () So my question is how is it fit in the big picture which is a storm site. This handler does not depend on other parts of the application, Set on something like 'google /' and keep a link to this url on your website. The user clicks on it and gets redirected to Google Ea...

while loop - javascript function problem -

मुझे एक और चीज़ की ज़रूरत है मेरे पास फ़ंक्शन show_image () {Document.write ("& lt; img src =" + this.link + ", alt =" + this.alt + ", चौड़ाई = 600, ऊंचाई = 400 & gt;"); } फ़ंक्शन छवि (a, b, c) {this.link = a; this.alt = ख; this.thumb = c; this.zobraz = show_image; } Image1 = नई छवि ("img / img1.jpg", "जानकारी छवि 1", "अंगूठे / आईएमजी 1"); Image2 = नई छवि ("img / img2.jpg", "जानकारी छवि 2", "अंगूठे / आईएमजी 2"); और अब, मैं ऐसा कुछ करने की कोशिश कर रहा हूं: फ़ंक्शन स्लाइड शो () {var i = 1; जबकि (i & lt; 3) {document.write (image [i] .zobraz ()); मैं ++}} मुझे पता नहीं क्यों है, लेकिन यह [i] बात काम नहीं कर रही है मेरी गलती कहां है? धन्यवाद आपको [] का उपयोग करके सबस्क्रिप्ट करने में सक्षम होने के लिए एक सरणी का उपयोग करना चाहिए : // छवियों को बनाए रखने के लिए सरणी बनाएँ var images = []; // छवियों को लोड करें और उन्हें सरणी छवियों में संग्रह करें। Push (नई छवि ...

mysql - WHERE statement after a UNION in SQL? -

मैं SQL / MySQL में एक यूनियन के बाद WHERE कथन को कैसे लागू करूं? यदि आप UNION के परिणामस्वरूप WHERE क्लास को लागू करना चाहते हैं, तो आपको एम्बेड करना होगा एफआरएम खंड में यूनियन: SELECT * FROM (सेलेब्रिबल संघ चुनिए * टेबलबैक से चयन करें) यूके यू.कॉल 1 = ... मैं TableA मान रहा हूँ और TableB संघ-संगत हैं। आप यूनिअन में प्रत्येक व्यक्तिगत SELECT कथन के लिए एक WHERE क्लॉज़ भी लागू कर सकते हैं, बेशक।

php - On every visit, new session (please)? -

On one website, I close all the windows and I go back again, and of course the logs in the email These are done. What do I want to do to otherwise do the website? When I do not go back - to make a new session on every journey, and to keep it all the time (no timeout). Should I see what should I look when I managed to do it on local Apache, but it is not working online, since then do I do this? More Thanks :) End the range. This should allow you to be logged on for a session, but once you close the browser, the browser will clear the cookie's cookie associated with the cookie and its session with it.

syntax - Recursive Descent Parser for EBNF in PHP -

I am trying to write a recursive original parser in PHP for the following EBNF: EXP :: = & lt; Period & gt; {(+ | -) & lt; Period & gt; } TERM :: = & lt; Factor & gt; {(* | / /) & Lt; Factor & gt; } FACTOR :: = (& lt; EXP & gt;) | & Lt; Digit & gt; Digit :: = 0 | 1 | 2 | 3 I followed this way which I had suggested on a similar question. (I did search before posting) For the most part, how do I work and I understand grammar. I think the problem is within my syntax, I'm new to PHP, so I'm referring to. I am currently receiving the following error with my code: WARNING: Incorrect parameter count for XP ... at 101 I have tried to see this error and did not have much luck. I've read some posts about people who went wrong in typed type, but I do not have any parameters for that function. Is there something about PHP that I'm missing here? Below is my code, I think the argument is correct because I was away f...

html - How to set the style of an image in a div class? -

मुझे ऐसा कुछ करना है: .even {float: left; पाठ संरेखित करें: बायां; } .even img {फ्लोट: सही; } हालांकि यह काम नहीं कर रहा है। मैं उम्मीद कर रहा हूं कि मेरी समस्या सिर्फ एक वाक्यविन्यास है, लेकिन मैं यह कैसे समझ सकता हूँ कि यह कैसे करना है। मैंने Google के चारों ओर खोदा है, लेकिन मुझे खोजशब्दों के सही सेट को खोजने में परेशानी हो रही है मैं जिस संबद्ध एचटीएमएल का उपयोग करना चाहता हूं, वह थ्रेस की तरह दिखना चाहिए: & lt; div class = "linkblock even" & gt; & Lt; img class = "linkThumbnail" src = "ग्राफिक्स / लिंक / थंबनेल_ओइलन। जेपीजी" चौड़ाई = "267" ऊंचाई = "200" / & gt; & Lt; h2 & gt; & lt; a href = "http://www.etsy.com/shop/oilcanpress" rel = "nofollow" & gt; तेलनेट प्रेस & lt; / a & gt; & lt; / h2 & gt; & Lt; p & gt; तेलकेन प्रेस हस्तनिर्मित पुस्तकों का एक पुराना है & amp; शब्द संबंधी कलाकृतियों अगर आप किसी विशेष आकार या आकार या थीम के काम को कम...

search - How do you pass Section 508 for a searchbox in HTML 5? -

indicates that: A text equal to each non-text element will be provided (For example, "alt", "longdesc", or in element content). For a search box, & lt; Input type = "text" alt = "search" value = "" tabindex = "1" name = "s" id = "s" /> Passes the 508 standard, but HTML5 does not pass validation. & lt; Label & gt; The only way to tag passes both the 508 standard and HTML 5 validation, because I have an unnecessary and label I think that you get 1194.22 (n) More attention is needed. If you really want, without a separate label, you can do something like this: & lt; Input type = "search" value = "" tabindex = "1" name = "s" id = "s" /> & Lt; Label = "s" & gt; & Lt; Input type = "submit" value = "search" & gt; & Lt; / Label & gt; But I strongly recommend...

templates - Using liquid in Rails 3 -

I'm building a rail blog engine for the purpose of learning. I want to use liquid as a template engine. I have something like this ## posts_controller.rb ... df index @posts = post.he end ... ## post / index.html.liquid {% posting in post For doing so I found the following error: Undefined local variable or method `template '{{post.title}} {{post.title}} 'for # & lt; PostsController: 0x103d16290 & gt; I had already loaded the RBI in Starter / Liquid. Please tell me what is my problem as I know that you have liquid methods for the characteristics (in your case for your 'title') . Try to do something like class posts & lt; ActiveRecord :: Base Liquid_Cools: End of Title See more. class posts & lt; Liquid :: drop end ** Since BTW you have to claim the missing template variable If there is an error, make sure your liquid rendering part is as follows (directly copied from liquid doctor) template @ template. Render ...

bash - path in shebang -

मेरे कंप्यूटर पर / bin / bash (3.2) और / usr / local / bin / bash (4.0) हैं I $ पथ परिवेश चर में, bash 4.0 पहले 3.2 bash है। मैं $ PATH प्राथमिकता के आधार पर बाश ढूंढना चाहता हूं I यह कैसे करना है? धन्यवाद! आप हमेशा कोशिश कर सकते हैं #! / Usr / Bin / env bash

iphone - How to Structure Core Data Entity -

I want to create a unit for a workout routine. I call the unit "routine". The user gets a name for each day (example 1) chest day, 2) back day, 3) day of foot, etc to enroll with UILLurt. And these days every day there will be a list of those exercises which they like to be done on that day. I have all the exercises stored in a dictionary in a dictionary right now. I need help in preserving characteristics etc. for the routine. I am thinking of getting a specialty for the day (where she gives the name of the day) and then she says where I got stuck. I suppose that a dictionary or an array is estimated to be used to capture the practice of that day, but it can not be done in core data. Do not think in terms of dictionaries or array, think of objects in terms of things you can use in your vocabulary / Thinking of putting in the array, a real exercise is being done as part of regularity of one day, right? So you need an internal name for it; "Exercise" does...

java - Prevent Jsoup from discarding extra whitespace -

I am using Jess oup to configure user input from a form. In the form in question, a & Lt; Textarea & gt; which is expected to be plain text when the form is submitted, then I clean the input with the Jsoup.clean (textareaContents) ; However, because HTML ignores additional white space, will remove characters from precious white space from Jsoup.clean () input. For example, if any Textarea : Hello Test after Jsoup.clean () , you will have: Hello test How can you create Jsoup.clean () white space Protect? I know that this is designed to parse the html and this is not html, is there a better option? If your teddyara just looks for plain text, then I think you should avoid plain text To be better than just HTML. To wit. The user's input & lt; and & gt; tag to & amp; Lt; and & amp; Gt; . Either on our output input (input may be secure so that you only need to think about it once.) It is, as you say, to analyze untrusted inpu...

android - how to decrease the space between the images in the image below? Is there any way to make the spae zero ? so that the images are side by side? -

Image
संपादित करें: इस तरह से मेरी स्क्रीन कैसे बनाएं? एक्सएमएल नीचे दिए गए लिंक में है मुझे लगता है कि आपने यह ग्रिड दृश्य के साथ किया था। अपने XML की जांच करें जैसे android: columnWidth = "90dp" एंड्रॉइड: numColumns = "auto_fit" एंड्रॉइड: verticalSpacing = "10dp" एंड्रॉइड: क्षैतिज स्थान = "10 डीपी" इन गुणों को बदलने का प्रयास करें और यदि आपके कोड में इस प्रकार का कोड होता है तो इसे बदलें imageView.setLayoutParams (नया GridView.LayoutParams (85, 85)); ImageView.setPadding (8, 8, 8, 8);

Any Java Code Coverage Tool for Solaris -

I can not see similar posts so that I can add new ones. Any Java code coverage tool: The tool should be open / open source. I want to run it in Solaris-10 Server There should not be any time-dependent / compilation in the code coverage tool. I want to run this code coverage tool on Solaris server where my application is deployed. The device must be able to merge the reporting / snapshot thanks in advance.

newline - adding to the text-box when user press enter key in jquery -

I get the user & lt; Br / & gt; Click to enter the (new line) click on the login button. How can I get it into jquery onkeyup event? Can you implement me examples or any good website? thanks See copied from here .

jquery - jQueryUI: Overlay, like on the themeroller page -

I am trying to find out how to overlay on the theatrical page:. I tried to see the source, but it does not seem that the theme is implemented through any jquery ... This is a hidden function, but if you use modal: true for your parameters (like width: or button: / Code>, it creates the same effect, blocking the background.

How can I convert a JavaScript variable to a Java variable? -

I need to convert a converter into a Java convertible in Java. I will block users for their e- Asking through the test box from UI popup. If the field is not tap or empty, then the e-mail ID should be sent to a session variable so that it can be accessed anywhere in the project. This is my code: function sbtEmail () {var email = document.getElementById ("EmailId"). Values; If (email == tap = email == "") {Warning ("Enter your contact email address to continue ...!"); Document.getElementById ("EmailId") focus () .; } And {& lt;% Session .setAttribute ("quotation email", email);%> Window.location.href = "demo2.jsp"; }} does not work Do I am doing wrong? You can not set a variable in the session (which lives on the server alone!) Directly from Javascript You have to pass them to any request from your server, and then the server can set it in session.

android - 'Too many open files' error -

In my app, there is an inclusive operation on form submissions. In most cases the inclusion campaign is successful. Sometimes the entry is not operational and then, it is giving java.lang.RuntimeException . Here is the logbat description: 03-28 10: 52: 09.260: error / costume (1501): can not FD = 1023, size = 1048576, err = 0 (too much Open files) October 03-28: 52: 9.260: Error / IMemory (1501): 52: 9.260: error / BpMemoryHeap (binder = 0x5919b0), size = 1048576, fd = -1 (bad file number ) Can not map to 03-28 October JavaBinder (1501): *** Unwanted remote exception! (Exceptions are not yet supported in the processes.) 03-28 10: 52: 09.260: Error / JavaBinder (1501): java.lang.RuntimeException: Memory memobb 03-28 10: 52: 09.260: Error / JavaBinder (1501): android.database.CursorWindow.native_init (Native Method) on 03-28 October: 52: 09.260: Error / JavaBinder (1501):. Android.database.CursorWindow & lt; Init & gt; (CursorWindow.java Peters18) 03- 28 10: 52: 9.260: Er...

Removing whitespace from strings in Java -

मेरे पास इस तरह की स्ट्रिंग है: mysz = "name = john age = 13 वर्ष = 2001 "; मैं स्ट्रिंग में रिक्त स्थान को निकालना चाहता हूं। मैंने ट्रिम () करने की कोशिश की लेकिन यह पूरे स्ट्रिंग के पहले और बाद में केवल सफेद स्थान निकाल देता है। मैंने प्रतिस्थापित सभी ("\ \ W", "") की कोशिश की, लेकिन फिर = भी निकाल दिया गया। मैं एक स्ट्रिंग कैसे प्राप्त कर सकता हूं : mysz2 = "name = johnage = 13year = 2001" st.replaceAll (" \\ s + "," ") सभी रिक्त स्थान और गैर-दृश्यमान वर्ण (जैसे, टैब, \ n ) को हटा देता है। st.replaceAll ("\\ s +", "") और st.replaceAll ("\\ s", "") एक ही परिणाम का उत्पादन करें। दूसरा regex पहले से 20% अधिक तेज है, लेकिन जैसा कि संख्या लगातार स्थान बढ़ती है, पहले एक दूसरे से बेहतर प्रदर्शन करता है। एक वेरिएबल को मान असाइन करें, यदि सीधे उपयोग नहीं किया गया है: st = st.replaceAll ("\\ s +", "")

delphi - How can I get the file path of the TPicture of a TImage? -

संभावित डुप्लिकेट: इसने मुझे साल के लिए परेशान किया है मेरे पास मेरे खुद के ऑब्जेक्ट इंस्पेक्टर हैं (ठीक है, टीएमएस वास्तव में) जो रन-टाइम में दिखाई दे रहे हैं जब उपयोगकर्ता एक TImage जोड़ता है तो वह "छवि" के बगल में अंडाकार (...) पर क्लिक कर सकते हैं और एक मानक "फ़ाइल खोलें" संवाद पॉप अप हो जाता है हालांकि, क्लिक "लोड" के बाद डिस्क पर फ़ाइल का फ़ाइल पथ प्राप्त करने का कोई तरीका नहीं है (मैं एक प्रतिलिपि बनाना चाहूंगा, उसी फ़ाइल नाम के साथ, एक अलग निर्देशिका में)। क्या किसी को भी एक FOSS घटक का पता है जो मुझे ऐसा करने देगा? या पता है कि मुझे अपना खुद का रोल करने के लिए क्या उप-वर्ग होगा? आपको बनाना होगा टीएमएस ऑब्जेक्ट इंस्पेक्टर के वंशज, और एक फ़ाइल को चुनने के लिए डायलॉग को प्रस्तुत करने में हुक। उसके बाद आप फ़ाइल नाम को उस नई संपत्ति में संग्रहीत कर सकते हैं, जो उस जानकारी के लिए वंशज प्रदान करता है। आप का उपयोग कर रहे टीएमएस घटक नहीं होने पर, मैं आपको यह नहीं बता सकता कि यह संभव होगा या नहीं। आप टीजीraphिक के लिए प्रतिस्थापन सं...

cocoa - High memory usage during CoreData import -

I am trying to do very little coreata import (about 25000 lines) while still maintaining a low memory footprint I have read the documents around the efficient import of data and have tried to implement all the suggestions (to silence anything like my MOC's undo manager). Unfortunately, my applications memory usage still sit around the application 180 MB points on completion run code under climbs around 180 MB, regardless of the final Ansyuetioreiipyul pole groove call. Running an application through allocation shows that 95% of the memory usage is due to my [self]. Save Mok: & amp; Error] call what am I doing wrong here? - (zero) GenerationCak {NSAUTOrilepoolPool = pool = [[NSAUTOriPeople Alok] INS]; NSUInteger count = 0, batch size = 1000; // SNIP SNIP // For our directory structure (in the directory structure for NSString * items) Overwrite {NSDictionary * info = [FM attributesoff itemmet path: item error: zero]; Failrekord * Record = (Failrekord *) [NSEntityDesc...

ios - Dial a phone number with an access code programmatically -

How can I dial a phone number in which IOS has a number and access code program? Example: Number: 900-3440-567 Access Code: 65445 uideware * device = [uidwise current device]; If ([[Device model] is aquatic string: @ "iPhone"]) ([UIPPsession ShareApp] Opal: [NSL URL URI Strasting: [NSSTING string with format: "" Tel: 130-032-2837 "]]];} And {UIAlertView * notPermitted = [[UIAlertView alloc] initWithTitle: @ "Alert" Message: @ "Your device does not support this feature." Representative: Cancel zeroTuttonite: @ "OK" other button titles: zero]; [Not shown Gone show]; [sent release];}

vmware - Using libtool without using links -

My Macfile to create some Apache modules by using libtool Used to be . Unfortunately, I need to work on compacting ( hgfs ) to share my MacPheel on VMware, which can be any kind of link (symbolic or hard Link) does not support. Can I use libtool and replace it with ln -s instead of cp , Without variables in the LN_ST script, and libtool ? libtool for the rest of the system does not support all the softwares. You must use the AutoConf macro `AC_PROG_LN_S 'to support the target architecture, and the result of that test should be specified in any variable. You can use the archived command in the variable to do so whenever you need to create a link later. LN_S = @ LN_S @ ... $ LN_S $ top_srcdir / foo $ dist_dir / foo In addition to all the implementations of LN, F can not rely on support for option. Instead, use RM before calling ln

versioning - Why do I get "fatal: git status --porcelain failed"? -

This is a big pain in the bum. I've got this some time ago and I do not understand why 5 minutes ago The repo was fine and was working, I take some files all around (which is all cool and all) and the guitches suppresses their pants. Any idea why this happens? How do I separate it from repo cloning, moving files, etc ... Oh Dear I have failed such that it seems that the problem is linked to the Flash Builder, in which the other in the sub folders. The answer is that all .git folders are not of the repo.

sharepoint - programmatically setting the CAML-query on the QueryOverride-member of an custom WebPart that inherits from ContentByQueryWebPart -

The title tells too much, what I see. I created a custom webpart for the SharePoint 2010 solution in Visual Studio 2010, which is derived from ContentByQueryWebPart The purpose of the website is to take an overview of the actions of users, from many work-lists. There is no problem till now. However, to get some data from URL-query to some custom filtering, grouping and sorting, I have overridden OnInit-Method. The problem is, the custom CQP will not take the CREML string created by me. I tried some methods already, but none of them wanted to do the job. I might have stripped it down at least that where I set QueryOverride, that location is wrong. (OnInit / OnLoad / before or after the base). **** (E) ;?) For now, it looks like this: Secure Override Zero OnInit (EventArgs E) {string query = "& lt; query & gt; & Lt; Where & gt; & lt; Eq & gt; & lt; FieldRef Name = \ "Assigned \" / & gt; & lt; Value Type = \ "User \" ...

asp.net mvc - Reset MVC form with jquery -

How do I fix a form? i.e. Clear the values ​​of all areas and remove verification. Error message validation - summary-errors with jquery I use the code below but it does not work: var validator = $ ("#myform") valid (); Validator.resetForm (); I am using ASP.NET MVC3 and jquery scripts are included in my page. & lt; Script src = "@ Url.Content (" ~ / Scripts / jquery-1.4.4.min.js ")" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "@ Url.Content (" ~ / scripts / jquery.validate.min.js ")" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "@ Url.Content (" ~ / script / jquery.validate.unobtrusive.min.js ")" type = "text / javascript" & gt; & Lt; / Script & gt; $ ('.field-verification-error') .removeClass ( 'Field-verification-error') .addClass ('field...

c - Initializer element code error -

जब मैं कोड के इस भाग को चलाता हूं: void main () {int a = 5; स्थैतिक int i = a + 5; Printf ("% d", i); } मुझे त्रुटि मिलती है: प्रारंभिक तत्व स्थिर नहीं है इसका क्या अर्थ है? फ़ंक्शन गुंजाइश में स्थिर चर डेटा सेगमेंट में जाते हैं। कंपाइल समय पर डाटा सेगमेंट आरम्भिक किया जाता है। इसका मतलब है कि प्रारंभिक मान को संकलन समय पर जाना जाना चाहिए। आपके मामले में, प्रारंभिक मान (ए के मूल्य) स्टेक पर एक वैरिएबल से आता है जो केवल रनटाइम पर उपलब्ध है।

Problems with running a Java project under Tomcat after an Eclipse crash -

This may be the last novice question, but I'm really in haste and need a quick fix. I have a Java project that I develop under Eclipse, and run under Tomcat, using the Eclipse plugin. By the last night everything was fine and fine. Then, I got an eclipse error, which killed me the eclipse process ... and this morning, I do not want to run this project. It compiles, but like Tomcat does not have any idea of ​​my project library folder when I run it, it starts shouting "Class Not Found" exceptions. I did a little experiment to move directly to my project libs in Tomcat's Library folder - this works, so the problem is clearly in Tomcat, not to recognize my Project Lib folder at any time. I tried to clean up this project, it was refreshing and what happened, but still the problem persists. I do not want that libs T be directly captured in Tomcat, because it is a series of other problems and complications It makes me want to return things just because they were l...

symfony1 - Symfony framework: Common method for multiple modules -

I have several modules in my project: 1. Become a sponsor. 2. Become a demonstrator. 3. Call for papers 4. Etc. In these modules I have a form of data filling and depositing for users. It's like a registration form. If the registration is successful, then I send the "Welcome Message" to the user's email. This email template is normal for all situations! Therefore, I need a normal function to call to send that email, method I do not want to write it in every action. Therefore, in that method I can get an example of mailer, user culture etc., such as the action of the original module. Please help, brothers! You can create a new category in your lib directory. The file will automatically be included in your action files. Then in your action: $ obj = new YourNewClass (); $ Obj- & gt; Send Mail ($ p1, $ p2, ...);

c# - Asp:RequiredFieldValidator causes validation on Server even if validator is disabled -

I will keep this possble but its brief as much as destroying my head. I have a user control with the label and area I add dynamically user controls on a page on the runtime There can be many user controls that are dynamically created from the data obtained from the data base. The data describes the name of the label and if the text box should be completed i.e. it is necessary that I have submitted one on the main page that contains a verification group. All beliefs on user controls have the same verification group. So far so good I hope. User Control is a RequiredFieldValidator for the text box and looks like this all. Validator enabled by default & lt; ASP:. Text box id = "dfControl" runat = "server" text = "" tooltip = "ucsAlphanumericEntryDC" width = "95%" CausesValidation = "true" /> & Lt; ASP: RequiredFieldValidator id = "rfvContol" runat = "server" errorCare = "value is requir...

iphone - Problem uploading to App Store -

I downloaded an app loader to upload my app in the app store. While uploading my app, I am getting the following error: The app is not in the proper location: it should be at the top level of the collection. This will be a great help if you provide the solution thanks in advance. Your app should be zipped and the collection name should not contain any spaces.

c# - How to not print duplicates in a data grid view using LINQ -

I have a table named Time and there are many students in it. Occasionally, student A will have more than one entry in TIME. How do I print the latest record for student A? Do you want the latest student? .. then you need something like this: Datagram view. Data source = students. Group by (s => s.Name). Select (i = & gt; i.OrderByDescending (s = & gt; s.DateChanged). First ()); I here believe that you can sort them with some parameters (I used the date here. You may have some incremental primary key or smth).

language agnostic - What is a name for the parts that make up an expression? -

An expression is a list of functions, variables, constants and operators that can be evaluated and can return a result Are there. In terms of expression, what is the name of each individual item? One post. Note that an expression is also a word when it is used as a word in a bigger expression.

sql server - t-sql : get a single row with parents, children, grandchildren... n children -

I have a table with 2 columns: id, parent id I want to create a new table / see that each parent includes a certain guard at all levels of the parents ... For example: ParentID Level_1 Level_2 Level_3 .. level_n This means that parents are parents of level_1 who are the parent of Level 2, parents of the level and so on ... i do it without reinterpretation There is no need to stack overflow, so ... In T-SQL, there is a function called " So choose, I can use it somewhere in the loop or something ... The question is how many columns can I get to create in the beginning? How to use this challenge? The one you are trying to achieve is a pivot table, but, in my opinion, This work is not related to the database. I should instead get a result set with rows and pivot them "externally". To get everything you have described in SQL Server 2005+, you get a generalized table expression (whereas SQL Server 2000 requires a slightly different approach. Not...

javascript - calling a webservice error -

I am trying to follow this tutorial and learn to call web service from a web page. However, I'm getting an error in the Firebug console: The service has not been defined InitializeService () onload () event = load service.useService ("http: //tm.a ..smx? WSDL "," TryggMedisinWebService "); This is the relevant code I'm using. & lt; Script language = "javascript" & gt; Function InitializeService () {service.useService ("http://tm.arnett.no/tryggmedisinwebservice/tryggmedisinwebservice.asmx?WSDL", "TryggMedisinWebService"); } Var spm, category, fylke; SendQuestion function () {spm = document.send_question.spm.value; Class = documentation. Fylke = document.send_question.fylke.value; Service. TriggeMedicine WebService Service ("send-query", SPM, category, file); } ShowResult () {Warning (event.result.value); } & Lt; / Script & gt; & Lt; Body onload = "initializeService ()" id = ...

tfs workitem - Can TFS track non-project tasks? -

We have non-project tasks / issues and centralizing all work tracking to TFS (available in 2008 and 2010) Would like to. Is there a clear way to track those items that are not connected to a project? Thoughts and experience? We have a separate team project at the top of the "Work and Change Ricests" (exclamation point) list Sort) There is no source control / construction with this project. By keeping one thing in mind if you do so ... you will lose the ability to use the standard process-template report (some) These reports are usually attached to a personal project.

javascript - HTML/CSS/JS dragging table column -

I would like to apply a table to jsp page which is similar to I date of the table Drag the end date to the end date and pop up a form. Can you all please suggest me how can I do this in JSP? I have created a draggable column data table in JS if you end up using it rather than using an existing implementation Do ... I have a good advice: use the fixed table layout , or you will not be successful.

sql server 2005 - Need to "build" a date-time field from separate HHMM-field -

I am working with a database structure that I can not change - there are two fields in the SQL Server 2005 environment - A complete date time zone and a HHMM field. The software application does not always populate both fields, so I need to create a complete date-time field. If the second-minute hour-minute field hours are zero, then I will have to make a complete date-time from the date part of the date zone, hour of HHMM area, minute of HHMM. Field and zero seconds. How can I do this? All these update time-by-time values ​​over time, with the HHMM Date time with date: updateable sit dateTime = DateTime + STUFF (HHMM, 3, 0, ':') where datetime = DATEAD (day, DATEDIFF (day, 0, Date time), 0) It is believed that HHMM column is a string of a certain format, i.e. you always have 2-digit hours in HHMM And are 2-digit minutes, such as '1400' or '0825 ' . The query includes : adds the date-time column value between the time parts and the res...

google play - In app billing in android -

मैं निम्नलिखित कोड का उपयोग कर रहा हूं: सार्वजनिक वर्ग MyBillingService सेवा उपकरण सेवा प्रदान करता है {स्ट्रिंग टैग = "माइबिलिंग सेवा"; @ ओवरराइड पब्लिक रिक्त ऑन क्रिएट () {सुपर। कॉनेट (); लॉग। I (टैग, "ऑन क्रेट"); कोशिश करें {बूलियन बाइंड्स रिजल्ट = getBaseContext ()। BindService (नया आशय (IMarketBillingService.class.getName ()), यह, Context.BIND_AUTO_CREATE; अगर (बाइंड रीसल्ट) {लॉग। (टैग, "सर्विस बाईंड सफल।"); } Else {Log.e (TAG, "MarketBillingService को बाध्य नहीं किया जा सका।"); }} पकड़ (सुरक्षाएक्सेप्शन ई) {लॉग। ए (टैग, "सुरक्षा अपवाद:" + ई); }}} मैंने IMarketBillingService.aidl को भी जोड़ दिया है लेकिन फिर भी इसे इस तरह दिखता है: MarketBillingService क्या आप मेरी गलती बता सकते हैं? मैं डॉन पता नहीं कि यह आपकी समस्या का कारण है, लेकिन आप getBaseContext () पर bindService () का उपयोग कर रहे हैं। क्या कोई कारण है कि आप सेवा उदाहरण पर bindService () कॉल नहीं करते हैं? यह उदाहरण सेवा क्या करता है। आधार संदर्भ ज...

php - How to clean Magento cache? -

I need a simple script which will refresh each element of the Magento cache. I'm running 1.3.2.3 and can not upgrade Example Cron Job Script to Refresh Memo Cache: (Script Amartinez in Magento Forum Run via Cron job 00 one 0 * * * * * * One route / var / www /html/magento/cron_refresh_cache.php a & gt; a /var/log/cron_refresh_cache.log php file: # ! / Usr / Bin / php & lt ;? Php / ** * cron_refresh_cache.php * * @ Copyright (C) 2009 Tniecle [at] gmail.com * @license http://opensource.org/licenses/osl- 3.0.php Open Software License (OSA) 3.0) * / (! $ _ Server [["HTTP_USER_AGENT"]) or die ("nothing to do \ n"); // run through local browser usage ($ _SERVER ["SERVER_ADDR"] = = $ _SERVER [ "REMOTE_ADDR"]) need_once 'app / Mage.php'; Umask (0); Dana :: app ( "default"), is // if error mage this line :: app (Dana: : Change app () - & gt; GetStore (); $ Ver = Dana :: getVersion (); $ UserModel =...

vsto - Outlook 2003 Add-in not working for all users -

I have been written in Outlook 2003 add-in Visual Studio 2008. It does all this when a message loads when a message is loaded. I am using a setup package to create an MSI to install I have sorted the issue of Security Caspol I have PIA and VSTO installed on the client. My setup is set to install for all users. If I install it on the client machine, it creates the HKCU registry hive and works perfectly to install the user and appears in the COM add-ins dialog but does not work For any other user who logs in. I changed the setup package to keep the registry hive in HKLM and now it does not work for any user, including the installation of the user and this COM add-ins dialog What am I missing? "post-text" itemprop = "text"> New versions of the office do not have that HKCU key Instead, they read this weird composite key under HKCU. Mischa Senerson has a good article (with updates for 2010)

if statement - multiple if's for calculated field in tableau -

Please forgive the very newbie question but I'm very new to makeup what I want to do, a message on it I will do something like: message = '' if filter 1 == 1: message + = 'activate filter 1, if the filter flags are activated, then in the psuedo code, I will do something like: 'If filter2 == 1: message + =' filter2 is active 'return message is the problem, I'm also not sure if the statements How to do several times - I get a syntax error. Any help would be greatly appreciated. Here's an example of how I accomplished something like this: If [ZAVUFA1_FED_COLL_CHOICE_1] = 'xxxxx' is 1 elseif [ZAVUFA1_FED_COLL_CHOICE_2] = 'xxxxx' then 2 elseif [ZAVUFA1_FED_COLL_CHOICE_3] = 'xxxxx' then 3 elseif [ZAVUFA1_FED_COLL_CHOICE_4] = 'xxxxx' then 4 elseif [ZAVUFA1_FED_COLL_CHOICE_5] = 'xxxxxx' then 5 elseif [ZAVUFA1_FED_COLL_CHOICE_6] = 'xxxxx' then 6 elseif [ZAVUFA1_FED_COLL_CHOICE_7] = 'xxxxxx...

c# - How can I access unknown typed object's property names -

I use the function that contains the object type parameter I can type this unknown type object To get the name of the properties of How can I do this? KR, Dosage use var properties = obj.GetType (). GetProperties ();

c# - Download feature not working within update panel in asp.net -

I have a web user control that contains FormView . Form view shows job seeker details I have provided a button for the "download resume" link, so that administrator can download / restart the HR. I have placed this control in the ASPX page which contains the update panel. Everything works fine except for the download link I have given a command on the donwload link button and a function is associated with the order to start the download. Below I've implemented the code - // Click on the command form, under 'Download', the formview protected void lnkDownload_Command (Object Sender, CommandEventArgs e) { If (e .CommandName.Equals ("Downloads")) {StartDownload (e.CommandArgument.ToString ()); }} // Routine to download my dialline // sFileInfo file path $ $ = MIME type protected void start download (string sFileInfo) {string [] d = sFileInfo.ToString (). Split ((new string [] {"$ == $"}), string split option. Non;); String filename = D ...

java me - j2me multiple cookies -

कैसे j2me httpconnection से set-cookie जैसे एक ही कुंजी नाम के साथ http एकाधिक प्रतिक्रिया हेडर पढ़ने के लिए? (GetHeaderField (int i) के साथ हेडर के माध्यम से पाशन भी समस्या को हल नहीं किया था)। इस problam के कारण मैंने एक सॉकेट कनेक्शन पर अपने स्वयं के http क्लाइंट को रिवाइट करने का प्रयास किया। लेकिन जेएसआर -185 कुर्सियां ​​80, 8080 और 443 को बंद करने की अनुमति नहीं देता। उनका उपयोग करने के लिए आवेदन हस्ताक्षरित होना चाहिए। getHeaderField (int i) के साथ हेडर के माध्यम से लुपिंग, WTK एमुलेटर में मेरे लिए काम करता है। आईएमएचओ, कुछ उपकरणों में यह बग गैर-तय हो सकता है:

android - Titanium Appcelerator orientationchange doesn't occur -

मुझे टाइटेनियम ऐस्सेलरेटर में अभिविन्यास परिवर्तन के साथ एक समस्या है टैब के बीच चलते समय, अभिविन्यास परिवर्तन घटना चित्र और amp; परिदृश्य। यह मेरा कोड है टाइटेनियम.जस्टायर.एडेंटएलस्टनर ('ओरिएंटेशन', फ़ंक्शन (ई) {var alertDialog = Ti.UI.createAlertDialog ({title: " चेतावनी ", संदेश:" ओरिएंटेशन है "+ ई। औचित्य, बटन नाम: ['ओके'], रद्द करें: 0}); सतर्कडायलॉग.शो ();}); यहां प्रजनन कदम हैं: टैब 2 पर स्विच करें, और फिर लैंडस्केप मोड (अलर्ट प्रकट होता है) में प्रवेश करें। वापस स्विच करें टैब 1 के लिए, फोन को पोर्ट्रेट मोड में घुमाएं (चेतावनी दिखाई नहीं देता है)। घटना नहीं होती है (बाद की घटनाएं हमेशा की तरह आग लगती हैं (चेतावनी दिखाई देती है)) किसी के पास एक काम पर एक विचार है? मुझे इसकी ज़रूरत है क्योंकि मुझे देखने onorientationchange को बदलना होगा मैं टाइटेनियम एसेसेलेरेटर 1.2.2, मोबाइल संस्करण 1.6, एपीआई 2.2 का उपयोग कर रहा हूं कभी नहीं संपादित करें: मुझे एक वैकल्पिक हल मिला

How can I serialize a dom element to xml in the android sdk? -

org.w3c.dom.String (XML) में एलेमेंट? LSSerializer का सामान्य उपयोग करता है काम नहीं करता क्योंकि एंड्रॉइड में कोई कार्यान्वयन उपलब्ध नहीं है। कोई भी विचार? ऐसा लगता है कि आप क्या लक्ष्य कर रहे हैं api स्तर पर निर्भर करते हैं। यदि यह 8 या उससे ऊपर है, तो प्लग-इन एक संबंधित प्रश्न का उत्तर देखें

javascript - Efficient usage of WebStorm IDE -

I've recently fallen in love with webstorm as an IDE for Javastop development. The problem is that, I have come from the world of Vim and light editors, so I can not fully appreciate all the power that comes with IDE. Yes, I have seen the presentations and read docs, but there are many features and I am not sure who among them is really useful. So, here's my question: How do you use webstars and what do you think is most useful? Any power-usage tips? Configuration hacks? Worth mentioning plugins? I'm not seeing a list of features, I'm looking for examples and impressions of a real-world use. PS I work with mostly pure JS + canvas elements and some nodes. Some random ideas, ... In aid, of course basic Read concepts and skim the webstorm usage guidelines for those tasks that you care about. Learn how to use Ctrl-Shift-A, it lets you find 1uickly actions by typing those tasks that you can do. Webstorm (such as IntelEJ) is the best magic its code comple...

delphi - how can i exclude the virtual drives from the drives array -

I got a string of all the drivers found in my computer, so I found their type to exclude the CD drive But I want to remove the virtual drive because I return the real CD drive and virtual drive (flash memory, USB ...)? Sara, I think your real question should be, how can I determine that when someone Is CD-ROM (or any) drive virtual drive? Therefore the answer to this question is: The virtual drive works like a physical CD / DVD drive and behaves, there is no such property which identifies the drive as virtual , because so far Do not know any trusted method to determine when the drive is virtual. As a possible solution for you, make a list of only the approximation virtual drive associated with SCSI , IDE drivers (something like a dictionary) (eg strings like Virtual CloneDrive ), you can associate the associated SCSI or IDE controller with the CDROM drive and determine whether the drive is virtual or not, you can search in the list of your virtual drive controllers.