MSBuild error when specifying PublishProfile for ASP.NET.Core project

Uncategorized
Question: I have an ASP.NET Core 1.1.2 project targeting .NET Framework 4.6.2. I recently installed the latest version of Visual Studio (15.2 26430.16), and now I can't build the project using MSBuild version 15.1.1012.6693. The error occurs when using a PublishProfile. The MSBuild command is: msbuild D:projectproject.csproj /p:DeployOnBuild=true /p:PublishProfile=dist And the error is: C:Program Files (x86)Microsoft Visual Studio2017EnterpriseMSBuildSdksMicrosoft.NET.Sdk.Publishbuildnetstandard1.0TransformTargetsMicrosoft.NET.Sdk.Publish.TransformFiles.targets(54,5): error MSB4062: The "TransformWebConfig" task could not be loaded from the assembly C:Program Files (x86)Microsoft Visual Studio2017EnterpriseMSBuildSdksMicrosoft.NET.Sdk.Publishbuildnetstandard1.0....toolsnet46\Microsoft.NET.Sdk.Publish.Tasks.dll. Could not load file or assembly 'file:///C:Program Files (x86)Microsoft Visual Studio2017EnterpriseMSBuildSdksMicrosoft.NET.Sdk.Publishtoolsnet46Microsoft.NET.Sdk.Publish.Tasks.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [D:projectproject.csproj]…
Read More

Payment service that works in CANADA [on hold]

Uncategorized
Question: everyone! we are a starting company based in Canada, with just Canadian customer base. We need to find a payment platform, so far we tried stripe, ayden, braintree, but none of them offer what we need. (they do, but only in the US and Europe). Basically, it's a 1 to many payment solutions. IDEAL WORKFLOW 1.-Creates a Job offer with the following information: Required Workers, Hours, Hourly Rate, Date and Location 2 .- We apply a 25% fee to the sub-total of the Job. 3.- We charge the employer the total amount and post the job for the workers to apply. 4.- The workers apply to the job and the employer accepts or declines them. 5.- After the employer has chosen the workers they are set to wait until…
Read More

white-space:’nowrap’ in a table cell breaks the table-layout:’auto’: how to fix it?

html
Question: I'm trying to design a music playlist : https://codepen.io/anon/pen/xLYLvd My base element is an HTML table. I use table-layout:auto; For my table because I want cells to fit their content; as I don't always know how long they will be (especially the last two columns of this example, .wpsstm-track-actions and .wpsstm-track-sources, where the number of items will vary). I have 3 columns (the track informations) that I would like to truncate (those are the track artist, title and album cells; which have the .wpsstm-track-info class) because I would like to maintain each row on a single text line. But using white-space: nowrap; on those cells, my design breaks : it seems that table-layout:auto and white-space:nowrap can't be used together (see line #49 of the pen) Any ideas on how…
Read More

How to insert form input field in table?

Uncategorized
Question: I have displayed all the student's name in table format through ajax. Now I want to associate a form input field to each student so that I can insert his marks and store it in database? How can I achieve this? Below is my code.. and my controller :public function test($id=''){ $table='students'; $columns=array('*'); $where=array('c_id'=>$id); $data['rcd']= $this->Crud->get_records($table, $columns, $where)->result(); foreach ($data['rcd'] as $value) { $output = "".$value->Name."90very good"; echo $output; } } This is my table format in which I have showed all the student's names in the first through ajax from database. and I want to make the second as input field to store his marks in database. Name Marks obtained(100) comments Answer: You should put a form on the table/your loop so that every student has a designated…
Read More

Disable radio button based on previous radio selection

javascript
Question: I need to enable radio options based on two previous selected radios, I have already made a question on a pervious topic and I tried unsuccessfully to adapt it to the new need, and I also tried using the answer to this topic, but also unsuccessfully... So here's some more details about what I need: I select one radio from each of two previous radio groups, so at the third group should be available (enabled) to pick only those two which correspond to the previous selection... First group: de, en, es, ca (selected) Second group: de, en (selected), es, ca Third group: de (disabled), en (enabled), es (disabled), ca (enabled) And here is the code I'm using: $(document).ready(function() { $('input[name=lang_or]').click(function() { $('input[name=lang_tg]').prop('disabled', false); $('input[name=lang_tg][value=' + this.value).prop('disabled', 'disabled'); }); });…
Read More

