Logo

Who is talking?

Archive

.NET Mathematics

over 5 years ago | Sumit Bajaj: Sumit Bajaj's Blogs

Loading UserControl on another UserControl & assigning Properties of loaded UserControlParent UserControl (.ascx) UI: <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MultiVarientModule.ascx.cs"    Inherits="Modules.MultiVarientModule" %><div id="parent" runat="server"></div> Parent UserControl Code File (.cs) : #region CONSTANTSconst string CAROUSAL = "~/Modules/Carousal.ascx";const string THREECOLUMNS = "~/Modules/ThreeColumn.ascx";const string REGULAR = "~/Modules/Regular.ascx";#endregionprotected void Page_Load(object sender, EventArgs e){switch(ControlName){       case "Carousel":              parent.Controls.Add(LoadControl(CAROUSAL));              break;       case "ThreeColumn":              parent.Controls.Add(LoadControl(THREECOLUMNS));              break;       case "Regular":              {              Regular reg = (Regular)LoadControl(REGULAR);              reg.DisplayMode = ControlName;              reg.DisplayItem = multiVarientItem;              parent.Controls.Add(reg);              break;              }       default:              break;}} The above code is showing three different usercontrols to be added in parent div of another usercontrol.For assigning value to properties of child usercontrol, we have to write mentioned code. Here "Regular" is one userControl. Regular reg = (Regular)LoadControl(REGULAR);reg.DisplayMode = ControlName;reg.DisplayItem = multiVarientItem;parent.Controls.Add(reg);break; Loading the usercontrol and assigning it to Regular class     Regular reg = (Regular)LoadControl(REGULAR);Assigning properties of regular class      reg.DisplayMode = ControlName;     reg.DisplayItem = multiVarientItem;and finally adding the object to parent usercontrol.Regular (.ascx) UI <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Regular.ascx.cs" Inherits="Modules.Regular" %><div>    <h4><asp:Literal ID="regularTitle" runat="server" /></h4></div><div class="leftInteriorTwoColumn" runat="server" id="LinkWithDescription"><span sizcache="30" sizset="126"><asp:Repeater ID="Repeater_LinkWithDescription" runat="server" OnItemDataBound="Repeater_LinkWithDescription_ItemDataBound"><ItemTemplate>  <a runat="server" id="articleLink" />  <div sizcache="30" sizset="127">  <div class="editorsContent" sizcache="30" sizset="127">  <p sizcache="30" sizset="127">    <span id="publishedDate" runat="server" class="pubdate" />    <span id="articleDescription" runat="server" />    <a id="moreLink" runat="server" class="moreLink">more</a>  </p>  </div>  </div></ItemTemplate></asp:Repeater></span></div> Regular (.cs) Code File: private string displayMode = String.Empty;public string DisplayMode{  get  {    return displayMode;  }  set  {    displayMode = value;  }}private Item displayItem;public Item DisplayItem{  get  {    return displayItem;  }  set  {    displayItem = value;  }}

What to EXPECT and what NOT to EXPECT from an Agile Coach…

over 5 years ago | Karan Nangru: Karan Nangru

  Thanks to Lyssa Adkin’s Coaching Agile Teams, I was able to put up a good show at the Agile Tour 2011, India. Infact this book has really helped me grow as an Agile Coach, Master, Mentor…..

GigaSpaces PAAS For Cloud Based Java Applications

over 5 years ago | Karan Nangru: Karan Nangru

Its been quite a while since I presented on Gigaspaces XAP at Indic Threads conference on Cloud Computing, Pune. Here is the video recording of the same……

Ajax Toolkit capabilities @ Salesforce Home Page Component …finally a workaround

over 5 years ago | Karan Nangru: Karan Nangru

Astonishing but true – You cannot select/create a Visualforce page as your Salesforce Home Page Component. The component creation dialog only enables creating custom Links, Image/Logo or HTML Area as a Home Page component. To get a glimpse of what Salesforce developers desire, check this out : http://success.salesforce.com/ideaview?id=08730000000Brk4AAC . Why would you anyway want to […]

