Posts

Showing posts from March, 2015

Where should I store WebAPI controllers inside ASP.NET-MVC 5 project? -

Image
i have completed asp.net-mvc5 application(website) have lot of mvc controllers: i extent functionality of application exposing web api odata. for instance create controller person model class, time should web api not mvc controller. should web api store in controller folder , call personwebapicontroller ? work? to answer question will work? yes but if want separate code physically, can create custom folder under controllers folder, , place apicontrollers in newly created folder. if want separate mvc , api controllers logically, use different namespaces them. technically can have controllers in custom made folder under visual studio project.

php - Handling Guests in Yii2 to prevent constant checks -

i'm wondering recommended way handle guests in yii2 . like, example when have logged in user can details via call such as: $user = yii::$app->user->identity; then can stuff below, depending on details made available them: $user->username; $user->email; however, when have guest yii::$app->user->identity returns null . in situation need check if user guest or logged in user , hence have repeat code in various places: if (yii::$app->user->isguest) { $username = yii::t('general', 'guest'); } else { $username = yii::$app->user->identity->username; } ...doing on place not maintainable, wanting come solution can reference username without having check - still guest checks needed security purposes, i'm trying write maintainable code , such want come solution purposes need information such username. i not sure if there recommended way in yii2 , thought perhaps extending yii\web\user class , doing below:

javascript - EmberJS - object proxying is deprecated - accessing property of a controller in template -

Image
i'm trying understand peculiarity. setting xxx property , iterating #each in 1 controller works, while seemingly same operation yyy #each doesn't... i'm including highlights of code , runnable code snippet: app.indexcontroller = ember.controller.extend({ xxx : [{name:"a"}, {name:"b"}], // works fine }); {{#each item in xxx}} <li>{{item.name}}</li> {{/each}} app.colorcontroller = ember.controller.extend({ yyy : [{name:"c"}, {name:"d"}], // triggers deprecation // attempted access `yyy` ... // object proxying deprecated. please use `model.yyy` instead }); {{#each item in yyy}} <li>{{item.name}}</li> {{/each}} app = ember.application.create(); app.color = ds.model.extend({ name: ds.attr('string') }); app.router.map(function() { this.resource('color', function(){ this.route('show', { path: ':color_id&

html - How to make a navigation bar permanently on top? -

Image
can make navigation bar on top? i not talking : position: fixed; thing... the problem navbar when zoom out not on top anymore... how can make site's navigation bar is on top when zoom out? or is there chance can make facebook's navbar (the 1 on top says home) has fixed position still same when zoomed in or out. the code whole css here , html navbar there also if want check site link is: http://hyperraze.comxa.com/ thanks ul.navbar{ float: left; display: inline; } #hyper{ position: relative; top: 70px; z-index: -1; opacity: 0.9; } a.navbar{ display: inline; padding: 9px; display: block; float: left; background-color: #009900; text-decoration: none; border-right: 53px solid red; width: 70px; } a.navbar:hover{ color: #009900; background-color: blue; } div.navbar{ border: 0px; background-color: red; width: 40000px; height: 50px; padding-top: 0px; padding-bottom: 2px; position: fixed; botto

Java & MySQL- Rankings -

i making game , require ranking system. save stats kills, deaths, wins, innocent shots, etc mysql. clueless moment on how able rank everyone. want have on mysql updated quickly. thinking load ranks in hashmap when game starts ineffective since there thousands of players. want use of stats work out. explain me how able this? thanks! one way use mysql events trigger stored procedure. stored procedure execute ranking , store rank in db. set event trigger time whatever wanted, 10 minutes. mysql events: https://dev.mysql.com/doc/refman/5.7/en/events.html create [definer = { user | current_user }] event [if not exists] event_name on schedule schedule [on completion [not] preserve] [enable | disable | disable on slave] [comment 'comment'] event_body; schedule: @ timestamp [+ interval interval] ... | every interval [starts timestamp [+ interval interval] ...] [ends timestamp [+ interval interval] ...] interval: qua

