Vote count: 0 I have the following jsfiddle. Notice how when the images scale, they don't stay on the same line. How can I use flexbox to scale the images so that they stay on the same line as the browser resizes. See code below: http://codepen.io/jasmine1233333/pen/NNBVZe CSS: .npwfu-example-shell { overflow: hidden; min-width: 1100px; max-width: 1920px; margin: 0 auto; width: 100%; box-sizing: border-box; backface-visibility: hidden; } .npwfu-example-shell .example-grid { box-sizing: border-box; width: 100%; margin-left: 80px; transition: transform 0.5s; transition-timing-function: cubic-bezier(0, 0, 0.26, 0.89); will-change: transform; text-align: left; min-height: 360px; display: flex; a...
ادامه مطلبVote count: 0 I am trying to lea ionic 2 using type script .could you please tell me how to display hello world text in ionic 2 using typescript ? I am able to display hello world text in angular 2.I want to use ionic 2 and display text . here is my code where is used angular 2 http://plnkr.co/edit/xd0TbWO5deHB7xTjXibR?p=preview could you please tell what are library of ionic 2 need to include to display text. here is ionic 2 documentation http://ionicframework.com/docs/v2/getting-started/tutorial/ // Code goes here import {bootstrap} from 'angular2/platform/browser'; import {Component} from 'angular2/core'; @Component({ selector:'app', template:'hello' }) class App{} bootstrap(App) please s...
ادامه مطلبVote count: 0 Working in Visual Studio 2012 to create a SSRS Business Intelligence Services Report. Trying to do something like below where based on the value of one column, subtract the value of another column. =iif(Fields!ACADEMIC_YEAR.Value=Parameters!ACADEMIC_YEAR.Value, Fields!TotalProspects_Dom.Value-iif(Fields!ACADEMIC_YEAR.Value=Parameters!ACADEMIC_YEAR.Value-1,Fields!TotalProspects_Dom.Value, 0),0) Basically my table looks like: Visual Studio Table Screencap essentially the table for the report is two rows, the current academic year and the previous academic year and I have to compare the two. Each row is made of columns representing the data for domestic and inteational data for a ...
ادامه مطلبVote count: 0 In my Android app, I used Gson object in order to save/load the object's Arraylist in SharedPreferences. Follows are my code using Gson. public static ArrayList getModalList(Context ctx) { Gson gson = new Gson(); String json = getSharedPreferences(ctx).getString("ModalList", new Gson().toJson(new ArrayList())); Type type = new TypeToken() {}.getType(); retu gson.fromJson(json, type); } In here "RequestModal" is the simple object include a bit of strings and integers. It works well with the exception of the case "offline". But if inteet is offline, forever works on below code. Type type = new TypeToken>() {}.getType(); How can I solve it? What is the way implement the feature li...
ادامه مطلبVote count: 0 I waa make a system that auto embeds youtube urls into the page. For example when user puts a link of a video from youtube. I waa make an iftame of the video. Any code lines is appreciated. asked 1 min agoJames Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I want to have UUID which identifies a device. I use an android id for this String android_id = Settings.Secure.getString(_appActivity.getContentResolver(), Settings.Secure.ANDROID_ID); The issue is to generate UUID v4 from seed. UUID.nameUUIDFromBytes uses version 3. asked 4 mins agoAlex Tonkonozhenko Let's block ads! بخوانید...
ادامه مطلبVote count: -1 Hi Everyone I am newbie to web development so can you help me to solve below questions Questions to be solved 1) suggest me best UI design to implement in web as above in image. 2) And From the database,I need to display data as above image in html by using any one of the scripting language JavaScript and Jquery. if there any other scripting language that can be used to optimize performance please suggest me with a code Thanks in advance. edited 1 min agojcubic asked 4 mins agoRaj.2498 Let's block ads! بخوانید...
ادامه مطلبVote count: -1 I was working on google maps, where i need to change position of My Location(current location button). Presently current location button was top-right position. so please help me how to re-position the current location button on google maps screen. Thanks in advance... my sample code: final GoogleMap googleMap = mMapView.getMap(); googleMap.setMyLocationEnabled(true); asked 1 min agoRamkoti Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have the following code: class CEvent { public: CEvent(std::string const&) {} }; std::unordered_map m_messageList; CEvent& GetMessageEvent(std::string const& name) { auto it = m_messageList.find(name); if (it != m_messageList.end()) { auto pair = m_messageList.emplace(std::piecewise_construct, std::forward_as_tuple(name), // Copy-construct 'name' as the key std::forward_as_tuple(name)); // Construct CEvent in-place with the name retu pair.first->second; } retu it->second; } (Live Sample) I think the code is pretty clean, but I don't like that I have to do a find separate from emplace. Is there a way to do this better? Or is this "good enough"? I know I could probably call emp...
ادامه مطلبVote count: 0 I want to disable some UI elements (Editview, button, soft keyboard and Android Hardware buttons) using Appium. Do you have any idea how to disable these elements using Appium? Thanks in advance asked 2 mins agoGulcin Hk Let's block ads! بخوانید...
ادامه مطلبVote count: -1 I have data as mentioned below, i need to replace data in string fields to any other data by using UNIX. Actual data: 123,abcd,456,efgh,789 Required data: 123,acbd,456,rfad,789 edited 3 mins ago asked 5 mins agoRupendra Narayan Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Part of the code that I'm trying to understand as a begier java student is below: public class StandardGA extends GeneticAlgorithm { private static final long serialVersionUID = 5043503777821916152L; private final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(StandardGA.class); /** * Constructor * * @param factory a {@link org.evosuite.ga.ChromosomeFactory} object. */ public StandardGA(ChromosomeFactory factory) { super(factory); } /** {@inheritDoc} */ @SuppressWaings("unchecked") @Override protected void evolve() { List newGeneration = new ArrayList(); // Elitism newGeneration.addAll(elitism()); // new_generation.size() < population_size while (!isNextPopulationF...
ادامه مطلبVote count: 0 using xsd.exe to generate c# files with the standar UBL 2.0, getting error and waings I have the files This is the command i'm ruing: E:Invoicemaindoc>xsd.exe /c UBL-Invoice-2.0.xsd UBL-CommonAggregat eComponents-2.0.xsd UBL-CommonBasicComponents-2.0.xsd UnqualifiedDataTypeSchemaModule-2.0.xsd UBL-CommonExtensionComponents-2.0.xsd UBL-QualifiedDatatypes-2.0.xsd These are the errors i'm getting: Microsoft (R) Xml Schemas/DataTypes support utility [Microsoft (R) .NET Framework, Version 4.0.30319.17929] Copyright (C) Microsoft Corporation. All rights reserved. Schema validation waing: Type u:un:unece:uncefact:codelist:specification:54 217:2001:CurrencyCodeContentType' is not decla...
ادامه مطلبVote count: 0 I am using a gulp task to gzip my source files and set into a dist folder. I am able to successfully generate xyz.tar.gz file, but when I try to see the files in it using a 7zip on windows 7, I see a lot of files named "PaxHeader" each of different size. Tried searching on inteet, but results were more of gzip related and unable to understand. Can someone let me know why this is happening? Is it a gzip related issue or a wrong configuration of gulp-gzip? TIA asked 2 mins agovamshi4001 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 The problem lies here: ResponseEntity> result = restTemplate.exchange(uri, HttpMethod.GET, null, new ParameterizedTypeReference>(){}, params); I get my result, it is all good but I have to use @JsonIgnore.. aotation on a Mail class because it caot map attachment list of the Attachment object, it has String fileName, file byte[].. Both models Serializable.. I caot use this aotation as I need attachment list, now it retus null for it. Any suggestion??? asked 38 secs agoBanjić Medina Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Let's say, i have an User and a Product. The user should be able to rate products and a rating can have a lot of properties like for example a number of stars from 1 to 5. I'd like to have the Product and the User in different Maven modules. However, Product should know its Owner, so there is a dependency to the module, holding User. I also would like to have a Rating-Module that contains everything related to ratings. I constructed the Rating @RelationshipEntity(type="RATES") public class Rating{ private Long id; @StartNode private User rater; @EndNode private Product ratee; @Property private RatingProperty property; //Getter/Setter } Where the RatingProperty contains the int ...
ادامه مطلبVote count: 0 I use spring framework, and would like to insert a row to DB in order to have its ID, which is needed for further processing. Inserting query is given below, it's a simple query, without parameters. But it's even worse, cause how to construct working call using executeAndRetuKey from SimpleJdbcInsert? This is an SQL query for insert. But I don't know whether is possible to use it within simpleJdbcInsert instance. insert into sdc_import_run(id_import_run, create_date) values(nextval('seq_import_run'),now()) I tried Number genId = simpleJdbcInsert.withTableName("sdc_import_run") .usingGeneratedKeyColumns("id_import_run") .executeAndRetuKey(new MapSqlParameterSource()); It doesn't...
ادامه مطلبVote count: 0 I have One Tableview and Using custom Cell and in this Cell i have one TextView. The Problem is When i long press on this TextView Then automatically Show canPerformAction I have To Stop this because i have use my custom Popup (Copy and Delete) using longPress Else if This canPerformAction is not stoppable Then i have add Two parameter (Copy and Delete) and This delete function how to Remove Cell . Please Help me Here is my Code ON VIEW CONTROLLER /* override func canBecomeFirstResponder() -> Bool { retu false } */ override func canPerformAction(action: Selector, withSender sender: AnyObject?) -> Bool { // You need to only retu true for the actions you want, otherwise you get t...
ادامه مطلبVote count: 0 I am having serever.js file which contains the below code. I am having another package.json file which have dependencies. I later added underscore dependency to the existing dependency. It's throwing error on require("socket.io")(http) as require(...) is not a function. When I run the file using command node server error is coming after adding dependency. var express = require('express'); var app = express(); var bodyParser = require('body-parser'); var http = require('http').Server(app); var io = require("socket.io")(http); package.json "dependencies": { "express": "~3.4.0", "jade": "*", "socket.io": "0.8.x", "logfmt": "~1.1.2", "nodemailer": "~0.7.0", "mongoose": "^4.2.4", "b...
ادامه مطلبVote count: 0 I have stated my bespoke MV, I have a simple Model + controller classes and I can't get the var in the model to be recognsed when called by a different function The controller class is class StaffController { protected $module = "staff"; public function __construct() { //include the staff Model require_once(MODEL_PATH.$this->module.'.php'); } public function index() { // we store all the posts in a variable $staff = Staff::all(); header('Content-Type: application/json'); echo json_encode($staff); } And $staff = Staff::all(); calls the model class, and its the $list variable that isn't recognized: class Staff { public $list = array(); public function __construct() { $this->list ...
ادامه مطلب