Parslet with proper left recursion support

over 5 years ago | Chris Parker: Quick bits from Chris

Parslet is a really, really nice parsing expression grammar. It is the nicest that I have ever used (and I used it on my project kalc, a Excel-formula based expression language) but it had one problem with it: it did not have support for left … Continue reading →

Parslet with proper left recursion support

over 5 years ago | Chris Parker: Quick bits from Chris

Parslet is a really, really nice parsing expression grammar. It is the nicest that I have ever used (and I used it on my project kalc, a Excel-formula based expression language) but it had one problem with it: it did not have support for left … Continue reading →

How to make Quinoa soft and fluffy

over 5 years ago | Nirmal Merchant: Urban Gypsy

Rinse, rinse, rinse your quinoa before boiling it. Quinoa to water ratio for boiling should be between 1.5 to 2. Bring the pot to rapidly boil on high heat and then turn the heat down to a low simmer for around 12 minutes. Turn the heat off and let quinoa sit to soak the rest of the water and cool down. My first attempt was a crunchy, clumpy mess.  Not only did I not rise the quinoa (which seems to make the most difference) I also let it boil on high heat all the way through.  I tried adding more water but that didn’t help. I had been wanting to incorporate quinoa into my diet because of all I heard about its low glycemic index and protein richness.  I was inspired by Kevin’s delicious quinoa salad which was simply delicious.  Preparing the salad in bulk is a bad idea because the whole thing becomes mushy as the tomatoes, onions and cucumbers loose their water.  Instead, I have settled for dicing all the vegetables beforehand and saving them in separate containers.   When I need to make my salad, I just prepare the quinoa and then throw in the already diced ingredients and top it with some mint and cilantro leaves.  Tastes fresh and yummy.

Rsync over ssh with non-default (!22) port

over 5 years ago | Chris Parker: Quick bits from Chris

We all need to do this sometime.  You need to rsync over ssh over a port that is not 22 for security reasons, or maybe you prefer another port for ssh. # rsync -av –progress –inplace –rsh=’ssh -p10000 -l yourname‘ … Continue reading →

Rsync over ssh with non-default (!22) port

over 5 years ago | Chris Parker: Quick bits from Chris

We all need to do this sometime.  You need to rsync over ssh over a port that is not 22 for security reasons, or maybe you prefer another port for ssh. # rsync -av –progress –inplace –rsh=’ssh -p10000 -l yourname‘ … Continue reading →

Does the original “Hello, world” still compile? Let’s see

over 5 years ago | Chris Parker: Quick bits from Chris

From Brian Kernighan‘s version from Programming in C: A tutorial. 1. Open editor # vim /tmp/hello.c 2. Write code main() {     printf("hello, world\n"); } Notice that that there are no arguments to “main”, no return values, and we don’t … Continue reading →

Does the original “Hello, world” still compile? Let’s see

over 5 years ago | Chris Parker: Quick bits from Chris

From Brian Kernighan‘s version from Programming in C: A tutorial. 1. Open editor # vim /tmp/hello.c 2. Write code main() {     printf("hello, world\n"); } Notice that that there are no arguments to “main”, no return values, and we don’t … Continue reading →

Why Clojure scares me

over 5 years ago | Aishwarya Singhal: Aishwarya Singhal

There has been a lot of buzz about this relatively new language. Its a new kid on the block, it is Lisp, functional and runs on the JVM. Nice! But its very fact that its a Lisp scares me off. … Continue reading →

Why Clojure scares me

over 5 years ago | Aishwarya Singhal: Aishwarya Singhal

