Submission Notes
...
If you were referred, the referral prize ($500) will be paid to the referring user from the total prize pool of $5,000.
...
Probably?
Submission Notes
...
If you were referred, the referral prize ($500) will be paid to the referring user from the total prize pool of $5,000.
...
Probably?
Hmm try this after declaring cb and before filling data_table?
cb.QuotePrefix = "["
cb.QuoteSuffix = "]"
Wrap column names containing spaces with [ ].
You're setting the layout on your frame, which includes a single object, which is a panel. It's the panel you need to set the layout of, because it's the one that contains your label and button.
Your chrome bookmarks, passwords and other data are synced with your google account. That way, you can still access your data in another computer, provided you log in your account. I think they are planning on integrating android browser data into that sync as well (or they already have, and I haven't heard about it xD).
In essence, isn't your query trying to get rows within the week starting from today, and not the week prior?
E: nevermind, it works for me >.< BTW in your first post it said May, and your most recent one is June. Which is it?
If you don't use curly braces, only the command immediately after the if statement will be conditional. Any succeeding commands will not rely on the if statement. If you want more than one command to be conditional, place them in a block (use curly braces).
In your code, y is evaluated regardless of the value of n.
I used to use IE. Then came the crashes in IE 6 or 7 (forgot). Tried firefox for a while. When chrome was released, I said to myself 'Move away from the mainstream'. I loved how fast it was compared to others and then I've been using it since. I tried eventual IE releases just to see each one. Bleh, crashes. Tried firefox 20 something on one of the school computers (we weren't allowed to install anything, and there was no chrome installed). Bleh, crashes worse than IE. Haven't tried other browsers.
Use categories.get(#) to get individual elements of the arraylist. Use a for each loop to get all elements of the arraylist. Use one or the other, not both (usually, that is). JamesCherrill was just showing you both at the same time just to compare.
Anyway, inside your for loop, lines 11 and 12, since you assigned each element of categories to currentObject, use currentObject.toString() and currentObject.getCarbonFootprint()
Nevermind the for loops. I was just showing you that kvothetech's solution works for all 24 combinations of 1, 2, 3 and 4. Since you asked...
Code
#include <stdio.h>
int main(int argc, char *argv[])
{
int i, a, b, c, d, w1, w2, l1, l2, x, y, arr[24][4];
i = 0;
//just to come up with permutations
for(a=1;a<5;a++){
for(b=1;b<5;b++){
for(c=1;c<5;c++){
for(d=1;d<5;d++){
if(!(a==b || a==c || a==d || b==c || b==d || c==d)){
arr[i][0]=a;
arr[i][1]=b;
arr[i][2]=c;
arr[i][3]=d;
i++;
}
}
}
}
}
for(i=0;i<24;i++){
//for each combination calculates max and min
if(arr[i][0]>arr[i][1]){
w1 = arr[i][0];
l1 = arr[i][1];
}
else{
w1 = arr[i][1];
l1 = arr[i][0];
}
if(arr[i][2]>arr[i][3]){
w2 = arr[i][2];
l2 = arr[i][3];
}
else{
w2 = arr[i][3];
l2 = arr[i][2];
}
if(w1>w2)
x = w1;
else
x = w2;
if(l1<l2)
y = l1;
else
y = l2;
printf("%d%d%d%d - %d %d\n", arr[i][0], arr[i][1], arr[i][2], arr[i][3], x, y);
}
system("PAUSE");
return 0;
}
Output
1234 - 4 1
1243 - 4 1
1324 - 4 1
1342 - 4 1
1423 - 4 1
1432 - 4 1
2134 - 4 1
2143 - 4 1
2314 - 4 1
2341 - 4 1
2413 - 4 1
2431 - 4 1
3124 - 4 1
3142 - 4 1
3214 - 4 1
3241 - 4 1
3412 - 4 1
3421 - 4 1
4123 - 4 1
4132 - 4 1
4213 - 4 1
4231 - 4 1
4312 - 4 1
4321 - 4 1
Okay... logic reasoning here..
Suppose you have a, b, c and d
group those into 2 pairs, ab and cd
if a is greater than b, a cannot be the minimum anymore because it is greater than something, whereas b cannot be maximum anymore.
if c is greater than d, c cannot be minimum and d cannot be max.
You don't have to compare b or d to anything else to get max. So go with the winners a and c.
You don't have to compare a or c to anything else to get min. So go with the losers b and d.
Understand?
Min and Max can be both at AB (or CD). What are you talking about? Can you explain why you think otherwise using logic?
kvothetech's link and solution is actually correct.
It involves four (if-else) pairs.
If you or anyone you allow access to the data need easy access whenever and almost wherever, then go cloud. Just make sure that you have other means of backup.
Backup leaks cannot totally be prevented. The cloud service team will probably have access to your data and you have no control over what they do. That is why I said you can personally apply encryption to your backup before storing them on cloud. The current strongest encryption algorithms will probably take years if not decades to be cracked by the strongest computers in the market. And you can use a combination of these algorithms. If you can't trust these algorithms, what can you trust?
If you don't need access to the data on the go, don't bother going cloud. Unless of course if you are an enterprise and require professional management of your data.
Security regarding what? Loss of data or access to it or illegal access?
For the former, redundancy. Backup of the backup of the backup........
For the latter, personal encryption in addition to cloud service encryption.
Use Left$
to get the substring, starting from the first character, with a length specified by you.
404 not found. Please check the link.
@Ketsuekiame ATI 5870. I believe that that my laptop can and should support 8. It's just that Asus hasn't updated drivers for this thing, and 3rd party drivers from asusrog members don't seem to completely work. If I can find drivers that finally work, maybe I'll give 8 another try. I got the license for free and not using it would seem a waste. When that happens, can I ask for your help regarding the games problems? :P
@NardCake ROFL at "working with Windows 8 support to resolve the issue"
Is this really something to pull an OS up on?
Which one? As you said, desktop mode is similar to 7 so for me it's not a significant factor. While I should be hating metro mode because it fills the entire screen of my bigger than average(?) display, there are ways to make them appear as desktop apps.
Please give examples of the games that are now incompatible on Windows 8 but work on Windows 7
Hmm games that use Games for Windows Live. Well, the games that I play anyway. I just can't get one to run after everything I did.
Yes there is. Perhaps not in the basic version? I am running Professional
I used professional too. I dislike how I have to run netsh commands everytime I want to start an ad hoc connection.
For what hardware?
My laptop. I can't find a suitable driver for my video card. For months, I couldn't watch 3D movies because the drivers can't support 3D. It overheats as well after an hour of intensive gaming.
Anyway, I don't see any problems in the new Start menu. While I used it occasionally (for those easy to find ones xD), I prefer searching for my programs instead of looking for them in the menu.
I'm guessing that every OS they release is either a mainstay or a transistion OS.
From the OS that I have actually 'played' with:
3.x - mainstay
95 - transition from 3.x to a bootable object oriented gui OS that resulted into...
98 - mainstay
ME - transistion from 98 to a user-friendly design that resulted into...
XP - mainstay
Vista - transition from XP to a revolutionary design that resulted into...
7 - mainstay
8 - transition from 7 to an app-centered fast and light OS that's tablet-like in nature that will result to...
? - who knows... high-powered tablet/pc OS?
Er, it's there. under "Tags: Click to add Tags..."
It's a cropped image showing part of the taskbar.
@OP you could try refreshing the icon cache
After months of running Windows 8, I recently went back to 7. Somehow, I like 7 better than 8.
What I liked about 8:
-fast and light
-good search speeds and results
What I disliked about 8:
-lackluster graphical design (IMO)... to be honest, I was sad when they stopped using aero
-some games I play now are incompatible with 8
-no ad hoc network support
-STILL no satisfactory drivers for my setup
Based on where MS is going with Windows, I predict that I'll be sticking with 7 until they stop supporting it. I'll then be forced to move on to windows... 10? 11? Who knows when 7 will die? After all, XP still has exactly (at the time of this post) 1 year before it officially dies.
You're gonna check each character one by one if it is in fact a digit.
How about If not IsNothing(sender) AndAlso ....
?
relations[]
is an array of double.
relations[i]
is just a double, not an array of double. It is, of course, not compatible to double[8]
which is an array of double.
Can you successfully ping external networks? Try pinging 8.8.8.8 or 4.2.2.2
USB keyboard? Any other USB device you've added recently? Have you tried another keyboard?
Personally, I've experienced a similar situation before. It was when I connected both a keyboard and a bluetooth adapter to a 4 port USB hub. The adapter seemed hog the power offered by the single USB port, giving the keyboard a hard time keeping up.
Yea, that's good. Just remember to use the parameter name in the query.
You don't need to define the parameters in the front-end, so no need for Dims. They need to be defined in the back-end, and the Parameters.AddWithValue does exactly that.
1) Yes, we define the search criteria. WHERE specifies conditions for the search. @lastName and @phone are parameters. au_lname like @lastName means that we are looking for records such that au_lname field is similar to whatever @lastName holds. AND phone like @phone, we are looking for records where phone field is similar @phone value in addition to the lastname condition. For more information on SQL syntax, click me.
2) Those lines basically define the parameters and set their values.
Sir Jim's example would be flagged as palindrome because the spaces are symmetrical.
How about this one? "A nut for a jar of tuna". Without normalizing, it will not be flagged as one.
Try using an external microphone or temporarily mute the internal mic. I've had that problem and it turned out to be my internal mic causing it. Let us know the results.
I can't seem to find that option in the default browser for gingerbread. I'm downloading Firefox and see if that works. Shame that chrome is not compatible for my 7 inch tab.
Edit. yup, logged in using firefox.. laggy and ugly though. I'll look at the settings later.
Hot. Very hot here.. Mid 30s Celsius high for the past few days.
Yeah, the problem's on my end. I can't compile any Cs or Cpps. Which is why I was asking OP what the error is.
What's the error? Something's wrong with my dev C compiler, so I can't even compile.
And do you even need all those references?
You're gonna have to show a bit more of your code. Particularly the lines above that.
<thoughts>
<religion>
If God is allpowerful, is it possible for God to create something even greater? If yes, then God is not the most powerful entity in existence. If no, then there is something that even God cannot do, therefore God is not allpowerful.
</religion>
<math>
Infinity is a peculiar thing. In its most basic definition, it's a number representing the upper limit of the natural number system. This upper limit cannot be exactly grasped by human comprehension. After all, for every number, there will always be an even greater number. In order to even comprehend that unknown upper limit, it is represented by infinity ∞.
One of the Rules regarding ∞:
∞ + L = ∞ where L is any number: the upper limit theoretically should be the highest number, but since its true value is unknown, it is assumed that because it is so great, any other number would be so miniscule in comparison such that the result of adding such a number to it would be negligible.
</math>
<comparison>
Maybe God, like infinity, is a term that represents the upper limit of existence - an upper limit that cannot be fully comprehended by humans? We are not sure if that upper limit actually exists. We are not sure if there is a being in that upper limit. There is only our proverbial interpretation of that upper limit which is God. If this is true, God, as a representation, exists with …
I, too, can't log in using my mobile (galaxy tab). The screen dims as if the log in box appeared, but I didn't even see the box and the screen lightened up again in a second anyway.
^That. And with ds being empty, the dgv would of course be blank. Correct me if I'm wrong, but shouldn't strings in the query be between single quotes?
First of all, unless you place all those pictureboxes in a list<of pictureboxes>, you cannot fill them using a loop; you're gonna have to fill them manually.
Secondly, there is no need for con.Open.
Ok. If that's the case, there's no need retrieve the record(s) with the highest number of votes.
You could use a DataAdapter instead of DataReader for your sqlcouncil
query (and select all fields, not just num_of_votes), place the result into a DataTable, and retrieve the first 8 rows.
Lines 1 to 11 gets table with all votes in descending order.. ok
Lines 14 to 18 basically retrieves the highest number of votes.. not really necessary, is it?
Lines 21 to 27 gets the record(s) with the highest number of votes, meaning it gets only 1 record unless there's a tie
Lines 29 to 30 retrieves the image of the first (and only if there's no tie) record retrieved
I'm confused. Where exactly do you intend to place images of winning candidates? How many images would be there to display? You've only 1 control that can display an image, namely piccouncil1.
Use desc with order by to get a descending table
select num_of_votes from tblCouncilors order by num_of_votes desc
The most recent game I spent a lot of time on was Shaiya. Now, I just started playing Diablo 3.
Posted too soon. Now I'm guessing 6, by virtue of elimination.
I'm guessing 7, provided that each horse run at constant speed for every race, and no timers are used.