Posts

salesforce - Is It possible to use Lightning app exchange components in custom lightning app? -

i installed lightning component app exchange ,now want use component in custom lightning app is possible?? <aura:app> //code adding components </aura:app> if working components: <aura:component > <aura:handler name="init" value="{!this}" action="{!c.doinit}"/> {!v.body} </aura:component> and in controller ("mvc:calendarcomponent" example, put here component): doinit : function(component, event, helper) { $a.createcomponent( "mvc:calendarcomponent", { }, function(newcmp){ if (component.isvalid()) { component.set("v.body", newcmp); } } ); }

smartface.io - Smartface 4.5 ios app startup message with individual license -

i have purchased individual license still appears ios app startup message "developer information" "this application created smartface community edition......" there no problem android. how eliminate ios app also? problem due using existing licenses community. have created new app license , problem solved!

debugging - GDB find command error "warning: Unable to access x bytes of target memory at y, halting search" -

i'm trying find current flag count in kmines using gdb. know should memory mappings first avoid non-existent memory locations. ran info proc mappings command see memory segments. picked random memory gap ( 0xd27000-0x168b000 ) result , executed find command this: find 0x00d27000, 0x0168b000, 10 but got warning: unable access 1458 bytes of target memory @ 0x168aa4f, halting search. error. although address 0x168aa4f between 0xd27000 , 0x168b000, gdb says can't access it. why happen? can avoid situation? or there way ignore unmapped/unaccessible memory locations? edit: tried set value of address 0x168aa4f 1 , works, gdb can access address gives error when used find command. why? i guess have solved own problem, can't believe how simple solution was. thing did decrease 2nd parameter's value one. code should find 0x00d27000, 0x0168afff, 10 because linux allocates memory using maps in [x,y) format, if line in root/proc/pid/maps says this; 01a03000-0222a...

Android Custom TabLayout: Icon overlays content -

Image
i'm looking custom tablayout . icon of tab in middle needs margin overlay content. please check out image below. what i've tried far tab.setcustomview() margin. doesn't overlay content though. looked tablayout libraries give such flexibility. didn't find fits need. re-invent wheel? since don't need complicated scrolling functionality, develop own tablayout couple viewgroups , textview , imageview . before have that: do know of library that? how approach it? any appreciated!

VBA, Excel, use Range to fill 2D-Array -

Image
this question has answer here: why having issues assigning range array of variants 3 answers i not understand behaviour: sub tues() dim a() variant = range("a1:a10") ' works dim b() variant b = activesheet.range("a1:a10") ' type mismatch end sub the first version works 2nd version not. why? difference? the way go adding ".value" @ end of range. idea make things explicit (the reason can omit because value default property range object) i added values watches see going on , apparently there problem of excel not been able ( , implicitly ) cast object on fly. note in picture how expression failing "activesheet.range("a1:a10") of type: variant/object/range; transition variant object causing issue. a way force cast correctly split process in 2 parts first 1 casts range , second 1 casts...

sql server - Read XML Schema and Data in .NET -

i'm using sql server , vb.net. in sql i'm using following: select top 1 * tablename 1=0 xml auto, type, xmlschema to schema tablename. use select * tablename id=1 xml, auto, type, elements xsinil, root('xml') to data row i'm interested. if use following code in vb: private ds new dataset ds.readxmlschema("xmlschema.txt") i end ds containing 1 table correctly defined set of columns if try: ds.readxml("xmldata.txt") the code succeeds, don't have rows in table of dataset. my question is, need in order read xml data created sql server datatable schema specified sql server. you need include xmlschema clause in second (data) query first (schema) query. if don't data output missing namespace , won't conform schema. you need specify target namespace schema qualifying xmlschema directive (e.g. xmlschema('http://tempuri.org') ). if don't sql server generate namespace in each query, , may not m...

Importing an Excel spreadsheet into SQL Server - trouble with data types -

i have imported excel spreadsheet sql server 2014 database , 1 of data types miscalculated. in excel, field date, sql server changed nvarchar. it's odd because there other dates in spreadsheet converted semi-correctly ("date" in excel converted "datetime" in sql). know turning off "prevent saving changes..." check mark doesn't help. plus learned through looking @ questions here on stackoverflow not recommended, don't want it. did try it, though, , still didn't change data type. reason, when try force change data type "nvarchar" "datetime", sql won't it. does have ideas why sql change data type , not let me change back? also, why sql change "date" data type excel "datetime" , not leave "date"? in advance responses.