Posts

Showing posts from June, 2011

c# - Method to Log errors on Try-Catch Automatically -

I have a class that sends the exception to the database, and saves the error. But I have to keep it under every try {} my method here ..} , and because I have an error log, this is a big application, and I want to override it Hold, every time the application enters the catch, it executes my method and sends the exception and stack trace to the database. Sorry, my english is not good. PD I can develop using MVC.NET 4 razor You can use ELMAH () You can try, which tells how to integrate it with an MVC project. Alternatively, you can use log4net, but it will need to call your catch statement.

java - Android ListView with custom item -

Image
General item I want to do a ListView with custom items is a full width image, Two text view, another image like icon. Something like this: What is the best way to implement it? Thanks You ListView for BaseAdapter , ArrayAdapter should be announced by declaring your own adapter , etc. and there you can write your own implementation of your getView () method Which is responsible for the view of each item in your ListView .

css - Can't center text in a fixed position column -

I'm trying to create a basic 3-column blog template. The left column will be fixed, there will be a title at the top, the profile picture below it, and the nav link given below, while the content on the right will scroll, I can not center in the title on the left; I think there is a conflict between the center using the margin: Auto with position 0: Determine the column. CSS #container {top: 0; Left: 0; Minimum height: 100%; Minimum width: 100%; Z-index: -99999; } #part left time {left: 0; Top: 0; Width: 300px; Minimum height: 100%; Color: # 646f7b; Background color: # 363f48; Status: Relative; Status: fixed; } Div # title {width: 300px; Color: # FF4000; Font size: 200%; Margin: 0 auto; } Img # resize-profile {width: 200px; Height: auto; Padding: 170px 20px 0 40px; Z-index: 99 999; Status: fixed; } Div # nav-left {padding: 400px 20px 40px 40px; Color: # 646f7b; Font size: 125%; Margin: 0 0.75 0; Line-height: 1.25em; Status: Completed; Status: fixed; } .content {position: a...

How fix Tibco BW Coercion mapping err? -

I have any type of element to map to Mapper, but when I follow the instructions to select "XSD" in the left panel "Process Data", I saw a red error in the right "Activity Input" Forced error: Replacement type is not a sub type of type "employee" element (check earnest list); This employee. Xsd is very simple: & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; XSD: Schema & gt; & Lt; Xsd: element name = "employee" & gt; & Lt; XSD: Annotation & gt; & Lt; XSD: Documentation & gt; When changes in any part of the employee (retire, resign, leave) & lt; / Xsd: Documentation & gt; & Lt; / XSD: Annotation & gt; & Lt; XSD: complexType & gt; & Lt; XSD: Sequence & gt; & Lt; Xsd: element name = "EmployeeID" & gt; & Lt; XSD: Annotation & gt; & Lt; XSD: Documentation & gt; This is EmployeeID which is equivalent to...

javascript - PhoneGap Build Android Audio Not Working -

I am using PhoneGap Build to launch Android applications. My html and everything works perfectly in the browser However, it is not on my Android device, is there anything with its permission? I'm not really sure, and completely confused that I have to go to the next key. I have my HTML and Javascript. I do not have any reference files, fyi my folders are css, img, js and sound. Let me know if you can help! HTML + javascript & lt; H1 id = "main" & gt; Geo & lt; / H1> Var PP = 1; Var audio = new audio ('sound / sound 1. mp3'); (Pp == 1) {audio.play (); Pp ++; Console.log (pp);} and if (pp = = 2) {audio.pause (); Pp--; Console.log ("audio pauses");}}); This permission is not an issue, rather, your HTML / Javascript code is run / Loads up inside a customized android webview () There are several queries in this webview and some do not behave in a certain way, such as in some cases the browser will be. One of those cases i...

java - Unicode Regex in Scala REPL -

मुझे यूनिकोड पत्र ( \ p {L} ) के शब्द पता लगाना है। स्काला का आरईपीएल निम्नलिखित कथन के लिए false वापस देता है, जबकि जावा में यह true है (जो सही व्यवहार है): Java.util.regex.Pattern.compile ("\\ p {L}")। मैटचर ("ए")। मैचों () जावा और स्कला दोनों JRE में चल रहे हैं 1.7: System.getProperty ("java.version") देता है "1.7.0_60-ea" क्या इसके लिए कारण हो सकता है? संभवतः दुभाषिए के भीतर उपयोग किए जाने वाले गैर-संगत वर्ण एन्कोडिंग । उदाहरण के लिए, यहां मेरा आउटपुट है: scala & gt; System.getProperty ("file.encoding") res0: स्ट्रिंग = UTF-8 स्केल & gt; Java.util.regex.Pattern.compile ("\\ p {L}")। मैटचर ("ए")। मैचों () res1: बूलियन = सच तो समाधान है scala के साथ -dfile.encoding = UTF-8 को चलाने के लिए। नोट, हालांकि, (जो थोड़ी पुरानी है): स्काला के लिए डिफ़ॉल्ट वर्ण एन्कोडिंग सेट करने के लिए केवल एक ही विश्वसनीय तरीके से आपके आवेदन को चलाने से पहले $ JAVA_OPTS सेट करना है: ...

mysql - INNER JOIN SQL/PHP - Need a single row with array on column -

I have created a relational database for songs, musicians and songwriters. My point is that some songs may be many songwriter or many musicians, so when I search for my database, then I would like to return a song back with an array of musicians or songwriters, if special There are more than one contributor in the song. I am dragging data songs, composers [related to musicians for songs], composers, songwriter [songs written by songwriters], songwriter, details from many tables, all this SQL The query has been brought with: Select songs Song, show Showy, Composer Details Musicians, lyricistdetails.name Songwriter Song Musicians Join I Composers Musicians on Songs Join Details of Musicians Write on the musicians. Join musicians on musicians. Add songs to the songs of songs. Write lyrics on songwriter. Author: lyricistdetails.lyricistid JOIN shows on the show. Showint = songs.showid WHERE MATCH song title) AGAINST ('$ song name' in bullion mode) For the moment, me...

javascript - How to make choses in HTML? -

