Posts

Showing posts from August, 2014

Cocoa - calling method with multiple arguments -

I'm beginning to Coco and I have questions about the method call with multiple arguments. I'm writing some data in bluetooth (in the sync method) and wait for the answer On another method, I am trying to check that new data was received in buffer but I do not know how I can call this method. I tried many different ways and I could not: - (minus) odczyt: ( Try to call me that this method (IOBluetoothRFCOMMChannel *) rfcommChannel data: (void *) dataPointer length: (size_t) dataLength {unsigned char * dataAsBytes = (unsigned char *) dataPointer, while (dataLength--) {[self addThisByteToTheLogs: * dataAsBytes]; dataAsBytes ++;}} How can I? This method is responsible for reading the string sent and writing it again to label it. This method is pressed when the button is pressed. (And referred to BT request for data) I'm not without calling able to read the data coming this method should call - labeled empty and buttons work after advancing (when Method And the main t

Convert double to String in Java -

इस सवाल का पहले से ही एक उत्तर है: < / P> 11 उत्तर मैं एक डबल कन्वर्ट करने के लिए हूँ स्ट्रिंग के लिए मान। डबल डी = 12345678.999; स्ट्रिंग str = String.valueOf (d); या, बस सादे स्ट्रिंग str = "" + d; क्या यह, एक्सपोनेंट फॉर्म में - स्ट्रिंग मान लौट रहा है: 1.2345678999E7 I स्ट्रिंग में जैसा मान की आवश्यकता है: 12345678.999 क्या ऐसा करने का कोई तरीका है? मैं एक्सपोनेंट के मूल्य के लिए स्ट्रिंग को पार्स कर सकता हूँ- भाग 'ई' के बाद और वहां से चले, लेकिन ऐसा करने का एक आसान तरीका होना चाहिए। // ======= ============================ संपादित करें: इनपुट में दशमलव भाग की लंबाई ज्ञात नहीं है, यह किसी भी संख्या में हो सकता है: 12345678.999 या 12345678.9999999 दशमलव भाग के लिए एक प्रारूप को इंप्रेशन करना दशमलव अंकों की संख्या को ठीक कर देगा (?) आप स्ट्रिंग्स को प्रारूप करने के लिए NumberFormat का उपयोग करना चाहिए ताकि वे वैज्ञानिक संकेतन में दिखाई न दें। स्ट्रिंग str = NumberFormat.getInstance ()। प्रारूप (डी);

jquery - How to combine image map area class with alt attribute to make new class -

I have a picture map with each of 21 states in the US as a separate area. Example: & lt; Area class = "area" size = "poly" courses = "66,8,138,27,126,80,103,73" alt = "wa" & gt; & Lt; Area = square = "area 2" size = "poly" cords = "60,15,108,87,26,120,100,53" alt = "ca"> gt; Now I have set it up so that each state area has its own square and when clicked, opens a div (class or .ca) instance with information for that is. state. $ ('.zone'). Click (function () {$ ('. Wa'). Show ("scale", 350);}); $ ('Area2'). Click (function () {$ ('.ca'). Show ("scale", 350);}); But there are several codes needed to be repeated. What would I do to combine alt attribute of the image map area in the classroom ("bind"?) So that I do not have to repeat jQuery code for each state area on the image map. Pseudocode: When clicked, area s

ios - Shrink boundaries on UITableView cell label -

I am populating a UITableView with data from an array, however, while displaying some parts of the data, Many rooms are available with the text, or very similar text to fix it, although I will move the cell to the right of the title, and fill the parent title with the title on the left side of the cell. There is not enough room in the cell for both titles, so I wanted to wrap text for both text labels and expansion text labels, hoping that each label would occupy half of the cell. So I did this: cell.textLabel.text = parentItem.title; [Cell.textLabel setLineBreakMode: NSLineBreakByWordWrapping]; Cell.textLabel.numberOfLines = 2; Cell.detailTextLabel.text = item.title; [Cell.detailTextLabel setLineBreakMode: NSLineBreakByWordWrapping]; Cell.detailTextLabel.numberOfLines = 2; However, instead of sharing the space in the label, the text label (one on the left) is spread all over the place, the only way is to replace the detail text label If the text label breaks before a big wor

python - External matplotlib viewer -

Whenever I try to display a plot by using ipython notebook with matplotlib module, no plot is shown Goes (I'm an external viewer), instead I use the magic command % matplotlib inline , but I do not want to see the note in the notebook in an external viewer. The same happens with others Any ideas or suggestions? The original piece of code: import plus x = np.linspace (0, 5, 100) y = x ** 2 plt.plot (x, y, 'R') plt.xlabel ('x') Plt.ylabel ('y') plt.title ('title') plt.show ()

java - If statement containing char not executing -

I am trying to create a program that checks the "right" answer in every ten places in an array. I think if the condition is not executed even if the condition of the loop is satisfied with the textarray [i * 10 + k] == latter [k] (I have verified it) . And if the statement textarray [i * 10 + k] == '' is working, then I do not know why the former does not. Any help will be very much appreciated! char [] textarray = new char [textfile.length ()]; For (Int i = 0; I & lt; textfile.length (); i + +) {Texturer [i] = TextFile.chirt (i); } Double [] each question = new double [10]; Double [] Each question = new double [10]; Double [] each question = new double [10]; Double [] each question = new double [10]; Double [] each launch = new double [10]; // store how many questions each student correct, wrong or left empty int [] studentcorrect = new int [textfile.length () / 10]; Int [] StudentDiscount = New Ent [textfile.length () / 10]; Int [] studentblank = ne

rtp - PJSIP not running in Windows Phone 8 background process -

I have studied the Windows ChatterBox sample app for Windows Phone 8 and I write a small app to try PJSIP Was able to. However, I have participated in a problem with CallInProgressAgent. After making an outgoing call, I make a VoipPhoneCall object by calling RequestOutgoingCall method on the VoipCallCoordinator class, after that I create a pjsip call using pjsua api. It seems that as soon as I call RequestOutgoingCall method, pjsip loses all RTP connectivity. My guess is that pjsip is unable to run in the background process initiated by calling RequestOutgoingCall method. Is highlighted? I found it on the PSSIP website: Windows Phone 8 (WP8) support is being added and is still under development on projects / Winfron branch. Specific ideas for this forum are as follows: WP8 WP8 governs specific interaction with GUI and framework, on device VoIP calls need to be applied to make the work continuous. Some light process for background call work will be made by WP8 framework and

addclass - JQuery swapping classes -

I am learning JQuery and when I write my own small scripts, then there has been a problem. So I have a navigation bar and every time a button is pressed, it should change its CSS class from 'BTN' to 'ActiveButton'. For testing purposes, I just want to be able to click on that button, and switch it back, though it does not. Does JQuery not update classes right now? If so, how do I force JQuery to do this? & lt; Div class = "btn" & gt; Hello & lt; / Div & gt; & Lt; Div class = "btn" & gt; World & lt; / Div & gt; & Lt; Script & gt; $ (".btn") .click (function () {$ (this) .removeClass ('btn'); $ (this) .addClass ('activebtn');}); $ (".activebtn") .click (function () {$ (this) .removeClass ('activebtn'); $ (this) .addClass ('btn');}); & Lt; / Script & gt; Just be able to do this: $ (".btn"). Click (function () {$ (this) .toggleCla

Get access to the elements of a list in R -

I want to get some special elements in a list that is returned by the prediction function in R. My data is like this Predict point point 80 Hi 80 Lo 95 Hi 95 111 69894.82 62433.7449 77355.89 58484.0929 81305.54 112 69894.82 60130.1979 79659.43 54961.1218 84828.51 113 69894.82 58274.6632 81514.97 52123.3264 87666.30 114 69894.82 56677.0955 83112.53 49680.0575 90109.57 115 69,894.82 55252.8108 84,536.82 47501.8019 92,287.83 I column "forecast would like to get number" I have the following code to make your data Used: myts some time series data fit & lt; - auto.arima (myts) race & lt; - Forecast (fit, 677) Your data Name Race -2443.82541262374, -3 9 56.556330211 9, 1335.87883621 9 5, 3804. 02 514 9 78 9 0: which is the result of a list of 10 dput (race) as the following 9, -1364.6312311184, -360.5025178657 9 6, -286.1380180 9 3465, -2804.55786143203, -1201.73015351274, -1085.1353062 9 62 , 8688.02102637354, -5767.08772503892, 72 92.94004476998, -23

ruby on rails 4 - Format Value with Delimiter in Nested Form -

I am using Ryan Bats nested_form mani () and my 'edit' form. I am currently using this on my 'United Nations-nested' farm field and it works great! But when I formatted one of the nested elements in the same way, code ' undefined method error ' code for working on 'un-Nested Fields' The code gets value: number_with_delimiter (f.object.reserve_price, exact: 2) Nested form field on edit & lt; Div id = "product" & gt; & Lt;% = f.fields_for: Products ,: Cover = & gt; Make false Product_form | & Gt%; & Lt; Div class = "form-group" & gt; & Lt; Div class = "input-group col-md-4" & gt; & Lt; Div class = "input-group-connector" & gt; $ & Lt; / Div & gt; & Lt;% = product_form.text_field: retail_weekly_price, category: "form-control", placeholder: 'Retail Weekly Rate Card', Required: Truth, (Add Value Call Results in Error ***)% &a

Is it possible to transmit PHP session id via ajax and store it with jquery cookie? -

First of all, I'm asking this before making all the code changes necessary to apply it to my website in my application 99% of the data is generated through AJAX, and is sent as JSSN in the form of javascript which is responsible for creating all html content. It works similar to Angular.js, but with a php backend. The session begins only with index.php , and some other session related tasks, such as guest and last minute updates for a logged user and guest / user IP address are updated. / P> Here's what I want to do: Get session ID after using it using session_id () to get session ID. Add it to an array and json encode it. Decode json with json and manually create / update session ID cookie with jQuery Cookie plugin. My question is whether PHP session ID will be stored in this case, does PHP still consider the session valid on the request of my Ajax API? I am trying to create an application that is with a static HTML / JS Frontend that fully interacts throu

c++ - Declaring main as friend considered harmful? -

चर्चा मुझे पता है कि मुख्य एक < कोड> वर्ग : #include & lt; iostream & gt; वर्ग foo {मित्र int main (); Int i = 4; }; Int main () {foo obj; Std :: cout & lt; & lt; Obj.i & lt; & lt; std :: endl; Li> क्या main वर्ग के एक दोस्त बनाने में कोई मूल्यवान उपयोग हैं? क्या कोई कारण है कि एक वर्ग के मित्र के रूप में मुख्य घोषित करना चाहिए? हानिकारक माना जा सकता है? यह सुविधा नहीं है कि कानूनी सुविधा का उपयोग करना या उससे बचने के लिए विवाद हो जाता है यदि सुविधा नहीं है , वास्तव में, कानूनी मेरा मानना ​​है कि इसके आसपास के गंभीर संदेह है, क्योंकि मानक कहते हैं फ़ंक्शन मुख्य किसी प्रोग्राम में उपयोग नहीं किया जाएगा। पहले से ही एक सवाल है कि क्या दोस्ताना :: main () वास्तव में अनुमति है, और आपको अधिक विवरण मिलेगा।

jquery - Multiple data values in ajax - going directly into exception -

Hi, I am trying to keep several values ​​in data with Ajax, but I'm going to an exception instead of success. It works fine with a data parameter. I have written the data with the correct syntax, can you please consider it. I suspect you are getting an error because you are not responding properly to the last point Remove dependency on Jquery and just test your post with something like curl from your command line. curl --data "recipeName = some_value and reprocess type = some_value" http: //your-site.com/image/reprocessImage if tat Works Confirms that your data setup is correctly $. Create packets out of AJAX and log in to the console. var data = {"recipeName =": l_sRecipeName, "reprocessType =": m_enumReprocessFrom}; Console.log (data); $ AJAX ({data: data, ...});

mysql - ungroup table, manipulate columns and convert to a row -

I have an Excel table of this structure (can be converted to XML or CSV): | License plate Parking | Fuel | Cleaning | --------------------------------------------- | 1111 AAA | 234 | 21 | 1244 | | 2222 AAA 22 | 12 | 644 | | 3333 BBB | 523 | 123 | 123 | For parking, fuel, etc. per car / month per month is spent. There is a unique price in the license plate table. I need to convert this table into MySQL to be imported into this table, but I do not know how to do this and which device is good for it: | License plate Concept | Zodiac ------------------------------------- | 1111 AAA | Parking | 234 | | 1111 AAA | Fuel | 21 | | 1111 AAA | Cleaning | 1244 | | 2222 AAA Parking | 22 | | 2222 AAA Fuel | 12 | | 2222 AAA Cleaning | 644 | | ....... | ........ | ..... | License plate is not a unique value in the results table, and it is repeated for the number of those concepts. UPD: Just discovered that it might be (probably not at all) called denromalized data. I will do

angularjs - How can I change ng-click behavior for a single element in an ng-repeat? -

I am restructuring a table written in angular. NG-Repetition is currently used to create rows of several tables, none of which is redirected to a given UI-sref when clicked: & Lt; Tbody & gt; & Lt; Tr ng-repeat = "user in group | order by: sorter: reverse" class = "tablebox-content" ui-sref = "admin.candidates.detail ({_ id: user._id})" & gt; & Lt; Td class = "name" & gt; {{User.name}} & lt; / Td> & Lt; Td> {{User.attending? 'Yes': 'no'}} & lt; / Td> & Lt; Td square = "interest declined" & gt; {{User.interestDeclared}} & lt; / Td> & Lt; Td class = "interestThreeOrGreater" & gt; {{User.interestThreeOrGreater}} & lt; / Td> & Lt; Td class = "GitHub" & gt; & Lt; A ng- href = "{{user.github}}" One & gt; {{User.github}} & lt; / A & gt; & Lt; / TD & gt; & Lt; Td class = "email&

Why does this django queryset object become a list when I slice it? python -

I'm stumped, please tell me in the right direction: There are Tuplin query objects that I Obj.exists (): Existing to obj (Mao, Dido, Mo, Bo, Ao, RO) for obj (existing) for current = [] for existing current = [] Append (i) I execute the following line code in an attempt to remove QSO in order and opperations on them. existing_ln = lane (existing ) If ExistingLAN & gt; 0: c = 0 I currently exist: cc = 0 while CC & lt; Lane (i): r = type (i) o = i [cc: cc + 1] q = type (o) d = o.values ​​() [0] but I I do not understand 'd = o.values ​​() [0] Although there is no attribute in the list' object ' What is happening, I am breaking the queryet to keep QSO.values ​​() because I want to remove the dictionary if I type (i) I say to a & lt; Class 'django.db.models.query.QuerySet' & gt; , but once I slice it, it becomes a list but how? I have tried to recreate the error on the command line, but I always give a QSO after the slice

asp.net - Configure Visual Studio 2013 .sln to use Local IIS (Not Express) -

Image
I am saying that my IIS Express has stopped working and I use IIS instead of IIS I would like to configure my project. Express When I run it, I can see that IEEEXpress says, as seen in the picture below. I tried to search for a possible solution and found that some people were able to switch to the properties and change the server to use local IIS, but I do not think this option is available in the same place because I A different type of project How do I configure my project to local iis (and to stop receiving these "IIS Express servers have stopped working" error message). Thanks "Https://i.stack.imgur.com/GcKHx.png" alt = "Visual Studio 2013 Project"> You need to adjust the project properties to point to IIS. View:

cron - How to save the file after typing "crontab -e" -

I open the file in the terminal via crontab -e and now I want to save it . I have tried many things, like : wq or Ctrl-X , but it did not save the file. How can I do this? crontab-A command is your default editor, which is one of the following : $ visual command specified by the environment variable (if it is set); Or the order specified by $ EDITOR ; Or / usr / bin / editor The latter is a symbolic link for some editors. On Linux, the default appears on the nano . If it is the nano , then there should be a 2-line menu at the bottom of the screen. Type Ctrl-X to exit; If you have modified the file, you will ask if you want to save it. If you have a favorite editor, you should set both $ visual and $ editor to the order used to implement it For example, I have: exported EDITOR = vi export view = $ EDITOR My $ HOME / .bash_profile In . This system that I am using, applies to a recent Linux system with Vixie Cron implementation. If you

Java split and throw away on repeated char using regex -

I am still struggling with regex ... I have read and seen a lot In all the examples, but are unable to find answers. I want to split the string when the string "::" is found, and I would like to relinquish those two characters. The closest I got was that it was divided on the right pattern, but he kept the colon. Here is an example of my input and desired output: string input = "one :: two :: three"; I should be output: output [0]: "one" output [1]: "two" output [2]: String # Split () code> method which argues to a separator string And outputs the split string in an array. Note that the argument can be a regular expression. string input = "a :: two :: three"; String [] output = input. Split ("::"); Println (production [0]); // a System.out.println (output [1]); // two System.out.println (output [2]); There are official documents for // three here

java - HashMap and Hashcode -

आदर्श रूप से, परिभाषा के अनुसार, हैशमैप डुप्लिकेट की अनुमति नहीं देता; लेकिन मैं निम्न तर्क को समझ नहीं सका। मैंने कर्मचारी वर्ग को परिभाषित किया है और बराबर और हैशोड को ओवरराइड कर दिया है विधियों। सार्वजनिक वर्ग कर्मचारी {निजी स्ट्रिंग empID; सार्वजनिक एक्ट हैशोड () {इंट परिणाम = 17; परिणाम = 37 * परिणाम + empID.hashCode (); वापसी परिणाम; } सार्वजनिक बूलियन बराबर (वस्तु ऑब्जेक्ट) {बूलियन परिणाम = गलत; यदि (वस्तु का उदाहरण कर्मचारी) {कर्मचारी कर्मचारी = (कर्मचारी) वस्तु; परिणाम = (this.empID.equalsIgnoreCase (employee.getEmpID ())); } वापसी परिणाम; }} कर्मचारी e1 = नया कर्मचारी ("1"); कर्मचारी ई 2 = नया कर्मचारी ("2"); मानचित्र & lt; कर्मचारी, स्ट्रिंग & gt; EmpMap = नया हैशमैप & lt; कर्मचारी, स्ट्रिंग & gt; (); EmpMap.put (e1, "Emp1"); EmpMap.put (e2, "Emp2"); सेट करें & lt; कर्मचारी & gt; कुंजी = empMap.keySet (); (कर्मचारी ई: कुंजी के लिए) {ई.से.एफ़एफ़आईडीआईडी ​​("1"); } के लिए (कर्मचारी ई: कु

java - Trimming trailing whitespace from every line in a multi-line string using replaceAll -

Please explain why in this expression, the replacement occurs only once at the end of the string. "1 \ n3 \ n5" .replaceAll ("+ $", "x") // = & gt; According to "1 \ n3 \ n5x" , $ must match the end of a row, and \ z input Matches the end of the string. My goal is to replace the last position of the white space at the end of each row in the string. "x" There is only one way to reflect the replacement that is being replaced. I think a regular expression and String.replace All should be able to do this. If changing is not able to do all of this operation , please suggest a brief option. To change the paragraph spacing of each line, you must enter m ( Multi-line) modifier. "1 \ n3 \ n5". ReplaceAll ("(? M =" $ "," x ") // = & gt; "1x \ n3x \ n5x" Note : This modifier matches ^ and $ Is the beginning and end of each line

android - I have added FLAG_ACTIVITY_NEW_TASK flag, but I still get "outside of an Activity context requires" error -

I still get the error when I invoke "requires an activity reference out startActivity () Calling FLAG_ACTIVITY_NEW_TASK flag" PublicParFun.ShareAPP (getApplicationContext ());.? I have added FLAG_ACTIVITY_NEW_TASK flag Btw, PublicParFun.ShowMainUI (getApplicationContext ()) can work well, why CallerMin.java < / Strong> Package UI; Import info.dodata.callernametalker.R; Import android App Importroid.os.Bundle; Import android.view.View; Import android.view.View.OnClickListener; Import bll.PublicParFun; Public class caller enhances activity {@ override protected void creatives (bundle saved instanestate) {super.Nought (savedinstenstate); SetContentView (R.layout.caller_main); SetButtons (); } Private void SetButtons () {findViewById (R.id.btnSettings) .setOnClickListener (New OnClickListener () {@Override public void onClick (View v) {PublicParFun.ShowMainUI (getApplicationContext ());}}); findViewById (R.id.btnShare) .setOnClickListener (New OnClickListener

ios - How do you hide and show a uiview when cell is selected UITableView -

Image
Actually I want to hide uiview (with the button) until one cell touches it Since then, this UIV brings Vij under the cell with animation (if possible) Something like this: I saw it in an app and fell in love with it and I thought it would be a good user experience. How do I collect this, cheers Code so far: - (UITableViewCell *) tableView: (UITableView *) tableView cellForRowAtIndexPath : (NSIndexPath *) IndexPath {UITableViewCell * mycell = [TableView decomputer reusable cell with identifier: @ "cell identifier"]; If (mycell == zero) {mycell = [[UITableViewCell alloc] initWithStyle: UITableViewCellStyleDefault reuseIdentifier: @ "cellIdentifier"]; } UIView * myview = [[UIView alloc] initWithFrame: CGRectMake (0, 25, 320, 50)]; [Myview setback color: [UIColor greenColor]]; [Mycell.contentView addSubview: myview]; Mycell.imageView.image = [UIImage imageNamed: @ "Placeholder Page"]; Mycell.textLabel.text = @ "Song Title"; UIFont *

xml - Word "faces" on my website url is repeated -

I have a problem developing my website ... It has come to know that when navigating into it, the word "face" It is repeated every time that I use more options within that page ... An example: ... The Web Xml Attached: & lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Web-App version = "3.0" xmlns = "http://java.sun.com/xml/ns/javaee" xmlns: xsi = "http://www.w3.org/2001/XMLSchema -instance" Xsi: Schema Location = "http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> & Lt; Context param & gt; & Lt; Ultimate Name & gt; Javax.faces.PROJECT_STAGE & lt; / Lastname & gt; & Lt; Ultimate Price & gt; Development & lt; / Super-valued & gt; & Lt; / Reference param & gt; & Lt; Servlet & gt; & Lt; Servlet-name & gt; Faces servlet & lt; / Servlet-name & gt; & Lt; Servlet category & gt

shell - Using timestamp of a particular command in bash script? -

I am trying to use the timestamp of a special order that is already running on the line of History 10 Something is going on Grep "keyword" gives me output in the command line (my history preferences are set to include a timestamp), but I can not really understand this information as a script How to use it in using it Is there a way or is there another way of getting a timestamp from a specific command? I'm trying to decide to run a command last time, and if it was longer than a specific time, then run it again. export HISTTIMEFORMAT = "% F% T" / Pre> Then you can use this command history | GRP LS | Grep -v grep | Tail-1 Note: I am searching for the LS command and I am printing a timestamp of ls / Strong> when it Last used was

Unpermitted parameters in a simple rails application -

After the I started my application using scaffolding: Rail G scaffolding Category titled G Scaffold Rail Product Category: Reference Title Rake db: Uninstalled I started the server and created a new category and then I used it to create a new product for this category id wanted to add 1 but when I checked the log: started POST "/ answer Adon "to make as HTML parameters 2014-08-01 09:28:16 + 0430 processing ProductsController # on 127.0.0.1: {" UTF8 "= & gt; "✓", "authenticity_token" = & gt; "Dd7tvD / DrXf1SiAnCR6ZUvtwQzVuy39HG4A9dmo7Gms =", "Product" = & gt; {"Category" = & gt; "1", "title" = & gt; "Rail"}, "committed" => "Create product"} unpermitted parameters: Category and in category_id is the product contorller allowed parameter: def product_params Params.require (: Products) .permit (: category_id, Title: End)

android - ADB tcpip command without cable -

I need to open the remote ADB .. I know that to change the ADB server to TCP, "ADB TCPIP" To release. Listening mode. But, the problem is that my phone is not rooted, and I do not have a USB cable. I can not issue the tcpip command because I do not have a USB cable, I can not change the default. The phone is not root. Is there any other way to convert ADB server into TCP? Listening mode ● If you are using stock Android OS system, you can enable remote debugging in Settings -> Developer Options

c# - How to Count Predicate Expressions -

मुझे एक सामान्य एंटिटी मिली और नीचे कोड है निजी अभिव्यक्ति & lt; Func & lt; GenericEntity, बूल & gt; & gt; GetGenericEntitySearchExpression (जेनेरिक एंटीटीपैमेट्रर खोजपैमेटर) {var predicate = Predicatebuilder.True & gt; जेनेरिक एंटीटी & gt; (); यदि (searchParameter.RegionCode == 1) {predicate = predicate.And & lt; GenericEntity & gt; (ई = & gt; ई। रीजनकोड == खोज Parameter.RegionCode); } अगर (सर्चपैमेटर.काउंटसी कोड & gt; 0) {predicate = predicate.And & lt; जेनेरिक एंटीटी & gt; (ई = & gt; ई। काउंटी कोड == खोज Parameter.CountryCode); }} GetGenericEntitySearchExpression () अभिव्यक्ति देता है "पाठ"> आप किसी अभिव्यक्ति से मेल खाने वाले अभिव्यक्ति की संख्या की गणना करने के लिए एक अभिव्यक्ति विज़िटर बना सकते हैं: सार्वजनिक वर्ग काउंटर: अभिव्यक्ति विजिटर {निजी Func & lt; अभिव्यक्ति, bool & gt; विधेय; सार्वजनिक int काउंट {get; निजी सेट; } सार्वजनिक काउंटर (फ़नक & lt; अभिव्यक्ति, बूल & gt; अर्थ)

c++ - Linker error: undefined reference to `GLUI_Master' -

इस सवाल का पहले से ही एक उत्तर है: < / P> 28 जवाब यह मेरी पहली पोस्ट है (यदि मुझे कुछ याद आ रहा है तो क्षमा करें।) (सी ++, देव-सी ++ आईडीई में) इसलिए, मैंने एक ग्लैग / ग्लू / ग्लुत प्रोजेक्ट बनाया है, और इसमें कोई समस्या / त्रुटियां नहीं थीं, सही? इसके बाद, मैंने शीर्ष लेख को जोड़ा #include & lt; gl / glui.h & gt; और संकलित फिर भी कोई त्रुटियाँ नहीं हैं। उसके बाद, मैंने वास्तव में कुछ जीएलयूआई कोड जोड़ा, मुख्य रूप से मेरे मुख्य फ़ंक्शन में। यह मुख्य कार्य है: int main (int argc, char ** argv) {glutInit (और argc, argv); GlutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH); GlutInitWindowSize (512, 512); ग्लुटरेकविंडो ("परीक्षण जीएल"); initRendering (); glutDisplayFunc (drawScene); glutKeyboardFunc (handleKeypress); glutSpecialFunc (handleSpecial); glutReshapeFunc (handleResize); जीएलयूआई * ग्लुआई = जीएलयूआईमास्टर.क्रेट_ग्लूई ("जीएलयूआई"); Glui- & gt; ऐड_चेकबॉक्स ("वायरफ्रेम", और वायरफ्रेम); GLUI_Spinner * s

Link in Google results will be get or post -

I just want to know that clicking on the results of Google search will receive a request or a post request. Inspect an open debugger / element on the browser Select the Net tab and click on the results and see for yourself This is GET.

c++ - Measuring Runtime - Not Precise Enough -

I got an assignment. Its programming side should be relatively simple, but I can not seem to get results here. We can perform merge sort and radix sorting, and then test them at a random number of groups. Test it for ten times n = 10, n = 100, n = 1000 and n = 10000, average of each of the ten trials to get the average runtime. Looks quite simple, but I can not get any results for n = 10, and the results of n = 100 and n = 1000 are not very accurate, most I can get out of these .0001 The assignment issue is to compare these runtime to theoretical runtime, but we have never discussed how a runtime is happening, so any of us can do that Google hopes to do such work Hope is no target. I have tried some different ways of doing this, and none of them has been able to produce enough results, the most recent attempt is using the Crono and high_resolution_clock. Still no good, I tried to put my computer under tension test and ran 100% load program and it still does not work for (int

why Android (cordova) webview reloads on relaunching the activity from other application? -

I'm new to Cordova programming, loading the webview and navigating to the third page (single page app) and this app goes back to the background and background. Other applications such as UriMedleave custom Yuri = Uri I am trying to bring the PRS ("MDLE: // mehost / VCE? Result = thanks"); URILaunchIntent = new intent (intent.ACTION_VIEW, mdliveCustomUri); StartActivity (URILaunchIntent); But my webview is reloaded in the first screen. Anyone can tell me how to avoid webview reload and I tried this solution but I'm getting app crash (using three activities) android: launchMode = "Single instance" android: alwaysRetainTaskState = "true" / code> Exception log 08-01 12: 11: 34.694: E / Android Random (11681): Fatal exception: Main 08-01 12: 11: 34.694: E / AndroidRuntime (11681): Process: com.mdlive.mobile, PID: 11681 08-01 Dec: 11: 34.694: E / AndroidRuntime (11681): java.lang .RuntimeException: ResultInfo results failing which Shanka

nunit - NunitForms not loading .dll from Project -

When I am trying to load my class file: in the classLibrary1.dll recorder, I get the following error message . My project is built on the .NET Framework 4.5. It seems to me that I can find the solution to do this: System.BadImageFormatException: Could not load file or assembly file: /// C: \ One of the users \ anirban.m1 \ Documents \ Visual Studio 2012 \ Projects \ WindowsFormsApplication1 \ ClassLibrary1 \ bin \ Debug \ ClassLibrary1.dll 'or its dependencies, is designed by runtime new from the current time-loaded assembly and unable to load. It says that NUITFOR does not work with NAT 4.5. I think the NUNIT form only supports up to NAT 3.5. Update: Maybe x86 and x64?

objective c - Trying to pass NSMutableArray from singleton -

I have collected a permanent data named as a singleton, which is the code DataHolder I want to store all the highscore from each level in an array, and then there should be access to that array in another class. Whatever I tried to do, I put it in the code below. When I log the value of the array, it seems that randomly log any of its properties, for example CCColor: 0x175bf270 if I ever try to do something similar for it , Or some of its values ​​are contained in the array, the next time I run it, before I go back to the log, just say Bad Access (code = 1), address 0x10 . How to avoid this when doing the same thing any suggestions? Thanks! DataHolder.h #import & lt; Foundation / Foundation.h & gt; @interface DataHolder: NSObject + (DataHolder *) sharedInstance; @property (nonatomic, allocated) NSMutableArray * levelHighscoresArray; @end DataHolder meter @implementation DataHolder - (id) init {auto = [super init]; If (self) {self.levelHighscoresArray = [

jsp - get the value selected in dropdownlist in spring mvc hibernate mysql -

Hi, I am writing an application in Spring MVC Hibernate Annotation. Here two tables are used to keep employee details. And the other to keep the team's expanses (team tables) Here I am using the drop down box in my JSP to select the team name so that all the staff can be related to that team. But I'm stuck here, I can not get the selected team.What do I want to do when I select a team, like Team 1, I want to show all the employees come under Team 1. To select the name of the team from my SSP database, my Jasps sprite and dropdown list here show all the names from the team table MySpace < Code> & lt; Tr & gt; & Lt; TD & gt; & Lt; Form: label path = "teams.teamId" & gt; Team name & lt; / Form: label & gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt; Form: Select Path = "teams.teamId" cssStyle = "width: 150px;" & Gt; & Lt; Option value = "- 1" & gt; Choose a type & lt;

andengine - Updatable/changable polygon vectors -

Construction - GLES2 Anchor-center: I'm having trouble, without taking myself in the shaders, made my vector Can I change points every time I want to destroy and rebuild, when I want to change them? I am trying to use a small function with crocoware / orabig, but I have a very terrible texture bleeding and I have to use a texture. UPDATE: I have edited the higher formames.tvremotexbuffer object by removing the last section on MBufferData and adding a public function: public zero set buffer data (Float [] pBufferData) {this.mBufferData = pBufferData; This.setDirtyOnHardware (); } and I can update it using this line (HyprentsMessWireTexbuffer object) tempMesh.getVertexBufferObject ()). SetBufferData (tempBufferData); Is there any shock using this method? Or why is it final and not editable to get started with it? I thought at that time, that the data on the last buffer also made the form as a fireman. To update vectors on a mesh or shape etc. This last float

In SSL enabled magento site, Ajax Add to cart not adding product to cart until refresh the page manually -

We are using a template that adds to the functionality of the Ajax Cart. It was working fine for us before, but after enabling the SSL certificate, add the product to the Ajax carriage and add it to the cart. Stay on Bus Loading Add to Ajax Cart Code & lt; Script type = "text / javascript" & gt; // & lt ;! [Cdata [var productadoortorm = new variation ('product_actocart_off'); ProductAddToCartForm.submit = function (button, url) {if (this.validator.validate ()) {var form = this.form; Var oldUrl = form.action; If (URL) {form.action = url; } Var E = Null; Try {This.form.submit (); } Hold (e) {} this.form.action = oldUrl; If (e) {throw e; } If (button and button! = 'Undefined') {button.disabled = true; }}}. Bind (ProductAdochotartform); ProductAddToCartForm.submitLight = Function (button, url) {if (this.validator) {var nv = Validation. Methods; Delete Validation. Method ['required-entry']; Delete Validation. Method ['valid-one-

inheritance - is it possible to add new methods to a inherited module in openerp -

I have a legacy module for "purchase" if I add a new method to buy.py, I am able to use in my opinion (form). However, if I add it to the inherited module I am not able to use it in form view. Is there a way to add my new method to the inherited module? In advance thanks Actually what you need to do for your code To work in the module found in: _inherit = 'purchase.order' and then call your function with the updated XML View. Examples for example: class account_asset_asset (osv.osv): _inherit = 'account.asset.asset' def _check_value (self, cr, uid, id, context = none) : For the property in self. Browse (CR, UID, ID, Reference = Reference): If asset.purchase_value & lt; 0.0: return incorrect return correct _constraints = [(_check_value, 'property value must be greater than 0!', ['Purchase_value']),] will check whether the asset is 0 More is not wrong in return, so that users can save their records. What's more, y

eclipse - android sdk manager not updating -

Image
text after "itemprop =" text "> While trying to update my eclipse SDK manger for Android I'm getting the following error instead of updating: < Android SDK platform-downloading, modification 20 URL not downloaded: C: \ Program Files \ Android \ Android-SDK \ Floating \ platform-tools_r20-windows.zip (Access is denied ) Downloading documentation for Android SDK, API 19, Revision 2 URL was not found: C: \ Program Files \ Android \ Android-SDK \ Temp \ docs-19_r02.zip (Access Denied) SDK Platform Android 4.4.2, API 19, Revision 3 URL Not Found Downloading: C: \ Program Files \ Android \ Android-SDK \ Temp \ Android-19_r03.zip (Access Denied) SDK Platform Android 4.3, API 18, Revision 2 URL Not Found Downloading: C: \ Program Files \ Android \ Android-SDK \ Temp \ android-18_r02.zip (Access Prohibited) SDK API 19, Revision 5 URL not downloaded for samples: C: \ Program Files \ Android \ Android-SDK \ Temp \ samples-19_r05.zip Downloading the source for Android

java - How to make PreferenceActivity update faster? -

I set the preference to set the IP address. After saving it, it shows me that it is set, but when it's used it shows me "". It uses the eye set only after restarting my IP. Public class settings increases the activation priority {@Override protected void onCreate {bundled saved instance} {super.onCreate (savedInstanceState); AddPreferencesFromResource (R.xml.prefs); }}

c++ - Why is std::getline() skipped? -

इस सवाल का पहले से ही एक उत्तर है: < / P> 2 जवाब 5 जवाब मेरे पास यह C ++ सरल प्रोग्राम है; #include & lt; iostream & gt; Std :: endl का उपयोग कर; Std :: cout का उपयोग कर; Std :: cin का उपयोग कर; Std :: getline का उपयोग कर; #include & lt; स्ट्रिंग & gt; Std :: string का उपयोग कर; संरचना रिपॉजिटरी {string name; स्ट्रिंग पथ; स्ट्रिंग प्रकार; स्ट्रिंग कमांड; }; Int main () {भंडार आरपी; Cout & lt; & lt; "\ N रेपो नाम दर्ज करें:"; Cin & gt; & gt; rp.name; Cout & lt; & lt; "रेपो पथ दर्ज करें:"; Cin & gt; & gt; rp.path; Cout & lt; & lt; "रेपो प्रकार दर्ज करें:"; Cin & gt; & gt; rp.type; Cout & lt; & lt; "रेपो आदेश दर्ज करें:"; गेटलाइन (cin, rp.command); Cout & lt; & lt; "\ N रिपोजिटरी जानकारी:" & lt; & lt; endl; Cout & lt; & lt; आरपी.नाम & lt; & lt; "\ N" & lt; & lt; Rp.path & lt; & lt; &quo

http - Upload multiple files from Powershell script -

I have a webpage that can post an html form in this way: < Code> & lt; Form action = "x" method = "post" encrypt = "multipart / form-data" & gt; & Lt; Input name = "xfa" type = "file" & gt; & Lt; Input name = "pdf" type = "file" & gt; & Lt; Input type = "submit" value = "submit" & gt; & Lt; / Form & gt; Note that two type = "file" elements are How can I send scripts to the PowerLL script? I found, but it can only handle one file. Thank you for taking your time. /P> I am currently crafting multilingual HTTP posts with PowerShell. I hope the code below is useful for you. PowerShell can upload itself not multipart forms. There are not many samples about it. I made the code based on and Of course, the off-reserve method requires PowerShell 3.0, but the code in the above links shows how to do it. , It's als

TurnJS and bootstrap section -

I am trying to add a section in my Bootstrap web application which will use the Turnge flip-book. My HTML code: & lt ;! - TurnJS - & gt; & Lt; Section id = "turnJS" class = "turngs" & gt; & Lt; Div id = "flipbook" & gt; & Lt; Div class = "hard" & gt; My turn & lt; / Div & gt; & Lt; Div class = "hard" & gt; & Lt; / Div & gt; & Lt; Div style = "background-image: url (pages / 01.jpg);" & Gt; & Lt; / Div & gt; & Lt; Div style = "background-image: url (pages / 02.jpg);" & Gt; & Lt; / Div & gt; & Lt; Div style = "background-image: url (page / 03.jpg);" & Gt; & Lt; / Div & gt; & Lt; Div style = "background-image: url (page / 04.jpg);" & Gt; & Lt; / Div & gt; & Lt; Div style = "background-image: url (page / 05.jpg);" & Gt; & Lt; / Div & gt; & Lt; Div

javascript - $(window).scrollTop() is not working in safari -

It works fine on Firefox and Chrome, but Safari has some problem. Here's the code. Function Installer () {var ScrollPoices = $ (Window) .scrollTop (); If (scrollPos == 900) {$ ("(" first_fall "). FadeIn (1000); $ (". Second_fall "). Feedine (2000); $ (". Third_fall "). FadeIn ( 3000);}); }; } And this is how I said it $ (document) .ready (function (e) {$ (window) .bind ( 'Scroll', function () {installer ();});}); Many functions work well on a separate page on Safari and Chrome. Here is the code $ (function () {$ (window) .bind ('scroll', function () {zoomed ();})}} ()); Function zoomed () {var scrollpace = $ (window) .scrollTop (); If (scrollbox> = 500 & amp; scroll grids & lt; = 800) {$ (function () {$ ('# icon_UU'). ({Obscurity: 0}) Chetan; $ ('about_head'). ({Obscurity: 1});}); } Else {$ (function () {$ ('about_head'). Animate ({obscurity: 0}); $ ('# icon_you'). Anima

how to find exact path of android external storage programatically at runtime? -

mySound.load (नया URLRequest ("file: //mnt/sdcard/AnyFolder/YourSound.mp3") ); `& lt; br / & gt; मैं रनटाइम पर एसडीसीडी का नाम खोजना चाहता हूं, इसलिए मैं अपने ऐप-डेटा को बाहरी भंडारण पर स्टोर कर सकता हूं। उपरोक्त कोडल संग्रह करने का एक उदाहरण है उपयोगकर्ता की आवश्यक स्थान के लिए एक एमपी 3। शायद आप इसके लिए पूछ रहे हैं: < कोड> फाइल एफ = नया फ़ाइल (पर्यावरण। गेटएन्स्टाईलस्टॉरिज़ डायरेक्टरी () + "/" + "yourfilename"); मैं आपको एसडी कार्ड की जड़ को लिखने से बचने के लिए भी सुझाव देता हूं अपने आवेदन डेटा को उचित फ़ोल्डर में लिखने के लिए यह एक अच्छा अभ्यास है: फ़ाइल f = नया फ़ाइल (Environment.getExternalStorageDirectory () + "/Android/data/com.example.testapp/" + "तुम्हाराफिलनाम"); जाहिर है, आपको अपने ऐप पैकेज के साथ "com.example.testapp" को बदलना होगा (जब आप एक्लिप्से / एंड्रॉइड स्टूडियो में प्रोजेक्ट बनाते हैं तो आपके द्वारा दिया गया पैकेज)।

sql - How to separate Stored Procedures (i.e. all the business logic) from Client Database so that it only contains client data? -

परिदृश्य : हमारा एप्लीकेशन डेटाबेस (SQL सर्वर 2012 में) में पूरे व्यवसाय तर्क शामिल है संग्रहित प्रक्रियाएं। हर बार जब हमें क्लाइंट को डेटाबेस प्रकाशित करना पड़ता है, तो यह अनावश्यक रूप से संग्रहीत कार्यविधियों को क्लाइंट डेटाबेस में कॉपी करने में परिणाम देता है। समस्या : सभी व्यावसायिक तर्क को कॉपी किया जाता है एन्क्रिप्शन के साथ का उपयोग > क्रय प्रक्रिया Proc_Name के साथ एन्क्रिप्शन इस पद्धति का परिणाम एन्क्रिप्टेड और गैर-नियत संग्रहित कार्यविधि कोड में है। हम यह नहीं मान सकते कि क्लाइंट पक्ष में कोड का कौन सा संस्करण चल रहा है, इसलिए इसे डिबग नहीं किया जा सकता है। संस्करण नियंत्रण लागू नहीं किया जा सकता। इसके अलावा, ग्राहक डेटाबेस की प्रतिकृति को क्रियान्वित नहीं कर सकता क्योंकि एन्क्रिप्टेड संग्रहित कार्यविधियों को दोहराया नहीं जाता है। समानार्थी शब्द बनाना लिंक्डसर्वरडीबी के लिए SYNONYM स्कीमा नाम। स्कीमानाम। प्रोसीएनए यह Client_DB पर संदर्भों (समानार्थक) के निर्माण के लिए अनुमति देता है, जो कि Remote_Linked_Server_DB पर स्थित वास्तविक संग्

lync 2013 - UCMA Steps to create Trusted Application -

What steps are there to make a trusted server application and then to deploy it on a lync server? I am new to lync server application development. Finally got the problem, but in < Br /> > -Identity: should be unique like this MyApplicationPool.mycomputer.fqdn -Registrar: Powershell can get it by using Cmd Get-CsService -Registrar - Site: can get it using PowerShell CMD Get-CsSite - Computer Fqdn: Name of fully qualified computer - Required response : This can be either $ right or $ Step 2: Run CMD: Enabled - CsTopology, this will enable your application pool, you can now Verify it by running the Get-CsTrustedApplicationPull command Step 3: Cmd Create a trusted application using syntax: New CsTrustedApplication -ApplicationId - TrustedApplicationPoolFqdn - Port -ApplicationId: Unique application ID with Fqdn - Trusted app PoolFqdn: - Trusted elements that are Provided the Trusted Application Pool at the time of creating

networking - Windows Phone access NetworkUsage -

I'm wondering if it is possible to obtain network access from a Windows Phone app. I know that it is possible in Android and iOS For WP, I searched the documents to find this category: Windows.Networking.Connectivity () From there I < Code> NetworkUsage class has been retrieved: byte reassid : read-only - bytes received by connection of specific period Indicates the number of. Bytext : read-only - indicates the number of bytes sent by the connection during a specific period. Duration of connection : read-only - indicates the duration of connectivity. But as I am not a WP developer, I do not understand whether this is a public API or not ... any suggestions? This is public: C # examples working here: // set and time now var currTime = date time.Now; // Set the start time from the start time of the current time time starttime = currTime - timepan. Frosthur (1); // Get the Connection Profile that is currently used to connect to the Internet divers

user experience - Why the responsive concepts are included in Flat Design? -

I am a noob in UX design concepts recently I went through an article about flat design, where they Said that the lobby is very cautious. Generally, when I develop sites, I always try to create a sensitive site. What should I know, most people always want their sites to work in all types of devices, so that they are giving great importance to designing techniques to design, that they follow to build sites, therefore responsive concepts are common. So why are the responsive concepts included in the flat design? Almost every new customer wants a mobile version of their website these days. It is practically essential for all: a design for Blackberry, iPhone, iPad, netbook, second and all screen resolutions should be compatible. In the next five years, we will need to design for many additional inventions. When will madness stop? This will not be obvious. Therefore, the responsive user interface is mentioned. I hope the answer to the question.

asp.net mvc - Pass IEnumerable list to partial view contains WebGrid -

मेरा मॉडल सार्वजनिक IEnumerable GetTaskDetails () {var टास्कडेटा = (एडीसी में डी से) टीसीटीएस में डी 1 में शामिल है। डीटीस्कआईडी पर डीटीसीआईडीटीबीएस डी 1। टीकेआईडी के बराबर है, जहां डी। आईएसएक्टिव == सच चुनें नया {d.ProjectTB.ProjectName, d.DBNname, डी.डिस्क्रिप्शन, डी.फ़ॉर्मडेट , डी.ToDate, डी 1। पंजीकरण। टी.बी.नाम, डी 1। पंजीकरण टीबी.एमेल})। असीमनीय ()। ToList (); // var टास्कडेटा = (एडसी। टीकेटी बीएस / डी से चयन करें d)। एएनएनमेरेबल ()। टूलास्ट (); वापसी कार्यदाता; } मेरा दृश्य & lt; div & gt; @ एचटीएमएल.पार्टील ("आंशिक दृश्य / _TaskDetails", मॉडल। टेस्ट सूची) & lt; / div & gt; मेरा आंशिक दृश्य @ {var grid1 = नया WebGrid (स्रोत: मॉडल, canPage: true, defaultSort: " DBName ", canSort: सच, पंक्तियाँपेरजः 5, selectionFieldName:" selectedRow ", ajaxUpdateContainerId:" वेबग्रीड "); grid1.Pager (WebGridPagerModes.All); } & Lt; div id = "grid" & gt; & Lt; div शैली = "मार्जिन-बायां: 75

Jboss Drools- It is possible to write two or more conditions (in WHEN block )in single rule? -

Is it possible to write two or more conditions in a rule? Where is the WHEN block? Yes .. if they have more conditions then you can write as much as you like, check docs if they Or the conditions are recommended to divide the rules into several rules, then just for simplicity.

c - memcpy() by reference and no copy? -

reference study memcpy Yes it works, but it would be good if we just Referring to the array's sub-reference, which we are not interested in any copy. char a [] = "hello"; Four b [20]; Memcpy (b, a, strlen (a) -1) question Can not we make any copies on it, just pointing arithmetic? printf ("My array is% s \ n", a..a + 2) For example? The point is not only printf but any reference to any place in the code by an indicator for beginning and end A. .. A + 2 (seems socket, function argument) < P> I think a bit strange for a piece to copy because it should be the reference of the original array. itemprop = "text"> You can print any part of your c-string string using fwrite from stdio.h Yes, because please please take a pointer in any of the characters in the string and hope that you supply the size instead of using an empty-byte end. The announcement of the present is as follows: size_t fwrite (const zero * a = &qu