Posts

Showing posts from July, 2011

Load txt from Github in html with JavaScript -

Me and my friend are working on a text, which is saved in txt format, it has some custom markup Jithub repo Is it possible to load this type of textile from Geethub into a HTML file with Javascript and parse it accordingly to make HTML from my custom markup? I know that such works are usually done on server side, but for provisional purposes, while txt is underway, is it possible to do this without any server? I tried to load with TSTS with a simple XMLHttpRequest (as described) and with a CORS request (described), but due to the cross-domain nature of the requests I get errors both times . So I was thinking, is it possible? I am asking because I want to host the provisional website on the Jithub pages, but it does not support sites requiring those backend arguments. / P>

objective c - How can I show a view controller on the first launch only in ios -

I just want to show an operator screen with three operators when the app is launched and if I have not selected an operator And I stopped the app and then when I open the app, I should only see the operator screen but I'm going to the home view controller. This is my code: Home View Niyntrk.am if (! [ "" 1 "Avltostring: [[Ansyuesr default Standard standard default] object Forki: @" Avlu "]]) {[[NSUserDefaults standard standard default] set values: @" @ "Avlu" to 1 "]; [[NSUserDefaults standard Usr Difolts] synchronize]; // action here UIViewController * myController = [ "@" operator self.storyboard instantiateViewControllerWithIdentifier:]; [self. navigation controller push ViewController: myController animated: YES];} Else {//self.view.backgroundColor = [UIColor redColor];} could get any changes that I desired results in my code. Thanks in advance .... this code [[NSUserDefaults standard user Difolts] set v...

javascript - expand child ul on click of parent li -