There has been a lot of buzz about this relatively new language. Its a new kid on the block, it is Lisp, functional and runs on the JVM. Nice! But its very fact that its a Lisp scares me off. When I look at Clojure code, compact as it may be, I just see a lot of brackets. And I mean a lot of them. I was reading a deck yesterday that admitted that long time Java developers may suffer from this 'problem', and I do fall in that category :-) Even if I ignore all those scary brackets, the way the code is written, it looks like prefix notation (it reminds me of Yoda in Star Wars who talked in a very funny and interesting manner, but I won't use that dialect in practice). I mean seriously, when I first learned about numbers and Algebra, I wrote expressions as 1 + 2, and not + 1 2. The latter is not really a natural way for me. Oh yes, I can get used to the latter too, but I think for a long time, I would just be doing a translation for myself in my head. And it would surely be slow and painful. I must admit that this is just a feeling - I have only _seen _Clojure yet, not practiced it. And there are many things that are good in this language. For me, Scala works wonders and I intend to stick to it for now.

Java references in nutshell

over 5 years ago | Subodh Gupta: Subodh's Blog

Java developers struggle to use java references and i don't blame them. The topic seldom covered by text books and even code reviews rarely give emphasis on usage of references. Why the topic is important at all? and if everybody (atleast people i have come across) is coding without it why the hell you need it?Since you are reading this, either you are already aware of them or for the interview. Anyways, knowing references helps you manage memory better because you are able to define the behavior of the object when GC (garbage collector) is run.Type of references:1. Strong Reference: The normal reference in the java code is strong reference and the object referenced by strong reference is eligible for GC as soon as scope ends or reference started pointing to null in the code.E.g. Person p = new Person();                p = null; // will make object initialized above eligible for GC2. Weak Reference: As name suggest these reference are weaker than the strong references.  Their are couple of ways to use them one via WeakReference call which can wrap your object and you can access the object through WeakReference.get API. Get API will be returning null id the object is GCed. (You can also use WeakHashMap)Usage: These objects stay in the memory till the time they are referenced from any strong reference in the memory. In other words as soon as they loose accessibility from strong reference they become eligible for GC.3. Soft Reference: Soft reference is similar to weak reference however weaker than weak references. They put the additional check on there GC eligibility, which is if GC needs space.  So basically they sits in memory still the time memory is available. Use the SoftReference API for this type of references.Usage: These find good usage in building cache because if memory is available they don't discard the object and hence saves you the additional reload.4. Phantom Reference: This type of reference is used to track the object if it has been garbage collected. PhantomReference get API always returns null. Object cannot be obtained from it unlike finalize() API.Usage: So, if your object needs to be freed only when object using it becomes garbage collected than you should be using this API. Another use case is before loading  large object you want to check if the other larger object currently in memory is GCed which will help you avoid the out of memory exception.Hope this helps :)  

Trek to Harihar fort

over 5 years ago | Niranjan Sarade: InLoveWithNature

Monsoon has just started in Maharashtra and we could not hold ourselves to experience the green and lively nature in rains. On 7th July, Abhijit and Rajesh planned a one day bike trek to Harihar fort near Nasik. It was around 280 Km of round journey from Mumbai to Harihar and back. The road that we took was Thane -> Kasara -> Khodale -> Nirgudpada.  The base village of Harihar fort is Nirgudpada. It was my first long journey bike experience and I loved it !Harihar (approx. 3,676 ft) forms a part of the Trimbak range in Nasik region. There are total 117 steps carved beautifully in the rock patch and you really feel like flying on the wings of the wind when there is a very windy and rainy weather while climbing up the steps. We enjoyed the trek very much! Sharing some snaps...

Create any map of the world in SVG

over 5 years ago | Oscar Villirreal: Digital Caveman

There is nothing cooler than having a map fully powered by data. D3.js does a great job at this by accepting geoJSON data and converting that into SVG. The thing is how the hell do we acquire a map that is not the one of the USA (which is the most typical example). There are […]

crowd sourcing concepts

over 5 years ago | Mark Daggett: Mark Daggett's Blog

