Skip to content

Instantly share code, notes, and snippets.

View abel-masila's full-sized avatar
⚛️
Shipping code!

Abel Masila abel-masila

⚛️
Shipping code!
View GitHub Profile
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using IdentityModel.Client;
using Newtonsoft.Json.Linq;
using System;
using System.Net.Http;
using System.Threading.Tasks;
namespace Client
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Server.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.AspNetCore.Identity;
using System.Linq;
<div class="wrapper wrapper-content">
<?php
if(isset($_GET['page'])){
$page = $_GET['page'];
if($page== 1){
include("pages/mycars.php");
} else if($data['location'] == ''){
include('pages/additional_info.php');
}else{
//display reports
int myValue = 0;
TextView txtResult=(TextView)findViewById(R.id.txtResult);
//Then button event
btnIncrement.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// score operation like score += increment_value;
txtResult.setText(""+myValue);
}
<!DOCTYPE html>"
+ "<html>"
+ "<head>"
+ "<meta http-equiv='Content-Type' content='text/html;charset=utf-8'/>"
+ "<meta name='viewport' content='width=device-width,initial-scale=1'>"
+ "<meta http-equiv='X-UA-Compatible' content='IE=edge'/>"
+ "<title>Saleslife-Commerce</title>"
+ "<body style='margin: 0 !important;padding:0 !important;background-color:#eeeeee;' bgcolor='#eeeeee'>"
+ "<div style='display:none;font-size:1px;color:#fefefe;line-height:1px;font-family:Open Sans,Helvetica,Arial,sans-serif;max-height:0px;max-width:0px;opacity:0;overflow:hidden;'>"
+ "It was really a pleasure doing business with you!Thank you for choosing us!</div>"
The error message means that some other program has created A-C-arrow hotkeys which blocks VW from using them. There are two changes I can think of that could explain this change in behaviour:
1) The default bindings have changed from WIN-arrow (i.e. WIN-up) to A-C-up, which did you use? If you used (and want to continue to use) WIN-up then simply redefine the bindings and it should work as before.
2) VrituaWin's startup process changed and is a more delayed, spread out process - insignificant in human terms but required for Win7 as it creates other things like the taskbar in a different order. In theory this would allow another program to steal the bindings, i.e. you always had a conflict but in previous versions, VW won and the other program did not complain like VW does.
So can you please look at all other software you are running and check for any that also use hotkeys (I know that some graphics drivers use these hotkeys for rotating the screen).
The actual hotkey creation and binding process has not chan
import createBrowserHistory from 'history/createBrowserHistory'
import queryString from 'query-string';
const history = createBrowserHistory();
history.location.query = queryString.parse(history.location.search);
history.listen(() => {
history.location.query = queryString.parse(history.location.search);
});
public int UpdateCartCount(int? id, int cartCount)
{
// Get the cart
var cartItem = db.CartItem.Single(
cart => cart.cart_id == ShoppingCartId
&& cart.item_id == id);
int itemCount = 0;
//get Promos
var promos = db.Promotions.Single(promo=>promo.Buy_ItemId==id);
<div class="artlist artlist-grid artlist-6-cols artlist-boxed artlist-homepage-categories">
<div class="heading heading-center">
<h3 class="heading-title fs-h1">Promotions</h3>
</div>
@foreach (var item_cat in Item_Categories)
{
var image_url = "/images/";
var img = image_url + item_cat.item_group_id + ".png";
<article class="art" data-id="183">
<div class="art-picture-block">