Posts

Showing posts from August, 2013

InstallShield 2011 SYSINFO.bIsWow64 returns incorrect value -

I'm working on an installer who has worked for a long time. I made some minor changes to the payload. The actual payload installed was dependent on SYSINFO.bIsWow64. However, recently it has been running on 64-bit version has returned an incorrect value when Win 7 - indicating that it is running on 32-bit OS Has anyone similar Have experienced some kind of problems? Tip: Make sure that the output says right: if BIS Wow64 the message box ( "64-bit") and message box ( "32-bit") Yes, the second pair of eyes never very good thing.

c# - Is there a way to pass data between views in ios xamarin -

I am new to iOS development. I have an application with three separate tabs. In each tab view, there are 3 similar buttons. And each button points to another tableview. Then there are three buttons in three ways. Every single button in each scene indicates a second view. A view (or a view controller) is just a C # class you pass data like this As you are in any C # class Enter any argument in the constructor, or set up a public property, or call the public setter method. In your specific case, you can check the selected index property of your UITBub Controller, which is active, to see which one button is clicked.

sql - RRULE explanaiton using BYDAY and BYSETPOS -

I am trying to parse an RRULE and show how many weeks the recurrence event is valid in the month. I have seen RFC 2445 Dock () and this is not clear. I know the rules for example: RRULE FREQ = monthly, INTERVAL = 1; BYDAY = TH, FR, WE; BYSETPOS = 10,11,12,7,8,9,1,2,3,4,5,6 Mercury, substrate, for Friday is the first of the month, second, Third and fourth week. or RRULE FREQ = monthly, INTERVAL = 1; BYDAY = TU, MO; BYSETPOS = 3, 4,5,6; The second and third week of the month is for Monday and Tuesday. or RRULE FREQ = customer, interval = 1; BYDAY = TH, WE; BYSETPOS = -1, -2 The last week of the month is for Mercury and Thursday. I created this through another program, but I'm not sure how it actually generates. In this way the problem I'm having is understanding that BYSETPOS should be able to parse an RRULE as the last goal again for one month as above and display: For: RRULE FREQ = MONTHLY, INTERVAL = 1; BYDAY = TH, FR, WE; BYSETPOS = 10,11,12...

c - Casting char pointer to int pointer - buffer error 10 -

In this, the author discussed how Potter could be put in C. I want to try and create this code: #include & lt; Stdio.h & gt; Int main (zero) {four * C; * C = 10; Int i = * (int *) (C); Printf ("% d", i); Return 1; } This compile (with a warning) and when I execute the binary, it only outputs just error: 10 . I understand that a letter is a small size from an int I also understand that I should expect this error. But I really appreciate it if someone can clarify what's going on here. Apart from this, I want to know that Pointer is the right way to insert and dereference (in this example) to get 10 points for the int pointer. Thanks! EDIT: If you're worried, to clarify my intentions, I'm just trying to come up with the "work" example of casting casting. It's just to show that this permission is allowed and may be work in C. C is unearned when you defer this undefined behavior is. Similarly, even if the c was initiali...

linux - Need some help in appending more than one line to a file in puppet -

