Posts

php - Class "hash" not found -

I'm trying to hash my password before putting it into my table using a laravel seed. Every time I run the php artisan db: seed - class = user I get an error "class hash 'not found' Here is my class: class increases user cd {public function run (): (user :: create (array ('email' = & gt; '********', 'password' = & gt; ; Hash :: create ('********')); $ This-> Command-> Information ('Priority in the User Table!');}} I know that if you need further information, thank you The!! You have to use hash :: make Because the matter matters, in general it is a good practice to use some coding guidelines to prevent such errors. In your case, you should write every classname in the upper camelcase Class increases user cadre (public function run) (user :: creation (array ('email' = & gt; '*** *****', 'password '= & Gt; hash :: forming (' ******** '))); $ This- & gt...

PayPal transfering recived mony to many other users automaticly -

I read that the series \ parallel payments are limited to 5 \ 6 people. What do I need when the money is received in the account, X% and other PayPal accounts to move. what do I need? And how can I do this? Thank you, Imbero You just have money in your account and then one In the IPN solution, payments automatically to secondary users in real time using payment APIs.

java - Exporting executable jar changes directory of images -

Image
I have a problem exporting my Eclipse project to executable jars, I think I correct it but jar Closes as compared to closing, so I tried with "java -jar nameofproject.jar" and it says: Unable to load image: / images / dialogs / server- Exception in the database.png thread "AWT-EventQueue-0" Java.lang.NullPointerException javax.swing.ImageIcon. & Lt; Init & gt; (Unknown source) .... So I uncompressed the jar and saw the directory structure in it and I was surprised to see that my "image" package was an unwanted "source" directory It was made in JVM, making JVM impossible to find them. Then the original project structure in Eclipse is: And here is the directory structure unpack jar: (The image directory is under" src "directory, which prevents jvm from searching images) Any ideas about how to resolve it ?

c# - XAML Gridview not rebinding on RaisePropertyChanged -

संपादित करें: यह एक विंडोज स्टोर (8.1) अनुप्रयोग है मेरे पास एक व्यक्ति वर्ग है जैसा नीचे दिखाया गया है जो मैं एक मॉडल के रूप में उपयोग कर रहा हूं सार्वजनिक वर्ग व्यक्ति: बेसमोडेल {निजी स्ट्रिंग _FirstName; सार्वजनिक स्ट्रिंग प्रथम नाम {वापस {वापस _FirstName; } सेट {if (_FirstName == मान) रिटर्न; _FirstName = मान; RaisePropertyChanged ( "प्रथम"); }} निजी स्ट्रिंग _MiddleName; सार्वजनिक स्ट्रिंग मिडलनाम {get {return _MiddleName; } सेट {if (_MiddleName == मान) रिटर्न; _MiddleName = मान; RaisePropertyChanged ( "MiddleName"); }} निजी स्ट्रिंग _LastName; सार्वजनिक स्ट्रिंग LastName {get {return _LlastName; } सेट {if (_LastName == मान) रिटर्न; _ListName = मान; RaisePropertyChanged ( "अंतिम नाम"); }}} जहां बेसमोडल को नीचे के रूप में परिभाषित किया गया है GalaSoft.MvvmLight का उपयोग कर; सार्वजनिक वर्ग बेसमोडेल: अवलोकनकर्ता ऑब्जेक्ट {} मैं मॉडल को एक व्यू मॉडेल कक्षा में नीचे दिखाए अनुसार उपयोग कर रहा हूं। GalaSoft.MvvmLight का उपयोग कर; सार्वजन...

python - Django, calling function in re.sub -

मेरे कस्टम टेम्पलेटेट में इस लाइन है: value = re.sub (r '(। *) \ (Bkz: (। *) \ B \)', r '\ 1 (bkz: & lt; a href = "/ baslik / \ 2" & gt; \ 2 & lt; / a & gt;), मान ) मैं अपने लिंक में slugify फंक्शन का उपयोग \ 2 को झुकावना चाहता हूं मैं यह कैसे कर सकता हूँ? re.sub () या तो एक स्ट्रिंग या एक फ़ंक्शन को दूसरे के रूप में लेता है पैरामीटर में, आप जो चीजें चाहते हैं, उसके लिए आप एक फ़ंक्शन परिभाषित कर सकते हैं, नीचे एक बहुत तुच्छ उदाहरण है value = "aaa1aaa" def slugifier (match_object): वापसी 'X' value = re उप ('\ d +', slugifier, मान) & gt; & gt; 'एएएक्सएआ' ' बस एक साइड नोट के रूप में, slugify \ 2 से बच जाएगा और खाली स्ट्रिंग का उत्पादन करेगा।

angularjs - What is the correct way to extend an AngularStrap directive? -

I am looking to extend an AngularStrap instruction (in this case) to exceed the functionality provided After some research, I am thinking the best way to wrap type-order instructions with my custom instructions so that I can expand it. I have followed all 3 suggestions to increase a cornerory instruction, but none of them let me reach the type-add controller and this is a public work. Am I going wrong about this? What is the best way to increase custom performance instructions? Any help is appreciated. In my case, use the 'requirement' for the difference to refer to the controller of the original director Was there.

Django Dynamically Adding Form So That it is Aware of it's Parent -

The first question. I have a problem creating a structure to create an event with many events (user specifies how many) activities and each activity can be more than once, I want my appearance, it The structure is: \ - event activity 1 time 1 time 2 time 3 activity 2 time 1 time 2 time 3 where users can add more activities And can add more for each activity May include. models.py def event (models.Model): # relevant events not deaf activity (models.Model): event = model. Forvinke (event) # more irrelevant stuff def activity time (models.Model): activity = model. Freigaki (activity) start_time = model Timefield () end_time = models.TimeField () # more irrelevant stuff I am using model formats to represent event, activity, activity. When I add entries to the database, then I want to be 'aware' of my related activity every time I am not sure how to implement it. I have not got luck with inline formats, but probably because I do not understand anything. An ...