मेरे पास निम्न संरचना है: & lt; div class = "Downloadscontainer" & gt; & LT; ul & gt; & Lt; li & gt; स्तर 1 & lt; / li & gt; & Lt; li & gt; & lt; a href = "#" & gt; स्तर 1 & lt; / a & gt; & LT; ul & gt; & Lt; li & gt; स्तर 2 & lt; / li & gt; & Lt; li & gt; स्तर 2 & lt; / li & gt; & Lt; li & gt; & lt; a href = "#" & gt; कुछ पृष्ठ & lt; / a & gt; & LT; ul & gt; & Lt; li & gt; स्तर 2 & lt; / li & gt; & Lt; li & gt; स्तर 2 & lt; / li & gt; & Lt; / ul & gt; & Lt; / li & gt; & Lt; / ul & gt; & Lt; / li & gt; & Lt; / ul & gt; । (कार्य () ($ (".containerer ul li ul")। सीएसएस ("प्रदर्शन", "कोई नहीं"); $ (".contentscontainer li")। प्रत्येक (फ़ंक्शन () {$ (this)। क्लिक करें (फ़ंक्शन () (यदि ($ (यह)। बच्चे (...

php - how to set category list limit? -

I display only the list of the post category's child list list.list Only I need 6 (child) help ... query (array ('category_name' = & gt; $ talent- & gt; slog)); ? & Gt; & Lt; H2 & gt; & Lt; A href = "& lt ;? php the_parlimink ()? & Gt; talent / director /" & gt; & Lt ;? Php echo $ talent-> Name; ? & Gt; & Lt; / A & gt; & Lt; / H2 & gt; & Lt; Ul & gt; & Lt ;? While Php ($ talentSubChildren-> is_poz ()): $ talentSubChildren-> The_post (); ? & Gt; & Lt; Li & gt; & Lt; H4 & gt; & Lt; A href = "& lt ;? php the_ermelink ()? & Gt;" & Gt; & Lt ;? Php the_title (); ? & Gt; & Lt; / A & gt; & Lt; / H4 & gt; & Lt; / Li & gt; & Lt ;? Php timeline; ? & Gt; & Lt; / Ul & gt; & Lt ;? Php endforeach; ? & Gt; & Lt ;? Php endif; ? & Gt; & Lt; / Div & gt; You can get the user...

ios - How to underline part of string with NSAttributedString objective-c -

Only works under a string when the range starts with zero. If I start it on 1, it works if the green color works + (NSAttributedString *) returnNSAttributedString: (NSString *) String Range: WithColour (NSRange) : (UIColor *) Color WithUnderLine: (bool) graphs {NSMutableAttributedString * attributedString = [[NSMutableAttributedString alloc] InitWithString: string]; If (underline) {[attributedString addAttributes: @ {NSUnderlineStyleAttributeName: @ (NSUnderlineStyleSingle)} border: border]; } [AttributedString addAttribute: NSForegroundColorAttributeName Value: Color Range: Category]; [AttributedString addAttribute: NSForegroundColorAttributeName Price: [UIColor redColor] Range: NSRangeFromString (string)]; Return stroke; } It does not work on iOS 7 After You can use the NSUnderlineStyleAttributeName and NSUnderlineColorAttributeName attributes. You can use it like this: NSRange foundRange = [wordString rangeOfString: @ "base mix"]; If (foundRange.location!...

javascript - Radio button not checked when again loading form with ajax -

I have an element that I use to enhance value in the database. & lt; P id = "valuta" & gt; & Lt; Label = "valuta" & gt; Valuta: & lt; / Label & gt; & Lt; Br / & gt; & Lt; Select id = "valuta2" name = "valuta2" & gt; & Lt; Option value = "USD" & gt; US & lt; / Options & gt; & Lt; Option value = "EUR" & gt; EUR & lt; / Options & gt; & Lt; Option value = "rsd" & gt; RSD & lt; / Options & gt; & Lt; / Select & gt; & Lt; / Br & gt; Konvertuj cenu? & Lt; / Br & gt; & Lt; Input type = "radio" id = 'conversion' class = 'conversion' name = "conversion" checked = "check" value = "1" & gt; DA & lt; Br> & Lt; Input type = "radio" class = "conversion" name = "conversion" value = "2" & gt; Northeas...

android - taskstackbuilder for api 14 -

My compiler displays this message ... 16 calls required API level (The current minimum is 14) The question is .. "Is this code okay to run in API 14 or not?" because I have not tested is not a device requirement AVD GPS (after ADI version) do implement I support the library or not? Note It works perfectly on API 16 and above Taskstakbilder Pending Content Content Intent = Task Stackbiller Make (it) // add details later DetailsActivity itself.addParentStack (Activity_TrackingMode.class) .addNextIntent (new Intent (this, Activity_TrackingMode.class)) .getPendingIntent (0, PendingIntent.FLAG_UPDATE_CURRENT); Android: Android: Android: Android: Android: label = "@ string / Ap_nam" Android Manifest Android: ScreenErmentation = "Portrait" Android: parentActivityName = ". Activity_Action 1" & gt; & Lt ;! - Parent's activity to support Meta-Data 4.0 and below - & gt; & Lt; Meta-Data Android: name = ...

scala - Option.fold - why is its second argument not a binary operator? -

I'm sure there is a good reason for this, but I'm not seeing it. Apply code between the elements turn on (say) list returns z with a foldLeft and foldRight The obvious relationship is that those who do the same thing are defined but the order (and therefore the companionship operators are not required) return on the option returns Returns the result of f in the value of this scala.option Second if scala.Option nonempty otherwise, the word ifEmpty . ifEmpty , evaluates in the status of z for the list. is any for f op (which is using the Option which can not be included in the form of a "container", there is an "empty" container), things are ok, option.fold zero ( ). For some (x) , however, f should not take two parameters, z and X as it is corresponding to fold on sequences (in which foldLeft and foldRight ). Of course, there is a utility argument against this - it may be possible tha...

c# - Convert hexadecimal string to an integer -

int मान = कन्वर्ट.ToInt32 ('o'); बाइट [] बी = नया बाइट [] {(बाइट) मान}; फ़ाइल। WritAllBytes (Default.ProjectsPath, b); जब मैं फ़ाइल खोलता हूं तो यह o प्रदर्शित करता है, मैं फ़ाइल को बाइट मान लिखना चाहता हूं? "post-text" itemprop = "text"> 0x निकालें और फिर कनवर्ट करें: int i = Convert.ToInt32 ("0xFE" .Substring (2), 16);

c# - Save dynamically generated HTML page ASP.NET -

ASP.NET MVC के साथ, मैंने एक html पृष्ठ बनाया उदाहरण: अंतिम अंक बदलने से फ़ील्ड का मूल्य बदल जाता है, जिसे मैंने @ एचटीएमएल हेल्पर्स के साथ आयात किया था, मैं इस पेज को स्थिर रूप से सर्वर पर इस पेज को सहेजना चाहूंगा। कुछ ऐसा PersonNr15.html उस पेज में हार्ड कूट से उत्पन्न सामग्री के साथ। @ मॉडेल MvcApplication3.Models.Person @ {ViewBag.Title = "विवरण"; } & Lt; h2 & gt; विवरण & lt; / h2 & gt; & LT; fieldset & gt; & LT; कथा & gt; व्यक्ति & lt; / कथा & gt; & Lt; p & gt; @ Html.DisplayFor (मॉडल = & gt; मॉडल। प्रथम नाम) & lt; / p & gt; & Lt; p & gt; @ Html.DisplayFor (मॉडल = & gt; मॉडल.लास्टनाम) & lt; / p & gt; & Lt; / fieldset & gt; आपको क्या करने की आवश्यकता है एक स्ट्रिंग के लिए दृश्य प्रस्तुत करना, और फिर किसी अन्य स्ट्रिंग जैसे किसी फ़ाइल को स्ट्रिंग एक स्ट्रिंग में एक MVC दृश्य का प्रतिपादन यहां पर पहले से उत्तर वाले प्रश्नों में शामिल है जैसे

VBA EXCEL: Fixing "Runtime-error '9'": Subscript out of range -

I have the following code that attempts to open a file name that changes on a daily basis if the sheet is empty Name is always named: "K: \ Shared \ Num \ Temp \ available_list_" & amp; Year (now ()) & amp; Month (now ()) & amp; Day (now ()) & amp; ".txt" To automate file activation instead of copying, pasting, and renaming the file every time I got this error when I included the above path Updated code for Can anyone tell me where my error is? You can find the following code: Personal sub UserForm_Initialize () Application.ScreenUpdating = False IfEmpty (A_Regular.Range ("A2")) then the dim TxtPath, TxtName as string TxtPath = " K: \ Shared \ Num \ Temp \ available_list_ "& amp; Year (now ()) & amp; Month (now ()) & amp; Day (now ()) & amp; ".txt" TxtName = year (now ()) & amp; Month (now ()) & amp; Day (now ()) & amp; ".txt" workbook OpenText file name: = TxtPath, Orig...

ios7 - Check ios versions then call functions of uiviewcontroller accordingly -

I was stuck with the issue of an orientation in the iPad for all the versions. . My app has been removed from willAnimateRotationToInterfaceOrientation: iOS8 according to Apple since such a way that it has made in support of iOS 6 to ios 8 , I used viewWillTransitionToSize: when problems Hit with, my first solution was to provide the macro as iOS 8 or below to fix the version and execute the work accordingly. Works on #ifdef __IPHONE_8_0 //; = Version 8.0 - (minus) Drishyvirssnpadit Krenoke size: Transition size with Koyodinetr: (ID & lt; UIViewControllerTransitionCoordinator & gt;) Coordinator [[Super Drishyviseshntusaijhः size Sathsncharsncharkrta: Coordinator]; // your code goes here for iOS 8} works on #Alse // & lt; Version 8.0 - (minus) willAnimateRotationToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation period: (NSTimeInterval) period {// my code below to version 8.0 here when} #endif I also checked and Run it .. I received ...

Php Grep Sort files by date descinding order with date -

I want to sort files in descending order with a date to direct, and use only Grep Define ("slash", strisor ($ _ server [SERVER_SOFTWARE], "win")? "\\": "/"); Function php_grep ($ path) {$ fp = opendir ($ path); While ($ f = readdir ($ fp)) {if (preg_match ("# ^ .. $ $", $ F)) continues; // Ignore symbolic links $ file_full_path = $ path.SLASH. $ F; If ($ file_full_path) {$ ret. = "$ File_full_path \ n"; }} $ Ret; } Echo "prefix"; Print_r (php_grep ("/ home")); You can do something like this: function php_grep ($ path) {$ ret = array}; $ Dates = array (); $ Fp = opendir ($ path); While ($ f = readdir ($ fp)) {if (preg_match ("# ^ .. $ $", $ F)) continues; // Ignore symbolic links $ file_full_path = $ path.DIRECTORY_SEPARATOR $ F; If ($ file_full_path) {$ ret [] = $ file_full_path; }} Array_multisort (array_map ('filemtime', $ ret), SORT_NUMERIC, SORT_DESC, $ ret); Return $ r...

c# - Enum Display Name - Use variable? -

Can I do this? It does not seem so. Public enum option {[Display (name = string. Format ("{0} - {1}", "option one", MyClass.myVariable))] OptionOne = 1, [Display (Name = string format ("{0} - {1}", "option two", MyClass.myVariable))] OptionTwo = 2} public anonymous option {[display ( Name = "Option 1")] OptionOn = 1, [Display (name = "Option2")] OptionTwo = 2} code> If not, So how do I create a display name for an enum variable? It seems that no one is working with it: If not, then How do I create a display name for an enum variable? I can think of any type of map and extension method that can work like this: System use; Using System.Collections.Generic; Namespace Console Application 1 {Public Enum Fu {1 = 1, 2 = 2}, Public Static Class Extension-Method {Private Static Readonly Dictionary & lt; Enum, string & gt; S_EnumMap = New Dictionary & lt; Enum, string & gt; {{Foo.One, strin...

paypal - payum symfony 2 bundle - basic configuration - storage -

In order to allow PayPal payments to customers, I need to configure the Paid Bundle. I have followed the official recomendations, but need to configure something else, I think (maybe I'm missing somewhere to configure storage for payment deposits somewhere). My config files are as follows: ** app / config.yml ** Principle: ORM: auto_generate_proxy_classes: true entity_managers: default: mapping: WebsiteDeviceBundle: ~ WebsiteOnePageBundle : ~ Payum: is_bundle: false type: xml dir:% kernel.root_dir% / .. / vendor / salary / salary / source / pay / core / bridge / theory / resource / mapping prefix: pam \ core \ model pem: security : Token_Storage: Website \ Bundle \ DeviceBundle \ unit \ PaymentToken: {Principle: ORM} Store: Website \ Bundle \ DeviceBundle \ unit \ PaymentDetails: {Siddha D: ORM} references: express_euro: paypal_express_checkout_nvp: username: '' password: '' signature: '' sandbox: right This is my admin task to initiate the pay...

html - Scrollable <input> Using Twitter Bootstrap -

Let me scroll to & lt; Input & gt; should what is the best way to use CSS, inline style, HTML, etc. I have seen Google and have done this on the bootstrap site Can get anything for I do not want any Jackris / Java etc

git - Creating branch off of remote master -

Image
I have a problem understanding the logic behind the following commands in the guit: git checkout - If I type it, a local branch named is created, which is original Master branch of my remote repository of names when I push it later into my remote repository, the graph looks like this: Say that a collaborator changes and push them into the Remote Master branch and after some time I will be another Remote master named hotfix_example_2 decides to close the branch when I push the new hotfix_example_2 branch to the remote repository , I think the new branch I created was the remote master (which pushed my colleague first ) But instead it has stopped its earlier commitment. If I do git drag the original master at my local master branch and repeat the process, then I can see that my associate's hotfix_example_2 Committed Why do not I get it, so why do I have to take a git to get the graph, although I am using the original / master in my checko...

android - Referencing specific attribute in another style -

I am trying to find the best way to match the text size of labels next to an EditText using XML I am I do not want to inherit the EditText style directly, since a bunch of features that I'm not interested in will bring in & Lt; TextView Android: id = "@ + id / textUnit" style = "@ style / fontmatchingEditText" Android: Text = "Units" Android: layout_width = "wrap_content" android: layout_height = "wrap_content" /> Is there any way to refer to a specific feature in another style? Otherwise, does it make sure that it edits text of its own style to make sure it stays compatible with the label? Edit I was hoping that there could be an independent free way of doing this, something like: & lt; Item name = "Android: textSize" & gt; @Android: Style / Widget.EditText.textAppearance.textSize & lt; / Item & gt; But I'm probably overcomplicating it more thanks! Assuming your ori...

c# - How can I maximize a WPF page when the application starts? -

I have a simple WPF application with two xaml pages. I should open the app with the maximum size of the screen I have only received answers about WPF windows, but there is no "WindowState" property for the page. Thanks a lot! Just define in your XML window definition: Windows startup location = "center screen" windowstate = "max"

php - how to insert utf-8 format in database with latin collation and table with utf8 collation -

How to incorporate the UTF8 format into a table with Latin collation and UTF 8 collation ?! I want to include some of my own php files in WordPress database tables, but this is not working, if I am changing dotbesai collation to utif 8_gigcle_c, then it should be in database compilation Do not want to change it, do yourself wordpress with it and there is no problem with it, سلام -> ???? You can try $ mysqli-> set_curset ( "Utf8"); Before you insert one.

linux - How to find a text string within a config file and add two new lines below with one single line command? -

I'm trying to fight that pedal SSL bug and I have to change a lot of configuration files. I try to save myself some work and this is done by a single line command, thus I need to modify - for example - /etc/lighttpd/lighttpd.conf. I am looking for ssl.engine = "enable" and I want to add two new lines found with the following string: Ssl.use-sslv2 = "disable" ssl.use-sslv3 = "disable" The end result should be: $ server [ "Socket"] == "0.0.0.0:80" {ssl.engine = "enabled" ssl.use-sslv2 = "disabled" ssl.use-SSLv3 = "disable" ssl.pemfile = "/ etc / ssl / Cert.pem "ssl.ca- file =" /etc/ssl/cert.bundle "} I tried with the AWC but I used to work due to spaces and carriage returnsNew it can not achieve. Someone is happy to see a liner :) Here is what I have tried (of course something wrong here): awk '{a [NR] = $ 0} /ssl.engine/ {a [NR + 1] = a [nr + 1] "...

Hadoop setting fsPermission recursively to dir using Java -

Hi, I have a test program that loads the file in this way user / user / data / app / type / This test program now runs multiple users multiple times. That's why I want to permit the file to RVX so that anyone can remove this file. I have the following code fs.setPermission (new path ("user / user1 / data"), new FsPermission (FsAction.ALL, FsAction.ALL, FsAction.ALL)) The line above gives all the dirs drwxrwxrwx but for file.gz it allows it as -rw-rrr - Why? For this reason, other users are not able to delete this file through the testing program. I can delete the file through the examination program because I have full permission. Please guide. I'm new to headache thanks in advance. Using the FS-Shell API my DIR permission problem has been solved. This can not be the optimal way, but since I solve it for testing code, then it should be fine. FsShell shell = new FsShell (conf); Try {shell.run (new string [] {"- chmod", "- R...

pyqt - IPython GUI event loop exception hook -

Is it possible to get the notification of the exception, which happens during the internal GUI-event-loop of the epithon? Here is an example where an exception is raised but the user is not displayed. : Def __init __ (self): QtGui.QDialog .__ init __ (self) self.timer = QtCore.QTimer () self.timer.timeout.connect (self.timeout) self.timer.start (1000) self.show () def timeout (self): "Exception before" print exception ("Do you see me are you? ") after the print" exception "w = TestDialog () on IPython console follows: % GUI qt runfile ( 'minimum. Py ') Output is: Before the exception before the exception. . My system configuration: win-64 Python 2.7 ipathon 2.1.0

svn - unable to check out a working copy from cornerstone -

We have a large enterprise team using Corner Stone to store / manage our Photoshop functions. Suddenly, we are unable to see the copy of the functioning of files from SVN. We can see the folders, but do not need to work with the actual files. You ( svn with URL / TO / FILE , directory only If you check empty folders without any existing (existing) files, then you have to check the parameter for some reasons may be checkout with - depth 'empty' (aliased commands?)

javascript - Bug in autosize.js of textareas when loading value from PHP -

Image
I'm trying to create a web-form that has the option to reload the previously saved data . The problem is that when a large string of text was entered in autoside texterity, then it was saved and reloaded, this text adds a large amount of white space to the field. [Before saving, before loading images] Before: after loading: & lt; Textarea class = 'animated' name = "courseTitle" id = "courseTitle" & gt; ; & Lt ;? PHP Echo ($ _POST ['courseTitle'])? & Gt; & Lt; / Textarea & gt; This form can be viewed in this link and the data can be loaded in the table below (found at the bottom of the form page). Load Table: Select the first file to load "Phillip test EECS 3603" White location disappears while doing one of the following. Write something in the test area Or adjusting the zoom in the browser Any help with debugging tips Brilliant . Go to TPP: //pansycheung.com/forms...

Apache Cordova splash screens not showing in Android -

I'm running Apache Cordova 3.6.3-0.2.13. And I'm working splash screens. I have followed the documentation. And the icons are working, but there is no success for the splash screen. We are also using the ionic framework (version 1.2.8) at the top of the Cordova. I have done that: Added the icon and splash screen in config.xml to the project root: & Lt; Priority name = "splash screen" value = "splash" /> & Lt; Priority name = "splashcorderdale" value = "10000" /> & Lt; Platform name = "Android" & gt; & Lt; Icon src = "icons / icon page" /> & Lt ;! - You can use any density present in the Android project - & gt; & Lt; Splash src = "icons / android-splash-land-hdpi.png" density = "ground-hdpy" /> & Lt; Splash src = "symbol / Android-splash-land-ldpi" density = "land-ldpi" /> & Lt; Splash src = "symbol / Android...

xml - What can be done when XSLT transformation using msxml doesn't match root node ('/')? -

I'm running XSLT 1.0 conversion using Delphi / MSXML. Like XSLT & lt; Xsl: stylesheet xmlns: xsl = "http://www.w3.org/1999/XSL/transform" xmlns: msxsl = "vase: schema-microsoft -com: xslt" xmlns: lh = "http: // localhost" Version = "1.0" & gt; & Lt; Xsl: output method = "html" omit-xml-declaration = "yes" indent = "yes" encoding = "ISO-885 9-1" /> & Lt; Xsl: template match = "@ * | node ()" & gt; & Lt; Xsl: applied-template / & gt; & Lt; / XSL: Templates & gt; & Lt; Xsl: template match = "/" & gt; & Lt; Html & gt; & Lt; Body & gt; & Lt; H2 & gt; My book collection & lt; / H2 & gt; & Lt; Table range = "1" & gt; & Lt; TR & gt; & Lt; Th & gt; Author & lt; / Th & gt; & Lt; Th & gt; Title & lt; / Th & gt; & Lt; / TR & gt; & Lt; Xsl: ea...

jquery - Object [object Object] has no method 'jqChart' -

ये मेरी जावास्क्रिप्ट फाइलें हैं: & lt; script src = "js / jqstuff / jQuery-1.11.0.min.js "& gt; & lt; / स्क्रिप्ट & gt; & Lt; script src = "MetroJs.Full.0.9.75a / MetroJs.js" & gt; & lt; / स्क्रिप्ट & gt; & Lt; स्क्रिप्ट src = "जेएस / जेकस्टफ़ / जेक्जरी। जेकग्रीड.मैन.जेएस" & gt; & lt; / स्क्रिप्ट & gt; & Lt; script src = "https://cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.11/jquery.mousewheel.min.js" & gt; & lt; / स्क्रिप्ट & gt; & Lt; script src = "js / jqstuff / jquery-ui.js" & gt; & lt; / स्क्रिप्ट & gt; & Lt; स्क्रिप्ट src = "जेएस / जेकस्टफ़ / जेक्वियर। जेकचर्ट.मनी। जेएस" & gt; & lt; / स्क्रिप्ट & gt; & Lt; script src = "js / jqstuff / jquery.jqRangeSlider.min.js" & gt; & lt; / स्क्रिप्ट & gt; & Lt; script src = "testjs.js" & gt; & lt; / स्क्रिप्ट & gt; मेर...

c# - The type or namespace name could not be found. SeleniumBasicAuthWrapper -

I have created a unit test project in V12 and installed the 'SeleniumBasicAuthWrapper' package from NuGet. When I am using SeleniumBasicAnother; And try to create a project that receives the error message: Error 2 type or namespace name 'selenium busiest' was not found (you are unavailable) Is using a directive or an assembly reference?)

python - Django Form Selection Change Value in URL -

पायथन 3.3.2, Django 1.6.5, Fedora 20 मेरे पास एक Django फार्म है जहां मैं यूआरएल: यूआरएल: प्रासंगिक दृष्टिकोणों: urlsport = Sport.objects.get (नाम = request.GET.get ('खेल')) form.fields ["sport"] .INitial = urlsport form.fields ["gear"]। Queryset = Gear.objects.filter (sport_id = urlsport) मैं इसे ऐसा करना चाहता हूं कि यदि उपयोगकर्ता एक का चयन करता है अलग खेल, यूआरएल बदल जाएगा / फिर से लोड मेरे form.fields ["गियर"]। क्वेरसेट फिल्टर फिर से लागू हो जाएगा। किसी भी विचार मैं यह कैसे कर सकते हैं? क्या यह सही दृष्टिकोण है?

Excel VBA - Is it possible to call sub on error? -

I am searching, but I can not really find anything that answers this question. I am getting an error and I know what is the reason and there is actually no problem if this error occurs, then run the second sub-section before running the next line code is required. So I'm wondering: Is it possible to do something like this: error call sheet 1 test on thanks advance In! no The best you can do is to handle a different section of the code and then branch back to the row just below the line that raises the error. (If you know what that line is!)

unit testing - AngularJS Controller As Jasmine test with mock service with promise -

I am creating an exam for angular controller and I want to create a fake service that promises me solution But it does not work with as the controller . How can I do this with any idea? Manage this to work from injection into workspace although my controller does not inject the code ( Bit wierd, but how it has been done by a pluralSight VC by John Daddy). Then I can call my method as scope.controllerVM.do something (); And then call the scope. $ Digest () to call method

Android XML ImageView changing Image -

I am trying some tasks and basically learning stuff, and I do not know why it is not working . I mean that when I touch the image changes at first R.Drawable.buttondown, but when I run my finger or leaves it, I do not work in other cases and the image does not change anymore. Can you tell me icon = (ImageView) findViewById (R.id.imageView1); icon.setOnTouchListener (New OnTouchListener () {@Override see public boolean onTouch (V, MotionEvent event) {switch (event.getAction ()) {case MotionEvent.ACTION_DOWN: icon.setImageResource (R.drawable.buttondown); break; case MotionEvent.ACTION_UP: icon.setImageResource (R.drawable.ic_launcher); break; case MotionEvent.ACTION_MOVE: icon.setImageResource (R.drawable.abc_ab_bottom_transparent_dark_holo); break;} return false;} you have to let Android that you need to return really is plenty of event. Public Boolean onTouch (see V, MotionEvent event) {Switch (event.getAct ion ()) {case MotionEvent.ACTION_DOWN: icon.setImageResource ...

c# - Why does double.TryParse("6E02", out tempDouble) return true? -

After "text" itemprop = "text"> It took me a day's time to find out if the problem is true for a string value that is a statement from . We are parsing to check whether the price is a number or string or not. I came to know that this statement is used and when the string value comes as 6E02, the statement is the correct return that it is a double value double-temp. Variant = "6E02" result = double.TryParse (Val, outside floating) How can I resolve this result (number) false for wire like E0 (back The number to go) I believe in checking the first text if I have E0 in it and if it only makes a false return, but this or another put in the method, Is there a better way of changing the method with the maintenance? NumberStyles.AllowThousands NumberStyles.Float, which is an alias for the following combinations :: Uses the following flag from the NumberStyles.AllowLeadingWhite defaults NumberStyles.AllowTrailingWhite Number...

dart - AngularDart v1.0 Uncaught Type "[type]" not found in generated typeFactory maps -

I have an app that I originally created in Angular Dart v0.12 which was running in JS and running But, after upgrading Angulordart v1.0, accounting for the change and breaking changes, it fails to run in JS after creating it without problems. When attempting console following error to run in Chrome: My pubspec The following Uncaught type "QueryService" generated typeFactory not found in the map .yaml config: name: ### author: ### Description: ### homepage: ### Transformer - angular: dart_sdk: "C: / Dart / Dart- sdk" suppressWarnings false - $ dart2js: suppressWarnings: to reduce false: false check: true dependence: angular any Angular_dart_ui_bootstrap any bootjack: any browser: any chrome: any Di any dquery: a future Google_oauth2_client any Http_server any inject any js: Any sign any fake any Mongo_dart any way any Shadow_dom any shelf: any Shelf_route any Shelf_web_socket any sqljocky: Any Unittest: any the following is my module class: class A...

Android ActivityForResult between 3 activities -

I am ringing my head for hours in this matter. I have 3 activities, activity is an open b, and The activity must be passed to Data A. In Activity A, I run startActivityForResult: public static last int REQ_CODE_ACT3 = 2; @ Override Public Zero (see V) {intent = null; Intent = New Intention (Athis, Beaclas); StartActivityForResult (intent, REQ_CODE_ACT3); } Then B approaches the data in C. Intent singer = new intent (Beethis, Sequelas); Bundle extra = new bundle (); Singer Electro Extra ("CTO", D. CTO); Singer Electric extras ("color", de coror); Singer Power extras (extras); Initial activity (GNC); End(); Finally, C should pass data A. But the data has not been passed lista.setOnItemClickListener (New OnItemClickListener () {@Override Public Zero OnItemClick (AdapterView In: startActivityforResult (B) In B: startActivityForResult (C) When the C result ends in the form of a call set and terminate the activity C In overrideActivityR...

ruby on rails - Searching over multiple ActiveRecord models -

I have difficulty creating a suitable ActiveRecord query to search for the kitchen, which is a city area and food , Which has a date field. square kitchens & lt; ActiveRecord :: Base is_to: User has_many: By Food: User & Class User & lt; ActiveRecord :: Base is_On: Kitchen has has_many: Food End Class Meal & lt; ActiveRecord :: Base is_to: User Rep: For Kitchen: User End I want to do something on the lines of this: date = date. New [params [: date] [: year] .to_i, params [: date] [: month] .to_i, consultation [[date] [: day] .to_i) @ mi = food. Where (food_date: date) @ meals.reject {| Food | Meal.kitchen.city.downcase! = Params [: City] .downcase} @ Anthony has told you to eat food and If there is a need to add a collaboration between the kitchen, then you should be able to do questions against food based on the city of kitchen . square kitchens & lt; ActiveRecord :: Base is_to: User has_many: Food and Class users & lt; ActiveRecord :: ...

vba - How to investigate and resolve an (apparent) Access database corruption? -

Image
I have an MS Access Access 2010 database application that is in front of the partition and the backend, which is oddly I have begun to behave and to solve the problem and I know that all the options have ended, 32-bit Access 2010 running on Windows 8.1 ... I have Access 2010 and Access 2013 both installed, But the problem is also completely on the Windows 8.1 system. ZA Install 2010 Access and no Office 2013 is not present. If the app is run using the Access 2010 runtime, then the problem also exists: I front-end is running on my hard disk, not in the dropbox or similar environment. There is a back-end in the drop-box. There are some elements of the third party in the app - references are shown - Examples of examples exist on both systems with example 1, 2010 and 2013, Example 2 with System Access with Bus Access 2010 No software has been updated for the preview since December 2013. I have checked that the use of third party versions that I am using is compatible with Win...

c# - Managing two relationships between 2 entities -

मेरे पास दो संस्थाएं हैं: UserProfile और इनबॉक्स यह मेरा कोड UserProfile : सार्वजनिक आंशिक वर्ग UserProfile {सार्वजनिक इन्ट आईडी (get; सेट; } सार्वजनिक स्ट्रिंग उपयोगकर्ता नाम {get; सेट; } सार्वजनिक स्ट्रिंग पासवर्ड {get; सेट; } सार्वजनिक स्ट्रिंग प्रथम नाम {प्राप्त; सेट; } सार्वजनिक स्ट्रिंग LastName {get; सेट; } // -------------------------- सार्वजनिक आभासी आइकलिंग & lt; संदेश। इनबॉक्स & gt; इनबॉक्सस {प्राप्त करें; सेट; }} सार्वजनिक आंशिक कक्षा UserProfile {सार्वजनिक स्थिर शून्य विन्यास (डीबीएमोडेलबिल्डर एमबी) {mb.Entity & lt; UserProfile & gt; ()। HasKey (up = & gt; up.Id); }} और यह इनबॉक्स के लिए मेरा कोड है: सार्वजनिक आंशिक कक्षा इनबॉक्स {सार्वजनिक इन्ट आईडी}; सेट; } सार्वजनिक int UserId {get; सेट; } // एफके को यूज़रप्रोफाइल सार्वजनिक खाता.यूसरप्रोफाइल यूज़र {get; सेट; } सार्वजनिक तिथिटाइम संदेशडेटटाइम {प्राप्त करें; सेट; } सार्वजनिक स्ट्रिंग प्रसंग {get; सेट; } सार्वजनिक प्रदाता SenderId {get; सेट; } // उपयोगकर्ता के लिए एफके: सार्वजनिक खातों...

lua - Display an image & hide it according to a variable -

I would like to display an image in a particular area, according to one variable. For example, when a user clicks on the avatar, it shows a specific image. Once she clicks on another incarnation, the second image will appear. I tried to remove the previous image, and tried to show a new one, but she said "Trying to call Reliezelf () with zero value". Define in the table: local item_bigsize = {} So I tried it: items [i] = display.newImageRect ("item /" .. item ['pos' .. i ..'_name'] .. ".png", 80, 80) item [i] .x = Holder_2 [i]. X + 10 items [i]. Element = 0 item [i] .y = holder [i] .i item group: insert (item [i]) item [i] .destination = i item [i]: addEventListener ("touch", onswchpress) And the function on SWitchPress works like this: on the function of the wordpress (event) i = event.target.destination if (event.phase == "starts "), Then title_item.text =" "for desc_item.text =" ...

scala - Accessing members of mixin traits -

मेरे पास स्केल में निम्नलिखित कोड है: विशेषता A {val foo: String = & gt; Int = {in = & gt; In.toInt}} विशेषता बी एक {def बार (a: स्ट्रिंग) = {foo (a)}} वर्ग C (a: स्ट्रिंग) {self: B = & gt; x के शुरू होने के दौरान मुझे एनपीई मिल रहा है I के साथ val b = bar (a)} val x = नया C ("34") संपादित करें नोट : यह समझ नहीं आ रहा कि क्यों foo ए का गुण प्रारंभ नहीं होता कृपया देखें इसका एकमात्र अतिरिक्त यह है कि स्वयं-प्रकार वर्ग सी सार बना देता है। तो वास्तव में आप ऐसा करते हैं: सारिणी वर्ग C (a: स्ट्रिंग) {def बार (a: स्ट्रिंग): Int val b = bar (a)} val x = new c ("34" ) बी के साथ आप इसे अपने कोड में बदलने का प्रयास कर सकते हैं और उसी परिणाम को देख सकते हैं। कुछ और जानकारी संक्षेप में: बी के साथ नए सी के लाइनरीकरण हो जाएगा (बी एंड एलटी; - ए) & lt; - सी, तो आजीविका है सी -> (ए -> बी)। कृपया अनुभाग देखें: सुपरक्लाइस कन्स्ट्रक्टर निष्पादित होने के बाद, प्रत्येक मिक्सिन विशेषता के लिए कंसल्टेंट्स को निष्पादित किया जाता...

erlang - Using Chicagoboss boss_db and printing list of records -

I'm trying to print a list of records from Manisa. users = boss_db: ({[_, email, _, _, _, _, accesspoint}] = X, io: format ("email: ~ w ~ n", [email ]), Io: format ("AccessToken: ~ w ~ n", [AccessToken]), end, [user]). Although I'm getting: Email: [117,115,101, .., ..,., ..] Similar approach for . What am I missing? Any pointer will be really appreciated. You have not selected the correct format: ~ w used to print the word as erlang Goes to ~ s string, ~ p for beautiful print, it tries to find the best way to print. Doctor 1> L = "Hello" "Hello" 2> When: Format ("~ w ~ n", [L]). [72,101,108,108,111] fine 3> When: Format ("~ P ~ n", [L]). "Hello" OK 4 & gt; When: format ("~ s ~ n", [L]). Hello fine 5> L1 = [1,2,3,4,5] [1,2,3,4,5] 6 & gt; When: Format ("~ w ~ n", [L1]). [1,2,3,4,5] right 7> When: Format ("~ P ~ n", [L1]). [1,2,3,4,5] f...

graphics - Plot a function with several arguments in R -

Suppose I want to plot an R function: weibull & lt; - Function (ALPHA, Lambaa, T) {alpha * lambada * (T ^ (alpha -1)}} Then the function takes the arguments of alpha, lambda and t. Plot I want to create a plot in alpha = 0.5, time of 0 to 2 and lambda = 1, 2, 4, 8, 16 and second, alpha = 1, time 0 to 2 and lambda = 1, 2, 4 , 8, 16. In order to plot the work with just one argument in the past, I have used the curve and then have done the ADD = true if I am the same On a curve. For example, I've used it in the past: lambda But in this example, there is only one argument in the function, which is x. Whereas, now I want to vary Lambda, T and Alpha.The curve function does not work and I'm not sure how and how it will reach. "http: //i.stack.imgur.com/Sv6lN.png" Alt = "Enter image details here"> weibull & lt; - function (alpha, lambda, time) {data .frame (time = time, value = alpha * lambda * (time) ^ (Alpha-1)) Library (P...

html - how to right-align a nested div in all major browsers? -

I only have a top nav website. I want to float a device right for user login control and so on. I looked at the web and tried it but it does not work in Chrome / Firefox. What is the correct way to do this correctly in all browsers using Divs and CSS? I work only in IE 9. Both Chrome and Firefox leave the login control drop line on the next line. & lt; Div id = "topNav" & gt; & Lt; Div id = "logobar" & gt; & Lt; A href = "index.html" & gt; & Lt; Img src = "image / header_choo.gif" width = "132" height = "50" range = "0" /> gt; & Lt; / A & gt; & Lt; Div id = "loginControls" & gt; User: John Do & amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Lt; A href = "#" & gt; Logout & lt; / A & gt; & Lt; / Div ...

c# - IIS vs. localhost Context.User.IsInRole() -

I used this code to simplify my problem: & lt ;% @ Page Language = "C #"%> & Lt ;! DOCTYPE HTML PUBLIC "- // W3C // DTD HTML 4.0 Transcription // N" & gt; & Lt; Html & gt; & Lt; HEAD & gt; & Lt; Title & gt; I am I & lt; / Title & gt; & Lt; Script language = "c #" runat = "server" & gt; Private Zero Page_load (Object Sender, System.EventArgs E) {Label2.Text = "I am" + HttpContext.Current.User.Identity.Name; Bool Results = Reference. the user. ISIR (HTTTEXT.content.USIRIIDANDITYNAME.name); Label1.Text = "What am I?" result; Results = HttpContext.Current.User.IsInRole (HttpContext.Current.User.Identity.Name); Label1.Text + = "Am I myself?" result; } & Lt; / Script & gt; & Lt; / HEAD> & Lt; Body & gt; & Lt; Form id = "form1" runat = "server" & gt; & Lt; Div & gt; & Lt; ASP: label ID = "label 2...

osx - Date bug with excel vba OS X -

Since I updated Yosmith, I feel that a strange bug appears. The date function returns a date with a year value I tried to change the regional settings but I can not find anything. I have the cell 1, 1 cells (1, 1) in 2014-05-31. Return the value "-05-31" However, if I use. Instead of text. Price I get the right value Even the date function does not work right Has anyone set up a quick fix? My entire macro is up to date if ActiveWorkbook.ActiveSheet.Cells (1, 1). Value & lt; & Gt; Date value (Date + 1) If if the message ("Error, Blablabla", vbYesNo, "Confirmation Entry") = vbNo, then if the sub ending ends, = "text-post" itemprop = "text"> Yes, I have the same problem, which is US

css - height in vh (viewport) and max-height in px (pixels) -

It is possible to define an element's height where CSS3 indicates: if the viewport & Gt; = 1000px then element height: 300px (in pixels) and if the viewport is & lt; 1000 PX element height: 30 VH (30% of viewpoint height) So I want to be an element with 30% viewport but no more than 300px. Is this possible? I decided but did not work: div {height: 30vh; Max-height: 300px; }

string - Reading multiple lines in java using a StringTokenizer -

I find myself trying to read several lines from a txt file in Java and I do not know how to do it Read the next line I tried loop for a while and when I ran my program, nothing came of it. I did while (line! = NULL) { so it can read the next line, but I have had no luck to complete the work. How it reads text file 20141003 20131105 19990205 20080304,20080305,20080306 19,990,206, hello, 20l4l00l,200003 20,050,505 July November August 19,640,503 19,980,707 19,642,199 20,141,013 import java.util. *; Public class token 1 {public static TextFileInput myFile; Public stable stringtooconizer myTokens; Public stable string [] list; Public stable string line; Public static zero main (string [] args) {myFile = new TextFileInput ("project1.txt"); Line = myFile.readLine (); MyTokens = new string locator (line, ","); List = new string [myTokens.countTokens ()]; Int i = 0; While (myTokens.hasMoreTokens ()) {list [i] = myTokens.nextToken (); I ++; The} (int j = 0; ...

c - Using a 2-dimensional array, segmentation fault (core dumped) -

I look at different web sites .. But anything that I can understand is what's the problem. The work was drawing a chess using the 2 dimension array and creates a function that changes black and white (using the appropriate symbols). #include & lt; Stdio.h & gt; Four make chessboard (int length, int width, four board [width] [length]) {int eye; Int j; {// printf ("\ n") for (i = 0; i & lt; width; i ++); For (J = 0; J & lT; Length; J ++) {if ((I + J)% 2 == 0) Board [i] [J] = "[#]"; And board [i] [j] = "[]"; // // return to // for} // return; } // MacShowboard et main () {int x = 9; Int y = 9; The initial letter of [x] [y]; Four Chess Forces [x] [y]; MakeChessBoard (initialBoard [x] [y], x, y); For (int i = 0; i 1) your calling function MacShoesboard (initial boarder [x] [y], x, y); And the function definition is different, it should be: (int length, int width, char board [width] [length]) . 2) Function Make Chisboord Cha...

How to initialize variables from list in Java? -

Let's say I've made a list of names such as: Martin Paul Diego Damien et al. And I need to start, respectively, for example (psuedocode): Martin int = 0; and you create one output for everyone, which is (psuedocode): System.out.println (Martin + "Martin Fountain" ; How to do this automatically For Hashmap , which gives the keyboard value for their values. Hashmap map = new hashmapped Gt; (); map.put ("Martin", 0); // etc. system.out.println (map.get ("Martin")); You can see this Are you that What you can do with this, but you will need specially for this class.

javascript - closing mongodb connection and get correct results with multiple parallel asynchronous query -

I'm new to Mongo and node I'm currently using Mongoscin and Blubber to handle debug connections and queries I am (as told here :). I have three collections: users, binders and cards. Binders Collection The information about the card for each user is the properties of each document in the binders: User id & lt; --- which refers to the owner of the card card code; & Lt; --- This is a card calculation & lt; - This refers to the number of cards owned by the user. I like to store a separate card, so that when a card changes, it all varies for user binders. I now want to retrieve an array for a given user such as: [{card: {card document}, count: 4} ...] I have the following problems: DB connection should be closed after calling all ASIN DB callback Card There may be a starting point for discussion: var getAllBinderCards = function (req, res) {var db = req.db; Var userId = req.userId; Var debaters = db.collection ('Binders...

ruby on rails - How can I hide HTML tags? -

I am using a form to post to a blog on the blog post post page, to explain html I use the == on the rail material display tag. However, I have a blog index page that shows the latest posts, I want a shaded post preview not to interpret the HTML, but hide the HTML tag at the same time. How can I do this? def blog # @ content3 = content.find (3) @blogPosts = Blogpost.all.reverse.drop (1) @latestPost = Blogpost.last If @latestPost is empty? == Incorrect @ BlogPicture = Blogpost.list.impress the end of the IMF. Format | | Format.html {Render: Layout = & gt; 'Blog'} End End You full_sanitizer and then truncate results. example (used in controller): sanitized = ActionView :: Base.full_sanitizer.sanitize (@string) @ trunket = ActionView :: helper :: TextHelper.truncate (Approved, Length: 17)

c# Access to path denied? -

I'm having trouble with an error I searched the web but I got an answer that I understand Originally trying to create a temporary text file, and writing it here about the error in this code: (streamer output = new streamer (create file (GetTemporaryDirectory ()))) and getTemporaryDirectory method: public string GetTemporaryDirectory () {string tempDirectory = Path.Combin E (Path.GetTempPath ()), path. GetRandomFileName ()); String tempFile = path. Change Extension (tempDirectory, ".txt"); Directory.CreateDirectory (tempfile); Return TempFile; } and last but not least error: dir = C: \ Users \ Jack Givens \ AppData \ Local \ Temp \ 5ftxwy31.txt The first chance of a type 'system.UnauthorizedAccessException' was an exception in mscorlib.dll, an unrestricted exception of type 'System.UnauthorizedAccessException' type in mscorlib.dll Additional information: Path 'C: \ User \ Jack Gavins \ AppData \ Local \ Temp \ 0lpe1k5t.txt is denied. ...

Ruby version not in ruby-build list for rbenv -

I am using Rail 4.2 and want to update my ruby ​​version with RBNV. I used Homebrew to install ruby ​​fabric and no matter how many times I try to update via decoction , not Ruby version 2.1.3 Will be shown when I run Rbenv install - list after you install Create ruby ​​with rbenv and homebrew and when you do this $ echo (rbenv user name & gt; root) , you / usr / local / Var / rbenv / user / And instead of lt / rbenv , here's how to fix. Issue When you install rbenv with homebrew, homebrew says: not to use directories of homebrew but to add your profile from ~ / .rbenv : Export RBENV_ROOT = / Usr / local / var / rbenv Do not do this Remove the line from your profile Make sure that you refresh your terminal after Then remove any symptoms of rbenv in the / usr / local / var directory. sudo rm -r / usr / local / var / rbenv Now when I do ebb $ (rbenv root) I / users / & lt; Username & gt; / Rbenv / usr / local / var / rbenv instead ...

javascript - Why submitting a form overrides setting location.href in a submit button click handler? -

Image
is inspired by this question. In short: why window.location.href is not being redirected to a new page (example.com) while executing the code given below? & lt; Form & gt; & Lt; Input type = "submit" id = "submit" value = "submit" & gt; & Lt; / Form & gt; & Lt; Script & gt; Document.getElementById ('Submit'). AddEventListener ('click', function (e) {window.location.href = "http://www.example.com";}); & Lt; / Script & gt; I always believe that the window.location.href setting immediately loads a new page, but in this situation it is not. Rather than submitting a form the page is reloaded, and setting a new location seems completely undisclosed. Why? how? What am I missing here? Please note, that I am aware of many ways to stop the way I present this method, but I want to know why location.href setting Additional information This is happening in all major browsers (Chr...

MYSQL & PHP trouble with echoing tables -

So I'm trying to unify the number of rows in a row, but I deliberately do not have any rows in the table now If to test the statement, and it is not working, but worst, then the rest of the sites do not work (page pops up, but no text or numbers appear on it), when I One row added to the table, it worked fine, no row Ø = No work here is the piece of code that does not work Any and all help is highly appreciated. $ query1 = mysql_query ("SELECT *, COUNT (1) AS 'table 1` with' numberofrows` where WHERE` user` = '$ user name' GROUP BY `first name`, 'Last name' "); $ Numberofrowsbase = 0; While ($ row = mysql_fetch_assoc ($ query1)) {if (isset ($ row ['numberofrows'])) {$ enteries1 = $ enteries1; } And {$ enteries1 = $ numberofrowsbase; } Echo entries 1; } It seems that everything is complicated by any good advice from the world You should take you onboard, but the simple way to get total rows from the table is: Sequence number as...

ios - Exclude restricted videos from youtube query Using YouTube API -

I am developing an iOS application that brings some YouTube videos. I am using this YouTube API: and here is a link to YouTube Documents - I am using Video (which is designed to play YouTube videos) I have been searching for ways to optimize the results of the documentation several times, Do not send me restricted videos out of any other restricted video for Vimeo Channel video or any channel , Because the limitations of regrading Helper libraries for YouTube do not allow these videos to run. I use the YouTube API How can i If I can not use this API, then is there any way to use different APIs? . You can do this in V3:

osx - IntelliJ not starting after OS X Yosemite update -

I upgraded my OS X to Yosemite and now my Intel IDE is not starting. Error message: To open "IntelliJ IDEA" you need to install the legacy Java SE 6 runtime. install / update ( if this link does not open in Safari, Firefox's Try ). Modified info.plist will break the digital signature and stop patch updates . We do not recommend modifying info.plist . File to run under JDK 1.7 or 1.8. Please list the specific known issues on Java 7 and 8, which prevents JetBrain from using these Java versions by default. While Java 6 has security related issues and EOL, these issues are not most likely when you are using Java 6 to run IntelliJ IDEA (and the other on the basis of this plat IDE ORM). The browser does not install the plugin to run the Java 6 applet, and this remote attacker will be extremely difficult to exploit it (if not impossible) when it is used to run the IDE. If you can not accept these (probably at least) risks running under Java 6, we re...