Questions

How to get Android crash logs?

I have an app that is not in the market place (signed with a debug certificate), but would like to get crash log data, whenever my application crashes. Where can I find a log of why my app crashed?

4 Sep at 18:19

Calculate size of Object in Java

I want to record how much memory (in bytes, hopefully) an object takes up for a project (I'm comparing sizes of data structures) and it seems like there is no method to do this in Java. Supposedly, C/...

Instagram how to get my user id from username?

I'm in the process of embedding my image feed in my website using JSON, the URL needs my user id so I can retrieve this feed. So, where can I find/get my user id?

22 Jul at 18:44

Print PDF directly from JavaScript

I am building a list of PDFs in HTML. In the list I'd like to include a download link and a print button/link. Is there some way to directly open the Print dialog for the PDF without the user seeing t...

26 Apr at 15:0

Sublime Text 2 - Show file navigation in sidebar

I just switched to Sublime Text as my new editor. If I open the sidebar it shows the opening file, but what I want is a file navigation sidebar, is it possible to change that without downloading plugi...

2 Apr at 19:4

How do I apply a style to all children of an element

I have an element with `class='myTestClass'`. How do I apply a css style to all children of this elements? I only want to apply the style to the elements children. Not its grand children. I could use...

17 Oct at 23:58

Oracle SQL : timestamps in where clause

I need to look up rows within a particular time frame. ``` select * from TableA where startdate >= '12-01-2012 21:24:00' and startdate <= '12-01-2012 21:25:33' ``` I.e.: I need to look up rows...

13 May at 13:31

How to check the installed version of React-Native

I'm going to upgrade react-native but before I do, I need to know which version I'm upgrading from to see if there are any special notes about upgrading from my version. How do I find the version of...

21 May at 13:27

How to convert integer timestamp into a datetime

I have a data file containing timestamps like "1331856000000". Unfortunately, I don't have a lot of documentation for the format, so I'm not sure how the timestamp is formatted. I've tried Python's st...

7 Jun at 21:40

Sending emails with Javascript

This is a little confusing to explain, so bear with me here... I want to set up a system where a user can send templated emails via my website, except it's not actually sent using my server - it inst...

7 Nov at 03:44

View's getWidth() and getHeight() returns 0

I am creating all of the elements in my android project dynamically. I am trying to get the width and height of a button so that I can rotate that button around. I am just trying to learn how to work ...

8 Dec at 14:1

How do I convert a decimal to an int in C#?

How do I convert a decimal to an int?

23 Oct at 23:56

How to skip the headers when processing a csv file using Python?

I am using below referred code to edit a csv using Python. Functions called in the code form upper part of the code. Problem: I want the below referred code to start editing the csv from 2nd row, I ...

9 Sep at 15:30

How can I change property names when serializing with Json.net?

I have some data in a C# DataSet object. I can serialize it right now using a Json.net converter like this ``` DataSet data = new DataSet(); // do some work here to populate 'data' string output = Js...

22 Jun at 12:8

Jquery get form field value

I am using a jquery template to dynamically generate multiple elements on the same page. Each element looks like this ``` <div id ="DynamicValueAssignedHere"> <div class="something">Hello world</...

25 May at 19:43

SQLite in Android How to update a specific row

I've been trying to update a specific row for a while now, and it seems that there are two ways to do this. From what I've read and tried, you can just use the: `execSQL(String sql)` method or the:...

21 Mar at 04:20

Fastest way to remove first char in a String

Say we have the following string ``` string data= "/temp string"; ``` If we want to remove the first character `/` we can do by a lot of ways such as : ``` data.Remove(0,1); data.TrimStart('/'); ...

9 Aug at 08:31

MySQL Insert into multiple tables? (Database normalization?)

I tried searching a way to `insert` information in multiple tables in the same query, but found out it's impossible? So I want to `insert` it by simply using multiple queries i.e; ``` INSERT INTO use...

10 Feb at 09:36

What is the use of GO in SQL Server Management Studio & Transact SQL?

SQL Server Management Studio always inserts a GO command when I create a query using the right click "Script As" menu. Why? What does GO actually do?

4 Apr at 15:13

How to turn a string formula into a "real" formula?

I have `0,4*A1` in a cell (as a string). How can convert this "string formula" into a real formula and calculate its value, in another cell?

How to set tbody height with overflow scroll

I am facing problem while setting tbody height width overflow scroll. ``` <style> tbody{ height:50px;display:block;overflow:scroll } </style> <h3>Table B</h3> <table...

2 Jun at 07:35

CSS background-image - What is the correct usage?

What is the correct usage of the CSS background-image property? The key things I am trying to understand is 1. Does it need to be in quotes i.e.: background-image: url('images/slides/background.jpg'...

29 Sep at 23:23

Display filename before matching line

How can I get `grep` to display the filename before the matching lines in its output?

8 Apr at 21:48

Format output string, right alignment

I am processing a text file containing coordinates x, y, z ``` 1 128 1298039 123388 0 2 .... ``` every line is delimited into 3 items using ``` words = line.split() ``` After...

20 Apr at 00:52

Getting a slice of keys from a map

Is there any simpler/nicer way of getting a slice of keys from a map in Go? Currently I am iterating over the map and copying the keys to a slice: ``` i := 0 keys := make([]int, len(mymap)) for k :=...

12 Jul at 05:41