Virtualbox blue screen of death error code 0x0000003b

February 12th, 2017 No comments

If you get a blue screen of death when using Virtual box its because hyperV and virtual box don’t player well together. You can disable hardware acceleration on vbox or do the following in windows:

bcdedit /set hypervisorlaunchtype off

This is going to break hyper v stuff.

I found this info on this guys site:
http://stuartjames.info/Journal/visual-studio-2013-breaks-virtualbox-due-to-hyper-v-conflict.aspx

Categories: Uncategorized Tags:

Chromium Bluetooth Error

January 28th, 2016 No comments

FAILED: ninja -t msvc -e environment.x86 — “C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\cl.exe” /nologo /showIncludes /FC @obj\device\ bluetooth\device_bluetooth.bluetooth_init_win.obj.rsp /c ..\..\device\bluetooth\bluetooth_init_win.cc /Foobj\device\bluetooth\device_bluetooth.bluetooth_init_win.obj /Fdobj\device\bluetooth\device_bluetooth.cc.pdb
c:\chrome\src\device\bluetooth\bluetooth_init_win.cc(34) : error C3861: ‘__HrLoadAllImportsForDll’: identifier not found

If you get the following error do this:

bool HasBluetoothStack() {
static enum {
HBS_UNKNOWN,
HBS_YES,
HBS_NO,
} has_bluetooth_stack = HBS_UNKNOWN;
/*
if (has_bluetooth_stack == HBS_UNKNOWN) {
base::ThreadRestrictions::AssertIOAllowed();
HRESULT hr = E_FAIL;
__try {
hr = __HrLoadAllImportsForDll("bthprops.cpl");
} __except(FilterVisualCPPExceptions(::GetExceptionCode())) {
hr = E_FAIL;
}
has_bluetooth_stack = SUCCEEDED(hr) ? HBS_YES : HBS_NO;
}*/
has_bluetooth_stack = HBS_NO;

return has_bluetooth_stack == HBS_YES;
}

} // namespace bluetooth_init_win
} // namespace device

Categories: Uncategorized Tags:

Chromium Compiler Errors

January 27th, 2016 No comments

If you are compiling with VS2013 you might run into this error:

FAILED: C:\…\python.exe gyp-win-tool action-wrapper environment.x86 copy_compiler_dll_target_copy_dll_a30e198148542d4bce19a5c818c6884f..rsp ..\..\third_party\angle\src

To fix this copy

Copy: C:\Program Files (x86)\Windows Kits\8.1\Redist\D3D
to
C:\Program Files (x86)\Windows Kits\10\redist

Categories: Uncategorized Tags:

How to add search engines to chromium code

January 10th, 2016 No comments

modify

./components/search_engines/prepopulated_engines.json

add the engine you want

This file is used to generate a struct.

modify this to include it as a default for a specific country.
./components/search_engines/template_url_prepopulate_data.cc

Categories: Uncategorized Tags:

Lenovo Y40 Keyboard and Mouse not working? or Blank Video?

March 15th, 2015 No comments

If After installing your windows update your Keyboard and mouse  stop working do the following:

Read more…

Categories: Uncategorized Tags:

Dump any SQL table in PHP

March 13th, 2015 No comments
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
</head>
<body>
<?php
$servername = "";
$username = "";
$password = "";
$dbname = "";
$class = "";
 
$sql_command = "SELECT * FROM `users`";
 
function dumpSqlTable($servername,$username, $password,$dbname, $sql_command, $class ) {
 
$conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
$cmd = $conn->prepare($sql_command);
$cmd->execute();
$res = $cmd->fetchAll();
 
$keys = array_keys($res[0]);
$col_count = count($keys);
$num_col = $len / 2;
 
echo "<table class=\"$class\">";
echo "<tr>";
$keys = array_keys($res[0]);
 
// Print out the column names
for ($i = 0; $i < $col_count; $i+=2) {
  echo "<th>";
  echo $keys[$i];
  echo "</th>";
}
echo "</tr>";
 
$row_count = count($res);
 
//Print out the rows
for ($i = 0; $i < $row_count; $i++) {
  echo "<tr>";
  for ($j = 0; $j < $col_count; $j++) {
    echo "<td>";
    echo $res[$i][$j];
    echo "</td>"; 
  }
  echo "</tr>";
}
echo "</table";
}
 
dumpSqlTable($servername, $username, $password, $dbname, $sql_command, $class);
 
?>
</body>
</html>
Categories: Uncategorized Tags:

Convert two 16bit values to float in excel

July 21st, 2014 No comments

If you are ever trying to convert two modbus 16-bit words to a float in excel here is the code to do it.

Read more…

Categories: Uncategorized Tags:

Turn google voice sms to csv file

July 15th, 2014 1 comment

 

Go to:

https://www.google.com/settings/takeout

Then click create Create Archive

 

Read more…

Categories: Uncategorized Tags:

Most Popular Amazon questions

May 27th, 2014 1 comment

Based on my algorithm here are the 20 most popular questions that were asked during Amazon interviews:

Why Amazon?  
Linked list  
System design questions.  
Tell me about a time you failed.  
Why do you want to work for Amazon?  
What questions do you have for me?  
Design Question  
A lot of questions like “tell me about a time you ….”  
The excel exercise was specially tough for me. It is NOT related to finance.  
Describe a binary tree ?  
What do you do when people say no to you  
on data structures  
Search Tree  
The design problem  
Tell me about a time you used data.  
Tell me a time when you had to design a system?  
find common ancestor in binary tree(Not binary search tree)  
“Tell me about yourself”  
Write a code to find out if a tree is a binary search tree.  
Binary tree traversal  

Yes they do seem kind of generic, but I guess that is the case with many things.

Categories: Uncategorized Tags:

An updated list of Amazon questions

May 19th, 2014 No comments

Since it seems like this is the most popular page on my blog I figure I would update it. The number of questions on glassdoor exploded. 3000+
questions. I guess Amazon keeps hiring and firing?
Read more…

Categories: Uncategorized Tags: