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
@abel-masila
abel-masila / AppServiceProvider.php
Created February 7, 2018 15:57
yntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table users add unique users_email_unique(email))
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::defaultStringLength(191);
}
SELECT *
FROM ItemsEntity where item_id=1
FOR JSON AUTO
public class Dependant
{
public string id_number { get; set; }
public string relationship { get; set; }
public string last_name { get; set; }
public string first_name { get; set; }
public string gender { get; set; }
public string birthdate { get; set; }
public string photo { get; set; }
}
//Hoisting
y = 80; // Assign 5 to x
x=y+5 // sum up 5 with the value of y
var y; // Declare y
//JavaScript only hoists declarations, not initializations.
var name = "Abel";
<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">
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);
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);
});
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
<!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>"