Re: [GitHub] incubator-madlib issue #80: KNN Added

2016-12-17 Thread Wang ChenLiang
Hi NJ,

  Your instructions is great for a beginning developer. Is it possible
to add these or an extended edition including examples and details to
the guide for developers?

Best,
Chenliang Wang

On 12/17/2016 09:32 AM, Nandish Jayaram wrote:
> Hi Auon,
> 
> Hope your exams went well.
> 
> You can do whatever ends up being a better git-learning experience for you.
> Since you just started contributing to MADlib, the easier way to get going
> might be to do what you mentioned. But a better, though a longer way, would
> be to just mess around with branches as a learning experience. For instance
> (be warned, this might not be the best approach and it might sound
> daunting), you can do the following:
> - Create a new local branch (say the branch name is temp-features/knn)
> while on your current master branch (which already has the knn code changes
> in it).
> useful commands: git checkout -b temp-features/knn
> - Go back to your master branch and reset it to the commit SHA before you
> made changes for knn (look at git log command to find the appropriate
> commit SHA).
> useful commands: git log, git reset --hard  (be careful while
> using the --hard flag in general).
> - You essentially want to reach a state where the new branch features/knn
> has the code changes you have made so far for the knn feature, and your
> master branch must be in sync with apache/incubator-madlib's master branch.
> You ideally want your local master to be in sync with your repo master,
> which in turn must be in sync with origin master (apache/incubator-madlib).
> - You might also want to push your master (with --force option) to your
> remote repo, to undo the changes you have made to your repo master branch
> with the previous PR.
> useful commands: git push --force 
> - Now create a new branch off your master (say branch name features/knn).
> Rebase this new branch with the temp-features/knn branch. You will get the
> knn related changes back on this branch now.
> useful commands: git checkout -b features/knn, git rebase temp-features/knn
> - Address the comments on this PR, and then push the features/knn branch to
> your repo and open a new PR on the branch. Read about git rebase (and try
> using it) before pushing the branch.
> useful commands: (on master branch), git pull --ff-only, (on features/knn
> branch) git rebase -i master
> 
> The useful commands I have mentioned might not do the needful for each
> step. They are just pointers for you. There might be a much more simpler
> way to accomplish all this, and I have no idea if this way would actually
> work correctly. :) But you can (almost) always recover from any mistake you
> make on git.
> 
> NJ
> 
> On Fri, Dec 16, 2016 at 2:57 PM, Kazmi,Auon H  wrote:
> 
>> HI NJ,
>>
>> Thanks for your input!
>>
>> Sorry, I was busy with my semester-end exams.
>>
>> I am reading on Git. Should I repeat the process of checking out madlib
>> repo and then again making changes in a local branch?
>>
>>
>>
>> Regards,
>>
>> Auon
>>
>> 
>> From: njayaram2 
>> Sent: Thursday, December 15, 2016 6:24:08 PM
>> To: dev@madlib.incubator.apache.org
>> Subject: [GitHub] incubator-madlib issue #80: KNN Added
>>
>> Github user njayaram2 commented on the issue:
>>
>> https://github.com/apache/incubator-madlib/pull/80
>>
>> This is a great start!
>> I will provide some github-specific feedback here, and more
>> knn-specific
>> comments in the code.
>> Git can be daunting to use at first, but it's great once you get a
>> hang of it.
>> I would recommend you go through the following wonderful book if you
>> have not already done so:
>> https://git-scm.com/book/en/v2
>>
>> When you work on a feature/bug, it is best if you create a branch
>> locally
>> and make all changes for that feature there. You can then push that
>> branch
>> into your github repo and open a pull request. This way you won't mess
>> with
>> your local master branch, which should ideally be in sync with the
>> origin's
>> (apache/incubator-madlib in this case) master branch. More information
>> on
>> how to work with branches can be found in the following chapter:
>> https://git-scm.com/book/en/v2/Git-Branching-Branches-in-a-Nutshell
>> (especially section 3.5)
>>
>> One other minor feedback is to try including the corresponding JIRA id
>> with the commit message. The JIRA associated with this feature is:
>> https://issues.apache.org/jira/browse/MADLIB-927
>>
>>
>> ---
>> If your project is set up for it, you can reply to this email and have your
>> reply appear on GitHub as well. If your project does not have this feature
>> enabled and wishes so, or if the feature is enabled but not working, please
>> contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
>> with INFRA.
>> ---
>>
> 


