I am trying to detect which web in sharepoint that the user is looking at right now. One approach could be to read the URls from the browser and try to compare them to a reference URL to the sharepoint solution. I have not yet been able to locate any solution that works in both IE and Firefox.
The idea is to write a small C# app that will harvest the URLs and do the comparing.
TIA
I’m looking for a CMS based on CodeIgniter. Can you suggest what CMS I could use?
I want to learn how to build a CodeIgniter application based using a CMS as a reference.
Hi, I understand emacs lisp is great for handling dates and times, but does it have a function to convert strings to internal representation of integers using formats like %Y, %m, %d, %H, %M, %S, and so on? And also, in the emacs reference manual, it says that times are lists of two or three integers, but is there a more formal specification or description? ~ Thanks ~
Today is the launch day, is it? The count down is already up, but all I see on MSDN is RC
Do you know at what exact time RTM will be available for download?
I am working on some reusable Android code that I would like to distribute to other developers for use within their own applications. The code has some resource dependencies (layouts, xml & png drawables) that I would like to be able to include and reference within a single package (Jar file).
Is this possible, and if so what is the best method to do this?
The Http Server embedded in JDK 6 is a big help developing web services, but I've got situation where I published an Endpoint and then the code crashed and left the server running.
How do you shutdown the embedded server once you've lost the reference to it (or the published Endpoint)?
The other day in a local .NET group I attend the following question came up: "Is it a valid interview question to ask about Linked Lists when hiring someone for a .NET development position?"
Not having a computer sciense degree and being a self taught developer my response was that I did not feel it was appropriate as I in 5 years of developer with .NET had never been exposed to linked lists and did not hear any compeling reason for a use for one.
However the person commented that it is a very common interview question so I decided when I left that I would do some reasearch on linked lists and see what I might be missing.
I have read a number of posts on stack overflow and various google searches and decided the best way to learn about them was to write my own .NET classes to see how they worked from the inside out.
Here is my class structure
Single Linked List
Constructor
public SingleLinkedList(object value)
Public Properties
public bool IsTail
public bool IsHead
public object Value
public int Index
public int Count
private fields not exposed to a property
private SingleNode firstNode;
private SingleNode lastNode;
private SingleNode currentNode;
Methods
public void MoveToFirst()
public void MoveToLast()
public void Next()
public void MoveTo(int index)
public void Add(object value)
public void InsertAt(int index, object value)
public void Remove(object value)
public void RemoveAt(int index)
Questions I have:
What are typical methods you would expect in a linked list?
What is typical behaviour when adding new records? For example if I have 4 nodes and I am currently positioned in the second node and perform Add() should it be added after or before the current node? Or should it be added to the end of the list?
Some of the designs I have seen explaining things seem to expose outside of the LinkedList class the Node object. In my design you simply add, get, remove values and know nothing about any node object.
Should the Head and Tail be placeholder objects that are only used to define the head/tail of the list?
I require my Linked List be instantiated with a value which creates the first node of the list which is essentially the head and tail of the list. Would you change that ?
What should the rules be when it comes to removing nodes. Should someone be able to remove all nodes?
Here is my Double Linked List
Constructor
public DoubleLinkedList(object value)
Properties
public bool IsHead
public bool IsTail
public object Value
public int Index
public int Count
Private fields not exposed via property
private DoubleNode currentNode;
Methods
public void AddFirst(object value)
public void AddLast(object value)
public void AddBefore(object existingValue, object value)
public void AddAfter(object existingValue, object value)
public void Add(int index, object value)
public void Add(object value)
public void Remove(int index)
public void Next()
public void Previous()
public void MoveTo(int index)
I use LinkButton linkBtn = (LinkButton)FindControl(ControlID); inside a method in my baseclass...
This works within a normal aspx page when given,
LinkButton linkBtn = (LinkButton)FindControl("lnkBtn1");
But when it is a contentpage included within a masterpage it doesn't work...
LinkButton linkBtn = (LinkButton)FindControl("ctl00_ContentPlaceHolder1_lnkbtn");
i get the error Object reference not set to an instance of an object.
I'm kinda new to programming and got a question on what is a good practice.
I created a class that represents a ball and it has a function Jump() that use 2 timers and get the ball up and down.
I know that in Winforms you got to call Invalidate() every time you want to repaint the screen, or part of it. I didn't find a good way to do that, so I reference the form in my class, and called Invalidate() inside my ball class every time I need to repaint to ball movement.
(this works but I got a feeling that this is not a good practice)
Here is the class I created:
public class Ball
{
public Form1 parent;//----> here is the reference to the form
public Rectangle ball;
Size size;
public Point p;
Timer timerBallGoUp = new Timer();
Timer timerBallGDown = new Timer();
public int ballY;
public Ball(Size _size, Point _p)
{
size = _size;
p = _p;
ball = new Rectangle(p, size);
}
public void Jump()
{
ballY = p.Y;
timerBallGDown.Elapsed += ballGoDown;
timerBallGDown.Interval = 50;
timerBallGoUp.Elapsed += ballGoUp;
timerBallGoUp.Interval = 50;
timerBallGoUp.Start();
}
private void ballGoUp(object obj,ElapsedEventArgs e)
{
p.Y++;
ball.Location = new Point(ball.Location.X, p.Y);
if (p.Y >= ballY + 50)
{
timerBallGoUp.Stop();
timerBallGDown.Start();
}
parent.Invalidate(); // here i call parent.Invalidate() 1
}
private void ballGoDown(object obj, ElapsedEventArgs e)
{
p.Y--;
ball.Location = new Point(ball.Location.X, p.Y);
if (p.Y <= ballY)
{
timerBallGDown.Stop();
timerBallGoUp.Start();
}
parent.Invalidate(); // here i call parent.Invalidate() 2
}
}
I'm wondring if there is a better way to do that?
(sorry for my english)
During a recent interview for a front-end developer position I was asked what the box model was. I thought the interviewer was referring to testing (i.e. white box testing, black box testing). I was wrong.
What is the box model, in reference to front-end development?
i created imported DLL in references. My plugin need these DLL but they are in common or plugin file if i click reference add dll they import form plugins file . they must be only in only plugins or common not two place. Look picture below:
if i click add refrence ClearCanvas's DLL and PluginTest Dll must be only plugins file !!!
Very quick question, does anyone know what the effect of setting an application pool in IIS7 o "Load User Profile" would have? Is it advisable etc.
Reference: http://dbvt.com/blog/post/AspNetHostingPermission-Security-Exception-Fix-with-Ajax-in-IIS7.aspx
I am having trouble figuring out how to build a console for my application so i can send msgs to it from any class in the package.
i tried to send a generic Event, but I cannot find a way send a msg together with the event, or at least a reference to the object which is dispatching the event.
what approach would you suggest?
What I need is
- list of new stuff from last visit
- when user has already checked out some new entity since his last visit (ex. post on forum), mark this entity as read in the list
- count different types of entities - private messages, posts, comments and etc.
There are lot of websites using this technique for private messaging, listing new stuff and etc (ex. phpBB, this one and etc).
Are there any common pattern, description of the system core which will events, making lists?
jsbin for reference:
http://jsbin.com/edago3/5/
When viewed in any other browser, the toggler works as you would expect it to. However, in IE (I'm using 8), you can only contract the currently expanded sub menu, and then you get undesired results once it is closed.
Hi,
Javascript is running extremely slow on IE on some pages in our site.
Profiling seems to show that the following methods are taking the most time:
(Method, count, inclusive time, exclusive time)
JScript - window script block 2,332 237.98 184.98
getDimensions 4 33 33
eh 213 32 32
extend 446 30 30
tt_HideSrcTagsRecurs 1,362 26 26
String.split 794 18 18
$ 717 49 17
findElements 104 184.98 14
What does "JScript - window script block" do?
We are using jquery and prototype.
Thanks,
I want to print a table of the colours used in a web page that my graphic designer has produced - I have .png files at present and use Fireworks to view them. It would be great if there was a tool that lets you print a table with the colour and hex value so I can easily reference when programming.
Anyone come across such a thing? Sounds to me like there should be a firefox extension or similar?
I've been given a large application with only one try..catch at the outer most level. This application also throws exceptions all the time, and is poorly documented.
Is there any pattern I can implement that will tell me what user method is being called, the exception being thrown, and also the count of exceptions?
I'm thinking of using a dictionary with reflection to get the needed information, but I'm not sure if this will work. What do you think?
I'm told to create template of function , that will take 4 arguments :
pointer
reference
pointer to array
pointer to function
How to perform this task ? I was trying :
template<typename TYPE> TYPE biggest(TYPE *L, TYPE $M, TYPE *K[], TYPE *O())
{
}
but it is wrong.
In reference to the post below, where it says I should increase the version number for older versions to be replaced by newer ones.
http://stackoverflow.com/questions/40603/msi-installer-fails-without-removing-a-previous-install
What I find is, just changing the version number didn't do the job. I had to change the product code also, which I got an option to change through a Message Box just after changing the Version Number.
Is this how it's supposed to be?
Please identify the most popular lightweight markup languages and compare their strengths and weaknesses. These languages should be general-purpose markup for technical prose, such as for documentation (for example, Haml doesn't count).
See also: Markdown versus ReStructuredText
Hi,
we want to use Unity for IOC.
All i've seen is the implementation that there is one global static service which holds a reference to the Unity container, which registers all interface/class combinations and every class asks that object: give me an implementation for Ithis or IThat.
Frequently i see a response that this pattern is not good because it leads to a dependency from ALL classes to this service.
But what i don't see often, is: what is the alternative way?
Michel
I'm kind of a newb to WCF Web Services and have created a service.
Here is what I'm after:
If someone vists http://somesite.com/Poo.svc they are rejected straight off the bat (404 or something)
Only I can add a reference to the service in VS.
What I'm after is making the WCF service totally private.
Any ideas?