Posts

Showing posts from March, 2014

javascript - Angular $watch doesn't get triggered -

I am trying to write a instructions for drawing barcharts, and I want to repeat the data every time from the chart Are the changes I currently have this: / * This instruction will create a bar chart based on the datatable * It expects the label in the first column of the data table to be included. * If more than 2 columns (labels have more than one value) are supplied, * All bars generated from values ​​in one line will be grouped together, * An easy visual comparison (benchmark). * If the option overlay is supplied, weird price columns will be created (with the [x [label, cola 1, cola 2, to 3, to 4] with the [below] * result with call 1 and call 3 * (* 'Window', '$ location', '$ parse', '$ timeout', function ($ window, '$'), and 'col4 * / angular.module' ('kapstok' $ Location, $ parse, $ timeout) {return: Restrict: 'E', Scope: true, link: function (scope, elm, ethers) {// read all different parameters in the DIRECT...

highcharts - How to invoke an controller action in ember.js -

I am providing the chart using the amber (based on high charts) I click on a point of function I want to open I have defined this function inside my amber component See jsfiddle link below: {} http://jsfiddle.net/qmmvx/67/ On clicking on a point, I get an error indicating the App.ChartComponent is exiting. What is it that I am missing here? Not sure that the app .__ container __ Lookup is the smartest way here, but App.ChartComponent.test (); App Container __. ('Component: chart') by changing it. .seend ('test') resolves your problem sending is used to do any method with verb

c# - Binding same data to multiple dropdownlists using foreach loop -

We have 10 dropdowns and the data must be copied from SQL Server using the foreach loop private wide bindedupdown (dataset DS) {foreach (control control control in Form 1.) {if ((control. GetType () == Typef (dropdown list)) {(dropdown list) (control)). Datatieffield = "information review"; (DropDownList) (Control)) DataValueField = "InformationReviewID". ((Dropdown list) (control)). Data source = databables [0]; (DropDownList) (Control)) DataBind () .; ((Dropdown list) (control)). item. Indent (0, new list item ("- select -", "0")); }}}

class - Objects & Methods in JavaScript -

What is the best way to create something like JavaScript in a javascript and make many examples of it? I have tried the following: function test () {var currentState = -1; Var states = New Array (); } Test.prototype.SetState = function (state) {this.currentState = state; StateArray.push (state); If (statearelineline; gt; 2) {stateArray.splice (0, 1); }} Test.prototype.GetState = function () {return this.currentState; } Var object 1 = new test (); Var object 2 = new test (); Var Estate = {One: 1, 2: 2,}; Object1.SetState (EState.ONE); // & lt; & Lt; Here fails This works if I use it to create an object, but when I make more than one object and any of them receive the following error : Uncaught TypeError: Undefined is not a function What would be the reason for this behavior? This issue is state and current status is private (only local test () ) So when you try to do stateArray.push in this context, stateArray is undefined and therefore there is no func...

php - Textmate now requires my password? -

I am following the tutorial on Kevin Skagen's "MySQL Using PHP" Linux. In the installation, he uses Sudo to configure the stuff and open the files. This is all on the terminal for the Macintosh computer. She starts the Apache server using sudo apachectl start or restart . He opens several pages with the Nano Text Editor (which is used in the terminal) and he uses the sudo before most commands, he goes to the page, such as php.ini . Before I started my course, I installed php and MySQL in a different way, there were some problems with 'socket' (I am also not familiar with what a socket is ). That is why I had to go to the installation chapter to install everything in a sudo manner (I know that petrol itself is dangerous due to smoking at petrol station). So now when I go to the textbook, it needs to constantly save the files and files in my project's drawer glow red in my user password. Besides, if I type my password, then It makes sound, which mea...

javascript - How to display RDF data described by Fresnel vocabulary? -

I am studying semantic web while trying to create a simple one-page application (SPA). The SPA should be able to display various RDF data (and allow the user to create new autologues in a user-friendly manner) I have full control of the nature of autologues (I.e. I can tell if they represent RDF / XML, ntripples, turtles etc. and I can also decide if I want to use ontologies to describe I I think from him I think it can be a good way to describe the "eyes" of autologians. I came to know what it looks like Question: How can I use this kind of engine to display the data given below? Recommended to use for this problem What is Fresnel? If not, what do you recommend? An example from the Fresnel manual: W RDF object to display : Chris rdf: Type fox: Person; Foaf: The name "Chris Buzar"; Fouf: Mbox and lieutenant; Melroto: chris@bizer.de> ; Fox: Mbox & Lt; Meloto: bizer@gmx.de> ; FoF: Illustration & lt; Http: //www.wiwiss.fu-...

scala sort a set of a certain class -

I have a set of fixed DTOs. The name of the DTO is "numeric value", and the following class members are: 1) time: long 2) value: double I have a set named "points", and I want to sort it according to increasing time, i.e. 0, 1, 2, 4, 100, .... The attachment code is: val point: Set (Numeric Value) = NumericWallulate Val SetSorted = Archive. Immmoot Soratset [Long] (++) Issue I did the following: Although the result is not ordered according to time. Thanks The result is not reserved because the order for your class is not. You can explicitly be ordered : case class NumericValue (time: long, value: double) command [NumericValue ] {Compare Override DF (Joe: NumericValue): Int = Command [Long] .Compare (this.time, that.time)} or Order create: val set = sorted set [NumericValue] () (New command [NumericValue] () {override def compare (X: Anumeric Value, Y: Anmericvalue): int = Order [long] .Compare (X.time, Y. time)}) The result...

asp.net - How to Insert a Particular column in sql server -

I have the presence of the table student and the columns are st_id | Student name | Months | Year | Day1 to day30 And, asp.net I am using when I click on the current button then the st_id , studentname in the database column The values ​​of , month , year should be included, and days should be systemdate . The date should be entered in the SQL column in the day column and the remaining empty value should be Assume that if I enter today today, 4 data will be entered in the current day like 4 try this type DECLARE @st_id int = 1 declared @StudentName varchar (50) = 'Dinesh' declared @month varchar (50) = 'Announced announces @year integer = 2014 @SQL nvarchar (max) =' (st_id, StudentName, Month, Year, Day Addition '+ Cast (DatePart (day, GETDATE) ) As varchar (10)) + 'values ​​(' varchar (max)) as' cast (@st_id) + ',' '' @ @ @@@@ @ @ @ @ @ @ @ @ @ @ google_continentEmail by mutual agreement VARCHAR form @year...

Modulo function from python to julia efficiency -

In Python I get an array with no value for modules for z to set it to x and y Can be used to: Import as np y = np.asarray ([1,2,3,4,5,6,7,8,9,10 , 11]) x = 2 z = y [: [1 2 3 4 5 6 7 8 9 10]: lane (y)% x * -1] print (z) Output: Instead of doing this, Julia is a more effective way of writing variables z : y = [1, 2,3,4,5,6,7,8,9,10,11] x = 2 z = y [1: (L) By (y) - (length (y)% x)] println (z) Output: [1,2,3,4 , 5,6,7,8,9,10] end , such as

php - Laravel find() query doesn't bind any data -

Use of LARVAL 4.0 This is to find my call: User: Find (2) - & gt; The first () and the result is getQueryLog () : [query] = & gt; * Select range from users * 1 [binding] = & gt; Array () I expected it to be a where =? . 't Thanks for the help. It is sufficient to use: $ user = User :: Search (2); This will give you the user with the primary key 2 . You do not have to search for with first - there is only one user with the given primary key, so that the user automatically gets the attribute and this In case you do not need to use first if you want to get the user in such a way, you can use first: $ user = User :: where ('id', '2') - & gt; First (); equals the above code: $ user = user :: find (2); (assuming id is the primary key)

c++ - Enable WebGL-extensions from Asm.js/emscripten? -

मैं asm.js / emscripten से WebGL-extensions कैसे सक्षम करूं? मैं जावास्क्रिप्ट कोड के बराबर 'var float_texture_ext = gl.getExtension (' OES_texture_float ') को चलाने के लिए चाहते हैं,' जो बिल्कुल मैं एक से कर सकता है ASM_JS () मैक्रो , लेकिन मैं नहीं जानता कि वैश्विक gl -object का नाम क्या है? मैं यह कहकर पेश करूँगा कि आपको इस तरह ईस्क्रिप्टेन का उपयोग नहीं करना चाहिए। व्यक्तिगत रूप से, मैं विंडोिंग और एक्सटेंशन का प्रबंधन करने के लिए GLFW3 और GLEW का उपयोग करेगा। Emcc या em ++ (emscripten compilers) का उपयोग करते समय वे विंडोिंग कॉल को वेबग्लॉग सृजन और क्या नहीं करेंगे। लेकिन अब जवाब पर। यदि आप GLFW3 का उपयोग करने में दिलचस्पी नहीं रखते हैं, तो आपको विशिष्ट ईस्क्रिप्टियन विधियों का उपयोग करना होगा। कोई भी वैश्विक "ग्लोबल ऑब्जेक्ट" नहीं है। EM_BOOL enableExtensionsByDefault आप निम्नलिखित का उपयोग कर सकते हैं तो आप सभी एक्सटेंशन सक्षम करने के लिए देख रहे हैं > यदि "सत्य" है, संदर्भ के सभी GLES2- संगत गैर-प्रदर्शन-प्...

Understanding hex dump of a file generated by Java? -

यहाँ मेरा कोड है: फ़ाइल फ़ाइल = नया फ़ाइल ("test.txt" ); file.createNewFile (); आउटपुटस्ट्रीम आउटपुट स्ट्रीम = नया फाइलऑप्टपुट स्ट्रीम (फ़ाइल); outputStream.write (65); outputStream.write (66); outputStream.flush (); outputStream.close (); जब मैं एक टेक्स्ट एडिटर में test.txt खोलता हूं तो मुझे AB यूटीएफ 65 और 66 के साथ -8 अक्षर। मैं फ़ाइल के हेक्स डंप लेता हूं और देखता हूं: फ़ाइल का स्वामी: koraytugay समूह के स्वामी: स्टाफ फ़ाइल का आकार: 2 बाइट्स फ़ाइल निर्माण तिथि: 2014-11-04 13:18:45 +0000 फ़ाइल संशोधन तिथि: 2014-11-04 13:19:01 +0000 हेक्स डंप: [] 41 42 एबी तो क्या है [41 41] यहां क्या मतलब है? 65 और 66 क्यों नहीं? दशमलव संख्या 65 है 41 हेक्साडेसीमल। दशमलव संख्या 66 है 42 हेक्साडेसीमल।

android - Multiple dex error -

Image
If I click on graphical layout then I get this exception below: Exceptions have been raised during rendering: com.android.layoutlib.bridge.MockView can not be inserted for Android. View.ViewGroup are logged in the exception details window; View & gt; Error log The following classes can not be done immediately: - android.support.v4.widget.DrawerLayout (Open class, show error log) then Java build path -> Orders and exports : In the above screenshot if I get a Multiple Dex error in the console in check in android.support.v4.jar : Android-Support- v4 caused this error This jar was not updated in the project. This size is approximately 325 kb.So that I realized the jar from other sample applications. The size of the jar in the application of that sample will be 530 kb. Then I think, the QMR project Jar was an error. This is not an update jar. So I removed the jar kept in the QRR and added the sample project jar. Then it solved my problem. Error if ...

node.js - Returning only first element of a sub array with $elemMatch -

I am using nodes and Mongoos, and there is a schema that looks like this: Var Subscriber schema = new schema ({'user': [{type: mojo sama.a type.object, ref: 'user'}], 'level': {type: string, enum: [' Swami ',' Sub ',' commenter ',' poster ']}' date ': {type: date, default: date.So}}); // group schema var group schema = new schema ({'group' ': [{type: mongosse.sema.tem.object, reference:' user '}],' groupname ': string,' subscriber ': [subscriberskema] }); I want to query the group to find all the groups where a user ( req.user._id is stored through token authentication) Returns a single member array element with a customer (i.e. their _id Consumers array), and only with their _id I 've read the Mongo documentation, because it seems what I want, and has created the question below. It gives the information that I want but returns all elements of the customers arra...

cypher - Why Neo4j query is not returning wright data with first query? -

Image
I have a strange problem I do not understand why the Neo4j query is returning different results. with Shipper Match (Shipar) & lt; - [: SHIPPED_BY] - (Shipment: activivism) - [: SHIP_TO_CITY] - & gt; (Tocity) & lt; - [: HAS_CITY] - (Toastate: State), ** ((Frames: Vehicles) & lt; - [: HAS_VEHICLE_TYPE] - (Shipment) - [: SHIP_FROM_CITY] - & gt; (FMCT: City) & lt; - [: HAS_CITY] - (FMTT: STATE) ** Returns Shipments, Broken, FMCTI, FrmState, veh But doing a little bit change on the query gives me the right result: with Shipper Match (Shipper) - [: SHIPPED_BY] - (Shipment: (Shipment): - [: SHIP_TO_CITY] - & gt; (tocity) & lt; - [: HAS_CITY] - ( Toastate: R JY), (vehicle: vehicle) & lt; - [: HAS_VEHICLE_TYPE] - (shipment) ** MATCH (SHIPMENT) - [: SHIP_FROM_CITY] - & gt; (frmCity: City) & lt; - [: HAS_CITY] - ( FMTT: state) ** REUTUrn shipment, broken, FMCT, FMTT, air which looks like this The only difference between the sh...

wpf - Enable a button on slider values -

I have three sliders and one button. But button has one click event. What do I need when in addition to enabling this button, the sum of the three slider values ​​is greater than 0. The code is simple, I think: integer = total slider 1. Value + slider 2 Value + slider 3 Value; If Total & gt; 0 btnStart.Enable = true; Else btnStart.Enable = false; Question I do not know where I want the code if I put it in the slider event, then three it has been repeated. However, if we have many sliders, then is this method fool? Just create a value / event and attach it to your three sliders Eg: Private Zero slider_changes current (object sender, routing property, chained events categories> double> gt; e) {btnStart. IsEnabled = (slider 1.Value & gt; 0 & amp; Slider 2. Value & gt; 0 & amp; Slider 3. Value & gt; 0); } The XML will look like this: & lt; Slider x: name = "slider1" ValueChanged = "Slider_ValueChanged" /...

php - joomla 2.5 virtuemart sql fetch db -

I'm trying to create a module for joomla 2.5. I try to get some element from DB and after that I want to resound. I tried this in phpmyadmin SELECT * FROM 'uhhu_virtuemart_manufacturers' WHERE virtuemart_manufacturer_id = 7 I take 1 record back , So now I try to do it with php: Choose ( '*'); $ Query-> ('Uhhu_virtuemart_manufacturers'); $ Query-> Where ('virtuemart_manufacturer_id = 7'); $ Db- & gt; SetQuery ($ query); $ Option = $ db- & gt; Load Object List (); Return $ option; If ($ db-> getErrorNum ()) {echo $ db-> GetErrorMsg (); Go out; } Nothing is happening, tried to do it in many ways, but I failed. Anyone have an idea? First of all, you should avoid all values ​​and column names using the quote ( ) and quoteName () . Secondly, you should use the normal database table prefix ( #__ ), which means that if you ever change the prefix name, you will not need to update your query. Third, you are not r...

oracle - Export Apex application -

When I export my Apex application and import it in the same schema, then all the interactive reports from "Named List" of Love Columns in the interactive report. Please help me I do not know why this is happening. Thanks, Aniq

rails 4 can only call javascript once from link_to -

I have a list with which I want to delete using javascript and want to hide the row. The experience I have is that if I click on a link, then removes the item and the row disappears. If I make a second click, the controller is not asked, the pages Just refresh via javascript. show.html.erb link_to image_tag ("bin-20.png",: border => 0), '#',: title = & Gt; 'Remove this item', data: {deleteitem: item.id} item.js.coffee $ - & gt; $ ("One [data-delete]") Click - & gt; $ (This) .data ("deletemem") $ .jax type: "POST" url: urllink Data type: "Jason" data: _method: $ (divclass). Toggle () Warning ("The item has been removed from your list") If I click on a link and the second one. The output I get in the console is: Post http://local-dev.com:3000/itemisations/636 200 OK 1.6s jquery.js? Body = 1 (line 9632) Http://local-dev.com:3000/items/60# 200 OK 7.88 S. Turboli ... ... body = 1 (lin...

html5 - Jekyll/SASS site not compiling via Ruby running on Windows 7, tested also with Prepros, site a no go -

I have Jakeel 2.4.0 and Ruby 2.0.09576 installed. I am working with Travis using the YouTube channel 'Devatips' and all his files / information to compile his 'Artist' project site. Last week I successfully served Project Site through Ruby / Jakeel, served from the source folder. Today, I tried the same process and will not compile the site. I am using the same localhost: 8000, which is verified and worked last week. I am running Win7 64bit and followed the advice to run the UTF-8 encoding command: chcp 65001 No files have been changed in the portfolio folder on my PC, no Windows updates or other software is installed. The second thing on Jekyllrb.com/windows/ is that the 'jamfile' is called 'Auto-Regeneration 'To add a line of code to ... OK, does not say where this' jamfile' is edited ... is it here? C: ... / Ruby / DevKit / bin / ManiWindows batch File? I am getting stumped because the project file was compiled and displayed exactly ...

JavaScript AngularJS Brackets Array -

मैं कर रहा हूँ: myArray.push (pageCount); तो मेरे पास कुछ ऐसा है: $ scope.myArray = Pages.getAllPageCount (); अंत में जब मैं अंगुलियएसजेएस (मेरा .html) के साथ प्रदर्शित करता हूं। {{myArray}} यदि मेरे पास केवल मूल्य है, यह उदाहरण के लिए [30] प्रदर्शित करेगा। लेकिन मुझे नहीं चाहिए [ और ] । मैं इसे कैसे हटाऊं? पुनश्च: मुझे वास्तव में इसकी आवश्यकता है आपकी सहायता के लिए धन्यवाद! इसके बजाय {{MyArray}} , आप उपयोग कर सकते हैं: {{myArray.join (',')}}

python - Numpy argmax. How to compute both max and argmax? -

Is there a way to get maximum and ArgMax by a stroke? Import NP A = [0,0,1,0] Max = Max (A) Index = N.P. Reg. (A) What The fastest way to do this is by doing something: [max, index] = function (a) It may be that something like this is ... index = np.argmax (A) maximum = one (index )

Summarizing Subreport Group Sum into Main Report REPORT FOOTER Crystal Reports -

I have created a subpage and I would like to add SubReport Group Sum to my main report footer, I was trying to do It is with shared variables but it does not work the way I want it. My main report is already running in the header of the report, but I want to include running total for subreport. I appreciate your help. Thank you. Just make sure to get the information in your main report with the subforport with the shared variable That you are keeping the variable shared in the different section from your sub-station, create a section under your sub-port and keep your shared variable there and move the total based on that variable.

cordova - visual studio 2013 - windows phone development logging without debugging -

Is it possible to log my debb calling without debugging? I need to see a phonegrap cordova app and log (output is coming from my console console log in output); But if I deploy my app using the device, sometimes it starts debugging the C # code (entering some exceptions), which I do not want to do. If I just deploy the app, then it does not get the log. / P> How to get rid of C # debugging

Enabling ios restrictions from an application -

I'm looking for information, tutorials about how to restrict the program from an installed app in iOS. Say I want to disable Safari away from my "Parental Control" application, does iOS allow me to do this, and if so how? Any thoughts?

c++ - Is wchar_t just a typedef of unsigned short? -

उदाहरण के लिए, करता है: wchar_t x; में अनुवाद करें: अहस्ताक्षरित छोटा x; संक्षेप में: सी में सी + + नहीं हो सकता है व्यापक रूप से। सी को टाइपफेड के रूप में लिखता है, लेकिन यूनिक्स में यह आम तौर पर 4 बाइट्स (ऐसा आमतौर पर कम नहीं है) और विंडोज 2 में है, इसलिए यह कम हो सकता है। सी ++ के तहत यह अनूठा बनाया गया प्रकार है जैसे कि char या int , तो आप कानूनी रूप से अधिभार कर सकते हैं void foo (short x) और void foo (wchar_t x)

numpy - How can I parallelize functions "leastsq" or/and "curve_fit" -

What is the best way to parallel the process appropriate for multicore computers using SCP functions? As far as I see from manual, there are no parameters like npocs in these functions, does it mean that they should not be parallel? short answer: There is no built-in parallel in this filter. The list is in, but it is unclear whether it is worth it or not. (If you like to drive that code and report the result, it will be appreciated). As it is said, you can parallel the evaluation of your objective function according to the similarity. For example, press it in a compiled extension (Cython, C, Fortran), release GIL and use OpenMP or explicit threads.

wpfdatagrid - How to move WPF DataGrid Rows using Drag and Drop? -

I have followed an example, I am completely convinced that I have copied all the codes but weirdly Can not I see any drag and drop effects? Does anybody track the copied code? I analyzed your code and found this issue. The problem occurs because you have to accidentally instead of System.Windows.Controls for reference to the DataGridRow used in the following code Microsoft.Windows.Controls var line = UIHelpers.TryFindFromPoint then modify the following reference in MainWindow.xaml.cs System.Windows.Controls; to using Microsoft.Windows.Controls; I know that it helps

sqoop - Sqoop2 import job from Oracle to HDFS(Text format) inserting string 'null' into HDFS -

I am trying to import data from HDF from Oracle DB using SQL 2. I realized that sqoop2 is putting the string 'empty' value instead of the non-string NULL value. Is there any alternative to abandoning it? I know that there is an option in sqoop1 but i am looking for an option in sqoop2. Thank you in advance Recently, a change was issued Made it more useful. Sqoop2 now uses it in its output.

Swift string and cocoa bindings: placeholder string is not displayed -

मेरे पास एक गतिशील var someString: String है? = शून्य मेरी कक्षा में एक UI पाठ क्षेत्र के लिए बाध्य गुण पाठ क्षेत्र को प्लेसहोल्डर स्ट्रिंग प्रदर्शित करने के लिए कॉन्फ़िगर किया गया है जब someString खाली (शून्य) है लेकिन जब मैं अनुप्रयोग चलाता हूं तो प्लेसहोल्डर स्ट्रिंग दिखाई नहीं देता, भले ही someString स्पष्ट रूप से शून्य पर सेट हो। मुझे याद हो सकता है कि स्विफ्ट के बजाय स्विफ्ट के बजाय उद्देश्य-सी कोड के साथ समर्थित एक ही विंडो को याद किया जा सकता है और स्ट्रिंग रिक्त होने पर टेक्स्ट फ़ील्ड प्लेसहोल्डर को दिखाया गया था, लेकिन मैं यह सुनिश्चित करने के लिए अभी नहीं देख सकता। वैसे भी, क्या यह स्विफ्ट में एक बग है या क्या मैं कुछ गलत कर रहा हूं? मैंने अभी पाया है कि मान बाइंडिंग कॉन्फ़िगरेशन में "नल प्लेसहोल्डर" विकल्प है। ऐसा लगता है कि विशेषता निरीक्षक में "प्लेसहोल्डर" सेटिंग को ओवरराइड किया जा रहा है। तो सवाल बंद है।

mysql - Update all post that is not in another table -

मेरे पास इस tow तालिका है: - an_post आईडी का नाम बॉडी पिक दिनांक बनाएँ और तालिका 2 है: - an_taxonomy PostId TaxId हमें table 1 में तालिका 2 में एक रिकार्ड है, वह वील है ("10", "1") । जहां 10 है PostId , और 1 है टैक्सआईडी । कैसे तालिका 2 सभी पोस्ट तालिका 1 से मान ("post_id", "1") , और पहले जोड़ा नहीं। इसे डुप्लिकेट नहीं करना चाहिए तालिका 2 में दर्ज करें अगर PostId an_taxonomy तालिका पर एक अनन्य अनुक्रमणिका है तो केवल एक_taxonomy (PostId, TaxId) का चयन करें आईडी, 1 से an_post में प्रवेश करें, यदि नहीं तो आपको यह देखना चाहिए कि पंक्ति पहले से मौजूद है या नहीं । इस तरह से कुछ: - an_taxonomy में प्रविष्ट करें (पोस्ट आईडी, कर आईडी) SELECT a.ID, 1 से an_post एक बाएं OUTER पर an_taxonomy b में शामिल करें a.ID = b.PostId और b, TaxId = 1 WHERE b.PostId NULL है

c# - ado.net oracle stored procedure output varchar parameter split-cut-truncated -

मेरे पास एक ओरेकल-संग्रहित प्रक्रिया (एसपी) है जो varchar पैरामीटर देता है, लेकिन जब मैं सपा को निष्पादित करें और आउटपुट पढ़ने की कोशिश करें, स्ट्रिंग कट जाती है। जब मैं एसओपी को टॉड पर निष्पादित करता हूं और एक dbms.output बना दिया है, तो स्ट्रिंग अच्छी तरह से लौट जाती है। प्रक्रिया testStringOutput (संख्या में संख्या, str बाहर varchar2) V_C के रूप में संख्या (38); V_E VARCHAR2 (2000); चयन करें '12345678910111213141516171819PPPPPPPPPPPPPPPPPPPPPPP' दोहरी से स्ट्रिंग में; अपवाद तब जब अन्य V_C: = SQLCODE; V_E: = SQLERRM; Dbms_output.put_line (V_C || '- & gt;' || V_E); समाप्त; जिस तरह से मैं सपा को स्क्रिप्ट कहता हूं: P2 VARCHAR2 (2000) घोषित करें: = ''; पीकेजीटीईएसटी शुरू करें। Dbms_output.put_line ('आउटपुट स्ट्रिंग - & gt;' || P2); समाप्त; आउटपुट: आउटपुट स्ट्रिंग - & gt; 12345678910111213141516171819PPPPPPPPPPPPPPPPPPPPPPP जिस तरह से सपा को c # से कहा जाता है: सार्वजनिक शून्य TestOutputString () {string str = strin...

postgresql - query with not equal doesn't work -

This is a dumb question, but still, I am trying to write an equivalent where the document documents with PostGrussCl The icon & lt; & Gt; or ! = Both always get 0 results where an integer is on the field Select user from user where user & lt; & Gt; 2; Choose UserAdd from Usartep! = 2; The table looks like this: User ID is not a major primary key to create a user, name VARCHAR (50) No, phone number VARCHAR (20 ) Is not unique, UserType INTEGER NULL); Note: Note: Select the user from the following Executive Job and Return Results User where the user & lt; 2 or Usery & gt; 2; I was just thinking that someone is facing the same problem?

brightscript - Download contents of POST request to file -

I'm working on a Roku app which displays MJPEG video It's a bit tricky as far as I I can tell that there is no way to handle generic streams on HTTP in BrightScript. What I have done is starting a download with roUrlTransfer.GetToFile. Then I can process the TMP file which MJPEG is constantly downloading. I have to clean the file and have to move in some time to avoid relocating, but it works well enough. The problem I have is that I need to support the source which requires that I post the information of a few sessions to display the MJPEG below. As far as I can tell, roUrlTransfer does not provide a way of posting a string and saves the result as a file. Is there a way to accomplish that I am not seeing? I'm doing a good job for this problem. GET Parameter to query string) and to overwrite the request method on POST . You can then use GetToString () to return the requested data. See the examples given below: conn = CreateObject ("roUrlTransfer...

How to add plugins to cordova embedded webview in android studio? -

I have taken steps to embed the Cordova webview in the Androda studio project by following these steps and it has been successfully created. : I am trying to install the Cordova plugin. What I have done so far was making the empty Cordova project. Add the Android File Plugin. Then I copied the cordova.js and cordova_plugins to an Android studio property / www directory to the plugin folder. I've also added the config.xml file in the / xml directory. The error I am getting is: 11-04 12: 00: 37.310 12146- 12146 / com.example.cord Christian Brid W / System. Er: java.lang.ClassNotFoundException: org.apache.cordova.file.FileUtils 11-04 12: 00: 37.310 12146-12146 / Com Explore Crordiodid W / Systems : At java.lang.Class.classForName (Basic Method) 11-04 12: 00: 37.320 12146-12146 / com.example.cord Christubrid W / System.err: at java.lang.Class.forName (Class Java: 251) 11-04 12: 00: 37.320 12146-12146 / Com. Explore Coirvayibid W / Systems Er: java.lang.Class.forName (Cla...

asp.net mvc - unable to pass parameter value inside Html.EditableGridView in mvc cshtml -

In the MVC 4 project I tried to do the pass parameter value , but I Unsuccessful syntax . .cshtml file in @ (Html.EditableGridView & lt; MyModel> ("TestGridView", model, Server.MapPath ("~ / XmlFile / Test .xml "), GridRowSelectionMode.Multiple, New {cssObj =" genericContentCss ", url =" / Test / GetMyPartial? Mode = Edit and ID = "})) in the URL> but it does not work, I miss something very little I tried Google but failed to do this How about: @ html.EditableGridView & lt; MyModel & gt; ("TestGridView", Model, Server.MapPath ("~ / XmlFile / Test.xml"), GridRowSelectionMode.Multiple, New {cssObj = "genericContentCss", url = "/ Test / GetMyPartial? Mode = Edit & amp; id =" + Model.Id}) Or you can use the url Action () : url = Url.Action ("GetMyPartial", "Test", new {mode = "Edit", id = Model.Id}) In the above code: @ Ht...

enterprise architect change sequence diagrams message text size -

When I have a sequence diagram in an enterprise architect and I change everything with CRTL A to text size and By using the correct clicking and appearance -> set the font and changing the text size it changes only in class names, how can I change the size of the text so that they are readable in a document? I agree, Geir, I do not think this can also be done. You can make some changes by right-clicking on a connector Label . These changes include courage and font colors, but not the font size or typeface. The related information in the PDATA5 column of the t_connector table in the EA database is stored in the form of a group of key / value pairs (not the T_diagramlinks table where you normally expect to get visual information). In this string, which is not interpreted in the help file, you BLD = 1; etc., but anything that looks like refers to the font size or typeface. Which means that you can not convert it by scripting

UML (or similar) for JSF/xhtml -

Sort a new area for me, but the project I'm working on has a lot of .xhtml files that include JSF and Javascript (lots of & lt; ui: include & gt; s). I'm hoping to find an eclipse plugin or other piece of software that will allow me to view and navigate these files in a diagram of Flowchart / UML. Searches have turned on many plugins, but it is not very clear what they will do that I'm looking for. So far those who have tried me do not have them. Thank you for any information! You can represent your files in UM by using standard UML deployment elements and diagrams. You can define files as artifacts with specific file extensions and what nodes are shown to deploy your files, but use deployment relationship. Nodes can be executable environments such as web servers, object containers, etc. In this way, you can create informative networks with accurate navigation. If you need to define the structure of XML or HTML tags, then try to find a particular UML ...

python - Gabor filters: large variance compared to the mean -

I am trying to remove gabber features from an input image, so, I have different parameters (frequency, angle and standard deviation ) And I am leveling each of these filters with the input image and seeing the mean and deviation of the output magnitude image. Therefore, there is something like this in Python: Import the nppy as nppy, as SPP is imported by NDIS # Here the kernel is the GAB filter filter filter (self, Image): filtered = NP. Zero (Kernel) for Kernel in Kashmir * 2,) + image.shape (self. Kernel): filtered [k * 2,:] = nd.convolve (image, np.real (kernel)), filtered '' and now, I Viewing the mean and variance of the power image: def compute_features (self, image): attributes = np.zeros ((lane (self. Kernel) 2) filtered = filter_image (image ) For category (0, Lennon (self.kernels)): power_image = np.sqrt (filtered [k * 2] ** 2 Filtered [k * 2 + 1] ** Therefore [k, 0] = filtered [k,:]. Meaning () attributes [k, 1] = filtered [k, :]. When I look at the m...

perl - Mojolicious dynamic route action depending on state -

I am using Mojolicious :: Plugin :: Authentication to handle authentication in my app. I am trying to establish a path for slash '/' in which there will be a controller / action if it is certified, and not otherwise (i.e., you can go to different pages, depending on whether you are certified Or not.) I'm not sure how to get acquainted with this. Here are some things I've tried to do: $ r-> Any ('/') - & gt; From (CB = & gt; sub {my $ self = shift}; ($ self- & gt; IED_Author) {$ self-> redirect_to ('member # index');} Other {$ self-> Redirect_to ('guest # index');}}); and ... my $ logged_in = $ r-> below (sub (my $ self = shift); if (! $ Self- & Gt; session ("username")) {return undef;} other {return 1;}}); If ($ logged_in) {$ logged_in-> Receive ('/') - to (Controller => 'Member', Action => 'Index'); } And {$ r-> Receive ('/') - & gt; To (Controller...

python-2.5, "argument must be dict, not dict" -

पायथन 2.5 को एक शब्दकोश की अपेक्षा है, नहीं एक dict? # python --version पायथन 2.5.5 Opensolaris व्युत्पन्न (NexentaStor), zfs अनुमतियाँ जोड़ने की कोशिश कर रहा है, लेकिन यह अजीब त्रुटि मुझे रोकती है। फ़ाइल "/ usr / lib / python2 .4 / site-packages / zfs / dataset.py ", पंक्ति 203, set_fsacl रिटर्न zfs.ioctl.set_fsacl में (self.name, un, d) TypeError: तर्क 3 होना चाहिए dict, नहीं def set_fsacl (स्वयं, संयुक्त राष्ट्र, डी): "" "में जोड़ें" Zfs इस डेटासेट पर "अनुमतियों की अनुमति देता है" un true है यदि निर्दिष्ट अनुमतियाँ हटाई जानी चाहिए। डी एक निर्दिष्ट है जिसे अनुमति / निकालने की अनुमति है: {"whostr" - & gt; कोई नहीं # इस इकाई के लिए सभी perms हटाएं "whostr "- & gt; {" perm "- & gt; कोई नहीं} # ये perms जोड़ें / निकालें}" "" self.name को प्रिंट करें प्रिंट प्रिंट प्रिंट प्रिंट (डी) रिटर्न zfs.ioctl.set_fsacl (self.name, un, d) मेरा प्रिंट स्टेटमेंट निम्नलिखित आउटपुट देता ह...

php - Magento Search Not Finding Newly Created Products -

Our servers were recently moved and rebuilt (and when this problem started) Search the products, but only those that have been created (or enabled) before the transfer when I search for a category in the catalog, I have newly created / uploaded I can find the product. This search can not be reached yet. We are using Magento 1.8.1 and SPHINX extensions (supported by mirasvit). It seems that the visibility of your product is disabled Check your visibility of your product Admin - & gt; Catalog - & gt; Select that product - & gt; General - & gt; Visibility set value to catalog, search .

Powershell - Beginner Advice for looping through an array -

I am using PowerShell to do some high level automation and I loop through an array of 2 values Want a dropdown list on a website ... there is no way how to implement it. Here is the code: $ Array = "FirstItem", "second Itam", Foreach $ I $ Array) {while ($ ie.busy) {sleep 1} $ Doc = $ ie.document $ ie.document.getElementById ("DropDownListBtn"). Click () $ link = $ ie.Document.getElementsByTagName ('A') | Where-object {$ _. InnerText-eq '$ i'} # Note: Without using the above variable, I hope the statement will look like this: # $ link = $ ie.Document.getElementsByTagName ('A') | Where the object {$ _ InnerText-eq 'FirstItem'} $ link.click ()} Here is an error: You can not call on a null-valuable expression In the method line: 9 char: 28 + $ link.click & lt; & Lt; & Lt; & Lt; () + Category information: Invalid operation: (click: string) [], runtime expansions + fully qualified error: invokyoutional...

javascript - Preview Entire Document Typed in Textarea in New Window -

I am creating a simple code editor for writing HTML / CSS / JS files online and offline. So far, everything is going well, but I am trying to explain how to properly preview a complete HTML document that is written in the editor, operating system and all. So far for the editor, you can use "open in new tab" to open the document in a new window. However, the only way I want to create this is to use a base 64 encoded HTML file, allowing me to output a whole document to a window, methodology and everyone. it occurs. If I say, previewWinRef.document.write (editor.value) , after trying, which would not work, it was all attached to the current document. How can I clear the content of the preview window of my entirety and how can I write the full value of the editor in the preview window based on the text base64 encoding? [edit]: What is happening in code: editor.addEventListener ('keydown', function (event) {setTimeout (function () {If ( PreviewWinRef) {prev...

javascript - How do I implement multi-touch interaction with paper.js? -

तो paper.js एक शानदार पुस्तकालय है। मैं वर्तमान में एक मल्टी टच वाइटबोर्ड / ड्राइंग वेबएप बनाने के लिए इसका उपयोग करने का प्रयास कर रहा हूं जो कि अंततः एक सर्वर पर सहयोगी होगा। मैं पेपर के साथ मल्टी-टच को कैसे लागू करूं? मेरा रोडब्लॉक झूठ है मैं प्रत्येक स्पर्श के लिए कई रास्ते बनाने के लिए paper.js को अनुमति देने का एक रास्ता खोजने में असमर्थ हूं। अब तक मैंने Google के माध्यम से बहुत कुछ शोध किया है, हालांकि मेरा शोध दोषपूर्ण हो सकता है, मेरे पास है पेपर.जेएस के साथ ब्राउज़र टचवेवेंट्स का उपयोग करने का प्रयास किया, और मैंने प्रत्येक ईवेंट को अलग करने के लिए एक नया कैनवास बनाकर उन्हें संभालने का प्रयास किया है। अगर यहां कोई भी है जो सफलतापूर्वक paper.js , या इस ऐप के लिए पेपर की तुलना में बेहतर सिफारिश है, मुझे सुनने में खुशी होगी। मैंने यह किया है जो कागज के साथ हथौड़ा। जेएस लाइब्रेरी का उपयोग कर रहा है। मैं प्रत्येक संभावित उंगलियों के लिए एक रास्ता बना देता हूं। जब टच ईवेंट उठाया जाता है, तो मैं सभी छूओं की गणना करता हूं और प्रत्येक पथ के लिए अंक जोड़ता हूं। हालां...

java - Find Activity by name using reflection if the Activity is in a subpackage -

I use this method to execute according to their names: Public void startAct (String Activity Name) {try {class This method works fine if all the activity is at the same package level of activity where I wrote this method Example code com.myapp Uk .... if the activity is in a subpackage like com.myapp.uk.group1 seems unable to start activity ... There is also a way to fix the way to do the work if activity has many other subpackages in com.myapp.uk.group1 com.myapp.uk.group2 Com.myapp.uk.group3 etc.

Cannot start SQL Server Agent (Version 2014 enterprise core)? -

The SQL Server Agent Log file contains the following information: I have already set the firewall for Inbound 1433. 2014-11-04 11:59:43 -? [100] Microsoft SQL Server Agent Version 12.0.2000.8 (X64 Unicode Retail Build): Process ID 6108 2014-11-04 11:59:43 -? [4 9 5] SQL Server Agent Startup Service Account ...... 2014-11-04 11:59:43 -! [150] SQL Server does not accept connection (error: 0). Operation attempt was awaited SQL Server to allow connection: Verify the connection at startup. 2014-11-04 11:59:43 -! [000] Unable to connect to server '(local)'; SQLServerAgent can not start 2014-11-04 11:59:43 -! [2 9 8] SQL Server Error: 27, Registry information is corrupt or missing. Make sure the provider is installed and properly registered. [SQLSTATE 08001] 2014-11-04 11:59:43 -! [2 9 8] SQL Server Error: 27, unable to establish client connection [SQLSTATE 08001] 2014-11-04 11:59:43 -! [165] ODBC error: 0, a network-related or instance-specific error occurred while...

navigation drawer - Android 5.0 - Animate the AppCompat v7 21 home icon from burger to back arrow programmatically -

मैं वर्तमान में एक टुकड़ा उन्मुख ऐप (मेरे पास एक गतिविधि एक फ़्रेमलेआउट कंटेनर के रूप में मेरे सभी टुकड़े के लिए मेजबान के रूप में s) से सामग्री डिज़ाइन के लिए और मैं बर्गर आइकन को टुकड़ा की जगह के पीछे के तीर में चेतन करना चाहता हूं। असल में, अगर यह पर्याप्त स्पष्ट नहीं था, तो मैं क्या हासिल करना चाहता हूं। मैं उपयोग नहीं करना चाहता, मैं संभव के विस्तार के लिए आधिकारिक AppCompat lib का उपयोग करना चाहता हूं। मैंने इस आशय का धन्यवाद धन्यवाद प्राप्त किया, लेकिन मैं नहीं कर सकता टुकड़ा बदल दिया जाता है जब बटन के रूप में एक्शनबार ड्रॉवर टॉगल में कैसे करें। तो मेरे सवाल हैं: वापस तीर आइकन अभी भी होना चाहिए एक्शनबार ड्रॉवर टॉगल एक बार रिज़ेंशन को बदल दिया गया है? उस स्थिति में मैं इसे कैसे ओवरराइड करूँगा, इसलिए यह दराज खोलने के बजाय onBackpressed () जैसा दिखता है? मैंने पहले से ही इसे करने की कोशिश की है, लेकिन यह काम नहीं करता है: @ ओवरराइड पब्लिक बूलियन ऑन ऑप्शन्स आईटम चयनित (मेनूइटम आइटम) {स्विच (आईटेट। आईटीएमआईडी ()) {केस android.r.id.home: getActivity...

html - OpenType Font & TrueType Font. Whats the difference? -

During the recent learning of CSS, I tried to include the external font then .otf fonts and .ttf fonts, where both worked perfectly for me, but from that moment, I wanted to know more about those people. Which is better as an external font for web content? Thank you --text "itemprop =" text "> short answer: The difference is irrelevant in the context that you are asking for, use WOFF. A bit longer answer: Both formats are supported in almost all types, and both formats are only different types of openType (tip) fonts, so it can be WOFF (or, these days, packed as WOFF2), It should also know whether it is .otf or .ttf file . The longest answer: .tf is almost universally an open type font with the framework of CFF, and .tft is almost ubiquitous with an open type font with TrueType framework. TrueType fonts are great because their graphics instructions are not very rich, but really it is easy to parse. CFF fonts are more compact because their graphi...

c# - Subtracting properties in a list using LINQ -

मेरे पास निम्न है: (सी # कोड, वी.एस.2013) क्लास डेलीटेम्प {सार्वजनिक इंट डे; सार्वजनिक इंक LowTemp; सार्वजनिक इंक उच्चटाम; } सूची & lt; DailyTemp & gt; DailyTemps = नई सूची & lt; DailyTemp & gt; (); // मैं डेलीटेम्प ऑब्जेक्ट्स के साथ इस सूची को भरता हूं मेरा सवाल है, मैं अपनी सूची के माध्यम से जाने के लिए लैम्ब्डा अभिव्यक्ति कैसे लिखूं और उस दिन को वापस लौटाता हूं जिसमें उच्च और निम्न टेम्पम्स के बीच सबसे छोटा अंतर होता है ? आपके समय के लिए शुक्रिया। कोशिश करें: दैनिक टेम्प्स। ऑर्डरबी (डीटी = & gt; Dt.HighTemp - dt.LowTemp)। चुनें (डीटी = & gt; dt.Day)। पहले (); जैसा कि @Colin DeClue द्वारा नोट किया गया है, यह कॉल करें से पहले पहले कॉल करने के लिए और अधिक कुशल है ताकि हम न्यूनतम जरूरी जानकारी पुनः प्राप्त कर सकें डेटा स्रोत से (जो कि डीबी से आने वाले बड़े डेटा सेटों पर फ़र्क पड़ता है)।

python - Going back to the start of a sftp remote-file -

I am using the permissions to open a remote file, via sftp. The remote file has a list of phrases and I want to see again through each row of the file to see if a given phrase matches the remote file. Code used to get a remote file: self.ssh = paramiko.SSHClient () self.ssh.set_missing_host_key_policy (paramiko.AutoAddPolicy ()) Self.ssh.connect (host, user name = username, password = password) self.sftp_client = self.ssh .open_sftp () self.remote_file = self.sftp_client.open (remote_file_path, mode = 'rb') def checksbnet ( Self, Phrase): found in the line for self.remote_file = 0: if the phrase in the line: found = 1 print "it was found that" brake returns this first phrase match Tax Area will work, however, is to be matched to the next phrase, will file before the last one, then he will not. I've debug it for a loop to resume, from where it was broken in the last match. I would understand that it will resume at the top of the file. Is this behavior...

null - UILabel is not getting created when the app loads for first time- IOS -

I have a problem in which the UILB has not been assigned with text, when the app loads the app load After the app loads the app loads for the first time and is called again several times (which will provide two different labels). There are two methods updateDateLabel and updateTitleLabel On user request - (zero) update database {NSDateFormatter * outputFormatter = [[NSDateFormatter alloc] init]; OutputFormatter.dateFormat = @ "HH: mm MM-dd-YY"; _dateLabel.text = [NSString stringWithFormat: @ "as:% @", [outputFormatter stringFromDate: _refreshDateTime]]; [_dateLabel SatanAIDSDisplay]; } - (zero) update based on the label {_selectedProfileData = [_balanceData ObjectOutIndex: Selected Profiles]; If ([NSNull null]! = [_selectedProfileData objectForKey: @ "advprofileName"]) {NSString * name = [_selectedProfileData objectForKey: @ "advprofileName"]; _titleLabel.text = [NSString stringWithFormat: @ "balance of% @", name]; [_tit...

jsf 2 - JSF param not passing in <h:button> onclick -

देखें पैरामीटर JSF hbutton से एक पॉपअप विंडो में पारित नहीं होता & lt; h : बटन आईडी = "पॉपअप" onclick = "javascript: void window.open ('# {request.contextPath} /pages/index.xhtml', 'पॉपअप विन्डो', विंडो-फीचर्स);" value = "बटन" & gt; & Lt; f: परम नाम = "id" value = "# {showBean1.id}" / & gt; & Lt; / h: बटन & gt; मेरे पास पॉपअप पृष्ठ पर प्राप्तकर्ता दृश्य हैडर के ऊपर सही जगह पर है & lt; f: मेटाडेटा & gt; & Lt; f: viewParam नाम = "id" मान = "# {bean2.pro}" कनवर्टर = "# {productionconverter}" कनवर्टर संदेश = "अज्ञात मान, कृपया सिस्टम के अंदर से एक लिंक का उपयोग करें।" आवश्यक = "सही" आवश्यक संदेश = "खराब अनुरोध, कृपया सिस्टम में से एक लिंक का उपयोग करें।" / & Gt; & Lt; / च: मेटाडाटा & gt; पृष्ठ पॉपअप विंडो में खुलता है लेकिन पॉपअप पृष्ठ पते में कोई परम पारित नहीं है और पृष्ठ पर कुछ भी नहीं दिखाई देता है ...

html - CSS background image will display locally but not on gh-pages, receive 404 error -

Recently I was trying to update my portfolio by adding a background image to the 'intro' category below. I added the image through CSS and when the image was opened properly in Chrome, the image was displayed properly. However, after making my changes and then moving forward to my gh-pages, the background image no longer displays. I've been left with instead: Failed to load resource: the server responded with a status of 404 (not found) http://jlquaccia.github.io/jq -design / img / swirl_pattern .jpg Can anyone help? I think I have done this before killing any problem .. I am also thinking that it should be an easy decision. My code is below: HTML & lt; Section class = "introduction" & gt; & Lt; H1 class = "intro-title" & gt; {Hello, I'm Jason Quakasia & Lt; Br> An ambitious Gulf Area Based Front-End Web & lt; Span class "dev-design" & gt; Developer & lt; / Span & gt; & Amp; # 38; ...

PBS: Check contents of submitted job file -

Is there a way to check the content of a submitted job script / file (Job can be queued / turned on)? Actually, I want to be able to see the command in my script file. TORQUE has saved the job to see that file, you will need root access . The file is located in TORQUE_HOME / server_priv / jobs / JOBID.SC. Most of the time, the torch is installed on the / var / spool / torque, so that for example value for TORQUE_HOME, the script file for Job 1.host can be seen: Vi /var/spool/torque/server_priv/jobs/1.host.SC

java - Building Android Library Project Using Jsoup Library -

मेरे पास एक एंड्रॉइड लाइब्रेरी प्रोजेक्ट है ( SampleLibProject कहते हैं जो बिन में एक कोड के रूप में Samplelibproject.jar ) जो href विशेषता से a टैग को पढ़ने के लिए जेस्उप पुस्तकालय का उपयोग करता है। और मेरे एंड्रॉइड ऐप में, अगर मैं लाइब्रेरी के संदर्भ (परियोजना गुण -> एंड्रॉइड और ब्राउजिंग लायब्रेरी प्रोजेक्ट) का उपयोग करता हूं तो ऐप किसी भी मुद्दे के बिना ठीक काम करता है क्योंकि मुझे अपने एंड्रॉइड ऐप लिब्स में जस्प्स की कॉपी करने की आवश्यकता नहीं है। लेकिन अगर मैं jsoup पुस्तकालय के बिना एंड्रॉइड ऐप के samplelibproject.jar में लिब्स जोड़ता हूं तो मुझे एक अपवाद मिलता है कि java.lang.NoClassDefFoundError: Org.jsoup.Jsoup । तो मेरा सवाल है कि मैं कैसे SampleLibProject का निर्माण कर सकता हूं ताकि एंड्रॉइड ऐप में जेसूप जार को जोड़ने की कोई आवश्यकता नहीं होगी? मैं लिबप्रोजेक्ट के स्रोतों को वितरित नहीं करने जा रहा हूं (मैं सिर्फ samplelibproject.jar को ग्राहकों को देता हूं) और उन्हें वहां एंड्रॉइड प्रोजेक्ट में जेसॉप लाइब्रेरी शामिल करने के लिए बाध्य नहीं करना ...

Routes regex constraint not working as expected with subgroup in Rails 4 -

मेरे पास निम्न बाधा है: get '/: name' = & gt; "उत्पादों # शो",: जैसा = & gt; : उत्पाद,: बाधाएं = & gt; निम्न नाम: / एए - एए लेकिन अगर मैं / \ w + (- \ w +) करता हूँ तो * /। मैच ('aa - aa') मुझे एक मैचडेटा ऑब्जेक्ट मिलेगा। तो, रेल कैसे रेगेक्स की कमी को संभालता है? यह क्यों । Match ? के साथ संगत नहीं हो रहा है इस प्रकार की बाध्यता: / \ A # {tests [key]} \ z / === भागों [कुंजी] इसे देखें: यही कारण है कि यह पास नहीं होगा।

c# - Group resource dictionary files under one resource dictionary file -

Image
Given the Mahapps project, there is a resource dictionaty (Controls.xaml) which is shown as the "root" of the other Resource Dictionary in Solution Explorer How can it be achieved? Removed the Controls.xaml items to the images given below and show extended with some resource dictionaries that have been merged into the Contorls.xaml file. If you see in MahApps.Metro.NET45.csproj, you will find the project file: include page =" styles \ control. Animated SINGLARO tab control. XML "& gt; ; & Lt; Subtype & gt; Designer & lt; / Sub type & gt; & Lt; Generator & gt; MSBuild: Compile & lt; / Generator & gt; & Lt; DependentUpon & gt; Controls.xaml & lt; / DependentUpon & gt; & Lt; / Page & gt; And similarly for other nested xaml resources. If you take a look at Controls.xaml, you will see that they use to merge some of the nested xaml resources in Controls.xaml such that: & lt; Resour...

ios - Open file in .bundle using fopen() -

I have created a custom framework and the resource bundle for use in other projects, in various resource bundles .sqlite And .bin files are included. I am trying to successfully open a file in any project in any other project. Let's say my bundle is called CustomFramework.bundle . Trying to open mybin.bin in customframwork.bundle , I have a class ResourceHelper.cpp within my framework. At this time I am trying to open it: ZERO RESOURCES Helper :: OpenBillFormersSolder (file ** file) {std :: string path; Path = "custom framework. Bundle /"; Path.append ("mybin.bin"); * File = fopen (path.c_str (), "rb"); } How do I feel that file is null . Thanks to open a .bin file in my bundle You need to get the main bundle string and add the resource bundle to that string. Here's how I am working it. zero resource Helper :: openBinFromResourceFolder (const char * binName, FILE ** file) {std :: string path; // Name and file t...

unicode - Python character handling in terminal -

I am in an interactive Pyren 2.7 terminal (Terminal Default Output "UTF-8"). I have a string from the Internet, it has a gt; & Gt; & Gt; One u'm \ xfcssen '& gt; & Gt; & Gt; A [1] u '\ xfc' I wonder why its value is ü so I tried & Gt; & Gt; & Gt; Print (A) Mucin & gt; & Gt; & Gt; Printed (a [1]) ü works with purpose. So my first question is, print which is missing if I just a ? And get out of curiosity: Why is it that I get another output for the following in the same Python terminal session? & gt; & Gt; & Gt; "Ü" '\ xc3 \ xbc' & gt; & Gt; & Gt; Print "ü" traceback (most recent call final): File "& lt; stdin>", line 1, & lt; Module & gt; File "/usr/lib/python2.7/codecs.py", line 351, in writing data, consumption = self.encode (object, self.errors) Unicodecode error: 'ascii' codec does not deco...