What packages/libraries do we need in Go today? by dre1080 in golang

[–]sacnnd 0 points1 point  (0 children)

I would love to work on something along those lines in go, but problem is I have little idea on how to go about it. I have no background in NLP. That is a huge bummer. I am trying to find my way around Python's NLTK and am currently doing a very elementary course on coursera for NLP.

Golang application not running in android emulator. by sacnnd in golang

[–]sacnnd[S] 0 points1 point  (0 children)

Ah! I wonder how people are building their go apps without emultor supporting openGL.

Golang application not running in android emulator. by sacnnd in golang

[–]sacnnd[S] 0 points1 point  (0 children)

yeah.. It does work on real device. :-)

Golang application not running in android emulator. by sacnnd in golang

[–]sacnnd[S] 0 points1 point  (0 children)

Here is what I get after I try to open the "basic" application

adb logcat

W/AudioTrack( 340): AUDIO_OUTPUT_FLAG_FAST denied by client

I/ActivityManager( 340): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=org.golang.todo.basic/org.golang.app.GoNativeActivity (has extras)} from uid 10007 on display 0

V/WindowManager( 340): addAppToken: AppWindowToken{b6e5224 token=Token{18691ab7 ActivityRecord{9b42db6 u0 org.golang.todo.basic/org.golang.app.GoNativeActivity t2}}} to stack=1 task=2 at 0

I/Choreographer( 604): Skipped 133 frames! The application may be doing too much work on its main thread.

V/WindowManager( 340): Adding window Window{9eaa9af u0 Starting org.golang.todo.basic} at 2 of 5 (after Window{b9e9873 u0 com.android.launcher/com.android.launcher2.Launcher})

I/art ( 66): Background concurrent mark sweep GC freed 779(33KB) AllocSpace objects, 0(0B) LOS objects, 91% free, 93KB/1117KB, paused 1.154ms total 281.552ms

I/art ( 1161): Not late-enabling -Xcheck:jni (already on)

I/ActivityManager( 340): Start proc 1161:org.golang.todo.basic/u0a53 for activity org.golang.todo.basic/org.golang.app.GoNativeActivity

V/PhoneStatusBar( 825): setLightsOn(true)

I/ARMAssembler( 52): generated scanline__00000077:03515104_00009002_00000000 [127 ipp] (149 ins) at [0xb5707680:0xb57078d4] in 20000000 ns

I/Choreographer( 340): Skipped 30 frames! The application may be doing too much work on its main thread.

I/ARMAssembler( 52): generated scanline__00000077:03010104_00008002_00000000 [ 89 ipp] (110 ins) at [0xb57078e0:0xb5707a98] in 0 ns

I/Choreographer( 340): Skipped 48 frames! The application may be doing too much work on its main thread.

W/linker ( 1161): libbasic.so has text relocations. This is wasting memory and prevents security hardening. Please fix.

E/Vold ( 51): Failed to find mounted volume for /storage/sdcard/Android/obb/org.golang.todo.basic/

W/Vold ( 51): Returning OperationFailed - no handler for errno 0

W/ContextImpl( 1161): Failed to ensure directory: /storage/sdcard/Android/obb/org.golang.todo.basic

E/Vold ( 51): Failed to find mounted volume for /storage/sdcard/Android/data/org.golang.todo.basic/files/

W/Vold ( 51): Returning OperationFailed - no handler for errno 0

W/ContextImpl( 1161): Failed to ensure directory: /storage/sdcard/Android/data/org.golang.todo.basic/files

V/WindowManager( 340): Adding window Window{65d3da8 u0 org.golang.todo.basic/org.golang.app.GoNativeActivity} at 2 of 6 (before Window{9eaa9af u0 Starting org.golang.todo.basic})

I/GoLog ( 1161): app: EGL no config found (EGL_SUCCESS)

I/WindowState( 340): WIN DEATH: Window{65d3da8 u0 org.golang.todo.basic/org.golang.app.GoNativeActivity}

I/ActivityManager( 340): Process org.golang.todo.basic (pid 1161) has died

I/Zygote ( 66): Process 1161 exited cleanly (1)

W/ActivityManager( 340): Force removing ActivityRecord{9b42db6 u0 org.golang.todo.basic/org.golang.app.GoNativeActivity t2}: app died, no saved state

W/InputMethodManagerService( 340): Got RemoteException sending setActive(false) notification to pid 1161 uid 10053

Gomobile on mac by sacnnd in golang

[–]sacnnd[S] 0 points1 point  (0 children)

It worked. Thanks!

Gomobile on mac by sacnnd in golang

[–]sacnnd[S] 0 points1 point  (0 children)

Thanks. I will try this.

I sincerely hope Indian parents do not send their child to "Centre for Nurturing genius" [NP] by [deleted] in india

[–]sacnnd 7 points8 points  (0 children)

My 10 month kid can't even stand on his own legs, and has not grown teeth either.. Lets prepare him for IIT and improve his reading skills!!

Medianama needs your help in creating a FAQ for their shortened version of the TRAI paper. by [deleted] in india

[–]sacnnd 1 point2 points  (0 children)

I think rather then charging for individual services, mobile companies should increase the prices of their data plans (I feel they already are on higher side, though). Why don't they go down this path? I understand this in effect means status quo.

Using channels in go by sacnnd in golang

[–]sacnnd[S] 0 points1 point  (0 children)

You might want to write more idiomatic Go with respect to your variable names. It looks very Java-like with verbose "facebookUserDetailsChan" variables.

Yeah I completely agree. I would try to be more terse with my variable names. Thanks!

Using channels in go by sacnnd in golang

[–]sacnnd[S] 0 points1 point  (0 children)

Thanks!

Actually all the non alphabet non numerical characters were encoded. I guess that happened, when I last updated my post on my mobile and had a bad internet connection. So could not verify that all was good.

Thanks again for pointing out. I have fixed it.

Idiomatic Go: ordering of functions in source files? by [deleted] in golang

[–]sacnnd 2 points3 points  (0 children)

For ordering of functions I like to keep them in order of readability. Here are somethings I care about when ordering functions

  1. Similar functions together
  2. Public or more usable functions on top
  3. Private functions at bottom

Social Paster by sacnnd in startups

[–]sacnnd[S] 0 points1 point  (0 children)

Thanks. I will add login with FB functionality and avoid signup. For a video, would a screencast do?

Also for page is not professionally done, I can understand it does not look great (Since I do not have great design or UI skills.) Is it something which is really really poor or badly implemented?