Re: Spatial model in MADlib (GWR)

2016-09-13 Thread Wang ChenLiang
Hi Rahul

Thanks for your reply. Should I build MADlib and Postgres with
enable-debug and no optimization flags? How can I list source code of
MADlib in GDB ? Sorry for asking such silly questions.

Best,
Chenliang Wang

On 09/14/2016 02:18 AM, Rahul Iyer wrote:
> Hi Chengliang
> 
> There's some information on debugging
> ​in ​
> our old wiki page
> <https://github.com/madlib/madlib/wiki/Building-MADlib-from-Source#debugging>
> ​. There's no example there but the process is simple once you have the
> server process id.
> 
> - Rahul ​
> 
> On Tue, Sep 13, 2016 at 6:41 AM, Wang ChenLiang  wrote:
> 
>> Hi Frank,
>>
>> I was being on a business trip for several months and began to work on
>> MADlib again in the past few days. But I have a trouble with debugging
>> MADlib with GDB. Could you kindly give me a detailed example for
>> debugging MADlib with CodeBlocks or GDB?
>>
>> Many Thanks !
>>
>>
>> On 03/15/2016 12:31 AM, Frank McQuillan wrote:
>>> OK.  Please don't hesitate to ask if you have any questions.
>>>
>>> Frank
>>>
>>> On Mon, Mar 14, 2016 at 4:17 AM, chenliang wang 
>> wrote:
>>>
>>>> Hi, Frank
>>>>
>>>> Recently,I am just looking at the detail of development guide and trying
>>>> to complete the serial algorithm. And I plan to implement GWR dividing
>>>> the loop into pieces of chunks executed in several nodes. However, I am
>>>> not sure if there are some specials details need to be designed for
>>>> distributed models in GPDB because I haven't developed model in MPP
>>>> architecture. I hope this distributed manner would be implemented
>> easily.
>>>>
>>>> Best,
>>>> Chenliang Wang
>>>>
>>>> On 03/10/2016 08:33 AM, Frank McQuillan wrote:
>>>>> Hi ChenLiang Wang,
>>>>>
>>>>> I am checking to see how things are going regarding the GWR model for
>>>>> MADlib that you proposed.  Not sure which phase you are at, but a
>>>> suggested
>>>>> next step might be how you plan to implement the GWR algorithm in a
>>>>> distributed manner.  That is, how will it run in parallel?
>>>>>
>>>>> (Starting as a new thread since the previous thread fragmented.)
>>>>>
>>>>> Regards,
>>>>> Frank
>>>>>
>>>>
>>>
>>
> 


Canceled: meeting

2016-09-13 Thread Wang ChenLiang
BEGIN:VCALENDAR
METHOD:CANCEL
PRODID:Microsoft Exchange Server 2010
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Greenwich Standard Time
BEGIN:STANDARD
DTSTART:16010101T00
TZOFFSETFROM:+
TZOFFSETTO:+
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T00
TZOFFSETFROM:+
TZOFFSETTO:+
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
ORGANIZER;CN=Wang ChenLiang:MAILTO:hi181904...@msn.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=gchase@gma
 il.com:MAILTO:gch...@gmail.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=dev@madlib
 .incubator.apache.org:MAILTO:dev@madlib.incubator.apache.org
DESCRIPTION;LANGUAGE=en-US:\n
UID:04008200E00074C5B7101A82E0087B38708DC90DD201000
 01000605E4F3624C92C4EAE0C11B5EB165AAE
SUMMARY;LANGUAGE=en-US:Canceled: meeting
DTSTART;TZID=Greenwich Standard Time:20160914T01
DTEND;TZID=Greenwich Standard Time:20160914T013000
CLASS:PUBLIC
PRIORITY:1
DTSTAMP:20160913T143914Z
TRANSP:OPAQUE
STATUS:CANCELLED
SEQUENCE:1
LOCATION;LANGUAGE=en-US:
X-MICROSOFT-CDO-APPT-SEQUENCE:1
X-MICROSOFT-CDO-OWNERAPPTID:2114547067
X-MICROSOFT-CDO-BUSYSTATUS:FREE
X-MICROSOFT-CDO-INTENDEDSTATUS:FREE
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:2
X-MICROSOFT-CDO-INSTTYPE:0
X-MICROSOFT-DISALLOW-COUNTER:FALSE
END:VEVENT
END:VCALENDAR


