Posts

Showing posts from April, 2010

sql server - Select Distinct Records from two tables -

Two tables (column ID, mastertable with name) with columns (MasterID, status) I join two tables and choose dbo.testMaster.Name, join dbo.testDetail INNER from testDetail.Status dbo.testDetail.testID = dbo.testMaster.ID This shows the following results: Deal with Khalid Khalid Khalid with False Hameed Fail Hamid with Maooke I used to buy Khaled A. If he has been given a "value" value, then he should leave aside and fail for it. For Hamid we have two records but should go back to withdrawing priority so that he should fail for Hameed. Mike has only one record, so he should choose his record. Post-text "itemprop =" text "> select dbo.testMaster.Name, case (case testDetail.Status when 'close' then 1 when 'WithDraw' then 2 when 'unsuccessful' then 3 End) when 1 'pass' 2 then 'tooth' occurs when 3 'unsuccessfully' end up with dB test.detail INNER JOIN dbo.testMaster ON dbo.testDetail.testID...

python - UTF-8 and os.listdir() -

I'm having trouble with the file "ş" character (this is \ xC8 \ x99 UTF-8 - COMMA with Latin small letter S). I am creating a ş.txt file and assign it to os.listdir () . Unfortunately, os.listdir () returns this as s \ xCC \ xA6 ("s" + COMMINING COMMA below) and my test program (below) Fails It is on my OS X, but it works on a Linux machine. Any thoughts that cause this behavior exactly (both environments are configured with LANG = en_US.UTF8)? Here is the test program: #coding: utf-8 import os fname = "ş.txt" with open (fname, "w") f In: files in F files: printed "found" second: print "did not get" Instead of their composite form, you will have to return the filenames to the normalized NFC combined generalized form: import unicodedata files = [unicodeedata.normalize ('NFC', f) oslistdir ( F). ']] This process as Unicode ; Otherwise you want to decode BestStasting in Unicode. ...

instruments - accessibilityIdentifier gets lost on real iOS device -

I have participated in a strange problem with devices and automated testing through UIAutomation, for some reasons it seems that something Accessibility identifiers for buttons are lost while running on a real iOS device, but not in the simulator. The simulator runs on the device through different results: var message = target.frontMostApp (). navigation bar (). Button () [3] .name (); Uialogger.logDebug ("msg:" + Message); I get "msg: null" on the simulator at "msg: nav arrow right". Is the compiler potentially the Accessibility Identifier a real device because it is not used directly for anyone other than UIUutomat? Any sign you are welcome

shell - Comparing numbers in Bash -

I am starting to learn how to write scripts for the bass terminal, but I can not compare how to compare To work properly I believe that this is very basic for many of you, I can not find the answer to my question anywhere (or at least I do not fully know what to find I'm using the script): echo" enter two numbers "; Read a b; Echo "a = $ a"; Echo "b = $ b"; If [$ a \ & gt; $ B]; Then echo is "bigger than A B"; The second echo "B is more than one"; Fi; The problem I have is that it compares the number to the first digit, 9 is greater than 10000, but larger than 19. How can I convert numbers into one type? To compare the truth? I know that this is probably a bit nervous, but any help would be appreciated! postprice = itemprop = "text"> In the Bash, you should check in: if ((A and G; b) ); So do not support (()) for the POSIX shells -lt and -gt . if ["$ a" -gt "$ b"]; Then .....

php - Arabic text not displaying in datatable -

Image
I have Arabic text in the database table. I need to bring it and display it in the dataset. But empty result I can include Arabic text Thanks in advance. My controller function is given below. The file title contains Arabic text. $ this-- gt; Datatables-> Select ('pfile_print_media_id, clients.client_id, full_name, publication_name, page, pfile_date, file_title, image, size, total, clients, query, market_name') - & gt; From ('pfile_print_media'); $ This- & gt; Datatables-> Add_column ('title', '$ 1', 'get_print_pfile (pfile_print_media_id, FILE_TITLE)'); } Echo $ - THIS- & gt; Statistics-> Generate (); Here is my watch page var oTable = $ ('# Example'). DataTable ({"bProcessing": true, "bServerSide": true, "SAGXSOSRS": 'end lieutenant; PHP echo base_URL;; & gt; index.fp / file / ajax_pfile', 'BJQUUUUUUUUUUUUUPUUI': true, SPGNation Type: "Full_Nezage...

html5 - Launching popup on left overlay panel in jquery mobile -

I am working on a mobile app. I have a panel and a popup, when I click on signup, the left overlay panel Should popup to launch on should not get me where I am being worng please give any suggestions Thanks in advance. Below is my code. & lt; Div data-role = "page" data-theme = "one" id = "demo-page" class = "my page" & gt; & Lt; Div data-role = "panel" id = "mypanel" data-position = "left" data-display = "overlay" data-position-fixed = "true" & gt; & Lt; Div data-role = "header" data-theme = "a" data-condition = "full" & gt; & Lt; H1 & gt; Settin & lt; / H1> & Lt; / Div & gt; & Lt; Div data-role = "content" & gt; & Lt; Div class = "content primary" & gt; & Lt; Ul data-roll = "list view" data-icon = "wrong" data-theme = "A" data-dividitem = ...

android - How to record video in front camera using surfaceview -

I am going with the front camera of the camera to record the video with the front camera, but the reason for the error Tells me that because failed to open but could not be able to recover I had declared all the permission in the manifest but it is facing the camera and records the video, I do not know where it is wrong. If anyone knows about this, please help me with your friends. You should find the number of cameras in your device. See this: And this:

c# - Include Custom Details While Exporting Rad Grid to Excel -

I am using the telerelic red grid. It provides functionality to do this, I want to make some modifications, while this data is being exported. I want to include the details of the company (such as logos and some other custom details which are not in the red grid) in the exported file. Is there any possibility to do this with the Rad grid export function? Like to overwrite the function, where can I write these custom data in the exported Excel file? What is the best way to do this? Please suggest. Try to do something like this: Adding ideas is something to the export method Simple HTML in the grid before calling: Copy the code from the linked thread :) Radgrid 1 Mysteratal view. Control. Add (New Literal Control ("& lt; span & gt; & lt; br / & gt; Description: Selected data using dates between January 1, 2011 to September 1, 2011 & lt; / span & gt;" )); RadGrid1.MasterTableView.Caption = "& lt; span & gt; Exported by: ...

ios - TouchID for Multi User App (Swift - Obj-C): IOS8 -

I plan to develop multi user IOS applications. I was thinking of using TouchID as an optional certification, can it be done for multiple users? These steps are for my app to do this: The user registers their data (name - surname - username - password) Username and If the device supports TouchID, then the user will be asked what he wants to enroll. These steps are reproduced for every user who wants to register on the application Is it possible to achieve this? Have you got better ideas? Thanks in advance.

logging - Reading File Direction/Path Java -

I want to read the path of a file I have found that all the class files are about how to read the file and how the file is saved in this direction. But what I want is a way that shows me the path in such a way: C: / User / Admin / Document / Netbusiness Project / HashemMap DOMO / Header template so that I can save this direction in an XML file. I hope it is understandable that what I mean, I can write something that anyone can understand. I have tried: Kleinpath () {classloader ClassLoader = XmlLoader.class.getClassLoader (); File segment root = new file (classLoader.getResource (""). GetPath ()); Return squared Root.getPath (); } So far, but as I said, it does not give me the necessary information to me. What is the method you are looking for? get public stringAssolute path () The full pathname string of this abstract pathname. If this abstract pathname is already full, then the pathname string is returned in the same way as the GetPath ()...

r - Symmetric binning around 0 -

मान लीजिए मेरे पास एक वेक्टर है: vec.test & lt; - c (-1.2) , -1, -0.9, -0.5, 0, 0.5, 0.9, 1, 1.2) मैं निम्नलिखित डिब्बे में इसे बन्द करना चाहता हूं: (-2, -1), (-1, 1), [1, 2] क्या यह निम्न के बजाए ऐसा करने का एक और अधिक सुरुचिपूर्ण / स्वचालित तरीका है? कट (vec.test, सी (-2, -1 +। मैचिन $ डबल। एपीएस, 1-मैचिन $ डबल। एपी, 2), दाएं = TRUE) vec.test & lt; - seq (- 2, 2, द्वारा = 0.5) नाम (vec.test) & lt; - कट (abs (vec.test), c (-1, 1, 2), दाएं = FALSE, लेबल = FALSE) * (-1) ^ (Vec.test & lt; = -1) # & lt; NA & gt; -2 -2 1 1 1 2 2 & lt; NA & gt; # -2.0 -1.5 -1.0 -0.5 0.0 0.5 1.0 1.5 2.0

