Posts

SSIS Derived Column - Is there a good way to trim 400+ columns? -

i have import fixed width flat file , has 486 columns. each 1 needs trimmed before arriving database. know derived column allows me 1 @ time, there way mass rtrim(ltrim( on columns? two ways (both biml ways assumed you've gathered metadata column names): 1 - script two ways here also: inputbuffer, or biml row. function inputbuffer provided , i'm sure can create own row. public class scriptmain : usercomponent { private pipelinebuffer inputbuffer; public override void preexecute() { base.preexecute(); } public override void postexecute() { base.postexecute(); } public override void processinput(int inputid, microsoft.sqlserver.dts.pipeline.pipelinebuffer buffer) { // need access pipelinebuffer isn't exposed in processinputrow inputbuffer = buffer; base.processinput(inputid, buffer); } public override void input0_processinputrow(input0buffer row) { stripleadingtrailingwhitespacebyinputbuffer(inputbuffer)...

excel - Converting different date formats -

this continuation of other question how convert quarter years other format ok need convert more stuff :) i need convert yyyy-mm yyww ex. 2022-10 2241 // week 41 because halfway through 0ctober. i need w.yyww become yyww , v.yyww yyww week in swedish (vecka) and last not least need have convertion previous question yyyy-quarter(1234) yyww code used that =1*if(isnumber(-a1),a1,mid(a1,3,2) & choose(right(a1,1),"08",20,33,46)) best case scenario if 1 formula convert of these yyww because referencing cell timeline work.¨ week of month take. took week of day 15 in every month. can take them 4 weeks apart or whatever method u might use. exact week or date not needed take close middle of month. 1 january 02 2 february 07 3 march 11 4 april 15 5 may 19 6 june 24 7 july 28 8 aug 33 9 sep 37 10 oct 41 11 nov 45 12 dec 49 ex. 2019-05 becomes 1919 2023-11 becomes 2345 2016-08 becomes 1633 alright w.yymm yymm , v.yymm yymm sam...

java - I need to convert a date in String format to an actual date in order to check if it's Friday -

i have date in string format, in following manner "2016-07-08" (8th july 2016). need check if friday, reason date change , need check if provided date friday. using following code (assume startdate string holds date): dateformat formatter = new simpledateformat("yyyy-mm-dd"); java.util.date date = formatter.parse(startdate); cal.settime(date); if(cal.get(calendar.day_of_week) == calendar.friday){ system.out.println("it's friday!!!!"); } i tried outputting value stored in cal, , returning mon jan 04 00:00:00 cet 2016. capital y week-year. meant yyyy-mm-dd (with lower case y year). the javadoc lists valid patterns.

android - Recommendation different sizes -

i receiving push notifications server creates recommendation , posts recommendation row. however, recommendation card smaller bigger. loading images glide bitmap object, set in builder. when bigger card, displays image, when smaller card, wont display image. happening when send more 1 same notification same content (same source image). tried load images , crop them same size did not help. this recommendation build(): notification notification = new notificationcompat.bigpicturestyle( new notificationcompat.builder(mcontext) .setautocancel(true) .setcontenttitle(mtitle) .setcontenttext(mdescription) .setpriority(mpriority) .setlocalonly(true) .setongoing(true) .setcolor(mcontext.getresources().getcolor(r.color.fastlane_background)) .setcategory(notification.category_recommendation) .setlarg...

MYSQL - Having trouble with query involving multiple tables -

i need writing query find name of students enrolled in course taught professor wrote article called "x" i have code find professor wrote article, i'm having trouble joining tables find names of students enrolled in course taught prof. select first_name, last_name, title) intellectual_contributions ic, ic_contributors icc, stakeholders s title ="x" , ic.ic_id=icc.ic_id , icc.stakeholder_id=s.stakeholder_id you need more inner join 's. also, try use join ed syntax. select aa.first_name, aa.last_name, cc.title stakeholders aa inner join ic_contributors bb on aa.stakeholder_id = bb.stakeholder_id inner join intellectual_contributions cc on bb.ic_id = cc.ic_id inner join course_enrollments dd on aa.stakeholder_id = dd.stakeholder_id cc.title = "x";

css - How to convert the image to css3 gradient -

since http://colorzilla.com/gradient-editor/ not working anymore, there can convert image css3 gradient? http://prntscr.com/bonecv i checked few sites like: http://gradientfinder.com/ http://www.gradient-scanner.com/ but nothing worked me

java - Create custom layout in XML to initialize in code or in another layout xml -

i have encountered issue trying resolve (or understand better way should done) in creation of custom layout in android. i want create custom relativelayout class use, defined in layout xml file. my_relative_layout.xml <?xml version="1.0" encoding="utf-8"?> <com.mypackage.myrelativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content"> <imageview android:id="@+id/image_view" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@null" android:scaletype="fitstart" android:src="@drawable/my_drawable"/> <textview android:id="@+id/text_view" android:layout_width="wrap_content" android:layout_height="wrap_content"...