Posts

Showing posts from August, 2012

Can't find symbol - class Iterator [Java] -

I'm just starting with Java and getting an error: "Finding Hint - Class Iterator" What's wrong with my code? Storage for an arbitrary number of public class notebooks {// notes. Private Array List & lt; String & gt; notes; / ** * Perform any initial prerequisites for notebook * / public notebook () {Note = New Arrestist & lt; String & gt; (); } / ** * Store a new note in the notebook * @ The ultimate note note should be archived * / public zoo archive notes (string notes) {notes.add (note); } / ** * @ Layers The number of notes currently in the notebook * / Public Ink numberofonotes () {Return Notes. (); } / ** * Show a note * @ The ultimate note number will be shown to show. * / Public Zero Shows Note (Int note number) {If (note no & lt; 0) {// is not a valid note number, so do nothing} And if (notNumber Your error message tells you that it is not about class Known iterator . This issue will be resolved using an import statement....

rest - API architecture - what to include -

I'm currently building a recipe API for a project, the API is a web application, mobile application and maybe end A desktop application in There are some examples where the user should be sent to inform the user of an incident that occurred within the application. I do not realize where the API is to finish the job, the email is sent to send an email, or should the email be sent based on feedback related to the API? What exactly am I asking, where API job starts and ends, does API work just point to point A to B? Or can it be the deeper capabilities? It is a common mistake that many developers are still making. An API is just an interface through which you can expose your system to access it through other systems. How do you highlight your system, it depends on you which functionality you want to show for the outside world. In addition, your business logic should be on your backend rather than spreading in your mobile / web applications. Saying that my answer is yes!...

SQL Server 2008 R2: ROW_NUMBER() -

मेरे पास निम्न डेटा है: उदाहरण : तालिका vdata (कोला varchar (10), कोल्ब varchar (10)) बनाओ; Vdata मूल्यों ('ए', 'बी'), ('बी', 'सी'), ('ए', 'एक्स'), ('जेड', 'एल'), ('एन', ' एम '), (' ओ ',' पी '), (' आर ',' Z '), (' एक्स ',' वाई '), (' टी ',' एन '), (' एफ ',' ई '), (' जी ',' एच '); ऐसा लगता है: vdata से * चुनें *; कोला कोल -------------- ABBCAXZLNMOPRZXYTNFEG H ध्यान दें : अब मैं केवल उस डेटा को दिखाना चाहता हूं जिसमें कोला को colb OR colb में मौजूद होना चाहिए cola और मैं अगले अभिलेखों में उपस्थित मूल्यों के अनुसार प्रत्येक रिकॉर्ड की पंक्ति संख्या दिखाने के लिए कॉलम जोड़ना चाहता हूं। पूर्व> रोलन बक्सा कोला कोल ------------------------ 1 एबी 1 एएक्स 1 बीसी 2 एनएम 3 आरजेड 2 टीएन 1 एक्स 3 जीएल उपर्युक्त परिणाम का स्पष्टीकरण : पहली पंक्ति में शुरुआत में 1 और अगले दो अभिलेखों ...

co - c++ - trying to insert node into vector <node> but program keep crashing at push_back -

So I put a link of the stars in the linked list. I try to input these nodes in the vector. But whenever I try push_back, the program only crashed. Here's my code. I have two squares, nodes and piles piles; Of vector & lt; Node & gt; * Vstring; After trying Dennis's solution, I was able to fix the problem. Although I have another problem, the material is actually vector for (int i = 0; i I get the following error: Error: 'operator & lt; & Lt; & gt; There are no matches for (opernd type 'std :: ostream {aka std :: basic_ostream}' and 'std :: vector') cout & lt; & Lt; * H & LT; & Lt; Endl; ^ In the node class, I have & lt; & Lt; Operator overloaded Ostream & amp; Operator & lt; & Lt; (Ostream & out, const node & amp; n) {cout & lt; & Lt; "In operator" & lt; & Lt; Endl; From the outset & lt; & Lt; N.data; Return; } vector & lt; Node ...

c++ - std::packaged_task bug in Visual Studio? -

मुझे पता चला है कि std :: packaged_task को Std :: vector यदि पैरामीटर का प्रकार दृश्य स्टूडियो (2012, 2013, नवंबर 2013 सीटीपी) में शून्य देता है। उदाहरण के लिए, typedef std :: packaged_task & lt; void () & gt; packaged_task; std :: वेक्टर & LT; packaged_task & gt; कार्य; Packaged_task पैकेज; tasks.push_back (std :: चाल (पैकेज)); त्रुटि संदेश हैं: त्रुटि C2182: '_Get_value': अवैध टाइप 'शून्य' त्रुटि का उपयोग C2182: '_Val': का अवैध उपयोग टाइप 'शून्य' त्रुटि C2182: '_Val': गैरकानूनी प्रकार 'शून्य' त्रुटि का उपयोग C2512: 'std :: _ Promise & lt; int & gt;' : कोई उचित डिफ़ॉल्ट कन्स्ट्रक्टर उपलब्ध त्रुटि C2665: 'std :: forward': 2 अतिभारियों में से कोई भी सभी तर्क प्रकारों को रूपांतरित नहीं कर सकता मुझे लगता है कि यह बग है क्योंकि यह कोड स्निपेट अगर रिटर्न प्रकार शून्य नहीं है, इसे XCode में संकलित किया गया है। क्या समाधान हैं या दृश्य स्टूडियो में अन्य विकल्प? मुझे पता है कि इ...

jboss - Memory requirements for WildFly -

I never found any official document about it and I usually have at least 4 GB on the server Does not install How much memory does my server need to run an instance? What is the minimum recommendation? The minimum value of the XMX is that you have the empty frequency of WildFly on my attempt, this 24 MB . There is no other valid value for the minimum Xmx. 4G is a totally arbitrary value. It depends on the number of users, depending on your application ... You have to run a stress test and measure the memory on your application. This is the only way to know the minimum for your application.

c# - How to catch property changing using Postsharp? -

After I have a viewmodel that has been tagged with [NotifyPropertyChanged] . Properties are bound to input controls, such as text boxes, I need to know, that the property of the model was changed due to the input. How can I catch this incident? If the client decorated with a notebook implements INotifyPropertyChanged, then PostSharp requires that the signature There is a method with: Zero OnPropertyChanged (string propertyName) This method has been specifically changed to the property. A work example might look like this: [NotifyPropertyChanged] Public class OsModel: INotifyPropertyChanged {public integer P1 {find; Set; } Private Event PropertyChangedEventHandler PropertyChanged; Protected Virtual Zero OnPropertyChanged (string propertyName) {PropertyChanged (New, PropertyChangedEventArgs (propertyName)); }} Additional information can be found.

php mysql sql injection execute delete -

If there is a query through a php script which is vulnerability like Mytable Where id = $ _REQUEST ['id'] Is there any danger that one can perform a type of table etc. in which SQL vulnerability can be used. This query is executed using mysql_query (). Multi queries are not allowed. I think this is a weaker code. What do I know, if someone can remove or sort out I want to know the limit of vulnerability Definitely if you let the user fill "id" independently. For example: $ _ request ['id'] = 123; Remove from Mytable where 1; Select email from Mytable where id = 123; Remove from Mytable where 1; And if you use multi_query () then another query will be executed.

Android - unwanted submenu appearing after screen rotation -

Image
I've created a very easy demo project to display the bug: import android .app .activity; Importroid.os.Bundle; Import android.view.Menu; Import android.view.MenuInflater; Public Category MenuBugActivity Extension Activity {@Override Creatives on Public Zero (Bundled Saved Instance) {super.onCreate (SavedInstanceState); SetContentView (R.layout.main); } @ Override Public Boolean On Crate Option Menu (menu menu) {MenuInflater inflater = New menu inflator (this); Inflater.inflate (R.Menu.points_bug_dimo, menu); Back true; }} Main Layout - main.xml: & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; LinearLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: layout_width = "fill_parent" Android: layout_height = "fill_parent" /> Menu item options_bug_demo.xml: & lt; Menu xmlns: android = "http://schemas.android.com/apk/res/android" & Gt; & Lt; Item a...

google play - Checking if Android app is downloaded from a store -

Depending on which user downloaded the app, I should treat this app a little differently. I clearly want to know that it was downloaded from the public store (I do not care about who store) or manually or via Google Play Beta / Alpha 'store' Was established. So if it was manually installed, or via alpha / beta channel, it works in a way, if it was installed from a public store (i.e. this consumer version It works another way. > Too many answers' PackageManager. Gest Installer is referred to using package name () which will return the manually installed blank (or ""), but if downloaded from alpha / beta pipeline it is certain that this can be the case? Thanks Yes it works. You must know the real package name of stores to compare.

javascript - Flying effect in HTML using jquery -

This is my scenario, I have an image named img.png at the top of a page Shown, I have free_img (Img.png of the same size) is the second image that is located at the bottom of the page. I have created a button, when I click it, I would like to fly / animate the fly_image page and it will be placed on img.png. I can not get the above scenario but I tried some code, share it with me $ (" # clickme ") (Function () {var p = $ ("# img"). Offset (); var v = $ ("# fly_img") ({Opacity: 1, bottom: v.top - p.top, left: v. Left-p.left}, 1000, function () {// animation full.});}); & lt; Script src = "https: //ajax.googleapis com / ajax / libs / jQuery / 1.10.2 / jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Body & gt; & Lt; Button id = "clickme" & gt; Click here & lt; / Button & gt; & Lt; Br / & gt; & Lt; Img id = "img" src = "img.png" alt = "" ...

select - Android SDK platform targets (for sbt gen-android <platform-target> <package-name> <name>) -

I'm at a loss about platform-target parameters for gen-android command (android-sdk-plugin for SDT )). Google is also not very useful It seems that there should be a way to inquire about Android SDK (available) about the platform goal? Not even normal-Android usage examples. Sue that you are running SBT 0.13.5 or more. Then run sbt "gen-android android-19 com.your-pack testName" . This package should be created and the Android SDK version 1 will be used.

oracle - Scheduled export from SQL Developer -

The data from the table needs to be exported and scheduled in .csv file. I did not do much work on SQL developers Is primarily on SQL Server. So what do I have to do to auto export this? As a powerhouse fan, I will point out your attention to this. Although the SQL Developer is not included.

ruby on rails - Capistrano deploy removes table -

I use capistrano to deploy my rail app for my VPS, but when I go to my page Then after each deployment I get an error log says: I, [2014-11-04T08: 20: 16.659289 # 12482] Info: - 2014-11-04 Get the "/" for 08: 82.73.170.71: 20:16 -0500 i, [2014-11-04T08: 20: 16.662717 # 12482] Notice -: Home Controller # Index processing by HTML I, [2014- 11-04T08: 20: 16.665 9 7 # 12482] Know Kari - Complete 500 internal server error in 3MF, [2014-11-04T08: 20: 16.670152 # 12482] FATAL -: ActiveRecord :: statement invalid (table 'user' could not be found): app / controller / application_controller.rb : 18: `Current_user 'app / helpers / session_helper.rb: 26: in' log in_in '? App / controllers / home_controller.rb: 4: In `index ' I have to do SSH in my VPS and go to my rail route and run RAILS_ENV = output bundle exec rake Db: Migrate I still have the production.sqlite3 file in my DB folder, but it's empty. My deploy.rb 'Codeit' set: repo_u...

ruby on rails - No route matches {:action=>"index", :controller=>"categories"} -

I am stuck in the database to store all the categories for an example instructed here Given: The body of index method for categories Write categories under the Def Index. In RB. Keep an eye out for close and end with examples. Hit the Run Here is my code: Category Categories Controller & lt; ApplicationController DEF Index @ Segments = Category.All Diff Show End DEF Newf Ed Editing End DIF Def Def Def Def Def Def Def Def WhF Def Def Def Def Dff Df Index> What am I doing wrong? You should add it to config / routes.rb : Resources: Categories I also suggest knowing some Rail Fundamentals

jenkins - import python module fails -

I am unable to import this module, not sure what the problem is, when I enter: help ('Module'), it is listed there when I try to import other modules, I do not get this error. Python Python 2.6.6 (r266: 84292, 22 January 2014, 09:42:36) [GCC 4.4 .7 20120313 (Red Hat 4.4.7-4)] at linux2 Type "help", "copyright", "credit" or "license" for more information; & Gt; & Gt; Import Zeninki traceback (most recent call final): File "& lt; stdin>", line 1, & lt; Module & gt; The file "/usr/lib/python2.6/site-packages/jenkinsapi/__init__.py", line 65, & lt; Module & gt; __version__ = pkg_resources.working_set.by_key ['jenkinsapi']. Version keyError: 'jenkinsapi' Centos 6.4, Python 2.6.6, JenkinsApple 0.2. Through 25 PIP and the same error was happening. I have come to know that Jenkinspi is following a (suspended) Python standard, it seems that according to one of the con...

Oracle apex form multiply two values and populate field -

I have a form that has "miles travel field", which is filled by the user, as well as "rate ". Then I want to calculate the miles traveled * rate which should populate the area "zodiac". How can I achieve it in the Supreme? To calculate on the page, without the server - you can use dynamic action ( Javascript). Identify: Enter a name for the action When: On the page labeled "Page Properties," click on "+" in the "Dynamic Action" section, click Event - Firing Event Type (Clicks, Variations, Set Focus ...), Selection Types and Items - Items where the user has to click (Change, Set Focus ...), and Conditions Correct Action: You have to select the action type "execute javascript code". In a field for code input, you must enter something like this: $ v ('P_ITEM_NAME_FOR_Miles_Traveled') * $ v ('P_ITEM_NAME_FOR_Rate'); There are several ways to perform the server side (dy...

symfony - Creating array from an object in symfony2 -

I am trying to access a list of those categories in a database and put them in a form in Symfony2 . Public function ProductAdaction () {$ product = new product (); $ Ranges = $ this- & gt; GetDoctrine () - & gt; GetRepository ('Auditors Shopsbundle: Category') - & gt; FindAll (); $ Form = $ this- & gt; CreateFormbuilder ($ product) - & gt; Addition ('name', 'text') - & gt; add ('name', 'text') - 'junk' ('category', 'likes', array ('option' = & gt; $ categories, / * ('Save', 'Submit', array ('label' = & gt; create a job ')) - & gt; getForm ($) --- $ $ (AudsurAdminBundle: default: new.html.twig) Return the array ('form' => gtc: $ form->; createView (),);} How can I go from $ ranges to an object, Can I put in the section, and what does the function expect? -> Junk ('category', 'likes', sir ('Options' =...

pdo - PHP - Find max/highest value -

I have this question: $ stmt = $ dbh- & gt; Select Round ((Expiry - UNIX_TimeStamp ()) / 86400) As the day, count (*) as xeon_users_rented by WHERE user_by =: User name group day; "); $ Stmt- & gt; bindParam (": user name ", $ userdata ['username']); $ stmt-> executed ($); $ data = $ stmt-> fetchAll (); ; Array (4) {["day"] = & gt; string (2) "27" [0] => string (2) "27" ["cnt"] => string (1) " 2 "[1] = 2 (1)" 2 "} [1] = & gt; array (4) {[" day "] = & gt; string (3)" 116 "[0] = & String (3) "116" ["cnt"] => string (1) "8" [1] => string (1) "8"} Then I have the highest value of the $ data result I want to receive: echo max ($ data ["day"]); Althoug which does not work, because nothing What is I doing? $ data ['day'] isn is not an array. You have an array, each ...

javascript - How to return the file name from the Upload_Handler class in jQuery File Uploader -

I'm trying to access the file name that is being sent to the index file of the jQuery file uploader. I have added a function to try to return that information back to the index.php file. I added the function right below the handle_file_upload function in the UploadHandler class. public function get_filename () {$ this-> Handle_file_upload (); } I was trying to use in the index.php file $ upload_handler = new upload handler ($ option); $ Name = $ upload_handler- & gt; Gate_filname (); This will not return as expected file name. I have tried to retrieve the file names from the $ _POST array, but not really able to see what the array is or how to display the post array. Update: I thought that if I do this: $ fn = $ upload_handler -> Posts ($ files); This gives all the necessary information in an array. This array gives down array ('files' => array (0 = & gt; stdClass :: __set_state (array (' name '=' & Gt; Seven...

c - Check the next line -

I have a file that has many client records formatted like: customer ... Details .. Details ... Customer ... Details ... Details ... Details ... Customer .... . I need to split the file into two. Currently, I count all the rows in the file and divide it by 2 , and then check Take that if it starts with the line string the customer If this happens, how can I print all the rows before the customer? And If this does not happen, how can I check that the next line starts with Customer my code : int main (int argc, char * argv []) {char ioarea [1000]; Int TotCustLines = 0, i = 0; Int reqLine = 0; Int getLine = 0; If ((inFile = fopen (argv [inFileName], "r")) == NULL printf ("failed to open the input file"); Whereas (fgets (ioarea, BUFFER_SIZE, infile)) {TotCustLines ++; }} If (Tostastlines / 2 == 0) Reclline = (TotestLines / 2); Else reqLine = (TotCustLines / 2) +1; Fseek (infile, 1, SEEK_SET); While (fgets (ioarea, BUFFER_SIZE, infile)) {getLine ...

java - JSF / PrimeFaces: Fill out at least one of X fields -

I am currently developing a dynamic form system and implementing a feature where the user The form field should be set in some predefined areas) should be the ability to define which input field is required and which does not. There should also be a possibility to set the following: "Field A and B. should be displayed. You must fill at least one (A or B, or if you want A and B) form." I have collected the following data: 0: not displayed 1: displayed 2: displayed and required (w / o dependence on any other field) more than 1 : Custom identifier Example: Name: 1 Birthday: 2 City: 2x: 3 y: 3 Postal Code: 0 Filling the user with that setting, either birthday or and either the X or Y. Does JSF support that type of "required" field? Documentation prefix 4.0 (), attribute required accepts a javax.el.ValueExpression evaluation to java.lang.Boolean . In my understanding, it will help to create an invoice function which can return a boo...

algorithm - Shortest distance with choosing only one coordinates from number of coordinates in same vertical line using python -

I have list = coordinates in which I have all the coordinates Dots that are in the XY plane coordinates are more than the 1500 marks in the list. I have the lowest distance from the highest point in the plane to the highest point , Such that if two or more digits are in the same vertical line then only one of them is chosen for the path and therefore the distance calculation. Example of coordinate list is: coordinates = [(-6, 0), (-5.82, 1.72), (-5.17) , -0.27), (- 4.28, 0.0), (-2.9, -0.74), (-2.9, -0.2), (-1.55, 0.08), (-1.37, -0.43), (4.8, -1.64) (4.92, -0.25), (5.05, -1.45), (5.36, -0.02), (6, 0)] Then in this case the point (- 2.9, -0.74) will not be considered. How to use visualization algorithm for this case or at least use any other fit algorithm for the path, but such points in vertical rows It is not necessary to remove it too. I was using itertools to permutate and finding all the possible paths and then the distance and then minimized but ...

Grails Command Objects - What is the motivation behind them? -

While reading "The Definition Guide to Greaves", I'm a bit of Command Object I'm confused. They take a cover around the domain classes to help with validity, but it is already made up of obstacles in the domain classes and is already available through custom Valiaaut. Then what does the command object actually do and why do we need it? Discussing book command objects, it explains that "Sometimes a particular action does not require participation of the domain class, but still user The recognition of the input is required. " However, it refers to the declaration and use of a command object in relation to a album domain class, so that It seems that a command object is still from domain classes It is very closely related. I am convinced that my illusion is completely the result of my lack of understanding and that's why I want to find some explanation. Thank you. They take a cover around the domain classes ... You can use command obj...

rest - With Spring Boot, how to post JSON object that represents an entity whose member is another entity -

(*** edit *: ** I'm looking for the JSON representation of the solution given here :) I have the following entity account in which the member of another entity is a member variable @Entity public class account {@Id @ generatedValue (strategy = GenerationType.IDENTITY) private Long id = 0; @ManyToOne @JoinColumn (name = "customer_id") private customer client; ...} @Entity Public Class Customer {@Id @GeneratedValue (strategy = GenerationType.IDENTITY) Private long ID = 0; Private string client ID; Public Client () {} Public Customer (String Client ID) {this.customerId = customerId; } Public long IID (return) {return ID; } Public string getCustomerId () {return customerId; } Public Zero Set Customer ID (String Client Id) {this.customerId = customerId; }} I need to represent the JSON object of an account. Here is the controller method: @ Autonomous Personal Account Resource Accounts; @RequestMapping (value = "/ account / account", method = RequestMeth...

jquery - Overriding keypress event during autocomplete select event -

$ ('# myField')। स्वतः पूर्ण ({चुनें: फ़ंक्शन (ईवेंट, यूआई) {var selectedObj = ("# फ़ील्डटॉसेट" और मैं विशेष रूप से पूरी घटना के बाद किसी अन्य क्षेत्र में कूदना चाहता था। इसलिए मैंने फोकस () सेट किया था। लेकिन, सेट फोकस वास्तव में पहले आग लगाता है, और फिर कुंजीपटल इवेंट जो स्वतः पूर्ण होने वाली आग को ट्रिगर करता है.इसलिए अगर उपयोगकर्ता प्रविष्ट कुंजी के साथ स्वत: पूर्ण या माउस क्लिक करें, सभी ठीक थे, लेकिन यदि वे आइटम का चयन करने के लिए टैब का उपयोग करते हैं, तो यह मेरे नए फ़ील्ड पर फ़ोकस करेगा और तब टैब निष्पादित होगा, उन्हें एक फ़ील्ड बहुत दूर ले जाना .. मैंने कोशिश की मेरे सेट फ़ोकस () के बाद event.preventDefault (); किसी कारण के लिए क्लिक ईवेंट पर पॉपुलिंग से रोक देता है इसलिए, मुझे लगता है कि मुझे सिर्फ event.preventDefault () कॉल करने की आवश्यकता है अगर 'TAB' कुंजी को स्वत: पूर्ण चुनने के लिए दबाया गया था आग लगाने के लिए विधि मैं चयन के अंदर क्या दबाया गया पता लगाने का पता नहीं लगा सकता।

reporting services - SSRS SSDT I am trying to display a 2nd field (from the same dataset) in a matrix, in the same column -

The interesting problem I got stuck on is because it sounds so easy I use Visual Studio 2010 I am = Field! AccountName.Value & amp; My example should display without pay: salary saving / code> The field is without pay (account name.value), if there is any data from there, then I would like to add a colon expression (:) if another value is coming, second value from salary saving (LeaveName.Value ) Before posting anything I tried, = Field! Accountant.Valuue + IIF (Ezines (Fields! Live Niem.Value)), ":", "") who did not give any errors and did not even drag data into a The test is the example where I know that the person used the holiday without pay: salary saving fix. Text box added to the expression under property = Field! Accountant.value + iif (IsNothing (Fields! LeaveName.Value), "": + Fields! LeaveName.Value) Also if necessary were required to play with the Cry group Tablix properties went to 1. Filter the Tabli...

xbox one - WinJS.UI.ListView mediaTile -

We are currently developing an Xbox One and Windows 8.1 app, which share the same codebase, and I An issue with 'pointerover' (or hover-state) in a list view object in WinJS.UI.ListView is running in it. The list view item has an EventListener, PointerOver. However, it only works on the first 10 items in WinJS.UI.ListView, although I see 16 items on the screen, and WinJS.UI.ListView gives me: indexOfFirstVisible = 0 IndexOfLastVisible = 15 EventListener is my list item, which is: mediaTile.element.addEventListener ("pointerover", function (that) {that. _allItemsListView .currentItem = {hasFocus: true, index: this.tileIndex}}} .bind (mediaTile, this)); When I add a breakpoint, it hits, but only for the first 10 items, though there are 16 items on the screen. Does anyone know what I am missing here? Thanks in advance! My guess is that you are being bitten by list view visualization, maybe more than 10 tiles then Are not present when you bind y...

windows - Certain NPM installs fail with EPERM 50 (Gulp and others) -

I have to continue allowing errors on Windows 7 when NPM is trying to install some modules. For example, the global installation of CALL is as follows: c: \ users \ abc \ document \ uniform \ UniServer \ www \ ur> npm install -g gulp /> v8flags@1.0.1i install Do: \ n \ n \ n \ n \ n \ n \ n \ n \ n \ n \ n \ n \ n \ n \ n \ n \ n \ n \ n \ n \ n \ n \ n \ n \ n \ n \ nDisplay fetch.js Flags 3.14.5.9 cached for users \ abc \ AppData \ roaming \ npm \ node_modules \ gulp \ node_modules \ v8flags> v8. NPM ERR! Error: EPERM, open 'C: \ Users \ abc \ Documents \ uniform \ UniServer \ www \ npmcache \ c14291c8-che-ansi-regex-0-2-1-package-tgz.lock' NPM ERR! {[Error: APRAM, Open 'C: \ Users' ABC' Documents' Uniform \ UNIVERVER \ www \ NPMKECH \ c14291c8-CH-ANSI-Regex-0-2-1 -Page-TGs.Loc '] NPM ERR! Errno: 50, NPM ERR! Code: 'APERM', NPM ERR! Path: 'C: \\ User \\ ABC \\ Documents \\ Uniform \\ UniServer \\ www \\ npmcache \\ c14291c8-che-a...

java - No database selected GAE -

I'm having fun cloud SQL and I keep this error "not selected a database" when I put my website into production. The line "USE mydb" has the dump uploaded to the cloud, I have a DB call for "query mydb" for any query. Anyone know why? Or how to fix it java.sql.SQLException: com.mysql.jdbc.SQLError.createSQLException (SQLError.java:1074) selected com.mysql.jdbc.MysqlIO no database . Com.mysql.jdbc.MysqlIO.checkErrorPacket (MysqlIO.java:4028) com.mysql.jdbc.MysqlIO.sendCommand (MysqlIO.java.24 9) checkErrorPacket (MySqlIO.java:4096) on com.mysql.jdbc.MysqlIO on on com.mysql.jdbc.PreparedStatement.executeInternal on Com.mysql.jdbc.ConnectionImpl.execSQL (com.mysqlio.java desk659) Stetet prepared SQL Direct Direct (MysqlIO.java desk65) on com.mysql.jdbc. Aksakyuetaktioti (prepared Statementkjawa 2007313) either as part of the database Set in Jdbc connection string, such as jdbc: google: mysql: // your-project-id: your-instance-name / YOUR_...

LTTng and Babeltrace python bindings never enabled -

मैंने LTTng और Babeltrace को इसके निर्देशों के बाद स्थापित किया है sudo apt-get install lttng-tools Sudo apt-get install lttng-modules-dkms sudo apt-get install liblttng-ust-dev sudo apt-get babeltrace स्थापित करें लेकिन अजगर बाइंडिंग कभी काम नहीं करते हैं, जब मैं अजगर मॉडलों को आयात करने का प्रयास करता हूं। इसका उपयोग कैसे करें के बारे में कोई भी विचार? अजगर बाइंडिंग को अलग से पैक किया जाता है "Python3-babeltrace" पैकेज उबंटू में यह केवल 14.10 के बाद से उपलब्ध है। यदि आप पिछले संस्करण पर हैं तो आप इसे प्राप्त करने के लिए उपयोग कर सकते हैं।

How to search an excel range on cell's (border) colour in C#? -

I've written a method in C #, which gives the cell an edge through an excel range cell, line from row And its color (border) color I'm looking for. It works - of course - but it is quite slow ... Can the search method be used on my probability? I went to it but I can not find anything related to finding something more than text. @Denise I suspects that you use any search methods on the interop to check cell style can do. If you are already limiting the range and going to the cell through cell, then use my only advice. When we understand that the speed increases by more than ten times for the sheet with at least 30,000 lines, you can also use LINQ and can not use any disturbance interop accessories. To use EPPLUS, you only have to do something: // IEnumerable on its left & lt; ExcelRangeBase & gt; Matching cells with a yellow border match = worksheet. Seals. Where (C => C style board. Lift caller. RGB == "FFFFFFX200");

javascript - how to display different function in a same textbox? -

I have this HTML code with javascript. My average value is displayed correctly but nothing at all is displayed, it should show that the user clicks the minute button to find on the box. & lt ;! DOCTYPE html & gt; & Lt; Html lang = "en" & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" & gt; & Lt; Title & gt; Calculate your grade & lt; / Title & gt; & Lt; Link rel = "stylesheet" href = "calc.css" & gt; & Lt; Script & gt; Var $ = function (id) {return document. GetElementById (id); } Var calculateGrade = function () {var exam1 = parseFloat ($ ("exam1"). Value); Var exam2 = parseFloat ($ ("exam2"). Value); Var exam3 = parseflot ($ ("exam3"). Value); If (INNA (Examination 1) || NAN (Exam 2)) {Warning ("All three entries should be numeric"); } And {var average = (Exam 1 + exam2 + test3) / 3; $ ("Average"). Value = average; }} Var m...

Path.approximate() not supported on android studio 0.8.14 beta -

Image
प्रतिपादन की समस्याएं path.approximate () समर्थित नहीं है। फ़ाइल को पार्स करने में विफल ~ \ sdk \ प्लेटफार्मों \ android-21 \ data \ res \ drawable \ progress_medium_material.xml त्रुटि ProgressBar से लेआउट को कैसे हल करें? आप थीम को थीम। ब्लैक पर बदल सकते हैं और एंड्रॉइड स्टूडियो में लेआउट को रेंडर करने के लिए एपीआई 20 संस्करण चुन सकते हैं।

python - How can I transform a list into a csv? -

I get these values ​​which postgrescill (I has changed the color of the rows to a SQL query so that it can show that fert value is the same) ** ( '80255', 'GRN', decimal ( '4.00000000000000000000')) ** ( '80425', 'GRN', decimal ( '1.0000000000000000000000')) * * ( '80255', 'BCN', decimal ( '1.00000000000000000000')) ** ( '80425', 'BCN' decimal ('22 .0000000000000000 ')) ** (' 80255 ',' PT ', decimal ('2.0000000000000000')) ** ('80425', 'PT', Decimal ('5.0000000000000000')) ... I want to change next to a CSV file I am 80255; 4; 1; 2 80425; 1; 22; 5 In continuing with @Berney's good answer, there is a difference with more comments (GRN / BCN / PT) # Import archive and compact I import import as co imports as imports DC as import Sisivi fromdb = [( '80255', 'GRN', dc.Decimal ( '4.0000000000000000000000...

MongoDB find document by date range - JavaScript -

मैं एक तारीख सीमा ( begin date / closeDate कम होना चाहिए या वर्तमान दिनांक के बराबर होना चाहिए)। दस्तावेज़ इस प्रकार दिखता है: {"शुरू करें": आईएसओडीएटी ("2014-11-03 टी 23: 00: 00 जेड"), "बंद डेट": आईएसओडीएटी ("2014-11-10 टी 23: 00 मेरी क्वेरी इस तरह दिखता है: var doc = TestData.findOne ({playerId: player._id, startDate: {$ gte: नया दिनांक (नया दिनांक)। ToISOString ())}, closeDate: {$ Lte: नई तिथि (नई तिथि)। ToISOString ())}}); दुर्भाग्य से, यह काम नहीं करता है मैं इसे कैसे सुलझाऊं? किसी भी मदद की काफी सराहना की जाएगी। आपको तुलना की तरफ तर्क मिल गया है ताकि आप की आवश्यकता हो $ lte और $ gte उपयोग को स्वैप करें आप डॉक्स को ढूंढना चाहते हैं जहां शुरुआती दिनांक का मूल्य वर्तमान समय से कम या बराबर है, और closeDate के पास एक मूल्य है मौजूदा समय से अधिक या बराबर वर्तमान समय पाने के लिए आप केवल नई तिथि () का उपयोग कर सकते हैं। var doc = TestData.findOne ({playerId: player._id, beginDate: {$ Lte: नई तिथि ()}, पासडेट: {$ ...

cordova - Splash Screen for android not hiding in PhoneGap -

I am new to mobile app development and phonegrap. When my app starts, I want to show a splash screen and hide it after the device is ready. I am using eclipse. I have installed the Splash screen plugin for Cordoba. I have followed the tutorials given in PhoneGrap, it is showing a splash screen, but the device is not hidden when it is ready. In addition, after the back button is pressed it does not get released. Below the /res/xml/config.xml, my config.xml file is: & lt ;? XML version = '1.0' encoding = 'UTF-8'? & Gt; & Lt; Widget ID = "com.citywide.Citizen" version = "0.0.1" xmlns = "http://www.w3.org/ns/widgets" xmlns: cdv = "http://cordova.apache.org/ns /1.0"> & Lt; Priority name = "loglevel" value = "DEBUG" /> & Lt; Priority name = "splash screen" value = "splash" /> & Lt; Priority name = "splash screen removal" value = "5000...

autolayout - iOS auto-layout constraints -

I'm not sure how to set me some obstacles in my auto-layout storyboard in iOS. I have a text box and a button next to it, which is constrained for each other, and both of them are constrained on either side of their supervision by 20. It works great for the iPhone / iPod. The iPad is growing up, however, the textbox is very wide, is there any way to set the "max width" on the text box to allow some increments, and allow that point to interrupt supervision? It seems that I am coming to all this is wrong, do I have a wrong attitude? constraint You can set an obstacle For "less than or equal to x" (whatever your value is x). Then the pair that is "20 is the same as the back side of your supervision". Conflict This will not work because it is though that supervision is very detailed, it will create a conflict. Preferences What you can do, however, the lack of "edge of space" is given priority to the width of the mi...

c# - How to check with linq to sql that all users of a group have a user role? -

I want to write a DAO method which checks that all users of the group have a specific user role and either Is wrong or true. I use the NHibernate ad LINQ. This is what I've done so far: Public Bull AllByGroupHaveUserRole (Group Group, UserRole userRole) {If (group == null) {New argument NullException ("group"); } If (userRole == tap) {New argument NullException ("userRole"); } Var groups = HibernateTemplate.Execute (session => (Select from user in user session by user.group == @ group group user user.UserRole.Id new user in new groupedUsers.Key} ) ).to list(); Return group Account & lt; 2 & amp; Amp; Groups All (O = & gt; OkeE == UserRoll.ID); } Right now, I am executing the query in DB and later I check UserRole in memory. Is this the same NHibernate query and just return results? If there is no user in the group with a specific user role then the method should also be correct. It is also how the LINQ method works all the meth...

Construct GitLab URL without slug -

Is any of the milestone or project for creating a GitLab URL based on the id property The way? Slug instead? Reference: I have an app that I use as a Geetabab web hook, and want to link GitLab back to its front end. I keep the project and the milestone ID because they are unique, but there can be no way to link them back. Ideally something: http://gitlab.example.com/project/83/milestone/113 or even http://gitlab.example.com/milestone/ 113 will work for me (even if they do a redirect). checking the rake routes and config / routes.rb Tells me that such routes are not present. There is only one option which I can see: Just store your slugs which are just unique, your request and memory usage will be slightly larger, but its Is worth To request an additional API to get the slug, 2 requests are required, so it is worse than making a big request. For new forms of the form, / something some should be blacklisted, and interestingly the Projects are alre...

jquery - How to append javascript code to textarea? -

I'm trying to add a text that contains some textual JavaScript code but it automatically deletes all tags. How can I fix this problem? Here is an example text from the database, and I have stored it in blogObject ['blog_content'] : & lt; Div data-config = "0/10000221" style = "width: 525px; height: 292px;" Class = "issuuembed" & gt; & Lt; / Div & gt; & Lt; Script type = "text / javascript" src = "// e.issuu.com/embed.js" async = "true" & gt; & Lt; / Script & gt; Some text is here & lt; A class = "fancybox" href = "http://ab5b871380c75ebbed44-0d6294cd72219e531b9ba85132078296.r10.cf2.rackcdn.com/userprofiles/2012/09/19/1/images/2014/11/04/org_1415121954_3b445d4fac6b78703bcf272307ac59f0.gif" & gt; & Lt; Img src = "http://ab5b871380c75ebbed44-0d6294cd72219e531b9ba85132078296.r10.cf2.rackcdn.com/userprofiles/2012/09/19/1/images/2014/11/04/org...

asp.net mvc - Javascript Uncaught type error undefined is not a function -

I am trying to include the video file upload feature on my website: I I am following as I have been posted here: I have included all the necessary libraries in my MVC project. In my opinion I have the title below: & Lt; Head & gt; & Lt; Title & gt; Video & lt; / Title & gt; & Lt ;! - Bootstrap core CSS - & gt; & Lt; Link href = "~ / scripts / jquery-lib / jquery.fileupload.css" rel = "stylesheet" /> & Lt; Script src = "/ script / jquery-lib / jquery-1.9.1.min.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "/ script / jquery-lib / jquery.ui.widget.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "/ script / jquery-lib / bootstrap.min.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "/ script / jquery-lib / jquery.fileu...

java - Is frame in JVM heap allocated or stack allocated? -

The JVM specification (JSE version 8) is mentioned: Page 12: 2.5.2 JVM pile: "Because JVM stacks do not spread directly except for push and frame, frames can be allocated piles." Page 15: 2.6: Frames: "Frames are allocated from the JMM stack to make threads." And on page 16: "Note that the frame created from the thread is local to that thread and not referred to any other thread can be done." It seems quite confusing to me as one frame is local for thread, which creates frames, while the heap is allocated in the heap, the hep is shared between all JVM threads? It does not seem to be so far as long as something does not disappear here. The sentence on page 12 is an interesting statement. Any hint? Thank you. JVM Stack is an intangible one that can be assigned anywhere or anywhere. As if any method has been written by JIT, then there is no separate stock frame in it. Hotspot JVM uses native thread stack as JMM stack. However, there are JVM i...

.net - How can i call function from c++ console project in CLR c++ window form? -

I have two projects which are the first C ++ console applications and the second C ++ CLR is a blank project. Console and use it in the CLR project. I tried to create header files, CLR included in the project and #include "headername.h" and use the function render3d (phone) but it gives me those errors adding Error 29 error LNK2028: unresolved token (0A000934) "void __cdecl render3d (zero)" function referred to "private (render3d @@ $$ FYAXXZ?): Void __clrcall Demo :: MainForm: : AddAnimebutton_Click (class system: object ^, class system :: EventArgs ^) "(AddAnimebutton_Click @ MainForm @ demo @@ $$ Fa $ AAMXP $ AAVObject @ system @@ P $ AAVEventArgs @ 4 @@ Z) e: \ graduate project \ CPP Arena demo new design \ demos \ demos \ MainForm.obj demo error 30 error LNK2019: unresolved external symbol "void __cdecl render3d (zero)" function "personal Referred to (render3d @@ $$ FYAXXZ?): Void __clrcall Demo :: notify Ma :: AddAnimebutton_C...

datetime - Exact styling of a difference in time (php) -

Two times (format: H: i: s ), I found another question on this site. I tried it this way: $ start_date = new date time ('04: 10: 58 '); $ Since_start = $ start_date- & gt; Vary (new date time ('10: 25: 00 ')); Echo $ from_start-> H. ':'; Echo $ from_start-> I. ':'; Echo $ from_start-> S; But that output: 6: 14: 2 I think it does not look good. I want to see it: 06:14:02 I also want to use the current time instead of a given time, but what does not work with the above code I noticed $ start_date = date ("h: i: s"); $ Since_start = $ start_date- & gt; Vary (new date time ('10: 25: 00 ')); Echo $ from_start-> H. ':'; Echo $ from_start-> I. ':'; Echo $ from_start-> S; This output: Fatal Error: Call the diff () member function on a non-object I have twice: one time current time: date ("H: I: s") , second is a $ time0 in which for example 11 : 24: 00 (...

primefaces jsf p:ajax event keyup ignore arrow keys -

I have an input text field that has a valid button. When you click the valid button, it verifies some backend and a green check mark appears next to the button. I would like that the green check marks disappear, when the price changes, and the focus is not lost now because there is a test button on the page which I validate / disable. Therefore, incident = "blurry" or even "change" will not work because they can click on the button when the input text field changes. I used the key and it works great, but the arrow keys and tabs etc ... trigger this event and I do not want them. & lt; H: inputText id = "baseURL" style = "width: 425px;" value = "# {View.baseURL}" & gt; & Lt; P: Ajax event = "Keys" update = "valid icon: edit list format: testUrlButton" listener = "# {View.resetValidation ()}" /> & Lt; / H: inputText> I see JQuery options for this, but I need to work with JSF and...

c++ - error C2512: 'LayerTwoTree' : no appropriate default constructor available -

मेरे पास दो हेडर फाइल है जैसे: #ifndef LAYER_ONE_TREE_H #define LAYER_ONE_TREE_H #include "Utils.h" # शामिल "LayerTwoTree.h" वर्ग LayerOneTreeNode {सार्वजनिक: मित्र वर्ग LayerOneTree; मित्र वर्ग LayerTwoTree; । । । LayerTwoTree * S_U1; // एक परत की जड़ में एक संकेतक दो तृती परत LayerOneTreeNode () {S_U1 = नई LayerTwoTree; // यहां त्रुटि है त्रुटि 1 एर्रो C2512: 'LayerTwoTree': कोई उपयुक्त डिफ़ॉल्ट कन्स्ट्रक्टर उपलब्ध नहीं S_U1- & gt; init (); }}; क्लास लेयरऑनट्री {सार्वजनिक: लेयरऑनट्री () {} । । निजी:। । । }; #endif और दूसरे हेडर: #ifndef LAYER_TWO_TREE_H #define LAYER_TWO_TREE_H #include "Utills.h" # शामिल "LayerOneTree.h" वर्ग LayerTwoTreeNode {सार्वजनिक: मित्र वर्ग LayerTwoTree; मित्र वर्ग LayerOneTree; । । । // कंस्ट्रक्टर LayerTwoTreeNode (प्वाइंट v = बिंदु (), LayerTwoTreeNode * l = nullptr, LayerTwoTreeNode * r = nullptr, नोडकॉलर सी = काला): कुंजी (वी), रंग (सी), बायां (एल), दाएं (आर) { }}; क्लास लेयरटीवट्री {सार्व...

asp.net - Approach for Master/Parent View with Detail/Child as Partial View -

I am starting with asp.NET MVC 5 Suppose I have the following structure in my project 'PURE' model: class guardian child child Model for view class guardian model class childvive model view Parents & lt; Parentviewmodel & gt; _ChildPartial & LT; ChildViewModel & gt; Currently, I am considering the following: As a property in ParentViewModel ChildViewModel . class ParentViewModel {... ChildViewModel cvm; ...} Then, pass Balveau model as an argument for the partial view: @ModelParent module ... @HTMLPartial ("_Conal-Partial", New Videadatadication (model.cvm)) ... Is anyone else doing the right way to do this?

backbone.js - Browser history not maintained when using backbone history with hashchange -

I am using a backbone for a backbone / flask app. History To keep a history of a specific page, and I am using parts of the flask to route through other parts of the app A standard user flows through my application like this Will be: Load page / location ; The / location page is served by the flask and does not contain much javascript, it just shows a few buttons. The user clicks on a button and it is called / room / ; The application then handles the routing on this page, and returns an html page with backbone application. When this page loads, I call backbone.index.start.start () and I will register some routes that are controlled by the Backbone app on this page. should go. Now, when a user goes to many of these routes, and then clicks the browser's back button, the browser should only / room / page the backbone application will only be back to the first route loaded by the app even though I have the / location page to / room / before coming to the / ...

javascript - jQuery array object getting value -

हे सभी मेरे पास निम्न कोड है: var items = []; $ (Xml) .find ("placemark")। प्रत्येक (फ़ंक्शन () {var tmp_latLng = $ (this) .find ("coordinates")। पाठ (); tmp_latLng = tmp_latLng.split (","); आइटम धक्का ({name: $ (this) .find ("name")। पाठ (), स्निपेट: $ (this) .find ("snippet")। पाठ (), वर्णन: $ (this) .find ("description ") .text (), lat: tmp_latLng [0], एलएनजी: tmp_latLng [1], दूरी: $ (यह) .फंड (" दूरी ")। पाठ ()});}); Var मार्करनोड = आइटम; अगर (मार्करनोड्स.लाइन और gt; 0) {howManyMarkers = markerNodes.length; के लिए (var i = 0; i & lt; मार्कर नोड्स। लांघ; i ++) {console.log (मार्कर नोड्स [i] .Snippet); Var नाम = मार्कर नोड्स [i] .getAttribute ("स्निपेट"); Var पता = मार्कर नोड्स [i] .getAttribute ("स्निपेट"); Var विवरण = मार्कर नोड्स [i] .getAttribute ("description"); Var distance = parseFloat (मार्कर नोड्स [i] .getAttribute ("दूरी")); Var latlng = नया google.maps.L...

r - How to get count-of-a-count with dplyr? -

मान लें कि हमारे पास डेटा फ्रेम है df & lt; - data.frame (x = C ("a", "a", "b", "a", "c")) dplyr गणना का उपयोग करते हुए, हमें डीएफ% & gt;% गिनती (x) xn 1 a 3 2 b 1 3 c 1 अब मैं परिणामी n कॉलम पर गिनती करना चाहता हूं। यदि n कॉलम को मी नाम दिया गया था, तो परिणाम मैं देख रहा हूं mn 1 1 2 2 3 1 यह कैसे किया जा सकता है Dplyr? बहुत बहुत धन्यवाद! dplyr गिनती (एन) । उदाहरण के लिए: d & lt; - data.frame (n = नमूना 1: 2, 10, TRUE), x = 1:10) d% & gt;% गिनती (n) एक वैकल्पिक नाम n नाम बदलने है: में परिभाषित डेटा का उपयोग करके / p> df% & gt;%

sum - Get list of two numbers that add up to a number in prolog -

उदाहरण के लिए, getNumbers (M, C, 10) M = 10, C = 0 और amp; amp; एम = 9, सी = 1 & amp; amp; एम = 8, सी = 2 ... आदि आदि आप सुझाए गए बीच में से उपयोग करना: getNumbers (एम, सी, एस): - के बीच (0, एस, एम), सी एस एम है। और पूरी सूची प्राप्त करने के लिए findall / 3 का उपयोग करेगा, उदा यह क्वेरी: ? - खोजल ([एम, सी], मिलते हैं (एम, सी, 5) नंबर)। संख्या = [[0, 5], [1, 4], [2, 3], [3, 2], [4, 1], [5, 0]]।

Specify Java classpath -

मैं एक लिनक्स पर हूं और WEB-INF / lib और वेब-एएनएफ़ / वर्ग निर्देशिकाएं मेरे पास एक मुख्य विधि वाला एक वर्ग है मैं जावा को मुख्य विधि निष्पादित करना चाहता हूं और सभी पुस्तकालयों को क्लैपाथ पर रखना है, इसलिए मैं कॉल करता हूं java -cp / path / to / war / web-inf कोड> त्रुटि: इस वर्ग के मुख्य वर्ग को ढूँढ या लोड नहीं किया जा सका.इस.मी.पीकेज। मुख्य हालांकि, जब मैं अंदर से कॉल करता हूं WEB-INF / classes निर्देशिका जावा this.is.my.package.Main मुझे अपवाद मिलता है क्योंकि एक पुस्तकालय वर्ग गायब है अपवाद "मुख्य" java.lang.NoClassDefFoundError: ... क्या मैं गलत कर रहा हूँ? वर्ग निर्देशिका स्वयं कक्षापथ में होनी चाहिए। इसकी सभी फाइलें नहीं हैं: java -cp / path / to / war / WEB-INF / lib / *: / path / to / war / वेब-एनएफ़ / वर्ग

javascript - Change the same content of two iframes between two web pages with a click -

I need to change the same content of two iframes between two web pages with a click like a powerpoint, Where you need to convert it to a new slide on two screens with just one click. I hope you can answer me! Thanks! If you are familiar with changing the content of an iframe, then it is quite simple to do multiple Iframes If you are certain that you will not need to replace more than two iframes, the simplest solution is to do something like this with javascript: // function which is an IFRAME function update Updates iframe (iframe) {var iframeDocument = iframe.contentWindow.document; // iframeDocument is the document of iframe, so the commands / commands / such as will work below. // iframeDocument.appendChild (); // iframeDocument.body.innerHTML = "& lt; h1> Hello World "; } // Get the getElementById ('iframe1') from the DOM to your html id feature var iframe1 = iframes1 = document. Var iframe2 = document.getElementById ('iframe2'); // O...

c# - FileSystemWatcher missing file changes from other program -

Specific questions I have set up a program that looks at changes in numbers with a text file. FileSystemWatcher Mike Water = New FileSystemWatcher (); System IiAetfor Changedcentant Post Mike; String filePath = @ "c: \ path.txt"; Mike Water Path = path.gate directoryname (file path); Mike Water Filter = path. GetFileName (file path); // Wait for change in file post Mike = Mike Water Waiting for (system .o.watchange type changed); After the WaitForChanged flag is complete the code continues with the process. ... The issue I am encountering when the flag is triggered successfully when I manually change the text file and save it when the second program (matlab ) Writes and saves that file, the flag does not seem to trigger. I have confirmed that this is actually changing the same file (path is correct) and the change is registered in "Last modified date". Also, it seems that the muteab process is locking after saving the text file, so this is not releas...

c# - NHibernate - Collection Eager loading - only ids -

मान लें कि मेरे पास एक वर्ग है सार्वजनिक वर्ग व्यक्ति {सार्वजनिक व्यक्ति () {मित्र = नया संग्रह & lt; व्यक्ति & gt; (); } सार्वजनिक वर्चुअल Guid Id {get; सेट; } सार्वजनिक वर्चुअल स्ट्रिंग Name {get; सेट; } सार्वजनिक आभासी आइकलेंक & लेफ्टिनेंट; व्यक्ति & gt; दोस्तों {प्राप्त; सेट; }} निम्न मैपिंग के साथ: & lt; class name = "person" & gt; & Lt; id का नाम = "आईडी" जनरेटर = "गुड" / & gt; & Lt; संपत्ति नाम = "नाम" / & gt; & Lt; सेट नाम = "मित्र" & gt; & Lt; प्रमुख स्तंभ = "PersonId" विदेशी-कुंजी = "कोई नहीं" / & gt; & Lt; कई-से-कई वर्ग = "व्यक्ति" विदेशी-कुंजी = "कोई नहीं" / & gt; & Lt; / सेट & gt; & Lt; / वर्ग & gt; मैं दोस्तों के संग्रह आईडी को सभी व्यक्तियों और उत्सुक लोड करने की कोशिश कर रहा हूं। मुझे केवल पूरे दोस्तों के संग्रह को लोड करने की ज़रूरत नहीं है, केवल मित्रों की एड्स। निम्न: var व्यक्...

sql - timestamp() do not take function parameter as input? -

I am using sql in postgresql cast (timestamp ($ 1) / Code> This error returns the parameter around When I give a straight line, SQL works: cast (call as timestamp (1)) does not take timestamp function parameter? This is a part of the name type and should not be parameterized in plain SQL Could. This is not a function, even though the syntax looks similar to the bracket. You will need dynamic SQL for this. The statement in the form of a string in the PL / PGSLL function is created and runs it with the EXECUTE . Something like this: EXECUTE 'SELECT col :: timestamp (' $ 1 || ') in' my_var; $ 1 type integer is happening. There is no string type like text , or you have the possible SQL injection hole.