sql - MYSQL select all children (and their children) based upon root parent -

मेरे पास एक टेबल सेटअप अप है (कोर्स की सरलीकृत) कोड | डेक्स | माता-पिता | लेलेक्स ----- + ------------------ + --------------- + -------- FF00 | फल | जड़ | 0 वीवी 00 | Veggies | जड़ | 0 एफ 001 | साइट्रस फलों | FF00 | 1 V001 | जड़ें | वीवी 00 | 1 एफ 002 | संतरे | F001 | 2 एफ 003 | नारंगी | F001 | 2 एफ 004 | अंगूर | F001 | 2 एफ 005 | नींबू | F001 | 2 वी 002 | गाजर | V001 | 2 V003 | बीट्रोट | V001 | 2 V004 | मूली | | V001 | 2 एफ 101 | बिग ऑरेंज | F002 | 3 एफ 103 | छोटे ऑरेंज | F003 | 3 मैं क्या हासिल करना चाहूंगा, फलों से संबंधित सभी नोड्स का चयन करें, इसलिए मैं एक डेटा सेट के साथ समाप्त होता है जो दिखता है कोड | डेक्स | माता-पिता | लेलेक्स ----- + ------------------ + --------------- + -------- FF00 | फल | जड़ | 0 एफ 001 | साइट्रस फलों | FF00 | 1 एफ 002 | संतरे | F001 | 2 एफ 003 | नारंगी | F001 | 2 एफ 004 | अंगूर | F001 | 2 एफ 005 | नींबू | F001 | 2 एफ 101 | बिग ऑरेंज | F002 | 3 एफ 103 | छोटे ऑरेंज | F003 | 3 मैंने निम्न MYSQL की कोशिश की लेकिन यह सिर्फ मेरी पूरी तालिका क...

cmd - concatinating .csv files column wise -

I have two CSV files, I want to add them to the wise intelligent. I found that the given commands will not work in Windows Command Prompt. Please help. Thank you for making my life easier. Ideally, you can use the Unix "Paste" command to do this. With the install, you can use the paste. However, I gave it a try and as it is still UNIX, it does not like the CRS in the file i.e. Unix uses LAMO only, uses Windows CRLF and Paste so that you can return the middle lines with the end carriage Will keep confidential reports. It will not really take much effort to write a paste.exe, I'm sure that someone should have already done that -. But I could not find one There is no single command line (answer to this with windows using a Windows version of awk or paste or maybe sed ...) So ... this is a bait file for you, this past parameter can handle multiple input files with the output file name. Setting the setlocal tmpFile =% tmp% \ joiningTxt-% random% if x% 3 wor...

linux - Bash, Remove empty XML tags -

I need to help a few questions using the Bash Tools Exempt XML tags from want file: & lt; CreateOfficeCode & gt; & Lt; OperatorId> Ve & lt; / OperatorId> & Lt; OfficeCode & gt; 1234 & lt; / OfficeCode & gt; & Lt; CountryCodeLength & gt; 0 & lt; / CountryCodeLength & gt; & Lt; AreaCodeLength & gt; 3 & lt; / AreaCodeLength & gt; & Lt; Properties & gt; & Lt; / Properties & gt; & Lt; ChargeArea & gt; & Lt; / ChargeArea & gt; & Lt; / CreateOfficeCode & gt; To be created: & lt; CreateOfficeCode & gt; & Lt; OperatorId> Ve & lt; / OperatorId> & Lt; OfficeCode & gt; 1234 & lt; / OfficeCode & gt; & Lt; CountryCodeLength & gt; 0 & lt; / CountryCodeLength & gt; & Lt; AreaCodeLength & gt; 3 & lt; / AreaCodeLength & gt; & Lt; / CreateOfficeCode & gt; For this, I did this with this command sed...

vb.net - Labelling Axes in Visual Studio Graphs -

I have tried to use the command: Graph1.Series ("Series1 "). Numbers to label x axis on the graph (1). Axislabel = "X axis label" The same instructions should apply in the Y axis. Unfortunately, the instruction generates the following error: Argument AutoForce installation was reconstructed The index was out of range was non-negotiable and should be less than the size of the archive. What is wrong with my instructions? How do I work with error? If you want to add the axis to the title, then you need to modify the series series. represents the data point used by the series chart, but you can use it to set an axis label for the whole series or individual digits. It seems that your error table is not due to a data point in the table. There is a difference between two: chart 1. Series ("Series 1"). Axis label = "Series label" chart 1. Series ("Series 1"). Points (0). Axislabel = "point label" char...

joomla - Can't find JED Submit Extension Button -

I registered, the selected category was in depth because there is no sub category but no one is submitting, adding Or upload button. Can anyone tell me what I could do wrong? JED has disabled extension submissions (October 31st) until they are new components All existing extensions are migrated to / on the site. It is expected that it will be completed on November 7. For more information, read one of the following: Hope it helps

c# - Words in transparent PNG have jagged edges -