मुझे यहाँ एक समस्या है। function random_imglink () {var myimages = new Array I .com / POVb0m7.jpg "var ry = Math.floor (Math.random () * myimages.length) अगर (ry == 0) ry = 1 document.write ('& lt; img src ="' + myimages [ry] ] + '' सीमा = 0 & gt; ')} random_imglink () इसलिए, यह स्क्रिप्ट यादृच्छिक चित्र दिखाएगा। लेकिन मैं एक पाठ की तरह बनाना चाहता हूं, इसलिए यदि यह पहली तस्वीर को दिखाता है तो मैं "छवि 1" कहकर कुछ पाठ करना चाहूंगा और अगर वह दूसरी तस्वीर दिखाती है तो मैं इसे "छवि 2" कहने के लिए चाहूंगा। बेशक तस्वीर, लेकिन मैं नहीं जानता कि यह कैसे करना है मैं वास्तव में यहां मदद करना चाहता हूं। इसे आज़माएं: फ़ंक्शन Random_imglink () {var myimages = ["http://i.imgur.com/abaIWZt.jpg" ,"http://i.imgur.com/POVb0m7.jpg"]; Var ry = Math.floor (मठ.रेंडम () * myimages.length); If (ry == 0) ry = 1 document.write ('& lt; img src = "' + myimages [ry] + '" शैली = "सीमा: कोई...

javascript - toString() doesn't work like it used to do -

I have a problem I have an address, for example: var g = "1 9 2"; // global defined // function g () {if (g I will run this code, and first it will come back to "string". But on the second run, why does it give "number"? The function itself is the g.toString () method. Why is the number changing after one run? Thank you for your reply! You need to asign the string in its variable and such a different to your functions or variables The name is: var g = "1 9 2"; // global defined // function test () {if (g View this

python - Programatically retrieve indexs in sqlite -

Is there a way to see the current index in sqlite3 ? I have to find out at the runtime whether some columns have an index or not, and so far I can not find anywhere that tells how to get announcements without using sqlite3 CLI . You can obtain a list of the index of a table, and list the columns in an index Can get it.

php - Return number of lines from a string base on a character -

In PHP, how do I return 6th or 5th or 4th rows from the string that looks like below? Add a new row to the four & lt; Br / & gt; . Therefore, if I have such a string $ lines = 4; $ Song = 'line1 & lt; Br / & gt; Line 2 & lt; Br / & gt; Line 3 & lt; Br / & gt; & Lt; Br / & gt; Line 5 & lt; Br / & gt; Line 6 & lt; Br / & gt; Line 7 & lt; Br / & gt; Line 8 '; It should be returned line1 & lt; Br / & gt; Line 2 & lt; Br / & gt; Line 3 & lt; Br / & gt; Line 4 if I have $ lines = 4; $ Song = 'line1 & lt; Br / & gt; Line 2 '; It should be returned line1 & lt; Br / & gt; Line 2 By dividing the string into an array, before the first array created n to get the element. Finally join them again. $ n = 4; $ Song = 'line1 & lt; Br / & gt; Line 2 & lt; Br / & gt; Line 3 & lt; Br / & gt; & Lt; Br / & gt; Line ...

How to prevent time synchronization on Azure VM -

I am trying to simulate a different date / time to check an application on an EZU VM, but Time keeps resetting itself, at the current date / time, unless I manually change it, is there any way to force the server to stay on a specific date / time? I have disabled the Windows Time service, Hyper-V time synchronization service, and have changed the time settings, not to synchronize with an Internet time server, Now it will be back in time, it will last for an hour or more, but will still be returned to the current date / time. What is the reason for this and what is the way to stop it? As described by the cloud integration team at Microsoft "roles are when The textile controller maintains the time synchronization of the operating system for the system if you use the administrative access startup script to change the localization settings (including local server time), but if this is not recommended, then by doing so, the location of instability Let's go And the cl...

handlebars.js - Meteor template not getting it's data for some reason. Confused about when to subscribe -

My meteor template is not receiving its data. It is a root user, and it does not have anything for all its handler fields Not showing. Here are the proper parts of my router. this.route ('admin', {before: function} (if (! IsAdmin ()) router.go ('home') ;}, Data: function () {return meteor.users.find ();}, wait: function () {mention meteor.subscribe ('adminAllUsers');}}); this. Root ('adminUser', {path: '/ admin /: _ id', first: function () {if (! IsAdmin ()) Router.go ('home');}, // This is a potential problem area : Function () {return Meteor.users.find (this.params._id);}, wait: function () {return Meteor.subscribe ('adminUser', this.params._id);}}); My publications are doing their job, since I talk like Meteor.users.find (). In the fetch () console, pop up all the objects with the right areas, if you want to see that relevant publication only asks. My templates: & lt; Template Name = "Admin" ...

class - Strange behaviour when inheriting from a list in python -

I was recently negligible with heritage and I am a little confused with the following: square fu (list): def method (self, talk): new = self + [matter] print (new) self = new print (self) def method2 (self, cheese): self = = [] & gt ; & Gt; & Gt; F = Foo ([1, 2, 3, 4, 5])> gt; & Gt; & Gt; F.method (10) [1, 2, 3, 4, 5, 10] [1, 2, 3, 4, 5, 10] & gt; & Gt; & Gt; F [1, 2, 3, 4, 5] & gt; & Gt; & Gt; F.method2 (10) & gt; & Gt; & Gt; F [1, 2, 3, 4, 5, 10] In-Place Method method2 works but does not do first? Because how in-place operators work. self = self + [cheese] creates a new list and put it in the local variable self , overriding passed one, but This object does not modify itself internally, it adds self = self .__ __ ([cheese]) . self + = [thing] , otooh, place. Internally it tries to self = self .__ iadd __ ([thing]) first. iadd means "Install Ad" only if it does not exist, then is self-s...

asp.net - The Microsoft Jet database engine cannot open the file -

I am writing a code for query, using the SQL using the CSV file is my code that works perfectly fine string file directory = @ "C: \ technical exam \ GskTest \ Csv \ SampleData.csv"; String strCSVConnString = "provider = Microsoft.Jet.OLEDB.4.0; data source =" + file directory + "; extended property = 'text; hdr = yes;'"; Select the number of string sqlCust = "sample data ccv" (order_id), order_id, contact_id "+" order_id group, contact_id "+ 1dcc" by order "; string sqlProd =" selection number (order_id), sample_data.csv Product_id "+" by Group "+" Order 1 by DCC ";; string sql order =" Count Count (Order_ID) "from SampleData.csv" + "Order by 1 DCCC"; OleDbConnection con = New OleDbConnection ("Provider = Microsoft.Jet.OleDb.4.0; Data Source =" + System.IO.Path.GetDirectoryName (File Directory) + "Extended Properties = \" text; HDR ...

c# - Formatting the string by rewriting the delimiters -

I am working with some legacy data, where they place each record in a large / large string (a string = a record) each string, they are divided into delimiters any data, but defines each actually a sense of them, for example: \ vToyota \ cBlue \ cRed \ CWhite \ s200mph \ oAndrew \ oJohn \ v The vehicle means, \ c is the color, the speed is \ o the owner. Something like this .. For my work, I need to reformat the data so that if there are too many areas of a specialty, I would have to type it again: (for example) \ vToyota \ cBlue \ c2Red \ c3White \ s200mph \ oAndrew \ o2John edit: Well @ Darren Yug suggestions work! Now I have an array of vToyota cBlue cRed cWhite s200mph Ondreu ozone. I tested the other data using the same method and it is also working. Now I just need help finding a way to rewrite the first letter of each string Thanks! I found this interesting little puzzle to see what I can do with LINQ. Start the following tasks: private string Fiksit (stri...

javascript - Ideas for refactoring some duplicated code in peer angularjs controllers for managing $intervals -

I have a small SPA that displays many tabs. Each tab shows the operating status information about the application that it is concerned. The controllers of each tab create the $ interval object that calls AJAX to the server to receive status information. To be a good citizen, I have concluded that when a tab appears, other gaps for the other tab should be disabled so that they do not call AJAX. In HTML, each of my "tabs" elements has the same characteristics as the following: select one of the tabs associated with that tab, I have There is a controller for the tab, but it has an Ardi with two entries, and in I use "$ broadcast" so that epicodriel entries can manage their own intervals. Do not I think that I have fewer methods that are almost repeated in every controller. Each controller has the "selected" and "unselected" method, and all the components that manage their own intervals are "start" and "cancel" meth...

Count rows with two values mysql (PHP Error) -

Do I have the following code, but anyone can get because I unexpectedly T_Variable can not seem to let me know that I error Where any help is available, it will be very helpful. Thanks see below & lt;? Php $ status = mysql_query ("Selection Number (*) AHG from where 'survey technical preliminary` =' Jeff 'and full =' yes'"); If (! $ Result) {dead ('invalid query:'. Mysql_error ()); }? & Gt;

Android emulator won't start in eclipse software -

I downloaded the eclipse the second day, and it was all working well. So today, Android emulator stopped working, I do not get an error, it will do nothing if someone can help me, so it would be great thanks. I'm running it on the Mac.

visual studio 2013 - How to implement role based authorization in asp.net mvc3 -

I'm working on a school project and introduce me to role-based authentication in a Aspiknet MVC 3 application Will happen. This app currently stores only the user's role in a field in the database and is only a login page. I need to separate content into other applications to various users, including add-ons, supervisors and consultants (advisors can input new client information and view and edit customer information to edit them Supervisors can view and edit all the clients, view and edit information and consultant information. L have access to all applications.) I am being not sure about that, what other information about the application, but I would really appreciate any help as I am new to ASP.net MVC as a whole. Most tutorials I can concentrate on the specific piece of role-based approach. Roles require more enforcement and approach me down to the Authority On Aspianiti Configuration Tool Have a look. I believe you want this:

javascript - Underscore.js _.partial with _ as argument not working -

I am using backcon and underscore. According to the document of Underscore.js, you can pass _ _ in your list of logic for a logic of _ partial (function, * args) function: To specify that should not be filled with the first, but left to the call-time supply to the open. Anyone have a working example of this? I am making a partial call within such a scene: this.filterCollection = _.partial (filterFn, _, SEARCHTERM); Where FilterFn looks like this: function (license, key) {var organization; Organization = app.organizations.get (license.get ('organization_id')); If (license.isNew ()) {return true; // Always include new models in search} Other {Return (Organization & amp; Organization .get ('name'). Index (key)! == -1); }} I am calling this in keeping with this in mind: this.filterCollection (model) The filter crashes on the phone line: organization = app.organizations.get (license.get ('organization_id')); Because License has n...

mysqli - Connect TYPO3 to MySQL using SSL -

Is it possible to connect TYPO3 CMS to MySQL on SSL? I received this feature request 7 years ago, but it seems that this feature was not implemented. Secure database connection to support (such as MySQL on SSL) this The time is not possible with the standard core of TYPO3 to connect from SEL to another server. There is no extension in TER too. But it is possible to create a custom extension. connect_db () method expand > one for SSL login data Create config file Get them in your extensions somehow Use Extended Classes by creating a ext_localconf.php to TYPO3 Extensions with this content Folder: $ global ['TYPO3_CONF_VARS'] ['SYS'] ['object'] ['TYPO3 \\ CMS \ \ Core \\ database \\ database connection '] = array (' classname '= & gt;' vendermam \\ Your ExtensName \\ Database \\ Database Connection '); Edit: Updated reply to fit SSL

objective c - Looking for code to 'set current key' when saving data --iOS App-- -

I've recently posted a question about some issues, I've been saving data in an text field for an app. I'm making that in Xcode. The question can be seen here, I found a very useful answer, which helped me in the clue, where I was going wrong, but I still needed the code I'm unsure about - (zero) view in particular: (BOOL) animated [[super visual shape looks: animated]; If (! [Self.tField.text isEqualToString: @ ""]) Set the current time [Data Settronic Content: Self.tField.text]; } Else {// Set Current Current [Data Removed Notifier:: [Data Getting Career]]; } If (! [Self.tField2.text is EqualToString: @ ""]) {// Set Current Current [Data Set Note Foreword: self.tField2.text]; } Else {// Set Current Current [Data Removed Notifier:: [Data Getting Career]]; } [Data Save Notes]; } I added the second text field to enable the second text field to be saved, but I do not know which code to call different items To do. With the associated key...

java - How to print elements from a binary tree ignoring all the repeating ones? -

सार्वजनिक शून्य प्रिंटट्री (नोड रूट) {if (root! = Null) {printTree (root.left); System.out.print (रूट.वर्ड + "" + रूट.लाइन + ""); स्ट्रिंग tempStr = root.word; Int tempLn = root.line; // यह कैसे उपयोग करने के लिए पता नहीं printTree (root.right); }} मान लें कि पेस्ट को पहले से ही किसी शब्दकोष के क्रम में क्रमबद्ध किया गया है। उदाहरण के लिए, फ़ाइल इस तरह है: Aaa zzz और आउटपुट की तरह होना चाहिए: एएए लाइन : 1 लाइन: 3 3 3 3 zzz रेखा: 2 मेरा कोड अब कई बार एक ही शब्द प्रदर्शित करता है .. मुझे नहीं पता कि इस कोड को कैसे व्यवस्थित करें .. समस्या यह है कि आप तुरन्त हैं जानकारी को आउटपुट करने पर आपको यह पता चलता है। इसके बजाय, आपको एक निरंतर फैशन में आने वाले डेटा को संग्रहित करने की आवश्यकता होती है। आप संभवत: एक हैशमैप & lt; स्ट्रिंग, लिस्ट & lt; Integer & gt; & gt; डेटा संरचना का उपयोग करना चाहते हैं इस जानकारी को रखें।

javascript - How to instantiate multiple jQuery File Uploads? -

So basically, I have difficulty trying to create multiple times. Currently, I have a button on my page which allows a user to create a new div which contains text input and some graphs. I will use these new I would like to add a file upload part from div so that they can attach images. Create new div , which is unlimited, Divs are made from a long JavaScript string and are attached at the end of a container. I would like to use the 'Basic Plus UI' version because it has a better and cleaner interface. Some very basic instructions are displayed on the site, but I do not have to make sure that it is possible with dynamic construction or not. The main problem is facing: The uploader engages the selected images in a section below their information to ensure my code to ensure that $ (This) will work with each uploader completely different from others. The plugin currently works with ids and orbits, so I have to get around this also. Of course, I am not asking ...

python - I need to use multiple conditions in a while statement -

I am new to coding and I have very little idea what I am doing. So it can be very wrong but I have to make a code that determines the slope and Y interrupts. I have created a loop to determine whether any coordinates are the same and if they are then they should be replaced, although I have trouble getting out of the loop. Here's my current loop. Any help would be appreciated. ! thank you in advanced! Def whileloop (): While correct: y1 == y2 or x1 == x2 print ("error") print ("Please enter the values ​​that are not equal to one another. Print "Y1_str = input" (Please enter y1 ") y2_str = input (" Please enter y2: ") (" Please enter the values ​​that are not equal to one another. ") X1_str = Input (" Please enter x1 ") x2_str = input (" please enter x2: ") and: y1! = Y2 or x1! = X2 I thinks what do you want Something like this: def whileloop (): while correct: y1_str = input ("please enter y1:...

javascript - Does anyone know of a way to dynamically load a qooxdoo module? -

I am using the latest qooxdoo sdk (3.5) and find a way to dynamically load a module load I am trying. Each module will implement an "init" function that creates a window in the application, and from that point on, it is self-contained. What do I need, the ability to call without any irregular init function? The module already existed. For example, someone uploads a custom module and tries to run it - I have a module's init Need to call the function (or error if call failed) Any thoughts? Edit: Something like this: function load module (modName) {var mod = new qx.something.loadModule (modName); Mod.init (); } I have come to know in 3 ways that KuoCdu has to run dynamic code. The first way is through the underlying parts loader. "Parts" are basically a fraction of an app that KuoCadu will actually "actually" from time to time to load - for example, a class that rarely manages the form or dialog box used. Actually not dynamic (in my op...

objective c - iOS: Error When Scrolling Quickly Through Photos? -

I am currently using MWPhotoBrowser in my application and when I scroll through the pictures quickly, Receive the following error: Received Memory Warning 2014-02-17 16: 42: 35.117 App [10803: 60b] *** Disclaimer Exceptions Ending the App due to 'NS Generic Expression' Reason: '*** Collection & lt; __SSARMRM: 0x156f3160 & gt; It was being mutated while being calculated. *** Throw First call stack: (The 0x2e71de83 0x38a7a6c7 0x2e71d971 0x151167 0x15139b 0x311643ff 0x3116446f 0x31164665 0x31164805 0x3111ea67 0x38f5f0af 0x38f6072f 0x38f61959 0x2e6e85b1 0x2e6e6e7d 0x2e651471 0x2e651253 0x3338b2eb 0x30f06845 0xff035 0x38f73ab7) libc ++ abi.dylib: Type NSException not come exception Ending with I am currently loading images stored locally in the app. This is an exception throwing tool: - (zero) Release aliorerring photo: {{ID PHOTOS} in {_photos} {if (p! = [NSNull null]) {if (preserveCurrent & amp; p == [self photoAtIndex: self.currentIndex]) {continue;...

html - Video is not centering itself like the rest of my code -

So I'm using the same format for everything at the center of all screen resolutions. This has been good for some time, as long as I do not try to add a video. Is this certain because it's a video? JSFIDDLE: My code is HTML & lt; Body & gt; & Lt; Div id = "page-wrap" & gt; & Lt; Div id = "header" & gt; & Lt; Img src = "http://i.imgur.com/UMz3wIf.png" /> & Lt; / Div & gt; & Lt; Img src = "http://i.imgur.com/8snNfFV.png" /> & Lt; Ul id = "nav" & gt; & Lt; Li & gt; & Lt; A href = "http://www.voyage-us.com" & gt; Home & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "http://www.voyage-us.com/xenforo/upload/index.php" & gt; Forums & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "http://www.voyage-us.com/members" & gt; Members & ...

php - Cakephp SQL Error 1054 Unknown Column In The Field List uploading image file -

I'm totally confused with this I am trying to upload an image but I continue this error I have searched the site and I have searched many single questions but I did not get any of these solutions to work for me. Public function process image upload ($ check = array ()) {if (! Is_uploaded_file ($ [[image]] ['tmp_name'] check) {return incorrect;} if (! Move_uploaded_file ($ Check ['image'] ['tmp_name'], WWW_ROOT. 'IMG' DS 'upload' .desche [[image]] ['name'])) {return false;} $ this- & gt; ; Data [$ this-> nickname] ['image'] = 'upload' DS $ check ['image'] ['name']; return TRUE;} Next time I add my code to PostsController (if ($ this->;; - ('Post')) {$ This- & gt; Request-> Data ['Post'] ['Use User name ('username'); $ this- & gt; after & gt; create ($); $ data = $ this- & gt; request- ($ Data ['post']; if ($$ [[image]] ['nam...

entity framework - EntityFramework with Oracle Insert many to many error -

Image
I'm using EntityFramework 5.0 to model your Oracle 11g database. I have 3 tables with several tables. Make Table Zsa (ID number (10,0) is not, name VARCHAR2 (20 BYTE) No Kantrostent za_pk primary key (id)); Table Create Zb (ID number (10,0) NULL, name VARCHAR2 (20 BYTE) No, no, Kantroln zb_pk create PRIMARY KEY (ID)) Table (Za_id number (10,0) zero, zb_id NUMBER (10, 0) void contract zc_pk primary key (za_id, zb_id), contract zc_za_fk foreign key (za_id) references (ID), CONSTRAINT zc_zb_fk foreign key (zb_id) reference zb (id)) table To add a record of inserting, I add and trigger the sequences in each table: Select the new old ROW BEGIN ZA_SEQ.nextval as old as the first trigger jade-transger before jade referencing: Double by NEW.ID; End; For each line, create new ZB as new ZB-transerring injector before creating the tracer zb_trigger or start over again: Select ZB_SEQ.nextval: Dual to NEW.ID; End; Now, when I use this code to insert records in the database: Z...

d3.js - D3 force layout fix root node at the center -

I managed to draw some basic D3 force layout graphs, but struggling to fix the root node in the center . My data is rather simple; One root node with children of one level Only one level is another special thing about my graph that the link distance is different depending on some parameters. I have to put the root node in the center of the graph. Setting its property 'fixed': does not really work. Any idea of ​​having a root node in the center? force. ("Tick" function () {nodes [0] .x = w / 2; nodes [0]. Y = h / 2; should do this.

yarn - What's the right way to use historyserver of hadoop 2.2? -

I have been using hasoop-hasoop-2.2.0. Can I start history in master node and slave node? But I'm not sure that I need a history server on the slave node? If I start a history server on the master, can I get all the logs of all jobs? If I have a command to start the master and slave node, do all the use of an order? Do not start each server one by one. Any comments welcome. You only need one historian to run it on any of the nodes you like, in which It also includes a dedicated node, but traditionally runs on the same node as a resource manager. A history server has been announced: mapreduce.jobhistory.address : MapReduce JobHistory server host: port is the default port 10020. mapreduce.jobhistory.webapp.address : MapReduce JobHistory server web UI host: The port is the default port 19888. mapreduce.jobhistory.intermediate-done-dir : The directory where the history files are written by Metrardous jobs (in HDFS) is the default / mr-history / tmp ...

sql - System.InvalidOperationException: Error on updating the table through datagridview using dt.update method -

I have a problem updating the table through the data grid view with a button click here is my code. public sub loaddgvfrm3 () cmdconn = new SqlConnection cmd = new SqlCommand cmdconn.ConnectionString = sqlstr cmdconn.Open () cmd.Connection = cmdconn select cmd.CommandText = "period, VOUCH_AMT, Indivijual_amti , Check_no, d_midadad, dir_no, what updated, tobee.EBD_BILLHISTORY of the year student where CLAIM_NO like "+ + txtClaimno.Text" "CMD" Commandtekst = "a. Period, a. Viaiacmamti, e. Indivijual_amti, select a .check_no, a.bal_ent, a.D_MAILED, a.DIR_NO left one tobee.EBD_BILLHISTORY carlos.claims_waivee b a.CLAIM_NO = b.claim_no where like b.CLAIM_NO 'retarded' '+ claimno.ToString + "'" to "dim cmdbuilder = as new DataTable for DS new SqlCommandBuilder (DA) 'da = new SqlDataAdapter (included) da.SelectCommand = Cmd da.Fill (DT) Me.DataGridView1.DataSource = DT Me.DataGridView2.DataSource = DT cmdconn.Close () las...

call from web service to another wcf service throwing an error -

I have a console application (i.e. Project 1 / Solution 1). I called a web service (. The separate project (the Project 1 / Solauton 2) via a web project, there are two separate business class management (ie Project 2 / Solauton 2) console application, which is called two different external WCO services. I programmed manner closing'm building point and binding elements to call WCF methods. s Dpoint address ed = new Andpointadres (rtd.WebServiceUrl); BasicHttpBinding binding = new BasicHttpBinding ( "BasicHttpBinding_TestService"); Srviscleint client = new Srviskliant (binding, Ed); String response = ClientkGetdetails (string input 1, string input 2) do not get me elements that match "is getting error" key 'BasicHttpBinding_TestService' configuration element collection "although I've added config in my app.config file Registration My app.config file section & lt; binding name = "Basic HttpBinding_TestService" closeTim...

jquery - navigation bar line underneath the selected item -

I would like to go to the navigation bar line below the selected item for style Example with CSS below . I have seen the whole day that this is possible. Almost like a margin, but with a different color, a rectangle with the bottom of a line is called the selected item. I tried to keep an image in this description but he said that it requires 10 establishments ???? If you id = "menu" & gt; & Lt; Li data-color = "red" & gt; Menu item 1 & lt; / Li & gt; & Lt; Li data-color = "blue" & gt; Menu item 2 & lt; / Li & gt; & Lt; Li data-color = "green" & gt; Menu item 3 & lt; / Li & gt; & Lt; / Ul & gt; Write jquery on click event $ (function () {$ ("# menu"). ("Li"). ("CSS ( "Limit below", "none"); $ (this) .css ("click below border", "1px", function () {$ ("# menu"). Solid "+ $ (this...

avfoundation - Trouble with saving an NSMutableArray with url's at NSUserDefaults -

I created an app that I read and I record audio and then save all audio files permanently I try From my unique URL path in a mutablearray and from there to NSUserDefaults, but I am trying to set a non-property-list object error here is a part of my code that crashes: - (zero) audio recorderDefinishing recording: (avioiodic recorders *) Recorder successfully: {BOOL} flag {if (flag == true} {[self.recordings addObject: _audioRecorder.url]; NSLog (@ " % @ ", Self recording.); [User. Folose set object: recording for yourself: insect: FTS]; [self-user synchronization of default]; NSLog (@ "% @", self recording);}} Thank you. - (zero) viewDidoadload {[Super Viewedload]; // NSUserDefaults for Yourself Object Receive User.Defaults = [NSUserDefaults StandardUserDefaults]; // tag of app-tag Mr. couple of NSDictionary found NSArray * dictionary = [self.userDefaults arrayForKey: FTS]; // If zero is zero, create empty NSMutableDictionary; / Otherwise, create NSMutab...

javascript - Angular. How to change model value during validation in input? -

कृपया, इनपुट क्षेत्र के लिए 'myValidation' निर्देश का वर्णन कैसे करें & Lt; input my-validation ng- मॉडल = "myValue" & gt; इसे निम्न प्रकार से व्यवहार करने के लिए: यदि उपयोगकर्ता इनपुट 'A' डायरेक्टिव को myValue अन्यथा बस मूल मान 'बी' = "Post-text" itemprop = "text"> आप myValue पर एक घड़ी बना सकते हैं और जब मान बदल जाता है तो अपना सत्यापन करें ... पिंड:

how to add color to circle in driver class (java) -

सार्वजनिक वर्ग चालक {सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {स्कैनर कीबोर्ड = नया स्कैनर (सिस्टम। में); डबल परिधि; डबल त्रिज्या = 5.5; डबल पीआई = 3.1415 9 26; डबल क्षेत्र = 0; सर्कल सर्कलबैजैक्ट = नया सर्किल (); // त्रिज्या सिस्टम जाओ। प्रिंट। ("सर्किल के त्रिज्या"); त्रिज्या = keyboard.nextDouble (); System.out.println ("नया सर्किल ऑब्जेक्ट"); सर्कल सर्कल = नया सर्किल (); System.out.println ("सर्कल का क्षेत्रफल:" + सर्किल। गेटएरिया ()); System.out.println ("मंडल की परिधि:" + सर्किल। गैटक्रिकमफरेंस ()); }} मुझे समझ में नहीं आ रहा है कि कैसे एक रंगीन एक बनाने के लिए चाहे वह लाल, हरा या नीला हो। सर्कल को रंग बनाने के लिए मुझे क्या जोड़ना है? इसके अलावा, ऐसा लगता है कि मैं रेखा के साथ सर्कल ऑब्जेक्ट नहीं बना सकता Circle circleobject = new circle (); मैं क्या गलत कर रहा हूं? यह मेरा सर्कल वर्ग है। आयात करें java.awt.Color; आयात java.awt.Graphics; आयात करें java.awt.Graphics2D; / ** * एक सर्किल एक आंकड़ा है जिसमें त्रिज्या, परिधि,...

Installing Python libraries using Pip -

Thanks in advance for any help! I am trying to set up a set of Python 2.7. By using the pipe 1.5.2 5 libraries I am following the following: till I did not move this line, everything was recovering: Sudo PIP installed - Now- Sub-External - Full-Unverified Pr - Full-Unchanged psutil -r $ NUPIC / External / General /requirements.txt I found this error: Building '_imagingft' extension cc -fno-strict-aliasing -fno-common -dynamic -arch X86_64 -arch i386 -g-dew-pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd - DENABLE_DTRACE-DMXA X-DDBUG -Wall-Verti-Prototype -Version-64-to-32 -DNEUUUG -G-FWV-O-West-West-Prototype -DENABLE_DTRACE -arch x86_64 -arch i386 -Pipe-i / System / Library / Framework / TCL Framework / Header-I / System / Library / Framework / Tk.framework / Headers -I / usr / local / include / freetype2 -IlibImaging-Eye / System / Library / Framework / Python. Framework / version / 2.7 / included- I / usr / local / include -i / usr / included -i ...

Programatically click link with JQuery -

I am testing a plugin that I am making, but I do not get enough in doing 1 part work. I am trying to click on a link to the program on the following page (as an example): http://store.nike.com/us/en_us/ Pd / flyknit-lunar2-running-shoe / pid-830248 / pgid-1499411 I'm trying to click on the shape button to display the shape, but Nothing like this is happening. I can change the actual text on the button: $ ('span.js-selectbox-label'). Html ("Test"); This works, so I know that I'm talking to the right time. However, when I click, there is nothing like that, I hope the Size box will pop up as I have manually clicked the Size button: $ ('Span.js-selectbox-label'). Click (); My ultimate goal is to be able to use jQuery to choose a shape for the program. So if someone can suggest a shortcut to do this, then I will be ok with this too. If you select & lt; A & gt; tag means you can try doing something like this: $ (...

handlebars.js - Calling Javascript function from handlebar -

How to call JavaScript function inside the handlebar? Reason: I could not be able to break {{#each}} from the handlebar. So I need to do this javascript and do the logic. You can do this with assistants; Handlar Registry Helper ("Print Items", Function (item) {var html = "& lt; ul & gt;"; Item. Each (Function (Entry) {html + = " ";}); html + =" & lt; / ul> "; return HTML;}); and in your handlar template; {{printItems items}} Top code in your item list. See for more information. Go to the Assistant section

firewall - Where to start with cyber security -

Where is a good place to start with cyber security, not necessarily directly related to programming? I am looking to cover many issues: Fire Walls Networking Setup XSS SQL Injection One and other things which I do not know I do not know. My current experience is some programming, some networking I know to clean up my user input before sending a database, etc. Where should I start? I have some print books to read, but other resources are also welcome As you like New on the subject and in the specific area of ​​the computer is not special yet security, I highly recommend it provides a huge amount of free video-based tutorials and other video content that you can learn. Especially you should go for "megapremiers" :)

sqlite3 - Where does my sqlite database go? -

This can be a dumb question, but how am I confused about how the real SQL is being used by the database My Flask application works with the database I have a python file, models.py which defines a SQLAlchemy database schema, and then I have this part of my code that creates a database for it if __name__ == '__main__': to sqlalchemy.orm import from sessionmaker engine = create_engine QLAlchemy import from import_engine to datetime import timedelta ('SQLite: //', echo = true) Base.metadata.create_all (engine) session = sessionmaker (bind = engine) session = session () #A sample user user = add user (name = 'Phillip House', password = "exam") session.add (user) session.commit () I run that file and it works fine, but now I am confused about what happens with the database..how can I access it in any other application? I have also heard that it can only be in memory, and if this is the case then how do I create a permanent database file, from whic...

c++ - vector::push_back and std::move -

इस सवाल का पहले से ही एक उत्तर है: 4 जवाब मैंने निम्नलिखित कोड की कोशिश की: #include & lt; iostream & gt; संरचना परीक्षण {परीक्षण () {} परीक्षा (परीक्षण संधि & amp;) {std :: cout & lt; & lt; __ लाइन __ & lt; & lt; "\ n"; } परीक्षा (परीक्षण एवं amp;) {std :: cout & lt; & lt; __ लाइन __ & lt; & lt; "\ n"; }}; #include & lt; vector & gt; # शामिल करें & lt; उपयोगिता & gt; // std :: move int main () {ऑटो & amp; amp; Tmp = test (); std :: वेक्टर & LT; परीक्षण & gt; v; v.push_back (tmp); std :: अदालत के & lt; & lt; __ लाइन __ & lt; & lt; "\ n"; v.push_back (std :: चाल (tmp)); वापसी 0; } बनाम -2013 कंपाइलर आउटपुट: 6 // copy 18 9 // चाल 9 / / 9 // 6 // कॉपी करें मेरी समस्याएं हैं: क्या टीएमपी परीक्षण और amp; amp ;? क्या टीएमपी एक रैवल्यू है? अगर टीएमपी का प्रकार परीक्षण है & amp ;, तो पहले पुश_बैक का उपयोग चालक कंसट्रक्टर क्यों नहीं...

sql - Error with addition in MS Access one table to another? -

I have 5 columns and 5 rows in my table, now just add AmountPaid column to me Need 3 rows and other tables that you want to store in the table are unique codes and recording this unique code I want to add this total amount to the new table. I tried this code, but how not working except me. Select No invoice, Invoice-date, Salesperson (Sales Sales from Sales Salespus where Sales Department. Salesperson ID = Invoice. Sales Process) Salesperson, Client, Order Number, Grandot, Amountpaid (Payment Amount Payment of payment from where payment: no explanation = invoice. Invoice non) Evoound invoice; If I remove the last column Paid column then this code is working fine. But I have to add the subsidized amount of a table and store it on the second table column. How to complete this task? Hope it helps. Subkey: Select Invoice, Invoice Date, (Sales Salesperson, Sales Department, where Sales Department. Salesperson ID = Invoice. Sales Process) Salespersons, Clients, Orders...

jquery - How to make the child element display on top of parent's scrollbar -

I have a custom dropdown inside the table cell The table containing the cell is in the cover that is horizontally scrolled Should be done, but not horizontal scrolling works fine, but I found out that overflow-x: auto; Overflow-y: visible; According to the specs, will not work together. The dropdown content is displayed below the scrollbar of the original container. I am trying to display the dropdown at the top of the horizontal scrollbar. Here's the one that I have yet. I'm not sure how I can not display the vertical scrollbar when you click on the dropdown. I'm just thinking of cloning the dropdown menu, adding it to the end of the body and then putting it in the original position where it basically floats on everything and does not affect the container of the table. Thing, I have to think about how to scroll it with the table when the container is scrolled. Thank you. This is impossible because the .wrapper wrap all the contents if you type the .co...

jquery - Link :visited not work -

मेरे पास li नामक वर्तमान पृष्ठ पर एक वर्ग है। मुझे यह वर्ग हर li पर ले जाने के लिए चाहिए और जब विज़िट किया गया है, तो उस से हटा दें। & lt; div class = "nav-collapse collapse" & gt; & Lt; ul class = "nav pull-right" & gt; & Lt; li वर्ग = "वर्तमान पृष्ठ" & gt; & Lt; a href = "/" & gt; होम & lt; / a & gt; & Lt; / li & gt; & Lt; li & gt; & Lt; a href = "/ पृष्ठ / स्थैतिक पृष्ठ? पृष्ठपाठ = लगभग 20% यूज़" & gt; हमारे बारे में & lt; / a & gt; & Lt; / li & gt; & Lt; li & gt; & Lt; a href = "/ पृष्ठ / स्थैतिक पृष्ठ? पृष्ठ पृष्ठ = निवेशक" & gt; निवेशक & lt; / a & gt; & Lt; / li & gt; & Lt; li & gt; & Lt; a href = "/ पृष्ठ / ContantPage? पृष्ठ आईडी = 1" & gt; उत्पाद & lt; / a & gt; & Lt; / li & gt; & Lt; li & gt; & Lt; a href = "/ पृष्ठ / ContantPage? पृष्ठ...

php - Codeigniter DB where clause syntax error -

Consider this function to get data from DB in Codeigniter: function Popular_list ($ range = 2) {$ this- & gt; Db- & gt; Select ('News. *'); $ This- & gt; Db- & gt; Where ('id', $ this-> uri-> section (3)); $ This- & gt; Db- & gt; Where ('Publish', 1); $ This- & gt; Db- & gt; Where ('seen', (> = 5); $ This- & gt; Db- & gt; Order_by ('id', 'desc'); $ This- & gt; Db- & gt; Boundary ($ border); $ Query = $ this- & gt; Db- & gt; Receive ('news'); Return $ query- & gt; result (); } I am getting this parse error: Parse error: Parse error in C: \ xampp \ htdocs \ misnews \ application \ model \ home_model Line 113 on line 113 is FPP 113: $ this-> Db- & gt; Where ('seen', (> = 5); What am I doing wrong? To change your position below: $ this- & Gt; Db- & gt; Where ('see' = ', 5);

approval tests - ApprovalTests failing when files are identical -

अनुमोदन का उपयोग कर सी # में सत्यापित करें स्वीकृति। सत्यापित करें (player.ToString ()) ; और यह कोड की तुलना में खुलता है और यहां तक ​​कि जब मैं इसे कॉपी करता हूं, तब भी वह असफल हो रहा है। यह क्यों कर रहा है और मैं उसे कैसे ठीक कर सकता / सकती हूं? यह सबसे अधिक संभावना है कि दो फाइलों के एन्कोडिंग के साथ एक समस्या है (प्राप्त अनुमोदित बनाम) साइड नोट : शायद 1 यूटीएफ -8 है और दूसरा एस्सी है अलग-अलग उपकरण अलग-अलग तरीके से इसे संभाल लेंगे, हालांकि अंतिम अनुमोदन में यूटीएफ -8 हर जगह चाहती है। इसे सुलझाने का सबसे अच्छा तरीका अनुमोदित फ़ाइल में प्राप्त फाइल की प्रतिलिपि बनाना है। आप इसे मैन्युअल रूप से कर सकते हैं, लेकिन क्लिपबोर्ड रीपटर का उपयोग करना आसान है जो स्वचालित रूप से अपने क्लिपबोर्ड कॉपी / पेस्ट बफर में कमांड लाइन जोड़ देगा फिर परीक्षण चलाएं एक कमांड प्रॉम्प्ट खोलें (winkey + r, cmd) पेस्ट करें (दाएं हैप्पी टेस्टिंग!

.htaccess - CodeIgniter removing index.php from base url -

I am working with CodeIgniter under the LAMPP stack. I have the following set as my baseurl http://example.com/subfolder this is my folder Structure is root | | Ci_engine public_html | | ---- subfolder | | | | | | ------ Application, index.php, .htaccess public_fpt | | Other_stuff The following is my .htaccess & lt; IfModule mod_rewrite.c & gt; RewriteBase on RewriteEngine removes / # users access to system folders. #Additionally this will allow you to create a System.php controller, #previously it is not possible. # 'System' can be changed if you have changed the name of your system folder. RewriteCond% {REQUEST_URI} ^ System * RewriteRule ^ (. *) $ /index.php?/$1 [L] # When your application folder is not in the system folder #This snippet # prevents user folder from blocking application folder by: Fabdrol #Rename 'application' For your application folder name. RewriteCond% {REQUEST_URI} ^ App * RewriteRule ^ (. *) $ /index.php?/$1 [L] # To...

jsf - First JavaServerFaces effort -

I am trying to run JSF pages with value from Bean: Test XHTML: & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt ;; DOCTYPE HTML PUBLIC "- // W3C // DTT XHTML 1.0 Transcription // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" xmlns: h = "http://java.sun.com/jsf/html" & gt; & Lt; H: top & gt; & Lt; Title & gt; Simple JSF Facelet page & lt; / Title & gt; & Lt; / H: top & gt; & Lt; A: Body & gt; & Lt; P & gt; Text: # {testBean.text} & lt; / P & gt; & Lt; / H: Body & gt; & Lt; / Html & gt; Testben: @ nominated @ sessionsseconds public class TestBen serializable {Private string text; Public TestBean () {text = "text" + new date (); } Public string getText () {return text; } Public Zero Set Text (String Text) {this.text = text; }} But wh...

openerp 7 - show product category in stock move tree in openerp7 -

How can I show the category in the Share Move tree? This is my coding. My view file. & lt; Record id = "rufaf_stock_mov_tree_view" model = "ir.ui.view" & gt; & Lt; Field Name = "Name" & gt; Stock.mov.t tree & lt; / Field & gt; & Lt; Field Name = "Model" & gt; Stock.mov & lt; / Field & gt; & Lt; Area name = "inherit_id" ref = "stock.view_move_tree" /> & Lt; Field name = "arch" type = "xml" & gt; & Lt; Xpath expr = "// field [@ name = 'product_id']" position = "before" & gt; & Lt; Field name = "categ_id" group = "base.group_user" /> & Lt; / Xpath & gt; & Lt; / Region & gt; & Lt; / Record & gt; My .py file class custom_stock_move_tree (osv.osv_memory): _columns = {'categ_id': fields.related ('product_id', 'categ_id Any help is apprec...

c# - How to use a dependency property defined in custom class? -

itemprop = "text"> I have a class that defines some custom dependency properties for the text box : And when I try to use these properties in Xaml: & lt; Name of the text box = "TextBox_1735" SelectionBegin = "{TextBox_1735SelectionBegin Binding, UpdateSourceTrigger = PropertyChanged}" SelectionLength = "{Binding TextBox_1735SelectionLength, UpdateSourceTrigger = PropertyChanged}" /> It is an exception that property can not be resolved by SelectionBegin . What you should look like is that the standard dependency properties must be declared in control, from the text box You can also obtain and add your dependency properties to the derived class.

How to lowercase a string except for first character with powershell -

How to lowercase a string except for the first character with pars? Get-ChildItem - R. where {! $ _ PSIsContainer} | Rename-Item -NewName {$ _FullName.substring (0,1) .toupper () + $ _FullName.substring (1) .tolower ()} Accidents, how to fix? $ _ and property. The other problem is that the absolute name is the complete path of the object including the drive and the path, so the first character creates the uppercase only the drive letter uppercase (which was already there) Nothing changes, instead using the name property will work because it does not have a path and will use the path from the rename-item original item without path. The third small problem is that you can filter Get-ChildItem to give only the file and no other step is needed: Get-ChildItem -recurse - File | Rename-Item -NewName {$ _. Name.substring (0,1) .toupper () + $ _ Name.substring (1) .tolower ()} Instead of just the first letter uppercase, you actually want to uppercase the words in the...

objective c - When I get a JSON object from PHP on iOS, I get the NULL value -

Edit first: I put return data in JSONObjectWithData: option: error but error persists is. The problem is 1 in 10 times, but it is upset because the application does not work. 2014-02-18 10: 26: 03.236 Final Abogados [47279: f803] Error En consulta basica: Error domain = NSCocoaErrorDomain code = 3840 "Operation could not be completed. (Cocoa error 3840.) "(JSON did not start with the option to set the array or object and not set pieces.) UserInfo = 0x686c330 {NSDebugDescription = JSON did not start with the text array or the option to set the objects and pieces .} An API is doing an APOP that is a PHP script which allows JSON Object PV The appropriate. The script calls data from the data base in MS SQL and encodes these data in the JSON object. Then I get the object on iOS and I use NSJSONSerialize to handle the data. The problem is, sometimes I get a zero value and sometimes I get the array correctly, the data is always the same as the script back to me,...