android - How can I get Gradle module name programmatically -

is possible obtain gradle's module name programmatically in java code? i need access module's build files under module_name/build/intermediates directory, hardcoding module name bad idea. you can access project variable inside build script instance of project . has various getters projectdir or builddir , since quite common use them documented in user guide . alternatively can find path if output of task generates files there. if need know location in test can pass build script using system property this: test { systemproperty "buildfolder", project.builddir.absolutepath } btw: https://github.com/gradle/gradle/blob/master/gradle/idea.gradle#l192 has trick how update run configurations in intellij's workspace properties need test execution. can useful if run junit test inside ij (without delegating gradle).

javascript - jQuery(.filter): how to use numerical range instead of .lenght<#? -

i not sure how use numerical range such 0 159, instead of .length<3 . appreciate help. $(document).ready(function() { $('td.green.center').filter( function(){ return $(this).text().length<3; } ) .parent().hide() }); use parseint convert string integer. $(document).ready(function() { $('td.green.center').filter( function(){ return parseint($(this).text())<160; }).parent().hide() });

cordova - ionic run android failed, error gradle line 64 -

previously can compile after updated cordova happended. got error. failure: build failed exception. * where: script 'c:\users\jay\testproject\platforms\android\cordovalib\cordova.grad le' line: 64 * went wrong: problem occurred evaluating root project 'android'. > no installed build tools found. please install android build tools version 19.1.0 or higher. * try: run --stacktrace option stack trace. run --info or --debug option more log output. i downloaded required sdk, problem here? i had same problem , how fixed it. had build-tools version 20 installed still getting error: no installed build tools found. please install android build tools version 19.1.0 or higher. so created directory named 20 within build-tools directory, , copied files sdk\build-tools\android-4.4w\* sdk\build-tools\20 . problem fixed!

javascript - Passing arguments in Meteor.subscribe -

when can pass argument when subscribing published collection? i publishing collection this: meteor.publish('recent-posts', function (options) { var limit = options.limit; return posts.find({}, {sort: {date: -1}, limit: limit}); }); in routes file, can pass {limit: 5} options this, , works: ... waiton: function () { return meteor.subscribe('recent-flights', {limit: 5}); } ... what confuses me works: ... waiton: function () { return meteor.subscribe('recent-posts', {date: this.params.date}); } ... the second example subscribes me posts date value. why work? seems passing {date: this.params.date} options . have not defined date in meteor.publish . nothing in meteor lead such behavior, @ least far can tell source code. tested example in "clean" meteor instance. did not behave describe. must in code doing this. be, aren't describing problem correctly. i noticed in using 2 different subscriptions in example; re

android - How to set color for position '0' of ExpandableListview -