इस मैनिफेस्ट का उपयोग file_line {'sudo_rule': path = & gt; '/ Etc / sudoers', रेखा = & gt; कठपुतली एक पंक्ति जोड़ती है, लेकिन मुझे एक फ़ाइल से जोड़ने के लिए एक से अधिक पंक्ति चाहिए। केवल file_line यह सुनिश्चित करता है कि कोई दी गई रेखा एक फ़ाइल में समाहित है () तो आप अपनी कठपुतली कॉन्फ़िगरेशन फ़ाइल में और अधिक पंक्ति जोड़ सकते हैं और कठपुतली के बाद से यह बॉक्स से बाहर काम करेगा, केवल यह सुनिश्चित करता है कि वे वहां हैं लेकिन उन्हें लगातार जोड़ नहीं सकते हो सकता है कि आप हमें बताएं कि आपका उपयोग क्या है ताकि हम आपको बेहतर मदद कर सकें। एक और विकल्प भी कॉन्फ़िग फ़ाइलों को एक पेड़ में डाटस्ट्रक्चर जैसे लोड करना और उपयुक्त मान को जगह में संपादित करना होगा। उदाहरण उपयोग: augeas {"sshd_config": context = & gt; "/ Files / etc / ssh / sshd_config", परिवर्तन = & gt; ["PermitRootLogin no सेट",],}

c# - Storing user-entered data from a Wix installer -

I am creating a Wix installer and I want to store some values As well as during the installation process, I can read them in such a time that I can read them later. Obviously I can save these values ​​in the registry, but is there a better way to get it in Wix? What's wrong with storing them in the registry? Seriously :) I have been in business for over 20 years and I have seen the development of Windows 8.1 from Windows 3.1. .. Commodore is going back to 64/128 D / CPM / Amigao but we will not count it. I looked at the development from the INI to XML and personally I think there was hate overflow for the registry. I dislike COM and COM registration but it is ok to use HKLM and HKCU hives to store company / product specific configuration information and it is surprisingly supported by the Windows Installer. This is XML support which lacks the Windows Installer . For a degree, XX does not support XML in YX, as I had previously seen that he could write XML data but rea...

Import jQuery into server-side Google scripts code -

Is it possible to import Google Library into a Google Script project? I want to parse the bunch of an HTML code on the server side using jQuery's traversal function (there is no customer side in the app). I was hoping for an "import" or "need" function or something, but I can not find anyone in the documentation. Thank you. An example of porting an open source Javascript library in Google Apps Script.

javascript - Getting two different click methods to work inside single Jquery function -

I can not get these two different click functions to work at the same time. Today is my first time to use JS in any important way, so please interact with me. I have a selectable jazz list and once its items have been selected, I want users to click on a submit button. So far, the list is working, but I can not get the submit button to run my code. $ (function () (var user_id; $ ("# selectable_ & lt;% = request.id.to_s%>"). Selection ({selected: function (event, UI) {Var results = $ ("# selection-results- & lt;% = request.id.to_s%>") empty (); $ (ui.selected) .addClass ("UI-selected"). Brother (sister) (Select "UI-selected"). Each (function, key, value) {$ (value) .frame ('*'). RemoveClass ("UI-selected");}); var index = $ ("# Selectable_ & lt;% = Request.id.to_s%> .ui-widget-content"). Html (); user_id = $ ("# selectable_ & gt; .ui-widget-content #user_id "() () () () () (/...

Django - extra fields for user form -

I am developing in that site, I have a form of registering users such as userCreationForm . The said form only states that the fields are not in the default, but they are in the model such as email, first_name and last_name class RegisterForm (UserCreationForm):. Email = forms.EmailField (label = "email", required = true) first_name = forms Class field metro: model = user field = ("user name", "first_name", "last_name") (field name = "first name", required = true) last_name = forms.CharField (label = "last name", required = true) "," Email "," password1 "," password2 ") def __init __ (own, * args, ** kwargs): super (RegisterForm, self) .__ init __ (* args, ** kwargs) ['username' ',' Password1 ',' password2 '] for FIELDNAME: self.fields [FIELDNAME] .help_text = none My question is if there is a way to do that Other fields like an image field, birth date, ...

java - Can PhoneGap and RoboVm work in harmony? -

The goal Fongap and using Java to create an iOS app when writing Fongap plug-ins that the original code (Objective-C) , Is it possible to communicate with Java while using robovm? I would also be interested in RoboMo-Phonegap integration. A 'Simon Robinson on went to offer the following positions on the use of Roboivm output as iOS static libraries: (more in-depth explanation) Do and robot-phonegap Someone else has some interesting information and code, however, all the tutorials New phonegaps can not be applied to the 3.x API FYI, I can edit this post again [link of ASAP] to include the body of some information included.

ruby - Regex for optional quotes, array of hashes and empty string -

I want to write a regular expression to accept the following types of ruby ​​- 1) "Value1" 2) 'value2' 3) "" or "' 4) [{: this =>: that is, I have the following: "= & gt;: This}, {'foo' = & gt;: bar}, {: bar = & gt; 'Foo'}] / P> regex = / (["']?) ([^' ']] [?] [^' ']] With that problem, he does not accept empty stars - "" and "". Can you recommend any options or improvements? I do not know whether regex uses flavor Ruby, but assuming it is somewhat perl-compatible: regex = / (["']) (?: \\.:. ) ?? 1 / demo: This expression will allow you to avoid quotation in your string "like \" "" . The trick here is to use an alternative like this. The second part of the alternative ( ) will never be able to match backslash. And the non-greedy quasifier ensures that the backrefence will match the ending quote. Ed...

ruby - Where clause and model function in Rails -

यह मेरा मॉडल है: class विज्ञापन & lt; ActiveRecord :: बेस attr_accessor: वर्तमान has_attached_file: छवि validates_attachment_content_type: image,: content_type = & gt; / एआइमेज.ए.ए.ई.एस.ए.एस.ए. डीएफ़ चालू सच नहीं है जब तक कि समय.नौना नहीं। Self.expires_on समाप्ति अंत तब मैं यह कोशिश कर रहा हूं: यहां त्रुटि है: अज्ञात कॉलम 'ads.current' (स्थान: "डिस्पेंसर दिखाएँ साइडबार बाएं", वर्तमान: सही) 'क्लाज' में मैं कहां धारा में मौजूदा कॉल कर सकता हूं? अपने वर्तमान विधि को एक क्षेत्र में कनवर्ट करें: class विज्ञापन & lt; ActiveRecord :: बेस attr_accessor: वर्तमान has_attached_file: छवि validates_attachment_content_type: image,: content_type = & gt; / एआइमेज ./.** z / क्षेत्र: वर्तमान, - & gt; {जहां (['समयसीमा समाप्त हो जाए और लेफ्टिनेंट;?', टाइम.न्यू])} एंड और फिर इसे जहां स्थितियों Ad.where (स्थान: "डिस्पेंसर शो साइडबार बाएं")। वर्तमान

What do tabs \t mean in Elm? -

I was walking with Elm and I found this error message: [1 1] In compiling main (Main. Ml) parse error (line 3, column 1): unexpected '\ t' hopeful of new line, spaces or end of input What tabs Does the special meaning of Elm, as they may be in Python? For example main: element main = flow down [leftAligned (toText "A"), leftAligned (toText "B"), leftAligned (toText "It's complaining that instead of the blank You want to use the tab C ++. You will see that when you change the tab with spaces, the code works.

puppet - Ordering of virtual resources -

I have seen examples of sorting with virtual resources, but I can not find anybody how I decide dependency Can I order with them? This syntax fails to check: test.pp @file {"/ usr / local / new-dir": make sure => Directory,} (file ["/ usr / local / new-dir"]) - & gt; Exec {"Copy old stuff to new": command = & gt; "CP-R / USR / Local / Old-Diamonds / USR / Local / New-DIR",} and test syntax: $ Verify puppet analyzer test.pp: error: could not be parsed for environmentally produced: '- & gt;' On the syntax error /home/vagrant/test.pp:6: Try 'Puppet Help Analyzer' to use I can sometimes think that I order virtual resources I want to do this, so how did this happen? Any help or insight will be greatly appreciated. You can use a collector instead of realizing it, and then, apply the command: @file {"/ usr / local / new-dir": make sure = & gt; Directory, exec {"copy old stuff ...

bash - Implementing autocompletion to zsh aliases -

मैं भयानक zsh ढांचे का उपयोग कर रहा हूं। हर दिन मैं gc को मारा जो git commit के लिए एक उपनाम है gt; & lt; Tab & gt; और यह मुझे सही फाइल प्रतिबद्ध करने के लिए। मैं वास्तव में यह जानना चाहता हूं कि यह कैसे कार्यान्वित हुआ है, इसलिए मैं उप-निर्देशिका में नेविगेट करने के अपने खुद के विचार को एक उपनाम का उपयोग कर सकता हूं। मेरा मतलब है कि इस उपनाम -w ए & lt; टैब & gt; & lt; टैब & gt; का उपयोग करके ~ / workspace / a-repo में नेविगेट करना ए-रेपो और मुझे कुछ सुझाव दिए गए हैं जो अंदर ~ / कार्यस्थान के अंदर हैं मैंने पहले से ही यह उपनाम बनाया है लेकिन मुझे यह जानने की जरूरत है कि कैसे इसे सही स्वत: पूर्णता / सुझाव जोड़ने के लिए। यहां मेरा उपनाम है: -w () {cd ~ जीसी के मामले में / कार्यस्थान / "$ *"} (जो मुझे लगता है oh-my-zsh के git प्लग इन में alias gc = 'git commit -v' के रूप में परिभाषित किया गया है) zsh अंदरूनी रूप से पूर्णता के लिए कोशिश करने की तलाश के पहले वास्तविक कमान ( git commit -v ) के साथ उपनाम ( gc...

d3.js - Dual Y axis line chart in dc.js -

Image
I have an overall chart of the three line chart, in a chart a "fake" group has been used as suggested. As you can see in the snapshot below, though the scale of the third chart is very different from the other two. I want the solution is shown as a double axis chart as I think it can be done using the .renderlet () on the main composite chart, but I was wondering if a "sexual" with pure DCGS "Is the solution? Here's a snapshot: And here is my code I (in coffeescript) I tried to use .y and .yx on the internal chart, but it has no effect. actualValuesChart = dc.lineChart (main chart) .group (metric, "real" + @ displayName) .valueAccessor (d) - & gt; D.value.avg .colors (['green']). Interopalate ('base-open') ideal value chase = dcline chart (main chart) .group (metric, "normal" + @ display name) .valueAccessor (d) - & gt; D.value.avg_avg .colors (['RGBA (0,0,255,1)'] Interoplate ('base-open...

javascript - Array filter and Array Display -

I have an array and use JQuery to display it in 2 column table. But in some way it is not displayed as expected in 2 columns. I have 2 text fields to enter the date and date to filter the table, but how do some things do it please HTML & lt; P & gt; From: & lt; Input class = "Datepicker" id = "dateFrom" type = "text" & gt; To: & lt; Input class = "datepicker" id = "dateTo" type = "text" & gt; & Lt; Button class = "buttApply" & gt; APPLY & lt; / Button & gt; & Lt; / P & gt; & Lt; Div class = "text" & gt; & Lt; / Div & gt; & Lt; Table id = "myTable" range = "1" width = "300" cellpadding = "5" & gt; & Lt; / Table & gt; JS $ ("datepicker"). Datepicker (); $ ('. ButtApply') Click (function () {var filtered = dateList.filter (function) {return item> $$ (...

php - sql insert into query -

Please help! What's wrong with this INSERT query ?! This is before the query on the newUser.php page $ result2 = mysqli_query ($ con, "counting from boards in the form of selection number (*)"); While ($ row2 = mysqli_fetch_array ($ result2)) {$ post number = $ line 2 ["count"]; } Echo $ postNumber; Echo $ _POST ['bday']; This is the query mysqli_query ($ con, "user (userID, profPicLoc, age, username, real name , '', ''. $ '_POST [' name ']. ",' '$' ',' $ ' $ _POST ['password2']. '', '. $ Post number + 2.', ''. $ _POST ['email']. '' '') " ; The connection is created correctly, the UserID is automatically incremented, and the database in the database is DATE type This receives information from someone Other pages & Form ... new form action = "newUser.php" method = "post" & gt; ...

c# - When implementing IEqualityComparer.GetHashCode(T obj), can I use the current instance's state, or do I have to use obj? -

Image
How do I implement IEqualityComparer, has a parameter for GetHashCode (T obj)? This is definitely not a stable object, so why can not I just use the current example to generate the hash code? I am curious because I am trying to do this: Public Abstract Class BaseClass: IEqualityComparer & LT; BaseClass & gt; {Public abstract int GetHashCode (BaseClass obj); } Public Category DerivedClass: Base Class {public int MyData; Public override int gatehashcode (baseclus obje) {MyData.GetHashCode (); // or I have to do this: // Return (DerivedClass) obj.MyData.GetHashCode (); }} I am trying to stop the artists because it is actually being used in high-performance code. I think the main issue here is that you are confusing with IEquatable & Lt; T & gt; A method for determining that defines the current example ( this ) is equivalent to an example of the same type. In other words it is tested for objA.Equals (objB) . When applying this interface, it is recomme...

java - i have a controller redirect to a url I want that parameters should not be displayed as a query string -

मैं उपयोग कर रहा हूं sendRedirect ("http://api.mVaayoo.com/ Mvaayooapi / messageCompose? User=someuser@gmail.com: 123456 और senderID = टेस्ट एसएमएस और amp; receipientno = 0987654321 & amp; dcs = 0 & amp; msgtxt = "+ संदेश +" और राज्य = 4 ") कॉल करने के लिए mvayoo एपीआई भेजने के लिए एसएमएस। लेकिन मापदंडों ग्राहक को पता पट्टी में प्रदर्शित कर रहे हैं प्रश्न स्ट्रिंग को छिपाने का एक तरीका है? मैं SSL प्रमाणपत्र खरीदना नहीं चाहता हूं। समस्या यह नहीं है कि आप कैसे पुनर्निर्देशित करते हैं, बल्कि समस्या में रीडायरेक्ट यूआरएल के प्रदाता जो आप उपयोग करने का प्रयास कर रहे हैं: कोई संवेदनशील जानकारी का उपयोग GET / query param के रूप में नहीं किया जाना चाहिए।

Fetching data from a table in a range. The range is in decimal in db2 -

I have a table in the witch, in which data in decimal is -50.40 to +50.50. To get data from 30.00 to 40.32 I wrote the query like Select the column from the table where the column (30.00,40.32) but it only gives those rows Are those who have 30.00 and 40.32 worth. You are not giving a limit, but you set one column of values ​​to the limit of columns The should select the column where the column & gt; = 30.00 column & lt; = 40.32

clojure - defrecord with empty constructor -

I am using defrecord on a simple example, say: (defrecord Person [fname lname address]) I'm using a tool that requires a 0-parameter manufacturer, then trying to use the above on JVM leads to : CompilerException java.lang.RuntimeException:, class user.Hello Compilation: Could not find 0-parameter manufacturer for class (form init5503453667732926891.clj: 1: 13) What is faster / most beautiful Is that the 0-Ultimate Manufacturer to Generate? "itemprop =" text "> You should think of this record as the class: class person (last object fname; last object lname; last object address; public person (last item fname, last item lname, last object address) {this.fname = fname; this.lname = lname; this.address = Address;}} This is ultimately irrevocable with all areas. Take a look at this.

sqlite - SQL: Get data in range -

तालिका 1: आईडी अध्याय वाक्य पाठ 1 1 1 यह रेखा है 1 2 1 2 यह रेखा है 2 3 1 3 यह लाइन 3 4 1 4 है यह लाइन 4 5 2 1 यह लाइन है 1 6 2 2 यह लाइन 2 है 7 2 3 यह लाइन है 23 8 2 4 यह लाइन 4 9 2 5 यह है लाइन 5 10 2 6 यह लाइन 6 11 2 7 है यह लाइन 7 12 3 1 यह लाइन 1 13 3 2 है यह लाइन 2 14 3 3 यह लाइन 3 15 3 4 यह लाइन 4 16 3 5 यह लाइन 5 है मैं रेंज में डेटा प्राप्त करने की कोशिश कर रहा हूं मैंने कुछ प्रश्नों की कोशिश की है लेकिन उम्मीद के परिणाम नहीं मिलता है। GetData (beginingChapter, endingChapter, beginingSentence, endingSentence) GetData (1, 3, 3, 4) एसक्यूएल क्वेरी: चयन 1 से तालिका 1 जहां (अध्याय = 1 और वाक्य> = 2) या (अध्याय = 3 और वाक्य> = 1 और वाक्य और लेफ्टिनेंट ; = 4); एक्सेप्टेड परिणाम: 3 1 3 यह लाइन 3 4 1 4 है यह लाइन 4 5 2 1 यह लाइन 1 6 है 2 2 यह लाइन 2 7 2 3 है यह रेखा 3 8 2 4 यह रेखा है 9 2 5 यह लाइन है 5 10 2 6 यह रेखा है 6 11 2 7 यह लाइन 7 12 3 1 यह लाइन 1 13 3 2 यह लाइन 2 14 3 3 है यह लाइन है 3 15 3 4 यह लाइन 4 है कोई सुझाव? अपेक्षित परिणाम कैस...

.net - Does JIT convert the binary code of IL into binary machine code? -

This is in relation to .net. The code (high level: C #, Vb.net - can be understood as human) is compiled in VS and DLL / XE it is called IL (also more Or less human is sensible). For the first time on the machine, it changes the machine code from DLL / EXE, CLR / JIT IL (binary format: 0 and 1 - these are human sensible is not). This machine code is saved in memory, the next time conversion is not required, until the system is restarted. ILASM.exe is used in the dll / exe (IL code) machine code and ILDASM.exe is in contrast. If the compiler generates XE / DLL (IL) which is in binary format, then what is the purpose of JIT? Since the code is already in binary format ... Does this mean that the binary code of IIL has been converted into Junk Binary Machine Code? Please correct me on the statements given above. and dll / exe is generated This is called IL (also more or less human sensible). You need to differentiate between IL's binary , and IL's ...

asp.net - Data Access Application Block for .NET 4.5 using MVC 4 -

I am trying to develop an application using MVC 4. Earlier, I was using generic repositories to access my database. But later I was suggested to use the Data Access Application Block to access the data base in my application. I have not found any exact clue how this started with what anyone could suggest some links that can provide accurate information about the Data Access App Block for .NET 4.5 and MVC 4 And can also recommend some examples of its correct usage. Thanks in advance .. I think data access applications block is quite Is obsolete. Why do not you use ORM (such as the unit framework or NHibernate) to create an access layer for your data? As you can see

java - Get service properties or other bundles using Glassfish and CDI -

I use the Glassfish 4 OSGi console to manage the bundles. So, if I want to get a bundle from someone else, then I am using @inject and @ OSGISas annotation. When I register the service in the context, I enter the property with it: context.registerService (ServiceClass.class.getName ()), new service class (), prop); Can I get these properties in bundle some way, when I can inject it? Can I get bundle references using CDI? There are different implementations of some interfaces between bundles and I want to get them with properties by code, how can I get it? Try @Intext bundle context context; Do Inject @ OSGIService @ Filter ("myprop = a") MyService service to inject the bundle contact; To inject a service with some properties. It is from weld docks, but most of all it should work for glassfish too. For more information see this: >

Using Java HttpUrlConnection to download a PDF file,buffer set to 1024 bytes -- Wrong,but 8 is ok -

I want to use Java (Hispanic Link Connection) to download a PDF file, but there is some puzzle, The core code is: BufferedInputStream inputstream = new BufferedInputStream (httpConn.getInputStream ()); OutputStream Output = New File Optical Stream ("F: /httpclient-tutorial.pdf"); Byte [] infoBytes = new byte [buffer]; While (inputstream.read (infoBytes)! = -1) {output.write (infoBytes, 0, buffer); } Question: When buffer is 1024, then the PDF file is more than the actual, but the buffer is 8, so it's okay. I do not know why this is? Does anyone know about this? You are writing without any condition on the buffer on each walk You should only write as many bytes as you've read: int bytesRead; While ((BytesRed = inputstream.red (InfoBytes)) = -1) {Output. Written (InfoByte, 0, Bytes Reid); }

Renaming items in export menu in highcharts -

Can someone suggest that if anyway we can rename the item in the upper image in the export menu. Currently there are entries in it: Download the PNG image Download the JPEG image ... I want to remove the word "image". Also want to control the full style. There are many options for this, some can be done in JavaScript, and I'm sure CSS Can be done in more. Here is a desired text change and changes in some style are showing You can read more details below in the API on this has changed with the text: .. lang: {printChart: 'print chart', downloadPNG: 'download PNG', downloadJPEG: 'download JPEG', downloadPDF: 'download PDF', downloadSVG: 'download SVG', contextButtonTitle : 'Context menu'} More style and style of the menu: Navigation: {menuStyle: {border: '1px solid # A0A0A0', background: '#FFFFFF', padding: '5px 0'}, menuItemStyle: {padding: '0 10px', background: null, co...

map - Erlang list of tuples with another list of tuples inside to a single list -

So, I'm searching for a better way to do this. Incoming data is something like this (this can be a lot more than an example, but only one sub-level): [[{1, "1"}, {D2, "2"}, {sub_data, [{d1, "3"}, {d2, "4"}}}], [{d1, "5"}, {d2, "6"}]] I need to sort it ["5", "6"}] [{"" 1 "," 2 " }> Now I am doing this, which is not a great way: List: Map (Fun (Data) -> gt; [G (D1, Data), F: G (D2, Data)} + [["> & gt; ++ F: G (D1, SubData) }, {"& Gt; + + F: G (D2, SubData)}} SubData and LE Who I came with: changes (input) - & gt; List: Flaton (Lists: Map (Interesting - Item - - Change_Eystem (item, []) End, Input). Change_item (item, prefix) - & gt; {Kvs, subdata} = lists: (funny ({sub_data, _}) -> gt; false; (_) -> right end, item), res0 = list_to_tuple (lists: map (fun ({_, Value}} ([sub_data, SubItem}) -> change_item (sub...

tsql - How to get the Count of the subgroup in SQL -

How do I get a subgroup calculation? I have Table 1 and Table 2 (below) How do I get table results I am tired, but manage to get only the total rows. I'm trying out in Microsoft SQL Table 1 ID Prison Function 1 500 A2 500 B3 500 C4 501 A5 501 B6 502 C7 503 A Table 2 Predi Color 500 Green 501 Red 502 Green 503 Green Result Function Green Red Total A2 1 3b 1 1 2 C 2 0 2 Whatever I have tried down SELECT T1 Join 1, Table 1 T1, from the Task, Calculation (T1PRI) to the left table 2 T2 T1. Predi = T2. Perid Group By T. Function And I get this Result Function Total A3b2c2 Try it SELECT t1.Function, SUM (case when color = ' Green 'then 1 ELSE 0 END)) Green, in the form of SUM (case when color =' red 'then 1 ELSE 0 END), from the calculation (T1Pride), total 1 table 1 T1 with right Join Table 2 at T2 T1. Predi = T2. Pride Group by T. Function

Riemann Context for Hadoop to send metrics to Riemann using metrics2 interface -

Is there a library that can be integrated with different handop components (named Nomad, Detanode, JobTracker, tasktracker) Hadoop 2 component (resource manager) to send metrics to Riemann I wrote a library above the job This step is very clear from the library's "README". Here's a link:

php - jw player video not working if source is content type video -

I am using this code to play videos in jw player. & lt; Script type = 'text / javascript' & gt; Jwplayer ('player_1234'). Setup ({file: 'http: //localhost/media.php? Media_id = 1822', width: '100%', plugins: {}, Orienteo: '16: 9 ', fallback:' false ', primary: jwplayer .utils.isChrome ()? "Html5": "html5"}); & Lt; / Script & gt; Here, media.php file readfile () . to the right content-type video header. Media.php works fine when I enter directly into the browser. But the JW Player gives this error message "Error loading player: no playable source found" when the page loads. Please help solve this problem. Try this: For ID use 'id': 'playerID', add the following: 'type': 'mp4' , Now, the PHP file should work as a player's "file" variable , it will work fine.

regex - Hierarchical path RegExp -

I have to remove the known "level" from the hierarchical path using a regular expression; in other words, 'a / b' / X / c / d 'to' a / b / c / d 'where x could be at any level of the path. Using Javascript as an example, I have prepared the following: str = str.replace (/((:::(.+\/) ) | X (?: $ | \ / (. + $ "$$") /, "$ 1 $ 2") that works properly when the root of X The root is in the middle of the road, but when X comes to the end, I can create a place later to handle those examples, but will it be possible to create a better regex matching all the cases? Thank you. Edit : To clarify, all the levels of the path can contain any number of characters and I am only interested in deleting a level if that x matches exactly. Change: In the empty string , see the replacement below. Input a / B / x / c / d x / a / b / c / da / b / c / d / x output a / b / c / da / b / c / da / b / c / d explanation ...

json - JqGrid triand addJSONData add max 20 rows -

I'm changing to get better performance in grid with more than 20 rows in addjsondata, which add problem Addjsondata has been given that if I pass a rouadata out of more than 20 rows then it only adds the first 20 rows In use version 4.4.5 I should give you the toppager: correct or pager to display pager The parameter JqGrid creates always paging The default value of rowNum parameter is 20 (see "Default" column in the table). So jqGrid displays the first page (20 rows), the user does not even see a pager, allowing it to change the page. So you should use the rowNum parameter with something big enough value (like rowNum: 10000 ) or to display a pager Use the toppager or pager parameter parameter (or both) that allows the user to change the page. Finally, I recommend creating a grid to use datatype: "local" with the data parameter Use addRowData or addJSONData instead of . The way you will fill the data and display the first p...

chrome-extension: popup doesn't appear even with default_popup set -

I have tried to do everything, but whenever I click on the browser action button of my extension, the popup Does not display By clicking on the icon, the popup.html located on the directory src / cbrowser_action / popup.html is not shown, the console does not tell me any useful reason because I failed. I read a lot of other answers, but it all points out that I can not see anything. Here is my manifest {"name": "tool", "version": "0.0.1", "manifest_version": 2, "description": "", "Icon_online": "", "icon": {"16": "icon / at", "48": "icon / on page", "128": "symbol / page on"}, "default_locale "," Background_action ": {" default_icon ":" icons / on.png "," n "," background ": {" page ":" src / bg / background. Html "," persistent ":...

c# - Creating custom ActionFilterAttribute -

I created an ActionFilterAttribute named LayoutAttribute and added it to ActionResult: Controller: [layout (pagetype department, "DNR")] Public Action Resolve KD (String Main Body, Int DNR) { Layout Attribution: System.Web.Mvc using ; Using Komplett.Infrastructure.NInject; Using Ninject; Namespace Minion.Services.PageState {Public Category Layout Attribute: ActionFilterAttribute {Private Readonly PageTip _pageType; Private Redoni String _pageIdName; Public Layout Attribute (PageTipPageType, String PageIdname = "") {_pageType = PageType; _pageIdName = PageIdName; } Public Override Zero Onnection Acquisition (Action Accepting Contact Filter Context) {var page temmodel = kernelcontenter.color.gate & lt; PageStateModel & gt; (); If (filterContext.ActionParameters.ContainsKey (_pageIdName ?? "")) {pageStateModel.PageId = (string) filterContext.ActionParameters [_pageIdName]; } PageStateModel.PageType = _pageType; }} } The problem is that...

html - Is there a way to clean up a CSS stylesheet so that only active styling is kept -

I have recently started working on a web-app project, which was created and rebuilt multiple times by different developers has been done. Each time a new version was made, old people's stylesheets were kept, and they were only overridden by the new stylesheets. As of today I have the following sheets: style.css - 2009 style v2.css - 2011 style v3.css - 2012 mobile.css - 2013 tablet.less - 2014 main.less - 2014 I have been able to create a main.less file for which all things are necessary in the correct order, then I compile the CSS and reduce it so that my Pass only one, compressed file, but also, this is a very big way (over 250kb CSS compressed !!). I know that there are 50% rules in those stylesheets which are unused, because they are overridden one or more times; others will have too much work to do some manual deletion, app and CSS There is a big way for this. I am thinking that it is possible to keep only "active" rules in this CSS. I was thinking of u...

why is the input of a bootstrap inline form wider with validation format -

When I use verification elements in an inline form with Bootstrap 3, the width of the input is widening The general case of my observation is that when the input element is verified 30.5 px is removed from the input width and its padding is increased by 30.2px so that the space for glyphine span can be given. But in inline form, though the padding increases, the input width does not decrease. Here's the verification element I'm using: & lt; Div class = "form-group has success-feedback" & gt; & Lt; = "ExampleInputEmail2" for label class = "sr-only" & gt; Email address & lt; / Label & gt; & Lt; Input type = "email" class = "form-control" id = "exampleInputEmail2" placeholder = "enter email" & gt; & Lt; Span class = "glyphicon glyphicon-ok look-control-reaction" & gt; & Lt; / Span & gt; & Lt; / Div & gt; And here's a planker to c...

select values which contains specific characters in mysql -

I have a database table in which there are questions in the same column in Hindi and English but keywords [English] [En:] And [hi] Hindi language [hi:] and some of them are no different from language tags I only want to select those questions who have [en] [en] and [hi] [Hi] :] Tags in mysql select * mytable where my column '% [n]% [En:]% 'and' my name 'like'% [नमस्ते]% [नमस्ते]% ' ध्यान दें This query will not be performing, but that you do not bring your database. You can use a regex match to not find the 'tag', which contains other tags like [en] foo [hi] bar [en]: but this will also make the performance worse

c# - Throwing custom exception from SSRS -

Is it possible to throw custom exceptions from SSRs, which I can capture in C #? Something like this: try {result = ssrs.Render (format, blank, outside extensions, encoding out, out mimeType, out warnings, stream id out); } I will use it to not display the report in the client's system; I will use commercial logic in the report I would love to keep We want to throw an exception to not creating a report based on the data we raise an exception Have tried custom DLL for Unfortunately he was not working either. We have increased an error with a specific string from a stored procedure and parse the exception message in C # which has worked very well. Not as good as we would like.

javascript - jquery search list name from table -

इस सवाल का पहले से ही एक उत्तर है: 7 जवाब मैं खोजना चाहता हूँ लेकिन मेरे पास एकाधिक पंक्ति को td मान में खोज करने के लिए है, तो मैं सभी td से डेटा के साथ कैसे खोज सकते हैं? धन्यवाद! $ ("keyup", फ़ंक्शन () {var मान = $ (यह) .valval (); $ ("table tr")। प्रत्येक (फ़ंक्शन (इंडेक्स) {if (index! == 0) {$ row = $ (this); var id = $ row.find ("td: first")। पाठ (); if (id.indexOf (मान )! == 0) {$ row.hide ();} और {$ row.show ();}}});}); यहां नया jquery है:

bash - Finding the files which are not accessed/modified in last 30min? -

I have a requirement, I want to give notifications to users who have not entered the files in 30 Min . It is possible to find the files using the shell script, which was not accessible by using search in 30 min . I checked. find / opt / sp / titf / script / -mtm 0 The files which were modified in the last 24 hours. What is my requirement that was created in the last 30 minutes and has not been accessed by the user? Please suggest a solution, how to get it? Try to use Path-cm-30- And -min +30

java - How to establish a socket connection between a Play 2 server and a C# application? -

I have to establish a connection between the server that is written in the Client desktop application in Play Framework 2 and C # of Java. The nature of the system is such that many messages must be pushed from the server to the customer, so using sockets should be a natural approach, especially when they are supported by play (i.e., websicet). However, there is a lack of support for WebSocket by C # I managed to use the System.Net.WebSockets.ClientWebSocket class to connect to my server, but it The square is at very low level, type buffers ArraySegment & lt; Byte & gt; There is nowhere near the JS-implementation of WebSocket, where I can only get the string of variable length. This class is considered as the last resort for me, if I do not get a better solution. There is also the Alchemy websites library, but I can not get it to work. I start my server, check that it is working with the page and then starting the console client, but this is absolutely nothing, ther...

c# WinForms: Make part of the Form transparent -

Image
I have form1 in which the background message is accompanied by an error message and some buttons and then Shows when some error occurs. I have to make a part of the Form1 transparent, while the other part will contain an error message and it will be nonresprontent. Here's some illustration. Gray form 1 should be part of , 80% transparent how can I get it? So far, I have tried to play with opacity , but it makes the whole frame transparent. Please help me with this. I really need to make it today, thanks a lot. set back coral and transparency same color

selenium - How can I specify a different URL and/or Browser to run my C# WebDriver test against at runtime? -

I am using WebDriver and NUnit to create a test in C #. Is there any way to specify URLs and browsers without changing the code on the runtime and rebuilding? Actually, I can run against different URLs (Dev, QA, UAT etc) and different browsers without having to repeat the same test again. Many thanks. After more searching, I finally came from the solution, combining two best bits of other incomplete solutions The config file should be the same name as your test file DLL TestFile.dll.config and located in the same folder. This is the format of your config file: & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Configuration & gt; & Lt; Startup & gt; & Lt; Supported serial version = "v4.0" sku = ".NETFramework, version = v4.5" /> & Lt; / Startup & gt; & Lt; AppSettings & gt; & Lt; Add key = "TestURL" value = "http://www.example.com/" /> & Lt;...

ios - Getting wrong minor and major value of estimote beacon -

I am working on Esteemot Beacon and I am working to find the nearest Beacon Minor and Major value to the demo app. But when I check the App of Examples of Estimates, I am receiving the appropriate principal and minor value, but when I use that code in my project, I was given an inaccurate minor and prime value. This is my code: - typed enum: int {ESTScanTypeBluetooth, ESTScanTypeBeacon} ESTScanType; - (id) initWithScanType: (ESTScanType) scan type full: (zero (^) (ESTBeacon *)) complete {self = [super init]; If (self) {self.scanType = scanType; Self.completion = [closing copy]; } Healthy return; } - (zero) viewDidoadload [[Super Viewedload]; Self.beaconManager = [[ESTBeaconManager alloc] init]; Self.beaconManager.delegate = self; Self.region = [[[ESTBeaconRegion alloc] initWithProximityUUID: [[NSUIID ALOOC] Init WithUUID String: BECnUUD1] Identifier: @ A ???? All beacons ????]; If (self.scan type == ESTScanTypeBeacon) {[self.beaconManager startRangingBeaconsInRegion: self.regi...

json - Issues connected with update JsonStore ExtJs 3.4 -

I would like to display a window with a description of the error after requesting the server from the combo box. If I have an exception, I put it in the json object and sent it in the cline side. Jason object is like this. This is a part of my code where I send and receive data. I have tried to chew the data in every lighter of JsonStor, but this also does not work, there is a low inconsistency. Using ExtJs 3.4 this.folderNameStore = New Ext.data.JsonStore ({Proxy: New Ext.data.HttpProxy ({url: this.config.folderNamesPath, Method: 'by receiving "timeout: 120000}), listeners: {beforeload: {fn: function () {var informaticaRepositoryId = this.getInformaticaRepositoryId (); if (informaticaRepositoryId) {this.folderNameStore.setBaseParam ( 'informatica_repository_id', informaticaRepositoryId);}}, Scope: this}}, root: 'item', idProperty: 'folder_name', Fei LDS: ['folder_name']}); // Custom template resultTpl = new Ext.XTemplate (Search for ...

android - Whole layout going up with androidWindowSofInputMode="adjustResize" -

I am creating an app where the layout of my piece consists of three part-headers, content part, footnote (footnote) Edit Test)). I wanted to move the editing text up as the keyboard was opened. So, I'm setting the Android WindowSofInputMode = "Adjust Resize" but it's completely changing the size of the layout, except, just changing the size of the list view, since there is a wallpaper on my parents' view, and It has to be completely changed to layout. I see in apps like WhatsApp, and increment that only the editing text goes up and the chat wallpaper remains, as it does not (shrink). Use adjustments instead. This is absolutely fine.

android - How to show image view in Circle? -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर मैं साथ जा रहा हूँ गैलरी से चित्र करने के लिए छवि का दृश्य या कैमरा से चित्र लेने के बाद सभी प्रक्रिया के बाद हम छवि को डिफ़ॉल्ट रूप से एक वर्ग में देखते हैं, हम डिज़ाइन को एंड्रॉइड में एसडीके का उपयोग करके डिफ़ॉल्ट रूप से सर्कल आकार को बदल सकते हैं। क्या इसमें कोई संभावना है अगर किसी को इसके बारे में पता है तो कृपया मुझे मदद करें। इस विषय पर बहुत सारे पुस्तकालय और पोस्ट हैं। / यह xml का उपयोग कर रहा है

boost python - Return_value_policy for method with void return type and optional parameter -

I have a class with zero method and alternative argument that looks like this: Class A {public: zero method (int paragraph 1, ball para 2 = falls) {...}}; BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS (method, an :: method, 1, 2) class_ & lt; A & gt; ('A') .def ("method", & amp; a :: method, return_value_policy & lt; reference_existing_object & gt; (), method ()); What is the correct return_value_policy in this case? I have tried to completely avoid the return policy, but then I have received the compilation after error. 'boost :: mpl :: vector17 & lt; RT, most_derived & lt; Target, ClassT & gt; :: Type & amp; , T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 & gt; Boost :: python :: detail :: get_signature (RT (__cDEcl ClassT :: *) (T, T1, T2, T3, T4, T5, T6, T7, T8, T9, T -10, T-11, T-12, T-13, T-14) appreciated any suggestions. = "text"> I have put some things together. Bur I rea...

git - How to change postgresql.conf default values on Openshift -

I'm running CakePHP installation on OpenShift for six months. I database is PostgreSQL 9.2, I set up the Postgresql.conf file through open file in another postgresql.conf, editing PostgreSQL / data / postgresql.conf (there is postgrescill / con / postgrescill.conf) which did not change after the DB resume), after installing the file for the first time, everything was fine, to date that I Has pushed some changes, so the application restarted the database, and the application was showing me the errors related to the database datastyle, it is true that the postgresql / data / postgresql.conf file was reset I tried to change the default configuration, but after restarting the application I'm using this GIT repository for set up Whether Opensift has Postgresql.conf Changed the way Nfigr? Is there any other way of changing the default value of postgresql.conf ? I need to change # -------- ------------------- ------------------------------- ------------------- ...

regex - MySql - combine REGEXP and BETWEEN functions -

मेरे पास यह तालिका है। + -------- + ---- ------------ + | आईडी | E_id | + -------- + ---------------- + | 164462 | "3 1 2 4 6" | | 164463 | "185 1 2 4 6" | | 164464 | "3 1 2 1140 6" | | 164465 | "52 1 2 4 6" | | 164466 | "3 1 175 4 6" | | 164467 | "3 1 2 4 6" | | 164468 | "3 1 2 4 6" | | 164469 | "3 1 2500 4 6" | | 164470 | "82 1 2 4 6" | | 164471 | "3 1 2 4 6" | | 164472 | "3 1 50 4 6" | | 164473 | "3 1 2 4 6" | + -------- + ----------------- + मुझे वह पंक्तियां मिलेंगी जिनमें 175 और 2574 के बीच संख्याएं हैं, लेकिन संख्याएं केवल [[: space:]] से अलग हो गए हैं। मुझे इस तरह mysql क्वेरी का उपयोग करने की कोशिश की गई थी: select * तालिका_नाम से जहां e_id के बीच REGEXP '[[: space:]] 175 [[अंतरिक्ष:]]' और REGEXP '[[: अंतरिक्ष:]] 2574 [[: अंतरिक्ष:]]'; ... और इस तरह के बहुत सारे संयोजन हैं, लेकिन कोई भाग्य नहीं है ... मदद के लिए धन्यवाद!:)...

android - Is opencv manager is compulsory to install? -

If we are trying to apply using opencv , then the OdCV Manager Is Ndk mandatory to install? Is there any alternative to this so that nobody has to install OpenCiv Management because it looks strange if the customer has to install OpenCiv Management with our application. If you are running full image processing using OpenCV NDK (which is quite possible) So OpenCV Manager is not required. Data from the preview of the camera can be moved to your function written in the original C / C ++, where you can convert it to BGR / BGRA. One outline of that would be the following: Code in Java Public resident zero jniPart (int width, integer height, byte [] data); Where width and height image / camera is the width and height of the preview I'm assuming that you can process the frame with the camera Are there. In that case you can pass data from the camera which comes in the form of a byte array. In the C / C ++ code, you can convert the camera data to BGR using the followin...

c# - How can I isolate unit tests by class? -

Many of my 'unit tests' (they are actually integration tests) that use shared resources in many classes , And I want that every exam square only gets resources (for reasons of performance) However, when I leave the resource in [ClassCleanup] , I am having trouble, because that does not work until all the tests are completed Are there. Here's a simple example: Using Microsoft Visual Studio Test Tools Unit testing; Static class state {public fixed string thing; } [Test class] Public class class A {[Class Initialize] Public Static Wide Initialization (TestContacts CTX) {State. Ting = "hello, world!"; } [Class cleanup] Public static zero cleanup () {State.Thing = null; } [TestMethod] Public Zero Test A () {Assert.IsNotNull (state.Thing); // Verify that we have a good condition}} [test class] public class ClassB [[TestMethod] Public Zero TestB () {Assert.IsNull (state.Thing); // Verify that we have an unimplemented state // initial condition, stuff with it}...

python - Why does PhantomJS on Ubuntu register as a touch device by Google Maps? -

Fastdownmaj incompatible between Ubuntu & amp; Mac is recognized by Google Maps as a touch device on Ubuntu I recently stumbled across the operating system to look like an inconsistency in PhantamJS. To test Python 2.7 website applications, selenium module (2.42.1) and funmoz (1.9.7). While testing a webpage using Google Maps JS API 3, I found that Google Maps recognizes FantomJs as a touch device on Ubuntu, but is not weird on Mac. I have put together a simple one. What happens is that the zoom control buttons look different on touch devices like iOS or Android devices, they grow up and go to the bottom left corner. Run the following Python script # - * - Coding: UTF-8 - * - Selenium Import WebDriver from Import OS, Time Browser = WebDriver. FanTomS (service_log_path = os.path.devnull) browser.set_window_size (1280, 800) Browser.get ("https://notendur.hi.is/~sfg6/google_maps_example/") time.sleep (5) browser. Save_screenshot ('Test_google_maps_api_...

c# - Turn INFO off in PhantomJS Selenium Webdriver -

I am using Selenium Fanmom's Sedriver to scrap a page in my C # application. I use a lot of consoles, so I would like to stop the enfo messages, which it constantly outputs. Does anyone have the same problem? I think this string should be added to VSP answer: service.HideCommandPromptWindow = true; then Fixed IWebDriver CreateInfolessPhantom (string logfile path) {PhantomJSDriverService service = PhantomJSDriverService.CreateDefaultService (); Service.LogFile = logFilePath; Service.HideCommandPromptWindow = true; New FanatjsSee Dry Driver (Service); }

XSLT - XML data extraction -

मैं XML से डेटा का उपयोग करना चाहता हूं: & lt; स्रोत & gt; & Lt; LINK प्रकार = "1" & gt; https: //example.com< / LINK & gt; & Lt; LINK प्रकार = "2" & gt; http: //example-two.com< / LINK & gt; & Lt; / स्रोत & gt; और इसे मेरे एक्सएसएलटी में प्रयोग करें: & lt; xsl: मान का चयन करें = "प्रकार @ 1" / & gt; & Lt; a href = "{प्रकार}" & gt; टेक्स्ट & lt; / a & gt; इसलिए मुझे मिल सकता है: & lt; a href = "http://example-two.com" & gt; टेक्स्ट & lt; / a & gt; या & lt; a href = "https://example.com" & gt; टेक्स्ट & lt; / a & gt; यदि आप लिंक के संदर्भ में हैं, तो & lt; a href = "{।}" & Gt; टेक्स्ट & lt; / a & gt; उत्पन्न होगा: & lt; a href = "https://example.com" & gt; टेक्स्ट & lt; / a & gt; और: & lt; a href = "http://example-two.com...

sql server - index out of range exception in c# -

यह मेरा DataAccessLayer है सार्वजनिक स्ट्रिंग GetMinISecPer (ISecuritySummmary iSecObj) {try {string miniSecPer = नल; चुनें कॉमांड सीएमडी = नया चयन कॉमांड (SPConst.GetMinIsecPer); सीएमडी ["@ सुब्सुनमाम"] = आईएसईसीओबज। एसयूबीआईएसयूएनमाम; (DBDataReaderWrapper reader = cmd.Execute ()) {while (reader.Read ()) {double miniSecPercent = Convert.ToDouble (reader.String ["testValue"]); MiniSecPer = कन्वर्ट.ToString (miniSecPercent); }} वापसी मिनीएससीपीर; } पकड़ (अपवाद ई) {वापसी ""; }} यह मेरी संग्रहित प्रक्रिया है ALTER प्रक्रिया [dbo] [GetMinIsecPer] @SubISUName varchar (max) के रूप में घोषित शुरू @MinIsecPer तैरने लगते हैं। DECLARE @testValue varchar (20); सेट @ testValue = 'value'; सेट @ MinIsecPer = (चयन मिन (iSecComplPer) ISecurityStatistics IST से बाहरी छोड़ दिया में शामिल होने R.Id = IST.RelationshipId पर रिश्ता आर SI.Id = R.SubISUId पर बाहरी में शामिल होने SubISU एसआई छोड़ दिया जहां SI.SubISUName=@SubISUName और UploadedDate = ( चयन मैक्...

Check if a Scala / Akka actor is terminated -

While executing code inside an actor, I have to see whether the actor should still be advised whether the actor is still alive Or is there a better way? If (self! = Akka.actor.DeadLetter) {// do something} Thanks! Edit --- Thanks for all your input what is the following is I am using play on the start of my actor, on an incoming request, Timeout is scheduled. Promise. Timeout ({Logger.info (s "$ self, expired") // Something}, timeout) For other reasons before the expiration The actor is stopped (for example, the client disconnects). In that case, which I see in logs actor [akka: // application / deadLetters], the expiration period has expired. In my understanding, this means that the default deadLetters is executing that code. So my question is really: after the ending of the actor promises that what code is executed and what is the best way to stop it from moving forward? If your actor is dead, then there will be no code inside the actor. Y...

javascript - Populating Google Maps with Markers from C# List -

I am trying to populate a Javascript Google map with a C # list of the Google Map marker. I can get data from public floats, but not from the list. The list will be populated in the database but in this case the list is hard coded. I have a hard coded marker included. Any ideas? ASP.NET Web Form & lt; Title & gt; & Lt; / Title & gt; & Lt; Script type = "text / javascript" src = "http://maps.googleapis.com/maps/api/js?sensor=false" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Function InitializeMap () {var latlng = new google.maps.LatLng ('& lt;% = lat%>', ' C # public class placement {get public string placement name { Set; } Receive the latitude of the public float; Set; } Receive public float geometry; Set; } Public List & lt; Placement & gt; GetPlacementDetails () {Placement Placement = New Placement (); Placement. Placement name = ...

php - Symfony2 - numeric fields in form collection trigger database update -

I have two entities, called booking and rooms . Rooms have been embedded as a collection in the booking form. Everything works fine. Then I installed the SimpleThings / EntityAuditBundle to make changes to the version in the record. All this works well and according to the expectations, except one thing, Say I have room defined in booking . I edit bookings , but make zero changes in the form, and save it. Strange - A record is now in the cell_document table that I have changed my values ​​from cell records to embedded form collections and so on. But I did not make any changes before saving. Then through trial and error, I determine that if I remove the value form field from the RoomType embedded archive, which That type of type is currency , then this additional audit record is not visible if I change the field type of value to numeric Saves again on savings if I change field type to text This stops additional records show it does. SUMMARY It lo...