Below is the results of a brainstorming session with myself and Hege Sæbjørnsen as we thought through the concepts of crowd sourcing. We proposed several questions to one another and then attempted to answer them, or at least frame the question more fully. These notes are pretty raw, and much of the answers are well-documented elsewhere. However, I still thought it was worth sharing. Crowd Sourcing The use of a collection of people with expert knowledge / interest around a very specific topic to fill a role that has been typically held by a few highly educated “editors” (wisdom of the crowds). Crowd sourcing is an active engagement not only passively viewing the content. This is a two way street, you can’t strip mine the crowd, you must engage in a conversation and allow for two way conversation. You must harvest and plant. Crowd Collections subgroups or individuals at varying levels of engagement linked around some common attribute(s). potential subgroups The Unaware Public Students Researcher / Educator Artists / Designers Makers Engineers / Scientists Social Innovators / Entrepreneurs Politicians Professionals Grassroots Organizations Physically located within a specific proximity Contextual community on another platform (Facebook, Twitter, Flickr) Griefers / Trolls (spreaders of misinformation, or just enjoy conflict) Do we have priority subgroups and who are they, and how do we speak to them? Once you define the crowd composition then you choose the target audience to source from. Source Ideas / Opinions / Solutions / Visions in response to our brief Their social graph, and sphere of influence Their money Curation (potentially & to what extent) Vet and or Improve Submissions Volunteers / local ambassadors What Media Do We Source Are we limiting people’s inputs when we state “read” stories? Biographies / Essays Comments on sourced material Poems / Quotes etc. Documentary Photography Fine-art Photography Documentary Video Fine-art Video Tools & Tool Making Research Schematics / Blueprints Goals Crowd Sourcing Engaging a larger distributed audience Collecting and then refining of raw materials Democratic path to engagement / flattened hierarchy / grass-roots composition over aggregation Build a base of future (contextually relevant) engagement with a slice of the crowd Tasks for the crowd create or upload their content to the site find existing relevant content created by others and share it on the site. make linkages between content through activities like tagging (folksonomies) download readymade content and share it in the local community build a knowledge base around future Ways To Curate Crowd Voting, likes, retweets, tags, replies etc. Local Expert, who promotes certain content over other Selection Panel / Judging Panel, which offers periodic content review and selection Expectation of the Crowd Clarity of engagement a specific call to action A way to visualize the crowd’s input A way to visualize the crowd through metrics (e.g. countries, total count, visitors) A way to visualize the crowd’s influence / impact A low barrier of entry A way to find my community What’s in it for the Crowd member Ready made distribution platform Tools to mine the wisdom of the crowd A way to fund your involvement in the project Recognition and enhancement of your social reputation Be a part of a larger well-respected initiative The potential to participate in person in Rio A tool to find other members you share interests with Measurement / Quantifying The Crowd How do you measure engagement with the crowd? How do you measure distribution within the crowd? How do you measure the inertia of the crowd? How do you measure changes in the sentiment? (moving from casually aware to active participant) Crowd Composition Less like a mob and more like filling the seats in structure or setting we’ve defined. This allows us to initially curate the incoming content, and facilitate our “experts” (problematic?) Questions How do we handle out of scope submissions? How much is online vs. offline? How is attribution of content handled? Is there some greater tangible reward for contributing content? Questions About Crowd Curation Are we asking too much of our audience Are we going to allow for total organic organization of the content or will we offer an initial framework.

My First Meetup Presentation

over 5 years ago | Eduard Moldovan: eduardmoldovan.com - tech

I was a bit nervous about today. But things went well, apart from almost not being able to reach may presentation.

"I love the Atlanta Falcon!!!"

over 5 years ago | Thomas Newton: newtonlabs.io

“I love the Atlanta Falcon!!!” - Garrett | Watching Star Wars for the first time

"Why does R2D2 always talk like this “squeak squeak squeak”"

over 5 years ago | Thomas Newton: newtonlabs.io

“Why does R2D2 always talk like this “squeak squeak squeak”” - Garrett | Watching Star Wars for the first time

"Why do they always play this music when Darth Vader is around…"

over 5 years ago | Thomas Newton: newtonlabs.io

““Why do they always play this music when Darth Vader is around…”” - Garrett | Watching Star Wars for the first time