Two recyclerview when i scroll down , the first recylcer to be scrolled too, how?

Uncategorized
Question: I want to have 2 grid images one vertical and second horizontal(recyclerview1 and recyclerview2), the first I want it to be always top and to be scrolled right and left, however when I scroll the second grid view , I want the first to be scrolled too as they are in one scroller example: when I scroll down in the second recyclerview (recyclerview2) , i want the first recycler to be scrolled too. How to do that ? result: this is my code: Main activity code:protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); // initToolbars(); recyclerView = (RecyclerView) findViewById(R.id.recyclerview1); recylerViewLayoutManager = new LinearLayoutManager(context,LinearLayoutManager.HORIZONTAL,false); recyclerView.setLayoutManager(recylerViewLayoutManager); recyclerViewAdapter = new RecyclerViewAdapter(MainActivity.this, subjects,images); recyclerView.setAdapter(recyclerViewAdapter); MainGridRecView = (RecyclerView) findViewById(R.id.maingridrc); MainGridRecViewLayoutManager = new GridLayoutManager(context,2); MainGridRecView.setLayoutManager(MainGridRecViewLayoutManager); MainGridRecViewAdapter = new MainGridRecyclerViewAdapter(MainActivity.this, subjects,images);…
Read More

Phone Authentication firebase in Ionic v3 with cordova-plugin-firebase

Uncategorized
Question: I am trying to implement login in my ionic v3 application by the firebase phone authentication service. I've read several tutorials. Between them: 1- https://javebratt.com/firebase-phone-authentication/ 2- https://github.com/jestcastro/cordova-plugin-firebase#f778505942bbf7518df75545c6a6b32efa4d5229 - The comments in link 1 teach how to use the cordova-plugin-firebase of link 2. I tried to do the documentation. I did everything exactly the same, as it is said in the links. Yet, When I use the function ( window).FirebasePlugin.getVerificationID, from link 2, gives the error: ERROR TypeError: Can not read property 'getVerificationID' of undefined I did exactly the same. And I've been trying to solve this problem for a few days. Does anyone have a solution? Answer: Read more
Read More

Swift variable is nil half the time

Uncategorized
Question: I'd like to update filterX in accordance to the accelerometer updates, but the variable is nil half of the time when I build. At first I thought that it was a scope issue with self, but realized it would not work the other half the time. My second guess was that it was some kind of a race condition. That didn't make sense either since the code is running synchronously, and that it should correct itself since the parent function is run every 0.1 second. Any help is appreciated. class LocationTrackingService: CLLocationManagerDelegate { static let sharedInstance = LocationTrackingService() private override init() {} var locationManager = CLLocationManager() var motionManager = CMMotionManager() var filterX : KalmanFilter? func startTracking() { locationManager.requestAlwaysAuthorization() if CLLocationManager.locationServicesEnabled() { locationManager.delegate = self locationManager.startUpdatingLocation() motionManager.startAccelerometerUpdates() let location =…
Read More

Can’t read property ‘destination’ of undefined when uploading image using Multer

Uncategorized
Question: I tried to upload an image into certain directory and save destination file to MongoDB. So, i used multer middleware. FYI: i did it on MEAN stack. But, when i tried to upload an image and some data to MongoDB, it was failed. System said can't read property 'destination' of undefined. I've been searching on Google to find out what was wrong in my code. Unfortunately, it didn't succeed. 1. My HTML form Nama Tuliskan Nama Mobil Tahun Keluaran Tuliskan Tahun Keluaran Pabrikan Pilih Pabrikan Gambar Pilih Satu Gambar Dari Komputer Anda Cancel 2) My Schema var mongoose = require("mongoose"), Schema = mongoose.Schema, objectId = mongoose.Schema.ObjectId; var carSchema = new Schema({ _id: { type: objectId, auto: true }, nama: { type: String, required: true }, tahunKeluaran: { type: String,…
Read More