[Solved] What type of this element? [closed]

You can do this with this little amount of html/css :). I did not add a picture but if you like it can be added. Also if you want you can modify the scrollbar to a custom as matt mentions in his comment. To be honest with the scrollbar, it’s not worth the extra load … Read more

[Solved] How is it possible to use a “new” as parameter in side another new?

The new operator is used to create an instance of a class. What’s happening in new Bus(new PrototypeEngine1()).drive() is that an instance of PrototypeEngine1 is being created as an argument to new Bus(). To illustrate this concept, let’s refactor the single line of code in step by step manner: PrototypeEngine1 engine = new PrototypeEngine1(); Bus … Read more

[Solved] could not resolve property 3 [closed]

The problem with an alias com in HQL. com.company.location.entities.Compte has an incorrect meaning with this alias. select com from Compte com where com.statuts=”actif” and com.user=””+user+”” and com.pwd='”+pwd+”‘ ” + “and com.personnels.id in (select p.id from Personnels p where statuts=”actif” Just change it to compte select compte from Compte compte where compte.statuts=”actif” … And, please, use … Read more

[Solved] Check if a date has been selected. Bootstrap input type date

As mentioned in comment, you should write var selectedDate = $(“#date”).val(); if(selectedDate == “”) { // use == instead of = here. It will check condition alert(“date is not selected”); }else{ alert(selectedDate); } Note:- single = is an assignment operator. It assigns the value to variable. While == checks the condition. You can also write … Read more

[Solved] First argument in form cannot contain nil or be emptyy

in db/create_post.rb t.string :title t.text :body then do rake db:migrate (it migrate schema of data base) class PostController < ApplicationController before_action :find_post, only: [:show, :edit, :update, :destroy] def new @post = Post.new end def create @post = Post.new(post_params) if @post.save redirect_to posts_path else render ‘new’ end end def show end def post_params params.require(:post).permit(:title, :body) end … Read more

[Solved] For loop resets after an exception

When you throw your exception, you go back to the beginning of your do while loop because that’s where your try block starts. If you don’t want to reset your loop in an exception, put a try catch block within your for loop. 0 solved For loop resets after an exception

[Solved] How to reproduce this shape

Try this code: <RelativeLayout android:layout_width=”match_parent” android:layout_height=”wrap_content” android:layout_centerVertical=”true”> <TextView android:id=”@+id/tvText” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_centerInParent=”true” android:layout_marginLeft=”10dp” android:layout_marginRight=”10dp” android:text=”lala” android:textColor=”#FFFFFF”/> <View android:layout_width=”match_parent” android:layout_height=”1dp” android:layout_centerVertical=”true” android:layout_marginLeft=”16dp” android:layout_toLeftOf=”@id/tvText” android:background=”#FF0000″ /> <View android:layout_width=”match_parent” android:layout_height=”1dp” android:layout_centerVertical=”true” android:layout_marginRight=”16dp” android:layout_toRightOf=”@id/tvText” android:background=”#FF0000″ /> </RelativeLayout> solved How to reproduce this shape

[Solved] How can I optimize this MYSQL query? (huge delay to obtain the result)

Seems like a candidate for conditional aggregation: SELECT `Dia_Semana`, `Fetcha_Deposte` , IFNULL(ROUND(`Suma_Bondiolas s/hueso`, 2), 0) AS `Suma_Bondiolas s/hueso` , IFNULL(ROUND(`Suma_huesos_Bondiola`, 2), 0) AS `Suma_huesos_Bondiola` , `Suma_Bondiolas s/hueso` / `Suma_huesos_Bondiola` AS `Huesos Bondiola/Bondiolas sin huesos` FROM ( SELECT ELT(WEEKDAY(fecha) + 1, ‘Lunes’, ‘Martes’, ‘Miercoles’, ‘Jueves’, ‘Viernes’, ‘Sabado’, ‘Domingo’) AS `Día_Semana` , fecha AS `Fecha_Desposte` , SUM(CASE … Read more