I'm new to ui.router in angular and have to build a app. it contains a header, sidebar (off-canvas), feedback area (save successful and warnings area) and a content area.
I thought it would be best, if i split up all things and create different (nested) ui-views.
and that's the result
index.html
@rolfl Email template singletons: broken code is off topic, right? so the question really belongs somewhere else (stackoverflow, programmers), rephrased as a "why does this code produce weird instance counts?" which presumably has something to do with the static methods inside, rather than outside, the enum definition
Actually, strike that -- I misread my output when I attempted to repro the issue. I haven't the foggiest idea why the profiler is saying that
If you guys are right that the profiler is the wrong tool to use, then it becomes a very interesting question for somewhere else
@James There are two things to consider here: 1. the profiler does not claim to be 100% accurate, and 2. you should expect one instance at least, for each enum member....
The profiler is not intended to be an exacting micrometer of your system... it's a relative thing, a guide.
So, I recommend you revise your question, bcause the code you do have, is interesting, and would be good for the review as working code, not as something buggy.
I'm at a loss here... I've got a website that does not respond to pings neither on it's domain name nor on it's ip address, yet it does serve a certain file.
In computer science, a radix tree (also patricia trie or radix trie or compact prefix tree) is a space-optimized trie data structure where each node with only one child is merged with its parent. The result is that every internal node has up to the number of children of the radix of the radix trie, where is a positive integer and a power of 2, having ≥ 1. Unlike in regular tries, edges can be labeled with sequences of elements as well as single elements. This makes them much more efficient for small sets (especially if the strings are long) and for sets of strings that share long pref...
Given a linked list and two integers M and N. Traverse the linked list such that you retain M nodes then delete next N nodes, continue the same till end of the linked list. Diagram is
Input:
M = 2, N = 2
Linked List: 1->2->3->4->5->6->7->8
Output:
Linked List: 1->2->5->6
Looking fo...
I'm having trouble figuring out the best approach with DI. After doing more research, Mark Seeman recommends using the Composition Root approach. In my example, I am using XML configuration to design my mappings which allows me to drop any new dll that implements an interface without having to pe...
I'm working on this problem : http://www.codechef.com/problems/DIGJUMP
I tried many test cases, and all of them are right.
The solution implements BFS, but I don't know where the problem is because I still get wrong answer when I submit.
Here's my code: http://www.codechef.com/viewsolution/409704...
Compiler Warnings
Iterable is a raw type. References to generic type Iterable should be parameterized
This is very easy to fix. It's horrible that you haven't fixed it already. I'm sure that you know what generics is by now so I don't need to explain it to you. Whenever you see this warning...
@rolfl I think our dear JavaDeveloper might have circumvented our "working code" requirement. Or he's just... I don't know what... confused? Mistaken?
@Edward - My computing history: Minor in CS, 1993. Didn't program again until 1999, upon which time I spent 12 years exclusively doing Clipper and Cold Fusion. Now I'm playing massive catch up, and it sucks.
I always know what I want to do, just not how to do it. And OOP still confuses me somewhat.
And things like this:
<?xml version="1.0" encoding="utf-8"?>
That gives me a warning in one android app, but the same line doesn't warn in a different app. qua?
Me too, I just took large gaps in the middle. My first computer was a Vic-20 with the 16k memory expansion and an 8 cassette "Teach yourself BASIC" package.
I don't know what you're doing for learning OOP, but IMHO, if you're using C++, The C++ Programming Language, 4th ed by Bjarne Strostrup is good. If you're using Java, I think the Big Java books are pretty good.
Our programming is now done in C#, legacy Clipper, Cold Fusion and mySql. But, the company that bought us a couple years ago is heavily invested in the .NET legacy.
Like my last program, I was able to create a custom class in C# that incorporated IComparable and IEquatable to do a custom matching routine on sets of paired variables. It works, but I don't know why, nor could I create it from scratch.
@Phrancis here is what I am trying to do inside the SSRS Query editor thingy
set @NodeListDescr = ltrim(substring(@NodeListDescr,2,5000))
IF @NodeListDescr IN ('Buffalo','Shannon','Todd')
BEGIN
END
ELSE
exec rpt_EOMPreClosureReport_01 @StartDate, @EndDate,@NodeList, @NodeListDescr,@SiteDesc,@UserIdIn
END
@Malachi if I understand your code well, you're trying to trim 5000 characters from a string, starting after 2 characters? My main concern is wtf does the data look like?
IF @NodeListDescr IN ('Buffalo','Shannon','Todd')
BEGIN
END
ELSE
exec rpt_EOMPreClosureReport_01 @StartDate, @EndDate,@NodeList, @NodeListDescr,@SiteDesc,@UserIdIn
END
a third party application pulls in SSRS Reports. this report calls stored procedures that pull in the XMLs from other reports and displays them in a single custom report.
kind of complex and kind of confuses me a little bit, but we are dealing with half third party vendor stuff and half in house stuff (that I didn't write)
I was thinking that the NodeListDescr and the NodeList were actual lists, which didn't help me at all.
declare @NodeList varchar(5000)
declare @NodeListDescr varchar(5000)
declare @SiteDesc varchar(200)
declare @UserIdIn varchar(25)
set @UserIdIn = @UserId
set @SiteDesc = 'SDODYSTAGE'
set @NodeList = ''
set @NodeListDescr = ''
select @NodeList = @NodeList + ',' + ltrim(STR(NodeId)),
@NodeListDescr = @NodeListDescr + ',' + rtrim(CountyName)
from SDUJS.dbo.NodeDescriptions
where NodeID in (@NodeId)
set @NodeList = ltrim(substring(@NodeList,2,5000))
set @NodeListDescr = ltrim(substring(@NodeListDescr,2,5000))
I am working on a project for my radiation oncology department. We have a device that we place on the patient and it sends back information about its orientation, acceleration, etc. I am writing a program to display this data on a 3d plot over time. I have been working on this for some time. I ca...
there are 3 counties that don't have courthouses so these reports error out when the overhead report is run, and I said it's not good for the Database and that I think I can make it so those reports aren't even attempted
that's why I am on this project for at least a day more.
Maybe the first two characters were once some kind of reference item? Kind of like DOS text files, you have the invisible CR and LF values at the end of lines.
Stack Exchange releases "data dumps" of all its publicly available content roughly every three months via archive.org, and also makes that information queryable over the Internet at the Stack Exchange Data Explorer (SEDE). Over time, as new features and other bits of data are introduced to Stack ...
I wanted to grab data of when a user has voted (the day would be enough), I don't care about what they voted for, but I guess that's not available either.
Thanks to a question over at Code Review I got into a little disagreement (which essentially is an opportunity to learn something) about what exactly the Cyclomatic Complexity is for the below code.
public static void main(String[] args) {
try {
thro();
thro();
thro()...
I have a class that implements Queue which draws values from other queues added to it. I want the method to draw values from the queues by checking over all values indefinitely and after a value is checked twice. (id est, when all other values have been checks and the current next value has been ...
@rolfl OK, understandably. So I assume there's no way to find out the number of up-votes a user has given in a specific day / week / month / year / anything ?