Alright, I might got a detail wrong, but 5 one-line posts for someone with 5 posts, it's pretty weird in my opnion.
Nontheless, hope u get ur answers.
Alright, I might got a detail wrong, but 5 one-line posts for someone with 5 posts, it's pretty weird in my opnion.
Nontheless, hope u get ur answers.
mrkm, did you check the ViewState?
Show us what you tried. Nobody is here to code for you. We just help.
No gamers here? Steam!
Steam community it's huge! It's almost only about gamming, but there's a few design group as well.
Lot's of forum threads, messages, videos, images, you name it!
Sorry that I can't help you with it, those are languages that I know very little about.
Hope somebody will come and guide you. I'm curious.
Did you find an alternative?
What do you mean by powerfull? Most secure? The one you have most control over memory management and hardware? The one with the best performance? The most dynamic? The one that you write less and do more? Or you just want to know what we like?!
I think you wanna know what we like... so... I like JavaScript!! Only because it's so dynamic and unpredicable!
document.getElementById = function() { alert("I don't care!"); };
You can actually change any API at run time at your own crazy, nonsensed, will!
That is just too much fun not to love it!
Oh Dave, you joker!
But I pracited a little more of PS, so it's all good =P
Anyway, I went with the first option on my site.
You can see how bad I'm at design: the first 3 icons were made by some real designer(http://www.flaticon.com/), and the last 3 by me ^^.
Still open to suggestions, but I guess I'll close this.
Ok, so you'll need to use the external IP from your home. If you go to https://www.whatismyip.com/ you'll see your external ip.
Be aware of:
1. If you have firewall and/or router in your home, you'll need to configure them to open the SQL Server requested ports.
2. If you don't explicit request for a fixed IP, most ISP will provide you with DHCP, that will probably change your external ip from time to time (depending on the ISP settings)
What's inner datalist? What is outter datalist?
What language are you using?
What are you trying to do?
Where's your code?
I'd go with something like this:
SELECT
id, answer_5,
CASE
WHEN answer_6 = 'Now' THEN cast(GETDATE() as date)
WHEN answer_6 IS NULL THEN cast('1990-01-01' as date)
ELSE cast(answer_6 as date)
END AS new_answer_6
FROM tDataMult
As Slavi said, Tor will give you some anonimity and it's really easy to setup and use.
I've been using it for a couple of weeks and it does the job.
Besides the lower load speed, there's only one more thing that bothers me about Tor: if your request reaches the destination(google for example) trough a node that was trying to "abuse" the destination(because other Tors users were trying to do so), it'll ask you for captcha after captcha, and some are quite hard! I mean, I may be blind, but for one site I tried 10min without success!
As far as I can tell, this captcha thing appears on any site that uses Google Ads.
Troy, I may be wrong, but I think Dave was only trying to wrap all of Cat's code inside the Cat function.
And there's a way of doing something similar to it:
var Animal = (function() {
var _somePrivateFunction = function() {
alert("Animal: I'm Private!");
};
var animal = function() {
};
animal.prototype.breathe = function() {
alert('Animal: Breathing');
};
animal.prototype.callPrivateFunction = function() {
_somePrivateFunction();
};
return animal;
}());
var Cat = (function() {
var cat = function(name) {
this.name = name;
};
cat.prototype = Object.create(Animal.prototype);
cat.prototype.purr = function() {
alert('Cat ' + this.name + ' : puurr');
}
return cat;
}());
var myAnimal = new Animal();
var myCat = new Cat("Olinda");
myCat.purr();
myCat.breathe();
myCat.callPrivateFunction();
var tests = [
("Is myCat.breathe === myAnimal.breathe ? " + (myCat.breathe === myAnimal.breathe)),
("Is myCat an instanceof Cat? " + (myCat instanceof Cat)),
("Is myCat an instanceof Animal? " + (myCat instanceof Animal)),
("Does _somePrivateFunction exists? " + (typeof _somePrivateFunction === 'function'))
];
alert(tests.join("\r\n"));
Hi Simon, I can't suggest you one specific cause I've never used one similar to what you want.
But I can say there's hundreds of jQuery Menu plugins that can be customized to do as you wish.
One of the most basics, that you would need to play with CSS to get the desired result is jQuery UI Menu. It's simple but quite powerful if you know you're way arround CSS and jQuery.
If you want something more "ready" to use, take a look at some compilations of jQuery menu plugins (there's lots out there):
http://www.webmaster.pt/76-menu-jquery-14624.html
http://www.freshdesignweb.com/css-drop-down-navigation-menu.html
http://www.jqueryrain.com/example/jquery-menu-example/
I'm certain that the one you're looking for already exists.
Then, after you tried some, we can help you customize it if you need =)
@JorgeM, good question... I actually assumed it was on server side because the post is on ASP.NET Forum, but who knows, right?!
At this point I'd go with JorgeM suggestion, it should exclude some options for your problem.
There's lots of linux live distro, the last one that I used was Kali Linux, quite easy to use it: http://docs.kali.org/category/downloading
zakn, it seems that you created 5 posts with one-line question in each one that actually are about the same project, that you probably didn't search about at all.
If you really want our help, you should create only one post explaining what you're really trying to do, what you already was able to do and what you have difficult doing.
If you think we are going to give you pieces of code for each of yours "homework questions", you're quite wrong.
If you really want help, act like it.
So where are your database going to be? Each client will have it's own DB? Will there be only one DB on the web for all clients?
The IP you should use depends on where your app should find the DB.
Why do you add two links to 'jquery.validate.min.js' and also setup .validate() two times? Just add the link one time and also call one time the .validate() method with all the rules that you want.
And it really make it easier to us to help if you can setup a jsfiddle for your demo(should be quite simple).
ASP.NET ViewState should take care of that for you. Just make sure that your page has EnableViewState = true
.
Some resources that can help you understand the issue:
http://www.w3schools.com/aspnet/aspnet_viewstate.asp
https://msdn.microsoft.com/en-us/library/ms972976.aspx
http://www.codeproject.com/Articles/31701/ViewState-and-Postback
Are you using two accounts? Why?
And I'm sorry man, but as Dave said, it's quite hard to understand what you want.
Post more of your code to see if we can decifre it.
dbissu, if I undertand correcly, you want to use the returned value of 'getTextValue()' and use it to set one label on the codebehind? If that's it, you can't do it, or at least, you shouldn't.
Instead, why don't you set the label value from JavaScript?
$(function() {
$("#yourLabelId").text(getTextValue());
});
You don't need to use ScriptManager at all.
hpox, "does not work" is not a clear definition of a problem.
Did you open the developer console? Does it show any errors?
Only local page doesn't work or any page? Did you check internet security options?
Windows 8 interface is basically the same as Windows 7 with a optinal additional "square tiles"(forgot how they're calling it after "Metro") interface for shortcuts and search(that I don't like and don't use).
Just press your windows-key to get back to the old desktop and, if you know Windows 7 well, you'll do just fine.
Hi Yuki.
DataGridView.Columns
is a collection that you can manipulate as you wish.
There's a couple ways of doing it, one way to just add one more columns is:
this.myDataGrid.Columns.Add(new DataGridTextColumn() {
HeaderText = "My Column",
Name = "My Column",
DataPropertyName = "MyDataName"
});
Be aware that exists more than one type of DataGridViewColumn, see more here.
And are you developing Windows Forms on Visual Studio?
If you are, when you create something on with the VS UI, like adding columns to your grid, or a button, VS actually generates a file named 'YourFormName.Designer.cs'. In that file you can learn how VS creates all what you can see the on UI come true as code. It's a nice way to learn how to create programatically what VS gives you on the UI.
piers, this return value based on negative/positive values are only for the JavaScript Array.sort method, is not from jQuery itself.
And why does Array.sort works on a jQuery object? Well, because every jQuery object is actually a JavaScript Array. That's why you can always check if the jQuery object has elements using $(".myselector").length;
You can read more about the .sort function at: http://www.w3schools.com/jsref/jsref_sort.asp
Oh, I just started whatching and I'm loving it!
You're welcome Manish, and hope that'll enjoy the forum.
If you don't have any more questions regarding this issue, you can mark as solved.
I'm glad to know that it worked =)
jQuery.sort(a, b) need us to define which one those come first.
And we'll decide who comes first based on our stored indexes at current_order
So return current_order[$(a).attr('id')] - current_order[$(b).attr('id')];
would be easier to read like this:
var aIndex = current_order[$(a).attr('id')];
var bIndex = current_order[$(b).attr('id')];
// if aIndex > bIndex => returns positive value (meaning that b comes first)
// if aIndex < bIndex => returns negative value (meaning that a comes first)
// if aIndex == bIndex => returns 0 (meaning that it doesn't matter)
return aIndex - bIndex;
Sorry Dave, my bad, I was so sure of my explanation that I didn't test it =(.
And I guess my explanation is false, because:
var a = function() { alert('X'); };
var b = function() { alert('X'); };
// a === b => false
// a.toString() === b.toString() => true
But you know, one of the things that I love about JS is that it's easy to test it and find out that you're wrong ^^
Anyway, one of the things that I tried to show later in that post is that using Cat.prototype = Object.create(Animal.prototype);
makes instanceof
work properly.
Hi Manish.
You want to display only months that have events but you're not checking if the current month has events or not.
You could do something very simple, that'll just try another month if that one doesn't have an event, like this:
$numEvents = 0;
while( $numEvents == 0 ) {
// generate an array with all dates with events
$sql = "SELECT * FROM ".$SETTINGS["data_table"]." WHERE `event_date` LIKE '".$cYear."-".$cMonth."-%'";
$sql_result = mysql_query ($sql, $connection ) or die ('request "Could not execute SQL query" '.$sql);
$numEvents = mysql_num_rows($sql_result);
if ( $numEvents == 0 ) {
// Logic to search for the next month, like $cMonth = $cMonth + 1;
}
}
But the best solution would be to query the months before searching. I mean, find the next month in wich there's a event(without trying them all). Something like:
"SELECT DISTINCT YEAR(`event_date`), MONTH(`event_date`) FROM ".$SETTINGS["data_table"]." WHERE YEAR(`event_date`) >= ".$cYear." AND MONTH(`event_date`) >= ".$cMonth." ";
Hi tqmd1, what version of jquery and of cycle are you using?
One thing that you can try it's to specify the size, like this:
$('#slider1') .cycle({
fx: 'fade', //'scrollLeft,scrollDown,scrollRight,scrollUp',blindX, blindY, blindZ, cover, curtainX, curtainY, fade, fadeZoom, growX, growY, none, scrollUp,scrollDown,scrollLeft,scrollRight,scrollHorz,scrollVert,shuffle,slideX,slideY,toss,turnUp,turnDown,turnLeft,turnRight,uncover,ipe ,zoom
speed: 'slow',
timeout: 2000 ,
width: '625px',
height: '345px',
fit: true
});
You're welcome =)
Just mark as solved if you don't have any other questions regarding this subject.
I'm gonna jump in on this, seems fun! ^^
I think the reason that alert(t.breathe === s.breathe); is false is because my Animal function does not return an Animal it all - it returns an anonymous object. I don't think you need to actually use prototype to setup an Animal. You can do it as below and then the functions are equal.
function Animal()
{
function privateFunction()
{
alert("I m private");
}
function breathe()
{
alert("I am breathing");
}
function eat()
{
alert("I am eating");
}
}
var t = new Animal();
var s = new Animal();
alert(t.breathe === s.breathe);
Dave, the reason t.breath !== s.breathe it's because every time a new Animal is created it will create a function inside of it named 'breathe'. You see, you 'class' Animal doesn't have any prototyped methods, but when the object is cronstructed it creates those functions only for that object instance. That's why t.breath !== s.breathe.
I guess I use the 'default' layout for prototyping, but there's no real private function, only '_' methods.
var Animal = function() {
};
Animal.prototype.breathe = function() {
alert('breathing');
};
var Cat = function(name)
{
this.name = name;
};
Cat.prototype = Object.create(Animal.prototype);
Cat.prototype.purr = function() {
alert('puurr');
}
var myAnimal = new Animal();
var myCat = new Cat();
myCat.purr();
myCat.breathe();
alert("Is myCat.breathe === myAnimal.breathe ? " + (myCat.breathe === myAnimal.breathe));
alert("Is myCat an instanceof Cat? " + (myCat instanceof Cat));
alert("Is myCat an instanceof Animal? " + (myCat instanceof …
Hey, I think this should work for you:
// Store the Ids order
var current_order = {
'set_1' : 0,
'set_2' : 1
};
// If there's no previous order, create it with default values
if (JSON.parse(localStorage.getItem("sorted"))== " ")
{
localStorage.setItem("sorted", JSON.stringify(current_order));
}
$(function(){
// Get last saved order
current_order = JSON.parse(localStorage.getItem("sorted"));
console.log("returning"+current_order);
// Sort container
$( "#container" ).sortable({ cursor: "pointer",
placeholder: "highlight",
update: function(event, ui){
// When an element is sorted, update all the Indexes at current_order
$(this).children('div.innercontainer').each(function() {
current_order[$(this).attr("id")] = $(this).index();
}).get();
}
});
//Disable text selecion
$( "#container" ).disableSelection()
//Sort the divs based on the current_order
$("div#container").append(
$("div.innercontainer").sort(function(a, b) {
var sorted = current_order[$(a).attr('id')] - current_order[$(b).attr('id')];
//console.log(sorted);
return sorted;
})
);
});
Obs.: Not tested ^^
Ok... here it goes... but remember, I'm not a designer =)
And the font ain't right.
Oh Dave, I hand't see you there... alright! Gonna try some things and I'll be back with some options ^^
Yeah, I know... but until you make a version of it with an square icon, I don't have much choice. Just kidding! =P
I love the badges, but the thing is that I don't know exactly what I'm gonna do with this site, for now just gonna link where I'm to find me with a couple of drawings.
With too much on my mind to do, I need do it in small parts, otherwise nothing will be done.
Gonna use this one for now ^^
Hello hello.
I'm remodeling my personal website, and I'd like to stack the links as flat icons, pretty much as facebook, linkedin and etc appears on here.
So, instead of the badge I'd like to show an icon to keep the layout, but I couldn't find one for DaniWeb. Am I blind again?
Based on the favicon, I just enlarged it... What do you think? Can I use it on my site?
Cheers!
Hi Rik.
Do you want just an website that will be consumed by a browser or do you want to build your own client as well?
When browsing the web, your browser is client, that makes an request to port 80 on the server. In this server there will be an Web Server(Apache or IIS for example) that will be listening to port 80 and will process the request and return some data.
If you just want a website hosted on Linux, you could easily build it with PHP and host on Apache.
If you want your own client(not a browser), you could use Java, Python, Perl or Ruby on Rails to make the request and handle the result.
About the linux distritubions I can't say because I played with very few and would be better to listen to someone that actually deploys Linuxs servers =)
Oh, ok. Should be like this:
public string SetGrade(float score)
{
if (score>=90.0f)
grade="A";
else if (score>=80.0f)
grade="B";
else if (score>=70.0f)
grade="C";
else if (score>=60.0f)
grade="D";
else
grade='F';
return grade;
}
So... you just post some code... now what? Nobody here can read your mind to know what problems you are having with this code.
Explain your self! At least say what you're trying to do and where you are stuck at.
By the way, you are missing an '{' after your namespace declaration.
If you know exactly what you want to remove, just use replace:
$list = str_replace("5:1", "", $list);
Some helpful links:
http://php.net/manual/en/function.str-replace.php
http://php.net/manual/en/function.substr-replace.php
Ok, I got what you want. But let me say, you don't need to change Ids for this.
What you need is to store the Id and his order.
Take a look at this: http://jsfiddle.net/86nu1wkw/2/
It's simple but it does what you need. If you change the indexes on current_order
you'll see that they are displayed correctly.
You'll just need to store that info and get it as you already do with localStorage.
I didn't understand much of what you are trying to do.
You have two divs with Ids: set_1 and set_2.
So, do you want to change thoses Ids for what?
Yes, it is. You can use --replicate-ignore-table
and --replicate-wild-ignore-table
.
As explained here: http://dev.mysql.com/doc/refman/5.1/en/replication-features-temptables.html
So... you posted some code, but what's your question or your problem?
Don't just throw code, explain yourself, at least say what you got and want want.
And your code seems duplicated.
I wouldn't suggest using external script references.
Just download the jquery file from jquery.com, put in the same folder and use like this:
<script type="text/javascript" src="jquery.1.x.js"></script>
And the jQuery functions used are very basic, I think this would work with 1.6 or higher.
Use sessions to stored the logged in user.
When the users logs in you need to save that info(UserId for example) on the Session.
And in every page load you must check if the session is valid.
If there's no session it means that the user did not logged in, so you can redirect him to the login page.
Simple logic.