Posts

Showing posts from May, 2015

internationalization - Angularjs perform translation on a template loaded dynamically with JSON data -

I am creating an app that requires translation My app structure has something similar Kind of some Directirect.js -----> Load some directive templates Some directive templates - & lt; P & gt; {{Data.name}} So my question is, is it possible that the translation template? Something like & lt; P & gt; {{Data.name | Translate}} If so, how can I get it? I am using i18ng, which wraps i18next I highly recommend it, and It does exactly what you want and more. Obviously ng-i18next does about that, but I have not tried to do it.

javascript - Change background color of drop down menu on select -

How can the color of the drop down menu change as I have a drop down menu with 5 options, whenever I I click on an option, then I need an option to change that color, so that I can track what options I have already chosen. (5 is hypothetical here, there is a large list with IP and I can not remember so many fields as ports in the area). Just assumes my drop down var = document.getElementById (select ' ); Select.onchange = function () {select.options [select.selectedIndex] .style.backgroundColor = 'red'; } Var clean = document.getElementById ('clear'); Clean.onclick = function () {for (var i = 0; i & lt; Select ID = "Select" & gt; & Lt; Option val = "" & gt; Please select & lt; / Options & gt; & Lt; Option val = "1" & gt; Option 1 & lt; / Options & gt; & Lt; Option val = "2" & gt; Option 2 & lt; / Options & gt; & Lt; Option val = "3" ...

php - Laravel 4.0.9 error when run composer install -

Laravel 4 was never in the past for me when it was deployed. Version 4.0.9 is to be accurate. There is an error when running Composer root @ server1 [/ home / testapp / www] # Composer install alert: This composer's development can last for more than 30 days Is old Updating it by running "/ usr / local / bin / composer self-update" to get the latest version is recommended Loading composer stores with package information Installing dependencies (including Requirement-Dev) Your Requirements can not be resolved in the installable set of packages Problem 1 - Installation request for Laravel / Framework 4.0.9 - & gt; Satisfied with Laravel / Framework [v4.0.9] - Road / Generator Dev-Master needs illumination / support ~ 5.0 - & gt; Satisfactory by Roswell / Framework [5.0.x-dev], Illumination / Support [5.0.x-dev]. - Only one of them can install: Laravel / Structure [v4.0.9, 5.0.x-dev]. - Do not install brightness / support 5.0.x-dev | Do not install laravel /...

sockets - Python TCP Payload Duplication - Passing through data to multiple endpoints concurrently -

This is my first post here! My goal is to duplicate the payload of a unidirectional TCP stream and send multiple payouts to this payload concurrently. I have a working prototype written in Python, although I'm new to Python, and for socket programming. Ideally the solution is capable of running in both Windows and * Nix environments. This prototype works, however it creates a new sending TCP connection for each buffer length (currently set to 4096 bytes). The main problem with this is that I will eventually send from local ports, and ideally I want to pass data from each single incoming TCP stream to each single TCP stream (for each end point). The incoming data may vary from hundreds of megabytes to less than 1024 bytes. Currently, a new outgoing TCP stream is started for each 4096 bytes. I'm not sure whether the problem is in its implementation of threading, or if something else is not really clear at all. In my research, I have found that selection () can help, t...

azure - Recurring appointment created in EWS in timezone UTC is shifting 1 hour after daylight saving time changes -

I have a recurring appointment which I created with Exchange Web Services EWS 2.0 in C # which is connected to Office 365 Exchange it happens. Appointments for summer time are displayed correctly on my Outlook agenda but after October 26 (during winter) the appointment was transferred with an hour (before). Obviously this is something with daylight saving time, but I can not understand how it works. I would say that the appointment should be set in the scheduled time and UTC by Outlook to display at its correct timezone (UTC + 1 Amsterdam) and DST. But it fails on DST. As you can see in Co, the relevant part of the code that I use to make the appointment: Create the service: Exchange service _Service = New ExchangeService ExchangeVersion.Exchange2013_SP1, TimeZoneInfo.Utc); Set the timezone: appointment Starttime = time zone info.utc; Appointment Endimjon = timezoneinfo UTSC; But still the appointment is shifted on Daylight Savings Changes. How can I make recurr...

node.js - Specify path to node_modules in package.json -

Is there a way to move the node_module directory into an application, say to say bowerrc / bower to vendor / node_module Does it with? I thought it can be specified in package.json but I can not find any solution. Your help is greatly appreciated. Yes, you can only set NODE_PATH env variable: According to the document: If the NODE_PATH environment variable is set to one colon, then export export NODE_PATH = 'yourdir' / node_modules The list of complete paths, then the nodes will find those paths for the module, if they can not be found anywhere else. (Note: In Windows, NODE_PATH is delimited by semicolons rather than colon.) Additionally, the node will search in the following places: 1: $ HOME / .node_modules $ HOME / .node_libraries 3: $ PREFIX / lib / node Where $ HOME is the user's home directory, and the $ PREFIX node is the configured node_prefix . These are mostly for historical reasons. You are strongly encouraged to place your dependencie...

Javascript dynamically created functions in an object -

I'm just studying JavaScript and I had to face a problem related to scoping. Here is the code function user (attribute) {for (in properties i) {(function () {this ['Receive' + i] = function () {Return Properties [i];};}) (); }} Var me = new user ({id: 54, name: 'oahu'}); Console.log (me.getName ()); Console.log (me.getId ()); How do I want to work it out? It has two functions: getName and getId related to Object How it works: It does two things as I want, but they are related to the window : I tried to remove the line from the function. 3. I do what I do, but now it returns name "ohau" twice, instead of returning id and names I tried to use the work from the window , like the problem remains in the previous case - this is the name Gives twice. Question: What am I doing and how do I work it, as I want? Sorry for creating this post using a PS phone, for potential typo or formatting problems. Also, please forgive ...

javascript - Get html checkbox list checked values to a hidden field -

How to obtain the checked checkbox ID in a hidden variable? I am getting this error Syntax error: non-end string string Verbatim test = $ ('input [name = \' data-grid_kac [] \ '). Val (); The data-grid_c0 checkbox is the name of the array. & lt; Input type = "checkbox" name = "Data-grid_c0 []" id = "data-grid_code_1" value = "1" & gt; & Lt; Input type = "checkbox" name = "data-grid_kack []" id = "data-grid_code_2" value = "1" & gt; & Lt; Input type = "checkbox" name = "data-grid_kac []" id = "data-grid_code" "value =" 1 "& gt; Below I have written jquery code. Click on (check the function ')' at the top of the file (function () {var atLeastOneIsChecked = $ ('Input [name = \ "data-grid_c0 [] \"]: check' ) Length = gt; var test = $ ('Input [name = \' data-grid_kac [] \ ')....

matlab - Measure how spread out the data in an array is -

I have zero and one array and I have to know whether the data is spread in columns or centered in clumps. For example: If I have the array x and have these values: Column 1 value: 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 Column 2 Value: 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 If we calculate the number of people, then we know that this is the same number, but they have spread more well and the columns in column 1 Are distributed in comparison to 1. I am trying to score a score which gives me a higher value if the spread is good and the low price is spreading bad ... any thoughts ?? Sample of data: 1 0 0 0 0 -2 -3 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3 -3 1 0 1 2 3 0 5 0 2 13 4 5 1 1 0 0 -4 34 0 0 1 I think what you are trying to measure is the variance of di 1 s, ie: f Data for you: Pre> a = [0 0 0 0 0 0 0 0 0 0 1] F (A) = 8.0498 F (B) = 2.0736 But I still believe that you measure the system's disorder Essentially...

formal languages - Predefined Set in Alloy -

I am trying to learn alloy imagery. Lang . I can not find a way out of the question. My question relates to the predefined number of elements. Theater_set must have 4 members in the set. The audience must have 10 members in the set. is a theater which is available in 4 seats. But there are 10 people who want to see the theater. Only 4 of them can be held. The rest will have to go back home. I am in trouble. Can you help me about it? Thanks in advance. Edit Here is my code: module example sig Audense {Result: Single Seat} Some Sig Seat {} previous valid notation {'#' seat = 4 '#' audience = 10 all A: audience | Alone a.result} Run valid disbursement edit How can I eliminate that problem? (Sitting on a single seat) Regards Can you show us what You had already done it, and find out where you are absolutely right, there will be an ambiguous answer to the unclear question: "seems declarative". Edit Here it does not work for tw...

java - Android MyFirstApp - Unfortunately application stopped working -

I designed the first application in Android by following the tips mentioned in "Send" button Press, it shows the "Unfortunately the app works to stop working" and related logs are as follows 10-10 12:10 10: 04.029: D / DelWiki (550): Late not able to checkJN (already) 10-10 12:10 10: 06.549: D / Gralok_Goldfish (550): Emulator was detected without GPU simulation. 10-10 12:10 10: 26.169: D / Android Random (550): VM 10-10 12:10 10: 26.169: W / DelWiki (550): Threaded = 1: threads with no exception (Group = 0x409961f8 ) 10- 12 12: 10: 26.229: E / AndroidRuntime (550): Fatal Exceptions: Main 10-10 12:10 to 26.229: E / AndroidRuntime (550): java.lang.RuntimeException: Unable to Initiate Activity ComponentInfo { Com.example .myfirstapp.Com.example.myfirstapp.DisplayMessageActivity}: java.lang.IllegalArgumentException: No visual piece found for PlaceholderFragment {4108e7c8 # 0 ID = 0x7f080000} ID 10-10 12 for ID 0x7f080000: 10: 26.229: E / AndroidRuntime (550)...

why I don't always get ItemElementName in wsdl+xsd code generation from choice-element with WSCF blue? -

I use WSCF blue to generate web service code from wsdl. Occasionally in XSD, Option-Element items and Items are generated from ElementName, sometimes only items do not get any arguments in this. The answer is that the same option-element should be typed in schema such as 2 int option or 2 string There are alternatives, so now it can not be known only by type. There were three different types of preferences in my example - & gt; No Name Name and Property No

CSS3 3D flip card effect with SVG elements -

Is CSD a way to create 3D flip cards that have an effect in SVG made with S3? I should be part of the D3 chart flip, similar to the effect described for HTML elements, revealing different content on the back. It also includes the effect. Is this a way to apply in parts of a D3 chart? itemprop = "text"> The fact that you are using D3.js does not affect the ability to make 3D conversions is. The fact is that you are using SVG, however, make it complicated. SVG has its own transform system and coordination system, which is not in line with the way CSS implementation is implemented on HTML elements. However, the implementation of the browser is still very incompatible. As Lars said in the comment, if you want to flip your entire SVG, then it is a matter of implementing CSS changes (as described) to parents & lt ; Div & gt; . However, in order to "flip" a separate SVG element or group to reveal different content, you need two different SVG el...

hadoop - Which user does oozie impersonate when submitting job through a coordinator -

เค•ैเคธे เค‰เคชเคฏोเค—เค•เคฐ्เคคा เค›เคฆ्เคฎเค•เคฐเคฃ / เคช्เคฐเคšाเคฐ oozie เคฎें เค•ाเคฎ เค•เคฐเคคा เคนै? เคกिเคซ़ॉเคฒ्เคŸ เคฐूเคช เคธे เค“เคœ़ी เค…เคชเคจे เคธเคญी เค•ाเคฐ्เคฏों เค•ो oozie เค‰เคชเคฏोเค—เค•เคฐ्เคคा เค•े เคฐूเคช เคฎें เคจिเคท्เคชाเคฆिเคค เค•เคฐเคคा เคนै। เค•िเคธी เคญी เค‰เคชเคฏोเค—เค•เคฐ्เคคा เค•ा เคช्เคฐเคคिเคฐूเคชเคฃ เค•เคฐเคจे เค”เคฐ เค“เค“เคœी เคจौเค•เคฐिเคฏों เค•ो เคšเคฒाเคจे เค•े เคฒिเค เคตिเค•เคฒ्เคช เคนोเคคे เคนैं, เค†เคฆเคฐ्เคถ เคฐूเคช เคธे เค•เคฐ्เคฌोเคฐ्เคœ्เคก เคตाเคคाเคตเคฐเคฃ เค”เคฐ เค…เคจ्เคฏ เคช्เคฐเคคिเคฌंเคงिเคค เค•्เคฒเคธ्เคŸเคฐ। เคฆेเค–ें - เค‰เคชเคฏोเค—เค•เคฐ्เคคा เคช्เคฐाเคงिเค•เคฐเคฃ เค•ॉเคจ्เคซ़िเค—เคฐेเคถเคจ

c++ - Qt::make_shared for creating QSharedPtr as std::make_shared for creating std::shared_ptr -

As stated in the Barjini Stroustrup's "A Tour of C ++", and a known C ++ 14 practice As such, someone should avoid the naked code in the new and delete . Provides std :: make_shared and std :: make_unique to create smart pointers to store allocated items in the standard library. However, it is not possible to use these routines for non-standard smart pointers, such as QT's own memory management model (with parent), but also smart pointer class like Provides QSharedPointer and QPointer (although later it is not actually a brochure indicator). My question is: Is not it convenient to create Qt analog of std :: make_shared ? To like it, QSharedPtr : Namespace Qt {template & lt; Class T, squares ... Args & gt; QSharedPointer & LT; T & gt; Make_shared (erg & amp; ... args) {return QSharedPointer & lt; T & gt; (New t (std :: forward & lt; ergos & gt; (args) ...)); }} or to create this, QPointer : named place ...

php - best way to call function from an extended class -

Image
I am using phpstorm as IDE and my class. In php , I started class as class, database {function sample ()} {$ this-> Query (); }} is in the query () class database . But phststorm shows a warning that method 'query' class was not found in MyClass. The method referenced in the subject category is not found. But the function is working without any problem. Is there any problem with this code style? Or do I need to try a different approach? I searched for many websites but did not find a proper answer. Please help. Thank you. The problem should be called in class or by a method, from the class after the class is started . You edit $ this not in the law area in a class edit, OP changed question: OK for me Works, no warnings

sql - Outer join in Oracle -

Text after " I have written a code for external join in Oracle. It's giving me the 'keyword missing' error table Fenergo_data_01 can be created as selection tab1. *, Tab2. *, Tab3 *, Tab4 from Fenergo_ext_ref_data * Tab1 full external Fenergo_cntry_incorp_data tab2 join full join external tab3 join Fenergo_address_data full external tab1.FGO_ID = tab2.FGO_ID and tab1.FGO_ID = tab3.FGO_ID and Fenergo_MCH_data tab4 on tab1.FGO_ID = tab4.FGO; Can anyone help me? At the end of the join condition for each need to specify ( for section), did you like to join once: CREATE TABLE selected as Fenergo_data_01 tab 1. *, Tab 2 *, Tab3 *, Tab 4 * Fenergo_ext_ref_data Tab 1 on full oz Fenergo_cntry_incorp_data tab2 from tab 1. FGO_ID = Tab 2 FGO_ID Full Outer Tab 1 on Fenergo_address_data tab3 FGO_ID = Tab3 Join FGO_ID FULL OUTER Fenergo_MCH_data tab 4 Tab1.FGO_ID = tab4.FGO;

ejabberd - Unable to get xmpp muc room information in android -

I am using the asmack library for my chat application. Meg Room information: Using the code described after successful login: MultiUser Chat Multi User Chat = New Multius Chat (Connection, "VJNEMO Seandroid @ Confir.chat"); MMultiUserChat.join (USERNAME); Try {if (mMultiUserChat.isJoined () == true) {RoomInfo roomInfo = mMultiUserChat.getRoomInfo (connection, "VjNewMoiosandroid@conference.chat");}} hold (exception e) {// TODO: handle exception e.printStackTrace ( ); } I get this error while getting room information, while I debug and check that I am getting room information in the log but nothing Do not come in the room. 10-10 08: 55: 12.388: W / System.err (1821): java.lang.ClassCastException: org.jivesoftware.smack.util.PacketParserUtils $ 2 org.jivesoftware.smackx .packet.DiscoverInfo can not be molded 10-10 08: 55: 12.428: W / System.err (1821): 55: 12.458: org.jivesoftware.smackx.ServiceDiscoveryManager.discoverInfo (ServiceDiscoveryManager.java:60...

php - Symfony2: cache busting and versioning assets with Assetic -

How to add assets to load worldwide for assets? Config.yml: Engine: ['walk'] property_version: v2 This works for regular assets, but not within the stylesheet for asset_url And javascript property block What am I doing something wrong or is it some kind of bug? Small update this assets_version_format without working for me Does not work. config.yml: Settings: Templates: Engine: ['walk'] property_version: 1.0.1 assets_version_format: '%% s? V = %% s' Example: {% JavaScript '@DashboardBundles / Resources / Public / JS / config.js'%} & lt ; Script Type = "Text / JavaScript" Src = "{{asset_url}}" & gt; & Lt; / Script & gt; {% Endjavacripts%} Result: & lt; Script type = "text / javascript" src = "/ js / config.js? V = 1.0.1" & gt; & Lt; / Script & gt; If you want to test in the Dev environment: config_dev.yml: Acetic: Usage_controller: false ap_...

java - Selenium WebDriver click on input element to upload file freezes -

I have to click on an element to upload a CSV file with Selenium WebDriver in JUNเคจेเคŸ The input looks like this: & lt; Input type = "file" name = "upload 0" size = "56" value = "" id = "dateIIMport SHRITICCCV_upload 0" /> If I click on that input element then the OS window opens where I have to select my file to upload. My problem is that if I click on the input like this I am using selenium for: driver.findElement (By.xpath ("// div [@ id = 'wwctrl_DateiImportSchritt2Csv_upload0'] / input")) .click (); It opens the OS window, but freezes the whole test without any exceptions. If I manually close the window, my test continues. In another place in my code, I have to download a file. It is very similar, except that it is not an input element, but an anchor element ( & lt; a & gt; ) and it works fine. An OS window without my trial cold? Also try the submit () , but even the window does ...

java - NoSuchMethodError ClassTypeInformation.from -

เคฎैं เคนै เคจिเคฎ्เคจเคฒिเค–िเคค เคจिเคฐ्เคญเคฐเคคा & lt; เคจिเคฐ्เคญเคฐเคคा & gt; & LT; เค—्เคฐुเคช & gt; org.springframework & lt; / เค—्เคฐुเคช & gt; & LT; artifactId & gt; เคตเคธंเคค-เคตेเคฌ & lt; / artifactId & gt; & LT; เคธंเคธ्เค•เคฐเคฃ & gt; 4.0.7.RELEASE & lt; / เคธंเคธ्เค•เคฐเคฃ & gt; & Lt; / เคจिเคฐ्เคญเคฐเคคा & gt; & LT; เคจिเคฐ्เคญเคฐเคคा & gt; & LT; เค—्เคฐुเคช & gt; org.springframework & lt; / เค—्เคฐुเคช & gt; & LT; artifactId & gt; เคตเคธंเคค-webmvc & lt; / artifactId & gt; & LT; เคธंเคธ्เค•เคฐเคฃ & gt; 4.0.7.RELEASE & lt; / เคธंเคธ्เค•เคฐเคฃ & gt; & Lt; / เคจिเคฐ्เคญเคฐเคคा & gt; & LT; เคจिเคฐ्เคญเคฐเคคा & gt; & LT; เค—्เคฐुเคช & gt; org.springframework.boot & lt; / เค—्เคฐुเคช & gt; & LT; artifactId & gt; เคตเคธंเคค-เคฌूเคŸ & lt; / artifactId & gt; & LT; เคธंเคธ्เค•เคฐเคฃ & gt; 1.1.7.RELEASE & lt; / เคธंเคธ्เค•เคฐเคฃ & gt; & Lt; / เคจिเคฐ्เคญเคฐเคคा & gt; & LT; เคจिเคฐ्เคญเคฐเคคा & gt; & LT; เค—्เคฐुเคช & gt; org.springframework.boot & lt; / เค—्เคฐुเคช & gt; & LT; art...

java - How do I access Selenium WebDriver's (DOM) representation of a page in a debugger? -

I've just joined a team which uses Selenium WebDriver (with Java), and I was wondering if it represents an object (for example) a DOM model) in the memory of the current page Can I see in a debugger? At the moment, I get a lot of errors, which can not find the web device I'm looking for, and I thought it might be able to see "click through" to see that In fact, the element (element) is aware of it, however, the WebDriver-related examples that I investigated did not contain any page-specific information. Of course, is WebDriver present in the memory of a page's content? Which class of example I am looking for? resolve terminate your selenium script formally without closing the browser (Do not call quit () or do something like quit () ). This is how the browser stays around and you can open Developer Tools to inspect the DOM. Explanation The DOM has no representation in Selenium on the client side. Client side is your selenium script. Of cours...

java - NullPointerException on onPostExecute method -

I get a navigation drawer for my app that has a menu with which I can navigate between the pieces. The first piece that comes after the apple luncheon is the home in which there is a list view and an attached footprint on the bottom (only for testing). The problem occurs when I do not have a home piece lunch for the first time and used to do its job very well, but when I change the piece from the navigation drawer and trying to bring the piece of house back to the app crash . Error log shows me a null pointer exception. This is my code description onCreateView method @ override public View Creatives (LayoutEflettter Inflator, View Group Container, Bundle Saved InstantState) {if (v! = Null) {ViewGroup parent = (ViewGroup) v.getParent (); If (parents! = Zero) parents .removeView (v); } Try {V = inflater.inflate (R.layout.fragment_homes, container, false); ListView = (list view) v.findViewById (R.id.homeList); L = New HomeList Adapter (this, home list); If (L == empty) Log.i ...

c++ - Find filename extension in directory -

All, I'm new to C ++, so I did not search for the correct function Can, vocabulary, etc. I'm using the getopt to get the argument on the command line. Those logic are directories on the local drive. When the code is executed, I want to see it in that directory for a certain file extension. When it searches for this extension, I'll do something with the file, change the name of the file, and then copy the file to second place. I'm trying to find the filename extension. As far as I am showing all the files in the directory: main.cpp: int opt ​​= 0; / * If the argument number is passed, then check all arguments / when ((opt = getopt (argc, argv, "b: m: o: hh") = EOF) {switch (opt) {case 'b' : DirCopyEvent (Optage); breakdown; dirCopyEvent.cpp: zero dirCopyEvent (char * fileToFind) {cout dirCopyEvent is called the main. I know That I need to parse the D_Names for the file name and then in some way the extension will be found, but any he...

email - JavaMail - Mail sent "ok"... but it doesn`t arrive -

2 months ago, I have configured JavaMail, to send an email to the app. After many problems, I manage to solve (thanks to the overflow stack of some of them), I send emails ... and it comes to their recipients. Now, the process is trying again, such an email (the same recipient) ... but the email does not come (either inbox or spam). Transport.send and the rest of the code, no exceptions. What can you do? If you do not receive any error from Transport.send, your mail server has accepted the message for delivery. If it is not delivering you will have to check your mail server logs. If this fails, it does not matter which email address you send, and what is the content of your message, then some mail server.

php - Different Behaviour on ECS, Heroku, Local -

เค‡เคธ เคธเคตाเคฒ เค•ा เคชเคนเคฒे เคธे เคนी เคเค• เค‰เคค्เคคเคฐ เคนै: 22 เค‰เคค्เคคเคฐ 1 เค‰เคค्เคคเคฐ เค•ोเคก เค•ी เคฐेเค–ा เค•ो เคฆेเค–เคคे เคนुเค, $ result = pg_fetch_all (pg_query ($ dbconn, $ query)) [0]; เคธ्เคฅाเคจीเคฏ เคฐूเคช เคธे, เคฎेเคฐे เคฎैเค•เคฌुเค• เคชเคฐ, เคฏเคน เค ीเค• เค ीเค• เคšเคฒाเคคा เคนै। เคนेเคฐोोเค• เคชเคฐ, เคฏเคน เคญी เคฎाเคฎเคฒा เคนै। เค…เคฎेเคœ़ॅเคจ เคˆเคธी 2 เคชเคฐ, เคนाเคฒांเค•ि (เค…เคฎेเคœ़ॅเคจ เคฒिเคจเค•्เคธ เค•ा เค‡เคธ्เคคेเคฎाเคฒ เค•เคฐเค•े, เคœो เค•ि เค•ोเคˆ เคซเคฐ्เค• เคจเคนीं เคชเคก़เคคा), เคฏเคน เคฐेเค–ा เคฎेเคฐे เคฒॉเค—เคซाเค‡เคฒ เคฎें เคฆिเค–ाเคˆ เคฆेเคคी เคนै เค”เคฐ เค‡เคธे เค‡เคธे เค…เคจुเคฎเคคि เคจเคนीं เคฆेเคคा: PHP Parse error: เคตाเค•्เคฏเคตिเคจ्เคฏाเคธ เคค्เคฐुเคŸि, เค…เคช्เคฐเคค्เคฏाเคถिเคค '/' เคฎें / var เคฒाเค‡เคจ เคชเคฐ /www/html/index.php ... เคชเคข़เคจा, pg_fetch_all เคธเคนाเคฏเค•-เคธเคฐเคฃी เค•े 0-เค†เคงाเคฐिเคค เค…เคจुเค•्เคฐเคฎिเคค เคธเคฐเคฃी เคฆेเคคा เคนै। เคคो เคฎेเคฐा เคธเคตाเคฒ เคฏเคน เคนै, เคฎैं เค•्เคฏों pg_fetch_all (เคœो เคญी) [0] เค•ा เค‰เคชเคฏोเค— เคจเคนीं เค•เคฐ เคธเค•เคคा / เคธเค•เคคी เคนूं เคฏा เค•्เคฏा เคฏเคน เค…เคฎेเคœ़ॅเคจ เคธिเคธ्เคŸเคฎ เค•े เคเค• เค…เคœीเคฌ เคตिเค•ेเคŸ เคนै? เค‡เคธ เค•ाเคฐ्เคฏเค•्เคทเคฎเคคा เค•ो เคช्เคฐाเคช्เคค เค•เคฐเคจे เค•े เคฒिเค เค†เคชเค•ो PHP 5.4 เคฏा เค‰เคธเคธे เค…เคงिเค• เค•ी เค†เคตเคถ्เคฏเค•เคคा เคนै: เคช्เคฐเคคि

DB2 - Sorting alphabiatically -

I have a DB2 database that I am trying to sort alphabetically. The problem is, DB2 is not considered A while during a sorting, thus I get results like this: ABCT abcg I want to: A now BC CGT What special thing do I need to know which I do not know? In SQL, we have the callout encase ASC. Can anyone tell me what is the option for this in DB2? If this is the problem once (ie with a single query), then the solution is that @ Paul Stearns is recommended (using UPPER () ). However, if this is an issue that will affect all questions in your application, you should consider what should be appropriate for your database. The default calling sequence type based on the code point, which is why you see the sort order visible. Unfortunately you can not change the coating sequence for a database; It is set when the database is created. So once you have decided what is the correct calling sequence, you will need to create a new database and copy the data from the existing data...

javascript - twitter bootstrap + grails kickstart breaks jquery -

I'm using grails kickstart to add twitter bootstrap to my app and it's causing problems with jquery libraries I can not work on the DOM object: What I found: & lt; Script & gt; $ (Function () {// page load $ .post ('$ {createLink (controller:' function ', action:' create ')}', loads function (data) {$ ('# AndersonModal') Model ();}, "html"); $ ('#othermust'). Click (function () {console.log ("Modal button clicked"); $ ('# AndersonModal') Model ('show');});}); & Lt; / Script & gt; & Lt; An id = "andersonTest" href = '#' & gt; Anderson & lt; / A & gt; & Lt; Div id = "Anderson model" class = "model feed" tabindex = "- 1" role = "dialog" area-libelibil = "mymodel label" axia-hidden = "true" & gt; & Lt; / Div & gt; When I click on the link, it sets the JS fire, but says th...

openssl - Opennssl command to use s_server argument along with Cipher -

Can someone help me with how to use cipher logic in the openssl command with the sserver argument. @ submit my order this is .. openssl s_server -accept 11651 -Cart MVNR1.crt -key MVNR1.key -CAfile SS8CA1.crt -tlsextdebug -msg -state -debug but I want to give permission for specific cipher TLS_RSA_WITH_AES_256_CBC_SHA I have tried several audiences. openssl ciphers -v 'SSLV3: RSA: + AES256: + SHA' openssl ciphers -v 'RSA: + DHE: + AES256: + SHA' openssl cipher - v 'TLS_RSA_WITH_AES_256_CBC_SHA' To cipher some output related to these commands, but the real problem starts here I want to use this cipher with s_server logic openssl ciphers -v 'TLS: RSA: + AES 256: + CBC: + SHA S-Acer-Accepta 11651 -Creat MVNr 1.crt-of MVNr 1.Ki -AFI SS8CA1.crt -tlsextdebug -msg - State -debug I ordered this Tried that it is not working. Can anyone tell me how to use this PLS .. !! I think that you type s_server as standard command, and then Use the...

android - confusing java: a method calls another method which returns something -

I am working on this and the following code has stumped me: Public RequestQue GetRequestQueue () {if (mRequestQueue == faucet) {mRequestQueue = Volley.NewRequestQueue (getApplicationContext ()); } Return mRequestQueue; } Public ImageLoader getImageLoader () {getRequestQueue (); // getRequestQueue returns an object, but we do not have any variable to get it .. How is this possible? If (mImageLoader == faucet) {mImageLoader = new image loader (it. M.E.E.E.UEUUUUU, new LRUBitMapCach ()); } Come back. } The problem is that getRequestQueue returns an object, but we do not have any variables to achieve it. How is this possible? Example: It should not be this way: RequestQuee X = get requestQueue (); So, what request can we work with, when we did not take it in one variable? getRequestQueue () , in contrast to its name, actually with side effects One reason is this method that it makes sense to call that method and to abandon the value in return. After the law returns ...

sql server - Should you put Indexes on a SQL Table that you are updating? -

We have a working table that we make over one million records every night. It takes about 3 hours to complete this process overnight. In the process we first include all the data in the table. Then we make many updates to the table. For example: Set as a working table from a.Field1 = b.Field1 as a Join table 2 where a.ID = B.ID At this point we do not have any indexes or keys specified on workingtable . > To answer this question, you must first know how keys and indexes work in SQL Server. A primary key, by default, is a compiled unique index. Although this is slow to record, the recession should be reduced. The actual drop in the display is usually a where a SQL query or a DML statement occurs in the section, which causes the table scan if you update enough records after the initial creation, then Adding a primary key or clustered unique index to the ID column will be a performance win. In fact, the primary key or an index falls below this question: ...

android - Redial menu from top right corner -

I am developing an app that has a redial menu, which shows different buttons. There are several demo available from the redial menu, but I want to display the right menu from the top right corner. Help or any suggestions The standard button placement is the top-right corner of the Actionbar if you use standard menu metaphor in your actionbars Button, you can put a button to do whatever you want in the upper right corner.

angularjs - Getting ngModelController of the input -

I need to access the input element ngModelController to check it is filthy or outdated. I have been able to do it with the directive which captures the NGModal of the input of the data object associated with the element, it can be obtained from anywhere: Replace: wrong, scope: false, is required: "ngmodel", link: function (scope, element, etters); app.directive ("input", [function () {return {restrict: "e" , CTRL) {element.data ('ngModelController', ctrls)}}}}) I know that this instruction is used as a specialty Can be modified to make it not, so it is less coupled with the 'input' tags. I use those saved controllers in the instructions that represent UI elements and they have input elements in their markup. I do not use forms because those elements are either Dome should also work in context, and form indicates some limitations for the hierarchy, so I am using ngModelController so that some items required to verify the field...

c# - How can I change the hidden attribute on a windows folder using .NET? -

How can I change an attribute on an existing folder? I have to make this folder and all the files appear in the current one. C: \ Documents and Settings \% USER% \ appdata I found this code: file attribute property = file. GetAttributes (@ "C: \ Documents and Settings \% user% \") "Properties = Extract Properties (Features, FileAttributes.Hidden); Private Static FileAttributes RemoveAttribute (FileAttributes Attributes, FileAttributes attributesToRemove) {Return Attributes & amp; ~ AttributesToRemove;} But this is not working: ( Thanks! In your code, you are only updating the features variables, but are not actually updating the attributes for the file. SetAttr Ibutes ('path', attributes)

php - Is it bad to inject controller class into a controller class? -

I have to try to follow the single responsibility principle, I view the presentation decided that I could be in another class. I already plan to use 5 dependencies to render the form. Therefore, the main controllers who have less dependencies in form injection are good. I did not inject the controller class ever in the controller classes. What I usually do, I create a library But now thinking - maybe a better controller will be in for an injection in a controller? Tried to search for this, but did not find any examples but at the same time tried to create a controller with the constructor function and echo a string. Then inject this controller into another one. And the string is displayed. So it means that it is possible to inject the controller in the controller, is it good? Or maybe it would be a necessity? By default Laravel does not have a library folder which is also interesting, that the creators may assume that it is not needed. Yes, it is bad controllers have...

javascript - Chrome Extension won't run function on button click -

I have this code on which you can scrap the HTML on the website you are on and copy it to the clipboard. I currently have a working version, when you click the Chrome icon, but I want to add many other options, so I'm trying to run a script by clicking the button under the extension popup. Unfortunately, I can not manage to be something on the button click for my life! When I change my function with Alert ("Hi"), when clicking on the extension icon instead of the button inside the popup, this alert fades. I document.addEventListener ('DOMContentLoaded', function () {document.getElementById ("full_team"). AddEventListener ('click', warning ("HI")) ;;}) & lt; Body & gt; & Lt; H2 & gt; Click to copy your roster & lt; / H2 & gt; & Lt; Button id = "full_tam" & gt; Full team & lt; / Button & gt; & Lt; Script src = "event.js" & gt; & Lt; / Script & gt; ...

javascript - Print CSS properties to HTML -

เคฏเคน เคฎेเคฐा HTML เคนै: & lt; dd class = "course_progress_steps" title = " 7 เคฎें เคธे 4 เคšเคฐเคฃ เคชूเคฐ्เคฃ เคนुเค "& gt; & Lt; div class = "course_progress_percentage" เคถैเคฒी = "เคšौเคก़ाเคˆ: 57%;" & gt; & lt; / div & gt; & Lt; / dd & gt; เคฎैं เค•ैเคธे เคช्เคฐाเคช्เคค เค•เคฐूं: เคถीเคฐ्เคทเค• - เคฏाเคจी '7 เคšเคฐเคฃों เคฎें เคธे 4 เคชूเคฐ्เคฃ' เคšौเคก़ाเคˆ - เคฏाเคจी '57% ' เค”เคฐ เค•िเคธी div เคฎें เค‰เคจ्เคนें เคช्เคฐिंเคŸ เค•เคฐें, เค‰เคฆाเคนเคฐเคฃ เค•े เคฒिเค: & lt; div class = "css-info เคšเคฐเคฃ "& gt; 7 เคฎें เคธे 4 เคšเคฐเคฃ เคชूเคฐ्เคฃ เคนुเค & lt; / div & gt; & Lt; div เคตเคฐ्เค— = "เคธीเคเคธเคเคธ-เคœाเคจเค•ाเคฐी เคช्เคฐเคคिเคถเคค" & gt; 57% & lt; / div & gt; เคคो เค‡เคธ kinda escalated। เค†เคถा เคนै เค•ि เคฏเคน เคธ्เคชเคท्เคŸ เคนै เค•ि เคฏเคน เค•ैเคธे เค•ाเคฎ เค•เคฐเคคा เคนै। $ ('& lt; div / & gt;', {// เคเค• div เคคเคค्เคต เคชाเค  เคฌเคจाเคँ: $ ( 'เคกीเคกी') [0]। เคถीเคฐ्เคทเค•, // เค†ंเคคเคฐिเค• เคชाเค  เคตเคฐ्เค— เคชเคฐिเคตเคฐ्เคคिเคค เค•เคฐें: "เคธीเคเคธเคเคธ-เคœाเคจเค•ाเคฐी เคšเคฐเคฃ" // เคคเคค्เคต เคฎें เคตเคฐ्เค— เคœोเคก़िเค})। เคœोเคก़ें ($ ('& lt; div / & gt;', { // เคเค• เค”เคฐ เคคเคค्เคต เคฌ...

c# - how to get radio button valuse and store in mysql database -

I want to store radio button values ​​as men and women in the mysql database, so I have c # / P> Here is my C # code Private Zero addButton_Click (Object Sender, RoutedEventArgs E) {try {string query = @ "bcasdb`. 'Tbl_student` Reg_id`,` std_fname`, `Std_lname`,` tbl_batch_batch_id`, `gender`) value (@regId, @fName, @lName, @bid, @gender)"; // This is the command class which will handle the query and the connection object. MySqlConnection conn = New MySqlConnection (BCASApp.DataModel.DB_CON.connection); MySqlCommand CMD = New MySqlCommand (query, conn); Conn.Open (); Cmd.Parameters.AddWithValue ("@ regId", this.regIDInput.Text); Cmd.Parameters.AddWithValue ("@FName", this.fnameInput.Text); Cmd.Parameters.AddWithValue ("@ lName", this.lnameInput.Text); Cmd.Parameters.AddWithValue ("@ BID", this.batchIDInput.Text); //cmd.Parameters.AddWithValue(_@gender "); cmd.ExecuteNonQuery (); conn.Close (); successmsgBox ();} hold...

html - CSS - How to pad an elements width by 50% of itself? -

เค•ैเคธे เคเค• เคคเคค्เคต เคชैเคก เค…เคชเคจे 50% เคธे? I । เคนोเคจा เคšाเคนिเค 50% เค‡เคธเค•ी เค•ंเคŸेเคจเคฐ เค•ी เคšौเคก़ाเคˆ เคœเคนां । เคเค• เคšเคฐ เคšौเคก़ाเคˆ เคนै। HTML & lt; div เคตเคฐ्เค— = "เค" & gt; & Lt; div เคตเคฐ्เค— = "เคฌी" & gt; เค•ुเค› เคชเคฐीเค•्เคทเคฃ เคชाเค  เคฒाเค‡เคจ เค•े เคฒिเค เคšेเค• BREAK & lt; / div & gt; & Lt; / div & gt; เคธीเคเคธเคเคธ । เคเค• {เคชृเคท्เค เคญूเคฎि: # 58c; เคจ्เคฏूเคจเคคเคฎ-เคšौเคก़ाเคˆ: 300px; เค—เคฆ्เคฆी-เคฆाเคं: 50%; เคฌॉเค•्เคธ-เค†เค•ाเคฐ: เคธीเคฎा เคฌॉเค•्เคธ; เคŠंเคšाเคˆ: 300px; }। {เคชृเคท्เค เคญूเคฎि: # เคฌी 88; เคช्เคฐเคฆเคฐ्เคถเคจ เค•्เคทेเคค्เคฐ; เคŠंเคšाเคˆ: 100%; เคšौเคก़ाเคˆ: 100%; } เคฎैं เคกेเคฎो เคกिเคต เคฎें । เค•्เคฏों เค…เคจिเคถ्เคšिเคค เคนूँ เคฎें เค‡เคธเค•े เคฌเคœाเคฏ เค…เคชเคจे เค•ंเคŸेเคจเคฐ เค•ा 50% เคชैเคกिंเค— เคนै। เคœैเคธा เค•ि เค•िเคธी เคจे (เค”เคฐ เค•เคนें!) เคชैเคกिंเค— เค•े เคฒिเค (เค”เคฐ เคญी เคนाเคถिเค, เคฌिเคฒ्เค•ुเคฒ): เคช्เคฐเคคिเคถเคค เคตाเคฒे เคฌ्เคฒॉเค• เค•ी เคšौเคก़ाเคˆ เค•ो เคฆेเค–ें เคคो เคฏเคนां เคเค• เคธเคฎाเคงाเคจ เคฒเค—ाเคฏा เคœा เคธเค•เคคा เคนै। เคเค• เค†เคตเคฐเคฃ เค•े เค…ंเคฆเคฐ, เค”เคฐ เคชैเคกिंเค—-เคฆाเคฏें เค•ो เค›ोเคก़ เคฆें। 50% เคชเคฐ HTML & lt; div class = "wrapper-A" & gt; & Lt; div เคตเคฐ्เค— = "เค" & gt; & Lt; div เคตเคฐ्เค— = "เคฌी" & gt; เค•ुเค› เคชเคฐीเค•्เคทเคฃ เคชाเค  เคฒाเค‡เคจ เค•े เคฒिเค เคšेเค• BREAK & lt; / div & gt; ...

image processing - OpenCV - How to remove small line segments from contour? -

Image
Is there any way to remove sections of a small line from a contour? For example, in this image, the largest contour is specified in green and the result is blue: There is a set of contour digit, I think we are in red circle to remove those homogeneous sections Can do something for you. For example, to detect and remove small lines or small sub-shapes or in some other way. But I do not know how I can do this. Please remember that I want to remove them after finding contour and not before. Do you know how can I remove them? Or any thoughts? I have found that the contour area is good for removing small, separate configurations. This snippet shows how you can proceed: findContours (edges, shapes, hierarchy, CV_RETR_CCOMP, CV_CHAIN_APPROX_SIMPLE); ... // love shape vector & lt; Vector & lt; Point & gt; & Gt; PrunedContours; (Size I}} If the "loops" or the outer contour areas are part of the larger contour of interest, take a look. It is ...

php - mysql find record between dates -

เค•ा เคšเคฏเคจ เค•เคฐें เคฐाเคถि, rh.honoraria_key, เคธे xref_speaker_honoraria เคถ เค…ंเคฆเคฐूเคจी rh.honoraria_name เคชเคฐ xref_contract_speaker xcs JOIN (sh.contract_id = xcs.contract_id) เค…ंเคฆเคฐूเคจी เคถाเคฎिเคฒ เคนों xref_contract_bureau XCB เคชเคฐ (xcs.contract_id = xcb.contract_id) เค…ंเคฆเคฐूเคจी เคถाเคฎिเคฒ เคนों ref_contract เค— เคชเคฐ (xcs.contract_id = c.contract_id) เค…ंเคฆเคฐूเคจी เคถाเคฎिเคฒ เคนों ref_honoraria rh เคชเคฐ (sh.honoraria_id = rh.honoraria_id เค”เคฐ rh.display_ext & gt; 0) เค•เคนां sh.speaker_id = 888 เค”เคฐ xcb.brand_id = 27 เค”เคฐ เค•เคฒाเค•ाเคฐों (เคคाเคฐीเค– เค•े เคฐूเคช เคฎें c.`start`) เค•े & lt; '2014-13-02' เค”เคฐ เค•ाเคธ्เคŸ (เคธी। 'เคเคจเคเคกी' เค•े เคฐूเคช เคฎें เคฆिเคจांเค•) & gt; '2014-13-02' rh.display_ext เคฆ्เคตाเคฐा rh.honoraria_key เค†เคฆेเคถ เคฆ्เคตाเคฐा เคธเคฎूเคน เคฎैं เค‰เคชเคฐ्เคฏुเค•्เคค เค•्เคตेเคฐी, เคฏเคน เคเค• เคคाเคฐीเค– เคฎुเคฆ्เคฆे เค•ी เคตเคœเคน เคธे เคชเคฐिเคฃाเคฎ เคจเคนीं เคฒौเคŸा เคฐเคนा เคนै เคนै। เค…เค—เคฐ เคฎैं เค”เคฐ เค•เคฒाเค•ाเคฐों เค•ो เคฆूเคฐ (เค— เค…ंเคค เคคिเคฅि เค•े เคฐूเคช เคฎें।) & Gt; '2014-13-02' เคฏเคน เค•ाเคฎ เค•เคฐเคคा เคนै, เคฒेเค•िเคจ เคฎैं เคฆो เคคिเคฅिเคฏों เค•े เคฌीเคš เคชเคฐिเคฃाเคฎ เคช्เคฐाเคช्เคค เค•เคฐเคจा เคšाเคนเคคा เคนूं। เคกेเคŸा เคช्เคฐเค•ाเคฐ เคธी। เคธ्เคŸाเคฐ्เคŸ เค”เคฐ เคธी.เค.เค. เคฏเคน เคคเคฏ เค•เคฐเคจे เค•े เคฒिเค เค•ोเคˆ เคธंเค•ेเคค? เคฎुเคे เคฏเค•ी...

javascript - Remove extra ;# instances from string -

เคฏเคน เคเค• เคœाเคตाเคธ्เค•्เคฐिเคช्เคŸ เคช्เคฐเคถ्เคจ เคนै। เคฎेเคฐे เคชाเคธ เคธ्เคŸ्เคฐिंเค— (เคถेเคฏเคฐเคชॉเค‡ंเคŸ เค…เค•ाเค‰ंเคŸ เคจाเคฎों เค•ी เคธूเคšी) เคนै เคธ्เคŸ्เคฐिंเค— เคฎें เค•िเคธी เคญी เคธเคฎเคฏ เคฌाเคนเคฐ เคเค• เค‰เคชเคฏोเค—เค•เคฐ्เคคा เค–ाเคคा เคนो เคธเค•เคคा เคนै। เค‰เคฆाเคนเคฐเคฃ: "1; #เคธ्เคฎिเคฅ, เคœॉเคจ; # 47; # เคกो, เคœेเคจ; # 13; # เคฌ्เคฐाเค‰เคจ, เคถेเคฐ्เคฒोเคŸ" เคฎेเคฐे เคชाเคธ เคฎेเคฐा เคนै เค‰เคชเคฏोเค—เค•เคฐ्เคคा เคšเคฏเคจ เค•े เค†เคงाเคฐ เคชเคฐ เคเค• เค–ाเคคे เคธ्เคŸ्เคฐिंเค— เค•ो เค›ोเคก़เคจे เค•े เคฒिเค เค•ोเคก เคธेเคŸ เค•िเคฏा เค—เคฏा เคนै, เคฒेเค•िเคจ เคฏเคน เคเค• เค›ोเคก़เคคा เคนै; # เคถुเคฐुเค†เคค เคฎें เคฏा เคคो เคฌीเคš เคฎें, เคฏा เคธ्เคŸ्เคฐिंเค— เค•े เค…ंเคค เคฎें। เคœॉเคจ เคธ्เคฎिเคฅ : "; # 47; # เคกो, เคœेเคจ; # 13; # เคฌ्เคฐाเค‰เคจ, เคถेเคฐ्เคฒोเคŸ" เคœेเคจ เคกो เค•ो เค›ोเคก़เคจा: "1; #Smith, John; # 13; #Bronte, Charlotte" เค›ोเคก़เค•เคฐ เคถेเคฐ्เคฒोเคŸ เคฌ्เคฐोंเคŸ: "1; #Smith, John; # 47; # เคกो, เคœेเคจ; # 13; # " เค•्เคฏा เค†เคช เคเค• เคฐेเค—ेเค•्เคธ เคช्เคฐเคฆाเคจ เค•เคฐ เคธเค•เคคे เคนैं, เคฎैं เคถेเคท เค…เคชเคฎाเคจ เค•ो เคฎाเคฐเคจे เค•े เคฒिเค เค‰เคชเคฏोเค— เค•เคฐ เคธเค•เคคा เคนूं #? เคฏเคนां เคจिเค•ाเคฒเคจे เค•ा เค•ोเคก เคนै, เคœเคนां เคฎौเคœूเคฆा เค‰เคชเคฏोเค—เค•เคฐ्เคคा เคชूเคฐ्เคฃ เคธ्เคŸ्เคฐिंเค— เคนै, เค”เคฐ เค–ाเคคा เคธ्เคŸ्เคฐिंเค— เคธे เคก्เคฐॉเคช เค•เคฐเคจे เค•ा เคจाเคฎ เคนै: เค…เค—เคฐ (เคฎौเคœूเคฆा เคฏूเคœ़เคฐ। เคฒैเคฎ्เคฌเคจ & gt; เค…เค•ाเค‰ंเคŸ। เคฒैंเคช) {currentUsers.replace (เค–ाเคคा, ""); // เคฌเคšे เคนुเค เค•ो เคธाเคซ เค•เคฐें; # - regex} เค”เคฐ {currentUsers =...

doctrine2 - Doctrine DBAL get Server Information -

I did not say anything about the theory about it Dibiael manual or search online. So basically my question is, the database server using a doctoral DBAL is a way to get the information. I was in PHP "mysqli_get_server_info ()" and "things like PDO :: getAttribute (PDO :: ATTR_SERVER_VERSION)" So I see that theory Dibiael supports something like this. There's an old question, but I So: $ this-> getDoctrine () - & gt; Mill Connection () - & gt; GetWrappedConnection () - & gt; GetServerVersion ();

How to map List to List with Dozer? -

I have a service that returns the list , say, A B objects in List I have defined mapping from a . To b . Nazi, I tried to list & lt; A & gt; Ayes = ... // List of services to call & lt; B & gt; Bees = DodgerMapMap (Enz, New Arriylist & lt; B & gt; (.) GetClass ()); However, bees still have a list of A objects. What should I do? I think you can get it in Dosage using signals, but we found the default A wrapper around the mapper is easy. An example is below then you can trust only the default client converters / mapers that you have defined for mapping. CollectionMapperDecorator custom = New CollectionMapperDecorator (dozerMapper); Collection & lt; P & gt; Bees = Custom. Maple (Aya, Beaclas); Public Class CollectionMapDicroctor Mapper {Private Mapper Basemapper; Public CollectionModerDecoder (Mapper Basemapper) {this.baseMapper = baseMapper; } Public & lt; T & gt; Collections & lt; T & gt; MapCollectio...

asp.net mvc - Initializing a JavaScript array in Razor -

I have an ASP.NET MVC app that uses the razor in the views. I am creating a JavaScript array in my controller sometimes, though, it will not be in existence. For this reason, I want to start it on client-side. In an effort to do this, I have the following: var list = '@ (viewback_list == empty? []: See bag.list)'; Unfortunately, this is an error that generates an error: Compilation Error Description: An error during the collection of the required resources for the service of this request. Hui. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS 1525: Invalid expression word '[' Is there a way to use a ternary operator with arrays in the razor? If so, then how? Because JavaScript is running using JSON, you should serial JSON in your list: @Nutonsoft Jason Var list = @html. Ro (Jason Convert. SerializeObject (ViewBag.List)); List = list || []; In general, @ Html.Raw (JsonConvert....