[Solved] I’m making weightSum but it can’t be sorted

add android:layout_gravity=”center_vertical” to both your ImageView and your Button, that will give you the alignment you depicted in your image. <LinearLayout android:layout_width=”match_parent” android:layout_height=”wrap_content” android:orientation=”horizontal” android:weightSum=”100″ > <ImageView android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:layout_gravity=”center_vertical” android:layout_weight=”80″ android:gravity=”right” android:src=”https://stackoverflow.com/questions/25706451/@drawable/image” /> <Button android:id=”@+id/blah” android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:layout_gravity=”center_vertical” android:layout_weight=”20″ android:gravity=”left” android:text=”Blah blah blah blah” android:textSize=”15sp” /> </LinearLayout> Also you didn’t set the height for … Read more

[Solved] C++: Update to memory location using pointer is lost [closed]

This is bad: void TestLocalQueue::putMsg(){ ControlCommand cc; cc.setDynamic(“target”); cout<<“Setting Dynamic context \n”<<endl; localQueue->put(&cc ); The localQueue->put function stores the pointer you give it into the queue. However cc‘s lifetime is only for the duration of the putMsg function, so when this function exits you will have a dangling pointer. To fix this you could either … Read more

[Solved] Woocommerce category description as subtitle

There is an extra hook you can use for this woocommerce_archive_description, hook into it like this: add_action( ‘woocommerce_archive_description’, ‘wc_category_description’ ); function wc_category_description() { if ( is_product_category() ) { global $wp_query; $cat_id = $wp_query->get_queried_object_id(); $cat_desc = term_description( $cat_id, ‘product_cat’ ); $subtit=”<span class=”subtitle”>”.$cat_desc.'</span>’; echo $subtit; } } 0 solved Woocommerce category description as subtitle

[Solved] How to get the sum in a joined table when using group by – getting wrong results

I understand that you want, for each day: the sum of order_items.energy_used for all orders created that day the created_at and order_sum that correspond to the latest order created on that day Your sample data is not very representative of that – it has only one order per day. Also it is unclear why created_at … Read more

[Solved] css3 works just on google

Internet explorer and Firefox use the standard extension rather than the webkit extension for animation. You need to add the standard css as well as the webkit vendor extension which would change your css to: #loading { margin: 80px auto; position: relative; width: 100px; height: 100px; -webkit-border-radius: 50px; -moz-border-radius: 50px; border-radius: 50px; background: #ccc; font: … Read more

[Solved] why my css is not working with bootstrap ?

If you’re using bower, try adding the bootstrap dependency to your bower.json file as such: “dependencies”: { “angular”: “~1.3.3”, “bootstrap”: “~3.2.0″ }, and add the following to your index.html file (<link> in head and <script> with your other script tags at the bottom): <link href=”https://stackoverflow.com/questions/27298717/bower_components/bootstrap/dist/css/bootstrap.css” rel=”stylesheet”> <script src=”bower_components/bootstrap/dist/js/bootstrap.js”></script> Don’t forget to bower install in your … Read more

[Solved] How I can find out 1st and last observation with in group in R for every by group

Here is an option with data.table_1.9.5. Create the “data.table” from “data.frame” using setDT, remove the NA values in “dialled” column (!is.na(dialled)), generate grouping variable by using rleid on “Dialled_nbr”, get the row index of the first and last rows for the levels of grouping variable (.I(c(1L, .N)]), finally subset the “dt1” based on the row … Read more

[Solved] How do I retrieve the actual string selector

Answer for updated question: How do I retrieve the actual “select#mysel” from the var mysel? example of how this might be used? var mysel = $(“select#mysel”); var myopt = $(mysel.actualstringselection + ” option”); So basically, you want the original selector string that you passed into $() in order to get mysel. You can’t get that. … Read more

[Solved] Calculate the hours minutes and days of difference between two date and hours

A simple example like this would do the job : $mydatetime = new DateTime(); $datefromdb = new DateTime(‘2018-03-05 10:10:00’); $interval = $mydatetime->diff($datefromdb); $date_count = $interval->format(‘%y years %m months %a days %h hours %i minutes %s seconds’); echo $date_count; This is your code it should work $fecha = $row[“fecha”]; $data= $row[“hora”]; $start = strtotime(“$fecha $data”); $currentDate … Read more

[Solved] how to extract data from image by user [closed]

Try this: A=imread(‘your image’); imshow(A); impixelinfo; [c, r, vals] = impixel; c and r are arrays of all the columns and rows of the part of the image that user clicked on and vals are the RGB values of each point. 2 solved how to extract data from image by user [closed]