Fw: meeting

2016-09-13 Thread Wang ChenLiang
BEGIN:VCALENDAR
METHOD:REQUEST
PRODID:Microsoft Exchange Server 2010
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Greenwich Standard Time
BEGIN:STANDARD
DTSTART:16010101T00
TZOFFSETFROM:+
TZOFFSETTO:+
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T00
TZOFFSETFROM:+
TZOFFSETTO:+
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
ORGANIZER;CN=Wang ChenLiang:MAILTO:hi181904...@msn.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=dev@madlib
 .incubator.apache.org:MAILTO:dev@madlib.incubator.apache.org
DESCRIPTION;LANGUAGE=en-US:Sorry\, please ignore this. It was my mistaken o
 peration.\n\n\n\n\n  \nFrom: Wang ChenLian
 g \nSent: Tuesday\, September 13\, 2016 22:17\nTo: gc
 h...@gmail.com\; dev@madlib.incubator.apache.org\nSubject: meeting\nWhen: 
 Wednesday\, September 14\, 2016 9:00 AM-9:30 AM.\nWhere:\n\nWe have a comm
 unity meeting at 9AM pacific.\n
UID:04008200E00074C5B7101A82E0087B38708DC90DD201000
 01000605E4F3624C92C4EAE0C11B5EB165AAE
SUMMARY;LANGUAGE=en-US:Fw: meeting
DTSTART;TZID=Greenwich Standard Time:20160914T01
DTEND;TZID=Greenwich Standard Time:20160914T013000
CLASS:PUBLIC
PRIORITY:5
DTSTAMP:20160913T141726Z
TRANSP:OPAQUE
STATUS:CONFIRMED
SEQUENCE:0
LOCATION;LANGUAGE=en-US:
X-MICROSOFT-CDO-APPT-SEQUENCE:0
X-MICROSOFT-CDO-OWNERAPPTID:2114547067
X-MICROSOFT-CDO-BUSYSTATUS:TENTATIVE
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-CDO-INSTTYPE:0
X-MICROSOFT-DISALLOW-COUNTER:FALSE
BEGIN:VALARM
DESCRIPTION:REMINDER
TRIGGER;RELATED=START:-PT15M
ACTION:DISPLAY
END:VALARM
END:VEVENT
END:VCALENDAR


meeting

2016-09-13 Thread Wang ChenLiang
BEGIN:VCALENDAR
METHOD:REQUEST
PRODID:Microsoft Exchange Server 2010
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Greenwich Standard Time
BEGIN:STANDARD
DTSTART:16010101T00
TZOFFSETFROM:+
TZOFFSETTO:+
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T00
TZOFFSETFROM:+
TZOFFSETTO:+
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
ORGANIZER;CN=Wang ChenLiang:MAILTO:hi181904...@msn.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=gchase@gma
 il.com:MAILTO:gch...@gmail.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=dev@madlib
 .incubator.apache.org:MAILTO:dev@madlib.incubator.apache.org
DESCRIPTION;LANGUAGE=en-US:We have a community meeting at 9AM pacific.
UID:04008200E00074C5B7101A82E0087B38708DC90DD201000
 01000605E4F3624C92C4EAE0C11B5EB165AAE
SUMMARY;LANGUAGE=en-US:meeting
DTSTART;TZID=Greenwich Standard Time:20160914T01
DTEND;TZID=Greenwich Standard Time:20160914T013000
CLASS:PUBLIC
PRIORITY:5
DTSTAMP:20160913T141726Z
TRANSP:OPAQUE
STATUS:CONFIRMED
SEQUENCE:0
LOCATION;LANGUAGE=en-US:
X-MICROSOFT-CDO-APPT-SEQUENCE:0
X-MICROSOFT-CDO-OWNERAPPTID:2114547067
X-MICROSOFT-CDO-BUSYSTATUS:TENTATIVE
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-CDO-INSTTYPE:0
X-MICROSOFT-DISALLOW-COUNTER:FALSE
BEGIN:VALARM
DESCRIPTION:REMINDER
TRIGGER;RELATED=START:-PT15M
ACTION:DISPLAY
END:VALARM
END:VEVENT
END:VCALENDAR