i have 4 activity classes, need implement 4 different colors 4 activities, have expandablelistadapter like: public class expandablelistadapter extends baseexpandablelistadapter { private context _context; private list<string> _listdataheader; // header titles // child data in format of header title, child title private hashmap<string, list<string>> _listdatachild; string colors; public expandablelistadapter(context context, list<string> listdataheader, hashmap<string, list<string>> listchilddata,string color) { this._context = context; this._listdataheader = listdataheader; this._listdatachild = listchilddata; this.colors=color; } @override public object getchild(int groupposition, int childposititon) { return this._listdatachild.get(this._listdataheader.get(groupposition)) .get(childposititon); } @override public long getchildid(int groupposition, int childposition) { return childposition; } @ov

javascript - Issue passing back dynamic string array -

Image
i have form inside modal popup, user can enter text in text box , click plus button dynamically adds text have typed in div can proceed add one. <div class="form-group"> <label class="control-label col-sm-4" for="prefix"> cast <span style="color:red">*</span> </label> <div class="col-sm-5"> <input type="text" class="form-control col-sm-5" id="cast" /> </div> <div class="col-sm-1"> <button type="button" id="btnnewcast" class="btn btn-default">+</button> </div> </div> <div class="form-group"> <label class="control-label col-sm-4" for="prefix"></label> <div class="col-sm-6" id="newcast"> </div> </div> as shown here: the newcast display entered va

jsf - Primefaces 500 Error on starting server -

i'm not sure i've done, after recent build on server i'm getting error: http error 500 problem accessing /. reason: server error caused by: java.lang.nullpointerexception @ org.primefaces.context.primefacescontext.release(primefacescontext.java:26) @ org.primefaces.context.primefacescontext.release(primefacescontext.java:28) @ javax.faces.webapp.facesservlet.service(facesservlet.java:612) @ org.eclipse.jetty.servlet.servletholder.handle(servletholder.java:558) @ org.eclipse.jetty.servlet.servlethandler.dohandle(servlethandler.java:488) @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:119) @ org.eclipse.jetty.security.securityhandler.handle(securityhandler.java:520) @ org.eclipse.jetty.server.session.sessionhandler.dohandle(sessionhandler.java:233) @ org.eclipse.jetty.server.handler.contexthandler.dohandle(contexthandler.java:973) @ org.eclipse.jetty.servlet.servlethandler.doscope(servlethandler.j

vb6 - run time error '13' type mismatch -

i have query on vb6 was: set db = dbengine.opendatabase(app.path & "\sample4nc4.mdb") set rs = db.openrecordset("select *from tbl_student;") until rs.eof listview1 .listitems.add , , rs.fields("stud_id") .listitems(listview.listitems.count).subitems(1) = rs.fields("stud_fname") .listitems(listview1.listitems.count).subitems(2) = rs.fields("stud_lname") .listitems(listview1.listitems.count).subitems(3) = rs.fields("stud_address") .listitems(listview1.listitems.count).subitems(4) = rs.fields("stud_age") end rs.movenext loop when execute query, there error on line 2 says: run time error '13' type mismatch i don't because when check table name, correct , yet cant access table. can answer problem? do have references ado , dao in project? if so, @ microsoft support article: https://support.microsoft.com/en-us/kb/181542

javascript - Single timer or multiple timers in Node JS? -

hi there! developing auction in node js (express framework,socket.io). can advice me better way use single timer every product or multiple timers each product? for example (code minimal): once started... for(active products) { timer[timer_id] = setinterval(.. sec--; .... ) } or every second... timer = setinterval(.. for(only active products) { sec--; } ) both programming codes working now. want know way better or there other way it? thanks in advance!

php - Bootstrap Form Is Not Responsive In Mobile -

i've created landing page looks fine on desktop, horrible in mobile. form goes outside of background image , creates lot of white space. there way make form stay inside of background image? thanks! here link , code snippet: crimsonroot.com/files/php/gettr.php <div class="col-md-6 col-md-offset-3 col-sm-6 col-sm-offset-3 col-xs-12 center"> <form> <div class="form-group"> <input type="text" class="form-control" name="name" id="name" placeholder="name"/> </div> <div class="form-group"> <input type="email" class="form-control" name="email" id="email" placeholder="email"/> </div> <button id="gogettr" class="btn btn-success btn-lg">make

python - AttributeError: 'TimedeltaProperties' object has no attribute 'years' in Pandas -

in pandas, why timedeltaproperties object have no attribute 'years'? after all, datetime object has property. it seems natural thing object concerned time have. if has hours, seconds, etc attribute. is there workaround column, full of values like 10060 days , can converted years? or better yet, converted integer representation years? timedeltaproperties not have year or month attributes because according timedeltaproperties source code . - accessor object datetimelike properties of series values. but , months or years have no constant definition. 1 month can take on different different number of days, based on month itself, january -> 31 days , april -> 30 days , etc. 1 month can take on different values based on year (in case of february month) , if year 2004 , february has 29 days , if year 2003 february has 28 days, etc. same case years , can take on different values based on exact year is, example - if year 2003 , has 3

entity framework - Setting IsModified on EntityFramework Decimal Property -

i'm new ef, , trying make update method in rest style take 1 or more properties in object , update database passed in. i have code below working several types. however, added system.decimal, , getting error can't use property() method because decimal field not primitive or complex type. error occurs on following line: pt.property(propertyinfo.name).ismodified = true; the actual error message is: additional information: property 'miles' on type 'appointment' not primitive or complex property. property method can used primitive or complex properties. use reference or collection method. my property "miles" 18,2 decimal in sql , decimal on ef class data model class. i've spent 2 days searching clues or solutions, got nowhere. me obi wan kenobi, you're hope... [responsetype(typeof(void))] public async task<ihttpactionresult> putappointment(int id,[frombody] dto.appointment appointment) { // check inval

c++ - Is std::max_element a C++11 x feature? -

do know if std::max_element c++11 feature or has existed before that. using g++ 4.8.3 , not throw warning messages requesting use -std=c++11 i posting code may people compile on machines: #include <iostream> #include <vector> #include <algorithm> #include <vector> class { public: int x; explicit a(int x): x(x) {} bool operator<(const a& a) { return x < a.x; } }; int main() { std::vector<a> v; v.push_back(a(20)); v.push_back(a(10)); v.push_back(a(15)); v.push_back(a(5)); result(*(std::max_element(v.begin(), v.end()))); std::cout << result.x; return 0; } std::max_element has existed since first c++ standard.

java - Error in getting the input in queryparam -

i have problem in web service. because, on first url path, check plate number. now, want input of user first url path , use on second path. possible? here's first url scan input of user: package com.taxisafe.server; import javax.ws.rs.get; import javax.ws.rs.path; import javax.ws.rs.produces; import javax.ws.rs.queryparam; import javax.ws.rs.core.mediatype; import com.taxisafe.connection.databaseconnection; import com.taxisafe.json.jsonconstruction; //path checking plate number @path("platecheck") //for url public class platenumbercheck { @get //to full url : http://ipaddress:portnumber/@path/@getpath @path("/check") @produces(mediatype.application_json) //produces response of json. public string check(@queryparam("platenumber") string platenumber){ string sagot = ""; if(checkinput(platenumber)){ sagot = jsonconstruction.jsonresponse("checked", true); } else{ sagot = jsonconstruction.jsonresponse("chec

regex - Understanding the syntax of the "sep" argument default in tidyr's separate() function -

i reading through documentation of separate() function in tidyr package, , don't understand default sep argument. according documentation, default sep = "[^[:alnum:]]+" , means "[t]he default value regular expression matches sequence of non-alphanumeric values." interpreted mean separator "any character or substring of characters not/does not contain letter or number". if inaccurate, please let me know. what don't understand how shorthand alphanumeric [:alnum:] became inverted caret, set of brackets, , plus sign. website linked partly explains confusion (namely [^[]] part), didn't seem talking r. standard syntax r? co-opted different language? i new both programming , r, have not encountered kind of syntax before.

push notification - Android Gcm Unregister Users Subscribed To A Topic When App Uninstalled -

scenario: have 3rd-party app server, gcm http connection server, , android app setup push notifications. when user uninstalls app, can delete them 3rd-party server sending (no-longer-valid) registration id push notification , handling "notregistered" error returned gcm connection server. however, similar approach not seem work when send push notification users subscribed "topic", here gcm connection server returns json object "message_id" . the notable columns in 3rd-party server database table follows: | gcmregistrationid (string) | subscribedtonotificationtopic (boolean) | does know how identify user has set true in subscribedtonotificationtopic column, uninstalled app? i have idea on how resolve this, seems messy. every often, instead of sending push notifications topic e.g. { "to" : "/topics/global", ... } send push notification registration ids of users subscribed topic e.g. { "registrati

node.js - Validating captcha along with passport.js -

is possible verify if google recaptcha succeeded before calling passport.js authenticate function? i'm getting stuck between choosing 1 or other because both use asynchronous callbacks verify , can't next them within each other. function verifyrecaptcha(key, rq, rs, pa, callback) { https.get('https://www.google.com/recaptcha/api/siteverify?secret=' + secret + '&response=' + key, function (res) { var data = ''; res.on('data', function (chunk) { data += chunk.tostring(); }); res.on('end', function () { try { var parseddata = json.parse(data); // return true; callback(parseddata.success, rq, rs, pa); } catch (e) { // return false; callback(false, rq, rs, pa); } }); }); } app.post('/auth/signin', can_access.if_not_logged_in(), passport

javascript - How would one go about implementing `zipWithIndex` in underscore.js? -

essentially when zipwithindex applied on array should produce array key value , value array element (or vice versa). update based on op's comments, return value should array of objects, each of contains single property inverted property (i.e. keys & values swap places) of input array/object. function invert(list) { return _.map(list, function(val, key) { var obj = {}; obj[val] = key; return obj; }); } example 1: ['a', 'b', 'c'] ==> [{a:0}, {b:1}, {c:2}] example 2: {key1:'a', key2:'b'} ==> [{a:'key1'}, {b:'key2'}] function invert(list) { return _.map(list, function(val, key) { var obj = {}; obj[val] = key; return obj; }); } function doalert(input) { alert (json.stringify(input) + ' ==> ' + json.stringify(invert(input))); } doalert(['a', 'b', 'c']); doalert({key1: 'a', key2: 'b'}); <scri

c - How thread can be used to improve time complexity of a code? -

as per knowledge thread can reduce execution time,and can not reduce time complexity. correct me if wrong. suppose have doubly linklist,can use thread improve time complexity of search element random node ? simple search traverse next random node till end of list,and pre of random node till first node,can improve using thread,can in less o(n) time using thread. no. example, using thread make twice fast (if implemented), 1/2 of o(n) still o(n).

Remove text and parenthesis in Excel? -

i have filtered column in excel on 1000 different email addresses , vary in length usernames first , last name. example cell field like: last name, first name (firstname.lastname@example.com) i remove users last name, first name , parethesis except email address should firstname.lastname@example.com i understand how remove length of characters such =left(a2, len(a2)-2) not how remove parenthesis well. what's function use in cell? thanks! try formula =substitute(mid(a1,find("(",a1)+1,99),")","") it finds position of opening parens, grabs right , replaces closing parens empty string.

osx - YouTube iFrame embed pausing after few seconds -

i have mac os x application , using webview (webkit) embed youtube iframe. for reason keeps pausing on videos after few seconds. stuck loading. flash npapi plug-in version 18.0.0.160 installed. xcode throwing error: ignoring controltimebase set client because avsamplebufferdisplaylayer added synchronizer here code iframe embed, same 1 youtube provides. <div id="ytplayer"></div> <script> document.body.setattribute("style", "margin-left:0px;margin-top:0px;background-color:#000000"); var tag = document.createelement('script'); tag.src = "https://www.youtube.com/iframe_api"; var firstscripttag = document.getelementsbytagname('script')[0]; firstscripttag.parentnode.insertbefore(tag, firstscripttag); var player; function onyoutubeplayerapiready() { player = new yt.player('ytplayer', { height: '200', width: '300', videoid: '%@', pla

Client secret for Django oauth -

i using django oauth toolkit , django rest oauth authentication mobile app. accessing protected resource client id , secret of app required . should store client secret. storing in apk unsafe can decompiled. obfuscation can reverse engineered . whats best , safe way serve client secret app. it isn't extremely important keep client id hidden, right not save client secret somewhere in app. exposing compromise security. in case, set oauth app uses password grant type (my personal preference), or have user authenticate server grant them expirey access token use future requests. these 2 different "oauth flows" common mobile apps. there's awkwardly titled slideshow thought had useful illustrations describe use of oauth mobile apps.

formatting - RegEx to add commas and Single quotes -

thanks in advance help... have panel of information in following format: acmh admit xxx acsu admit xxx sub-acute (tcu) adopt adoption ama against medical advice apsy admit cmh psychiatric unit cancel cancelled service canceler cancelled er canceltri cancelled triage exp expired i need format panel this: 'acmh','admit xxx' 'acsu','admit xxx sub-acute (tcu)' 'adopt','adoption' 'ama','against medical advice' 'apsy','admit cmh psychiatric unit' 'cancel','cancelled service' 'canceler','cancelled er' 'canceltri','cancelled triage' 'exp','expired' my colleague recommended regex replac

javascript - angular how to reload a controller -

i have categoriespanel controller on ng-click want show products belongings category inside ng-controller productspanel. problem im having every time click on ng-click="selectorcategory" products in clicked category after refresh page. <div class="col-md-6 m-t-10" ng-controller="productspanel" style="padding-right:1px;"> <div class="panel panel-default" style="height: 700px"> <div class="panel-body"> <div ng-repeat="product in products" class="productrow"> <a href="javascript:;" class="btn btn-white btn-xlarge btn-block">{{product.product}}</a> </div> </div> </div> </div> <div class="col-md-3 m-t-10" ng-controller="categoriespanel" style="padding-left: 0; padding-right: 5px"&g

ios - OpenGl ES 3.0 Context not created on iPad (works in Simulator) -

i'm working on cross platform renderer pc (windows, linux, mac) , ios. ios part built around opengl es 2.0 , wanted upgrade es 3.0. replaced following line (that works) context = [[eaglcontext alloc] initwithapi:keaglrenderingapiopengles2]; with line: context = [[eaglcontext alloc] initwithapi:keaglrenderingapiopengles3]; ... , included opengles/es3/gl.h , opengles/es3/glext.h. in simulator works fine running on actual ipad doesn’t work anymore , context nil. i don’t know i’m missing here since ipad running newest version of ios (ios 8.3) , shouldn't have problems es 3.0. don’t errors , can’t debug (“step into” doesn’t seem work here). the features opengl es 3 adds on opengl es 2 hardware dependent, can create es3 context on hardware supports it. if nil when creating context, need fall rendering opengl es 2. the ios hardware supports es3 a7 or better gpu. that's ipad air, ipad air 2, ipad mini 2 & 3, iphone 5s, 6, & 6 plus... , presumabl

c# - Login popup and Selenium -

Image
i'm trying access website start selenium scripting. put website's link pops window asking username , password. i can't selenium. see tried in code , didnt work out. any ideas? using system; using system.collections.generic; using system.linq; using system.text; using system.threading.tasks; using openqa.selenium; using openqa.selenium.firefox; using openqa.selenium.support.ui; using system.collections.objectmodel; using system.threading; using system.io; using openqa.selenium.interactions; namespace crmtest1withselenium { class program { static void main(string[] args) { iwebdriver driver = null; driver = new firefoxdriver(); string credentials = convert.tobase64string(encoding.ascii.getbytes("username" + ":" + "password")); string url = "http://" + credentials+ "@" + "bfaz-testcrm.cloudapp.net/bathfittercrmtest"; drive

The command "sudo apt-get install python-dev, python3-dev" failed and exited with 100 during -

it seems like sudo apt-get install build-essential worked fine but, gets error while installing python-pip . here's log of failed build. based on error log, main issue apt-get interpreting attempt install separate packages comma part of name of python-dev . install multiple packages apt-get separate them space. however, based upon continued discussion in chat appears travis build still failing because of other issues had in configuration. packages such pip python3 weren't being named properly.

How does the Groovy compiler work? -

can explain groovy compiler works? compile: groovy code -> java code -> bytecode groovy code -> bytecode some other method groovy parses source code antlr via groovy grammar description , generates bytecode using asm it not require javac

C cannot figure out if statement -

this question has answer here: how compare strings? 6 answers so trying learn c can't figure out why code won't run properly. #include <stdio.h> #include <stdlib.h> int main() { char username[25]; char myname[25] = "myname"; printf("please enter name: \n"); scanf("%s", username); if(username == myname) { printf("congratulations name myname!!!"); } else { printf("your name %s how disappointing...", username); } return 0; } the problem if statement never seems return true. can me this? this line comparing locations of strings, different, since comparing 2 different strings. if(username == myname) the correct test in c use library function. #include <string.h> ... if(strcmp(username,myname) == 0)

Android Intent - got crazy -

ok, i've been programming day , searched everywhere nothing yet. hope, me little bit. have 2 activities , want them communicate. here code mainactivity public class mainactivity extends activity{ imageview imgsettings; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); imgsettings = (imageview) findviewbyid(r.id.imgviewsettings); imgsettings.setonclicklistener(new view.onclicklistener() { @override public void onclick(view v) { intent intent = new intent(mainactivity.this, appsettings.class); startactivity(intent); } }); } } manifest <application android:allowbackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/apptheme" >

javascript - Why is my duplicate removal script not capturing unique values -

i'm trying removal duplicates sorted list. i wrote script. for(var = 0; < duplicateauthors.length - 1; i++){ if(duplicateauthors[i] == duplicateauthors[i + 1]) { continue; } else{ uniqauthors.push(duplicateauthors[i]); } } it works except not capture unique values in list. doing wrong? var uniqauthors = []; for(var = 0; < duplicateauthors.length; i++){ if(uniqauthors.indexof(duplicateauthors[i]) == -1) { uniqauthors.push(duplicateauthors[i]); } } the above code checks whether object exist in array or not, if not add array. hence, @ end have array of unique values.

ios - Can I submit multiple, separate apps for review? -

i can't seem find answer question. keeping finding answers submit multiple builds same app, can't find answers multiple, simultaneous app reviews. yes can have several different apps submitted review @ same time. can have single build per app in review @ time though.

jquery - Close bootstrap modal if the button is not placed inside modal-body -

Image
so, have modal i'm using full screen menu , close button working in form: <div class="modal fade" id="hidden-links"> <div class="modal-dialog"> <div class="modal-content hidden-links"> <div class="modal-body"> <div data-dismiss="modal" aria-label="close"> <i class="fa fa-times fa-fw fa-2x"></i> </div> <ul class="links-hidden" role="menu"> <!--hidden links here--> </ul> </div> </div> </div> </div> what i'm trying move: <div data-dismiss="modal" aria-label="close"> <i class="fa fa-times fa-fw fa-2x"></i> </div> out of .modal-body can achieve this: i've done digging could

html - Meteor: Flexbox CSS works in jsFiddle but not in app -

i've got flexbox auto-expanding column css working nicely in jsfiddle: http://jsfiddle.net/disgr4ce/91yfdb4z/1/ .fc { display: -webkit-flex; display: flex; } .fcrow { -webkit-flex-direction: row; flex-direction: row; -webkit-justify-content: space-between; justify-content: space-between; -webkit-align-items: center; align-items: center; } .fccolumn { -webkit-flex-direction: column; flex-direction: column; height: 100%; } html, body { margin:0px; height: 100%; } #header { background-color: #eee; padding: 10px 10px; } .clickable { cursor: pointer; } #chatlog { -webkit-flex: 1 1 auto; flex: 1 1 auto; overflow-y: auto; min-height: 0px; padding:10px; } #chatfooter { height: 40px; padding:10px; background-color: #eee; display: -webkit-flex; display: flex; -webkit-flex-direction: row; flex-direction:row; } .loginput { padding: 10px 10px; } but doesn'

java - Trying to send "alternative" with MIME but it also shows up in capable mail client -

i'm trying send nice mime emails, html displayed whenever possible, , when not possible should have textual fallback. that is, when html contains image, "alternative" part should show "img ... should here". the problem see everything , alternative, in gmail. is there wrong mime message? here's content: content-type: multipart/mixed; boundary="===============9061258228856181354==" mime-version: 1.0 from: me@gmail.com <me@gmail.com> to: me@gmail.com --===============9061258228856181354== content-type: multipart/alternative; boundary="===============2889524977048828163==" mime-version: 1.0 --===============2889524977048828163== content-type: text/plain; charset="us-ascii" mime-version: 1.0 content-transfer-encoding: 7bit img 1043833786270341319 should here --===============2889524977048828163==-- --===============9061258228856181354== content-type: image/jpeg; name="sky.jpg" mime-version: 1.0 conte