Mike Askew 131 Veteran Poster Featured Poster

Fair enough :) Thought I would ask anyway, felt stupid for even managing to make that infinite loop occur in the first place :D

Mike Askew 131 Veteran Poster Featured Poster

What harm would come of a client firing mass get requests at the server?

Just found myself in an infinite loop firing at the server and wondered what impacts (if any) it could have?

Mike Askew 131 Veteran Poster Featured Poster

Maybe people just reply to your posts around the time of the email.

I can confirm my article updates arrive hourly at 10 minutes past the hour.

Mike Askew 131 Veteran Poster Featured Poster

Yeah I didn't get that far down the API documentation yet as still working with GET requests :) Ah, not sure which I looked at! Shall have another browse in a bit.

Mike Askew 131 Veteran Poster Featured Poster

It has made it clearer to me, also the live demo helps to explain it.

Mike Askew 131 Veteran Poster Featured Poster

Cheers cereal!

Mike Askew 131 Veteran Poster Featured Poster

What is the format of the timestamps?

For example the example data provides "last_visit_timestamp":"1361354427", But im not entirely sure what this equates too? A DateTime? Something else?

Mike Askew 131 Veteran Poster Featured Poster

The benefit is to allow people to do whatever they like with the information available. Personally I like the purple.

A desktop client is definately an option and I was going to look at one once I have done an API extension for C#.

Mike Askew 131 Veteran Poster Featured Poster

Yeah that is a pretty horrendous way to do it :p I will look into it further when I get my API extension to that stage if you don't find a better method before then.

Mike Askew 131 Veteran Poster Featured Poster

@Riahc3, I'd find that of use, I've looked into it briefly but didn't figure it out in the short time I had to look at it.

Mike Askew 131 Veteran Poster Featured Poster

Thanks Dani :)

Mike Askew 131 Veteran Poster Featured Poster

Dani do you happen to have a map of which forum code is associated to each forum (Before I manually go look at them all)?

Ie. 61 = C#

Mike Askew 131 Veteran Poster Featured Poster

You know what would be a cute idea? How about writing a bookmarklet that polls for latest posts in articles you're watching or for your new private messages as you browse the web. You'll get an instant alert wherever you are instead of waiting up to an hour for the email notification to come in.

That'd be an interesting one for sure.

I'm currently fiddling with a C# interface of the API (hiding the backend requests etc). Having to put the JSON into XML at present and then manipulating it, so unless I find a better way I'm sure some of the more experienced devs will have a better interface if they tried :)

Work is busy at present though so won't get a chance to properly crack on with this mini project of mine until the weekend :(

Mike Askew 131 Veteran Poster Featured Poster

Cheers Riahc3 :)

Mike Askew 131 Veteran Poster Featured Poster

Not a worry in the slightest about the code's state, just interested in the actual code used :)

Mike Askew 131 Veteran Poster Featured Poster

BTW, if someone wants the source code, Ill put it up as well with some comments :) although its very sloppy

@Riahc3, I'll take you up on that offer ;)

Mike Askew 131 Veteran Poster Featured Poster

Have you confirmed this table exists?

Mike Askew 131 Veteran Poster Featured Poster

Just tried to reproduce this on Chrome Version 24.0.1312.57 m but it didn't occur for me.

Mike Askew 131 Veteran Poster Featured Poster

Cheers shall have a look into that when out of the office as I still need to figure out navigation of our proxy servers :)

Mike Askew 131 Veteran Poster Featured Poster

This should be trivial. The example provided uses PHP but that's neither here nor there. I don't know C# if it smacked me in the face, but a quick Google search revealed that the WebRequest class can be easily used to make POST requests. The API returns JSON, so then you'll need to use something to deserialize JSON and convert it to a C# object. I'm guessing that JSON is popular enough nowadays that this shouldn't be very involved either.

Aye it most likely will be just something I've never done before so there is the slight learning curve!

Mike Askew 131 Veteran Poster Featured Poster

I would say that is pretty much spot on for what you're trying to achieve.

Mike Askew 131 Veteran Poster Featured Poster

This could prove very interesting as the API becomes more extensive :)

Edit: However I need to figure out how to call it from C# first :(

riahc3 commented: I completely agree +0
Mike Askew 131 Veteran Poster Featured Poster

Some very good suggestions :) avd could you put them into the original post? Cheers

Mike Askew 131 Veteran Poster Featured Poster

My guess on interpreting the error is that you are sending a varchar type where it expects a datetime, I don't have the most experience with actual SQL procedures though so hopefully someone with more experience can pick up here with the issue

Mike Askew 131 Veteran Poster Featured Poster

Have you tried looking at the DB stuff on here?

Mike Askew 131 Veteran Poster Featured Poster

What code have you got so far? Have you tried using google and other search engines to prowl the endless resources available to you on such topics? (Which is 99% a no, as I can think of a site off the top of my head covering all of database working)

Mike Askew 131 Veteran Poster Featured Poster

Your welcome :)

Mike Askew 131 Veteran Poster Featured Poster

Agreed this is the only programming forum I permanently check on a weekly if not daily basis.

There is only one time I will turn to StackOverflow over DaniWeb and that is for XSLT problems because I know the forum is not the most active compared to the SO one and work issues generally need to be resolved quickly.

Other than that I will always come here for issues :)

Mike Askew 131 Veteran Poster Featured Poster

