[Solved] post route in Laravel

Try using url intead of route <form action=”{{ url(‘ImportUsersFile’) }}” method=”POST” enctype=”multipart/form-data”> <input type=”hidden” name=”_token” value=”{{ csrf_token() }}”> add users via excell<input name=”file” class=”form-control” style=”padding-bottom:3em; margin-bottom:3em” type=”file”> <div style=”display:inline;”> <input type=”submit” class=”btn btn-primary btn-lg” value=”ارفع” > </div> </form> And in your routes: Route::post(‘ImportUsersFile’, [‘uses’ => ‘ExcelUserController@importUser’, ‘as’ => ‘importUser’]); 2 solved post route in Laravel

[Solved] Android : how can I add 5 Times in a variable and get total seconds of them

A easy way to do it, if the format is the one you have pointed, without have to worry in convert the Date is the following: int totalSum = getSecondsFromDate(“05:12:02”) + getSecondsFromDate(“19:12:52”) + getSecondsFromDate(“40:12:14”) + getSecondsFromDate(“56:54:10”) + getSecondsFromDate(“41:12:12”); private int getSecondsFromDate(String date){ //We split the date to have hours, minutes and seconds String splitDate = … Read more

[Solved] ansible, jinja template with loops, losing newlines [duplicate]

And this little change actually made the problem go away in the end. #jinja2: trim_blocks:False { “Users”: [ {% for username,user in _vpn_user_accounts.items() %} { “Name” : “{{ user.name }}”, “Hash” : “{{ user.hash }}”, “Cns” : [ {%- for cn in user.cns.get(server_name, []) %} “{{ cn }}”{% if not loop.last -%},{% endif %} {%- … Read more

[Solved] I declared a type in Range but still got compilation error on “does not name a type” after read all the answer from similar questions [closed]

I declared a type in Range but still got compilation error on “does not name a type” after read all the answer from similar questions [closed] solved I declared a type in Range but still got compilation error on “does not name a type” after read all the answer from similar questions [closed]

[Solved] excel popup button to ask how much money to add to an existing cell with an existing amount [closed]

Here’s how to connect the macro to a button Private Sub Button1_Click() Dim val As Long val = Application.InputBox(Prompt:=”Enter Amount”, Type:=1) Range(“C43”).Value = Range(“C43”).Value + val End Sub 12 solved excel popup button to ask how much money to add to an existing cell with an existing amount [closed]

[Solved] Append one object to another one [duplicate]

For javascript its object not python like dictionary :P, Just use Spread Syntax to get your job done. existingData = {“School Name” : “Albert”} newData = {“Teacher Name” : “Ms. Mithcell”} result = {…existingData, …newData}; console.log(result); solved Append one object to another one [duplicate]

[Solved] Loop not ending

The while loop will continue as long as temp is true. In the nested if-statement we set temp as false which exits the loop. As for the playerPick: the variable is declared outside of the loop so It should be accessible anywhere within the function that is below the declaration (code is read top down … Read more

[Solved] How to take input in java like this way? [closed]

Here’s one method, taking the user’s input one line at a time: import java.util.Scanner; class Matrix{ public static void main(String[] args){ char[][] matrix = new char[5][5]; Scanner in = new Scanner(System.in); System.out.println(“\nInput 5×5 char matrix one line at a time:\n”); for(int i = 0; i < matrix.length; i++){ String row = in.nextLine(); for(int j=0;j<matrix[i].length;j++){ matrix[i][j]=row.charAt(j); … Read more

[Solved] How to load a dictionary on android app start and use it from different activities

create application class and write this code in application class public class MyApplictaion extends Application { private static MyApplication myApplication = null; public Map<String, String> fontDic; @Override public void onCreate() { super.onCreate(); fontDic = new HashMap<String, String>(); fontDic.put(“1”, “0x0627”); fontDic.put(“2”, “0x0628”); fontDic.put(“3”, “0x062A”); fontDic.put(“4”, “0x062B”); } public static MyApplication getInstance() { if (myApplication == null) … Read more

[Solved] Ambiguous column name ‘ProductID’ in asp.net

Since the column ProductID is present in both tables, the WHERE clause find it Ambiguous. So, Replace ProductID=@ProductID with o.ProductID=@ProductID update o set o.Updatedproduct = p.ProductQuantity – o.Totalproduct from CustomerProducts o inner join Products p on o.ProductID = p.ProductID WHERE o.ProductID=@ProductID 15 solved Ambiguous column name ‘ProductID’ in asp.net

[Solved] Android – Interchange sounds through timer

Here you are: final MediaPlayer sound1 = MediaPlayer.create(this, R.raw.snd1); final MediaPlayer sound2 = MediaPlayer.create(this, R.raw.snd2); int sound = 1; Button play = (Button)findViewById(R.id.button1); play.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Timer timer = new Timer(“click”, true); TimerTask tone = new TimerTask(){ @Override public void run(){ if (sound % 4 != 0){ sound1.start(); sound … Read more

[Solved] CSS huge grid problems

as Mike ‘Pomax’ Kamermans suggested, the best way would be detect mouse click and add item dynamically. You can customize the width and height of items by assigning values to item_width and item_height. var item_width=40; var item_height=40; var added_items=[]; $(function(){ $(‘.grid’).on(‘click’, function(e){ var x = e.pageX – $(this).offset().left; var y = e.pageY – $(this).offset().top; var … Read more