Posts

Showing posts from January, 2012

variables - How to make GUI Button activate script (JS or C#) in Unity3d -

I really need help in making your GUI. Button launches a JS script (or C #) associated with a game object. Here's what I have in my application: "Public Vari doRotation = false" by the JS script "Dorotat.Jes", which rotates on Game Object #pragma in strict public var doRotation = false " True ", then the rotation begins; Function Updates () {if (doRotation) {transform.Rotate (new vector 3 (0, 50, 0) * Time.deltaTime); }} I have a JS script that renders some GUI.buttons I press 2 button once, to call the "doRotate.js" script whose The meaning is reaching boolean "depression" and its opportunity for "true", as it is inspector I am trying to do this by now, but I get this error "Error BCEE 00020: An example of type 'dotat' to reach non-static member 'two quotations (BCEX 2020) Here is the code on GUI.button: var has the original_method: Float = 480; Var has the original_heat: float = 320; Var

asp.net mvc 3 - Jquery get or post method not calling if input integer text is large? -

I'm calling the JQuery Post method for an integer passed that passed. The input method is calling the post method less than 9 but if I'm giving more input integer values ​​because input is not calling my controller post method. Please tell me if the input integer text is large, then why is not the post method calling? Get public activity GetDetails (int id) $ .post ("& lt;% = Url.Action (" GetDetails "," ActionController ")% & gt; , {Id: id}, function (html) {object = json, html};); I think you are going to be the integer length above C # Give a try in the form of a string or a long and see whether it is ok or not. If this works properly then the issue relates to the int length.

How to create 2 nested tabs within a tab in android? -

Image
I have basically 3 tabs, and when I click on one of them I want to display 2 more tabs Is like a tab How can I achieve this in Android? I've just added 3 tabs to an activity and I added two more tabs in one tab activity. But this is giving me the error. Please share any other thoughts and help me, thanks in advance. < / div> This is not a good idea, users should know which tabs will respond to a swipe operation? Multi-level tabs are deceptive You should use or instead of top-level tabs.

sql server - Rewrite a query to Avoid Subqueries -

I need to avoid sub queries below the query. How do I do it .... Below are two subqueries in the query select as cc1.claimid, createdate as cc1.createdate, condition_cd1 as cc1.condcode, as the claimID cc2.condcode condition_cd2, claimcond CC1 (nolock) from condition_cd3 as cc3.condcode cc1.claimid = cc2.claimid and cc2.condcode = (select min (condcode) claimcond CC2 (nolock) on claimcond CC (nolock) where cc1.claimid To join the exclusion of external = Cc.claimid) and cc1.condcode & lt; & Gt; cc2.condcode external claimcond CC (nolock) from cc1.claimid = claimcond CC3 (nolock) on cc3.claimid and (left to join cc3.condcode in some minutes (condcode) where cc1.claimid = cc.claimid and ((cc.condcode & Gt; cc2.condcode)) and cc1.condcode & lt; & gt; Cc3.condcode ORDER BY cc1.claimid, cc1.condcode DESC exists: <> selected as ClaimID cc1.claimid, createdate as cc1.createdate, condition_cd1 cc1 form. condcode, condition_cd2 as cc2.condcode, cc3.condco

Geolocation api javascript -

I try to alert my latitude and longitude, but it does not work. I am making a global variable, and I change this variable in the function. I do not see my other functions as global variables . I do not know what the error is. var latitdue; var longitude; Navigator.geolocation.getCurrentPosition (function cores (status) {longitude = condition calls; lame; latitude = condition.calls.latidad;}, function (error) {warning ("error:" + error.code);}, { Capable high altitude: false, expiration: 10000, max. Ed: 1000}); Function A () {alerts (longitude, latitude); } a(); Its a typo error "Latitude" does not change in var latitude var latitdue; And to access the computer's location, popup or hint on the browser bar "Allow"

video - Using ffmpeg create an android playable music slide show -

Now I am making a music slide mp3 video and running it with the FFPAAG in Android device. I used the following command to complete this mission. The first thing to do is to input a batch of JPG files and convert it to an MP3 file. 1.) C: / xampp / htdocs / bin / ffmpeg -y -r 1/5 -i C: /xampp/htdocs/bin/%03d.jpg -c: v libx264 -profile: v baseline -live 3.0-R30-px_fmt yuv420p c: /xampp/htdocs/bin/out.mp4 The second one is to be inserted into a previously created video. 2.) C: / xampp / htdocs / bin / ffmpeg -i C: /xampp/htdocs/bin/out.mp4-i C: / xampp / htdocs / upload / 1. MP3-A-Map 0-Map 1- Codec Copy-Shortcut C: /xampp/htdocs/bin/haha.mp4 " Both commands are correct and mp3 files are created However, only MF4 can be played in Android devices, while Haha.mp3 can not do 4. It seems that the audio track violates the requirement of Android MP3.What is the second order? Should I file in the MP3 Android device. Some device MP4 Do not like MP3 audio in contain

Phonegap JavaScript php include -

Is it possible to load a page with a phone interval using javascript to load it? This phone makes HTL very easy in difference. Phonegap and AJAX with web services you only use php A mobile php can not interpret by default.

python - How do you shift Pandas DataFrame with a multiindex? -

With the following dataframe, how can I move the "hier" column on the basis of the index without having to move values Different Index values? line_date line_resear bayer horse final gunfiller 2013-09-28 10 99 Final Gunfilder 2013-08-18 10 102 Ultimate Gunfitter 2013-07-06 8 103 .... Painter 2013-09- 28 10 103 painter 2013-08-31 10 88 painter 2013-07-27 8 100 df ['beyer'] Shift (1) production ... line_date line_resayer bair_shiked horse final gunfighter 2013-09-28 10 99 Nain Ultimate Gunfilder 2013-08-18 10 102 99 Ultimate Gunfighter 2013 -07-06 8 103 102 ..... Painter 2013-09-28 10 103 71 Painters 2013-08-31 10 88 103 Painter 2013-07-27 8 100 88 The problem is that the painter was given a bayer that the final ginfighter (his first record) was assigned. Instead, I want to go to it like this ... line_date line_resayer bair_shiked horse final gunfilter 2013-09-28 10 99 nan final gunfiller 2013-08-18 10 102 99 final Gunfighter 2013- 07-06 8 103 102 .

ios - Application built with Xcode 5 - submission to app store -

I have created an application using Xcode 5 IDE, and it is ready to submit to the app store, is there any Chances are that Apple will not reject it if it is not built with Xcode 5.1 IDE? I have not installed it yet, is there any official memo saying that if Xcode is not manufactured with 5.1 then applications will be rejected? I know that Apple Xcode will not accept any applications created with any IDE less than 5 No, Apple has not announced anything about this (though) then you should be okay. Last time (with Xcode 4.6) he announced about the first few months of hands. EDIT: This also tells Xcode 5 still

c - Linux : receive from socket with timeout? -

I have a graphics application, where the data comes from the server when the screen is updated. (Incremental update) I see that when there is no data from a server, then the socket is shutting down some time later. Is there any way to handle this scenario? You may find "TCP Kolliv" more information in this web page:

sql - How to rollup multiple rows when Inner Joining two tables -

I'm living with a SQL command where I add two tables I have two tables: a 'restaurant' Table And a 'review' table. Relationships There are many reviews of a restaurant. After joining the tables, I have many reviews for each restaurant, so I end up with many duplicates for each restaurant. I only need to find a restaurant once I've applied results to group duplicate restaurants lines to produce the code so far: a.Restaurant_Id, a.Restaurant_Name, a.Restaurant_Locatio n, a.Restaurant_Image, a.Restaurant_Thumbnail, a.Restaurant_Owner, an internal Join review a.Restaurant_Description B restaurants a.Restaurant_Id = b.Restaurant_Id What (restaurant duplicate entries grouping The easiest way I do not need any data to produce from the 'review' table, I have just joined the 'restaurant' table for the search function on my website?) I need column data from the 'restaurant' table Date (as defined in the statement above) eg as restaurant

c# - Disable onscreen keyboard using -

I have a window form in which I have a numeric keyboard when the user clicks on the text box Then my numeric keyboard appears. But the problem is that I moved my app to the touch screen keyboard. The default touch screen keyboard is visible when the user clicks on my text box . Is there a possibility to close the touch screen keyboard on my application? < You can not, it's now a user priority as. A similar type of question is found here please see

concurrency - Inconsistent HashMap between classes - Java -

I have a square, which has a hashmap as a public field: Public stable final hashmap < String, string & gt; Map = new hashmap & lt; String, string & gt; (); And in class B (which is multi-threaded, applying runnabble), I put something. Now, from class I want to read the map. But the changes in the map are class C. Are not reflected in. I do not store any reference anywhere, but I use the map through the name of the class. A map.put ("Hello", "hello"); // Thread B. A.map.get ("hi"); // in Thread C and I'm sure that I get calls after calling () .. I thought there could be a problem with concurrency And I have changed the Hashmap to Hashbabel, but it is still the same .. I repeated this problem as short code as possible Public Sector A {Public Static Last Hashmap & lt; String, string & gt; Map = new hashmap & lt; String, string & gt; (); Public static zero main (string [] args) {while (true); }} Pub

security - How do you block specific IP adress in Ruby on Rails -

I am in charge of some live websites made on Rail's Ruby. I have some IP ads that attack these sites and I would like to block my IP address. I know that they can get around this wall with a proxy, but I want to make it hard for myself and want to know where I should set in my Ruby on Rail app. Thanks to all of you! class ApplicationController & lt; ActionController :: Base before_filter: block_ip_addresses protected def block_ip_addresses head: unauthorized if current_ip_address == "XX.XX.XX.XX" end DEF current_ip_address request.env ['HTTP_X_REAL_IP'] || Thanks for request.env ['REMOTE_ADDR'] End End :

javascript - Outputting a calculation -

I have verified this script on the w3 validator and it is not valid with errors, but when I do something within the cart The output tries to calculate. I was wondering what the problem was. & lt; script type = text / javascript & gt; Function ShoppingCart () {var Karrata = 0.10; Var tax = 0; Var subtotal = 0; Var total = 0; Var quantity = document. GetElementById ("Quantity"). Values; Var price = document.getElementById ("Options"). Values; Subtotal = quantity * price; Tax = Subtotal * Taxrate; Total = subtotal + tax; Tax = tax.toFixed (2); SubType = SubTotal.toFixed (2); Total = total.toFixed (2); & Lt ;! - data back form - & gt; . Document.getElementById ('sub-totals') innerHTML = "sub-tot =" + sub-totals; document.getElementById ('totalTax') innerHTML = "Totaltax =" + tax + "(@ 10)". document.getElementById ('Total'). InnerHTML = "total =" + total; Alert ("checkotle")

Angularjs Init Service -

I am working on the AngularJs project in which the top navigation items are loaded using the service call App.service ('menu', function ($ http) {return: function: callback} {$ http.get ('api / menu.json'). Success (function (menu data) {callback (menuData);});}}}); I am using the same as described in my BaseController App.controller ('BaseCtrl' , Function ($ scope, menu) {$ scope.menuData = {}; Menu.get (function (menu data) {$ scope.menuData = menuData;})}} My The menu remains empty for a period of time until the service call is successful and see before you assign any method before assigning the value of $ scope.menuData . Please tell me, I would like to do everything possible You may have tried, but nothing worked: ( PS: I am using AngularJS v1.2.9 Return a promise from your service, and use it in your controller's resolution: app.service ('menu', function ($ http) {var menuData = null; var promise = $ http.get ('

layout - Organizing jbuttons in flowLayout java -

Image
I am struggling to make a good looking layout. I am trying to add a button on the left and 2 buttons on the right side I tried several ways to look good, therefore, does not work well. Any help would be great. JPNL BTN 1 = new JPNL (); Btn1.setLayout (New Flow Layout (Flow Layout. Wright)); Btn1.add (new pocket ("btn 1"); Jebton BTN2 = New Pocket ("BTN 2"); btn1.add (btn2); Pane.add (btn1, border layout. SOTH); Since I do not allow the image to be posted: ------------------- ---------------------- | ------------------------------------- | | | | | | | | | | | | | | | | | | ------------------------------------- | | [Enter] [BTN1] [BTN 2] | ----------------------------------------- < p> How do I make the login button on the left side? Thank you. Effort 3: JpnL SouthPainel = new zpinal (new gridlate (1,2)); Zippy answer = new zpn (); Jepinal btn 1_btn2 = new zpn (); enter.add (new pocket ("ant"); Enter.setLayout ((New Flow Layout

sql - Join Registers in Mysql -

उदाहरण के लिए, मेरे पास 2 टेबल हैं: तालिका देश: < कोड> आईडी नामक देश ------------------ 0 संयुक्त राज्य अमेरिका टेबल शहर आईडी नामों --------------- 0 लॉस एंजिल्स मैं यह कैसे बना सकता हूं? नई तालिका सभी रजिस्टरों ------------- संयुक्त राज्य लॉस एंजिल्स <div class = "post-text" itemprop = " </ p> <p> इस प्रकार: </ p> <pre> <code> से चुनें नामों count_toaries all_registers देशों से UNION SELECT names_cities से शहर </ code> </ pre> </ div> </ html><br /><br />

python - Only print content between tags -

I am working on a project for my food science class, for which I have to research but why do When do you do something for you? However, I am using Python 2.7 and beautiful Soup with URLIB2 and help to know how to print the content between tags and not just tag yourself, so that I can only copy And what will it take for me in Google Dock? This is my code Thank you very much I am using any help! BeautifulSoup import, urllib2, beautiful soup import time from time * print ("belly-vz-cure") url = urllib2.urlopen ("http://www.webmd.com/diet/ belly-fat-diet ") content = url.read () soup = beautiful soup header (content) header = soup.fandall (" h3 ") texts = soup.fildall (" p ") print (header) print (texts) The time of Sleep (5) print ("cabbage soup DIT information") url = urllib.orlopen ("http://www.webmd.com/diet/cabbage-soup-diet") content1 = url.read () soup1 = beautiful soup (Content1) header1 = soup.find all ("h3&qu

c# - Why can I not call my function with the calling line of -

Why can not I say like my function as if I have it now? The code works perfectly for PrintDictionary if I have this main method. I want to move it to a function and then want to use it in the same way with my parameter passing, but it gives errors that are listed below. Question: What have I done to the errors given below when I just want to call a function to print? printDictionary (d); & Lt; - Error Calling code: printDictionary (d); To call the function: Private Zero printDictionary (dictionary & lt; string; employee & gt; & gt; & gt; & gt; InputDictionaryParm1 from list ) {foreach (in InputDictionaryParm1 a) {Console.WriteLine (a.Key); Foreign (preference in a.value) {Console.WriteLine ("\ t" + e.Name); }} Console. Readkey (); } Error table: Error 1 'ConsoleApplication1.Program.printDictionary (System.Collections.Generic.Dictionary & lt The best overloaded method Match \ Users \ itpr13266 \ AppData \ Local \ Te

ubuntu - SCP without asking "Continue or not" -

I'm trying to skip some files using different types of pm keys, so I do not want my password However, every time I am trying to connect to a new box, it will ask me "seriously, you want to connect? Do you want to save the key? ..." which is so disturbing, like in SCP Some flags "yum -y" yes for all those questions To give [user @ commander tmp] $ scp -i mykey.pem target.txt ubuntu@xxx.xx.xx.xx: / Authenticity of Commander Host 'xxx.xx.xx .xx (xxx.xx.xx.xx) 'can not be installed. RSA key is fingerprint junk: junk: junk ... lots of johns ... here goes do you really want to continue connecting (yes / no)? Yes Warning: 'xxx.xx.xx.xx' (RSA) has been added permanently in the list of known hosts. Thank you! Yes, this is - A batch mode = yes is a direct candidate You can vary by StrictHostKeyChecking (it seems safe in the described circumstances) and UserKnownHostsFile . You can get more details on its manpage.

twitter bootstrap - BootstrapSwitch not working -

I do not have a simple yes switch that is not showing as it is showing as a checkbox & lt;% = f.label: true, "right answer?" % & Gt; & Lt; Br> & lt;% = f.check_box: true% & gt; & Lt; Script & gt; $ (Document) .ready (function () {$ ("# answer_correct"). Bootstrap switch ('ontxt', 'yes'); $ ("# answer_correct"). Bootstrap switch (' off-test ',' no '); $ ("#answer_correct"). Bootstrap switch (' size ',' big ');}); & Lt; / Script & gt; This console's information is: & lt; Input id = "question_reference_accident_character" name = "question [answer_username] [0] [right]" type = "checkbox" value = "1" & gt; Am I missing something? Thank you. The JQuery ID selector is not referring to the input element on the page. Change $ ("# answer_correct") to select from the correct ID: $ (&

Is it possible to change S/MIME Content-Type header info with openssl? -

I am trying to verify against it. I am using OpenSSL (of course, patched), to generate S / MIM using the following command: openssl smime -sign -in in CCDA_Inpatient.xml -out signed.mms-cignare mine Which signature generates an e-mail that stops appearing like this: MIME-Version: 1.0 Content-Type: Multilanguage / signed; Protocol = "application / x-pkCS7 signature"; micalg = "SHA1"; Limit = "---- 405E0406EDC1940F520C0423E0C587FA" This is an S / Mime signed message ------ 405E0406EDC1940F520C0423E0C587FA Content type: Text / plain The problem is that the content- Type: Text / plain . I'm also required to add content-type: text / xml - and some other headers, but the problem is that when I add these other headers, I get an error from TTT Which tells me that my signature is invalid and that the value of the message-digest attribute does not match the value value Which I believe That the signature is based on the whole part, not the c

javascript - Play music file with Rails -

I want the user to give me a URL that ends with the MP3 extension and played in the show Is Page I use scaffolding to create a new page for submitting a URL, and in the show page, I want this URL to run the associated media file: < pre> & lt; P & gt; & Lt; Strong & gt; Music URL: & lt; / strong> & lt;% = @ profile_music.music_url% & gt; & Lt; / P & gt; If this was a normal HMTL page, then I would use it: & amp; the lift; Embed SRC = "url.mp3" width = "360" height = "165" hidden = false AUTOSTART = true loop = "false" volume = "60" & gt; So I need something like this: & lt; Embed SRC = @ profile_music.music_url width = "360" height = "165" HID = false AUTOSTART = true loop = "false" volume = "60" & gt; Use this: & lt; Embed SRC = "& lt;% = @ profile_music.music_url%> & gt; Width = "

osx - How to check if Python3 was built with '--enable-shared'? -

पर्यावरण: मैक ओएस एक्स 10.8.5 < / li> अपाचे 2.2.26 होमब्रे पायथन 3.3.3 समस्या: I mod_wsgi को स्थापित करने की कोशिश कर रहा हूं लेकिन पहले यह तय करने की आवश्यकता है कि क्या पायथन को '-सक्षम-साझा' विकल्प के साथ कॉन्फ़िगर और संकलित किया गया था। प्रश्न: मैं कैसे तय कर सकता हूं कि होमब्यू को 'सक्षम-साझा' विकल्प के साथ पायथन स्थापित किया गया है? < li> अगर यह स्थापित नहीं हुआ है, तो इसे स्थापित करने का सही तरीका क्या है? धन्यवाद! अजगर प्रतिक से: आयात करें sysconfig sysconfig.get_config_vars ('Py_ENABLE_SHARED')

hadoop - When is mapreduce not suitable for a business? -

Hi, I'm having trouble with areas where mapreads will not be suitable. I understand that there is no point in using Mapreditch with small amounts of data. But what kind of 'complex' questions are not suitable for Maprades? With data metepadet's petabytes like a business, it would be a good idea to ask questions that say that a type of product is sold right within a month? But then the complex questions that are generally applicable to a business, do not add any real benefit to it? Usually everything in the mpadued / hive will be an overall query, but you have non-all queries It could be just a query that could not "perform" a low operation. The hive can do a fairly complex query by using several queries and windowing functions. Therefore, it is not certain that the statement "Matrudus is suitable with simple totals" questions are completely true. The types of business questions for the mpadued / hive are not justified, there are real t

python - Reading a file from Rhythmbox plugin -

In my plugin for rhythmbox I need to read the data from the XML file. I am similar to the XML file script. I read the file: xml.dom.minidom import parse doc = pars ('sites.xml') from I get an error saying That file is not found. I came to know that do not see the script in the home folder in / usr / lib / rhythmbox / plugins / myfoder / Is this an error of my script or just a limitation of rhythmbox? Thank you. Try adding the address directly. import from xml.dom.minidom import paras OS BASE_DIR = os.path.dirname (os.path.abspath (__ file__)) xmlfile = os.path .join (BASE_DIR, 'sites .xml ') doc = parse (xmlfile)

unit testing - How do I create a mock instance inside of a method in C#? -

So here is the simplified version of my classes. I have two classes that apply a service interface. I am a real implementation of my And my motive is. I need to create a number of new examples of this service class inside my worker class. How do I tell my working class who want to use IISIS I? Does the only way to go to the working class enjoy? Is there any better way? Edit: Then after reading some reactions, I think I did not tell my position correctly. I was overwritten on the issue of obstruction anyway I have added more code which can help to clarify what I am doing I have used the original worker class < Code> manager and has a child list of workers . The list of workers is created from the manager class and I create them by using IService , which I want to concrete or imitated the implementation, then I get the workers To do something related to IService and remove a variable that I provide it to. (In this case it is just an integer, but in real life

Use if statement against the ones place decimal value in Excel -

I need help in making a formula that spins a number with 1 or 6, which is the highest of 5 Multiple nearby (e.g., 276 to 275 or 131 to 130) and any other number to the nearest multiple near 5 (e.g., 277 to 280 or 132 to 135). I thought the argument looks like this: = (If this situation, roof (A5), floor (A5) is not understood then < / div> You can use MROUND instead: = MROUND (A1,5) This makes the nearest 5 goals. Anything other than 277.5 and anything else will be scored for 280, and anything below will be rounded up to 275. If you still want to use if , then I MOD : = IF (MOD (A1,5)> 2.5, CEILING A1.5), Flower (A5)) So if the remainder is above 2.5, then round up, divided by 5 Otherwise, below,

php foreach loop insert into two tables -

I want to insert the table into the table. Each name can have several addresses. name will be in table1 and all addresses will be related to another table2 in name My array is below: array ([name] => array ([0] = & gt; Jack [1] => Jill [ 2] = array ([0] = & gt; array ([0] = & gt; Jack_Address1 [1] => Jack_Address2 [2] => Jack_Edress 3) [1] => array ([0] = & gt; jill_address1 [1] = & gt; jill_address2 [2] => jill_address3) [2] = & gt; array ([0] => tom_address1 [1] = & gt; tom_address2 [2] => Below is the one that I tried: foreach ($ _ request ['room_name'] as the $ key => $ value) {mysql_query ("table1 (not ) Enter values ​​in the values ​​($ value) "$ insert_id = mysql_insert_id (); foreach ($ _ request ['address'] $ key1 = & gt; $ value1) {mysql_query (" Insert ID, Address in Table 2 ") value $ insert_id, $ value1) ");}} Drilling is not it should be: for

scala - Playframework I believe is using java 7, I'm getting Unsupported major.minor version 51.0 -

I am using playframework 2.2.2 on OSX. My command line report I am using the Java version is the following: Java version "1.6.0_65" Java (TM) SE runtime environment (1.6.0_65-B 14-462-11 M 460 9) Java HotSpot (TM) 64-bit server VM (tomcat 20.65-B4 4-462, mixed mode) I used to contact Tomcat's JDBC Pool I am using, and when I load my app, I get this error: [runtime expiry: java.lang.UnsupportedClassVersionError: org / apache / tomcat / jdbc / pool / poolconfiguration: unsupported major.minor version 51.0] Now if I'm wrong then correct me, but I believe that any kind of game is in its Java version Which Java 7 is correct? I remember that it was produced somewhere else while using play, but I have to find out how I saw it. So here's the problem, is that the game is being compiled using Java 7, but when I run it using version 6? Note: I do not use the play command to run my app, but I use b / c to use sbt I have many projects and Then I just

migration - Upgrading from Windows Azure Storage Client Library 2.1 to 3.0 -

I am upgrading a project from .NET MVC 4.0 to 5.0. Mostly, the NuGet package has worked without upgrading code; However, there are some major changes when renewing the Azure Storage Client. Now I have a large number of build errors - BlobRequestOptions class has lost many members like DeleteSnapshotsOption and UseFlatBlobOption members, and CloudBlobContainer is no longer the CreateIfNotExists function Does anyone Is the migration guide address for upgrading from previous Azure Storage client versions to 3.0? Or maybe I'm missing something dumb and easy? Migration Guide 1.7 to 2.0 can help you with Migration Although we have 3.0 (listed) There are some breaking changes, though there should be no major changes between 2.0 and 3.0. Please tell us whether you have a renewable version of the latest version 3.X and we can help. We strongly encourage you to upgrade to the latest version because it includes a ton of new features, a broad platform, compatibility, better performan

android - Custom checkbox image - but can still see original? -

I was using the standard Android checkbox, but when I installed my app on other people's phones for testing, So the checkbox was different on each phone. On a single phone, the checkbox was so light that when the box was checked, you hardly could see the box. So I tried to create a custom checkbox checked image. It worked well, but can I still see the original multi-checkbox image in the background? Any ideas why? Here's my checkable linear layout, honestly I'm not even sure that I need it? & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; com.myapp.myappname.CheckableLinearLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: layout_width = "match_parent" Android: layout_height = "match_parent" Android: orientation = "horizontal" & Gt; & Lt; Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android:

mysql - Importing Databases into MAMP on a Mac -

The hard drive on my Mac is failing, so I installed the Mavericks on the external hard drive and installing my websites there. I also upgraded to MAMP 3.0 . However, I copied all of my original data from my original hard drive: Application & gt; MAMP & gt; DB & gt; MySQL But when I open phpMyAdmin in my browser, only one database is displayed which is preinstalled with MAMP happened. Do I have to make all my databases with scratch, or is it an easy way to import them? Note: When I look at the markers of my database folders in finder , on all sites pasted in two places there are dark blue bars on their icon. I have some of it There is no clue. I made copies like you straight away, but your way looks strange: Application & gt; MAMP & gt; DB & gt; MySQL Is this a complete path? What should be MySQL mysql ?

xml - Java Jaxb : unexpected element (uri:"", local:"Create"). Expected elements are -

मुझे अपने जेएसीएबी & lt; element name = "create" & gt के साथ समस्या है ; & LT; complexType & gt; & LT; अनुक्रम & gt; & Lt; element name = "name" प्रकार = "string" & gt; & lt; / element & gt; & Lt; / अनुक्रम & gt; & Lt; / complexType & gt; & Lt; / तत्व & gt; मेरा XML: & lt; बनाएं & gt; & LT; नाम & gt; कोको & lt; / name & gt; & Lt; / बनाएं & gt; मेरा कोड java: JAXBContext संदर्भ = JAXBContext.newInstance ("MyPackage"); Unmarshaller decodeur = context.createUnmarshaller (); System.out.println ("पाठ:" + संदेश); MsgObject = decodeur.unmarshal (sr); अगर (msgObject उदाहरण का निर्माण करें) {System.out.println ("क्रिया"); } और मेरे पास यह है: अनपेक्षित तत्व (यूरी: "", स्थानीय: "बनाएं") अपेक्षित तत्व & lt; {} बनाते हैं & gt; और मेरा कोड इसे रोकता है: msgObject = decodeur.unmarshal (sr);

nlp - algorithm to get topic / focus of sentence out of words in sentence -

There are no well known or successful algorithms for obtaining topics and / or sentences from the focus of a sentence (question) The word in question? If not, how do I get to know the topic / focus of the question? It appears that the subject / focus of questions is usually a noun or a noun phrase. So the first thing I have done is to determine the nouns through the speech of the part of the question. But then how will I know that I should only have a noun, or noun (special) and before that an adjective, or earlier noun or action statement, or what the noun (names) and verb should be? For example: Get 'Quick Brown Fox', 'Junk' and 'Lazy Dog' in 'Instant Brown Fox Jump on Sloth Dog'. "What is 'Japan's population', 'Population' and 'Japan'? In 'What is milk' find 'color' and 'milk' In the 'What's the height of Mount Everest' Mill 'Mount. Eastst' and 'Height'

javascript - Ember- How to render multiple templates on one page? -

मेरे पास & lt; body & gt; & lt; स्क्रिप्ट प्रकार = "टेक्स्ट / एक्स-हैंडलबार" & gt; & LT; h2 & gt; एम्बर.जेएस में आपका स्वागत है & lt; / h2 & gt; & lt; div वर्ग = "सूचियों" & gt; {{आउटलेट सूचियों}} & lt; / div & gt; & lt; div वर्ग = "सूची" & gt; {{आउटलेट सूची}} & lt; / div & gt; & Lt; / स्क्रिप्ट & gt; & lt; script type = "text / x-handlebars" डेटा-टेम्पलेट-नाम = "सूचियां" & gt; & LT; h3 & gt; कुछ सूची नाम & lt; / h3 & gt; & Lt; / स्क्रिप्ट & gt; & lt; script type = "text / x-handlebars" डेटा-टेम्पलेट-नाम = "सूची" & gt; & LT; h3 & gt; सूचियों से चयनित एक सूची & lt; / h3 & gt; & Lt; / स्क्रिप्ट & gt; & Lt; / body & gt; जे एस ऐप = एम्बर.एप्लिकेशन। बनाएं (); App.Router.map (फ़ंक्शन () {this.resource ('सूचियों', {पथ: "/"})}}; App.ListsRoute = Ember.R

permissions - ModX: TV images broken in file manager after port -

I just migrated my domain from a subdomain to the main domain The problem is that the images used in the form of TVs File Manager (and Site) has been broken down. I had inspected them on the server, and they have only one permit which is not a TV and the image is not displayed in the viewer. Edit: Turns on the main domain, converts all the images to lowercase, so any image with uppercase letters is broken. Not sure why this was doing this in the main domain, but there was no subdomain, but to eliminate the problem, I changed all the images to lowercase. If someone knows why the server is changing images in lowercase, then I would be interested to know. You have updated your "workspace" path, it is in the database under the modx_workspaces table Besides, are you sure the images are not saved from the full path, or do the images work on the frontend?

how to use xmgrace to plot histogram from a plot -

Image
I have a text file with two columns (say, sample1.dat): first column 1 to 5000 and second Columns are 5000 degrees angle, in which degrees range from -180 to 180 degrees. Using the "Xmgrace sample1.dat" command, give me a bizarre diagram vs. serial no met. To get the histogram from the plot, I did the following in Grace's pop-up window: Data -> Trasnformation - & gt; Histogram In a new pop-up window called 'Grace: Histogram', I selected the source graph, but did not make any selection in the destination graph as mentioned in any maintenance tutorial. After starting in -180, close as 180 and close the number of bins as 5 and then in the window, by killing the 'Accept' command, I got the following error message: < P> [Error] Please select a source and destination article Help me get the histogram from plot. I want to use xmgrace to plot a histogram. I know how to plot it using some of the most widely used plotting tools like gnuplot a

windows installer - Change Program Name and Shortcut Title during installation -

Image
I have an installed MSI install, which is with the install shield 2013 and we have around 20 different affiliate releases Actually the only difference between release program name and shortcut is installed on the desktop. Rather than making the same program with these small differences, we are trying to build a release. I am trying to change those items on time, but have not succeeded. My goal for user experience during the established time will be: The user is prompted for an affiliate code < li> MSI program name changes and shortcut information was assigned to that code Thank you in advance! I think I should only convert one to because Changes are so few Transforms are used to add multi-language support to the MSI, so it should be easy with only a few changes in the original database. You create your own setup.exe launcher (many templates are available - I think you can use one in the installstall). Setup.exe asks for affiliate code and then applies t

complex numbers - What is the decimal point ('.') in C++ and can I make one? -

I'm in a C ++ class, so this question will concern itself primarily with that language, though I I am not able to find any information for any other language and I feel that whatever the answer is, maybe it is a very good language. C ++ is an integral type in unmarketed numbers ('4', for example, is an integer) The number of different bounding digits is allowed to be interpreted differently ('' 4 '', For example, a letter is '' 4 '' a string). As far as I know, there is only one type of symbol: the decimal point. ('4.' is a double). I would like to create a new unary mark, which prepares a constant number in the code that can be explained as a member of a built-in datatype. More original, I would like to know '.' And ',' and '' ', and' '(they are not operators, keywords, or statements, so what are they?) And how the compiler interprets / interprets them. More information, if you think i

css - How do I get the ID of a JQuery item mid-function? -

I am trying to change the background image of some menu options dynamically, when the user clicks on net / click on the menu item To do this, I am using the JQuery .css () method to change the background image. When the user clicks on the menu item, then I'm changing the background image for all menu items in all the original menus, and then one is modified by clicking. How can I do this with JQuery? (Image files are all saved in the same way as "Picture / Library / Nuvar shortcuts / Menu etamid.gif" and "/ Picture Library / Navalbar shortcuts / menu item id 'active. Gif") The situation should reflect. Since I dynamically assign the default background image when I use them in PHP, I do not believe that I want to specify the background images due to a lack of CSS for non-active classes, multi-category CSS I can use Although I may be wrong what do I have: $ ('menuItem'). CSS ("background-image", "url (../picture library / navbar

c# - Weird versioning problems with AWS -

I just advanced to Amazon's latest SDK, 2.0.13.2 Unfortunately, I now have a problem with Amazon .3.Model.PutObjectRequest class . This denies a timeout property if I have Amazon.S3.Model.PutObjectRequest title Rewest = new PutObjectRequest () {Baltimania = Bucket name , Key = newFileName, ContentType = packet.ContentType, InputStream = new MemoryStream (packet.Buffer)}; Then all work well, but as soon as I add to the title . Timeout = new timespan (0, 15, 0); This still compiles , but the runtime method was not found: 'weird Amazon .3.Model. PutObjectRequest .set_Timeout (System.Nullable`1) '. What is particularly frustrating is that if I comment on the line which sets the timeout, and can step in all this set method, then I Amazon Click on .S3.Model.PutObjectRequest , press F-12 and look at the type of metadata and clearly view the timeout property. However, if I try to use it anytime, or even try to see the property in the Quick clock window, th

java - Cannot use JSP property group configuration with jetty-runner 9.1.4 -

I am trying to establish a new development machine. I usually use Jetty-Runner to run my application. .war file (this is a strips-based app) The latest version of me (1.9 4), I think that when I try to run my .war file, I get an exception: java.lang.IllegalStateException: No such subnet: __org.eclipse.jetty.servlet. JspPropertyGroupServlet__ I actually have a & lt; jsp-config & gt; is my block in web.xml : If I comment on it, then I do not get an exception. I really want that proposal because I do not want to manually add it to every file. Of course, I am doing the way I have always done that, where "always" is a very long time. Is there a new way of doing that stuff to include a JSP proposal, or is there something wrong with my JET runner or what? edit - I did not make it clear that I am a web.xml , for a long time the JT-runner (old version) With it, this is happening to me with the new JT-runner version (I have not tried an old man,

ruby - How do I run a standalone program in OpsWorks? -

I'm sure there is a simple answer. Our program is an executable file, and we have a shell script wrapper for it. Opsworks captures a distribution zip file from S3 We are trying to open it and bin / run_server.sh To run a script file located in I am currently down the path of writing a custom deployment recipe; Type "Other" on the one layer. Here's my attempt: include_recipe 'deployed' node [: deployed]. Application, Posted in | Suppose that the zip file has been extracted at this point, the # and CWD content extracted is "run the server" command 'bass bin / run_server.sh' action: run end end P> this Failure to claim that he can not get bin / run_server.sh . Thank you in advance.

function - Return Statement in Excel VBA -

So, I'm having trouble dealing with my video coding return statements, and I do not understand why the reason What is this . I have made a return statement, as I have ever made, yet it seems that I have some mistake. Can anyone tell me where I made a mistake in the statement given by my function? Public Fees GetPay (Hours, RegHours, Othours, PayRate, RegPay, OTPay) Double Constellation MAX_REG_HOURS Integer = 40 Dim as double as Hours & gt; MAX_REG_HOURS then RegHours = 40 OTHours = Hours - MAX_REG_HOURS or RegHours = Hours so RegPay = CDbl (txtPayRate.Text) OTPay = CDbl (txtPayRate.Text * 1.5) returnRP = RegThours + (OTHours * OTPay) termination Function Your task is also very complex, for example There is a calculation in the author function, so no input is required because it will be overwritten PayRate is unused RegPay and OTPay are written without the function The RegHours function is counted in As you can see, you can make the function c

ruby - AFMotion Post with Token -

I have found a client in a Sinatra / Warden Remote API and Ruby Motion. How do I post with the authentication token and user object for initial registration (from customer)? It's so low, not so much, I know. Basically I need to pass the remote API and a user object through a token def register_user (user) @client = AFMotion :: Client.build ("http: // local host: 9393 / register ") is the title" Accept "," application / json "request_serializer: json response_serializer: json end-end help You can change the line that starts the @client object in its own way @client = AFMotion :: Client.build ("http: // localhost: 9393 /") When you want to do a post request, you must " @ client.post ({: 'token here', user: token 'user can register here'} ',' register '). Do the results. End of the result You can get more information.

c# - Make actions on form1 close -

I was trying to save a file at the end of the program private void Form 1_formclas (Object Sender, FormClosedEventArgs E) {tabelaEC0.WriteXml (current directory, XmlWriteMode.WriteSchema); Application.Exit (); } In this case it does not save the file (tried with any other button and worked perfectly) then the problem is form 1 closed, any signal? Update: :: I have created an extraordinary method to save the file, such as Public Weed Funfocus (EventErgues E) {table .WriteXml (@ "C: /file.xml", XmlWriteMode.WriteSchema); } And so I'm hooking it on FormClosing Private Zero Form 1_formCalling (Object Sender, FormClosingEventArgs e) {Form1.Close () + = funcaofecho; } I believe how this should have been done, but there is no sign in "item reference"? You are using Telivecy, which I think is a control in your form. If this is the case then the control has been destroyed because this form has already been closed when that incident is removed

Quantifier for Ruby regex grouping -

I need a rabies reggae so that 11 groups can be separated by underscores, but more than 11 underscore. I need constant underscores to be understood as a "blank" group even though I have so far that & gt; 11 underscore points: / ^ (dw | lat) \ _ (. *) \ _ (Track-search | text-ed) \ _ (. *) \ _ (. *) \ _ (. *) \ _ (. *) \ _ (. *) \ _ (. *) \ _ (. *) $ / here Some examples are test cases. must match: lat_march madness update_Paid-search_subscription-one_google_ncaa-tournament_ {adid} _p__March172014_2 But not match: < / p> lat_los angeles_Paid- search_nami-media_adn_jgYno0gS7yYjNq8OT7n_LcgTN9nt6vrmbC9qlcp __- 21150_49996_7006_April22014_4 Change your (. *) to ([^ _] *) . From this but _ will create a character square, and it will match 0 + times. In this way, the code is counted as the _ capture group, but only one delimiters, besides, _ is not a reserved character, therefore it is not necessary to avoid it. Last: ^ (dw | lat) _ (

postgresql - Can't access record id field -

I have imported an Excel spreadsheet containing one-to-one relationship entries. For example, The legal name is, but in many places named DBA for each place. There is a record for each DBA place I am filtering through input data which is making a single entry for each legal business name in a table and making a business location entry for each DBA place. I am trying to manually assign a record ID for a legal business in the records of each of our DBA business location. Here's my problem when I try the following: @ dba_business.legal_business_id = @ legal_business.id The following error is found. <# 1; Legal Business :: ActiveRecord_Relation: 0x007fe1f2cc3770 & gt; I tried on the following, but blank @ field dba_business.legal_business_id instead of recording the record ID value. DBA_business.legal_business_id = @legal_business Legal_Business has_many: dba_business and DBA_business: is_to have been established with legal_business. I debug to see the at

io - Unknown output in C++ -

I have strange output from code here I have a prime iterator: #include & lt; Iostream & gt; #include "PrimeIterator.cpp" int main () {Prime Eater Prime (9); Std :: cout & lt; & Lt; "Prime number" & lt; & Lt; Prime.getN () & lt; & Lt; "Is" & lt; & Lt; Prime.value () & lt; & Lt; Std :: endl; Std :: cout & lt; & Lt; "Next Principal Number" & lt; & Lt; "Is" & lt; & Lt; Prime.next () & lt; & Lt; "..." & lt; & Lt; Prime.next () & lt; & Lt; "..." & lt; & Lt; Prime.next () & lt; & Lt; Std :: endl; Return 0; } If I give prime.net () output to a raw, I get weird results: the next prime number is 37 ... 31 ... 29 but not 29 .. 31. ..37 (((If I put them in 3 different crude then everything is OK. Please C ++ gives me why C ++ returns ... My primer: # include & lt; iostream & gt; # MAXPRIME defined

java - non-static method cannot be referenced from a static method -

I am trying to print my high rights object, but it does not leave me ... telling non- Static method can not be referenced from a static method I basically want to print all the values ​​by adding it ("AAA", "AACCA" .. etc). import java.util. *; Public Class Ex8 {Public Zero Printhargers (Array List & Lt; Securitates & gt; A) {For (Security Ratings M: A) {If (Highest Rights Of M) {System.out.println (HighRights.getName ()); }}} Public static zero main (string [] a) {ArrayList & lt; Safety Rights & gt; Ma = new arreelist & lt; Security & gt; (); Ma.add (new highlights ("AAA"); Ma.add (new highlights ("AACCCA")); Ma.add (new high ratings ("B")); Ma.add (new highlights ("AAAAA"); New Ex8 () PrintHighUsers (ma); }} High Rights Class: Public Class Highlights Raises Safety Rivies {Name of Private String; Public Highlights (String En) {Super (true); This.name = n; } Public string getName () {return

javascript - The D3.js graph freezes when sending another XMLHTTPRequest to the servlet -

मुझे D3.js में उत्पन्न नोड्स के साथ एक समस्या है। मेरे पास HTML फ़ाइल है जहां फोर्स निर्देशित ग्राफ़ देखा जाता है, और एक सरल जावा सर्वलेट प्राप्त करने के लिए प्राप्त करें ब्राउज़र से अनुरोध के माध्यम से XMLHttpPrequest । जब मैं पाठ क्षेत्र में कुछ भी सम्मिलित करता हूं और HTML पृष्ठ पर "ढूंढें" बटन पर क्लिक करता हूं, तो मैं Servlet को एक XMLHttpRequest भेजता हूं और एक एकल डेटा को एक के रूप में दर्शाता हूं नोड में D3.js । यह ठीक से काम कर रहा है जब मैं पाठ क्षेत्र में एक ही पाठ या किसी अन्य पाठ के साथ "ढूंढें" बटन पर फिर से क्लिक करता हूं, तो उत्पन्न नोड अब और नहीं हिलता है। यहां मेरा कोड है: HTML कोड: & lt; html & gt; & Lt; शीर्ष & gt; & Lt; मेटा http-equiv = "सामग्री-प्रकार" सामग्री = "पाठ / html; वर्णसेट = यूटीएफ -8" & gt; & LT; शैली & gt; .node {स्ट्रोक: #fff; स्ट्रोक-चौड़ाई: 1.5px; } .link {stroke: # 999; स्ट्रोक-अस्पष्टता: .6; } & Lt; / style & gt; & Lt; title & gt; शीर्षक

github - git filter-branch remove all submodules from my repo -

Hello, I have successfully rewritten the history and I have given the 5 coordinates to git filter-branch -f - The only remaining issue is the submodules, I am doing << p> / p> subproject commit & lt; hash & gt; And I want to completely add those subules to my GIT history, how can I complete this? I did it with git filter-branch -f Is - rid of empty -to-filter 'git submodule deinit -f git rm-rf lb & amp; RM-RF Ob Search assuming that all my submissions were located in the lib directory , assume that the lib directory < / p>

c# - Programmatically retrieve the site URL from inside an Azure website -

Azure websites have "site URL" provided by Ezur, such as mysite.azurewebsites.net. Is it possible to get from within (i.e. ASP.NET applications)? There are several properties in the environment and the HTTPRTime class, which have the name of the website (like "MySite") so that it is easily accessible. Things are getting complicated when not by default, but eg The site's staging slot is accessed (including sites such as MySite-Steiging.JourWebsites). So I was just wondering if this site is a direct way of getting the URL directly, if not, by using any alleged class to get the name of the site and then the site slot address > Edit (2/4/16): You can get the URL from the app settings / Ryavarnwartniy Vebsaitup . If you have a setup, this will also give you a custom hostname. There are some ways you can do that. 1. By HOSTNAME . Header This is valid only if the request & lt; SiteName & gt; is killing the site using .azureweb

How can I insert links into HTML using javascript without the limitations of document.getElementById -

First of all, tell me what I'm trying to do. I currently have 8 short websites that are similar to header images and href links. Every time I need to update these pages, I am looking for a way to reduce the maintenance and efficiency of human error. For example, say I have 2 links pointing to the state-specific login page. & lt; a href = "https://www.mypage.com/studentLogin?stateId= WA" & gt; Student Login & lt; / A & gt; & Lt; a href = "https://www.mypage.com/teacherLogin?stateId=WA" & gt; Teacher Login & lt; / A & gt; In the past, I am making copies of updated HTML, then searching and replacing "State ID = WA" for "State ID = MA" I started to see if I could make the URL using Javascript and add some 2-digit State ID using some functions. In this way, I only need to update the code, then copy it and replace the two-digit state ID in one file in one place. I have made progress using the follow