I thought windows computers were more likely to have those problems... well, i am going to find out first hand because i am going to get the new Dell XPS 12 Ultrabook (for my college class). I am going to compare them to the macs that i have and see which is superior.

I personally prefer windows after using both, Mac lacks so much cross-compatability and costs in terms of performance. I do like specific features of the Mac OS more than Windows however overall I find less issue with Windows.

Mike Askew 131 Veteran Poster Featured Poster

Wouldn't you need to instantiate the class first and then call the .Insert() method off the instanciated object? Obviously we can't see the full code so thats a guess but it could be the case.

I.e

TestClass TS = new TestClass(); //With any constructor you use
TS.Insert(Params...);
Mike Askew 131 Veteran Poster Featured Poster

As a Mac and Windows owner, I found this amusing.

Sadly I've never had such experiences myself before :)

Mike Askew 131 Veteran Poster Featured Poster

When running those figures I recieve:
t = 8.95430243255237E+23
msg = 149

I presume the issue is coming from the result of t?

@tinstaafl using your suggestion just results in the two results above being flipped to negatives and values changed, i.e:
t = -9.22337203685478E+18
msg = -162

Tested using the code:

            double v = 11;
            double d = 23;
            double n = 187;
            double t = (long)Math.Pow(v, d);
            Console.WriteLine(t);
            Int16 msg = Convert.ToInt16(t % Convert.ToDouble(n));
            Console.WriteLine(Convert.ToString(msg));

Note the line Convert.ToInt16(t % Convert.ToDouble(n)); where I have removed the second power function and used the result of your variable t as your just getting the same value twice when it isn't needed.

Mike Askew 131 Veteran Poster Featured Poster

Can we have some example values for v, n and d?

Mike Askew 131 Veteran Poster Featured Poster

Problem averted then :)

Mike Askew 131 Veteran Poster Featured Poster

In reply to the partitioning question, there is always the risk of something going wrong, I did mine with a fresh install of OSX (at the time) just to clear the hdd of any rubbish so I didn't really need to back anything up.

I suppose its more for peace of mind as to whether or not you take the risk.

Mike Askew 131 Veteran Poster Featured Poster

To avoid the risk of losing data there are devices such as external harddrives which will allow you to backup files.

The process of partitioning is pretty easy using macs own built in tools, I just did mine by booting from the OS disc and partitioning using the HDD management tools on it (bootcamp)

Mike Askew 131 Veteran Poster Featured Poster

There is a relatively limited range on Mac, I found all the IDE's definately lack the additional extras VS provides such as intellisense. Personally I would go for the boot partition and VS.

MonoDevelop is the only one I've heard of and I dont remember liking it when I used it, all preference though.

Mike Askew 131 Veteran Poster Featured Poster

It's fine to add to it, it's stickied so that it is seen regardless of how inactive it is :)

Mike Askew 131 Veteran Poster Featured Poster

I've also done something with tab controls before and hooking into the draw at run time to hide the actual tabs showing, then programatically hopping between the two. Would need to google to find it again though.

ChrisHunter commented: I've not done it myself but I've seen it done +4
Mike Askew 131 Veteran Poster Featured Poster

Well I've personally done that before by laying out all the components of both parts and then controlling what is visible at load and then after button press to show/hide bits. However there may be a tidier option.

Mike Askew 131 Veteran Poster Featured Poster

Do you mean as in move objects around on button click?

Mike Askew 131 Veteran Poster Featured Poster

Bump for those who haven't seen.

Mike Askew 131 Veteran Poster Featured Poster

I'm pretty sure it's in my Daniweb contract somewhere that I have to crush dreams on a regular basis.

But but but... the Unicorn/MyLittlePony fills me with hope of happiness!

<M/> commented: haha +0
Mike Askew 131 Veteran Poster Featured Poster

Yeah Mitch I personally took the week off work and don't return till the new year now so enjoying relaxing for a while :)

Mike Askew 131 Veteran Poster Featured Poster

Man, using a phone to use daniweb on will be a huge pain... if your going to put code up or something like that... sorry Dani...

Nobody would put code up from a tablet device anyway by hand writing it. I don't know of any IDE's that exist on them. Even if they did exist tablets have copy and paste functionality. Let alone a mobile phone. I only ever use my phone to reply to short posts that do not really need code functionality

Mike Askew 131 Veteran Poster Featured Poster

Title states all.

Best wishes, don't think I will be too active over the actual period so shall say it now :)

Mike Askew 131 Veteran Poster Featured Poster

Im pretty sure it is the top kudos member for the page your looking at. Hovering over the image lists kudos amount and they are in descending order, left to right.

Does leave me with a sense of pride that the only member that has kudos in XML, XSLT and XPATH :)

Mike Askew 131 Veteran Poster Featured Poster

Ah fair enough, tis kinda cool anyway :)

Mike Askew 131 Veteran Poster Featured Poster

I tried to write something

You've achieved declaring two variables and instanciating them, though I must point out even the instanciation will not work as your intending with its current setup, it would set both variables to the same value.

What are you trying to achieve exactly at present? Ie. what is the current goal of the above code? It is not exactly clear. Maybe then some help may be provided, however remember we are not here to write all the code for you, which at present it looks like is required unless I'm getting the wrong end of the stick :)

Mike Askew 131 Veteran Poster Featured Poster

How long has the Page rendered in 0.1497 seconds using 3.33MB etc message been around on this site :o

Am I that ignorant to not have noticed it before? Caught my eye a second ago haha.