Posts

php - Class 'Validate' not found in Laravel Validation process -

I am now studying Laravel and I have a problem with the verification messages displayed in my page. I have this error after clicking submit button Symphony \ component \ debug \ exception \ FatalErrorException (E_ERROR) class 'valid' not found ----------- - ---------------------------------- Open: C: \ wamp \ vhosts \ flax_order \ app \ routes. Php 'Lastname' = & gt; Minimum: 2 | Maximum: 15 ',' first name '= & gt; Minimum: 2 | Maximum: 20 ',' midlnum '= & gt; Minimum: 10 | Maximum: 20 ',' password '= & gt; 'Required | Min: 8 | Maximum: 30 ',' cpassword '= & gt; 'Required: A: Password'); $ Validator = valid: create (input :: all (), $ rules); If ($ validator-> fails ()) { I've put the verification process in my path here. Here's my sample code. Here's the form @if ($ error- & gt; is) $foreach ($ errors-> All $ ($) as $ Error) {{$ error}} @ adverburn @ adi...

java - Hashtable returns value for wrong key -

मेरे पास हैशटेबल & lt; स्ट्रिंग, हैशटेबल & lt; स्ट्रिंग, स्ट्रिंग & gt; & gt; जहां मैं चाहता हूं एक कुंजी के साथ हैशटेबल प्राप्त करें, लेकिन यह अन्य कुंजी के लिए मान देता है। यहां कोड है: हॅशटेबल & lt; स्ट्रिंग, हैशटेबल & lt; स्ट्रिंग, स्ट्रिंग & gt; & gt; TestFormProperties = formProperties.getFormProperties (); हैशटेबल & lt; स्ट्रिंग, स्ट्रिंग & gt; ट्रीपॉप्स = (हैशटेबल & lt; स्ट्रिंग, स्ट्रिंग & gt;) testFormProperties.get ("क्लस्टरट्रीइटम"); अब treeProps freeTextLabel = {GUIType = TreeItem, label = freeText, पथ = / डेटा [at0001] / आइटम [openEHR-EHR-CLUSTER.cluster_test_data_types.v1] / आइटम [at0001]} के बजाय क्लस्टरट्रीआईटीम = {guiType = TreeItem, label = फ्री टेस्ट, पथ = / डेटा [at0001] / आइटम [openEHR-EHR-CLUSTER.cluster_test_data_types.v1] / आइटम [at0001]} यहां डिस्बगर के अनुसार testFormProperties हैशटेबल की सामग्री: {freeTextLabel = {GUIType = TreeItem, label = freeText, पथ = / डेटा [at0001] /...

how to take average of two text box values C# -

I used this code, but it seems that it does not work. Private zero txtBfrLeft1_Leave (Object Sender, EventArgs E) {If (txtBfrRight1.Text! = "" || txtBfrLeft1.Text! = "") {Int befrAvg1 = (convert. (TxtBfrRight1. Text) + Convert. Repeat (txtBfrLeft1.Text)) / 2; TxtBfrAvg1.Text = BIFVG 1.ToString (); }} Try it out: double bef 1 = (new [] {double. Purse (txtBfrRight1.Text), double. Purse (txtBfrLeft1.Text)}). Average (); Or if you want the result as an integer then it: int befrAvg1 = (int) ((new [] {double. Parse (TxtBfrRight1.Text), Double Percy (txtBfrLeft1.Text)}). Average ());

python - Write a very basic copy from one file into another using command line arguments -

I am new to Python and am trying to create one file of the original file in another file program. My code now import sys if len (sys.argv)! = 3: Print 'Usage: File Source Source Destination' Otherwise: Try: infile = open (sys.argv [1]) Outfile = open (sys.argv [2], 'w') except for IOError: print 'source File does not exist 'getline (infile, line) infile.close () outfile.close () As you can expect that I am trying to output that if the program If the tries to misuse, then why the program will not work. I have just written a C ++ program, and it worked fine, but now I have to transfer the same logic to a different syntax. I am trying to write a line of infile in the string line and then output it I write in the file. Do not try "c ++" to write in Python. For work in hand: import sys if len (sys.argv)! = 3: print ('use: filecopy source destination') else: try: open with (sys.argv [1], 'r') as inf, open (sys.argv [2]...

vba - Excel macro to transpose data from one sheet to another based column name and cell content -

Image
I have a worksheet 1 in which there are columns with labeled labels and columns containing 1-20 labels (experiment ID number). There is another workbook 2 with the data of my participant (column) and those experiments (columns). In cells under the experiment column, there are several experiment ID numbers because participants have participated in many experiments. For example, a cell can read, "1,4,5" What do I need to do? In the cells related to worksheet 2 on worksheet 2, for example "X" for example, read a cell for "003" participant from worksheet 2 "1,4,5" worksheet 1 In the column called 1, 4, 5, there will be an "X". I hope this is clear. I'm completely new to macros, but need help with this as soon as possible. This is your lucky day. I'm going to walk you with some code, how to do this. But you have to understand the concepts to take advantage of it. If you do this, you can apply these ideas in many projec...

android - Center a progress bar vertically -

Image
I have a ProgressBar inside a relative layout and some Look at the elements with others and I am unable to focus progress bar vertically. I tried android: layout_centerVertical = "true" , android: layout_gravity = "center_vertical" , android: layout_gravity = "center" , and Android: gravity = "center" but it will not work! This is my layout: & Lt; TextView android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: text = "random number:" android: id = "@ + id / lbl" Android: visibility = "gone" /> & Lt; TextView android: Layout_width = "Wrap_content" Android: Layout_height = "Wrap_content" android: id = "@ + id / rndNum" Android: layout_toRightOf = "@ id / LBL" Android: visibility = "Gone" / & gt; & Lt; / RelativeLayout & gt; & Lt; / Scrollview & gt; Edit : The progress...

node.js - What type of GUID on Mongoose -

Image
Currently, I used MongoVUE to import from existing SQL Server database but uniqueidentifier My question is how is the schema for this structure on Mongoose? I can not see the Gang / UUID datatype on the Mongoose docs For more , H I get some validation IDs like verification db.Validations.find ({ValidationID: '1389AB5E-56BD-46FD-9A8A-258C7BDE4251'}); This does not give any returns, although this guide is similar to the SQL Server record. Thanks. MangoView is obscuring things Bit is here, but it makes it easy to read well. Here's your example Validation ID of '1389AB5E-56BD-46FD-9A8A-258C7BDE4251' Looks like in the Stave - it's Type 3inindia : {"Validation ID": BinData (3, "E4mrXla9Rv2aiiWMe95CUQ ==")} The viewer is converting you into a more readable format. It is doing this by converting it to hex and adding dashes. For proof: & gt; Var Bar = Binadata (3, "E4 MRXLA 9 RV2BAIMMMMTCUUK ==") ...