Re: Spatial model in MADlib (GWR)

2016-09-13 Thread Wang ChenLiang
Great! I would like to join it.  Thanks!



From: Greg Chase 
Sent: Tuesday, September 13, 2016 21:55
To: dev@madlib.incubator.apache.org
Subject: Re: Spatial model in MADlib (GWR)

Hi ChenLang,
We have a community meeting at 9AM pacific. If you are still awake please feel 
free to ask the question in the end of the meeting.

Dial in instructions are in the meeting annoucemt and I will reply here again 
with them later.

Greg

This email encrypted by tiny buttons & fat thumbs, beta voice recognition, and 
autocorrect on my iPhone.

> On Sep 13, 2016, at 6:41 AM, Wang ChenLiang  wrote:
>
> Hi Frank,
>
> I was being on a business trip for several months and began to work on
> MADlib again in the past few days. But I have a trouble with debugging
> MADlib with GDB. Could you kindly give me a detailed example for
> debugging MADlib with CodeBlocks or GDB?
>
> Many Thanks !
>
>
>> On 03/15/2016 12:31 AM, Frank McQuillan wrote:
>> OK.  Please don't hesitate to ask if you have any questions.
>>
>> Frank
>>
>>> On Mon, Mar 14, 2016 at 4:17 AM, chenliang wang  wrote:
>>>
>>> Hi, Frank
>>>
>>> Recently,I am just looking at the detail of development guide and trying
>>> to complete the serial algorithm. And I plan to implement GWR dividing
>>> the loop into pieces of chunks executed in several nodes. However, I am
>>> not sure if there are some specials details need to be designed for
>>> distributed models in GPDB because I haven't developed model in MPP
>>> architecture. I hope this distributed manner would be implemented easily.
>>>
>>> Best,
>>> Chenliang Wang
>>>
>>>> On 03/10/2016 08:33 AM, Frank McQuillan wrote:
>>>> Hi ChenLiang Wang,
>>>>
>>>> I am checking to see how things are going regarding the GWR model for
>>>> MADlib that you proposed.  Not sure which phase you are at, but a
>>> suggested
>>>> next step might be how you plan to implement the GWR algorithm in a
>>>> distributed manner.  That is, how will it run in parallel?
>>>>
>>>> (Starting as a new thread since the previous thread fragmented.)
>>>>
>>>> Regards,
>>>> Frank
>>


Re: Spatial model in MADlib (GWR)

2016-09-13 Thread Wang ChenLiang
Hi Frank,

I was being on a business trip for several months and began to work on
MADlib again in the past few days. But I have a trouble with debugging
MADlib with GDB. Could you kindly give me a detailed example for
debugging MADlib with CodeBlocks or GDB?

Many Thanks !


On 03/15/2016 12:31 AM, Frank McQuillan wrote:
> OK.  Please don't hesitate to ask if you have any questions.
> 
> Frank
> 
> On Mon, Mar 14, 2016 at 4:17 AM, chenliang wang  wrote:
> 
>> Hi, Frank
>>
>> Recently,I am just looking at the detail of development guide and trying
>> to complete the serial algorithm. And I plan to implement GWR dividing
>> the loop into pieces of chunks executed in several nodes. However, I am
>> not sure if there are some specials details need to be designed for
>> distributed models in GPDB because I haven't developed model in MPP
>> architecture. I hope this distributed manner would be implemented easily.
>>
>> Best,
>> Chenliang Wang
>>
>> On 03/10/2016 08:33 AM, Frank McQuillan wrote:
>>> Hi ChenLiang Wang,
>>>
>>> I am checking to see how things are going regarding the GWR model for
>>> MADlib that you proposed.  Not sure which phase you are at, but a
>> suggested
>>> next step might be how you plan to implement the GWR algorithm in a
>>> distributed manner.  That is, how will it run in parallel?
>>>
>>> (Starting as a new thread since the previous thread fragmented.)
>>>
>>> Regards,
>>> Frank
>>>
>>
>