question_id
int64
4
6.31M
answer_id
int64
7
6.31M
title
stringlengths
9
150
question_body
stringlengths
0
28.8k
answer_body
stringlengths
60
27.2k
question_text
stringlengths
40
28.9k
combined_text
stringlengths
124
39.6k
tags
listlengths
1
6
question_score
int64
0
26.3k
answer_score
int64
0
28.8k
view_count
int64
15
14M
answer_count
int64
0
182
favorite_count
int64
0
32
question_creation_date
stringdate
2008-07-31 21:42:52
2011-06-10 18:12:18
answer_creation_date
stringdate
2008-07-31 22:17:57
2011-06-10 18:14:17
6,199,574
6,199,646
Keyboard shortcut to close the Find and Replace dialog
In Visual Studio, I type CTRL-F to open the Find and Replace dialog. I can search with F3 or ENTER. This brings me to the next hit, with the focus on the window where the text was found. However, the Find and Replace dialog is still there. If I press ESCAPE the window loses focus, but it doesn't go away. I end up havin...
Use.. Command Name | Short-Cut Key | Description ----------------------- | -------------- | ------------------------------- Window.CloseToolWindow | SHIFT + ESC | Closes the current tool window
Keyboard shortcut to close the Find and Replace dialog In Visual Studio, I type CTRL-F to open the Find and Replace dialog. I can search with F3 or ENTER. This brings me to the next hit, with the focus on the window where the text was found. However, the Find and Replace dialog is still there. If I press ESCAPE the win...
TITLE: Keyboard shortcut to close the Find and Replace dialog QUESTION: In Visual Studio, I type CTRL-F to open the Find and Replace dialog. I can search with F3 or ENTER. This brings me to the next hit, with the focus on the window where the text was found. However, the Find and Replace dialog is still there. If I pr...
[ "c#", ".net", "visual-studio-2010", "keyboard-shortcuts" ]
9
11
4,616
3
0
2011-06-01T10:14:43.113000
2011-06-01T10:22:10.180000
6,199,583
6,199,719
using group by and maximum
I have a post table and postcontent table. Each time post is edited,an entry is added to postcontent table. On each such time a filed called version will be incremented by 1 In the postcontent table. How can I fetch PostId, from post able and [Description] from to postcontent table Where version for each post is maximu...
SELECT p.[PostID], pc.[Description] FROM [Post] AS p INNER JOIN [PostContent] AS pc on p.PostID = pc.PostID WHERE pc.[Version] = (SELECT MAX([Version]) FROM PostContent WHERE PostID = p.PostID)
using group by and maximum I have a post table and postcontent table. Each time post is edited,an entry is added to postcontent table. On each such time a filed called version will be incremented by 1 In the postcontent table. How can I fetch PostId, from post able and [Description] from to postcontent table Where vers...
TITLE: using group by and maximum QUESTION: I have a post table and postcontent table. Each time post is edited,an entry is added to postcontent table. On each such time a filed called version will be incremented by 1 In the postcontent table. How can I fetch PostId, from post able and [Description] from to postconten...
[ "sql", "t-sql" ]
3
1
63
3
0
2011-06-01T10:15:56.287000
2011-06-01T10:28:19.680000
6,199,585
6,199,700
What is the difference between lineHeight and leading?
I understand that, in ye olden days of typesetting, 'leading' was the total height of the lead blocks used for the letters - i.e. the height of the lines. So, in my UITextView, what is the difference between textView.font.leading and textView.font.lineHeight? Both return the same values in NSLogs in the fonts I've trie...
Deprecated in iOS 4.0 leading The receiver’s leading information. (read-only) (Deprecated in iOS 4.0. Use the lineHeight property instead.) @property(nonatomic, readonly) CGFloat leading Discussion The leading value represents the spacing between lines of text and is measured (in points) from baseline to baseline. Avai...
What is the difference between lineHeight and leading? I understand that, in ye olden days of typesetting, 'leading' was the total height of the lead blocks used for the letters - i.e. the height of the lines. So, in my UITextView, what is the difference between textView.font.leading and textView.font.lineHeight? Both ...
TITLE: What is the difference between lineHeight and leading? QUESTION: I understand that, in ye olden days of typesetting, 'leading' was the total height of the lead blocks used for the letters - i.e. the height of the lines. So, in my UITextView, what is the difference between textView.font.leading and textView.font...
[ "iphone", "cocoa-touch", "fonts", "uitextview", "uifont" ]
2
4
2,368
1
0
2011-06-01T10:16:09.587000
2011-06-01T10:26:25.507000
6,199,589
6,199,662
Segmentation Fault for numeric input
I'm writing my first ever program in C and it's giving me a lot of problems. It's fairly simple; input a number and the output will be the corresponding term in the Fibonacci sequence where the first and second terms are 1. It was initially working as long as I didn't put anything other than a number as the input; lett...
n is unitialized and it points to nowhere. strtol will try to write to the memory address pointed to by n, which could be anywhere in the memory and it is likely not pointing to an area where you are alloweed to write. Simply pass a null value there (i.e. strtol(c, 0, 10) ). By the way, I'd try to use sscanf to parse t...
Segmentation Fault for numeric input I'm writing my first ever program in C and it's giving me a lot of problems. It's fairly simple; input a number and the output will be the corresponding term in the Fibonacci sequence where the first and second terms are 1. It was initially working as long as I didn't put anything o...
TITLE: Segmentation Fault for numeric input QUESTION: I'm writing my first ever program in C and it's giving me a lot of problems. It's fairly simple; input a number and the output will be the corresponding term in the Fibonacci sequence where the first and second terms are 1. It was initially working as long as I did...
[ "c", "segmentation-fault", "strtol" ]
2
4
3,148
2
0
2011-06-01T10:16:14.073000
2011-06-01T10:23:38.977000
6,199,590
6,201,919
C# Application - this.show() and this.hide() causing app to hang
I have a C# app which I want to run from a tray icon. Basically it shouldn't show in the taskbar when minimised but when the tray icon is double clicked the app window should show as normal. To achieve this I am using this.Show() and this.Hide() which do exactly what I want. The issue I'm having is that for some users ...
When are you calling this.Show and this.Hide? Can you compare or try the method detailed at http://www.developer.com/net/net/article.php/3336751/C-Tip-Placing-Your-C-Application-in-the-System-Tray.htm If this is not done correctly, then I think you can get into a situation where the O/S is confused about a forms state ...
C# Application - this.show() and this.hide() causing app to hang I have a C# app which I want to run from a tray icon. Basically it shouldn't show in the taskbar when minimised but when the tray icon is double clicked the app window should show as normal. To achieve this I am using this.Show() and this.Hide() which do ...
TITLE: C# Application - this.show() and this.hide() causing app to hang QUESTION: I have a C# app which I want to run from a tray icon. Basically it shouldn't show in the taskbar when minimised but when the tray icon is double clicked the app window should show as normal. To achieve this I am using this.Show() and thi...
[ "c#", "visual-studio-2008", ".net-3.5" ]
2
0
1,097
1
0
2011-06-01T10:16:15.233000
2011-06-01T13:28:03.093000
6,199,594
6,199,663
Span to input text to span
Possible Duplicate: What's the best edit-in-place plugin for jQuery? For example, when you click on a span, it becomes an input-text, and when you click outside the span it becomes an span again, and you could edit the input text. So you basicly change the tag name when you click on it. But how can you do that? Showing...
Here, take a look at that, it's simplified, but should help you: http://jsfiddle.net/RUwtt/ Html: My value here! Javascript: $(function () { $('span').live('click', function () { var input = $(' ', {'type': 'text', 'name': 'aname', 'value': $(this).html()}); $(this).parent().append(input); $(this).remove(); input.focus...
Span to input text to span Possible Duplicate: What's the best edit-in-place plugin for jQuery? For example, when you click on a span, it becomes an input-text, and when you click outside the span it becomes an span again, and you could edit the input text. So you basicly change the tag name when you click on it. But h...
TITLE: Span to input text to span QUESTION: Possible Duplicate: What's the best edit-in-place plugin for jQuery? For example, when you click on a span, it becomes an input-text, and when you click outside the span it becomes an span again, and you could edit the input text. So you basicly change the tag name when you ...
[ "javascript", "jquery" ]
1
6
9,987
3
0
2011-06-01T10:16:36.090000
2011-06-01T10:23:41.520000
6,199,595
6,199,645
Where is the tell() function defined?
Can you please tell me where the off_t tell(int fd) function is defined in Mac OS X? It's not in fcntl.h and not in unistd.h, where it is defined in UNIX... I can't use ftell() because the code I'm porting works with file descriptors. I'm using GCC v4.2.1
You should be able to use lseek instead, which offers the same functionality: off_t tell(int fd) { return lseek(fd, 0, SEEK_CUR); }
Where is the tell() function defined? Can you please tell me where the off_t tell(int fd) function is defined in Mac OS X? It's not in fcntl.h and not in unistd.h, where it is defined in UNIX... I can't use ftell() because the code I'm porting works with file descriptors. I'm using GCC v4.2.1
TITLE: Where is the tell() function defined? QUESTION: Can you please tell me where the off_t tell(int fd) function is defined in Mac OS X? It's not in fcntl.h and not in unistd.h, where it is defined in UNIX... I can't use ftell() because the code I'm porting works with file descriptors. I'm using GCC v4.2.1 ANSWER:...
[ "c++", "macos", "unix", "gcc", "file" ]
4
12
5,907
1
0
2011-06-01T10:16:36.350000
2011-06-01T10:22:10.163000
6,199,599
6,253,746
Any suggestions on how to handle this crash in CGImageDestinationFinalize?
My application reads and resizes images that are loaded from the internet; and unfortunately I can't control the creation of these images. Recently I had a crash that I am not sure how best to be able to handle. In this case the image was a corrupt GIF file. It wasn't badly corrupted but it was reporting a resolution s...
I created a test project from your description which loads and saves the image from the provided URL. It runs without problems in the simulator and on an iPhone 4 (iOS 4.3.2). Could you try to run the following method in your project/environment: - (void)checkImage { NSURL *imageLocationOnDisk = [[NSBundle mainBundle] ...
Any suggestions on how to handle this crash in CGImageDestinationFinalize? My application reads and resizes images that are loaded from the internet; and unfortunately I can't control the creation of these images. Recently I had a crash that I am not sure how best to be able to handle. In this case the image was a corr...
TITLE: Any suggestions on how to handle this crash in CGImageDestinationFinalize? QUESTION: My application reads and resizes images that are loaded from the internet; and unfortunately I can't control the creation of these images. Recently I had a crash that I am not sure how best to be able to handle. In this case th...
[ "iphone", "objective-c", "core-image" ]
0
2
5,273
3
0
2011-06-01T10:17:42.873000
2011-06-06T14:43:51.993000
6,199,608
6,233,505
How to add StumbleUpon and Delicious Scripts to existing images
I have 2 images already, one for StumbleUpon and one for Delicious. Now I want to link it with the necessary script, I have spend a couple of hours now, and can't find the necessary good links. I only find the ready made scripts, which include their own images etc. To give you an example of what I mean, the site I am w...
This is the Delicious code which was needed: http://www.delicious.com/save " onclick="window.open('http://www.delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=550,height=550'); return false; This is the Stumble Upo...
How to add StumbleUpon and Delicious Scripts to existing images I have 2 images already, one for StumbleUpon and one for Delicious. Now I want to link it with the necessary script, I have spend a couple of hours now, and can't find the necessary good links. I only find the ready made scripts, which include their own im...
TITLE: How to add StumbleUpon and Delicious Scripts to existing images QUESTION: I have 2 images already, one for StumbleUpon and one for Delicious. Now I want to link it with the necessary script, I have spend a couple of hours now, and can't find the necessary good links. I only find the ready made scripts, which in...
[ "javascript", "html", "css" ]
0
0
213
2
0
2011-06-01T10:18:44.560000
2011-06-03T23:10:05.320000
6,199,613
6,263,519
CAAnimation - change properties in the last frame of the animation?
I'm animating a UIView (or rather its CALayer) and at the end of the animation it is no longer visible (I do a 3D transform so that it rotates about y by 90°, imagine a door opening towards you), though it's technically 'visible' in that its frame is still on-screen. At the end of this animation, I remove that view fro...
This was the answer to the question: it's about the animation fillMode property.
CAAnimation - change properties in the last frame of the animation? I'm animating a UIView (or rather its CALayer) and at the end of the animation it is no longer visible (I do a 3D transform so that it rotates about y by 90°, imagine a door opening towards you), though it's technically 'visible' in that its frame is s...
TITLE: CAAnimation - change properties in the last frame of the animation? QUESTION: I'm animating a UIView (or rather its CALayer) and at the end of the animation it is no longer visible (I do a 3D transform so that it rotates about y by 90°, imagine a door opening towards you), though it's technically 'visible' in t...
[ "ios", "animation", "uiview", "caanimation" ]
1
3
2,507
1
0
2011-06-01T10:19:11.450000
2011-06-07T09:53:20.387000
6,199,615
6,199,681
Install Windows service to run under user's credentials with ServiceAccount.User but don't prompt
I have created a C# Windows Service and its accompanying Visual Studio Setup project that creates an installer. It successfully installs the service. When I choose any value from enum ServiceAccount apart from ServiceAccount.User, the service installs without prompting using the appropriate built-in user. What I am aft...
You can't, there's no way to extract the clear-text password unless something is misconfigured and you'll need that to set up the service. See this similar question. Also, in general, services should be installed with a separate and unique account per service with least privilege.
Install Windows service to run under user's credentials with ServiceAccount.User but don't prompt I have created a C# Windows Service and its accompanying Visual Studio Setup project that creates an installer. It successfully installs the service. When I choose any value from enum ServiceAccount apart from ServiceAccou...
TITLE: Install Windows service to run under user's credentials with ServiceAccount.User but don't prompt QUESTION: I have created a C# Windows Service and its accompanying Visual Studio Setup project that creates an installer. It successfully installs the service. When I choose any value from enum ServiceAccount apart...
[ "c#", ".net", "windows-services" ]
4
6
11,823
2
0
2011-06-01T10:19:16.630000
2011-06-01T10:25:04.313000
6,199,622
6,203,355
Netbeans menu is awful in Ubuntu - completely unreadable and bleh to look at. Any fixes?
Hey. A lot of my colleagues use the Netbeans IDE for a few reasons and I would like to as well, however unlike them, I can't get over the look of the menus: Is there anything I can do to make the Netbeans menus look the same as the Eclipse menus? Thanks.
Netbeans is using your default window behavior (Window Decorations), not a built in theme. I'm using Kubuntu, so it may not be exactly the same, but the idea will be the same: 1) Right click along top of window and choose configure window behavior 2) Select Windows Deocrations 3) Choose from installed themes or downloa...
Netbeans menu is awful in Ubuntu - completely unreadable and bleh to look at. Any fixes? Hey. A lot of my colleagues use the Netbeans IDE for a few reasons and I would like to as well, however unlike them, I can't get over the look of the menus: Is there anything I can do to make the Netbeans menus look the same as the...
TITLE: Netbeans menu is awful in Ubuntu - completely unreadable and bleh to look at. Any fixes? QUESTION: Hey. A lot of my colleagues use the Netbeans IDE for a few reasons and I would like to as well, however unlike them, I can't get over the look of the menus: Is there anything I can do to make the Netbeans menus lo...
[ "linux", "eclipse", "netbeans", "ubuntu" ]
3
3
5,864
3
0
2011-06-01T10:20:13.480000
2011-06-01T15:05:42.537000
6,199,627
6,199,667
How to write a limit function in Scala?
After wondering about certain bugs in my first Scala application, I discovered that my limit function was not quite working... at all! So here was my first attempt: def limit(x: Double, min: Double, max: Double) = { if (x < min) min; if (x > max) max; x; } It always returned x! My second attempt looked like this: def l...
I've written a generic version of this (which I had called clamp ), which looks like this: // NOTE: This will still do some boxing and unboxing because Ordering / Ordered is not @specialized. @inline def clamp[@specialized(Int, Double) T: Ordering](value: T, low: T, high: T): T = { import Ordered._ if (value < low) low...
How to write a limit function in Scala? After wondering about certain bugs in my first Scala application, I discovered that my limit function was not quite working... at all! So here was my first attempt: def limit(x: Double, min: Double, max: Double) = { if (x < min) min; if (x > max) max; x; } It always returned x! M...
TITLE: How to write a limit function in Scala? QUESTION: After wondering about certain bugs in my first Scala application, I discovered that my limit function was not quite working... at all! So here was my first attempt: def limit(x: Double, min: Double, max: Double) = { if (x < min) min; if (x > max) max; x; } It al...
[ "function", "scala", "return-value", "return", "limit" ]
4
8
4,700
4
0
2011-06-01T10:20:33.713000
2011-06-01T10:24:14.773000
6,199,628
6,199,848
background-color: white - ok or should hexidecimal be used?
Possible Duplicate: Are there any cons to using color names in place of color codes in CSS? When specifying colors and background colors in CSS, is it ok to use words like 'white' rather than the hexidecimal value? It seems to work fine for me but are they any issues with other devices or older browseres? Thanks
This is taken from the W3C specification. And it clearly tells that names are depreciated. Its only kept for legacy reasons. Techniques: Use numbers, not names, for colors. Example. Use numbers, not names, for colors: H1 {color: #808000} H1 {color: rgb(50%,50%,0%)} Deprecated example. H1 {color: red} Use these CSS ...
background-color: white - ok or should hexidecimal be used? Possible Duplicate: Are there any cons to using color names in place of color codes in CSS? When specifying colors and background colors in CSS, is it ok to use words like 'white' rather than the hexidecimal value? It seems to work fine for me but are they any...
TITLE: background-color: white - ok or should hexidecimal be used? QUESTION: Possible Duplicate: Are there any cons to using color names in place of color codes in CSS? When specifying colors and background colors in CSS, is it ok to use words like 'white' rather than the hexidecimal value? It seems to work fine for m...
[ "css" ]
3
1
171
4
0
2011-06-01T10:20:34.370000
2011-06-01T10:39:43.533000
6,199,632
6,199,661
simple linked list segmentation fault
I am new with C programming language. I am learning C about linked list, trying to print "hello world", but I got a segmentation fault. I am using a text editor (vi) and gcc. How can I trace the error, which part causes segmentation fault, and how to fix this? Should I put printf in everyline? I would appreciate for an...
Buddy you haven't allocated the memory and trying to store value in it.You need to use malloc() to first allocate the memory and make structure pointer point to it and then only you can work ahead. Declaring structure does not allocate memory for its elements.You have to do this. int main() { gprs_t *ue = NULL; ue= (g...
simple linked list segmentation fault I am new with C programming language. I am learning C about linked list, trying to print "hello world", but I got a segmentation fault. I am using a text editor (vi) and gcc. How can I trace the error, which part causes segmentation fault, and how to fix this? Should I put printf i...
TITLE: simple linked list segmentation fault QUESTION: I am new with C programming language. I am learning C about linked list, trying to print "hello world", but I got a segmentation fault. I am using a text editor (vi) and gcc. How can I trace the error, which part causes segmentation fault, and how to fix this? Sho...
[ "c", "linked-list", "segmentation-fault" ]
0
3
831
4
0
2011-06-01T10:20:49.600000
2011-06-01T10:23:38.537000
6,199,636
6,227,310
Formulas for Barrel/Pincushion distortion
Can't understand how to get (x', y') of original (x, y) in image, for Barrel/Pincushion distortion.
Section 2 of this paper explains the transformation. Basically: Here I made an example in Mathematica:
Formulas for Barrel/Pincushion distortion Can't understand how to get (x', y') of original (x, y) in image, for Barrel/Pincushion distortion.
TITLE: Formulas for Barrel/Pincushion distortion QUESTION: Can't understand how to get (x', y') of original (x, y) in image, for Barrel/Pincushion distortion. ANSWER: Section 2 of this paper explains the transformation. Basically: Here I made an example in Mathematica:
[ "image-processing", "distortion" ]
18
25
36,492
4
0
2011-06-01T10:21:15.137000
2011-06-03T12:50:50.403000
6,199,642
6,200,638
Leaving out <constructor-arg/> in spring framework when there's a default parameter value
I have the following simple constructor: public SimpleClass(Type1 arg1, int interval = 1000) {... } I'm initialising this using the spring framework as follows, without using autowire: My question is: Since I'm defining a default value for the second parameter in the actual constructor, can I leave it out of the spring...
That does not work when using xml configuration (tested it with Spring.NET 1.3.1). It probably does work when using CodeConfig, but I haven't tried it out. Quickest work-around would be to simply introduce a second constructor in your class: Class SimpleClass { public SimpleClass(Type1 arg1): this(arg1, 1000) {} publi...
Leaving out <constructor-arg/> in spring framework when there's a default parameter value I have the following simple constructor: public SimpleClass(Type1 arg1, int interval = 1000) {... } I'm initialising this using the spring framework as follows, without using autowire: My question is: Since I'm defining a default ...
TITLE: Leaving out <constructor-arg/> in spring framework when there's a default parameter value QUESTION: I have the following simple constructor: public SimpleClass(Type1 arg1, int interval = 1000) {... } I'm initialising this using the spring framework as follows, without using autowire: My question is: Since I'm d...
[ "c#", "spring.net" ]
1
1
779
1
0
2011-06-01T10:21:31.750000
2011-06-01T11:50:23.550000
6,199,644
6,200,460
IEnumerable<T> to a CSV file
I am getting the result from LINQ query as var of type IEnumerable I want a CSV file to be created from the result from the LINQ I am getting the result from the following query var r = from table in myDataTable.AsEnumerable() orderby table.Field (para1) group table by new { Name = table[para1], Y = table[para2] } into...
Check this public static class LinqToCSV { public static string ToCsv (this IEnumerable items) where T: class { var csvBuilder = new StringBuilder(); var properties = typeof(T).GetProperties(); foreach (T item in items) { string line = string.Join(",",properties.Select(p => p.GetValue(item, null).ToCsvValue()).ToArray(...
IEnumerable<T> to a CSV file I am getting the result from LINQ query as var of type IEnumerable I want a CSV file to be created from the result from the LINQ I am getting the result from the following query var r = from table in myDataTable.AsEnumerable() orderby table.Field (para1) group table by new { Name = table[pa...
TITLE: IEnumerable<T> to a CSV file QUESTION: I am getting the result from LINQ query as var of type IEnumerable I want a CSV file to be created from the result from the LINQ I am getting the result from the following query var r = from table in myDataTable.AsEnumerable() orderby table.Field (para1) group table by new...
[ "c#", ".net", "linq", "csv" ]
16
20
19,795
7
0
2011-06-01T10:22:07.503000
2011-06-01T11:34:01.617000
6,199,657
6,207,045
.NET array is slower than list in IronPython?
I did the following matrix multiplication benchmark in IronPython based on code here: from System import Random from System.Diagnostics import Stopwatch def zero(m,n): # Create zero matrix new_matrix = [[0 for row in range(n)] for col in range(m)] return new_matrix def rand(m,n): # Create random matrix rnd = Random(1...
For your particular question, I think the problem is boxing - in IronPython, list items (and all other variables) are stored boxed, so only boxed values are operated on. CLR Array elements are not boxed, however, and thus IronPython will have to box them when they are extracted from the array, and then unbox them on th...
.NET array is slower than list in IronPython? I did the following matrix multiplication benchmark in IronPython based on code here: from System import Random from System.Diagnostics import Stopwatch def zero(m,n): # Create zero matrix new_matrix = [[0 for row in range(n)] for col in range(m)] return new_matrix def ra...
TITLE: .NET array is slower than list in IronPython? QUESTION: I did the following matrix multiplication benchmark in IronPython based on code here: from System import Random from System.Diagnostics import Stopwatch def zero(m,n): # Create zero matrix new_matrix = [[0 for row in range(n)] for col in range(m)] return ...
[ ".net", "python", "ironpython" ]
3
2
923
4
0
2011-06-01T10:23:19.863000
2011-06-01T20:10:11.210000
6,199,658
6,199,883
vbscript .DateCreated not coping with new month
I'm using the following code to find the newest.zip file in a directory but it doesn't seem to be coping with the switch to June and still shows the newest file as yesterdays. When I ran the script today it showed a file from 31/05/2011 06:05 as the latest but there are two newer files than this (see screenshot) For Ea...
The problem may be that you are checking the file creation date ( DateCreated ) whereas Explorer shows the last modification date ( DateLastModified ). Add the Date created column to the Explorer's view and see if the script's result makes sense after that.
vbscript .DateCreated not coping with new month I'm using the following code to find the newest.zip file in a directory but it doesn't seem to be coping with the switch to June and still shows the newest file as yesterdays. When I ran the script today it showed a file from 31/05/2011 06:05 as the latest but there are t...
TITLE: vbscript .DateCreated not coping with new month QUESTION: I'm using the following code to find the newest.zip file in a directory but it doesn't seem to be coping with the switch to June and still shows the newest file as yesterdays. When I ran the script today it showed a file from 31/05/2011 06:05 as the late...
[ "vbscript" ]
1
3
289
1
0
2011-06-01T10:23:19.813000
2011-06-01T10:42:36.067000
6,199,666
6,200,303
lxml only loading a single network entity before raising XMLSyntaxError
I am writing code to work with Amazon query based APIs, which return XML which I then wish to parse with lxml. I have written several functions which work perfectly to load the XML and parse it. Each function loads the XML using: variable = lxml.etree.parse("http://...") This works perfectly, the FIRST time it is run. ...
Known unfixed bug. Use urllib2.urlopen() to get a file-like object and pass that to lxml.etree.parse()
lxml only loading a single network entity before raising XMLSyntaxError I am writing code to work with Amazon query based APIs, which return XML which I then wish to parse with lxml. I have written several functions which work perfectly to load the XML and parse it. Each function loads the XML using: variable = lxml.et...
TITLE: lxml only loading a single network entity before raising XMLSyntaxError QUESTION: I am writing code to work with Amazon query based APIs, which return XML which I then wish to parse with lxml. I have written several functions which work perfectly to load the XML and parse it. Each function loads the XML using: ...
[ "python", "lxml" ]
1
3
587
1
0
2011-06-01T10:24:00.787000
2011-06-01T11:19:19.200000
6,199,674
6,200,082
How would be better to implements blog on me site
I'm doing web application for many users. Application will has many modules - register, search, question-answer, forum and blog. I'm going to implement blog module for each users registered on my site. Blog can has a title and body. The maximum length of body can not be more than 6000 symbols. How better to do it (blog...
For storing texts I suggest using PostgreSQL's text datatype for the field. I think using a second database is unnecessary. For such common scenarios like blogging, I suggest using customizable third-party modules instead of reinventing the wheel. Have a look at Pebble at http://pebble.sourceforge.net/
How would be better to implements blog on me site I'm doing web application for many users. Application will has many modules - register, search, question-answer, forum and blog. I'm going to implement blog module for each users registered on my site. Blog can has a title and body. The maximum length of body can not be...
TITLE: How would be better to implements blog on me site QUESTION: I'm doing web application for many users. Application will has many modules - register, search, question-answer, forum and blog. I'm going to implement blog module for each users registered on my site. Blog can has a title and body. The maximum length ...
[ "java", "database", "postgresql", "jpa", "blob" ]
0
0
112
1
0
2011-06-01T10:24:40.423000
2011-06-01T11:00:22.263000
6,199,687
6,199,750
NavController Logout
I have NavController 's inside 3 of my TabBarController of my app. When I go to the logout function in my app and logout, which is in TabBarController no.2, I made it return to TabBarController no.1. However, it does not go back to the root of the NavController of tab 1. I have referenced the NavController in the appDe...
Did you call popToRootViewControllerAnimated: as mentioned in the documentation? After your update, try this: […] [tabBarController setSelectedIndex:0]; [appDelegate.productsNavController popToRootViewControllerAnimated:NO];
NavController Logout I have NavController 's inside 3 of my TabBarController of my app. When I go to the logout function in my app and logout, which is in TabBarController no.2, I made it return to TabBarController no.1. However, it does not go back to the root of the NavController of tab 1. I have referenced the NavCo...
TITLE: NavController Logout QUESTION: I have NavController 's inside 3 of my TabBarController of my app. When I go to the logout function in my app and logout, which is in TabBarController no.2, I made it return to TabBarController no.1. However, it does not go back to the root of the NavController of tab 1. I have re...
[ "iphone", "ios", "uinavigationcontroller", "uitabbarcontroller" ]
0
1
384
1
0
2011-06-01T10:25:18.830000
2011-06-01T10:30:59.237000
6,199,694
6,199,732
Files (jQuery, jQuery UI, prototype) from external server
If I have to load for example jquery.js file among some (let's tell about 10) other css / js files, what is a better approach? load all from the same server that I have my whole app, or use some external servers, like https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js etc. "Using the google.load() method ...
Use Google. There's a good chance this will already be cached on the client's computer since lots of people use it, so it may be faster.
Files (jQuery, jQuery UI, prototype) from external server If I have to load for example jquery.js file among some (let's tell about 10) other css / js files, what is a better approach? load all from the same server that I have my whole app, or use some external servers, like https://ajax.googleapis.com/ajax/libs/jquery...
TITLE: Files (jQuery, jQuery UI, prototype) from external server QUESTION: If I have to load for example jquery.js file among some (let's tell about 10) other css / js files, what is a better approach? load all from the same server that I have my whole app, or use some external servers, like https://ajax.googleapis.co...
[ "jquery", "prototypejs", "javascript-framework", "cdn", "google-cdn" ]
0
2
373
3
0
2011-06-01T10:25:56.973000
2011-06-01T10:29:25.253000
6,199,706
6,199,976
Postgres sorting problem
I want to sort by rating DESC. It works with MySQL but on PostgreSQL. I get a different result. You can see the problem here: http://www.vinderhimlen.dk/konkurrencer My controller: def sort_column Konkurrancer.column_names.include?(params[:sort])? params[:sort]: "rating" end def sort_direction %w[desc asc].include?(pa...
Not sure what your issue is exactly or how it "doesn't work", from lack of details in your question. But at least two factors can affect sorting in such a way that you'd get different results in MySQL and PostgreSQL. The first is collation. In particular if you're playing with 9.1 beta. Last I installed MySQL (which wa...
Postgres sorting problem I want to sort by rating DESC. It works with MySQL but on PostgreSQL. I get a different result. You can see the problem here: http://www.vinderhimlen.dk/konkurrencer My controller: def sort_column Konkurrancer.column_names.include?(params[:sort])? params[:sort]: "rating" end def sort_direction...
TITLE: Postgres sorting problem QUESTION: I want to sort by rating DESC. It works with MySQL but on PostgreSQL. I get a different result. You can see the problem here: http://www.vinderhimlen.dk/konkurrencer My controller: def sort_column Konkurrancer.column_names.include?(params[:sort])? params[:sort]: "rating" end ...
[ "ruby-on-rails", "postgresql", "sorting" ]
1
5
882
1
0
2011-06-01T10:27:04.337000
2011-06-01T10:51:11.697000
6,199,715
6,203,450
Magento 1.5.1.0 images folder
Any help on getting the images folder of magento 1.5.1.0? Is it located in media/catalog/product? Thanks.
They are dispersed, e.g. file.jpg will go to /media/catalog/product/f/i/file.jpg - the first sub-directory is the first letter of the product image, the second directory is the second letter of the product image. To download/upload the images in the 'easiest' way depends on whether you have shell access. If uploading t...
Magento 1.5.1.0 images folder Any help on getting the images folder of magento 1.5.1.0? Is it located in media/catalog/product? Thanks.
TITLE: Magento 1.5.1.0 images folder QUESTION: Any help on getting the images folder of magento 1.5.1.0? Is it located in media/catalog/product? Thanks. ANSWER: They are dispersed, e.g. file.jpg will go to /media/catalog/product/f/i/file.jpg - the first sub-directory is the first letter of the product image, the seco...
[ "magento" ]
0
1
3,706
1
0
2011-06-01T10:28:02.607000
2011-06-01T15:12:56.590000
6,199,717
6,199,854
How can I know that my WebView is loaded 100%?
I'm trying to load in my WebView some HTML code that contains JavaScript. Now, I want to test if my WebView is loaded before 5 secondes. I've tried the method getProgress(), but sometimes I get that the progress is 100, but my Webview is not loaded. Is there another way to be sure that my Webview is loaded 100%? This i...
As said here: How to listen for a WebView finishing loading a URL? ~ boolean loadingFinished = true; boolean redirect = false; mWebView.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String urlNewString) { if (!loadingFinished) { redirect = true; } loadingFinis...
How can I know that my WebView is loaded 100%? I'm trying to load in my WebView some HTML code that contains JavaScript. Now, I want to test if my WebView is loaded before 5 secondes. I've tried the method getProgress(), but sometimes I get that the progress is 100, but my Webview is not loaded. Is there another way to...
TITLE: How can I know that my WebView is loaded 100%? QUESTION: I'm trying to load in my WebView some HTML code that contains JavaScript. Now, I want to test if my WebView is loaded before 5 secondes. I've tried the method getProgress(), but sometimes I get that the progress is 100, but my Webview is not loaded. Is th...
[ "android", "android-webview" ]
72
96
99,932
8
0
2011-06-01T10:28:14.430000
2011-06-01T10:40:16.010000
6,199,722
6,199,979
Pass user identity from UI to data layer
In order to perform auditing on a SQL 2008 database for updates / insert / delete, I was accessing HttpContext.Current.User in the datalayer to pass to a stored proc which would set the CONTEXT_INFO for auditing triggers. These is probably wrong because if I wanted to put another UI (i.e. WinForms) the HttpContext woul...
You should use the static Thread.CurrentPrincipal property. Notice however that this property might not be equal to HttpContext.Current.User depending on your web application's impersonation settings. A good solution might be to first check whether HttpContext.Current is not null. If it isn't then read the user from th...
Pass user identity from UI to data layer In order to perform auditing on a SQL 2008 database for updates / insert / delete, I was accessing HttpContext.Current.User in the datalayer to pass to a stored proc which would set the CONTEXT_INFO for auditing triggers. These is probably wrong because if I wanted to put anothe...
TITLE: Pass user identity from UI to data layer QUESTION: In order to perform auditing on a SQL 2008 database for updates / insert / delete, I was accessing HttpContext.Current.User in the datalayer to pass to a stored proc which would set the CONTEXT_INFO for auditing triggers. These is probably wrong because if I wa...
[ "c#" ]
1
3
981
1
0
2011-06-01T10:28:44.923000
2011-06-01T10:51:46.597000
6,199,734
6,204,069
Apache - combo newbie question on mod rewrite & restrict file access by URL
this is my first attempt at mod rewrite for URL and file access restriction rule. I have done some reading for related post in stack and google but so far unsuccessful in getting a complete answer. So far, all research info in the web seems to be in bits and pieces and always short of some key step. Newbie like me find...
RewriteCond %{QUERY_STRING} ^category=(.*)+(.*)+(.*)&title=(.*)+(.*)+(.*)&itemID=(.*)$ RewriteRule ^$ ^category/%1/%2/%3/%4-%5-%6_%7.html [L] For your second part RewriteCond %{HTTP_REFERRER}!^http://(www\.)?yourdomain.com/(.*)$ RewriteRule ^/protectedfolder/(.*) - [R=404] [L]/* Apache will check if url points to your ...
Apache - combo newbie question on mod rewrite & restrict file access by URL this is my first attempt at mod rewrite for URL and file access restriction rule. I have done some reading for related post in stack and google but so far unsuccessful in getting a complete answer. So far, all research info in the web seems to ...
TITLE: Apache - combo newbie question on mod rewrite & restrict file access by URL QUESTION: this is my first attempt at mod rewrite for URL and file access restriction rule. I have done some reading for related post in stack and google but so far unsuccessful in getting a complete answer. So far, all research info in...
[ "apache", ".htaccess", "mod-rewrite" ]
1
2
268
1
0
2011-06-01T10:29:41.980000
2011-06-01T15:55:36.220000
6,199,737
6,199,906
WPF Binding to a property of an usercontrol
I have an usercontrol, which have a property Results. This usercontrol should show this ObservableCollection. I think the XAML-Code of the usercontrol doesn't matter. The Code-Behind look like that: Public Property Results() As ObservableCollection(Of ResultModel) Get Return GetValue(ResultsProperty) End Get Set(ByVal...
Okay, it's very simple. In my case, I don't need any properties in the usercontrol code-behind. In the MainView I simply write this: and in the usercontrol: ItemsSource="{Binding ResultsToShow}" I directly bind to the Property of the DataContext of the MainView.
WPF Binding to a property of an usercontrol I have an usercontrol, which have a property Results. This usercontrol should show this ObservableCollection. I think the XAML-Code of the usercontrol doesn't matter. The Code-Behind look like that: Public Property Results() As ObservableCollection(Of ResultModel) Get Return ...
TITLE: WPF Binding to a property of an usercontrol QUESTION: I have an usercontrol, which have a property Results. This usercontrol should show this ObservableCollection. I think the XAML-Code of the usercontrol doesn't matter. The Code-Behind look like that: Public Property Results() As ObservableCollection(Of Result...
[ "wpf", "user-controls", "wpf-controls", "binding" ]
1
0
1,229
1
0
2011-06-01T10:29:48.313000
2011-06-01T10:44:58.820000
6,199,740
6,199,893
WPF Command and exception in ViewModel
button has a Command binding into ViewModel (it runs some Save method in ViewModel). Method Save can fail and throw an exception. What is a best practice how to catch those exceptions? It would suffice to show a MessageBox but I do not want to do it in ViewModel (this is not the right way).
1 - I don't believe it's "not the right way". Having an Exception raised in ViewModel is typically part of the ViewModel logic. Therefore, showing a MessageBox there wouldn't be "the bad way". Keep in mind that the actual aim of MVVM is NOT to eliminate ALL code-behind, but is actually to clearly separate UI-logic and ...
WPF Command and exception in ViewModel button has a Command binding into ViewModel (it runs some Save method in ViewModel). Method Save can fail and throw an exception. What is a best practice how to catch those exceptions? It would suffice to show a MessageBox but I do not want to do it in ViewModel (this is not the r...
TITLE: WPF Command and exception in ViewModel QUESTION: button has a Command binding into ViewModel (it runs some Save method in ViewModel). Method Save can fail and throw an exception. What is a best practice how to catch those exceptions? It would suffice to show a MessageBox but I do not want to do it in ViewModel ...
[ "c#", ".net", "wpf", "binding" ]
9
8
5,427
2
0
2011-06-01T10:30:07.387000
2011-06-01T10:43:18.937000
6,199,742
6,199,808
How to get weekends between two dates?
Possible Duplicate: Calculate the number of weekdays between two dates in C# Is there a method to know how much saturdays and sundays there are between two dates? for example: 13/01/2011 to 28/02/2011 result will be: 3 saturdays and 3 sundays can someone help please? thank you in advance
You could traverse through days between the two dates and for each day check it against saturday and sunday. Datetime conains DayOfWeek.
How to get weekends between two dates? Possible Duplicate: Calculate the number of weekdays between two dates in C# Is there a method to know how much saturdays and sundays there are between two dates? for example: 13/01/2011 to 28/02/2011 result will be: 3 saturdays and 3 sundays can someone help please? thank you in ...
TITLE: How to get weekends between two dates? QUESTION: Possible Duplicate: Calculate the number of weekdays between two dates in C# Is there a method to know how much saturdays and sundays there are between two dates? for example: 13/01/2011 to 28/02/2011 result will be: 3 saturdays and 3 sundays can someone help ple...
[ "c#", "methods" ]
1
1
2,510
1
0
2011-06-01T10:30:13.260000
2011-06-01T10:35:53.913000
6,199,744
6,199,877
Dynamically create variables in PHP
I want to create 1 variable name, but part of the name is the value stored in $i. Same for the GET result: $Site.$i = $_GET['site'.$i]; // Should look something like $Site1 = $GET['site1']; Please help me understand how to do this.
If you want a set of related variables, use an array: $site[ $i ] = $_GET['site'.$i]; Even better, your GET parameters can also be an array HTML PHP $site = $_GET[ "site" ]; print_r( $site ); output $site = array( "foo" => "bar" ) If you want the indexes for the array to decided automatically then you can do and get $...
Dynamically create variables in PHP I want to create 1 variable name, but part of the name is the value stored in $i. Same for the GET result: $Site.$i = $_GET['site'.$i]; // Should look something like $Site1 = $GET['site1']; Please help me understand how to do this.
TITLE: Dynamically create variables in PHP QUESTION: I want to create 1 variable name, but part of the name is the value stored in $i. Same for the GET result: $Site.$i = $_GET['site'.$i]; // Should look something like $Site1 = $GET['site1']; Please help me understand how to do this. ANSWER: If you want a set of rela...
[ "php", "variables" ]
1
4
4,054
5
0
2011-06-01T10:30:19.610000
2011-06-01T10:42:00.333000
6,199,757
6,199,779
Strtr requires an array as the second argument?
I am calling code like strtr($somevars['thisvar'], "abc") Where $somevars['thisvar'] contains a string. And it's giving me Warning: strtr() [function.strtr]: The second argument is not an array Why?
Warning: strtr() [function.strtr]: The second argument is not an array strtr!= str s tr see: http://docs.php.net/strtr
Strtr requires an array as the second argument? I am calling code like strtr($somevars['thisvar'], "abc") Where $somevars['thisvar'] contains a string. And it's giving me Warning: strtr() [function.strtr]: The second argument is not an array Why?
TITLE: Strtr requires an array as the second argument? QUESTION: I am calling code like strtr($somevars['thisvar'], "abc") Where $somevars['thisvar'] contains a string. And it's giving me Warning: strtr() [function.strtr]: The second argument is not an array Why? ANSWER: Warning: strtr() [function.strtr]: The second ...
[ "php", "string", "strtr" ]
0
9
2,404
2
0
2011-06-01T10:31:44.047000
2011-06-01T10:33:29.717000
6,199,760
6,200,977
Calculate date and time key in fact table using existing date time field
I have date time field in a fact table in the format MM/DD/YY HH:MM:SS (e.g 2/24/2009 11:18:47 AM) and I have seperate date and time dimension tables. What I would like ask is that how I can create date key and time key in the fact table using the date time field so that I can join the date and time dimension. There ar...
What you need to do (if I understand correctly) is to create two fields in your Fact table:kTime, kDate. We would always suggest using the primary keys for DimTime and DimDate as having meaning (this being a special case normally Dim tables' promary keys dont have any meaning). So e.g. in DimDate, we would have kDate a...
Calculate date and time key in fact table using existing date time field I have date time field in a fact table in the format MM/DD/YY HH:MM:SS (e.g 2/24/2009 11:18:47 AM) and I have seperate date and time dimension tables. What I would like ask is that how I can create date key and time key in the fact table using the...
TITLE: Calculate date and time key in fact table using existing date time field QUESTION: I have date time field in a fact table in the format MM/DD/YY HH:MM:SS (e.g 2/24/2009 11:18:47 AM) and I have seperate date and time dimension tables. What I would like ask is that how I can create date key and time key in the fa...
[ "sql", "data-warehouse", "olap" ]
0
4
2,410
1
0
2011-06-01T10:32:09.157000
2011-06-01T12:17:07.157000
6,199,765
6,200,046
WPF: Problem applying style to custom TabItem Header through ControlTemplate and ContentPresenter.Resources
I am trying to write my own control template for a TabItem Header, and have got the basic layout to work but now I wish to apply styling to the content of the Header, for example to manipulate the size and font of a textblock. In order to test this, I have put an ellipse in the tabitem header and am attempting to fill ...
Move your style one level upper.ie,move it to ControlTemplate.Resources and it will work fine.I am quite not sure why the code in the question does not work.It may be because the controls in the contentpresenter is already built by the time the style is encountered.
WPF: Problem applying style to custom TabItem Header through ControlTemplate and ContentPresenter.Resources I am trying to write my own control template for a TabItem Header, and have got the basic layout to work but now I wish to apply styling to the content of the Header, for example to manipulate the size and font o...
TITLE: WPF: Problem applying style to custom TabItem Header through ControlTemplate and ContentPresenter.Resources QUESTION: I am trying to write my own control template for a TabItem Header, and have got the basic layout to work but now I wish to apply styling to the content of the Header, for example to manipulate t...
[ "wpf", "styles", "controltemplate", "tabitem", "contentpresenter" ]
0
1
2,564
1
0
2011-06-01T10:32:32.243000
2011-06-01T10:57:22.727000
6,199,773
6,200,006
How to enable/disable an html button based on scenarios?
I have a button in my webpage with below code - HTML: CSS:.checkout-button{ width: 130px; height: 35px; background: url('../poc2/images/checkout.png') no-repeat; border: none; vertical-align: top; margin-left:35px; cursor:pointer; } Now, the button works fine as I can click on it and have my corresponding php code run;...
You can either do this without JavaScript (requires a page refresh) or with JavaScript and have no refresh. Simply use the disabled attribute: And create a css style for it, if necessary. The example below shows a JavaScript solution. If the variable disableButton is set to true, the button will be disabled, else it ca...
How to enable/disable an html button based on scenarios? I have a button in my webpage with below code - HTML: CSS:.checkout-button{ width: 130px; height: 35px; background: url('../poc2/images/checkout.png') no-repeat; border: none; vertical-align: top; margin-left:35px; cursor:pointer; } Now, the button works fine as ...
TITLE: How to enable/disable an html button based on scenarios? QUESTION: I have a button in my webpage with below code - HTML: CSS:.checkout-button{ width: 130px; height: 35px; background: url('../poc2/images/checkout.png') no-repeat; border: none; vertical-align: top; margin-left:35px; cursor:pointer; } Now, the but...
[ "html", "css", "button" ]
19
24
148,910
3
0
2011-06-01T10:33:06.627000
2011-06-01T10:53:36.617000
6,199,781
6,199,895
Jquery click event of accordion content
Inside my accordion content i have rows of data that are loaded by ajax call. I want to capture click of each of these rows separately and get the id from clicked row. I am able to capture event of click of accordion content. but i am not able to get it separately for each row. <#list abc as xyz> ${xyz} <#list somelist...
As rows are created dynamically, I guess that you should use this: $("#accRegion dd dt").live('click', function() { // your code here });
Jquery click event of accordion content Inside my accordion content i have rows of data that are loaded by ajax call. I want to capture click of each of these rows separately and get the id from clicked row. I am able to capture event of click of accordion content. but i am not able to get it separately for each row. <...
TITLE: Jquery click event of accordion content QUESTION: Inside my accordion content i have rows of data that are loaded by ajax call. I want to capture click of each of these rows separately and get the id from clicked row. I am able to capture event of click of accordion content. but i am not able to get it separate...
[ "javascript", "jquery", "jquery-ui" ]
0
1
2,971
3
0
2011-06-01T10:33:31.317000
2011-06-01T10:43:36.613000
6,199,782
6,199,828
C# How to resolve circular dependency caused by EditorAttribute usage?
In my project I have two libraries that would currently result in a circular dependency which I am unable to resolve. One library provides common data structures for the whole solution. This library contains a construct similar to this: namespace Common { public class Foo { //[Editor( typeof( UserEditor ), typeof( UITy...
I think that this is a sign of a flawed design. Do you want the class library containing Foo to be unknowning of the editing GUI? In that case it shouldn't contain the EditorAttribute. One solution could be to regard the Foo class as your model in a MVVM architecture. Then you can create a wrapping ViewModel in the GUI...
C# How to resolve circular dependency caused by EditorAttribute usage? In my project I have two libraries that would currently result in a circular dependency which I am unable to resolve. One library provides common data structures for the whole solution. This library contains a construct similar to this: namespace Co...
TITLE: C# How to resolve circular dependency caused by EditorAttribute usage? QUESTION: In my project I have two libraries that would currently result in a circular dependency which I am unable to resolve. One library provides common data structures for the whole solution. This library contains a construct similar to ...
[ "c#", "circular-dependency" ]
1
2
756
2
0
2011-06-01T10:33:33.540000
2011-06-01T10:37:56.553000
6,199,783
6,203,166
Plugin Installation
I wrote a plugin in Firebreath, and I have a msi written. I want to write a JavaScript function that will trigger an installation(a pop up in the top of the page) or will redirect the user to a download page. Can someone provide an example or a helpfull link? Thanks!
FireBreath has an example javascript file that can be used to help with plugin detection: https://github.com/firebreath/FireBreath/blob/master/Installer/js/fb_installer.js basically you use FireBreath.isPluginInstalled("yourPlugin") to see if the plugin has been installed yet or not. You can use FireBreath.injectPlugin...
Plugin Installation I wrote a plugin in Firebreath, and I have a msi written. I want to write a JavaScript function that will trigger an installation(a pop up in the top of the page) or will redirect the user to a download page. Can someone provide an example or a helpfull link? Thanks!
TITLE: Plugin Installation QUESTION: I wrote a plugin in Firebreath, and I have a msi written. I want to write a JavaScript function that will trigger an installation(a pop up in the top of the page) or will redirect the user to a download page. Can someone provide an example or a helpfull link? Thanks! ANSWER: FireB...
[ "javascript", "plugins", "windows-installer", "firebreath" ]
0
1
1,744
1
0
2011-06-01T10:33:39.890000
2011-06-01T14:52:18.167000
6,199,788
6,200,762
Hpricot: how to do conditional search using Hpricot in Ruby on Rails
I am parsing two different sites having similar HTML tags. I need to use a common parser for this. My issue is one site has a HTML format div/ol/li/span/a and other has div/ol/li/h3/a My current parser code is doc = Hpricot(open("http://test.com").read) doc.search("div/ol/li/span/a").each do |a| question = a.inner_html...
It worked I used the below code doc.search("div/ol/li/span/a | div/ol/li/h3/a").each do |a| #.. end Thanks all
Hpricot: how to do conditional search using Hpricot in Ruby on Rails I am parsing two different sites having similar HTML tags. I need to use a common parser for this. My issue is one site has a HTML format div/ol/li/span/a and other has div/ol/li/h3/a My current parser code is doc = Hpricot(open("http://test.com").rea...
TITLE: Hpricot: how to do conditional search using Hpricot in Ruby on Rails QUESTION: I am parsing two different sites having similar HTML tags. I need to use a common parser for this. My issue is one site has a HTML format div/ol/li/span/a and other has div/ol/li/h3/a My current parser code is doc = Hpricot(open("htt...
[ "ruby-on-rails", "ruby", "hpricot" ]
1
1
299
2
0
2011-06-01T10:33:51.763000
2011-06-01T11:59:20.367000
6,199,790
6,199,935
Ruby DateTime comparison problem
I'm implementing a validation method for a model that checks that an expiration date is not before the publication date. I tried with this def valid_date_interval if self.expired_at && self.published_at errors.add(:published_at, I18n.t('ubiquo.highlight.error_invalid_interval')) if self.expired_at <= self.published_at ...
Probably self.published_at.nsec is not equal to self.expired_at.nsec. (nsec returns the nanoseconds). See the doc for <=>.
Ruby DateTime comparison problem I'm implementing a validation method for a model that checks that an expiration date is not before the publication date. I tried with this def valid_date_interval if self.expired_at && self.published_at errors.add(:published_at, I18n.t('ubiquo.highlight.error_invalid_interval')) if self...
TITLE: Ruby DateTime comparison problem QUESTION: I'm implementing a validation method for a model that checks that an expiration date is not before the publication date. I tried with this def valid_date_interval if self.expired_at && self.published_at errors.add(:published_at, I18n.t('ubiquo.highlight.error_invalid_i...
[ "ruby", "datetime" ]
0
2
1,407
1
0
2011-06-01T10:34:01.933000
2011-06-01T10:47:50.720000
6,199,792
6,199,873
android expandable list need help
public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) { Log.d(LOG_TAG, "onChildClick: " + childPosition); Button btnPlay=(Button)v.findViewById(R.id.Play); Button btnDelete=(Button)v.findViewById(R.id.Delete); Button btnEmail=(Button)v.findViewById(R.id.Email); b...
Well, I think, You should implement onClick of Button while overriding the getChildView() public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent) { LinearLayout v = (LinearLayout) LayoutInflater.from(FindFilesByType.this).inflate(R.layout.row, null); //we ...
android expandable list need help public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) { Log.d(LOG_TAG, "onChildClick: " + childPosition); Button btnPlay=(Button)v.findViewById(R.id.Play); Button btnDelete=(Button)v.findViewById(R.id.Delete); Button btnEmail=(Bu...
TITLE: android expandable list need help QUESTION: public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) { Log.d(LOG_TAG, "onChildClick: " + childPosition); Button btnPlay=(Button)v.findViewById(R.id.Play); Button btnDelete=(Button)v.findViewById(R.id.Delete); B...
[ "android", "position", "expandablelistview" ]
0
3
473
1
0
2011-06-01T10:34:06.230000
2011-06-01T10:41:44.203000
6,199,800
6,199,839
Change part of name attribute
How can I change only part of name attribute with jQuery? For example if I have: How can I make jQuery to change Sometext[1] to Sometext[2], then to Sometext[3] etc. I have dynamic form fields, and I need each name attribute to be unique.
You can do something like: var i = 0; $('input').each(function () { $(this).attr('name', 'Sometext[' + i + ']'); i++; }); Supposing you know "Sometext"! If you don't know it, you'll have to guess it: var i = 0; $('input').each(function () { var input_name = $(this).attr('name').substring(0, $(this).attr('name').index...
Change part of name attribute How can I change only part of name attribute with jQuery? For example if I have: How can I make jQuery to change Sometext[1] to Sometext[2], then to Sometext[3] etc. I have dynamic form fields, and I need each name attribute to be unique.
TITLE: Change part of name attribute QUESTION: How can I change only part of name attribute with jQuery? For example if I have: How can I make jQuery to change Sometext[1] to Sometext[2], then to Sometext[3] etc. I have dynamic form fields, and I need each name attribute to be unique. ANSWER: You can do something lik...
[ "jquery" ]
2
5
3,831
4
0
2011-06-01T10:35:04.193000
2011-06-01T10:38:57.790000
6,199,801
6,199,891
Stack, bounded stack and Liskov substitution property
Could a bounded stack data structure (a stack with an upper limit) be implemented as a subtype of a conventional stack without violating the Liskov substitution property? A conventional stack could be used in place of a bounded stack, but a bounded stack may only be used in place of a conventional stack if it has a lar...
Liskov substituion princple is stated as Let q(x) be a property provable about objects x of type T. Then q(y) should be true for objects y of type S where S is a subtype of T. Let us say T is type Stack and S is a subtype of T of type BoundedStack. Now, let us define q(x) as the capacity of stack x. If x is an instance...
Stack, bounded stack and Liskov substitution property Could a bounded stack data structure (a stack with an upper limit) be implemented as a subtype of a conventional stack without violating the Liskov substitution property? A conventional stack could be used in place of a bounded stack, but a bounded stack may only be...
TITLE: Stack, bounded stack and Liskov substitution property QUESTION: Could a bounded stack data structure (a stack with an upper limit) be implemented as a subtype of a conventional stack without violating the Liskov substitution property? A conventional stack could be used in place of a bounded stack, but a bounded...
[ "stack", "liskov-substitution-principle" ]
2
1
104
3
0
2011-06-01T10:35:10.603000
2011-06-01T10:43:03.467000
6,199,813
6,225,713
how to use punjabi font in the android application?
hi i want to develop an application in which i Want to use punjabi text. But my emmulator does not show Punjabi text. Is there any api or something else so that my emulator can show the punjabi text or suggest me any other way to implement punjabi language in my application. Thanks in advance.
You can use custom TrueType fonts by copying the.ttf file into your projects's 'assets' folder. Then in your application you can use the font like this; final Typeface customF = Typeface.createFromAsset(this.getAssets(), "custom.ttf"); final TextView textV = (TextView) findViewById(...); textV.setTypeface(customF); How...
how to use punjabi font in the android application? hi i want to develop an application in which i Want to use punjabi text. But my emmulator does not show Punjabi text. Is there any api or something else so that my emulator can show the punjabi text or suggest me any other way to implement punjabi language in my appli...
TITLE: how to use punjabi font in the android application? QUESTION: hi i want to develop an application in which i Want to use punjabi text. But my emmulator does not show Punjabi text. Is there any api or something else so that my emulator can show the punjabi text or suggest me any other way to implement punjabi la...
[ "android", "fonts", "textview" ]
3
2
4,445
3
0
2011-06-01T10:36:33.420000
2011-06-03T10:11:26.713000
6,199,814
6,205,860
How to upload the files from iPhone to server using mono-touch?
Im going to develop the iPhone application for backup the files. So I need to upload the images or files like excel, text files from iPhone to server. For example, choose the files --> press upload button --> upload to server I want to design like upload widget. Im using MonoTouch for developing iPhone application. Is ...
You should be researching how to do this in C# in general. It should be the same as using MonoTouch. Here is an example link. Of course, it all depends on what server you are wanting to upload the file to. You don't mention what protocol you want to use, if it's Linux or Windows, if you have any control of the server, ...
How to upload the files from iPhone to server using mono-touch? Im going to develop the iPhone application for backup the files. So I need to upload the images or files like excel, text files from iPhone to server. For example, choose the files --> press upload button --> upload to server I want to design like upload w...
TITLE: How to upload the files from iPhone to server using mono-touch? QUESTION: Im going to develop the iPhone application for backup the files. So I need to upload the images or files like excel, text files from iPhone to server. For example, choose the files --> press upload button --> upload to server I want to de...
[ "iphone", "xamarin.ios" ]
1
2
1,208
1
0
2011-06-01T10:36:34.207000
2011-06-01T18:20:45.850000
6,199,815
6,205,942
OpenJPA dirty read hint
We've got the following DAO stack: DB2 9.7 Express-C OpenJPA 2.0.1 Spring 3.0.5 Bitronix 2.1.1 How do you specify OpenJPA to add WITH UR sql clause to the end of the query? I'd browsed sites and manuals alike for days, it should be something like this: Query q = em.createQuery("select m from Magazine m where... "); q.s...
OpenJPA doesn't support using the WITH UR clause with JPQL. You could always use a native query for this functionality.
OpenJPA dirty read hint We've got the following DAO stack: DB2 9.7 Express-C OpenJPA 2.0.1 Spring 3.0.5 Bitronix 2.1.1 How do you specify OpenJPA to add WITH UR sql clause to the end of the query? I'd browsed sites and manuals alike for days, it should be something like this: Query q = em.createQuery("select m from Mag...
TITLE: OpenJPA dirty read hint QUESTION: We've got the following DAO stack: DB2 9.7 Express-C OpenJPA 2.0.1 Spring 3.0.5 Bitronix 2.1.1 How do you specify OpenJPA to add WITH UR sql clause to the end of the query? I'd browsed sites and manuals alike for days, it should be something like this: Query q = em.createQuery(...
[ "java", "db2", "openjpa" ]
4
5
2,824
2
0
2011-06-01T10:36:38.200000
2011-06-01T18:28:01.787000
6,199,831
6,199,861
Is it possible to place image in expandable list?
I am new to android application. I need to know whether is it possible to place image in expandable list view as a child for one parent alone. remaining child can be text.. Please help me..
Yes you can place any kind of View element into the expandable list, including Layouts and ImageViews.
Is it possible to place image in expandable list? I am new to android application. I need to know whether is it possible to place image in expandable list view as a child for one parent alone. remaining child can be text.. Please help me..
TITLE: Is it possible to place image in expandable list? QUESTION: I am new to android application. I need to know whether is it possible to place image in expandable list view as a child for one parent alone. remaining child can be text.. Please help me.. ANSWER: Yes you can place any kind of View element into the e...
[ "android" ]
0
1
206
1
0
2011-06-01T10:38:28.107000
2011-06-01T10:41:00.130000
6,199,832
6,202,552
Displaying the 4th level of an array in CakePHP using relationship
I have table project, screenshot, sub_screenshot, and user I want to achieve this kind of diagram. Its like getting the 4th level. [Model] Array ( [0] => Array ( [Project] => Array ( [id] => 2 ) [Screenshot] = Array ( [0] => Array ( [Screenshot] => Array ( [project_id] => 2 [id] => 1 ) [SubScreenshot] = Array ( [0] => ...
Use the containable behavior. I've had some questions about it lately too. It would be much more efficient that setting recursive to 4 since you would only be including the models that you need. Follow these instructions to setup the behavior on your models. http://book.cakephp.org/view/1323/Containable Then, you shoul...
Displaying the 4th level of an array in CakePHP using relationship I have table project, screenshot, sub_screenshot, and user I want to achieve this kind of diagram. Its like getting the 4th level. [Model] Array ( [0] => Array ( [Project] => Array ( [id] => 2 ) [Screenshot] = Array ( [0] => Array ( [Screenshot] => Arra...
TITLE: Displaying the 4th level of an array in CakePHP using relationship QUESTION: I have table project, screenshot, sub_screenshot, and user I want to achieve this kind of diagram. Its like getting the 4th level. [Model] Array ( [0] => Array ( [Project] => Array ( [id] => 2 ) [Screenshot] = Array ( [0] => Array ( [S...
[ "cakephp", "cakephp-1.3" ]
0
0
189
2
0
2011-06-01T10:38:28.593000
2011-06-01T14:10:07.687000
6,199,833
6,199,972
js slider - how to set up handle to negative margin?
Take a look here: http://jsfiddle.net/ELKHq/, now I would like to set up minimum to for example -50px and also I would like get opportunity to move handler a little next to parent div ( #szyna ) from the right side... I must use that script http://madrobby.github.com/scriptaculous/slider/. Thanks in advice. EDIT: Here ...
#start{ margin-left: -50px; } should set the margin. It works in Chrome and Firefox at least. EDIT: Updated to match the images posted in the edit: http://jsfiddle.net/g_thom/ELKHq/1/
js slider - how to set up handle to negative margin? Take a look here: http://jsfiddle.net/ELKHq/, now I would like to set up minimum to for example -50px and also I would like get opportunity to move handler a little next to parent div ( #szyna ) from the right side... I must use that script http://madrobby.github.com...
TITLE: js slider - how to set up handle to negative margin? QUESTION: Take a look here: http://jsfiddle.net/ELKHq/, now I would like to set up minimum to for example -50px and also I would like get opportunity to move handler a little next to parent div ( #szyna ) from the right side... I must use that script http://m...
[ "javascript" ]
0
0
223
1
0
2011-06-01T10:38:29.797000
2011-06-01T10:51:01.637000
6,199,853
6,199,945
Javascript change style on mouse click
i have a little jquery script: $('.product_types > li').click(function() { $(this).css('backgroundColor','#EE178C').siblings().css('backgroundColor','#ffffff'); // $('.product_types > li').removeClass(backgroundColor); }); that colors me a div onclick. The problem is that i want only the last element clicked to be col...
I would use a css class like.lastClicked and using jquery to remove all instances of.lastClicked when a new element is clicked..lastClicked{ background-color:#EE178C; }.lastClicked (siblingName) { background-color: #ffffff; } your jquery code would look something like: $('.product_types > li').click(function() { $(".la...
Javascript change style on mouse click i have a little jquery script: $('.product_types > li').click(function() { $(this).css('backgroundColor','#EE178C').siblings().css('backgroundColor','#ffffff'); // $('.product_types > li').removeClass(backgroundColor); }); that colors me a div onclick. The problem is that i want ...
TITLE: Javascript change style on mouse click QUESTION: i have a little jquery script: $('.product_types > li').click(function() { $(this).css('backgroundColor','#EE178C').siblings().css('backgroundColor','#ffffff'); // $('.product_types > li').removeClass(backgroundColor); }); that colors me a div onclick. The probl...
[ "javascript", "jquery", "onclick" ]
2
3
1,790
3
0
2011-06-01T10:40:12.150000
2011-06-01T10:48:31.737000
6,199,867
6,201,155
problem with ant script properties
The following is my ant script: Basically the sequence goes something like this: I will run Searchlatestversion.exe and write latestbuild.properties Using the latestbuild.properties i will obtain ${Product_Version} and would like to allow checksnapshot.exe access to latestbuild.properties and obtain ${Product_Version} ...
You appear to have a hard coded wait period of 10 seconds for Searchlatestversion to write out your file. If the executable does not complete inside that time, ${Product_Version} cannot be read from file. Have you considered using the Waitfor Ant Task? As the name implies, this will wait for a certain condition before ...
problem with ant script properties The following is my ant script: Basically the sequence goes something like this: I will run Searchlatestversion.exe and write latestbuild.properties Using the latestbuild.properties i will obtain ${Product_Version} and would like to allow checksnapshot.exe access to latestbuild.proper...
TITLE: problem with ant script properties QUESTION: The following is my ant script: Basically the sequence goes something like this: I will run Searchlatestversion.exe and write latestbuild.properties Using the latestbuild.properties i will obtain ${Product_Version} and would like to allow checksnapshot.exe access to ...
[ "ant" ]
1
1
286
2
0
2011-06-01T10:41:19.383000
2011-06-01T12:29:43.590000
6,199,872
6,199,963
Running C++ code alongside and interacting with Python
So my current project is mostly in Python, but I'm looking to rewrite the most computationally expensive portions in C++ to try and boost performance. Much of this I can achieve via simple functions loaded from DLL files, but not everything. I have a multidimensional array in Python that I want to perform operations on...
First and foremost, when you are working with multidimensional arrays in Python, you should really be using NumPy. Chances are that your program is already fast enough when you let NumPy do the number crunching (use Array arithmetic instead of Python for loops). If this is not enough, consider writing parts of your pro...
Running C++ code alongside and interacting with Python So my current project is mostly in Python, but I'm looking to rewrite the most computationally expensive portions in C++ to try and boost performance. Much of this I can achieve via simple functions loaded from DLL files, but not everything. I have a multidimension...
TITLE: Running C++ code alongside and interacting with Python QUESTION: So my current project is mostly in Python, but I'm looking to rewrite the most computationally expensive portions in C++ to try and boost performance. Much of this I can achieve via simple functions loaded from DLL files, but not everything. I hav...
[ "c++", "python", "dll", "multidimensional-array", "a-star" ]
3
4
1,142
2
0
2011-06-01T10:41:42.920000
2011-06-01T10:50:18.047000
6,199,874
6,200,332
How can I run a selenium test every 5 minutes?
I have created a Selenium test using the Firefox Addon. Now, I want to make it run every 5 mins. How can I do that? Thanks!
To run it every 5 minutes, you will have to use export your test from IDE to be used in selenium-rc. For scheduling you can use quartz or cron.
How can I run a selenium test every 5 minutes? I have created a Selenium test using the Firefox Addon. Now, I want to make it run every 5 mins. How can I do that? Thanks!
TITLE: How can I run a selenium test every 5 minutes? QUESTION: I have created a Selenium test using the Firefox Addon. Now, I want to make it run every 5 mins. How can I do that? Thanks! ANSWER: To run it every 5 minutes, you will have to use export your test from IDE to be used in selenium-rc. For scheduling you ca...
[ "selenium", "selenium-rc" ]
0
2
1,932
2
0
2011-06-01T10:41:44.423000
2011-06-01T11:22:17.727000
6,199,875
6,199,939
jQuery, Difference between Firefox and Chrome
For example I have this snippet of html code:..... 1 require ' yaml ' 2 require ' set ' 3 4 module ActiveRecord #:nodoc: 5 # Generic Active Record exception class. 6 class ActiveRecordError < StandardError 7 end..... Then I'm running this jQuery code in Firefox and Chrome browsers: $('.no')[0] In Chrome I've got: ​ 1​ ...
That might be just the way the firebug or chrome debugger displays it. Have you tried doing something like alert ( $('.no')[0].html() );
jQuery, Difference between Firefox and Chrome For example I have this snippet of html code:..... 1 require ' yaml ' 2 require ' set ' 3 4 module ActiveRecord #:nodoc: 5 # Generic Active Record exception class. 6 class ActiveRecordError < StandardError 7 end..... Then I'm running this jQuery code in Firefox and Chrome b...
TITLE: jQuery, Difference between Firefox and Chrome QUESTION: For example I have this snippet of html code:..... 1 require ' yaml ' 2 require ' set ' 3 4 module ActiveRecord #:nodoc: 5 # Generic Active Record exception class. 6 class ActiveRecordError < StandardError 7 end..... Then I'm running this jQuery code in Fi...
[ "javascript", "jquery", "html", "firefox", "google-chrome" ]
2
5
1,426
1
0
2011-06-01T10:41:44.517000
2011-06-01T10:48:10.863000
6,199,879
6,201,132
Deleting images with paperclip
I'm trying to delete each single image uploaded for a model (work has many images) but now my code works like this: I have three images uploaded in a work, I want to delete just one but when I check the image's checkbox and submit the update action it will delete all the three images. Here is my work model's code: befo...
You should use the:allow_destroy options of accepts_nested_attributes_for instead. And in your form something like this: <% @work.images.each do |image| %> <%= f.fields_for:images, image do |image_fields| %> <%= image_tag image.url(:small) %> <%= image_fields.check_box:_destroy %> <% end %> <% end %>
Deleting images with paperclip I'm trying to delete each single image uploaded for a model (work has many images) but now my code works like this: I have three images uploaded in a work, I want to delete just one but when I check the image's checkbox and submit the update action it will delete all the three images. Her...
TITLE: Deleting images with paperclip QUESTION: I'm trying to delete each single image uploaded for a model (work has many images) but now my code works like this: I have three images uploaded in a work, I want to delete just one but when I check the image's checkbox and submit the update action it will delete all the...
[ "ruby-on-rails", "model", "paperclip" ]
0
1
1,920
1
0
2011-06-01T10:42:15.770000
2011-06-01T12:28:10.580000
6,199,880
6,200,114
Visual Studio 2008 application settings not saved?
I know: Application settings can be stored as any data type that is XML serializable or has a TypeConverter that implements ToString/FromString. The most common types are String, Integer, and Boolean, but you can also store values as Color, Object, or as a connection string. I have a ListDictionary class setting - whic...
There are a set of things i would like you to try. make sure you create the settings scope as USER. http://msdn.microsoft.com/en-us/library/aa730869(v=vs.80).aspx add 2 strings(DictionaryKey and Dictionaryvalue) to the settings and set the scope as user and value as blank Settings doesn't contain an option to add Dicti...
Visual Studio 2008 application settings not saved? I know: Application settings can be stored as any data type that is XML serializable or has a TypeConverter that implements ToString/FromString. The most common types are String, Integer, and Boolean, but you can also store values as Color, Object, or as a connection s...
TITLE: Visual Studio 2008 application settings not saved? QUESTION: I know: Application settings can be stored as any data type that is XML serializable or has a TypeConverter that implements ToString/FromString. The most common types are String, Integer, and Boolean, but you can also store values as Color, Object, or...
[ "visual-studio-2008", "application-settings" ]
0
1
863
1
0
2011-06-01T10:42:16.230000
2011-06-01T11:03:18.890000
6,199,881
6,216,039
IBM Websphere portlet classloader issue
I am currently working on a portlet that is using the commons-collections jar file and am getting a NoSuchMethodError. To resolve this issue I need to change the classloader of my WAR file from PARENT_FIRST to PARENT_LAST (in the application.xml file). However, when I do this my portlet will not launch and when I log i...
I am not sure how, but today I started getting error messages in the logs when I was getting "The portlet is temporarily disabled". I was getting a java.lang.LinkageError which was down to the fact that I had the servlet-api-2.5.jar and a jaxb jar which was conflicting with webshpere j2ee.jar. Once I removed these depe...
IBM Websphere portlet classloader issue I am currently working on a portlet that is using the commons-collections jar file and am getting a NoSuchMethodError. To resolve this issue I need to change the classloader of my WAR file from PARENT_FIRST to PARENT_LAST (in the application.xml file). However, when I do this my ...
TITLE: IBM Websphere portlet classloader issue QUESTION: I am currently working on a portlet that is using the commons-collections jar file and am getting a NoSuchMethodError. To resolve this issue I need to change the classloader of my WAR file from PARENT_FIRST to PARENT_LAST (in the application.xml file). However, ...
[ "websphere", "portlet", "websphere-portal" ]
0
2
2,366
3
0
2011-06-01T10:42:22.987000
2011-06-02T14:40:34.973000
6,199,884
6,199,942
Deciding which exceptions to catch in Python
Suppose that I am using a library X that specifies for example that exception.BaseError is the base class for all exceptions of X. Now, there is another exception, say X.FooError, which of course inherits from exception.BaseError but is more generalized, let's say that it handles invalid input. Let's suppose there are ...
Catch only the exceptions you can handle. If you can handle both the base exception and the derived exception then catch both. But make sure to put the derived exception first, since the first exception handler found that matches is the one used. try: X.foo() except X.FooError: pass except X.BaseError: pass
Deciding which exceptions to catch in Python Suppose that I am using a library X that specifies for example that exception.BaseError is the base class for all exceptions of X. Now, there is another exception, say X.FooError, which of course inherits from exception.BaseError but is more generalized, let's say that it ha...
TITLE: Deciding which exceptions to catch in Python QUESTION: Suppose that I am using a library X that specifies for example that exception.BaseError is the base class for all exceptions of X. Now, there is another exception, say X.FooError, which of course inherits from exception.BaseError but is more generalized, le...
[ "python", "exception" ]
7
10
275
3
0
2011-06-01T10:42:42.297000
2011-06-01T10:48:27.617000
6,199,886
6,203,952
Tagging photos using facebook C# SDK
I have been trying since a long time to tag the photos in facebook albums and to tag the photos being uploaded using the Facebook C# SDK. But I could find a way.. Is it currently possible with Facebook C# SDK V 5? Please let me know.
Luckily Facebook have just added the ability to tag photos using the graph api which is documented here. Just use FacebookWebClient to POST to "PHOTO_ID/tags".
Tagging photos using facebook C# SDK I have been trying since a long time to tag the photos in facebook albums and to tag the photos being uploaded using the Facebook C# SDK. But I could find a way.. Is it currently possible with Facebook C# SDK V 5? Please let me know.
TITLE: Tagging photos using facebook C# SDK QUESTION: I have been trying since a long time to tag the photos in facebook albums and to tag the photos being uploaded using the Facebook C# SDK. But I could find a way.. Is it currently possible with Facebook C# SDK V 5? Please let me know. ANSWER: Luckily Facebook have ...
[ "c#", "facebook", "sdk", "photo", "tagging" ]
0
1
986
1
0
2011-06-01T10:42:46.923000
2011-06-01T15:46:35.123000
6,199,889
6,204,804
Rebasing remote branches in Git
I am using an intermediate Git repository to mirror a remote SVN repository, from which people can clone and work on. The intermediate repository has its master branch rebased nightly from the upstream SVN, and we are working on feature branches. For example: remote: master local: master feature I can successfully pus...
It comes down to whether the feature is used by one person or if others are working off of it. You can force the push after the rebase if it's just you: git push origin feature -f However, if others are working on it, you should merge and not rebase off of master. git merge master git push origin feature This will ensu...
Rebasing remote branches in Git I am using an intermediate Git repository to mirror a remote SVN repository, from which people can clone and work on. The intermediate repository has its master branch rebased nightly from the upstream SVN, and we are working on feature branches. For example: remote: master local: maste...
TITLE: Rebasing remote branches in Git QUESTION: I am using an intermediate Git repository to mirror a remote SVN repository, from which people can clone and work on. The intermediate repository has its master branch rebased nightly from the upstream SVN, and we are working on feature branches. For example: remote: ma...
[ "git", "version-control", "branch", "rebase", "feature-branch" ]
174
238
241,000
6
0
2011-06-01T10:43:01.317000
2011-06-01T16:49:51.997000
6,199,892
6,200,103
IFrame scroll bars not coming on Chrome
I am using an IFrame to make show some content from some other domain. The problem is that I can use a specified height and width (which I am using) and the content inside the IFrame cannot be accommodated completely in the IFrame. Hence, I need scrollbars. I used the following html code - ** ** This works fine in Fire...
Instead of using the CSS style you could use the scrolling property of the iframe and set it to yes (i.e. always display scrollbars):
IFrame scroll bars not coming on Chrome I am using an IFrame to make show some content from some other domain. The problem is that I can use a specified height and width (which I am using) and the content inside the IFrame cannot be accommodated completely in the IFrame. Hence, I need scrollbars. I used the following h...
TITLE: IFrame scroll bars not coming on Chrome QUESTION: I am using an IFrame to make show some content from some other domain. The problem is that I can use a specified height and width (which I am using) and the content inside the IFrame cannot be accommodated completely in the IFrame. Hence, I need scrollbars. I us...
[ "google-chrome", "iframe", "scrollbar" ]
10
4
40,190
4
0
2011-06-01T10:43:17.907000
2011-06-01T11:02:36.807000
6,199,909
6,200,146
Slow DROP TEMPORARY TABLE
Ran into an interesting problem with a MySQL table I was building as a temporary table for reporting purposes. I found that if I didn't specify a storage engine, the DROP TEMPORARY TABLE command would hang for up to half a second. If I defined my table as ENGINE = MEMORY this short hang would disappear. As I have a sol...
Temporary tables, by default, will be created where ever the mysql configuration tells it to, typically /tmp or somewhere else on a disk. You can set this location (and even multiple locations) to a RAM disk location such as /dev/shm. Hope this helps!
Slow DROP TEMPORARY TABLE Ran into an interesting problem with a MySQL table I was building as a temporary table for reporting purposes. I found that if I didn't specify a storage engine, the DROP TEMPORARY TABLE command would hang for up to half a second. If I defined my table as ENGINE = MEMORY this short hang would ...
TITLE: Slow DROP TEMPORARY TABLE QUESTION: Ran into an interesting problem with a MySQL table I was building as a temporary table for reporting purposes. I found that if I didn't specify a storage engine, the DROP TEMPORARY TABLE command would hang for up to half a second. If I defined my table as ENGINE = MEMORY this...
[ "mysql", "performance", "temp-tables" ]
7
6
2,571
2
0
2011-06-01T10:45:04.163000
2011-06-01T11:06:08.577000
6,199,910
6,204,183
visual c++ and C++ builder
Can C++builder compile any c++ source files. I don't have a good knowledge in c++. but i have some experience in delphi. I like to use c++ but confused which one to use I know that cbuilder has vcl, easy to develop,easy for delphi developer But my problem is can it compile any c++ files (vc++ and other source files). i...
You'll find C++ Builder very comfy coming from Delphi if you don't care about MFC or.NET via C++/CLI etc and just want native C++ then either will work for you. Visual Studio 2010 supports a lot of the new C++0x features which is pretty nice, although they don't have variadic templates yet. I'm not sure how much of C++...
visual c++ and C++ builder Can C++builder compile any c++ source files. I don't have a good knowledge in c++. but i have some experience in delphi. I like to use c++ but confused which one to use I know that cbuilder has vcl, easy to develop,easy for delphi developer But my problem is can it compile any c++ files (vc++...
TITLE: visual c++ and C++ builder QUESTION: Can C++builder compile any c++ source files. I don't have a good knowledge in c++. but i have some experience in delphi. I like to use c++ but confused which one to use I know that cbuilder has vcl, easy to develop,easy for delphi developer But my problem is can it compile a...
[ "c++", "visual-c++", "c++builder" ]
2
5
948
4
0
2011-06-01T10:45:14.657000
2011-06-01T16:02:41.627000
6,199,914
6,200,345
Drupal get parameters from url in edit form and populate the form
i have an employee table with fields like id, name, age and salary. Iam showing the list of employee names in my custom module and when i click on an employee name, i have to show the edit form of that employee. The employee names are given a link, as like: and the corresponding menu path is configured as: $items['my_m...
For question 2: You have got it mixed up a bit, you don't create a custom 'page callback' menu item for forms, you should use 'drupal_get_form' as the 'page callback' with the name of your form() function (my_module_employee_form) as the 'page arguments'. function my_module_menu() { $items['my_module/employee/edit/%'] ...
Drupal get parameters from url in edit form and populate the form i have an employee table with fields like id, name, age and salary. Iam showing the list of employee names in my custom module and when i click on an employee name, i have to show the edit form of that employee. The employee names are given a link, as li...
TITLE: Drupal get parameters from url in edit form and populate the form QUESTION: i have an employee table with fields like id, name, age and salary. Iam showing the list of employee names in my custom module and when i click on an employee name, i have to show the edit form of that employee. The employee names are g...
[ "php", "drupal", "forms" ]
2
3
7,181
3
0
2011-06-01T10:45:34.023000
2011-06-01T11:23:15.773000
6,199,926
6,200,136
Meaning of layoutopt tool output
I use layoutopt like 'layoutopt layout.xml' And I get this message: 9:18 This tag and its children can be replaced by one and a compound drawable 28:78 Use an android:layout_height of 0dip instead of wrap_content for better performance But I do not understand the meaning, can someone clarify me the meaning of it use 0d...
The first message is saying that you can replace your linearLayout3 with only a TextView and use android:drawableLeft instead of the ImageView. The second message is probably telling you that on whatever is at line 28 of your layout you can use layout_height of 0dp instead of wrap_content. This is usually used in conju...
Meaning of layoutopt tool output I use layoutopt like 'layoutopt layout.xml' And I get this message: 9:18 This tag and its children can be replaced by one and a compound drawable 28:78 Use an android:layout_height of 0dip instead of wrap_content for better performance But I do not understand the meaning, can someone cl...
TITLE: Meaning of layoutopt tool output QUESTION: I use layoutopt like 'layoutopt layout.xml' And I get this message: 9:18 This tag and its children can be replaced by one and a compound drawable 28:78 Use an android:layout_height of 0dip instead of wrap_content for better performance But I do not understand the meani...
[ "android", "layout", "layout-optimization" ]
3
4
2,969
2
0
2011-06-01T10:46:16.090000
2011-06-01T11:05:03.547000
6,199,936
6,200,217
Navigation based application in IPAD
I could not find any Navigation Based Application template in Xcode. As of now, I am just pushing the viewControllers to the stack and then building the application. I wanted to know how can we create a navigation based application where we can set a RootViewController and add the viewControllers onto it.., So that it ...
Here is a tutorial for it: Tutorial How to add this tempelate: add template
Navigation based application in IPAD I could not find any Navigation Based Application template in Xcode. As of now, I am just pushing the viewControllers to the stack and then building the application. I wanted to know how can we create a navigation based application where we can set a RootViewController and add the v...
TITLE: Navigation based application in IPAD QUESTION: I could not find any Navigation Based Application template in Xcode. As of now, I am just pushing the viewControllers to the stack and then building the application. I wanted to know how can we create a navigation based application where we can set a RootViewContro...
[ "iphone", "objective-c", "ipad", "uitableview", "uinavigationcontroller" ]
1
2
601
2
0
2011-06-01T10:47:53.657000
2011-06-01T11:11:32.153000
6,199,938
6,199,999
Can this be included in a .js file?
This code works when it is included in the HTML file, but I'd rather have it in a separate JS file. Can that be done? Update I have tried this, but doesn't work... $(document).ready(function(){ // other functions here window.onload = function() { var a = document.getElementById("mylink"); a.onclick = function() { $('...
Sure thing - do this in the HTML file: Then in /js/yourfile.js: window.onload = function() { var a = document.getElementById("mylink"); a.onclick = function() { $('#c').empty(); return false; } } This will work the same way as your code above.
Can this be included in a .js file? This code works when it is included in the HTML file, but I'd rather have it in a separate JS file. Can that be done? Update I have tried this, but doesn't work... $(document).ready(function(){ // other functions here window.onload = function() { var a = document.getElementById("my...
TITLE: Can this be included in a .js file? QUESTION: This code works when it is included in the HTML file, but I'd rather have it in a separate JS file. Can that be done? Update I have tried this, but doesn't work... $(document).ready(function(){ // other functions here window.onload = function() { var a = document....
[ "javascript" ]
2
3
118
5
0
2011-06-01T10:48:07.253000
2011-06-01T10:53:08.203000
6,199,940
6,201,926
Generate PCR from PTS
I am trying to create PCR from PTS as follows. S64 nPcr = nPts * 9 / 100; pTsBuf[4] = 7 + nStuffyingBytes; pTsBuf[5] = 0x10; /* flags */ pTsBuf[6] = ( nPcr >> 25 )&0xff; pTsBuf[7] = ( nPcr >> 17 )&0xff; pTsBuf[8] = ( nPcr >> 9 )&0xff; pTsBuf[9] = ( nPcr >> 1 )&0xff; pTsBuf[10]= ( nPcr << 7 )&0x80; pTsBuf[11]= 0; But th...
First, the PCR has 33+9 bits, the PTS 33 bits. The 33 bit-portion (called PCR_base) runs at 90kHz, as does the PTS. The remaining 9 bits are called PCR_ext and run at 27MHz. Thus, this is how you could calculate the PCR: S64 nPcr = (S64)nPts << 9; Note that there should be a time-offset between the PTSs of the multiple...
Generate PCR from PTS I am trying to create PCR from PTS as follows. S64 nPcr = nPts * 9 / 100; pTsBuf[4] = 7 + nStuffyingBytes; pTsBuf[5] = 0x10; /* flags */ pTsBuf[6] = ( nPcr >> 25 )&0xff; pTsBuf[7] = ( nPcr >> 17 )&0xff; pTsBuf[8] = ( nPcr >> 9 )&0xff; pTsBuf[9] = ( nPcr >> 1 )&0xff; pTsBuf[10]= ( nPcr << 7 )&0x80;...
TITLE: Generate PCR from PTS QUESTION: I am trying to create PCR from PTS as follows. S64 nPcr = nPts * 9 / 100; pTsBuf[4] = 7 + nStuffyingBytes; pTsBuf[5] = 0x10; /* flags */ pTsBuf[6] = ( nPcr >> 25 )&0xff; pTsBuf[7] = ( nPcr >> 17 )&0xff; pTsBuf[8] = ( nPcr >> 9 )&0xff; pTsBuf[9] = ( nPcr >> 1 )&0xff; pTsBuf[10]= (...
[ "mpeg-2", "mpeg2-ts" ]
7
16
18,840
3
0
2011-06-01T10:48:25.700000
2011-06-01T13:28:33.783000
6,199,943
6,200,038
How to download jQuery js plugin?
I am confused about js file of jQuery which one i have downloaded just now. downloaded a zipped folder contains a lot of folder and files inside it. How can i know which one js file exactly is for particular plugin? Lets say, i have to downloaded for Dialog and i download from this page by selecting Model under Widget ...
When you've configured your download you just need to use the 2 folders: js and css. You need to reference jquery.js jquery-ui-1.8.13.custom.min.js jquery-ui-1.8.13.custom.css I import this folder development-bundle\ui\i18n as well when I need the localized datetime-picker.
How to download jQuery js plugin? I am confused about js file of jQuery which one i have downloaded just now. downloaded a zipped folder contains a lot of folder and files inside it. How can i know which one js file exactly is for particular plugin? Lets say, i have to downloaded for Dialog and i download from this pag...
TITLE: How to download jQuery js plugin? QUESTION: I am confused about js file of jQuery which one i have downloaded just now. downloaded a zipped folder contains a lot of folder and files inside it. How can i know which one js file exactly is for particular plugin? Lets say, i have to downloaded for Dialog and i down...
[ "javascript", "jquery" ]
0
0
10,206
6
0
2011-06-01T10:48:28.080000
2011-06-01T10:56:37.063000
6,199,957
6,199,984
Make $_GET variable available within function scope
How to pass a $_GET variable into function? $_GET['TEST']='some word'; public function example() { //pass $_GET['TEST'] into here } When I try to access $_GET['TEST'] in my function, it is empty.
The $_GET array is one of PHPs superglobals so you can use it as-is within the function: public function example() { print $_GET['TEST']; } In general, you pass a variable (argument) like so: public function example($arg1) { print $arg1; } example($myNonGlobalVar);
Make $_GET variable available within function scope How to pass a $_GET variable into function? $_GET['TEST']='some word'; public function example() { //pass $_GET['TEST'] into here } When I try to access $_GET['TEST'] in my function, it is empty.
TITLE: Make $_GET variable available within function scope QUESTION: How to pass a $_GET variable into function? $_GET['TEST']='some word'; public function example() { //pass $_GET['TEST'] into here } When I try to access $_GET['TEST'] in my function, it is empty. ANSWER: The $_GET array is one of PHPs superglobals s...
[ "php" ]
0
4
362
6
0
2011-06-01T10:49:31.593000
2011-06-01T10:52:02.167000
6,199,962
6,200,625
How to pass data from one form to another in Qt?
How can I pass data from one form to another in Qt? I have created a QWidgetProgect -> QtGuiApplication, I have two forms currently. Now I want to pass data from one form to another. How can I achieve that? Thanks.
Here are some options that you might want to try: If one form owns the other, you can just make a method in the other and call it You can use Qt's Signals and slots mechanism, make a signal in the form with the textbox, and connect it to a slot you make in the other form (you could also connect it with the textbox's te...
How to pass data from one form to another in Qt? How can I pass data from one form to another in Qt? I have created a QWidgetProgect -> QtGuiApplication, I have two forms currently. Now I want to pass data from one form to another. How can I achieve that? Thanks.
TITLE: How to pass data from one form to another in Qt? QUESTION: How can I pass data from one form to another in Qt? I have created a QWidgetProgect -> QtGuiApplication, I have two forms currently. Now I want to pass data from one form to another. How can I achieve that? Thanks. ANSWER: Here are some options that yo...
[ "qt", "qt4", "qwidget" ]
7
16
19,477
2
0
2011-06-01T10:50:06.353000
2011-06-01T11:49:11.303000
6,199,964
6,200,309
Disable selection on webpage BUT not on forms or people can't select input fields by mouse
What i'm trying to do is to make the whole page unselectable and i've done it with this: $('*').disableSelection(); however when you are filling out a form you can't select it by clicking, for that i've changed my code to: $('*:not(input)').disableSelection(); but this didn't work also... i tried to call an enableSelec...
I've changed it to use:input (as that includes all types of input), but input also worked: http://jsfiddle.net/infernalbadger/kWB6g/
Disable selection on webpage BUT not on forms or people can't select input fields by mouse What i'm trying to do is to make the whole page unselectable and i've done it with this: $('*').disableSelection(); however when you are filling out a form you can't select it by clicking, for that i've changed my code to: $('*:n...
TITLE: Disable selection on webpage BUT not on forms or people can't select input fields by mouse QUESTION: What i'm trying to do is to make the whole page unselectable and i've done it with this: $('*').disableSelection(); however when you are filling out a form you can't select it by clicking, for that i've changed ...
[ "jquery", "jquery-selectors", "css-selectors" ]
2
2
826
2
0
2011-06-01T10:50:29.407000
2011-06-01T11:19:53.927000
6,199,977
6,200,040
How to iterator over an array in Groovy?
public class ArrayTest{ public static void main(String[] args){ String[] list = {"key1", "key2", "key3"}; String[] list2 = {"val1", "val2", "val3"}; for(int i = 0; i < list.length; i++){ ilike(list[i], list2[i]; } } } How to write the above code in Groovy? Actually, its a grails application where I want to do similar ...
You have a couple of options that come to mind... Given: String[] list = [ 'key1', 'key2', 'key3' ] String[] list2 = [ 'val1', 'val2', 'val3' ] Then you could do: list.eachWithIndex { a, i -> ilike a, list2[ i ] } or assuming ilike is defined as: void ilike( String a, String b ) { println "I like $a and $b" } Then you ...
How to iterator over an array in Groovy? public class ArrayTest{ public static void main(String[] args){ String[] list = {"key1", "key2", "key3"}; String[] list2 = {"val1", "val2", "val3"}; for(int i = 0; i < list.length; i++){ ilike(list[i], list2[i]; } } } How to write the above code in Groovy? Actually, its a grail...
TITLE: How to iterator over an array in Groovy? QUESTION: public class ArrayTest{ public static void main(String[] args){ String[] list = {"key1", "key2", "key3"}; String[] list2 = {"val1", "val2", "val3"}; for(int i = 0; i < list.length; i++){ ilike(list[i], list2[i]; } } } How to write the above code in Groovy? Act...
[ "arrays", "grails", "groovy", "iteration" ]
14
26
38,446
2
0
2011-06-01T10:51:12.687000
2011-06-01T10:56:42.040000
6,199,990
6,201,846
Creating a SharePoint 2010 page via the client object model
I am attempting to create pages in a Sharepoint 2010 pages library via the client object model but I cannot find any examples on how to do it. I have tried two approaches: The first is to treat the Pages library as a list and try to add a list item. static void createPage(Web w, ClientContext ctx) { List pages = w.List...
The problem is that the FileCreationInformation object is expecting a byte array and I am not sure what to pass to it. You could you whatever method you want to get the page contents into a string (read it from a file, create it using a StringBuilder, etc) and then convert the string to a byte array using System.Text.E...
Creating a SharePoint 2010 page via the client object model I am attempting to create pages in a Sharepoint 2010 pages library via the client object model but I cannot find any examples on how to do it. I have tried two approaches: The first is to treat the Pages library as a list and try to add a list item. static voi...
TITLE: Creating a SharePoint 2010 page via the client object model QUESTION: I am attempting to create pages in a Sharepoint 2010 pages library via the client object model but I cannot find any examples on how to do it. I have tried two approaches: The first is to treat the Pages library as a list and try to add a lis...
[ "sharepoint-2010", "sharepointdocumentlibrary", "sharepoint-clientobject" ]
2
2
3,723
2
0
2011-06-01T10:52:18.967000
2011-06-01T13:22:33.323000
6,199,996
6,200,068
Display certain contents of a website into webview
I'm new to Android programming. I would like to know if I can load a certain part of a website into webview? The website is made from CSS. It contains headers and buttons that I do not want to be displayed into the webview. I would only like to display the contents in the website, like images and texts. Is this possibl...
You can use the public void loadDataWithBaseURL (String baseUrl, String data, String mimeType, String encoding, String historyUrl) method to load a customised html, maybe your app can get the html from the site, modify it, and loadDataWithBaseUrl then.
Display certain contents of a website into webview I'm new to Android programming. I would like to know if I can load a certain part of a website into webview? The website is made from CSS. It contains headers and buttons that I do not want to be displayed into the webview. I would only like to display the contents in ...
TITLE: Display certain contents of a website into webview QUESTION: I'm new to Android programming. I would like to know if I can load a certain part of a website into webview? The website is made from CSS. It contains headers and buttons that I do not want to be displayed into the webview. I would only like to displa...
[ "android", "html", "image", "button", "webview" ]
0
0
382
1
0
2011-06-01T10:52:56.507000
2011-06-01T10:59:14.087000
6,200,025
6,200,365
UIAutomation Nested Accessibilty Elements Disappear from Hierarchy
I have a view with two subviews a button and an Image, I turn on accessibility and set the label on the subviews and I can see the hierarchy by calling UIATarget.localTarget().frontMostApp().mainWindow().logElementTree(); I get the following for example: 1 Window 2 My View 3 My Button 3 My Image If I then turn on acces...
Straight from the iOS docs Accessibility Guide Make the Contents of Custom Container Views Accessible If your application displays a custom view that contains other elements with which users interact, you need to make the contained elements separately accessible. At the same time, you need to make sure that the contain...
UIAutomation Nested Accessibilty Elements Disappear from Hierarchy I have a view with two subviews a button and an Image, I turn on accessibility and set the label on the subviews and I can see the hierarchy by calling UIATarget.localTarget().frontMostApp().mainWindow().logElementTree(); I get the following for example...
TITLE: UIAutomation Nested Accessibilty Elements Disappear from Hierarchy QUESTION: I have a view with two subviews a button and an Image, I turn on accessibility and set the label on the subviews and I can see the hierarchy by calling UIATarget.localTarget().frontMostApp().mainWindow().logElementTree(); I get the fol...
[ "iphone", "ios", "ios-ui-automation", "xcode-instruments" ]
12
10
2,767
1
0
2011-06-01T10:55:19.747000
2011-06-01T11:24:52.180000
6,200,053
6,200,093
Exposing an internal class as a public property
In a class library I am working on, I had a class with lots of properties so I refactored it to be composed of a few smaller, internal classes. However, now I have marked these classes as internal, the code won't compile when I expose them as public properties on the original class. For example: public class TheOrigina...
If you're exposing the content of the class to the outer world, mark it as public so you'll later know that the class is a publicly visible one so you'll be reluctant to change the public interface so often. There is not point in marking it internal if that's not going to be internal like that. If you really want that,...
Exposing an internal class as a public property In a class library I am working on, I had a class with lots of properties so I refactored it to be composed of a few smaller, internal classes. However, now I have marked these classes as internal, the code won't compile when I expose them as public properties on the orig...
TITLE: Exposing an internal class as a public property QUESTION: In a class library I am working on, I had a class with lots of properties so I refactored it to be composed of a few smaller, internal classes. However, now I have marked these classes as internal, the code won't compile when I expose them as public prop...
[ ".net", "encapsulation", "public", "class-library", "internal" ]
2
2
817
3
0
2011-06-01T10:57:45.393000
2011-06-01T11:01:27.580000
6,200,058
6,289,776
Prevent iPad web app from showing Safari address bar
I have a web app running on Safari on an iPad. I am starting the app from the iPad home page. I want the app to start in full-screen mode, and to continue running in full-screen mode (i.e. not showing the Safari address bar). I have therefore added the following meta-tags to the site master page: I start the app from t...
It would appear that Mobile Safari does not 'natively' support full-screen if you use external links. As soon as you use an html anchor then it flips out of full-screen mode. The window.scrollTo may be a workaround that will work for some people, but I also want to avoid the way that the UI flips itself when transition...
Prevent iPad web app from showing Safari address bar I have a web app running on Safari on an iPad. I am starting the app from the iPad home page. I want the app to start in full-screen mode, and to continue running in full-screen mode (i.e. not showing the Safari address bar). I have therefore added the following meta...
TITLE: Prevent iPad web app from showing Safari address bar QUESTION: I have a web app running on Safari on an iPad. I am starting the app from the iPad home page. I want the app to start in full-screen mode, and to continue running in full-screen mode (i.e. not showing the Safari address bar). I have therefore added ...
[ "ipad", "safari", "jquery-mobile", "web-applications", "address-bar" ]
6
7
14,246
3
0
2011-06-01T10:58:12.167000
2011-06-09T07:59:44.303000
6,200,061
6,208,916
Comparison of mongodb with table-based db
I try to understand which problems are better to solve with mongodb. Maybe someone can provide link to some article about where it's better to use mongodb and where it's better to use table-based DBs. thank you in advance!
MongoDB has a short document here. There is also a list of production deployments. That should provide some ideas of who is using MongODB.
Comparison of mongodb with table-based db I try to understand which problems are better to solve with mongodb. Maybe someone can provide link to some article about where it's better to use mongodb and where it's better to use table-based DBs. thank you in advance!
TITLE: Comparison of mongodb with table-based db QUESTION: I try to understand which problems are better to solve with mongodb. Maybe someone can provide link to some article about where it's better to use mongodb and where it's better to use table-based DBs. thank you in advance! ANSWER: MongoDB has a short document...
[ "mongodb", "database-design", "database", "nosql" ]
0
1
185
1
0
2011-06-01T10:58:26.737000
2011-06-01T23:33:48.580000
6,200,067
6,200,091
Using Django-models, how to form a website which allows creation of additional attributes?
I am developing a simple map repository, and for each map a table has to be created according to the no. of attributes in the map. I also want to give access to the user to create as many additional attributes as he wants to per map. This would mean that each map should have its own model, and if there are additional a...
This is an awful idea. Consider creating a second model that has a FK to the map model and implements EAV.
Using Django-models, how to form a website which allows creation of additional attributes? I am developing a simple map repository, and for each map a table has to be created according to the no. of attributes in the map. I also want to give access to the user to create as many additional attributes as he wants to per ...
TITLE: Using Django-models, how to form a website which allows creation of additional attributes? QUESTION: I am developing a simple map repository, and for each map a table has to be created according to the no. of attributes in the map. I also want to give access to the user to create as many additional attributes a...
[ "django" ]
0
2
58
1
0
2011-06-01T10:58:58.063000
2011-06-01T11:01:12.120000
6,200,069
6,201,039
how to view sparse matrices outside python environment
I am working with sparse matrices which are 11685 by 85730. I am able to store it only as a.pickle file. I want to view the file outside the python environment also. I tried saving as a.txt and.csv files but they are of no help. Can anybody suggest a suitable format and library so that I can view those matrices outside...
Python allows you to write to many formats that are readable outside of python..csv is one format, but there are also HDF5 and netcdf4 among others (those are meant to store array data though). http://code.google.com/p/netcdf4-python/ http://code.google.com/p/h5py/ Or you could save them in a matlab readable format: ht...
how to view sparse matrices outside python environment I am working with sparse matrices which are 11685 by 85730. I am able to store it only as a.pickle file. I want to view the file outside the python environment also. I tried saving as a.txt and.csv files but they are of no help. Can anybody suggest a suitable forma...
TITLE: how to view sparse matrices outside python environment QUESTION: I am working with sparse matrices which are 11685 by 85730. I am able to store it only as a.pickle file. I want to view the file outside the python environment also. I tried saving as a.txt and.csv files but they are of no help. Can anybody sugges...
[ "python", "numpy", "sparse-matrix" ]
2
2
160
1
0
2011-06-01T10:59:14.837000
2011-06-01T12:21:09.570000
6,200,070
6,206,229
How to generate 3 node treeview in winforms with mysql?
I am implementing a database so I have coded like... string MyConString = ConfigurationManager.ConnectionStrings["College_Management_System.Properties.Settings.cmsConnectionString"].ConnectionString; MySqlConnection connection = new MySqlConnection(MyConString); MySqlCommand command = connection.CreateCommand(); MySqlD...
Your error comes from the fact that the records with parent_id == 18 get read before the record with parent_id == 4. Your treeView1.Nodes[1].Node[0] has not yet been added at the time you call it. You could possibly avoid this situation with something like 'order by parent_id' to ensure that the records will come back ...
How to generate 3 node treeview in winforms with mysql? I am implementing a database so I have coded like... string MyConString = ConfigurationManager.ConnectionStrings["College_Management_System.Properties.Settings.cmsConnectionString"].ConnectionString; MySqlConnection connection = new MySqlConnection(MyConString); M...
TITLE: How to generate 3 node treeview in winforms with mysql? QUESTION: I am implementing a database so I have coded like... string MyConString = ConfigurationManager.ConnectionStrings["College_Management_System.Properties.Settings.cmsConnectionString"].ConnectionString; MySqlConnection connection = new MySqlConnecti...
[ "c#", "winforms", "treeview" ]
0
2
546
1
0
2011-06-01T10:59:26.083000
2011-06-01T18:54:16.353000
6,200,073
6,200,147
Is there an efficient way to 'enumerate' a namespace in C++?
Is there a way to programmatically enumerate a namespace and its members in C++? I have a large C++ program which utilizes several namespaces. I am unfamiliar with the codebase, and would like to determine which functions/classes/variables are associated with which namespaces. My current approach involves simply removi...
This is not possible in C++. However, you can use external tools, such as Doxygen, that will create documentation (HTML, and other formats) that will list all the members of your namespaces.
Is there an efficient way to 'enumerate' a namespace in C++? Is there a way to programmatically enumerate a namespace and its members in C++? I have a large C++ program which utilizes several namespaces. I am unfamiliar with the codebase, and would like to determine which functions/classes/variables are associated with...
TITLE: Is there an efficient way to 'enumerate' a namespace in C++? QUESTION: Is there a way to programmatically enumerate a namespace and its members in C++? I have a large C++ program which utilizes several namespaces. I am unfamiliar with the codebase, and would like to determine which functions/classes/variables a...
[ "c++", "namespaces" ]
1
4
182
5
0
2011-06-01T10:59:41.090000
2011-06-01T11:06:10.357000
6,200,076
6,200,117
Can i access c++ or Java functions inside python
I am mainly using python for extensive algorithms operations. Now i have my webiste in Django. I few libraries in c++ and few in Java which i don't have in python. Or you can say that i already have some c++, Java files in which some algorithm is coded. can i call those function or do some calculation in my djnago site...
For C++, certainly. Either write a module that wraps the library, or use something like ctypes or SWIG. For Java, you'd be best to move to Jython (and correspondingly use django-jython). Note that using both C++ and Java from Python is not trivial.
Can i access c++ or Java functions inside python I am mainly using python for extensive algorithms operations. Now i have my webiste in Django. I few libraries in c++ and few in Java which i don't have in python. Or you can say that i already have some c++, Java files in which some algorithm is coded. can i call those ...
TITLE: Can i access c++ or Java functions inside python QUESTION: I am mainly using python for extensive algorithms operations. Now i have my webiste in Django. I few libraries in c++ and few in Java which i don't have in python. Or you can say that i already have some c++, Java files in which some algorithm is coded....
[ "java", "c++", "python", "linux" ]
0
2
176
3
0
2011-06-01T10:59:52.700000
2011-06-01T11:03:50.947000
6,200,077
6,200,453
How to lookup configured Struts action
I want to do the following: final Action myAction = getActionDefinedInStrutsConfig(param); myAction.execute(params); Is there a way to lookup the actions that the ActionServlet has initialized? I can create a new one like so: final Action myAction = new ActionImpl(); myAction.execute(params); but this way the new actio...
Ok, since I see what you mean here's what I would suggest: Use your action for validatory purposes, i.e., retrieval of data from ActionForm and checking for validity. Once all information is done, send the info to a service. The service (need not to be a web service, but a simple POJO) will have the business logic of t...
How to lookup configured Struts action I want to do the following: final Action myAction = getActionDefinedInStrutsConfig(param); myAction.execute(params); Is there a way to lookup the actions that the ActionServlet has initialized? I can create a new one like so: final Action myAction = new ActionImpl(); myAction.exec...
TITLE: How to lookup configured Struts action QUESTION: I want to do the following: final Action myAction = getActionDefinedInStrutsConfig(param); myAction.execute(params); Is there a way to lookup the actions that the ActionServlet has initialized? I can create a new one like so: final Action myAction = new ActionImp...
[ "java", "servlets", "struts-1" ]
0
2
420
2
0
2011-06-01T10:59:54.787000
2011-06-01T11:33:35.203000
6,200,078
6,200,154
iPad Flash replacement best practices
I have a website that has a Flash banner. For devices that do not support Flash (like iPads) I want to display an image instead. What is the best practice to deal with this situation? Should this be handled from the front-end with JavaScript? Should this rather be handled from the back-end? (I am using Java on the back...
Use swfobject: http://www.adobe.com/devnet/flashplayer/articles/swfobject.html It allows you to detect flash and if not present (or with a lower version than the one you exported your flash file) it will show an alternate content. That's where you can place your "iPad" content. It can be images, or straightforward html...
iPad Flash replacement best practices I have a website that has a Flash banner. For devices that do not support Flash (like iPads) I want to display an image instead. What is the best practice to deal with this situation? Should this be handled from the front-end with JavaScript? Should this rather be handled from the ...
TITLE: iPad Flash replacement best practices QUESTION: I have a website that has a Flash banner. For devices that do not support Flash (like iPads) I want to display an image instead. What is the best practice to deal with this situation? Should this be handled from the front-end with JavaScript? Should this rather be...
[ "javascript", "flash", "ipad" ]
2
1
838
1
0
2011-06-01T11:00:08.507000
2011-06-01T11:06:29.677000
6,200,088
6,200,272
Multiple histograms in ggplot2
Here is a short part of my data: dat <-structure(list(sex = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L),.Label = c("male", "female"), class = "factor"), A = c(1, 2, 0, 2, 1, 2, 2, 0, 2, 0, 1, 2, 2, 0, 0, 2, 0, 0, 0, 2), B = c(0, 0, 0, 0, 0, 2, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1...
You can try grid.arrange() from the gridExtra package; i.e., store your plots in a list (say qplt ), and use do.call(grid.arrange, qplt) Other ideas: use facetting within ggplot2 ( sex*variable ), by considering a data.frame (use melt ). As a sidenote, it would be better to use stacked barchart or Cleveland's dotplot f...
Multiple histograms in ggplot2 Here is a short part of my data: dat <-structure(list(sex = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L),.Label = c("male", "female"), class = "factor"), A = c(1, 2, 0, 2, 1, 2, 2, 0, 2, 0, 1, 2, 2, 0, 0, 2, 0, 0, 0, 2), B = c(0, 0, 0, 0, 0, ...
TITLE: Multiple histograms in ggplot2 QUESTION: Here is a short part of my data: dat <-structure(list(sex = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L),.Label = c("male", "female"), class = "factor"), A = c(1, 2, 0, 2, 1, 2, 2, 0, 2, 0, 1, 2, 2, 0, 0, 2, 0, 0, 0, 2), B =...
[ "r", "ggplot2", "histogram" ]
13
19
20,531
2
0
2011-06-01T11:00:59.373000
2011-06-01T11:16:19.843000
6,200,106
6,200,261
Javascript to Coffeescript conversion
Being not the best with javascript I am converting my file to coffeescript. Here is my original JS function makeTall(){ jQuery(this).find('ul:first').slideDown( {queue:false, duration:220} ); } I have tried the following. makeTall -> jQuery(@).find('ul:first').slideDown queue:false duration:220 Which produces. makeTall...
You're simply missing the = sign before the function literal: makeTall = -> jQuery(@).find('ul:first').slideDown queue:false duration:220
Javascript to Coffeescript conversion Being not the best with javascript I am converting my file to coffeescript. Here is my original JS function makeTall(){ jQuery(this).find('ul:first').slideDown( {queue:false, duration:220} ); } I have tried the following. makeTall -> jQuery(@).find('ul:first').slideDown queue:false...
TITLE: Javascript to Coffeescript conversion QUESTION: Being not the best with javascript I am converting my file to coffeescript. Here is my original JS function makeTall(){ jQuery(this).find('ul:first').slideDown( {queue:false, duration:220} ); } I have tried the following. makeTall -> jQuery(@).find('ul:first').sli...
[ "javascript", "coffeescript" ]
2
4
1,123
2
0
2011-06-01T11:02:42.190000
2011-06-01T11:15:23.217000
6,200,108
6,200,143
Determining whether a folder is in a file path
I am working on a backup script in Python, and would like it to be able to ignore folders. I therefore have a list of folders to be ignored, ie ['Folder 1', 'Folder3']. I am using os.walk, and am trying to get it to skip any folder in the ignored folders list or that has any of the ignored folders as a parent directory...
From the docs: When topdown is True, the caller can modify the dirnames list in-place (perhaps using del or slice assignment), and walk() will only recurse into the subdirectories whose names remain in dirnames; this can be used to prune the search, impose a specific order of visiting, or even to inform walk() about di...
Determining whether a folder is in a file path I am working on a backup script in Python, and would like it to be able to ignore folders. I therefore have a list of folders to be ignored, ie ['Folder 1', 'Folder3']. I am using os.walk, and am trying to get it to skip any folder in the ignored folders list or that has a...
TITLE: Determining whether a folder is in a file path QUESTION: I am working on a backup script in Python, and would like it to be able to ignore folders. I therefore have a list of folders to be ignored, ie ['Folder 1', 'Folder3']. I am using os.walk, and am trying to get it to skip any folder in the ignored folders ...
[ "python", "regex", "filepath" ]
0
2
113
2
0
2011-06-01T11:02:50.510000
2011-06-01T11:06:02.350000
6,200,109
6,200,195
Loading problem of NIB file from TabViewController in iPhone
I have a UITableViewController (MyViewController.xib). This is showing 3 rows with their title. I have 3 new xib file for each row title.On each row selection I want to load XIB file. I am getting the place when I am clicking on RowIndex Selection. But when i am trying to load NIB file nothing is happening. I mean nith...
You are instantiating detailViewController, but you aren't doing anything with it. Try adding this after the alloc of detailViewController: [self presentModalViewController:detailViewController animated:YES];
Loading problem of NIB file from TabViewController in iPhone I have a UITableViewController (MyViewController.xib). This is showing 3 rows with their title. I have 3 new xib file for each row title.On each row selection I want to load XIB file. I am getting the place when I am clicking on RowIndex Selection. But when i...
TITLE: Loading problem of NIB file from TabViewController in iPhone QUESTION: I have a UITableViewController (MyViewController.xib). This is showing 3 rows with their title. I have 3 new xib file for each row title.On each row selection I want to load XIB file. I am getting the place when I am clicking on RowIndex Sel...
[ "iphone", "objective-c", "uiviewcontroller", "uitableview", "nib" ]
0
0
134
2
0
2011-06-01T11:02:52.637000
2011-06-01T11:09:46.580000
6,200,110
6,200,430
How to get next Date with specific time in PHP
I want to get the date with specific day and time in PHP, like i want the date of next day and time of 9.30 am i.e "2011-06-02 09:30:00". the code i was using get to do that, the code above works fine but fails on 31 day, on 31st it returns "1970-01-01 05:30:00". Is there any other way to do so.
When shifting dates by a fixed number, it's better to use mktime(), because it handles invalid dates well (e.g. it knows that January 32 is in fact February 1) $trigger_date_time = date("Y-m-d H:i:s", mktime(9,30,0, date('n'), date('j')+1, date('Y'));
How to get next Date with specific time in PHP I want to get the date with specific day and time in PHP, like i want the date of next day and time of 9.30 am i.e "2011-06-02 09:30:00". the code i was using get to do that, the code above works fine but fails on 31 day, on 31st it returns "1970-01-01 05:30:00". Is there ...
TITLE: How to get next Date with specific time in PHP QUESTION: I want to get the date with specific day and time in PHP, like i want the date of next day and time of 9.30 am i.e "2011-06-02 09:30:00". the code i was using get to do that, the code above works fine but fails on 31 day, on 31st it returns "1970-01-01 05...
[ "php", "datetime" ]
4
6
11,108
5
0
2011-06-01T11:02:54.647000
2011-06-01T11:30:50.310000
6,200,121
6,200,179
Cocoa Java application on iPhone
I was playing around with the plist of an iPhone project in Xcode, and I noticed the key "Cocoa Java application" with values "YES" and "NO". What's this for?
It's not for iPhone. At one time, Apple created a "bridge" that let you access Cocoa from Java. Note, that's Cocoa, the Mac OS X framework, not Cocoa Touch, the iOS framework. I'm not sure what the status of the bridge is at this time, but it's at least deprecated, and possibly not supported at all.
Cocoa Java application on iPhone I was playing around with the plist of an iPhone project in Xcode, and I noticed the key "Cocoa Java application" with values "YES" and "NO". What's this for?
TITLE: Cocoa Java application on iPhone QUESTION: I was playing around with the plist of an iPhone project in Xcode, and I noticed the key "Cocoa Java application" with values "YES" and "NO". What's this for? ANSWER: It's not for iPhone. At one time, Apple created a "bridge" that let you access Cocoa from Java. Note,...
[ "java", "iphone", "plist" ]
0
2
344
1
0
2011-06-01T11:04:13.693000
2011-06-01T11:08:53.397000
6,200,123
6,200,231
Excel VBA - Connection to SQL database fails
I've got this code I'm trying to use to export data from Excel to an SQL Database and I'm receiving this error when I try to open the connection. [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for the user 's_accounting' This is the code I'm trying to use(variables already Dimmed of course) ServerName = "1...
You're mixing two authentication methods - you created/enabled AD (domain) user, but you're using SQL authentication to access server. Either you need to access server with current domain user credentials (so called integrated security; cannot present correct syntax atm) OR you need to enable SQL authentication on SQL ...
Excel VBA - Connection to SQL database fails I've got this code I'm trying to use to export data from Excel to an SQL Database and I'm receiving this error when I try to open the connection. [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for the user 's_accounting' This is the code I'm trying to use(variab...
TITLE: Excel VBA - Connection to SQL database fails QUESTION: I've got this code I'm trying to use to export data from Excel to an SQL Database and I'm receiving this error when I try to open the connection. [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for the user 's_accounting' This is the code I'm tr...
[ "sql", "vba", "excel" ]
0
3
4,177
1
0
2011-06-01T11:04:26.503000
2011-06-01T11:12:51.930000
6,200,124
6,200,181
Error in inflating a layout into AlertDialog (Android)
public void popInstructionsDialog(String title, String text, String buttonText, Activity activity){ AlertDialog.Builder builder; AlertDialog alertDialog; Context mContext = activity.getApplicationContext(); LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); View lay...
Make the mcontext to be public and set try mContext =this in oncreate method and use this while inflating the alertdialog.... I have been hit by this problem many a times... The only solution that i use to solve this is this one... Hope this helps...
Error in inflating a layout into AlertDialog (Android) public void popInstructionsDialog(String title, String text, String buttonText, Activity activity){ AlertDialog.Builder builder; AlertDialog alertDialog; Context mContext = activity.getApplicationContext(); LayoutInflater inflater = (LayoutInflater) mContext.getS...
TITLE: Error in inflating a layout into AlertDialog (Android) QUESTION: public void popInstructionsDialog(String title, String text, String buttonText, Activity activity){ AlertDialog.Builder builder; AlertDialog alertDialog; Context mContext = activity.getApplicationContext(); LayoutInflater inflater = (LayoutInfla...
[ "android" ]
4
2
4,538
3
0
2011-06-01T11:04:32.827000
2011-06-01T11:09:04.910000
6,200,125
6,200,275
Gin problem using GWT and Guice. - java.lang.RuntimeException: Deferred binding failed for
I have a problem using Gin. Here is a simple example. @GinModules(AppModule.class) public interface AppInjector extends Ginjector { MainForm getMainPanel(); TemplateForm getHeaderForm(); } then here is Module import com.google.inject.Singleton; public class AppModule extends AbstractGinModule { @Override protected void...
@GinModules(AppClientModule.class) should probably be @GinModules(AppModule.class) Update: The error is in line declaring AppInjector. It should be: interface AppInjector extends Ginjector {
Gin problem using GWT and Guice. - java.lang.RuntimeException: Deferred binding failed for I have a problem using Gin. Here is a simple example. @GinModules(AppModule.class) public interface AppInjector extends Ginjector { MainForm getMainPanel(); TemplateForm getHeaderForm(); } then here is Module import com.google.in...
TITLE: Gin problem using GWT and Guice. - java.lang.RuntimeException: Deferred binding failed for QUESTION: I have a problem using Gin. Here is a simple example. @GinModules(AppModule.class) public interface AppInjector extends Ginjector { MainForm getMainPanel(); TemplateForm getHeaderForm(); } then here is Module im...
[ "gwt", "guice", "gwt-gin" ]
1
1
1,920
1
0
2011-06-01T11:04:32.983000
2011-06-01T11:16:27.180000
6,200,127
6,200,436
Hiding the Root View of a UISplitViewController
For the app that i am developing i have used a UISplitViewController as my base, but have modified, or attempting to modify the split view controller like that of Alice Bevan–McGregor's on http://vimeo.com/13054813. However in my app i have a table view with a list of options, and every time i click on an option it loa...
May be you should give a try to this http://mattgemmell.com/2010/07/31/mgsplitviewcontroller-for-ipad It has the following method - (IBAction)toggleMasterView:(id)sender; My own implementation of custom splitview using navigation based app @ https://github.com/palaniraja/cUISplitViewController Also try Salva's implemen...
Hiding the Root View of a UISplitViewController For the app that i am developing i have used a UISplitViewController as my base, but have modified, or attempting to modify the split view controller like that of Alice Bevan–McGregor's on http://vimeo.com/13054813. However in my app i have a table view with a list of opt...
TITLE: Hiding the Root View of a UISplitViewController QUESTION: For the app that i am developing i have used a UISplitViewController as my base, but have modified, or attempting to modify the split view controller like that of Alice Bevan–McGregor's on http://vimeo.com/13054813. However in my app i have a table view ...
[ "ios", "ipad", "uiviewcontroller", "uisplitviewcontroller", "uitoolbar" ]
0
0
930
1
0
2011-06-01T11:04:34.823000
2011-06-01T11:31:47.253000
6,200,135
6,203,022
Is there a real performance gain when I turn {$IMPORTEDDATA} off?
Is there a real performance gain when I turn {$IMPORTEDDATA} off? The manual only says this: "The {$G-} directive disables creation of imported data references. Using {$G-} increases memory-access efficiency, but prevents a packaged unit where it occurs from referencing variables in other packages." Update: Here is mor...
Almost never This directive only refers to accessing global unit variables from another unit. If you use {$G+} unit1; interface var Global1: integer; //<-- this is a global var in unit1. Form1: TForm1; //<-- also a global var, but really a pointer Global1 will be accessed indirectly via a pointer (if and when accesse...
Is there a real performance gain when I turn {$IMPORTEDDATA} off? Is there a real performance gain when I turn {$IMPORTEDDATA} off? The manual only says this: "The {$G-} directive disables creation of imported data references. Using {$G-} increases memory-access efficiency, but prevents a packaged unit where it occurs ...
TITLE: Is there a real performance gain when I turn {$IMPORTEDDATA} off? QUESTION: Is there a real performance gain when I turn {$IMPORTEDDATA} off? The manual only says this: "The {$G-} directive disables creation of imported data references. Using {$G-} increases memory-access efficiency, but prevents a packaged uni...
[ "performance", "delphi", "memory", "delphi-7", "delphi-xe" ]
5
4
386
1
0
2011-06-01T11:05:01.820000
2011-06-01T14:43:02.640000
6,200,148
6,201,568
is it possible to share a message when offline with linkedin api
is it possible to store the id of a user who grants permission to accept the app and then post a "share" when the user completes an action but they are not logged into linkedin? i have done this with facebook but currently struggling to get my head around the oauth/linked in libraries.
Yes, once the user has authorized your application, you can store the user's oauth tokens and use those to update LinkedIn via the API when a user trigers a share/update, etc. The only trick is to cover yourself in the case that the user rejects your application's access rights; filter all responses from the LinkedIn A...
is it possible to share a message when offline with linkedin api is it possible to store the id of a user who grants permission to accept the app and then post a "share" when the user completes an action but they are not logged into linkedin? i have done this with facebook but currently struggling to get my head around...
TITLE: is it possible to share a message when offline with linkedin api QUESTION: is it possible to store the id of a user who grants permission to accept the app and then post a "share" when the user completes an action but they are not logged into linkedin? i have done this with facebook but currently struggling to ...
[ "php", "linkedin-api" ]
0
2
663
2
0
2011-06-01T11:06:10.620000
2011-06-01T13:02:10.500000