Posts

html - Modal Option on a TD is increasing the line height of the TD in table -

i have table has line height of 1.4 th , 1.0 td but when add modal option 1 of td's, height of td automatically getting increased around 2.5, , not able decrease original size of 1.0. any kind of appreciated. changing size of modal button btn-xs helped. thanks anyways.

Rotate labels using Plotly in R -

im trying put vertically xlab in plot using plotly package. want same "las= 2" on standard r. i found 'tickangle = 45' ticks, not labels. any 1 can me? ` plot_ly(x = account$country, opacity = 0.6, type = "histogram", histnorm = "probability", color = c('more 1 account'), colors = 'red') %>% add_trace(x = account2$country, opacity = 0.6, type = "histogram", histnorm = "probability", color = c('account'), colors='blue') %>% layout(barmode="overlay", title = "clients test", xaxis = list(title = "country", color ="red"), yaxis = list(title = "clients")) ` thank you. ...

android - FCM Notification icon is not being used -

Image
i using fcm , send push notification app. want use custom notification icon show white icon. running lollipop . from documentation says icon optional, string indicates notification icon. sets value myicon drawable resource myicon. ( i'm not sure means ). here did. i generated icons here . have icons white text , transparent background. sample screenshot pic of icon i added res folder i edited androidmanifest , added android:icon="@drawable/ic_stat_set" in <application i tried running project on device, new app icon ic_stat_set being used app launcher. from console send notification , did receive not icon set. i tried sending through api. did received notification not icon set. curl -x post --header "authorization: key=serverkey" --header "content-type: application/json" https://fcm.googleapis.com/fcm/send -d "{\"to\":\"registeration-token-id\",\"notification\":{\"body\":...

php - Laravel 5 - How to count total records with joins and group by -

i need count total no. of records coming database group by. don't need count of each set or group by default. one way know use ->get() on query, crashes when have lots of record in database. $orders = order::where('orders.store_id', $store->id); $orders->join('order_product', 'orders.id', '=', 'order_product.order_id'); $orders->join('products', 'products.id', '=', 'order_product.product_id'); $orders->join('customers', 'order_product.order_id', '=', 'customers.order_id'); $orders->join('addresses', 'customers.id', '=', 'addresses.customer_id'); $orders->where('products.status', 1); $orders->where('orders.is_deleted', '0'); if ($keyword) { $orders->where(function ($query) use ($keyword, $searchkeyword){ ...

php - oauth2 get access token via db by supplied client id/secret for trusted 3rd party client -

i'm using "lucadegasperi/oauth2-server-laravel". i'm making api endpoint 3rd party trusted client , using client_credentials grant. now thing access tokens tend expire, instead of giving 3rd party user access token, supply them client id/secret. on side following when curl request... select a.id, expire_time oauth_clients c left join oauth_sessions s on s.client_id = c.id left join oauth_access_tokens on a.session_id = s.id c.id = 'asfasasf' , c.secret = 'asfasfasfasf' order s.id desc limit 1; ... above pretty checks if there access token , expire time relating client id/secret. i'd pretty generate new 1 if 1 didn't exist or if expired. couple lines down, curl on side endpoint after given access_token on side without them worrying doing it. i've tested , works, kind of dodgy/bad do? tldr; 3rd party client - goes /api/endpoint client id/secret my server sid...

how to add opencv to a gui QT application? -

Image
i created new widget gui application in qt . , in order using opencv , added includepath , libs projects following : qt += core gui greaterthan(qt_major_version, 4): qt += widgets target = testqt4 template = app sources += main.cpp\ widget.cpp includepath += c:/opencv/build/include libs += -lc:\opencv\build\x64\vc12\lib -lopencv_world310d headers += widget.h forms += widget.ui and included desired opencv headers following : #ifndef widget_h #define widget_h #include <qwidget> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> .... but when builded project encountered error : can me fix error ? thank . are using qt creator? it not update makefile once changed .pro file. right click on project folder in projects view , click "run qmake" should fix it.

html - jQuery - Change input type based on selection value -

i need change input type inside div based on select value. here html- <div id="query_template" class="hide"> <div class="col-md-12 query_row"> <div class="row"> <div class="col-md-3"> <select name="t_col" class="form-control"> <option value="1">col 1</option> <option value="1">col 2</option> <option value="1">col 3</option> <option value="1">col 4</option> <option value="1">col 5</option> <option value="1">col 6</option> </select> </div> <div class="col-md-3"> <select name="t_rel" class="form-...