I created an app that is transparent to display overlays for users to tap using WPF and C # Uses PNGs. However, there are weird jagged edges around words, would it be more than the C # / WPF limit or Photoshop problem? The screen resolution is 720p, the app runs on Win7pro. Screenshots: There is a problem with seeing the image against a black background on my phone, I see a single fringe, make sure that you make the text on a transparent background (i.e., do not remove the background with a magic wand ) And avoid a full alpha channel (32-bit PNG).

ios - unexpectedly found nil while unwrapping an Optional value from NSMutableString -

I can not get around this error when I run this function do I get a fatal error. Fatal error: unexpectedly, while the bottom is an optional value unwrapping minus the function: function changeSelectedFontColor (FONTCOLOR: UIColor) {go selectedRange: NSRange = self.textView.selectedRange bridesmaid currentAttributesDict: NSDictionary = TextView .textStorage.attributesAtIndex (selectedRange.location, effectiveRange: zero) var currentFont: UIFont = currentAttributesDict.objectForKey (NSFontAttributeName) to italFont = as UIFont [NSFontAttributeName: UIFont (name: "Georgia italics" size: 18.0)] bridesmaid currentColor: UIColor = currentAttributesDict.objectForKey (NSForegroundColorAttributeName) as UIColor bridesmaid currentBGColor: UIColor = currentAttributesDict.objectForKey (NSBackgroundColo RAttributeName) as CurrentUnderlinedText on UIColor: UIFont = currentAttributesDict.objectForKey (NSUnderlineStyleAttributeName) UIFont as currentparagraphStyle: NSMutableParagraphS...

javascript - CouchDB view collation issue -

I have an issue with your couchdb view the first few code: Here is the view free: {map: function (doc) {if (doc.type == 'application') {throw ([doc._id, 0], doc)} else if (doc.type == 'client') {throw ([doc._id, 1], doc)} else if (doc.type == 'release') {throw ([doc._id, 2], doc)} else if (doc.type == 'Department') {throw ([doc._id, 3], doc)} else if (doc.type == 'ticket') {if (doc.assigned & amp ;! & amp; doc.priority) { emit ([doc.applications, doc.clients, doc.release, doc.departments, 4], doc)}}}} construction applications, customers and departments usually Saran Quantify When I view say, I find this as a result { "TOTAL_ROWS" :. 9, "offset": 0, "rows": [{"id": "c36cb356c3aa10617ee687ae930010b5", "key" [null, null, null, null, 4], "value": {"_ id": "c36cb356c3aa10617ee687ae930010b5" , "_rev": "1-46 c0118a029d2adefc...

visual studio 2013 - TFS separate branch from parent -

Image
We have a project P1 in TFS. I have created a branch of P1, now the branch needs to be separated from its parents and should go alone as a single project P2. We do not need to have an initial history for P2. How can this beolation be done? In the source control window, select the branch that you want to 'orphan'. Geto File> Source Control> Branches and Merge> Responsive ... Then select No Parent in the dialogue and click on Reparent

debugging - Display enum name instead of value in Visual Studio 2013's debugger -

Is there any possibility of showing anonymous value instead of their int value in Visual Studio Debugger (Local / Watch)? Let's say you have an enum: color of color (red, green, blue); Values ​​between 0-2 are displayed in the VS debugger clock window. How to get any ideas? I am using native C ++ (Visual Studio 2013).

javafx - Customizing TreeCells using cell factory -

I am trying to represent TreeCell like this: I have tried to read on cell factories and I know that I have to use this functionality but how do I set such graphics for all trees of trees? The image is stored in .fxml-file as an HBox. Thank you very much :) PS is not necessarily looking for code in response, this is a general description of how to do it or why it does not work. The code I tried to have is the fxml file in the same folder as the file. This is the error code I received: Exception in the thread "JavaFX application thread" java.lang.NullPointerException: Location is required. @ Override public zero update item (string item, boolean empty) {super.updateItem (item, empty); {This.hBox = (HBox) FXML Loader Load (GetClass (.) GetResource ("/view / TreeCell.fxml")); } Hold (IOException e) {System.out.println ("this does not work"); E.printStackTrace (); } If (item! = Null) {set graphic (this.hBox); } Other {setgraphic (empty); }}...

java - Thread synchronized block with Class itself -

I think that creating a synchronized-block following use as Thredmolik class. Class is unique but when I have prepared several threads with multiple threads, get () method I have come to know that many inconsistent states have been created. So why is not the thread synchronized with ThreadMyClass.class example? public Thredmoylclas {public Object get () {synchronized (ThreadMyClass.class) {/ object returns received}}} public static final Object lock = new Object (); When I ThreadMyClass.class code> has lock object, then everything is working fine. Updated: Here's my entire code piece The example building block is applied more than once. public static XMPPInterface getInstance () throws XMPPException {if (instance == null) synchronized {(XmppInterface.class) {if (instance == null) {// Create an instance}}} Return example; } Are synchronized Well, you class There were no examples, which was similar to a stable synchronized method You can use t...

javascript - Jquery selecting text between parentheses in an array -

I have based on values ​​selected from multiple selection boxes: Duration 03 (-1000), 1 (+1000), value (+3000), 1 (+1500), -, -, -, -, -, -, -, -, -, - - -, -, -, - , -, -, -, -, - separated by commas, as you can see, some values ​​have text in parentheses. I need to take these values ​​in brackets and sum them, so we should keep the + and - characters. Value (+1000), (+3000), (-1000) represent a change in value: + indicates that the product will be more expensive - the product's representation will be cheaper. The result should be a number that indicates the change in value - e.g. 1500 - The product will cost more than the original value, or eg. -3000 - The product will be cheaper. Thanks in advance. Tom If you are not great with regular expressions then I have created a version that is not "usable" It makes them look more like this more readable and easy to see what's going on and how it is doing. You should not use regular expressions to say no...

linux - Origin of message from Xlib: "Killed" -

I am using ImLib2 to get images from an Xlib application periodically; And sending fake keys in the application window using libxdo, after about 10 minutes, my command line program ends with the message "Killed". Am I new enough for X programming? Does anyone know what "kill" message is being sent from? Do you launch your command line with a programmable "& amp; Put it in the background? If so, you will have to do "NOUP" before the command. Handling your program is called grab.sh, you should call it this way: NOWup grab.sh & amp; If you do resonate TMOUT $ TMOUT see more is TMOUT 600 So your terminal session is where you run the command, after the inactivity of $ code $ TMOUT , kill your process after . The newcomputer command will prevent you from killing your process.

wso2is - Howto use WSO2 IS SOAP service call targeting only secondary user stores -

How can I target WSO2 IS soap services only against a secondary user store? For example, I have successfully used the "RemoteUserStoreManagerService" SOAP service to list users. How can I use the SOAP service to target only my secondary store? configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem (empty, empty); String service endpoint = SERVER_URL + "RemoteUserStore ManagerService"; RemoteUserStoreManagerServiceStub adminStub = New RemoteUserStoreManagerServiceStub (configContext, serviceEndPoint); Service client client = adminStub._getServiceClient (); Option option = client.getOptions (); Option.setProperty (HTTPConstants.COOKIE_STRING, blank); HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator (); Auth.setUsername (USER_NAME); Auth.setPassword (password); Auth.setPreemptiveAuthentication (true); Option.setProperty (org.apache.axis2.transport.http.HTTPConstants.AUTHUSTICATE, auth); Option...

ubuntu - 404 Error for Laravel Blade view in new scotch.box -

So I have this entire Laravel web app already complete and a bug on my personal Mac and my company's local server. is not . I have a working Mac which I pulled down this project and used the Scotch box as my white server. It pulls the view of the house and works with all the functionality controllers, but when I try to navigate to another view, it will be 404. I know the code is right because it is working on three other machines. What was missing from the fact that 404 causes this new machine? not found The requested URL / login was not found on this server. contact.dev Port 80

Oracle SQL MAX function not returning max on VARCHAR to NUMBER conversion -

I am trying to get the highest system number from the set of rows from system number SYS First, the selection will be generated from table SYSTEM_ID , {SYS901, SYS87, SYS3024 .....} this query I am trying to use: select TABLE to MAX (REPLACE (SYSTEM_ID, 'SYS', '')) possible The results are {901,87,3024,20,1} this 901 value where me 3024 I hope to see the value. I think the problem is that the field is a VARCHAR not a number . I do not know how to solve this problem. select maximum (TO_NUMBER (REPLACE (SYSTEM_ID, 'SYS', ''))) From the table; Use TO_NUMBER to convert VARCHAR2 to others Oracle compares the stars using its ASCII code ('9'> '3')

navbar - How to change the text in renderers.ph in the breadcrumbs, moodle 2.7? -

I am trying to convert home text to font fonts in Navbar's breadcrumbs (Moodle 2.7). I override core_render.php using a file from the shelles topic. I have started to change after the breadcrumb array [0] ; That's half of the work is replaced by the icon but href & lt; A & gt; I do not expect the tag's attributes; It follows navigation, no home URL. I do not know where this link is made. How can I use the FontAvonne icon when placing a home URL? Here is the code: theme_bootstrapbase_core_renderer theme_bootstrapbase_core_renderer extends theme_bootstrapbase_core_renderer {/ * * it render navbar * uses bootstrap compatible html * / public function navbar () {$ Items = $ this- & gt; Page-> Navbar-> Get_items (); If (right_to_left ()) {$ dividericon = 'fa-angle-left'; } And {$ dividericon = 'fa-angle-right'; } $ Divider = html_writer :: tag ('span', html_writer :: start_tag ('i', array ('class' = ...

php - Symfony: display image in update view -

I have created a form that has an input type file field. I want to display the attached image in the update action. However, in insert mode I only want to display the input type file field. These are the functions that make up my custom form: public function buildForm (FormBuilderInterface $ builder, array $ option) {$ creator - & gt; Add ('name', 'text', array ('atri' => array ('class' => form-control')) -> Add ('photo', 'file', array ('data_class' = & gt; null, 'required' = & gt; wrong, 'property_path' = & gt; getFoto ())) - & gt; SetMethod ("POST"); } Public Function Set Default Options (OptionsResolverInterface $ resolver) {$ resolver- & gt; Set defaults (array ('data_class' = & gt; 'myprocess \ mybandle' unit 'Premio')); } You can create a form type extension to extend the file type type . You have an example on Symphon...

c++ - Running HelloWorld example of itk in Visual Studio 2013 -

I installed it using the answer on my system. Therefore, I have bin, included, Lib, share all the folders in C, Program Files (x86) \ ITK. (Small question: bin subfolder is just "ItkTestDriver.exe" file?) Now, I'm trying to run the HelloWorld example. I have created a project that includes HelloWorld.cpp. #include "stdafx.h" #include "itkImage.h" #include & lt; Iostream & gt; Int main () {typedef itk :: image & lt; Unsigned cum, 3 & gt; image type; Image Type :: Pointer Image = Image Type: New (); Std :: cout & lt; & Lt; "ITK Hello World!" & Lt; & Lt; Std :: endl; Std :: CIN; Return 0; } I have never used external libraries, so I searched the Internet and I followed the following: Projects-> Properties- > Linker-> Input-> Additional dependencies: kernel32.lib; User32.lib; Gdi32.lib; Winspool.lib; Comdlg32.lib; Advapi32.lib; Shell32.lib; Ole32.lib; Oleaut32.lib; Uuid.lib; Odbc32.li...

JavaScript Regex Ternary string -

I am using an esoteric general and filarer with the encrypted user for the desired static assets. Things were working in JS files well for the angular HTML template replacement unless we ran into a case with other operators if ( $ Scope.isPdf) {$ scope.templateUrl = '/ thoughts / results / breaks -detailed.html'; } And {$ scope.templateUrl = '/views/results/breakdown.html'; } After converting things into a line turner operator $ scope.templateUrl = $ scope.isPdf? "/ View / results / breakdowns - longer target not to capture all html issues for replacement string to replace regex / TemplateUrl \ s? [: =] \ S? [']] ([^ "'] +) ["] / Gm Does anyone have a regex which is both values $ scope.templateUrl = $ scope.isPdf ($ Scope.). IsPdf) {$ scope.templateUrl = '} "/" / views / results / breakdown-detail.html ":" / view / Result / breakdown.html "}} /views/results/breakdown-detailed.html ';} Oth...

asp.net mvc 3 - difference between OutputCache and MemoryCache -

मेरे पास asp.net mvc 3 अनुप्रयोग में एक नियंत्रक कार्रवाई है। मेरी कार्रवाई में एक डीबी फ़ेचिंग ऑपरेशन और परिणाम को एक दृश्य में आउटपुट करता है। कैश में कार्रवाई परिणाम को स्टोर करने के लिए मैं आउटपुट कैश एक्शन फ़िल्टर विशेषता का उपयोग कर सकता हूं। मैं डीबी फ़ेचिंग ऑपरेशन के डेटा को स्टोर करने के लिए मेमोरीकैच क्लास का उपयोग भी कर सकता हूं। वे दोनों कैश से डेटा दिखाएंगे। आउटपुटकैच पूरे परिणाम को कैश में संग्रहीत करेगा। मेमोरी कैच क्लास डीबी फ़ेच परिणाम को कैश में संग्रहीत करेगा और एक्शन कैश से डेटा को एक ही नतीजे के लिए एक नया डीबी अनुरोध करने से प्राप्त करेगा। मेरा सवाल है कि कौन से आवेदन करना बेहतर होगा? मुझे एक कटाई है कि आउटपुट कैश एक्शन फ़िल्टर विशेषता अच्छा काम करेगी क्योंकि यह दोनों डीबी फ़ेच परिणाम और एक्शन परिणाम कैश में संग्रहीत करेगा।

jquery - enable/diable submit with checkbox on page load -

इसलिए जब एक चेकबॉक्स क्रमशः चेक या अनचेक होता है तो मैं सबमिट बटन को सक्षम या अक्षम करने का प्रयास कर रहा हूं। डिफ़ॉल्ट रूप से चेकबॉक्स पृष्ठ लोड पर अनचेक किया गया है, हालांकि सबमिट बटन सक्षम है। यहां मेरा कोड है: स्क्रिप्ट: & lt; स्क्रिप्ट & gt; EnableSubmit = function (val) {var sbmt = document.getElementById ("सबमिट करें"); अगर (val.checked == सच) {sbmt.disabled = false; } और {sbmt.disabled = true; }} & Lt; / script & gt; एचएमटीएल: & lt; इनपुट नाम = "सहमत" प्रकार = "चेकबॉक्स" वर्ग = "उपकरण परेशानी फ़ार्म" onClick = "सक्षम करें सबमिट करें (यह)" मान = "स्वीकार करें" & gt; समस्या यह है कि आपका फ़ंक्शन केवल तब ही कहा जाता है जब आप अपने चेकबॉक्स पर क्लिक करते हैं कोशिश करें: & lt; स्क्रिप्ट & gt; EnableSubmit = function (val) {var sbmt = document.getElementById ("सबमिट करें"); अगर (val.checked == सच) {sbmt.disabled = false; } और {sbmt.disabled = true; }} E...

java - android screen as pc touchpad via tcp -

First of all, hi everyone, I am very new here, so this would be my first question: I try to use an Android screen as a PC touchpad through TCP. I came to know how (x, y) coordinates are achieved during touching the screen, but how can these data be transferred in real time through the TCP protocol? I searched around, but there was no answer about it. Sorry for bad english

php - TODO comments in JavaScript files in Zend Studio (Eclipse) do not show in Tasks -

The TODOs in POP files appear in the Show, but javascript files do not have TODOs. To set aside any strange settings in my current project, I have created a new project (both zend frameworks and just javascript projects) and created a .js file with a // TODO comment is. The comment does not appear in my work view I have seen all the obvious things. My preferences-> Javascript-> Verifier-> Task tags are set to identify settings and TDO TDO. I have tried to save these tags and try to save the Eclipse to do no avail. Project-> Builders is set to use 'JavaScript Validator', 'Validation', and 'Script Builder'. Manually clean and reconstructive project has no effect It seems that it also has experience in non-studied studio eLIPS.

python - Why are the results of integer division and converting to an int after division different for large numbers? -

प्रिंट (10 ** 40 // 2) प्रिंट (int (10 ** 40/2)) कोड का आउटपुट: 500000000000000000000000000000000000000000 500000000000000000151893014213501833445376 क्यों विभिन्न मूल्यों? दूसरा प्रिंट () का उत्पादन क्यों दिखता है? अस्थायी 10 ** 40 // 2 का बिंदु प्रतिनिधित्व सटीक नहीं है: & gt; & gt; & gt; प्रारूप (फ्लोट (10 ** 40/2), '.0f') '500000000000000000151893014213501833445376' यही कारण है कि अस्थायी अंक अंकगणित केवल एक सन्निकटन है, खासकर जब आप अपने सीपीयू सही ढंग से मॉडल हो सकता है (जैसा कि फ़्लोटिंग पॉइंट को हार्डवेयर में संभाला जाता है)। पूर्णांक डिवीज़न को कभी भी 10 ** 40 संख्या को एक फ्लोट के रूप में प्रतिनिधित्व नहीं करना है, यह केवल विभाजित करना है पायथन ट्यूटोरियल में Li>

R if statement across columns of data table to populate new column -

डेटा & lt; - डेटा.फ्रेम (दिनांक = सी ("2014-10-28 00: 01: 59.526 "," 2014-10-27 13: 30: 01.526 "), टाइम्स = सी (" 23:59:59 "," 13:29:55 "), घंटा = सी (23,13), मिनट = सी ( 59,29), दूसरा = सी (59,55)) डेटा [, 1] & lt; - as.POSIXct (डेटा [, 1]) डेटा [, 2] & lt; - as.factor (डेटा [, 2]) कक्षा (डेटा [, 1]) वर्ग (डेटा [, 2]) वर्ग (डेटा [, 3]) वर्ग (डेटा [, 4]) वर्ग (डेटा [5]) डेटा दिनांक समय घंटे मिनट सेकंड 1 2014-10 -28 00: 01: 59.526 23:59:59 23 59 59 2 2014-10-27 13: 30: 01.526 13:29:55 13 29 55 मुझे एक नया कॉलम "न्यूडेट" जो कि पीओएसएक्सक्ट डेटा के साथ है, जो दिनांक और समय के कॉलम का संयोजन है, लेकिन अगर घंटे का कॉलम 23 से दिखाता है तो "नेवडेट" के लिए तारीख "तारीख" कॉलम MINUS 1 दिन से तारीख होना चाहिए अन्यथा नहीं "दिनांक" कॉलम से तारीख हो। तो अंतिम आउटपुट होना चाहिए: तारीख समय घंटे मिनट दूसरा न्यूडेट 1 2014-10-28 00: 01: 59.526 23:59:59 23 59 59 2014-10-27 23:59:59 # न्यू डेट = तारीख -...

ios - Automatic height of UICollectionView header according to contents -

मैंने collectionView में एक हेडर ( UICollectionReusableView ) डाल दिया है मेरे स्टोरीबोर्ड इस शीर्षक के अंदर एक UILabel है। लेबल की सामग्री के अनुसार मैं स्वचालित रूप से ऊँचाई कैसे समायोजित करूं?

javascript - Cordova statusbar error - Deprecated attempt to access property 'userAgent' on IOS -

आईओएस परियोजना के निर्माण के बाद मुझे कॉर्डोवा स्टेटसबार जावास्क्रिप्ट त्रुटि मिल रही है मैंने एक साधारण परीक्षण बनाया जो त्रुटि उत्पन्न करता है निम्नलिखित कदम: 1) कॉर्डोबा बनाने के साथ एक नया प्रोजेक्ट बनाएं। 2) कोरोदो प्लेटफार्म जोड़ने के साथ IOS प्लेटफ़ॉर्म जोड़ें IOS 3) कोर्डोवा प्लगइन को जोड़ने के साथ स्टेटबार प्लगइन जोड़ें org.apache.cordova.statusbar 4) कॉर्डोवा इम्यूलेटर आईओएस के साथ एमुलेटर को चलाने 5) सफारी में त्रुटि देखें देव उपकरण कंसोल गैर-नेविगेटर ऑब्जेक्ट पर संपत्ति 'userAgent' का उपयोग करने का बहिष्कार प्रयास। # Statusbar.js: 99 क्या किसी को भी इस त्रुटि को ठीक करने का तरीका पता है? मेरा कंप्यूटर एक मैक है और मैं इन संस्करणों का उपयोग कर रहा हूं। कॉर्डोवा - वर्जन 4.0.0 कॉर्डोवा प्लेटफॉर्म स्थापित प्लेटफार्म: ios 3.6.3 कॉर्डोवा प्लगिन org.apache.cordova.statusbar 0.1.8 "स्टेटसबार"

MYSQL update with sentence if -

The requirement to create a sentence update is as follows: update table1 set Lp = 1, mpe = 0, pe = 0, f2_lp = 0, f1_lp = 0, mvlp = 0 (LP = 1) set LP = 0, MP = 1, pay = 0, F2_LP = 0, F1_LP = 0, MVPP = 0 set LP = 0, MP 0, PE = 0, F2_LP (MAP = 1) set LP = 0, MP, PA = 1, F2_LP = 0, F1_LP = 0, mvpp = 0 = 1, f1_lp = 0, if (f2_lp = 1) lp = 0, mpe = 0, pe = 0, f2_lp = 0, f1_lp = 1, mvlp = 0 if set (f1_lp = 1) lp = 0, mpe = 0, pe = 0, f2_lp = 0, f1_lp = 0, mvlp = 1 if (mvpl = 1) Just repeat this condition again, with the first condition. I usually recommend that you use case , but you might be able to: update table1 set lp = (lp = 1) , Mp2 = (mp2 = 1), mpe = (mpe = 1), f2_lp = (f2_lp = 1), f1_lp = (f1_lp = 1), mvlp = (mvlp = 1); This is not exactly what you want to describe: update table1 set lp = (when lp = 1 then 1 and 0 end), mp2 = (If when lp = 1 then 0 when mp2 = 1 then 1 and 0 end), MP = (when lp = 1 or mp2 = 1 then 0 when mpe = 1 then 1 else 0), f2_lp = (when lp =...

c# - How can I use ASP.Net UpdatePanels to avoid full postback? -

I have a dropdown list called "ddlcountry" which is to update another dropdown list called "ddlCity". How do I use fully UpdatePanel to load just list the second dropdown instead of postback? Li & gt; Because I think I postback property before the drop-down list as "not found" SelectedIndexChanged "event without right" set I & lt tryed ; & Lt; Label & gt; Groupo Gestore: & lt; / Labels & gt; & Lt; ASP: DropDownList ID = "ddlCountry" runat = "server" width = "356px" DataTextField = "Country" DataValueField = "CodCountry" AutoPostBack = "false" OnSelectedIndexChanged = "ddlGrupoGestor_SelectedIndexChanged" / & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; Label & gt; Gestor: & lt; / Labels & gt; & Lt; asp: UpdatePanel ID = "upd_ddlGroup1" runat = "server" Apdetmod = "conditional...

c++ - Are there any performance differences between std::copy and the container's copy constructor? -

std :: copy एक अधिक सामान्य दृष्टिकोण है क्योंकि यह भिन्न मूल्य प्रकारों के साथ कंटेनरों को संभाल सकता है ( जैसे std :: vector & lt; float & gt; से std :: vector :: & lt; double & gt; ) से कॉपी करें। लेकिन जब कंटेनरों दोनों के लिए वैल्यू टाइप समान होता है, तो क्या इससे कोई फर्क नहीं पड़ता कि क्या मैं std :: copy के बजाय प्रतिलिपि कन्स्ट्रक्टर का उपयोग करता हूं प्रदर्शन के बारे में चिंता न करें, वे सभी सुपर बंद होनी चाहिए इसके बजाय: यदि आप एक नया कंटेनर बना रहे हैं, तो प्रतिलिपि कन्स्ट्रक्टर या दो-इटरेटर कन्स्ट्रक्टर का उपयोग करें (यदि अलग तत्व प्रकार)। फिर से एक मौजूदा कंटेनर की जगह (निर्दिष्ट), उपयुक्त असाइनमेंट ऑपरेटर या असाइन करें सदस्य का उपयोग करें। यदि आप तत्वों के एक सबसेट को बदल रहे हैं, तो std :: copy । आप जो भी करने की कोशिश कर रहे हैं उसे सही तरीके से प्रस्तुत करने के द्वारा, आप कंपाइलर को अपने कोड को अनुकूलित करने के लिए सबसे संभावित जानकारी देते हैं (उदाहरण के लिए निर्माण सीधे एक मौजूदा कंटेनर से, यह स्मृति के बारे में बिल्कुल...

jquery - Why doesn't my redirecturl work for my json object in MVC -

I have a problem reaching my last action method in my MVC application. I've discovered errors, and this is probably something simple, but I can not find it. So I have an EXX call that looks like this: $ (document) .ready (function () {$ ("# registerUser") Click (function () {var $ username = $ ("# registerName"). Val (); var $ email = $ (val (); var $ password = $ ("# password"). Val (); $ Ajax ({url: 'Home / Register User', Type: 'Post', Data Type: 'Jason', Data: {username: $ username, email: $ email, password: $ password}, ​​success: function (Response) {window.location.href = response.Url;}, error: function (data) {}});});}); I then get the data in the following action method [http post] Public Action Register Register User (String Username, String Email, String Password) {Verify User, Db Return to Jason (new {url = redirectUrl});} new UrlHelper (Request.RequestContext) Code> Then I want to kill this ver...

openoffice.org - How can I detect inconsistent formulas? -

What does Excel do is a way to automatically highlight incompatible formulas? What do I mean if I have several cells with the same formula (structure) but one of them is a different formula, then Excel will mark that cell because it is a potential error. Is this function available in Oo Calc? I have seen detective functions but none of them are looking for a job. After changing the Excel R1C1 version, incompatible through the comparison of R1C1 formula equivalents for adjacent cells Formula Error If you have numbers in A1: C9 and you have the total numbers for each column in A10: C10, the formula xlA1 is = SUM (A1: A9) , = SUM (B1: B9) and = SUM (C1: C9) but xlR1C1 = SUM (R [-9] c: r [-1] c) (or = SUM (R1C: R9C) if full context is preferred) this Excel To make it very easy to compare one thread with the other, to see if they are equal or not In as R 1 C 1 is seen from that perspective. So simple, in fact, the operation can be done in the form of a fly backgro...

c# - using delegate inside a static function -

I have defined a representative area inside a square and I have a constant function (without the object directly). This should not be done, because the class has no purpose and the representative area is not stable. But it works. If someone can please explain this, I have copied some of my code for reference: class test {representative blank custom del (string s); Fixed Zero main () {CustomDel del1, del2, del3; // it should not work, but is working}} The idea is not to: representative of zero custom del (string S); This is not a field, it is the definition of a representative type Think about it: Private class CustomDel: Representative {// ... } The above code will not be compiled because you can delegate declaring such as , but it is essentially what happens under the hood: CustomDel is a type, only a special one. Now your code needs more sense: CustomDel del1, del2, del3; This only announces three local variables of type CustomDel .

java - How do I POST a collection objects(with scaler attributes) using with Retrofit -

I use "rate build" with interface methods such as java "collections" or "array list" argument Have tried, but always end with 400 or 500 type errors Interface in method SvcApi @ POST (PATIENT_MEDSTAKEN + "/ {patientID}") Public Boolean submitMedsTaken (@Body ArrayList. & Lt; MedicationTaken & gt; medstaken; @ path ("patient ID") long ID); Build APIs by: Private SvcApi symptomManagementService = New RestAdapter.Builder () .setEndpoint (TEST_URL) .setLogLevel (LogLevel.FULL) .build () .create (SvcApi.class); Result: Detect JUnit failure: retrofit.RetrofitError: 500 server error Eclipse Console: ---> HTTP POST http://10.0.0.5:8080/patient/medicationstaken/1 Content-Type: Applications / Jason; Charset = UTF-8 content-length: 63 [["ID": 0, "taken": true, "timeTank": 1415132592031, "checkin id": 2}] ---> end http (63-byte body) ) & Lt; --- HTTP 500 http: // localhost...

xml - extract value of attribute regardless of attribute's namespace -

How can I remove the value of an attribute regardless of the namespace of the attribute (and if the attribute is not in a namespace )? What is XPath to remove the position value attribute from all below the example documents: & lt; A status = 'foo' & gt; & Lt; / A & gt; & Lt; A xmlns: x = "foo-x" x: position = 'foo' & gt; & Lt; / A & gt; & Lt; X: a xmlns: x = "foo-x" position = 'foo' & gt; & Lt; / X: a & gt; & Lt; A xmlns = "foo-y" position = 'foo' & gt; & Lt; / A & gt; Except / * / @ status brings the value 'foo' from the other value, except for those above all except the above Namespace remains in (default namespace properties are not applicable to attributes, so I think the value is successfully brought in the fourth case). What is an XPath I can use for all cases? / * / @ [Trying to local-name () = 'status'] with it fail...

Rails 4 add unexpected param in AngularJS resource post -

While posting an NG-resource on my Rail 4 app, App.factory ('rule', ['$ resource', function ($ resource) {unexpected ultimate} returns $ resource ('/ json / Update: {method: 'PUT'}, delete: {method: DELETE}}}}}] ; Railway route: Namespace: Jason, Default: {format :: json} Resource: Rule End Rail Controller: Class Jason :: Rule Controller & lt; ApplicationController response_to: json def create rule = rule.new (rule_params) AP rule rule.save! If rule.valid? respond_with: json, end def update rule rule = Rule.find (parameter [: id]) rule.update (rule_params) end respond_with rule def rule_params params.require (: Rules) .permit (: business_id ,: raw_value = & gt ; []] End End When I post one in my app like this: $ scope.rule. $ Update (function () {$ location) .path (. '/ businesses / {0} "format ($ stateParams [' id ']));}, SharedMessage.addResponse) .finally (function () {$ rootScope.busy = false; }); The...

html - Aligning responsive Bootstrap images with caption title text -

I have these 3 column images titles, caption ad icons that I could not properly align. Is caption and title text okay according to image width? What is the best practice to deal with these types of materials? Should I align CSS for each screen size? @import url ('http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css'); .urun-text {position: absolute; Background color: RGBA (15, 15, 15, 0.93); Color: #fff; Bottom: 0 pixels; Align text: left; Padding: 20px 15px 20px 15px; } .Ur-title {status: complete; Bottom: 80px; Align text: left; Z-index: 15; Padding-top: 5px; Padding-down: 5px; Color: #fff; Padding-left: 20px; Text-shadow: 0 1 px 2 px rgba (0, 0, 0, .6); Background color: RGBA (194, 0, 0, 0.93); Width: 100%; }. Click - arrow-right {status: complete; Z-index: 16; Color: #fff; Font-size: 10px; Bottom: 0 pixels; Correct: 33px; } & lt; Div class = "container" & gt; & Lt; Div class = "row" & gt; & Lt; Div class ...

linux - Using Webdriver with Chrome -- missing Shared Libraries -

I am trying to run the WebDriver but I am getting the following error: [html] what is yum is there any way of unavailable dependency? Or what's the problem here? This is using Amazon Linux AMI 2014.09.1 ​​(HVM) distribution. Chrome driver can not run by itself You can run it only via code

regex lookahead problems with greedy quantifier -

The following formats need to be supported After 3 digits, three non- After repeating characters 123 123 A 123 a v 123 CER / pre> Invalid format: 123 A 123 AA 123A - when done with a location - I may not have necessarily That is, by making a disturbance with Look-Eyed: ^ ([0- 9] {3}) # - the first 3 digits (\ s (? = [ACERV]) ([ACERV]) # - Cave Allow space followed by ACERV (?!!)? (? = [ACERV] {0,1}) ([ACERV] {0,1}) # - Do not allow repeat letters first?! # 3 - Do not allow the first grade to be repeated (?! \ 4) # - Do not allow second to repeat again (?! \ S) # - Do not allow back space (? = [ACERV] {0}} ([ACERV] {0,1}). [0- 9] {3} $ When the visible (?! \ 4) is added, then this valid format fails to match on 123 A - on quantifiers ( ?! \ 4) to modify (?! \ 4) * or (?! \ 4)? 123 A allows the match but allows it to be repeated 1 or 2 times. Not entirely sure of requirements, it works on your samples # ^ (? I) \ d {3} (?: [] (?: ([ACERV]) [?]? (?! ...

java - Paypal Recurring Payment API - workflow -

To realize recurring payments, I am trying to figure out how to use the PayPal API. I am following this guide: But I do not get this. How it can work In step 1, the payment details are generated, but the value of the interval or payment is not filled with values. Then I get a token and the user has to confirm the payment in step 2. And after the payment of it, in step 3 do I set price and payment in intervals? It really does not make sense to me, does it stop me charging any amount in Phase 3?

How to run a Python file in c++? -

I am trying to run a python file from C ++, a good part of my day. I have tried: . . FILE * file = fopen ("file.py", "r"); PyRun_SimpleFile (file, "file.py"); . . . This only causes crashes of my application. I'm using Python version 3.4. Try Py_Initialize (); PyRun_SimpleFile (file, "file.py"); Py_Finalize ();

admin - Sonata/symfony - parent/child structure setup -

I'm asking for a while. Can not believe there is not a single god who does not know the answer and I am a little disappointed. In Sonata, I can not work with URL structure / pattern / parent / id / children / list. Lot, rather went through bad 4.6. Can anyone explain step-by-step to establish such a structure? I will use the example given in my explanation, a basic post / comment relationship. The parent / child link (one team / multiple lessons link) between your organizations (parent) and comment (child). You must add to the service announcement that adds the addadd group that targets the child's admin service: services.yml Sonata.news.admin.comment: Class: sonata \ newsbundle \ admin \ adminAdmin logic: [~, sonata \ newsbundle \ model \ remark, sonata news bundle: comment admin] Tags: - {name: sonata.admin, manager_type: orm, Group: "content"} sonata.news.admin.post: class: Sonata \ NewsBundle \ Admin \ PostAdmin logic: [~, sonata \ newsbundle...

SQL - How to use PIVOT -

I have a very complex situation where I need to use a PIVOT statement in the vertical table and I will help you I want to ask for my purpose. My objective is to create a stored procedure process with 2 parameters with SQL Server 2008: Year & amp; Based on the following example, this statement 5 will be defined for various work weeks for the year and week; For every week, this statement should be returned to the list of information attached to it The headline of each week should be displayed as following: April 28 - May 04 May 05 - May 11 May 12 May 18 May 19 May 25 May 26 - June 01 The header should contain the number of records / information per week. Value is presented inside "()" notification Transaction_Date --------------- ------- --- ------ Notification # 1 2014-04-28 Notice # 2 2014-04-28 Notice # 3 2014-04-28 Notice # 4 2014-04-28 Notice # 5 2014-04-29 Notice # 6 2014 -04-29 Information # 7 2014-04-29 Information # 8 2014-04-30 Information # ...

image - BioFormats In Matlab -

I am trying to apply the bio-formats to run the matab code with the matab code, which is the process n D2 microscopy determines the images and quantities them. I am trying directly within Matlab converting files from nd2> TIFF format, if someone has a guide, how can I do this, please tell me I tried to use the bfconvert function and it does not seem to work, I have also downloaded bftools.zip and bfmatlab.zip. I am surprised that I have to integrate the matlab code to allow it to work properly with the Java language.

Handling runtime Orientation Changes in android -

In my action I have activity on clicking this button. The app introduces Activity B's activity in B's Cret () I add a piece. Every time a piece is made, it loads a list from an external server using the async task. How can I stop this list on configuration changes? I have seen many solutions, but I am totally opposed to using 'Android: Confidential'. Many suggestions and I have also read about this - will use this piece unit to keep the piece set in the piece (true). I have tried to apply it but I have failed. Detection of several tutorial fragments after orientation uses fragmentbettags, but in my case it always gives blank. Can anyone use maintenance sections to give proper tutorials or appropriate answers? In addition to how I load into the Assigna Task onActivityCreated method in the slice. According to the Android documentation EtaneInstance (true) when using the setR, since the oncreate (bundle) the piece will not be called again because it is not being ...

vb.net - Is there a way to keep a Textbox triggered on Enter from accepting only spacebars -

I am writing a program that selects random colors, and every aspect of it is working at this point. How it works: You can either use the return key or the button to add textbox to the listbox. How would I like to work it: current In this, it does not accept any entry, so if text box 1. Text = "" This list does not include it in the box, but if the user simply will type "space" "space" "space" it will accept empty text. I want to avoid that so that there is no empty entries in the listboxes. The relevant code: The private sub text box changes 1_Text (as the sender object, and as the system .forms.KeyEventArgs) handles text box 1. If the KUEP is tried E.kcode = Key, then click on Textbox 1 text. Text = "" then other list callers. Items.ed (Textbox 1 text) Text box 1. You can remove the spaces (using) by comparing it with text = "" end and end and end and spaces: P> if TextBox1.Text.Trim () =" "th...

ajax - Extract value from JSON in PHP -

How do I get only 79 out of this output? {"Success": "", "html response": 79} I'm returning it as a JSON, I'm calling a php function to get a value through Ajax And this is my alert $ .jax ({url: urlJSON, success: function (data) {warning (data);} & lt; table class = 'xdebug-error xe-notice 'Dir =' ltr 'border =' 1 'cellspacing =' 0 'cellpadding =' 1 '> Alignment =' left 'bgcolor =' # f57900 'colspan = "5" "& Gt; & lt; span style = 'background-color: # cc0000; color: # fce94f; font-size: x-large,' & gt; & lt; / span & gt; (!): Undefined Variable: Success in C: \ Apache24 \ htdocs \ Project \ getPercentageCompleted.php on line 7 & Lt; T.D. title = 'C: \ Apache24 \ htdocs \ tool \ index.php' bgcolor = '# eeeeec' & gt; .. \ index.php & lt; P & gt; & Lt; / P & gt; 0 & lt; / TD & gt; ...

java - Quadratic Formula Failing when A > 1? -

I am in the process of developing my first app which resolves the quadratial formula and I participated in such a problem The app that gives the incorrect answer for the roots when the value for 1 is greater than 1. This code is: package com.example.firstapp; Import java.lang.Math; Importroid.os.Bundle; Import android App Import android.view.Menu; Import android.view.View; Import android.widget.EditText; Import android.widget.TextView; Public classroom enhances main activity activity {@ Override Protected Zero (Bundled Saved Instance) {super.onCreate (savedInstanceState); SetContentView (R.layout.activity_main); } Calculation of Public Zero (see V) {edit test number 1 text = (edit text) searchWBIID (RIDA); Edit Test Number 2 Text = (Editing Text) SearchVBIID (RIDB); Edit Text Number 3 Text = (Editing Text) Search ViviBid (RIDC); Double number 1 = double. PRDABB (number1 textgate text) () String ()), num2 = double. PRSD double (number 2 text .gettext (). ToString ()), number 3 = ...

Calling soap with C# script in a SSIS Script Task -

Good that there is a mouth for a title, let me start by saying that I am not a programming but rather a DBA . I can write some MSSQL queries with the best of them, but my knowledge of C # is quite limited. I have a piece of software that I need to communicate with web services to do everything in the constraints of SQL Server Integration Services. I can read directly from DB but I can not write it. I am asking for some data, emailing that data, and I have to write back to the software to access the records to be emailed through web services. WSDL is available but as I said, the zero knowledge of C # was able to build SOAPU envelopes through SOAPUI which works perfectly and I call the SOAP using the C # script in my SSIS package I would like to know the way. I have also tried to run it in the web SSIS and in my WSDL file, the service task gives me only 4 hundred ways, when I should have hundred hundred. It will be easy to solve, but I think there are some limitations with the SSIS...

Titanium: Android device token without Cloudpush -

Is there no way to get the device token without using the Cloudpush module? What I'm interested in is token And stores it on my server and then I can send the notifications to registered devices. I have tried to use this link Cloud Pius module I follow these steps: 1) First step: Open this link with "Creating a Google API Project", ii) "Enabling GCM Service" iii) "Accepting the API Key" Image Snap Link: 2) Second Step: Click this link you can see the project you already created. Click on it and you found the example: Project Number: 91060 sdsdgsd 3) Step 3: Now open this URL in the next step Login to your appelverator account where you want to configure this VCM. Click on your project from the top, click on the two options (Production / Development) Development Now the main menu will open in the box that it will click on the second (second) tab. Now you have got Android Push configuration in that page, Fill both fields i) Google Cloud ...