Skip to content

Instantly share code, notes, and snippets.

Avatar

Adi Prasetyo brutalcrozt

View GitHub Profile
View stuck on old device
04-06 16:05:27.425 4924-4924/com.example.tas_pam E/art: Throwing OutOfMemoryError "Failed to allocate a 207360012 byte allocation with 12852714 free bytes and 109MB until OOM"
04-06 16:05:27.434 4924-4924/com.example.tas_pam E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.tas_pam, PID: 4924
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.tas_pam/com.example.tas_pam.MainActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class androidx.drawerlayout.widget.DrawerLayout
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2462)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2524)
at android.app.ActivityThread.access$800(ActivityThread.java:167)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1419)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:194)
@brutalcrozt
brutalcrozt / netbeans-exit-error.md
Created Mar 29, 2020
Dec 11 2018, by any mean, netbeans10
View netbeans-exit-error.md

can run properly again by deleting .netbeans and .cache/netbeans isntead of reinstall

but leaving this error from sh &&& SAX error: [1:10] null / null / org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 10; cvc-elt.1: Cannot find the declaration of element 'web-app'.

@brutalcrozt
brutalcrozt / defined_problem.md
Last active Sep 17, 2016
Problem when trying to test a page
View defined_problem.md
  1. I have to edit web page to used Open Graph Protocol, So our senate website can be optimized when sharing in social media.

  2. I need to test it, and it in DOM structures. And it should be automated, inspired by Vojta Jina. It really tedious manually test the page, change 2 line code then save then reload browser.

  3. I won't change the html to include the test framework, it will be a nightmare if i forgot to remove it.

@brutalcrozt
brutalcrozt / gruntfile.js
Created Mar 9, 2016
run grunt from different directory for building submodule
View gruntfile.js
module.exports = function(grunt) {
'use strict';
var parent_module = '../../node_modules/';
grunt.loadTasks(parent_module + 'grunt-contrib-watch/tasks');
grunt.loadTasks(parent_module+'grunt-contrib-concat/tasks');
grunt.loadTasks(parent_module+'grunt-contrib-uglify/tasks');
grunt.initConfig({
pkg: grunt.file.readJSON('../../package.json'),
concat: {
View angular-formly-cheatsheet.md

Formly Cheatsheet

Services

formlyConfig

Usage .factory(function(formlyConfig){formlyConfig.<property name>...})

Property name Type Default Description
You can’t perform that action at this time.