PostId
int64
13
11.8M
PostCreationDate
stringlengths
19
19
OwnerUserId
int64
3
1.57M
OwnerCreationDate
stringlengths
10
19
ReputationAtPostCreation
int64
-33
210k
OwnerUndeletedAnswerCountAtPostTime
int64
0
5.77k
Title
stringlengths
10
250
BodyMarkdown
stringlengths
12
30k
Tag1
stringlengths
1
25
Tag2
stringlengths
1
25
Tag3
stringlengths
1
25
Tag4
stringlengths
1
25
Tag5
stringlengths
1
25
PostClosedDate
stringlengths
19
19
OpenStatus
stringclasses
5 values
unified_texts
stringlengths
47
30.1k
OpenStatus_id
int64
0
4
3,166,270
07/02/2010 13:49:59
382,104
07/02/2010 13:49:59
1
0
How to reduce the processing time ?
In my office we have a computer that is connected to some hardware and a program in the computer (NI TestStand) runs a test on the hardware and it takes around 10 to 12 hours to complete the test and to produce final report. Is there any way to minimize this time ? You suggestions ? Thanks in advance.
c#
automation
null
null
null
07/02/2010 13:58:29
not a real question
How to reduce the processing time ? === In my office we have a computer that is connected to some hardware and a program in the computer (NI TestStand) runs a test on the hardware and it takes around 10 to 12 hours to complete the test and to produce final report. Is there any way to minimize this time ? You suggestions ? Thanks in advance.
1
11,277,076
06/30/2012 19:37:18
1,275,959
03/17/2012 16:11:15
68
8
How to start with gwt?
I am working on a project that had been already developed. The javascript was quite unfamiliar to me because it is based on a java, using gwt libraries. So, when I change some code in the java file, nothing is taken into account. So I was told to download and install gwt and ant. What am I supposed to do then ? Can I still use MAMP for my local server (I an on a mac) ? If not, how can I proceed ? Best, Newben
java
gwt
null
null
null
06/30/2012 20:17:37
not a real question
How to start with gwt? === I am working on a project that had been already developed. The javascript was quite unfamiliar to me because it is based on a java, using gwt libraries. So, when I change some code in the java file, nothing is taken into account. So I was told to download and install gwt and ant. What am I supposed to do then ? Can I still use MAMP for my local server (I an on a mac) ? If not, how can I proceed ? Best, Newben
1
10,836,760
05/31/2012 15:36:26
1,218,010
02/18/2012 11:47:04
86
15
Force GWT compiler to stop pruning invalid CompilationUnits
I have a project in PlayN that allows me to compile a single java codebase to every platform under the sun; I am building against gwt trunk, which presently allows GWT.create() to be called in pure java implementations. There are some hoops to jump through, namely calling ServerGwtBridge.getInstance().register(String.class, new ClassInstantiator() {...}); for every class to be used by GWT.create(). So, rather than manually code every binding, I setup some annotations on my classes, and made a generator that spits out the initialization code needed to register the ClassInstatiators. The generator runs fine on gwt modules, and I made a maven mojo to run the generator on my pure java classes as well. So, now all my modules, gwt, java and android can use GWT.create(), and I can support replace-with syntax from gwt.xml module files. The trouble is that any classes which reference any gwt-unsupported classes or methods are pruned by the gwt precompiler. They are still present in the unit cache, but the generator's TypeOracle does not see them anymore. I do not want to copy-paste huge swathes of code to stop the compiler from removing the invalid units; I saw some code reference NameEnvironmentAnswer that seems to allow invalid units in the compile, but could not figure out how to make it work. I have no intent of linking this code, I just want a populated TypeOracle for my generator to run, and that means I need the compiler to stop pruning invalid units.
java
gwt
maven
code-generation
playn
null
open
Force GWT compiler to stop pruning invalid CompilationUnits === I have a project in PlayN that allows me to compile a single java codebase to every platform under the sun; I am building against gwt trunk, which presently allows GWT.create() to be called in pure java implementations. There are some hoops to jump through, namely calling ServerGwtBridge.getInstance().register(String.class, new ClassInstantiator() {...}); for every class to be used by GWT.create(). So, rather than manually code every binding, I setup some annotations on my classes, and made a generator that spits out the initialization code needed to register the ClassInstatiators. The generator runs fine on gwt modules, and I made a maven mojo to run the generator on my pure java classes as well. So, now all my modules, gwt, java and android can use GWT.create(), and I can support replace-with syntax from gwt.xml module files. The trouble is that any classes which reference any gwt-unsupported classes or methods are pruned by the gwt precompiler. They are still present in the unit cache, but the generator's TypeOracle does not see them anymore. I do not want to copy-paste huge swathes of code to stop the compiler from removing the invalid units; I saw some code reference NameEnvironmentAnswer that seems to allow invalid units in the compile, but could not figure out how to make it work. I have no intent of linking this code, I just want a populated TypeOracle for my generator to run, and that means I need the compiler to stop pruning invalid units.
0
11,303,914
07/03/2012 03:01:46
666,576
03/18/2011 19:08:32
505
2
AS3: is it required to call BitmapData.dispose()?
Is it required to call BitmapData.dispose() for every BitmapData that one wants to have removed from memory completely, or does that buffer get freed anyway as soon as the BitmapData object gets garbage collected?
actionscript-3
flash
air
garbage-collection
bitmapdata
null
open
AS3: is it required to call BitmapData.dispose()? === Is it required to call BitmapData.dispose() for every BitmapData that one wants to have removed from memory completely, or does that buffer get freed anyway as soon as the BitmapData object gets garbage collected?
0
4,137,297
11/09/2010 18:47:53
484,801
10/23/2010 01:34:13
1
0
Check if popup window is already open
How can I modify this so it checks and if a popup window is already open? function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=350,height=100');"); }
javascript
null
null
null
null
null
open
Check if popup window is already open === How can I modify this so it checks and if a popup window is already open? function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=350,height=100');"); }
0
4,900,329
02/04/2011 16:24:35
378,045
06/28/2010 13:01:56
8
0
List of Anonymous Type and Dynamics... Confused
I found something inside .NET that works a bit differently that I would have expected. The code I am pasting won't make sense, but it is a condensed version of a much more complicated function I have. I'm essentially getting the anonymous type information as a parameter (no instance created yet of the anonymous type) and I need to create a list of that type, populate it, and then return the list. Now, I found a solution, but I wanted to know why Method B works but not Method A. Method A: static void Main(string[] args) { var newItem = new { ID = Guid.NewGuid(), Name = "Test" }; dynamic list; list = Activator.CreateInstance(typeof(List<>).MakeGenericType(newItem.GetType())); list.Add(newItem); list.Add(Activator.CreateInstance(newItem.GetType(), new object[] { Guid.NewGuid(), "Test 2" })); } Method B: static void Main(string[] args) { var newItem = new { ID = Guid.NewGuid(), Name = "Test" }; System.Collections.IList list; list = (System.Collections.IList)Activator.CreateInstance(typeof(List<>).MakeGenericType(newItem.GetType())); list.Add(newItem); list.Add(Activator.CreateInstance(newItem.GetType(), new object[] { Guid.NewGuid(), "Test 2" })); } Again, I'm not looking for a solution, just curious why Method B works but not Method A. Thanks!
dynamic
c#-4.0
anonymous-types
null
null
null
open
List of Anonymous Type and Dynamics... Confused === I found something inside .NET that works a bit differently that I would have expected. The code I am pasting won't make sense, but it is a condensed version of a much more complicated function I have. I'm essentially getting the anonymous type information as a parameter (no instance created yet of the anonymous type) and I need to create a list of that type, populate it, and then return the list. Now, I found a solution, but I wanted to know why Method B works but not Method A. Method A: static void Main(string[] args) { var newItem = new { ID = Guid.NewGuid(), Name = "Test" }; dynamic list; list = Activator.CreateInstance(typeof(List<>).MakeGenericType(newItem.GetType())); list.Add(newItem); list.Add(Activator.CreateInstance(newItem.GetType(), new object[] { Guid.NewGuid(), "Test 2" })); } Method B: static void Main(string[] args) { var newItem = new { ID = Guid.NewGuid(), Name = "Test" }; System.Collections.IList list; list = (System.Collections.IList)Activator.CreateInstance(typeof(List<>).MakeGenericType(newItem.GetType())); list.Add(newItem); list.Add(Activator.CreateInstance(newItem.GetType(), new object[] { Guid.NewGuid(), "Test 2" })); } Again, I'm not looking for a solution, just curious why Method B works but not Method A. Thanks!
0
1,199,309
07/29/2009 10:37:02
135,624
07/09/2009 12:40:59
208
15
Recommend XML Difference open source Java libraries?
I have a requirement to compare two XML documents and report differences. String comparison is not sufficient as I want to be able to say that: <Foo/> is the same as <Foo></Foo> Anyone used a library they would recommend?
java
xml
null
null
null
06/13/2012 13:30:54
not constructive
Recommend XML Difference open source Java libraries? === I have a requirement to compare two XML documents and report differences. String comparison is not sufficient as I want to be able to say that: <Foo/> is the same as <Foo></Foo> Anyone used a library they would recommend?
4
3,146,614
06/30/2010 05:08:28
369,207
06/17/2010 10:23:52
9
1
Big image with many icon or one image one icon?
I have to display around 100 icons (each 50x50) in Button. I am downloading big png Image which contains all 100 icons, then I create each icon using Image.subImage() method. But my application getting OutOfMemoryError. I am thinking about 2 solution for this: 1) download 100 icons as tar(combined into single) file. So i can create icon one by one. Big Image need not to be in memory till I create last icon. 2)Download big Image but dont create small icon.Then override Button class to paint image (icon) from big Image. Which is the best solution? or do you have any other solution for this problem.
lwuit
null
null
null
null
null
open
Big image with many icon or one image one icon? === I have to display around 100 icons (each 50x50) in Button. I am downloading big png Image which contains all 100 icons, then I create each icon using Image.subImage() method. But my application getting OutOfMemoryError. I am thinking about 2 solution for this: 1) download 100 icons as tar(combined into single) file. So i can create icon one by one. Big Image need not to be in memory till I create last icon. 2)Download big Image but dont create small icon.Then override Button class to paint image (icon) from big Image. Which is the best solution? or do you have any other solution for this problem.
0
2,571,786
04/03/2010 16:08:16
307,948
04/02/2010 20:27:09
1
0
ASP.NET web service using forms authentication from a windows app.
I have an ASP.NET web service that I can access via a windows program but now I want to secure the web service. I can secure the web service using forms authentication. How do you access the secured web service from a windows forms application?
asp.net
null
null
null
null
null
open
ASP.NET web service using forms authentication from a windows app. === I have an ASP.NET web service that I can access via a windows program but now I want to secure the web service. I can secure the web service using forms authentication. How do you access the secured web service from a windows forms application?
0
11,333,829
07/04/2012 18:16:57
1,233,051
02/25/2012 21:07:58
1
0
Intent with using login page
"I want to create a **login page** through which person can _navigate_ to the another page and he enters wrong ID and password, it will refused to enter with a toast that incorrect id or password. plz can u give me the code"
android
android-intent
null
null
null
07/04/2012 19:52:11
not a real question
Intent with using login page === "I want to create a **login page** through which person can _navigate_ to the another page and he enters wrong ID and password, it will refused to enter with a toast that incorrect id or password. plz can u give me the code"
1
7,521,431
09/22/2011 20:57:18
959,993
09/22/2011 20:54:01
1
0
Problem with getJSON response
I have some problem with $.getJSON response in Chrome The query is $.getJSON("[http://www.askgeo.com/api/428014/sf2t36ujv1tsf325t5734gstr4/timezone.json?callback=?&points=55.77184,37.623553][1]", function(json){ <some code> } ); if you click on this link you'll get an json text. By when I run this query Chrome shows an error: *Resource interpreted as Script but transferred with MIME type application/json* *SyntaxError: Unexpected token : timezone.json:1* Does it try to convert json response to JavaScript object? If it is so why it cann't do that? Is there any way of resolving this problem? in Chrome debugger I found the file "timezone.json" with this content: {"code":0,"message":"ok","data":[{"timeZone":"Europe/Moscow","currentOffsetMs":14400000,"latitude":55.77184,"longitude":37.623553}]} [1]: http://www.askgeo.com/api/428014/sf2t36ujv1tsf325t5734gstr4/timezone.json?callback=?&points=55.77184,37.623553
getjson
null
null
null
null
null
open
Problem with getJSON response === I have some problem with $.getJSON response in Chrome The query is $.getJSON("[http://www.askgeo.com/api/428014/sf2t36ujv1tsf325t5734gstr4/timezone.json?callback=?&points=55.77184,37.623553][1]", function(json){ <some code> } ); if you click on this link you'll get an json text. By when I run this query Chrome shows an error: *Resource interpreted as Script but transferred with MIME type application/json* *SyntaxError: Unexpected token : timezone.json:1* Does it try to convert json response to JavaScript object? If it is so why it cann't do that? Is there any way of resolving this problem? in Chrome debugger I found the file "timezone.json" with this content: {"code":0,"message":"ok","data":[{"timeZone":"Europe/Moscow","currentOffsetMs":14400000,"latitude":55.77184,"longitude":37.623553}]} [1]: http://www.askgeo.com/api/428014/sf2t36ujv1tsf325t5734gstr4/timezone.json?callback=?&points=55.77184,37.623553
0
6,640,239
07/10/2011 09:17:47
817,892
06/27/2011 18:05:04
1
0
SSH on Mac //What Can I do more with SSH?
I can now copy,paste, remove files remotely using ssh on terminal. I would like to know what could I possibly do over SSH. please give me an instruction to do that. Thank you Toni
osx
ssh
terminal
null
null
07/10/2011 13:23:32
not a real question
SSH on Mac //What Can I do more with SSH? === I can now copy,paste, remove files remotely using ssh on terminal. I would like to know what could I possibly do over SSH. please give me an instruction to do that. Thank you Toni
1
5,549,208
04/05/2011 08:32:57
259,328
01/26/2010 15:24:33
306
8
In iOS - How do I fit a UILabel to its text, without changing its position ?
I have a UILabel which has RTL text in it (I mean the text in it is aligned to the right). I'm calling sizeToFit on it, so it'll shrink the height of it, and the text won't appear in the middle of the label, but rather on the top. However, the width is shrinking as well. And now - the positioning of this label is incorrect. How can I make the label stay in the original position (RightToLeft wise), or move it so it'll appear at the original location ? Once again - the problem is that the sizeToFit method is shrinking the width from the right side of the label (it is treating the label as an LTR box), but my text is RTL so the right border of the label is where my text begins.
ios
uilabel
rtl
null
null
null
open
In iOS - How do I fit a UILabel to its text, without changing its position ? === I have a UILabel which has RTL text in it (I mean the text in it is aligned to the right). I'm calling sizeToFit on it, so it'll shrink the height of it, and the text won't appear in the middle of the label, but rather on the top. However, the width is shrinking as well. And now - the positioning of this label is incorrect. How can I make the label stay in the original position (RightToLeft wise), or move it so it'll appear at the original location ? Once again - the problem is that the sizeToFit method is shrinking the width from the right side of the label (it is treating the label as an LTR box), but my text is RTL so the right border of the label is where my text begins.
0
2,260,050
02/14/2010 03:27:35
53,740
01/10/2009 18:52:56
900
9
What language makes a strong developer these days?
What modern language is good at creating strong developers these days? Python, Ruby, C++, C sharp ... developing for the iPhone?
programming-languages
null
null
null
null
02/14/2010 03:30:17
not constructive
What language makes a strong developer these days? === What modern language is good at creating strong developers these days? Python, Ruby, C++, C sharp ... developing for the iPhone?
4
7,306,811
09/05/2011 10:34:07
889,312
08/11/2011 06:02:51
10
0
Text to Image/PDF converter in PHP
Is there any script, that takes HTML formatted text(including html tag elements) from mysql database and generates a image/PDF for a web application. Ex HTML text: hello < h1 > World < /h1> It's a < span style="font-size:24";>good< /span> day. It should read all the tags and display content on the Image accordingly. I tried working with PHP, but it unable to process the HTML tags moreover it is displaying HTML tags on the image as it is from database. I also like to know is there any third party service that serves my purpose? If so, is there any resource to learn and implement. Thanks
php
mysql
html
image-processing
null
null
open
Text to Image/PDF converter in PHP === Is there any script, that takes HTML formatted text(including html tag elements) from mysql database and generates a image/PDF for a web application. Ex HTML text: hello < h1 > World < /h1> It's a < span style="font-size:24";>good< /span> day. It should read all the tags and display content on the Image accordingly. I tried working with PHP, but it unable to process the HTML tags moreover it is displaying HTML tags on the image as it is from database. I also like to know is there any third party service that serves my purpose? If so, is there any resource to learn and implement. Thanks
0
2,821,448
05/12/2010 17:56:04
332,460
05/04/2010 14:29:24
8
0
Can a product that uses BouncyCastle be exported from the UK
We are doing work for a company, based in the UK, who are planning on developing an application that uses the BouncyCastle.Crypto.dll. They intend to make their product (including the crypto dll) available for download over the Internet. Are there UK restrictions on the export of crypto software that would prevent them from doing this? From Wikipedia, I understand it's okay to export it from the US, but not sure about the UK.
c#
cryptography
legal
null
null
09/02/2011 18:14:53
off topic
Can a product that uses BouncyCastle be exported from the UK === We are doing work for a company, based in the UK, who are planning on developing an application that uses the BouncyCastle.Crypto.dll. They intend to make their product (including the crypto dll) available for download over the Internet. Are there UK restrictions on the export of crypto software that would prevent them from doing this? From Wikipedia, I understand it's okay to export it from the US, but not sure about the UK.
2
7,128,499
08/19/2011 23:42:03
849,953
07/18/2011 11:52:36
3
0
Motorola Milestone Android - Bluetooth Issue - Paired but not connected
I have tried various devices that I want to connect with bluetooth but none of them work. I can pair them But after pairing it says "Paired but not connected" I have tried all normal steps: Soft upgrade to 2.2.1, Hard reset etc. Intrestingly, If i downloade the application "Bluetooth File transfer" by medieval software - I can connect with this application with my macbook and send files. However, for my application I need to use the SPP profile off the phone (Which it claims to support). So the question here is, Is it a software/hardware issue? -Seems to me like a software issue, because It doesnt connect with my macbook with the official bluetooth settings, but works through a third party application? any fixes? - I called motorola, but no luck as Im not in the states. Mohit
android
bluetooth
connection
motorola
milestone
08/20/2011 23:38:32
off topic
Motorola Milestone Android - Bluetooth Issue - Paired but not connected === I have tried various devices that I want to connect with bluetooth but none of them work. I can pair them But after pairing it says "Paired but not connected" I have tried all normal steps: Soft upgrade to 2.2.1, Hard reset etc. Intrestingly, If i downloade the application "Bluetooth File transfer" by medieval software - I can connect with this application with my macbook and send files. However, for my application I need to use the SPP profile off the phone (Which it claims to support). So the question here is, Is it a software/hardware issue? -Seems to me like a software issue, because It doesnt connect with my macbook with the official bluetooth settings, but works through a third party application? any fixes? - I called motorola, but no luck as Im not in the states. Mohit
2
5,631,618
04/12/2011 07:10:51
703,526
04/12/2011 07:05:01
1
0
c# app.cofig file
Greetings! I got this error in my c# windows application: "Configuration system failed to initialize". It was working fine.suddenly i got this exception.It shows innerexception detail as Root element is missing. (C:\\Users\\company\\AppData\\Local\\Clickbase_Corp_Sverige_AB\\TouchStation.vshost.exe_Url_no1nets4fg3oy2p2q2pnwgulbvczlv33\\1.1.0.12\\user.config)"}.This happens when i try to get values from Settings.cs class. In program.cs file the below code is written if (Properties.Settings.Default.CallUpgrade) { Properties.Settings.Default.Upgrade(); Properties.Settings.Default.CallUpgrade = false; Properties.Settings.Default.Save(); } And calls settings.cs class where the below code throws above exception [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("True")] public bool CallUpgrade { get { return ((bool)(this["CallUpgrade"])); } set { this["CallUpgrade"] = value; } } can anyone help me in this. Thank You Regards jennie
c#
null
null
null
null
null
open
c# app.cofig file === Greetings! I got this error in my c# windows application: "Configuration system failed to initialize". It was working fine.suddenly i got this exception.It shows innerexception detail as Root element is missing. (C:\\Users\\company\\AppData\\Local\\Clickbase_Corp_Sverige_AB\\TouchStation.vshost.exe_Url_no1nets4fg3oy2p2q2pnwgulbvczlv33\\1.1.0.12\\user.config)"}.This happens when i try to get values from Settings.cs class. In program.cs file the below code is written if (Properties.Settings.Default.CallUpgrade) { Properties.Settings.Default.Upgrade(); Properties.Settings.Default.CallUpgrade = false; Properties.Settings.Default.Save(); } And calls settings.cs class where the below code throws above exception [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("True")] public bool CallUpgrade { get { return ((bool)(this["CallUpgrade"])); } set { this["CallUpgrade"] = value; } } can anyone help me in this. Thank You Regards jennie
0
1,309,521
08/21/2009 00:25:05
106,095
05/13/2009 08:38:34
187
13
Launch a child process on OSX/Unix that doesn't inherit files/ports
I want to launch a child process on OS X such that the child process does not inherit the current process's open files/ports. Any suggestions on how to accomplish this? Shell commands that I can invoke using the system() function would work too - I just don't know of a good shell command that enables this. Thanks!
unix
processes
osx
null
null
null
open
Launch a child process on OSX/Unix that doesn't inherit files/ports === I want to launch a child process on OS X such that the child process does not inherit the current process's open files/ports. Any suggestions on how to accomplish this? Shell commands that I can invoke using the system() function would work too - I just don't know of a good shell command that enables this. Thanks!
0
9,403,093
02/22/2012 21:12:43
857,218
07/22/2011 03:36:20
8
0
Scale HTML content using JQuery Mobile & Phonegap
I need to dynamically load content from HTML emails into some type of content area within my HTML so that it is scaled to fit, exactly the way the native mail apps do for iPhone/Android. I have spent two days Googling and testing to no avail. I'm loading the HTML content (which is often set to width=600 or something nice), but rather than scaling, it is appearing as follows: [iPhone Simulator Example](http://strandstudios.com/img/iphonesim.png) The HTML is very simple: <div data-role="page" id="messagedetailpage" data-add-back-btn="true"> <div data-role="content" id="messagedetailcontainer"></div> </div> The sanitized email HTML is loaded into a div (messagedetailcontainer), at which point I've tried the following things: 1. Resize the viewport with: $.mobile.metaViewportContent = "width=device-width, initial-scale=0.5, minimum-scale=0.5, maximum-scale=0,5"; 2. Call several triggers on the div such as: $("#messagedetailcontainer").append(data.msg_body).trigger('updatelayout'); 3. Same as #2, but with 'create', 'resize', 'load', and 'change'. 4. $(window).resize(); 5. Scrapping the div and putting it in an iFrame (no luck at all) 6. I've research iScroll, ScrollView, various autoscale.js examples, but nothing seems to fit my need. I'm starting to wonder if this is even possible. If anyone can help me I will be eternally grateful. I don't mind being stuck for hours, but once it turns to days it starts to become maddening. And sadly this is a show-stopper for me. Thanks in advance for any help!
jquery-mobile
phonegap
resize
viewport
null
null
open
Scale HTML content using JQuery Mobile & Phonegap === I need to dynamically load content from HTML emails into some type of content area within my HTML so that it is scaled to fit, exactly the way the native mail apps do for iPhone/Android. I have spent two days Googling and testing to no avail. I'm loading the HTML content (which is often set to width=600 or something nice), but rather than scaling, it is appearing as follows: [iPhone Simulator Example](http://strandstudios.com/img/iphonesim.png) The HTML is very simple: <div data-role="page" id="messagedetailpage" data-add-back-btn="true"> <div data-role="content" id="messagedetailcontainer"></div> </div> The sanitized email HTML is loaded into a div (messagedetailcontainer), at which point I've tried the following things: 1. Resize the viewport with: $.mobile.metaViewportContent = "width=device-width, initial-scale=0.5, minimum-scale=0.5, maximum-scale=0,5"; 2. Call several triggers on the div such as: $("#messagedetailcontainer").append(data.msg_body).trigger('updatelayout'); 3. Same as #2, but with 'create', 'resize', 'load', and 'change'. 4. $(window).resize(); 5. Scrapping the div and putting it in an iFrame (no luck at all) 6. I've research iScroll, ScrollView, various autoscale.js examples, but nothing seems to fit my need. I'm starting to wonder if this is even possible. If anyone can help me I will be eternally grateful. I don't mind being stuck for hours, but once it turns to days it starts to become maddening. And sadly this is a show-stopper for me. Thanks in advance for any help!
0
6,624,325
07/08/2011 12:21:58
706,058
04/13/2011 12:41:34
48
0
JQuery: ajax request return value "undefined" inside same function
I have this piece of code: function CallAPI(paramString) { var returnVal; var jqxhr = $.get( "http://url/../" ) .success(function (data) { returnVal = data; }) .error(function (xhr, ajaxOptions, thrownError) { alert("Error!\n xhr.status = [" + xhr.status + "]\n xhr.statusText: [" + xhr.statusText + "]\najaxOptions = [" + ajaxOptions + "]"); }) .complete(function () { alert("Request complete."); }); alert("returnVal: [" + returnVal+ "]"); } The "returnVal" in the last alert is returned as "undefined", but when i debug with Firebug, I see the request response is either "true" or "false". The value is send back from the request as pure string, not specific format (JSON, HTML, ..) Why does "returnVal" not return the request's response value? Thanks
jquery
jquery-ajax
return-value
null
null
null
open
JQuery: ajax request return value "undefined" inside same function === I have this piece of code: function CallAPI(paramString) { var returnVal; var jqxhr = $.get( "http://url/../" ) .success(function (data) { returnVal = data; }) .error(function (xhr, ajaxOptions, thrownError) { alert("Error!\n xhr.status = [" + xhr.status + "]\n xhr.statusText: [" + xhr.statusText + "]\najaxOptions = [" + ajaxOptions + "]"); }) .complete(function () { alert("Request complete."); }); alert("returnVal: [" + returnVal+ "]"); } The "returnVal" in the last alert is returned as "undefined", but when i debug with Firebug, I see the request response is either "true" or "false". The value is send back from the request as pure string, not specific format (JSON, HTML, ..) Why does "returnVal" not return the request's response value? Thanks
0
4,514,507
12/22/2010 22:59:51
551,799
12/22/2010 22:55:16
1
0
jquery Tablesorter - sort field by <input value="value">
I want to sort my 4th and 5th field by the information on my INPUT attr VALUE This is my html: <table class=tablesorter width="764" border=1 cellpadding=0 cellspacing=0 id="objective3"> <thead> <tr> <th bgcolor="#396FAE" class="divtopheader1">Strategy</th> <th bgcolor="#396FAE" class="divtopheader1">Objective</th> <th bgcolor="#396FAE" class="divtopheader1">Status</th> <th bgcolor="#396FAE" class="divtopheader1">Target Date</th> <th bgcolor="#396FAE" class="divtopheader1">Target</th> <th bgcolor="#396FAE" class="divtopheader1">Actual</th> <th bgcolor="#396FAE" class="divtopheader1">Cumulative</th> </tr> </thead> <tbody> <tr> <td align="left" valign="top" class="tvertheadersm">Conservation</td> <td width="27%" class="tvertheadersm">statutory authority.</td> <td width="8%" align="center" valign="middle" class="tbody2"> <input type=hidden value="1"> <thewordIMGshouldgohere src="images/1" alt="Objective met" width=30 height=40 /> </td> <td width="11%" align=center class="tbody2"> <input type=hidden value="092010">September<br>2010</td> <td align=center class="tbody2">14 agencies</td> <td align=center class="tbody2">14 agencies</td> <td align=center class="tbody2">0 agencies</td> </tr> ----------------------------- This is my jquery, here I am trying only for the 5th field but is not working: $(document).ready(function() { // add parser through the tablesorter addParser method $.tablesorter.addParser({ // set a unique id id: 'input', is: function(s) { // return false so this parser is not auto detected return false; }, format: function(s) { // format your data for normalization return $("td input",$(s)).attr("value"); }, // set type, either numeric or text type: 'numeric' }); $("table").tablesorter({ // pass the headers argument and assing a object headers: { // assign the secound column (we start counting zero) 5: { sorter:'input' } } }); }); Any help is welcome!!! Happy Holidays :-) Néstor
jquery
null
null
null
null
null
open
jquery Tablesorter - sort field by <input value="value"> === I want to sort my 4th and 5th field by the information on my INPUT attr VALUE This is my html: <table class=tablesorter width="764" border=1 cellpadding=0 cellspacing=0 id="objective3"> <thead> <tr> <th bgcolor="#396FAE" class="divtopheader1">Strategy</th> <th bgcolor="#396FAE" class="divtopheader1">Objective</th> <th bgcolor="#396FAE" class="divtopheader1">Status</th> <th bgcolor="#396FAE" class="divtopheader1">Target Date</th> <th bgcolor="#396FAE" class="divtopheader1">Target</th> <th bgcolor="#396FAE" class="divtopheader1">Actual</th> <th bgcolor="#396FAE" class="divtopheader1">Cumulative</th> </tr> </thead> <tbody> <tr> <td align="left" valign="top" class="tvertheadersm">Conservation</td> <td width="27%" class="tvertheadersm">statutory authority.</td> <td width="8%" align="center" valign="middle" class="tbody2"> <input type=hidden value="1"> <thewordIMGshouldgohere src="images/1" alt="Objective met" width=30 height=40 /> </td> <td width="11%" align=center class="tbody2"> <input type=hidden value="092010">September<br>2010</td> <td align=center class="tbody2">14 agencies</td> <td align=center class="tbody2">14 agencies</td> <td align=center class="tbody2">0 agencies</td> </tr> ----------------------------- This is my jquery, here I am trying only for the 5th field but is not working: $(document).ready(function() { // add parser through the tablesorter addParser method $.tablesorter.addParser({ // set a unique id id: 'input', is: function(s) { // return false so this parser is not auto detected return false; }, format: function(s) { // format your data for normalization return $("td input",$(s)).attr("value"); }, // set type, either numeric or text type: 'numeric' }); $("table").tablesorter({ // pass the headers argument and assing a object headers: { // assign the secound column (we start counting zero) 5: { sorter:'input' } } }); }); Any help is welcome!!! Happy Holidays :-) Néstor
0
215,770
10/19/2008 00:18:27
18,446
09/19/2008 01:49:34
759
43
Can record field updates in OCaml be generalized?
I'm a very novice OCaml programmer so please forgive me if this is a stupid/obvious question. There's *a lot* to absorb and I may have missed this in the documentation. I have a base of code that's starting to look like this: let update_x p x = add_delta p; p.x <- x; refresh p let update_y p y = add_delta p; p.y <- y; refresh p let update_z p z = add_delta p; p.z <- z; refresh p The duplication is starting to bug me because I *want* to write something like this: let update_scalar p scalar value = add_delta p; magic_reflection (p, scalar) <- value; refresh p This way when I update x I can simply call: update_scalar p 'x' value This calls out "macros!" to me but I don't believe OCaml has a macro system. What else can I do?
ocaml
macros
records
null
null
null
open
Can record field updates in OCaml be generalized? === I'm a very novice OCaml programmer so please forgive me if this is a stupid/obvious question. There's *a lot* to absorb and I may have missed this in the documentation. I have a base of code that's starting to look like this: let update_x p x = add_delta p; p.x <- x; refresh p let update_y p y = add_delta p; p.y <- y; refresh p let update_z p z = add_delta p; p.z <- z; refresh p The duplication is starting to bug me because I *want* to write something like this: let update_scalar p scalar value = add_delta p; magic_reflection (p, scalar) <- value; refresh p This way when I update x I can simply call: update_scalar p 'x' value This calls out "macros!" to me but I don't believe OCaml has a macro system. What else can I do?
0
8,233,812
11/22/2011 21:06:02
299,128
03/22/2010 15:06:56
6
0
how does a page load in cakephp
When you type name of the controller/view in the url respective page opens in the browser. I wanted to know where is the controller and view instantiated in cakephp.
php
url
cakephp
null
null
11/23/2011 02:39:13
not a real question
how does a page load in cakephp === When you type name of the controller/view in the url respective page opens in the browser. I wanted to know where is the controller and view instantiated in cakephp.
1
8,476,280
12/12/2011 15:00:47
874,927
08/02/2011 15:19:48
144
9
Subclassing the Application Class
In Android when you subclass the `Application` class is it best to intialise variables in the constructor or in `onCreate`? Or does it make no difference?
android
application
constructor
context
super
null
open
Subclassing the Application Class === In Android when you subclass the `Application` class is it best to intialise variables in the constructor or in `onCreate`? Or does it make no difference?
0
10,613,362
05/16/2012 06:48:37
1,359,137
04/26/2012 15:52:12
23
0
How can I give file extentions list using FileDialog?
I can give extentions for file using JFileChooser. Example: JFileChooser chooser = new JFileChooser(); FileNameExtensionFilter filter = new FileNameExtensionFilter( "JPG & GIF Images", "jpg", "gif"); chooser.setFileFilter(filter); But I can understand how to do this same thing Using FileDialog . My question is how can I do this?
java
filedialog
null
null
null
null
open
How can I give file extentions list using FileDialog? === I can give extentions for file using JFileChooser. Example: JFileChooser chooser = new JFileChooser(); FileNameExtensionFilter filter = new FileNameExtensionFilter( "JPG & GIF Images", "jpg", "gif"); chooser.setFileFilter(filter); But I can understand how to do this same thing Using FileDialog . My question is how can I do this?
0
7,611,370
09/30/2011 13:50:31
359,326
06/05/2010 17:52:19
52
7
WPF: dynamically created Binding does not work
I want to bind TextBlocks to a Modell. But it does not work and I have no idea why. class GameModel : INotifyPropertyChanged { string[] _teamNames; ... public string teamName(int team) { return _teamNames[team]; } public void setTeamName(int team, string name) { _teamNames[team] = name; OnPropertyChanged("teamName"); } protected void OnPropertyChanged(string name) { PropertyChangedEventHandler handler = PropertyChanged; if (handler != null) { handler(this, new PropertyChangedEventArgs(name)); } } And the code which creates the TextBoxes for (int currCol = 0; currCol < teams; currCol++) { TextBlock teamNameBlock = new TextBlock(); Binding myNameBinding = new Binding(); myNameBinding.Source = myGame; myNameBinding.Path = new PropertyPath("teamName", currCol); myNameBinding.UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged; teamNameBlock.SetBinding(TextBlock.TextProperty, myNameBinding); //The name of the team bind to the TextBlock ... }
c#
.net
wpf
binding
null
null
open
WPF: dynamically created Binding does not work === I want to bind TextBlocks to a Modell. But it does not work and I have no idea why. class GameModel : INotifyPropertyChanged { string[] _teamNames; ... public string teamName(int team) { return _teamNames[team]; } public void setTeamName(int team, string name) { _teamNames[team] = name; OnPropertyChanged("teamName"); } protected void OnPropertyChanged(string name) { PropertyChangedEventHandler handler = PropertyChanged; if (handler != null) { handler(this, new PropertyChangedEventArgs(name)); } } And the code which creates the TextBoxes for (int currCol = 0; currCol < teams; currCol++) { TextBlock teamNameBlock = new TextBlock(); Binding myNameBinding = new Binding(); myNameBinding.Source = myGame; myNameBinding.Path = new PropertyPath("teamName", currCol); myNameBinding.UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged; teamNameBlock.SetBinding(TextBlock.TextProperty, myNameBinding); //The name of the team bind to the TextBlock ... }
0
2,868,380
05/19/2010 18:44:36
330,642
05/02/2010 01:57:10
26
2
A funny idea for 404 pages ?
I need a funny idea/inspiration for my 404 pages it can be a picture or funny dialog.
http-status-code-404
custom-error-pages
website
null
null
05/19/2010 18:48:46
off topic
A funny idea for 404 pages ? === I need a funny idea/inspiration for my 404 pages it can be a picture or funny dialog.
2
8,137,743
11/15/2011 14:19:44
940,274
09/12/2011 09:58:37
109
6
Does anyone have the Scott Allen's ChartBuilder class?
I am trying to use the Scott Allen's ChartBuilder class, but I can't find it anywhere, I tried googling and go through a guide, but it links to msdn page which doesn't exist anymore Does anyone still have that class?
asp.net
vb.net
mschart
null
null
11/17/2011 15:55:01
off topic
Does anyone have the Scott Allen's ChartBuilder class? === I am trying to use the Scott Allen's ChartBuilder class, but I can't find it anywhere, I tried googling and go through a guide, but it links to msdn page which doesn't exist anymore Does anyone still have that class?
2
4,927,796
02/07/2011 23:11:56
237,696
12/23/2009 15:48:17
2,818
186
Bitwise not "~" in PHP not working, "Fatal error: Unsupported operand types in ..."
PHP Doc (http://php.net/manual/en/language.operators.bitwise.php) clearly states: ~ $a Not Bits that are set in $a are not set, and vice versa. So why am I getting a fatal error when trying to run the following line? ~ $noResults; TIA
php
bitwise
null
null
null
null
open
Bitwise not "~" in PHP not working, "Fatal error: Unsupported operand types in ..." === PHP Doc (http://php.net/manual/en/language.operators.bitwise.php) clearly states: ~ $a Not Bits that are set in $a are not set, and vice versa. So why am I getting a fatal error when trying to run the following line? ~ $noResults; TIA
0
2,293,794
02/19/2010 02:53:54
182,551
10/01/2009 15:01:48
21
5
Can't change UITableViewCell size in Interface Builder
does anyone have the same problem as I do? ... I've upgraded to the iPhone SDK 3.2 and I am unable to resize UITableViewCell object in my XIB file (usually I've been just resizing the view but now the cell has the same size and there is just a grey are around) ... btw, I've tried to reinstall twice including one deep reinstall ... Thanks for any help or reference ... Ondrej
iphone
xcode
interface-builder
uitableviewcell
null
null
open
Can't change UITableViewCell size in Interface Builder === does anyone have the same problem as I do? ... I've upgraded to the iPhone SDK 3.2 and I am unable to resize UITableViewCell object in my XIB file (usually I've been just resizing the view but now the cell has the same size and there is just a grey are around) ... btw, I've tried to reinstall twice including one deep reinstall ... Thanks for any help or reference ... Ondrej
0
6,271,079
06/07/2011 20:16:18
768,472
05/24/2011 20:23:16
26
1
Assign to NSString after alloc/init
This doesn't seem to work: NSString *string=[[NSString alloc] init]; string=@"%@M",anotherstring; I expect this to make "string" equal to "5M" if "anotherstring" is "5". Is this not the right syntax? Now, I could use initWithFormat and it would work, but how can you separate it into two different lines and also work?
objective-c
null
null
null
null
null
open
Assign to NSString after alloc/init === This doesn't seem to work: NSString *string=[[NSString alloc] init]; string=@"%@M",anotherstring; I expect this to make "string" equal to "5M" if "anotherstring" is "5". Is this not the right syntax? Now, I could use initWithFormat and it would work, but how can you separate it into two different lines and also work?
0
10,989,980
06/12/2012 02:48:59
1,442,957
06/07/2012 18:23:52
6
0
python django dynamic zipping and download
I have a checkbox form. I am trying to make it so if a user checks the "video" box and submits the form then the video files gets zipped and django generates a dynamic download that pops up on the user screen. I want the same to happen for the audio. BUT if the user selects both checkboxes and submits, the the audio and video files are combined in a zip and a download pops up for the user. I dont want any of this stored on the disk so I am using StringIO. I am getting a internal 500 error. html <form> <input type="checkbox" name="list" value="audio"/> Audio<br /> <input type="checkbox" name="list" value="video"/> Video<br /> <input type="submit" value="submit" /> </form> python #!/usr/bin/env python # -*- coding: UTF-8 -*- import cgitb; cgitb.enable() import cgi from zipfile import ZipFile from StringIO import StringIO from django.http import HttpResponse from django.core.servers.basehttp import FileWrapper files = 0 def zip (content): buffer= StringIO.StringIO() z= zipfile.ZipFile( buffer, "w" ) z.write( content ) z.close() # generate the file response = HttpResponse(FileWrapper(z), content_type='application/zip') response['Content-Disposition'] = 'attachment; filename=z.zip' return response form = cgi.FieldStorage() mylist = form.getlist('list') print 'Content-Type: text/plain\n' for item in mylist: if item == 'video': files = '../download/video.html' zip(files) elif item == 'audio': files = '../download/audio.html' zip(files) elif item == 'audio' and 'video': files = '../download/audio.html'+'../download/video.html' zip(files) else: print 'nothing selected'
python
html
django
null
null
null
open
python django dynamic zipping and download === I have a checkbox form. I am trying to make it so if a user checks the "video" box and submits the form then the video files gets zipped and django generates a dynamic download that pops up on the user screen. I want the same to happen for the audio. BUT if the user selects both checkboxes and submits, the the audio and video files are combined in a zip and a download pops up for the user. I dont want any of this stored on the disk so I am using StringIO. I am getting a internal 500 error. html <form> <input type="checkbox" name="list" value="audio"/> Audio<br /> <input type="checkbox" name="list" value="video"/> Video<br /> <input type="submit" value="submit" /> </form> python #!/usr/bin/env python # -*- coding: UTF-8 -*- import cgitb; cgitb.enable() import cgi from zipfile import ZipFile from StringIO import StringIO from django.http import HttpResponse from django.core.servers.basehttp import FileWrapper files = 0 def zip (content): buffer= StringIO.StringIO() z= zipfile.ZipFile( buffer, "w" ) z.write( content ) z.close() # generate the file response = HttpResponse(FileWrapper(z), content_type='application/zip') response['Content-Disposition'] = 'attachment; filename=z.zip' return response form = cgi.FieldStorage() mylist = form.getlist('list') print 'Content-Type: text/plain\n' for item in mylist: if item == 'video': files = '../download/video.html' zip(files) elif item == 'audio': files = '../download/audio.html' zip(files) elif item == 'audio' and 'video': files = '../download/audio.html'+'../download/video.html' zip(files) else: print 'nothing selected'
0
4,601,446
01/05/2011 06:36:20
474,101
10/01/2010 08:06:09
25
1
Write a program to enter a string and count number of character and number of word
i want to enter a srring and count number of character and number of word...without using libary funcyion
c
string
null
null
null
07/20/2012 11:07:53
not a real question
Write a program to enter a string and count number of character and number of word === i want to enter a srring and count number of character and number of word...without using libary funcyion
1
6,596,258
07/06/2011 12:20:25
829,034
05/12/2011 18:55:41
1
1
Can't dispatch DDM chunk 52454151: no handler defined error
this code is not work properly. Button button = (Button)findViewById(R.id.button_start); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Intent intent = new Intent(TestActivity.this,Lession1.class); startActivity(intent); } }); and public void onClick(View v) { // TODO Auto-generated method stub Intent intent = new Intent(Lession1.this,TestActivity.class); startActivity(intent); } });
android
null
null
null
null
null
open
Can't dispatch DDM chunk 52454151: no handler defined error === this code is not work properly. Button button = (Button)findViewById(R.id.button_start); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Intent intent = new Intent(TestActivity.this,Lession1.class); startActivity(intent); } }); and public void onClick(View v) { // TODO Auto-generated method stub Intent intent = new Intent(Lession1.this,TestActivity.class); startActivity(intent); } });
0
10,585,120
05/14/2012 14:16:49
179,120
09/25/2009 15:21:41
1,986
70
perl merge output and stderr and filter lines in windows
I would like to run a external command in perl and filter some of the lines. I don't know how to filter the lines that go to stderr. I have the following code right now: #!/usr/bin/env perl use File::Spec; #open STDERR, '>', File::Spec->devnull() or die "could not open STDERR: $!\n"; open(FILEHANDLE, '-|', 'Mycmd') or die "Cannot fork: $!\n"; open(STDERR, ">&FILEHANDLE"); while(defined(my $line = <FILEHANDLE>)) { chomp($line); if( $line =~ m/text1/ or $line =~ m/text2/ or $line =~ m/text3/ ) { # do nothing } else { print "$line\n"; } } close FILEHANDLE or die "child error: $!\n"; the line open(STDERR, ">&FILEHANDLE"); is where I try to redirect the stderr to be able to process it with stdout but it doesn't work. The solution would have to work in windows.
perl
null
null
null
null
null
open
perl merge output and stderr and filter lines in windows === I would like to run a external command in perl and filter some of the lines. I don't know how to filter the lines that go to stderr. I have the following code right now: #!/usr/bin/env perl use File::Spec; #open STDERR, '>', File::Spec->devnull() or die "could not open STDERR: $!\n"; open(FILEHANDLE, '-|', 'Mycmd') or die "Cannot fork: $!\n"; open(STDERR, ">&FILEHANDLE"); while(defined(my $line = <FILEHANDLE>)) { chomp($line); if( $line =~ m/text1/ or $line =~ m/text2/ or $line =~ m/text3/ ) { # do nothing } else { print "$line\n"; } } close FILEHANDLE or die "child error: $!\n"; the line open(STDERR, ">&FILEHANDLE"); is where I try to redirect the stderr to be able to process it with stdout but it doesn't work. The solution would have to work in windows.
0
5,899,754
05/05/2011 14:49:55
727,033
04/27/2011 10:31:02
13
0
how to Play a sound file stocked in a data base Access
Please can you give me the code that allows me to read a file.wav ("alarme.wav") stored in a database, I tried the following code: private void button1_Click (object sender, EventArgs e) { OdbcConnection cn = new OdbcConnection ("DSN = cp1"); cn.Open (); OdbcCommand cmd1 = new OdbcCommand ("select path from WHERE Code Alarm alarm = 32 ", cn); cmd1.Connection = cn; fileName = cmd1.ToString (); WaveOut wave = new (); wave.DeviceNumber = 0; playSound (0); But he gave me the following error: "Could not find file 'C: \ Users \ wafa \ Documents \ Visual Studio 2010 \ Projects \ ALARMED \ ALARMED \ bin \ Debug \ System.Data.Odbc.OdbcCommand'." At the line: "waveReader = new NAudio.Wave.WaveFileReader (fileName);" in my "playSound" function: public void PlaySound (int deviceNumber) { disposeWave ();// stop previous sounds Before Starting waveReader = new NAudio.Wave.WaveFileReader (fileName); var waveOut NAudio.Wave.WaveOut = new (); waveOut.DeviceNumber = deviceNumber; var output = waveOut; output.Init (waveReader); output.Play (); } Thank you in advance. Good day :)
c#
null
null
null
null
null
open
how to Play a sound file stocked in a data base Access === Please can you give me the code that allows me to read a file.wav ("alarme.wav") stored in a database, I tried the following code: private void button1_Click (object sender, EventArgs e) { OdbcConnection cn = new OdbcConnection ("DSN = cp1"); cn.Open (); OdbcCommand cmd1 = new OdbcCommand ("select path from WHERE Code Alarm alarm = 32 ", cn); cmd1.Connection = cn; fileName = cmd1.ToString (); WaveOut wave = new (); wave.DeviceNumber = 0; playSound (0); But he gave me the following error: "Could not find file 'C: \ Users \ wafa \ Documents \ Visual Studio 2010 \ Projects \ ALARMED \ ALARMED \ bin \ Debug \ System.Data.Odbc.OdbcCommand'." At the line: "waveReader = new NAudio.Wave.WaveFileReader (fileName);" in my "playSound" function: public void PlaySound (int deviceNumber) { disposeWave ();// stop previous sounds Before Starting waveReader = new NAudio.Wave.WaveFileReader (fileName); var waveOut NAudio.Wave.WaveOut = new (); waveOut.DeviceNumber = deviceNumber; var output = waveOut; output.Init (waveReader); output.Play (); } Thank you in advance. Good day :)
0
11,406,576
07/10/2012 04:23:33
1,495,157
07/02/2012 04:55:25
1
0
memory allocation for functions in c
Is the memory for the c function allocated when the program is compiled first or is it allocated when the function call is seen first?i.e is memory for c function allocated in stack or code segment.
memory-management
null
null
null
null
null
open
memory allocation for functions in c === Is the memory for the c function allocated when the program is compiled first or is it allocated when the function call is seen first?i.e is memory for c function allocated in stack or code segment.
0
6,000,090
05/14/2011 05:56:07
354,247
05/31/2010 01:50:38
449
21
Does Ruby Use Abstract Registers?
I was wondering if the Ruby language uses abstract registers for data. I feel like this could be one of the main reasons why Ruby is naturally a slow language. Thanks in advance, hwrd
ruby
cpu-registers
null
null
null
05/14/2011 08:18:59
not a real question
Does Ruby Use Abstract Registers? === I was wondering if the Ruby language uses abstract registers for data. I feel like this could be one of the main reasons why Ruby is naturally a slow language. Thanks in advance, hwrd
1
8,585,764
12/21/2011 06:14:36
1,109,196
11/02/2011 09:05:16
1
0
One scource code multiple web applications
i have a project to work on , has one source code and they need multiple versions i.e : different domains to work under the same code... let me know what technology behind this?
php
null
null
null
null
12/21/2011 13:53:13
not a real question
One scource code multiple web applications === i have a project to work on , has one source code and they need multiple versions i.e : different domains to work under the same code... let me know what technology behind this?
1
7,048,317
08/13/2011 03:08:41
892,700
08/13/2011 03:08:41
1
0
YUI3 Tabview How to determine the label of selected tab
I need a YUI3 tabview like <div id="demo"></div> <script> YUI().use('tabview', function(Y) { var tabview = new Y.TabView({ children: [{ label: 'foo', content: '<p>foo content</p>' }, { label: 'bar', content: '<p>bar content</p>' }, { label: 'baz', content: '<p>baz content</p>' }] }); tabview.render('#demo'); }); </script> Now need a event handler which will be of following specification 1. It will be fired when user will click on tab something like "selectedTabChanged" 2. Inside the handler will determine the label of the "SelectedTab"
yui3
tabview
null
null
null
null
open
YUI3 Tabview How to determine the label of selected tab === I need a YUI3 tabview like <div id="demo"></div> <script> YUI().use('tabview', function(Y) { var tabview = new Y.TabView({ children: [{ label: 'foo', content: '<p>foo content</p>' }, { label: 'bar', content: '<p>bar content</p>' }, { label: 'baz', content: '<p>baz content</p>' }] }); tabview.render('#demo'); }); </script> Now need a event handler which will be of following specification 1. It will be fired when user will click on tab something like "selectedTabChanged" 2. Inside the handler will determine the label of the "SelectedTab"
0
7,759,198
10/13/2011 19:09:12
994,108
10/13/2011 18:26:55
1
0
MIPS machine code
Convert the following MIPS instructions to the machine codes (Write answers in hex):   Machine Code in Hex   ​add​$t1, $t2, $t3​ _________________________________ ​addi​$t2, $t1, -7​_________________________________         Register IDs:  $t1 – 9;  $t2 – 10; $t3 – 11  
mips
null
null
null
null
10/13/2011 20:53:44
too localized
MIPS machine code === Convert the following MIPS instructions to the machine codes (Write answers in hex):   Machine Code in Hex   ​add​$t1, $t2, $t3​ _________________________________ ​addi​$t2, $t1, -7​_________________________________         Register IDs:  $t1 – 9;  $t2 – 10; $t3 – 11  
3
8,477,933
12/12/2011 17:01:39
632,998
02/24/2011 19:38:38
1,216
61
Passing two parameter functions into apply
Say I have a function called > myfun <- function(x,y) {median(x,y)} #obviously the actual function is something more complicated Now lets say in a certain use, the y parameter is constant, (say `c(1,2,3,4,5)`). Is there any way I can pass this into apply without wrapping it in another function? i.e. <br />instead of >apply(mydf, 2, function(x) myfun(x, c(1,2,3,4,5))) to pass something like > apply(mydf, 2, myfun(,(c(1,2,3,4,5)))) This is purely cosmetic and I know it won't make much difference to the running time. I just want to know if an option like this is possible because wrapping my function in a function each time seems inefficient
r
null
null
null
null
null
open
Passing two parameter functions into apply === Say I have a function called > myfun <- function(x,y) {median(x,y)} #obviously the actual function is something more complicated Now lets say in a certain use, the y parameter is constant, (say `c(1,2,3,4,5)`). Is there any way I can pass this into apply without wrapping it in another function? i.e. <br />instead of >apply(mydf, 2, function(x) myfun(x, c(1,2,3,4,5))) to pass something like > apply(mydf, 2, myfun(,(c(1,2,3,4,5)))) This is purely cosmetic and I know it won't make much difference to the running time. I just want to know if an option like this is possible because wrapping my function in a function each time seems inefficient
0
232,781
10/24/2008 07:51:52
23,491
09/29/2008 15:38:54
23
2
build a string using checkbox
can anybody show me how to build a string using checkbox. what would be the best way to do this. for example i have 4 checkbox's each with its own value (valueA, valueB, valueC, valueD) the thing is i want to display each result in different lines. result if B & C is selected : valueB <br> valueC and how would i display this again if i saved this into a database?
checkbox
c#
vb
visual-studio
null
null
open
build a string using checkbox === can anybody show me how to build a string using checkbox. what would be the best way to do this. for example i have 4 checkbox's each with its own value (valueA, valueB, valueC, valueD) the thing is i want to display each result in different lines. result if B & C is selected : valueB <br> valueC and how would i display this again if i saved this into a database?
0
11,524,863
07/17/2012 14:35:31
824,750
07/01/2011 11:15:43
3,852
209
Blur background with Viewbox
i'm building a similar effect which AERO glass gives you, a blurred window. I quickly realized that is not easy in WPF, but i managed to get it to work almost completely. I'm just stuck when a Viewbox is involved. So what i did was: I created a rectangle, made a visual brush to take a portion of a given background element, convert the viewbox to take exactly the space of the image that the rectangle overlaps and use that as the fill for the rectangle. <Grid x:Name="grid"> <Image x:Name="image" Source="someImage.png"/> <Rectangle x:Name="blurBackgroundRect" Width="100" Height="100"> <Rectangle.Effect> <BlurEffect Radius="10"/> </Rectangle.Effect> <Rectangle.Fill> <VisualBrush ViewboxUnits="Absolute" AlignmentX="Center" AlignmentY="Center" Visual="{Binding ElementName=image}" Stretch="None"> <VisualBrush.Viewbox> <MultiBinding Converter="{StaticResource visualBrushTargetConverter}"> <Binding ElementName="grid"/> <Binding ElementName="blurBackgroundRect"/> <Binding ElementName="grid" Path="ActualWidth"/> <Binding ElementName="grid" Path="ActualHeight"/> </MultiBinding> </VisualBrush.Viewbox> </VisualBrush> </Rectangle.Fill> </Rectangle> </Grid> The ElementName grid, referes to the common parent of my rectangle and my image. I cant make them ancestors, otherwise it would interfere with the blur effect. So i place them next to each other in a grid. The final part is the Multivalue converter, which does the actual calculation for the VisualBrush Viewbox. public class VisualBrushTargetConverter : IMultiValueConverter { public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) { var parentControl = values[0] as FrameworkElement; var targetControl = values[1] as FrameworkElement; var transformedPos = targetControl.TransformToVisual(parentControl).Transform(new Point()); var transformedSize = targetControl.TransformToVisual(parentControl).Transform(new Point(targetControl.RenderSize.Width, targetControl.RenderSize.Height)); transformedSize = new Point(transformedSize.X - transformedPos.X, transformedSize.Y - transformedPos.Y); return new Rect(transformedPos.X, transformedPos.Y, transformedSize.X, transformedSize.Y); } } So this is all necessary to reproduce my following problem. If you want to test the code, you can easily place that into a simple wpf application. If you test this, you see that it works fine. The problem occurs now if we place the rectangle inside a Viewbox and a grid with a fixed size (which mimics my actual problem). <Image x:Name="image" .../> <Viewbox> <Grid Width="800" Height="600"> <Rectangle x:Name="blurBackgroundRect" ...> </Grid> </Viewbox> So im guessing that the scaling from the viewbox is applied after the layouting, thus won't get recognized in my TransformTo calls. But i already tried to use the actual scaling of the Viewbox in my convert, but to no luck. As long as the Viewbox is there, i can't get it to work, so i hope anybody has an idea what could be wrong, or maybe even point me to a much simpler solution. I want that code to later convert to a custom control, to easily reuse that, so i prefere ways that don't rely to much on any special conditions. Thanks in advance
c#
wpf
viewbox
visualbrush
null
null
open
Blur background with Viewbox === i'm building a similar effect which AERO glass gives you, a blurred window. I quickly realized that is not easy in WPF, but i managed to get it to work almost completely. I'm just stuck when a Viewbox is involved. So what i did was: I created a rectangle, made a visual brush to take a portion of a given background element, convert the viewbox to take exactly the space of the image that the rectangle overlaps and use that as the fill for the rectangle. <Grid x:Name="grid"> <Image x:Name="image" Source="someImage.png"/> <Rectangle x:Name="blurBackgroundRect" Width="100" Height="100"> <Rectangle.Effect> <BlurEffect Radius="10"/> </Rectangle.Effect> <Rectangle.Fill> <VisualBrush ViewboxUnits="Absolute" AlignmentX="Center" AlignmentY="Center" Visual="{Binding ElementName=image}" Stretch="None"> <VisualBrush.Viewbox> <MultiBinding Converter="{StaticResource visualBrushTargetConverter}"> <Binding ElementName="grid"/> <Binding ElementName="blurBackgroundRect"/> <Binding ElementName="grid" Path="ActualWidth"/> <Binding ElementName="grid" Path="ActualHeight"/> </MultiBinding> </VisualBrush.Viewbox> </VisualBrush> </Rectangle.Fill> </Rectangle> </Grid> The ElementName grid, referes to the common parent of my rectangle and my image. I cant make them ancestors, otherwise it would interfere with the blur effect. So i place them next to each other in a grid. The final part is the Multivalue converter, which does the actual calculation for the VisualBrush Viewbox. public class VisualBrushTargetConverter : IMultiValueConverter { public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) { var parentControl = values[0] as FrameworkElement; var targetControl = values[1] as FrameworkElement; var transformedPos = targetControl.TransformToVisual(parentControl).Transform(new Point()); var transformedSize = targetControl.TransformToVisual(parentControl).Transform(new Point(targetControl.RenderSize.Width, targetControl.RenderSize.Height)); transformedSize = new Point(transformedSize.X - transformedPos.X, transformedSize.Y - transformedPos.Y); return new Rect(transformedPos.X, transformedPos.Y, transformedSize.X, transformedSize.Y); } } So this is all necessary to reproduce my following problem. If you want to test the code, you can easily place that into a simple wpf application. If you test this, you see that it works fine. The problem occurs now if we place the rectangle inside a Viewbox and a grid with a fixed size (which mimics my actual problem). <Image x:Name="image" .../> <Viewbox> <Grid Width="800" Height="600"> <Rectangle x:Name="blurBackgroundRect" ...> </Grid> </Viewbox> So im guessing that the scaling from the viewbox is applied after the layouting, thus won't get recognized in my TransformTo calls. But i already tried to use the actual scaling of the Viewbox in my convert, but to no luck. As long as the Viewbox is there, i can't get it to work, so i hope anybody has an idea what could be wrong, or maybe even point me to a much simpler solution. I want that code to later convert to a custom control, to easily reuse that, so i prefere ways that don't rely to much on any special conditions. Thanks in advance
0
4,093,342
11/04/2010 02:12:16
452,252
09/20/2010 02:17:38
1
0
How to design a reusable web service?
I am writing a common web service which will be invoked by different applications. I can foresee that some web methods should be resuable since the schema of soap request will be same. However, the response schema might be updated depends on client type. To reduce this impact of modifition, I would like to design the response as an array xml. The consumer should write its own class so that the future change of WSDL will affect previous consumer if it dose not need new array["new data"]. I am not sure if this design is workable or not. Does anybody can share his idea or advice? Thanks
web-services
null
null
null
null
null
open
How to design a reusable web service? === I am writing a common web service which will be invoked by different applications. I can foresee that some web methods should be resuable since the schema of soap request will be same. However, the response schema might be updated depends on client type. To reduce this impact of modifition, I would like to design the response as an array xml. The consumer should write its own class so that the future change of WSDL will affect previous consumer if it dose not need new array["new data"]. I am not sure if this design is workable or not. Does anybody can share his idea or advice? Thanks
0
8,278,966
11/26/2011 14:10:46
744,240
05/08/2011 21:11:07
11
0
R: how can i get cluster number correspond to data using k-means clustering techniques in R?
i clustered data by k-means clustering method, how can i get cluster number correspond to data using k-means clustering techniques in R? In order to get each record belongs to which cluster. example 12 32 13 => 1. 12,13 2. 32
r
cluster-analysis
k-means
null
null
null
open
R: how can i get cluster number correspond to data using k-means clustering techniques in R? === i clustered data by k-means clustering method, how can i get cluster number correspond to data using k-means clustering techniques in R? In order to get each record belongs to which cluster. example 12 32 13 => 1. 12,13 2. 32
0
8,633,858
12/26/2011 07:38:00
1,113,499
12/23/2011 13:45:11
1
0
online exam application in php
i am developing general online exam app in php i want to put a timer of 30 minutes, while ending the page should be redirected to another one and session will be ended automatically so that candidate can not attempt it again. i have used set_time_limit(); function bt how it works i dnt know, please provide me some example regarding this function, to start timer with this function or by some alternative and end session by after 30 minutes and page redirected. please provide me code for putting timer on test page of 30 minutes and this page is redirected to another page after time(30 minutes) expires. The timer must start with click on start_Test button on previous page, by which test page is open of appropriate category. help me over this., reply please.
php
application
online
exam
null
12/26/2011 23:19:44
not a real question
online exam application in php === i am developing general online exam app in php i want to put a timer of 30 minutes, while ending the page should be redirected to another one and session will be ended automatically so that candidate can not attempt it again. i have used set_time_limit(); function bt how it works i dnt know, please provide me some example regarding this function, to start timer with this function or by some alternative and end session by after 30 minutes and page redirected. please provide me code for putting timer on test page of 30 minutes and this page is redirected to another page after time(30 minutes) expires. The timer must start with click on start_Test button on previous page, by which test page is open of appropriate category. help me over this., reply please.
1
2,590,384
04/07/2010 06:18:06
100,240
05/03/2009 12:46:50
601
4
How to delete refClass record in Doctrine?
I have many-to-many relations with the following tables. post tag post_tag I created three classes with Doctrine, so I have the following classes as well. BasePost BaseTag BasePostTag in the setUp() method, I defined relations. I like to delete tag record when I delete post record. So I simply put cascade as descirbed on Doctrine document. $this->hasMany("Tag as Tags",array( 'refClass' => 'PostTag', 'local'=>'object_id', 'foreign'=>'tag_id', 'cascade'=> array('delete') )); it works without a problem. My questions is, how do I delete a record from post_tag table? Do I need to create a query myself?
doctrine
many-to-many
null
null
null
null
open
How to delete refClass record in Doctrine? === I have many-to-many relations with the following tables. post tag post_tag I created three classes with Doctrine, so I have the following classes as well. BasePost BaseTag BasePostTag in the setUp() method, I defined relations. I like to delete tag record when I delete post record. So I simply put cascade as descirbed on Doctrine document. $this->hasMany("Tag as Tags",array( 'refClass' => 'PostTag', 'local'=>'object_id', 'foreign'=>'tag_id', 'cascade'=> array('delete') )); it works without a problem. My questions is, how do I delete a record from post_tag table? Do I need to create a query myself?
0
9,080,575
01/31/2012 13:48:16
266,642
02/04/2010 23:02:07
681
21
Google Map API doesn'twork when DOCTYPE declared in Chrome and Firefox
I have this weird problem where my Google Maps API script doesn't work, *no map is rendered*, when I declare a DOCTYPE. Without a DOCTYPE I get the following warning, but it works and *a map is rendered*: > ***Resource interpreted as Other but transferred with MIME type undefined.*** I have no real clue to what is wrong, but I hope some wiz here might! Here you can see the script in action without DOCTYPE: http://vuify.com/googlemaps/nodoctype.html ...and here it is with DOCTYPE declared as HTML5: http://vuify.com/googlemaps/withdoctype.html JavaScript source is pretty long, but you can find it here: http://vuify.com/googlemaps/makegooglemap.1.0.js ***Thank you for your time!***
javascript
google-maps-api-3
javascript-objects
null
null
null
open
Google Map API doesn'twork when DOCTYPE declared in Chrome and Firefox === I have this weird problem where my Google Maps API script doesn't work, *no map is rendered*, when I declare a DOCTYPE. Without a DOCTYPE I get the following warning, but it works and *a map is rendered*: > ***Resource interpreted as Other but transferred with MIME type undefined.*** I have no real clue to what is wrong, but I hope some wiz here might! Here you can see the script in action without DOCTYPE: http://vuify.com/googlemaps/nodoctype.html ...and here it is with DOCTYPE declared as HTML5: http://vuify.com/googlemaps/withdoctype.html JavaScript source is pretty long, but you can find it here: http://vuify.com/googlemaps/makegooglemap.1.0.js ***Thank you for your time!***
0
9,064,780
01/30/2012 13:41:34
96,617
04/27/2009 15:27:38
333
30
Parsing dates with json-lib
I have the following JSON object: {"startDate":"30/01/2008","startPeriod":"2008","dboid":"5308204301485575800000","action":"update","grid":"variantAssigGrid","endDate":"30/01/2011","endPeriod":"2011","institution":"5301004301485575300000"} After applying JSONObject.toBean, start and end date are set to the current system date in the resulting bean (instead of the values in the json string). It looks like they are initialized with new Date(). Is there any way of specifying the date format ? I looked into JsonConfig class without much success. Thanks in advance!
json
json-lib
null
null
null
null
open
Parsing dates with json-lib === I have the following JSON object: {"startDate":"30/01/2008","startPeriod":"2008","dboid":"5308204301485575800000","action":"update","grid":"variantAssigGrid","endDate":"30/01/2011","endPeriod":"2011","institution":"5301004301485575300000"} After applying JSONObject.toBean, start and end date are set to the current system date in the resulting bean (instead of the values in the json string). It looks like they are initialized with new Date(). Is there any way of specifying the date format ? I looked into JsonConfig class without much success. Thanks in advance!
0
2,852,629
05/17/2010 20:41:09
120,854
06/10/2009 20:17:27
359
26
datalist itemdatabound event having issues changing item bg color on condition
Hey guys I'm trying to do something really simple.. I'm checking a data column in my datarow if it's > 0 I want the item back color in the datalist to be green if its < 0 remain transparent... if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { DataRowView drv = (DataRowView)(e.Item.DataItem); int rating = int.Parse(drv.Row["rating"].ToString()); if (rating > 0) { e.Item.BackColor = System.Drawing.Color.Green; } } I've stepped through with debugger and it's hitting all the conditions the color just isn't changing.. I know it has to be something simple I just can't see it.
c#
asp.net
datalist
ado.net
null
null
open
datalist itemdatabound event having issues changing item bg color on condition === Hey guys I'm trying to do something really simple.. I'm checking a data column in my datarow if it's > 0 I want the item back color in the datalist to be green if its < 0 remain transparent... if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { DataRowView drv = (DataRowView)(e.Item.DataItem); int rating = int.Parse(drv.Row["rating"].ToString()); if (rating > 0) { e.Item.BackColor = System.Drawing.Color.Green; } } I've stepped through with debugger and it's hitting all the conditions the color just isn't changing.. I know it has to be something simple I just can't see it.
0
6,105,555
05/24/2011 04:03:16
767,060
05/24/2011 03:58:39
1
0
Program for working on systems services using c++, Say performance or bandwidth monitoring.
I need to program basic system services of windows like network monitoring, performance monitoring etc in c or c++, i couldn't find any books for those system services in c or c++. Can anyone show me a piece of program or concept where or how to begin with.
c++
c
windows-services
operating-system
system
05/24/2011 11:11:05
not a real question
Program for working on systems services using c++, Say performance or bandwidth monitoring. === I need to program basic system services of windows like network monitoring, performance monitoring etc in c or c++, i couldn't find any books for those system services in c or c++. Can anyone show me a piece of program or concept where or how to begin with.
1
9,144,207
02/04/2012 20:21:37
80,738
03/20/2009 23:10:43
36
4
Geocoding API using JSonKit
I have trouble in parsing Google Geocoding API response. Here is the method : -(void) findLatLong:(NSString*) adr{ NSString *encodedAddress = (NSString *) CFURLCreateStringByAddingPercentEscapes( NULL, (CFStringRef) adr, NULL, (CFStringRef) @"!*'();:@&=+$,/?%#[]", kCFStringEncodingUTF8 ); NSString* searchURL = [NSString stringWithFormat:@"http://maps.googleapis.com/maps/api/geocode/json?address=%@&sensor=true",encodedAddress]; NSError* error = nil; NSURLResponse* response = nil; NSMutableURLRequest* request = [[[NSMutableURLRequest alloc] init] autorelease]; NSData* data = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error]; if (error){ NSLog(@"Error performing request %@", searchURL); return; } NSString *jsonString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; NSDictionary *results = [jsonString objectFromJSONString]; // to be added } I can get response json string from Geococing API. When I parse it with JSonKit I have two keys. These are _result_ and _status_. But when I go one step further as below: [[results objectForKey:@"results"] objectForKey:@"address_components"] I always get null set. Any suggestion? I am using XCode 4.2.1
objective-c
google-maps
mapkit
geocoding
jsonkit
null
open
Geocoding API using JSonKit === I have trouble in parsing Google Geocoding API response. Here is the method : -(void) findLatLong:(NSString*) adr{ NSString *encodedAddress = (NSString *) CFURLCreateStringByAddingPercentEscapes( NULL, (CFStringRef) adr, NULL, (CFStringRef) @"!*'();:@&=+$,/?%#[]", kCFStringEncodingUTF8 ); NSString* searchURL = [NSString stringWithFormat:@"http://maps.googleapis.com/maps/api/geocode/json?address=%@&sensor=true",encodedAddress]; NSError* error = nil; NSURLResponse* response = nil; NSMutableURLRequest* request = [[[NSMutableURLRequest alloc] init] autorelease]; NSData* data = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error]; if (error){ NSLog(@"Error performing request %@", searchURL); return; } NSString *jsonString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; NSDictionary *results = [jsonString objectFromJSONString]; // to be added } I can get response json string from Geococing API. When I parse it with JSonKit I have two keys. These are _result_ and _status_. But when I go one step further as below: [[results objectForKey:@"results"] objectForKey:@"address_components"] I always get null set. Any suggestion? I am using XCode 4.2.1
0
186,007
10/09/2008 05:28:54
11,135
09/16/2008 05:26:36
22
4
What is the best language construction in C#?
What is the best language construction you have worked with in C#. One of my favorites is Generics.
c#
null
null
null
null
10/09/2008 07:56:25
not constructive
What is the best language construction in C#? === What is the best language construction you have worked with in C#. One of my favorites is Generics.
4
8,084,007
11/10/2011 17:51:06
865,663
07/27/2011 14:44:15
1
0
Dotnetnuke 6 Ribbonbar Admin and dropdown gone
<a href="http://i.stack.imgur.com/cC4sc.jpg">http://i.stack.imgur.com/cC4sc.jpg</a> Above is the ribbonbar after I have logged in as a super user. The Admin option next to Host is completely gone. I would have put the image in the post directly, but I am a new user. The site is running DNN6, the skin is only in the site portal folder, and it seems that all admin modules and options have gone away. Even the header, which I set in Site Settings (under Admin), went away! Has anyone else had their admin options completely disappear on them? Is it possible that the skin is messing it up (all other sites use the same _default menu files and they work fine)? Thanks for any replies.
dotnetnuke
runtime-error
dotnetnuke-6
null
null
null
open
Dotnetnuke 6 Ribbonbar Admin and dropdown gone === <a href="http://i.stack.imgur.com/cC4sc.jpg">http://i.stack.imgur.com/cC4sc.jpg</a> Above is the ribbonbar after I have logged in as a super user. The Admin option next to Host is completely gone. I would have put the image in the post directly, but I am a new user. The site is running DNN6, the skin is only in the site portal folder, and it seems that all admin modules and options have gone away. Even the header, which I set in Site Settings (under Admin), went away! Has anyone else had their admin options completely disappear on them? Is it possible that the skin is messing it up (all other sites use the same _default menu files and they work fine)? Thanks for any replies.
0
11,521,129
07/17/2012 11:00:26
830,993
07/06/2011 06:36:58
167
8
NTAccount.Translate Method fails with error Some or all identity references could not be translated
PipeAccessRule par = new PipeAccessRule("Everyone", PipeAccessRights.ReadWrite, System.Security.AccessControl.AccessControlType.Allow); This code fails with error: > Some or all identity references could not be translated. I guess this is because I'm using "Everyone" while launch my app on non-English local. On English system everything is OK. How to avoid this? Is there some enum describes general user groups? Stack trace: at System.Security.Principal.NTAccount.Translate(IdentityReferenceCollection sourceAccounts, Type targetType, Boolean forceSuccess) at System.Security.Principal.NTAccount.Translate(Type targetType) at System.Security.AccessControl.CommonObjectSecurity.ModifyAccess(AccessControlModification modification, AccessRule rule, Boolean& modified) at System.Security.AccessControl.CommonObjectSecurity.AddAccessRule(AccessRule rule) at System.IO.Pipes.PipeSecurity.AddAccessRule(PipeAccessRule rule)
c#
.net
translate
user-accounts
null
null
open
NTAccount.Translate Method fails with error Some or all identity references could not be translated === PipeAccessRule par = new PipeAccessRule("Everyone", PipeAccessRights.ReadWrite, System.Security.AccessControl.AccessControlType.Allow); This code fails with error: > Some or all identity references could not be translated. I guess this is because I'm using "Everyone" while launch my app on non-English local. On English system everything is OK. How to avoid this? Is there some enum describes general user groups? Stack trace: at System.Security.Principal.NTAccount.Translate(IdentityReferenceCollection sourceAccounts, Type targetType, Boolean forceSuccess) at System.Security.Principal.NTAccount.Translate(Type targetType) at System.Security.AccessControl.CommonObjectSecurity.ModifyAccess(AccessControlModification modification, AccessRule rule, Boolean& modified) at System.Security.AccessControl.CommonObjectSecurity.AddAccessRule(AccessRule rule) at System.IO.Pipes.PipeSecurity.AddAccessRule(PipeAccessRule rule)
0
9,957,026
03/31/2012 15:05:57
1,305,161
03/31/2012 14:57:10
1
0
How to authenticate username and password using keychain
I am working on creating an app login details. I have gone through keychain and i was able to create keychain wrapper. But the problem is how can we authenticate username and password details entered in login page.I have programmed to set username and password using he following [keychainItem setObject:@"password you are saving" forKey:kSecValueData]; [keychainItem setObject:@"username you are saving" forKey:kSecAttrAccount]; I was also able to retrieve username and password NSString *password = [keychainItem objectForKey:kSecValueData]; NSString *username = [keychainItem objectForKey:kSecAttrAccount]; But the above retrieves the recently stored username and password pair. But i want to search the username and password fields and authenticate them. Can any one please help me on this
ios
authentication
login
keychain
null
null
open
How to authenticate username and password using keychain === I am working on creating an app login details. I have gone through keychain and i was able to create keychain wrapper. But the problem is how can we authenticate username and password details entered in login page.I have programmed to set username and password using he following [keychainItem setObject:@"password you are saving" forKey:kSecValueData]; [keychainItem setObject:@"username you are saving" forKey:kSecAttrAccount]; I was also able to retrieve username and password NSString *password = [keychainItem objectForKey:kSecValueData]; NSString *username = [keychainItem objectForKey:kSecAttrAccount]; But the above retrieves the recently stored username and password pair. But i want to search the username and password fields and authenticate them. Can any one please help me on this
0
8,935,263
01/20/2012 00:17:22
1,082,764
12/06/2011 03:31:49
55
0
What is the best way to protect my DB class from being hacked
I Have a class called 'DBinterface' and a class called 'user'. 1. is it perfectly fine for the connect function to be public? class dbinterface { private $_dbLink; private $dbHost = 'host'; private $dbUser = 'user'; private $dbName = 'name'; private $dbPass = 'pass'; private $dbUserTable = 'table'; public function connect () { $this->_dbLink = mysql_connect($this->_dbHost, $this->_dbUser, $this->_dbPass); if(!$this->_dbLink) throw new Exception ("Could not connect to database. " . mysql_error()); } 2. I have a table that stores all my users information like userID and password. can i put the name of that table into a function like this without the risk of someone somwhat easily hacking it? function registerUser($userName, $userPassword) { $db = new db(); $db->connect(); // Select database mysql_select_db($this->dbName); $query = "insert into usersExample values (NULL, \"$userName\", \"$userPassword\")"; $result = mysql_query($query); // Test to make sure query worked if(!$result) die("Query didn't work. " . mysql_error()); // Get the user ID $this->userID = mysql_insert_id(); // Close database connection mysql_close($dbLink); } // End registerUser() PS: i have removed password encryption and escape string for legibility.
php
oop
null
null
null
01/20/2012 23:25:44
not a real question
What is the best way to protect my DB class from being hacked === I Have a class called 'DBinterface' and a class called 'user'. 1. is it perfectly fine for the connect function to be public? class dbinterface { private $_dbLink; private $dbHost = 'host'; private $dbUser = 'user'; private $dbName = 'name'; private $dbPass = 'pass'; private $dbUserTable = 'table'; public function connect () { $this->_dbLink = mysql_connect($this->_dbHost, $this->_dbUser, $this->_dbPass); if(!$this->_dbLink) throw new Exception ("Could not connect to database. " . mysql_error()); } 2. I have a table that stores all my users information like userID and password. can i put the name of that table into a function like this without the risk of someone somwhat easily hacking it? function registerUser($userName, $userPassword) { $db = new db(); $db->connect(); // Select database mysql_select_db($this->dbName); $query = "insert into usersExample values (NULL, \"$userName\", \"$userPassword\")"; $result = mysql_query($query); // Test to make sure query worked if(!$result) die("Query didn't work. " . mysql_error()); // Get the user ID $this->userID = mysql_insert_id(); // Close database connection mysql_close($dbLink); } // End registerUser() PS: i have removed password encryption and escape string for legibility.
1
4,908,444
02/05/2011 17:41:42
430,979
08/25/2010 17:03:29
6
0
Checksum Failure
I've got this script and it produces the following error: 001 Checksum failure This is the script, i don't know what's wrong with it, could you help me? <?php /* Access control for TargetPay Pay per Use (C) TargetMedia 2007 Upload this file in the protected directory and make sure that .htaccess support is enabled. MODIFICATIONS IN THIS CODE ARE ALLOWED BUT NOT SUPPORTED Product-ID: 28717 Generated: 16-01-2011 14:57:05 */ define ("CHECKSUM", "739b54dc26"); define ("ERR001", "001 Checksum failure"); define ("ERR002", "002 Can't open .htaccess for writing. Check rights."); define ("ERR003", "003 I/O Error, cannot write to .htaccess. Disk full?"); list($thispage) = explode("?", "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]); $payscreen = "http://www.targetpay.nl/send/?id=28717&rtlo=51090". "&pm=".urlencode("inline=1"). "&ref=".urlencode($thispage); header ("Content-type: text/plain"); if ($_GET["checksum"] != CHECKSUM) { die (ERR001); } function ip2hex ($ip) { list ($a,$b,$c,$d) = explode(".", $ip); return str_pad(dechex($a),2,"0",STR_PAD_LEFT). str_pad(dechex($b),2,"0",STR_PAD_LEFT). str_pad(dechex($c),2,"0",STR_PAD_LEFT). str_pad(dechex($d),2,"0",STR_PAD_LEFT); } function hex2ip ($hex) { return hexdec(substr($hex,0,2)).".". hexdec(substr($hex,2,2)).".". hexdec(substr($hex,4,2)).".". hexdec(substr($hex,6,2)); } function parse ($whitelist, $payscreen) { $here = substr($_SERVER["SCRIPT_FILENAME"], strrpos ($_SERVER["SCRIPT_FILENAME"], "/") + 1); $o = "ErrorDocument 403 $payscreen\n". "<Files .htaccess>\n". "Order allow,deny\n". "Deny from all\n". "</Files>\n". "<Files $here>\n". "Order allow,deny\n". "Allow from all\n". "</Files>\n". "Order deny,allow\n". "Deny from all\n"; if ((!$whitelist) || ($whitelist=="empty")) { return $o; } $iplist = explode(",", $whitelist); foreach ($iplist as $hex) { $ip = hex2ip ($hex); if ($ip) { $o .= "Allow from $ip\n"; } } return $o; } if ($_GET["register"]) { $fp = @fopen(".htaccess", "w+"); if (!$fp) { die (ERR002); } if (!@fwrite ($fp, parse($_GET["register"],$payscreen))) { die (ERR003); } @fclose ($fp); echo "000 OK"; } if ($_GET["reset"]) { @unlink (".htaccess"); $fp = @fopen(".htaccess", "w+"); if (!$fp) { die (ERR002); } if (!@fwrite ($fp, parse("",$payscreen))) { die (ERR003); } @fclose ($fp); echo "000 RESET OK"; } if ($_GET["dump"]) { echo @implode("",file(".htaccess")); echo "\n-EOF-"; } ?> Many thanks!
php
checksum
null
null
null
02/07/2011 02:39:56
not a real question
Checksum Failure === I've got this script and it produces the following error: 001 Checksum failure This is the script, i don't know what's wrong with it, could you help me? <?php /* Access control for TargetPay Pay per Use (C) TargetMedia 2007 Upload this file in the protected directory and make sure that .htaccess support is enabled. MODIFICATIONS IN THIS CODE ARE ALLOWED BUT NOT SUPPORTED Product-ID: 28717 Generated: 16-01-2011 14:57:05 */ define ("CHECKSUM", "739b54dc26"); define ("ERR001", "001 Checksum failure"); define ("ERR002", "002 Can't open .htaccess for writing. Check rights."); define ("ERR003", "003 I/O Error, cannot write to .htaccess. Disk full?"); list($thispage) = explode("?", "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]); $payscreen = "http://www.targetpay.nl/send/?id=28717&rtlo=51090". "&pm=".urlencode("inline=1"). "&ref=".urlencode($thispage); header ("Content-type: text/plain"); if ($_GET["checksum"] != CHECKSUM) { die (ERR001); } function ip2hex ($ip) { list ($a,$b,$c,$d) = explode(".", $ip); return str_pad(dechex($a),2,"0",STR_PAD_LEFT). str_pad(dechex($b),2,"0",STR_PAD_LEFT). str_pad(dechex($c),2,"0",STR_PAD_LEFT). str_pad(dechex($d),2,"0",STR_PAD_LEFT); } function hex2ip ($hex) { return hexdec(substr($hex,0,2)).".". hexdec(substr($hex,2,2)).".". hexdec(substr($hex,4,2)).".". hexdec(substr($hex,6,2)); } function parse ($whitelist, $payscreen) { $here = substr($_SERVER["SCRIPT_FILENAME"], strrpos ($_SERVER["SCRIPT_FILENAME"], "/") + 1); $o = "ErrorDocument 403 $payscreen\n". "<Files .htaccess>\n". "Order allow,deny\n". "Deny from all\n". "</Files>\n". "<Files $here>\n". "Order allow,deny\n". "Allow from all\n". "</Files>\n". "Order deny,allow\n". "Deny from all\n"; if ((!$whitelist) || ($whitelist=="empty")) { return $o; } $iplist = explode(",", $whitelist); foreach ($iplist as $hex) { $ip = hex2ip ($hex); if ($ip) { $o .= "Allow from $ip\n"; } } return $o; } if ($_GET["register"]) { $fp = @fopen(".htaccess", "w+"); if (!$fp) { die (ERR002); } if (!@fwrite ($fp, parse($_GET["register"],$payscreen))) { die (ERR003); } @fclose ($fp); echo "000 OK"; } if ($_GET["reset"]) { @unlink (".htaccess"); $fp = @fopen(".htaccess", "w+"); if (!$fp) { die (ERR002); } if (!@fwrite ($fp, parse("",$payscreen))) { die (ERR003); } @fclose ($fp); echo "000 RESET OK"; } if ($_GET["dump"]) { echo @implode("",file(".htaccess")); echo "\n-EOF-"; } ?> Many thanks!
1
9,456,272
02/26/2012 19:17:22
844,039
07/14/2011 07:24:36
69
4
error with setContentView on tabs and AsyncTask
I have a strange error with my code. I am trying to show to user logo and after that to display the tabs. Tried to clean and build project still the same errors,and I dont use import R. But my problem is some strange error : java.lang.RuntimeException: Your content must have a TabHost whose id attribute is 'android.R.id.tabhost' My app have error on setContentView(R.layout.logoscreen); my code is: public class tabs extends TabActivity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.logoscreen); new GetDataTask(this).execute(); } private class GetDataTask extends AsyncTask<Void, Void, Integer> { Context context; GetDataTask(Context context){this.context=context;} protected void onPostExecute(Integer result) { //tabs.this.setContentView(R.layout.tabs); setContentView(R.layout.logoscreen); //setContentView(R.layout.tabs); TabHost tabHost= (TabHost)tabs.this.findViewById(R.id.tabhost); TabHost.TabSpec spec; // Resusable TabSpec for each tab Intent intent; // Reusable Intent for each tab // Create an Intent to launch an Activity for the tab (to be reused) intent = new Intent().setClass(context,start.class); // Initialize a TabSpec for each tab and add it to the TabHost spec = tabHost.newTabSpec("Heb news").setIndicator("Heb news").setContent(intent); tabHost.addTab(spec); // Do the same for the other tabs intent = new Intent().setClass(context, rusNewsP.ListRusNews.class); spec = tabHost.newTabSpec("Rus News").setIndicator("Rus News").setContent(intent); tabHost.addTab(spec); tabHost.setCurrentTab(0); } } my xml file is logoscreen.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <ImageView android:id="@+id/imageView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/icon" /> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"> <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="5dp"> <TabWidget android:id="@+id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" /> <FrameLayout android:id="@+id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="5dp" /> </LinearLayout> </TabHost> </LinearLayout> thanks for the help!!!
android
tabs
android-asynctask
null
null
null
open
error with setContentView on tabs and AsyncTask === I have a strange error with my code. I am trying to show to user logo and after that to display the tabs. Tried to clean and build project still the same errors,and I dont use import R. But my problem is some strange error : java.lang.RuntimeException: Your content must have a TabHost whose id attribute is 'android.R.id.tabhost' My app have error on setContentView(R.layout.logoscreen); my code is: public class tabs extends TabActivity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.logoscreen); new GetDataTask(this).execute(); } private class GetDataTask extends AsyncTask<Void, Void, Integer> { Context context; GetDataTask(Context context){this.context=context;} protected void onPostExecute(Integer result) { //tabs.this.setContentView(R.layout.tabs); setContentView(R.layout.logoscreen); //setContentView(R.layout.tabs); TabHost tabHost= (TabHost)tabs.this.findViewById(R.id.tabhost); TabHost.TabSpec spec; // Resusable TabSpec for each tab Intent intent; // Reusable Intent for each tab // Create an Intent to launch an Activity for the tab (to be reused) intent = new Intent().setClass(context,start.class); // Initialize a TabSpec for each tab and add it to the TabHost spec = tabHost.newTabSpec("Heb news").setIndicator("Heb news").setContent(intent); tabHost.addTab(spec); // Do the same for the other tabs intent = new Intent().setClass(context, rusNewsP.ListRusNews.class); spec = tabHost.newTabSpec("Rus News").setIndicator("Rus News").setContent(intent); tabHost.addTab(spec); tabHost.setCurrentTab(0); } } my xml file is logoscreen.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <ImageView android:id="@+id/imageView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/icon" /> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"> <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="5dp"> <TabWidget android:id="@+id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" /> <FrameLayout android:id="@+id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="5dp" /> </LinearLayout> </TabHost> </LinearLayout> thanks for the help!!!
0
1,187,627
07/27/2009 11:20:28
131,870
07/01/2009 17:54:58
26
10
Need a help in query?
I have a hierarchical tree table structure .How can i get the left tree and right tree . 1 a NULL 2 b 1 3 c 1 4 d 2 5 e 2 6 f 3 7 g 3 8 h 4 9 i 4 10 j 5 11 k 5 12 l 6 If i have the id of a ie 1 .how can i get the tree of b and c i am expecting the tree under b as 2 b 4 d 5 e 8 h 9 i 10 j 11 k Here i an following adjacency model only i am going .I am not looking for nested model. This mit be a duplicate question .
sql
sql-server
sql-server-2005
null
null
null
open
Need a help in query? === I have a hierarchical tree table structure .How can i get the left tree and right tree . 1 a NULL 2 b 1 3 c 1 4 d 2 5 e 2 6 f 3 7 g 3 8 h 4 9 i 4 10 j 5 11 k 5 12 l 6 If i have the id of a ie 1 .how can i get the tree of b and c i am expecting the tree under b as 2 b 4 d 5 e 8 h 9 i 10 j 11 k Here i an following adjacency model only i am going .I am not looking for nested model. This mit be a duplicate question .
0
9,861,368
03/25/2012 15:30:28
1,230,945
02/24/2012 14:12:31
11
0
knowing the network operator name in J2ME
How do i get the network operator name in an app written with J2ME? I am recently trying to develop an app on nokia s40 which should have an exclusive access to a particular network operator. Is there any API or library of such?
java-me
nokia
null
null
null
null
open
knowing the network operator name in J2ME === How do i get the network operator name in an app written with J2ME? I am recently trying to develop an app on nokia s40 which should have an exclusive access to a particular network operator. Is there any API or library of such?
0
8,214,792
11/21/2011 16:10:28
1,058,123
11/21/2011 15:54:26
1
0
Is there any programmatically way to access the data of incoming emails in other android application?
I m building a project using android in which i need to use some data of incoming emails from android mobile device. These emails would be in some specific content format. example: Person Name:xyz Contact No:1234567890 Action:abc Plz tell me how can i read such data.
android
null
null
null
null
11/21/2011 18:15:44
not a real question
Is there any programmatically way to access the data of incoming emails in other android application? === I m building a project using android in which i need to use some data of incoming emails from android mobile device. These emails would be in some specific content format. example: Person Name:xyz Contact No:1234567890 Action:abc Plz tell me how can i read such data.
1
792,804
04/27/2009 09:24:44
5,363
09/09/2008 10:58:29
2,706
118
IP address changes "automagically" for Default Web Site in IIS
I am having a really weird issue with IIS on one of our servers. Occasionally it seems to change the IP address from (All Unassigned) to 127.0.0.1, causing everything that uses our web service to fail. Does IIS log the configuration changes somewhere? Did anyone have similar experiences? Many people have access to this server, so despite they claim they haven't touched it I suspect human intervention here, I just need a way to track it down.
iis
iis6
web-services
null
null
null
open
IP address changes "automagically" for Default Web Site in IIS === I am having a really weird issue with IIS on one of our servers. Occasionally it seems to change the IP address from (All Unassigned) to 127.0.0.1, causing everything that uses our web service to fail. Does IIS log the configuration changes somewhere? Did anyone have similar experiences? Many people have access to this server, so despite they claim they haven't touched it I suspect human intervention here, I just need a way to track it down.
0
11,067,196
06/16/2012 21:34:47
1,454,276
06/13/2012 16:53:37
1
0
Create and insert from Temporary table using Linq to SQL in DBML
I am looking to create Temporary table and using LINQ TO SQL .net 3.5 CREATE TABLE #InfoDetails ( ID INT NOT NULL, Detail SMALLINT NOT NULL, PKeyID BIGINT NOT NULL, HashValue VARCHAR(128) NULL, InfoErrors XML NULL, ReasonCode CHAR(2) NULL, ReasonCodeDes VARCHAR(80) NULL ) After Creating this temp table insert data in it and after inserting i need to implement SQLBULK copy I have no idea how to create Temporary table in .net 3.5 LINQ TO SQL insert data to it.
.net
linq
sql-server-2008
null
null
null
open
Create and insert from Temporary table using Linq to SQL in DBML === I am looking to create Temporary table and using LINQ TO SQL .net 3.5 CREATE TABLE #InfoDetails ( ID INT NOT NULL, Detail SMALLINT NOT NULL, PKeyID BIGINT NOT NULL, HashValue VARCHAR(128) NULL, InfoErrors XML NULL, ReasonCode CHAR(2) NULL, ReasonCodeDes VARCHAR(80) NULL ) After Creating this temp table insert data in it and after inserting i need to implement SQLBULK copy I have no idea how to create Temporary table in .net 3.5 LINQ TO SQL insert data to it.
0
6,615,019
07/07/2011 17:58:46
461,844
09/29/2010 14:28:14
8
0
Make a website with Google Maps Interface
I want to make a website which will have content strewn across and like Google maps it will have a navigator and you can pan and zoom around. Question: How can I make one?
google-maps
google
interface
website
null
07/07/2011 19:41:49
not a real question
Make a website with Google Maps Interface === I want to make a website which will have content strewn across and like Google maps it will have a navigator and you can pan and zoom around. Question: How can I make one?
1
1,931,605
12/19/2009 01:21:47
230,134
12/12/2009 04:42:35
26
2
Does a programming framework make you less of a programmer
Out in the dev lang there are many many, frameworks for all types of languages. For instance, javascript has jQuery, which I use all the time without even thinking about it. Then for php there is Zend and CodeIgnitor, Ruby has rails, Python has django. That's just a few off the top of my head. I have always been the type of person that was against a framework, especially for PHP. I was always under the impression that using a framework would make people conceive you as lazy developer or to have the inability to code in the raw format. However, for a while now I notice large projects being made in these frameworks. I am very curious as to what the opinions are of everyone. Does using a framework make you less of a developer then using raw code, also lets add in a variable and say that you don't already know all the ends and outs of the primary language?
frameworks
null
null
null
null
12/19/2009 01:37:35
not a real question
Does a programming framework make you less of a programmer === Out in the dev lang there are many many, frameworks for all types of languages. For instance, javascript has jQuery, which I use all the time without even thinking about it. Then for php there is Zend and CodeIgnitor, Ruby has rails, Python has django. That's just a few off the top of my head. I have always been the type of person that was against a framework, especially for PHP. I was always under the impression that using a framework would make people conceive you as lazy developer or to have the inability to code in the raw format. However, for a while now I notice large projects being made in these frameworks. I am very curious as to what the opinions are of everyone. Does using a framework make you less of a developer then using raw code, also lets add in a variable and say that you don't already know all the ends and outs of the primary language?
1
4,133,139
11/09/2010 11:28:47
293,838
03/15/2010 09:15:16
41
2
Drupal - Flagging nodes on behalf of another user(programmatically)
I have a custom module which allows a user to invite friends to see his/her favourite(flagged) nodes. Upon the invitation/registration.. I want to be able to duplicate the (inviter)users flags for the new(invited) user. i read http://drupal.org/node/305086 and it says to use: function flag($action, $content_id, $account = NULL, $skip_permission_check = FALSE) however regardless what value i put in for $account the new flag is not created for the new user. can anybody assist please!
php
drupal
flags
null
null
null
open
Drupal - Flagging nodes on behalf of another user(programmatically) === I have a custom module which allows a user to invite friends to see his/her favourite(flagged) nodes. Upon the invitation/registration.. I want to be able to duplicate the (inviter)users flags for the new(invited) user. i read http://drupal.org/node/305086 and it says to use: function flag($action, $content_id, $account = NULL, $skip_permission_check = FALSE) however regardless what value i put in for $account the new flag is not created for the new user. can anybody assist please!
0
2,698,057
04/23/2010 11:17:24
2,942
08/26/2008 08:29:31
724
29
Caching view-port based Geo-queries
I have a web app with a giant Google Map in it. As users pan and zoom around on the map, points are dynamically loaded through AJAX call which include the viewport bounds (NE and SW corner coordinates) and some other assorted parameters. How do I cache these request for points? The problem is that the parameters are highly variable and (worst) not discrete i.e. floats with a lots of decimal places. I'm using ASP.NET-MVC/C#/LINQ2SQL/SQL-Server but the problem is not tied to that platform. This is the signature of the the relevant method: [AcceptVerbs(HttpVerbs.Post)] public JsonResult Data(string date, string categories, string ne_lat, string ne_lng, string sw_lat, string sw_lng)
geospatial
google-maps
caching
null
null
null
open
Caching view-port based Geo-queries === I have a web app with a giant Google Map in it. As users pan and zoom around on the map, points are dynamically loaded through AJAX call which include the viewport bounds (NE and SW corner coordinates) and some other assorted parameters. How do I cache these request for points? The problem is that the parameters are highly variable and (worst) not discrete i.e. floats with a lots of decimal places. I'm using ASP.NET-MVC/C#/LINQ2SQL/SQL-Server but the problem is not tied to that platform. This is the signature of the the relevant method: [AcceptVerbs(HttpVerbs.Post)] public JsonResult Data(string date, string categories, string ne_lat, string ne_lng, string sw_lat, string sw_lng)
0
10,247,312
04/20/2012 13:33:35
228,755
12/10/2009 11:56:45
2,594
119
How to prepare an app for Enterprise In-House Distribution in Xcode 3.2.5?
We have purchased Enterprise Program account and by the link https://developer.apple.com/library/IOs/#documentation/ToolsLanguages/Conceptual/DevPortalGuide/DistributinganApp/DistributinganApp.html I came to know that we can distribute our application to our employees without submission to AppStore. With help of procedure given in the links https://developer.apple.com/library/IOs/#recipes/xcode_help-scheme_editor/Articles/SchemeArchive.html#//apple_ref/doc/uid/TP40010402-CH6 https://developer.apple.com/library/IOs/#recipes/xcode_help-scheme_editor/Articles/SchemeDialog.html#//apple_ref/doc/uid/TP40010402-CH1-SW1 I was trying to create Archive through **Product > Archive** as given in link but could not open the window to Archive the app. I am using Xcode 3.2.5? Please tell me How can I open this to proceed.
iphone
ios
ipad
distribution
in-house-distribution
null
open
How to prepare an app for Enterprise In-House Distribution in Xcode 3.2.5? === We have purchased Enterprise Program account and by the link https://developer.apple.com/library/IOs/#documentation/ToolsLanguages/Conceptual/DevPortalGuide/DistributinganApp/DistributinganApp.html I came to know that we can distribute our application to our employees without submission to AppStore. With help of procedure given in the links https://developer.apple.com/library/IOs/#recipes/xcode_help-scheme_editor/Articles/SchemeArchive.html#//apple_ref/doc/uid/TP40010402-CH6 https://developer.apple.com/library/IOs/#recipes/xcode_help-scheme_editor/Articles/SchemeDialog.html#//apple_ref/doc/uid/TP40010402-CH1-SW1 I was trying to create Archive through **Product > Archive** as given in link but could not open the window to Archive the app. I am using Xcode 3.2.5? Please tell me How can I open this to proceed.
0
9,320,939
02/16/2012 23:52:40
1,885
08/19/2008 04:19:18
704
29
Can somebody explain the MySQL cost options?
After having worked with a Microsoft stack - VB.Net, ASP.Net, SQL Server - for the past 10 years, we our now faced with having to develop an application for both Windows and Mac environments. It has been suggested that MySQL, for the database, is available on both platforms. I've been under the impression that MySQL is an open source project, but has recently been bought? / taken over? by Oracle. The MySQL web site seems to indicate that unless it is being used in another open source project, there are licencing fees to be paid, and the fees are in the order of other database costs - eg. SQL Server, Filemaker. Somebody has suggested that MySQL is **free** to use in a LAMP environment. Can somebody with deployed MySQL experience confirm or explain this, along with any other gotchas that might be pertinent?
mysql
database
deployment
null
null
02/16/2012 23:56:11
off topic
Can somebody explain the MySQL cost options? === After having worked with a Microsoft stack - VB.Net, ASP.Net, SQL Server - for the past 10 years, we our now faced with having to develop an application for both Windows and Mac environments. It has been suggested that MySQL, for the database, is available on both platforms. I've been under the impression that MySQL is an open source project, but has recently been bought? / taken over? by Oracle. The MySQL web site seems to indicate that unless it is being used in another open source project, there are licencing fees to be paid, and the fees are in the order of other database costs - eg. SQL Server, Filemaker. Somebody has suggested that MySQL is **free** to use in a LAMP environment. Can somebody with deployed MySQL experience confirm or explain this, along with any other gotchas that might be pertinent?
2
11,555,890
07/19/2012 07:29:11
1,530,719
07/17/2012 05:29:39
1
1
how to parse xml with special character? specifically for ampersand
I am getting data from text box and change it into xml format and store it in data base. For allowing special characters i wrote javascript function to replace special character with its html entities. " &quot; & &amp; < &lt; > &gt; for "quotes , less than , greater than" its working fine. for "&" it is showing xml parser error i used javascript to replace special character with its entity string.replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, "\\'"); for "&" allow showing warning but it get stored in data base. please help me to sort out this problem .
javascript
xml
special-characters
null
null
null
open
how to parse xml with special character? specifically for ampersand === I am getting data from text box and change it into xml format and store it in data base. For allowing special characters i wrote javascript function to replace special character with its html entities. " &quot; & &amp; < &lt; > &gt; for "quotes , less than , greater than" its working fine. for "&" it is showing xml parser error i used javascript to replace special character with its entity string.replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, "\\'"); for "&" allow showing warning but it get stored in data base. please help me to sort out this problem .
0
5,934,703
05/09/2011 09:02:35
720,072
04/22/2011 05:00:40
1
0
How to integrate Linkedin with my android application?
i want to integrate linkedin with my android app. In this i want to do login with linkedin and to do post on my linked account. So can you help me how i can do it? Please reply ASAP. and also give steps to follow?
android
null
null
null
null
05/09/2011 09:18:06
not a real question
How to integrate Linkedin with my android application? === i want to integrate linkedin with my android app. In this i want to do login with linkedin and to do post on my linked account. So can you help me how i can do it? Please reply ASAP. and also give steps to follow?
1
5,560,229
04/06/2011 00:36:20
507,686
11/14/2010 23:29:40
40
0
how to iterate over PCB's to show information in a Linux Kernel Module?
I want to write a little Linux Kernel Module that can show me the PID of all running processes. I have the following code: /* * procInfo.c My Kernel Module for process info */ #include <linux/init.h> #include <linux/module.h> #include <linux/kernel.h> /* * The init function, called when the module is loaded. * Returns zero if successfully loaded, nonzero otherwise. */ static int mod_init(void) { printk(KERN_ALERT "ProcInfo sucessfully loaded.\n"); return 0; } /* * The exit function, called when the module is removed. */ static void mod_exit(void) { printk(KERN_ALERT "ProcInfo sucessfully unloaded.\n"); } void getProcInfo() { printk(KERN_INFO "The process is \"%s\" (pid %i)\n", current->comm, current->pid); } module_init(mod_init); module_exit(mod_exit); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Rodrigo"); As you can see, i know i have to use the *struct task_struct* structure to get the PID and the Process name, but i am using *current*, and i know the existance of some double linked circular list that contains all PCB's, so the main question is: what do i need to add to iterate over this linked lisk with p-next_task and p-prev_task so getProcInfo works? Thanks!
process
module
kernel
pid
null
null
open
how to iterate over PCB's to show information in a Linux Kernel Module? === I want to write a little Linux Kernel Module that can show me the PID of all running processes. I have the following code: /* * procInfo.c My Kernel Module for process info */ #include <linux/init.h> #include <linux/module.h> #include <linux/kernel.h> /* * The init function, called when the module is loaded. * Returns zero if successfully loaded, nonzero otherwise. */ static int mod_init(void) { printk(KERN_ALERT "ProcInfo sucessfully loaded.\n"); return 0; } /* * The exit function, called when the module is removed. */ static void mod_exit(void) { printk(KERN_ALERT "ProcInfo sucessfully unloaded.\n"); } void getProcInfo() { printk(KERN_INFO "The process is \"%s\" (pid %i)\n", current->comm, current->pid); } module_init(mod_init); module_exit(mod_exit); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Rodrigo"); As you can see, i know i have to use the *struct task_struct* structure to get the PID and the Process name, but i am using *current*, and i know the existance of some double linked circular list that contains all PCB's, so the main question is: what do i need to add to iterate over this linked lisk with p-next_task and p-prev_task so getProcInfo works? Thanks!
0
5,295,765
03/14/2011 07:12:52
769,225
02/07/2011 06:24:12
13
0
toast issue in android
i am new developer in android, i have displayed simple toast when i clicked on a button.my is issue is when i clicked on button multiple times that toast message displaying till get the main screen.i would like to stop the toast when i got main screen and kill the toast message in corresponding activity.i have attached screen shot i have written code as following Toast.makeText(Main![enter image description here][1].this,"u have clicked on button",Toast.LENGTH_SHORT).show(); please any one can resolve it? [1]: http://i.stack.imgur.com/Aumr5.png
android
issues
toast
null
null
null
open
toast issue in android === i am new developer in android, i have displayed simple toast when i clicked on a button.my is issue is when i clicked on button multiple times that toast message displaying till get the main screen.i would like to stop the toast when i got main screen and kill the toast message in corresponding activity.i have attached screen shot i have written code as following Toast.makeText(Main![enter image description here][1].this,"u have clicked on button",Toast.LENGTH_SHORT).show(); please any one can resolve it? [1]: http://i.stack.imgur.com/Aumr5.png
0
6,202,454
06/01/2011 14:03:28
746,694
05/10/2011 11:01:21
16
1
Operation now in progress error on connect( function) error
Hi everyone i searched all web, but i didnt find properly a solution about my problem. The Problem is that: I want to set timeout value of function connect but i get this error : "Operation now in progress" my code; if ((he = gethostbyname(authdefhost)) == NULL) { snprintf(errbuf, CERRBUFSIZ - 1, "cannot resolve %s: %s\n", authdefhost, hstrerror(h_errno)); return -1; } sin.sin_family = AF_INET; memcpy(&sin.sin_addr, he->h_addr_list[0], sizeof(struct in_addr)); if ((sd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { snprintf(errbuf, CERRBUFSIZ - 1, "cannot create client socket: %s\n", strerror(errno)); return -1; } if ((fcntl(sd, F_SETFL, O_NONBLOCK) < 0)) printf("error on setting socket flags."); if (connect(sd, (void *) & sin, sizeof(sin)) == -1) { snprintf(errbuf, CERRBUFSIZ - 1, "cannot connect to server %s: %s\n", authdefhost, strerror(errno)); close(sd); return -1; } FD_ZERO(&fdset); FD_SET(sd, &fdset); int rv; if ((rv = select(sd + 1, NULL, &fdset, NULL, &tv)) == -1) { printf("error occurred on select function."); return -1; } else if (rv == 0) { printf("time out occurred."); return -1; } else { printf("connection established"); return sd; }
c
sockets
network-programming
null
null
null
open
Operation now in progress error on connect( function) error === Hi everyone i searched all web, but i didnt find properly a solution about my problem. The Problem is that: I want to set timeout value of function connect but i get this error : "Operation now in progress" my code; if ((he = gethostbyname(authdefhost)) == NULL) { snprintf(errbuf, CERRBUFSIZ - 1, "cannot resolve %s: %s\n", authdefhost, hstrerror(h_errno)); return -1; } sin.sin_family = AF_INET; memcpy(&sin.sin_addr, he->h_addr_list[0], sizeof(struct in_addr)); if ((sd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { snprintf(errbuf, CERRBUFSIZ - 1, "cannot create client socket: %s\n", strerror(errno)); return -1; } if ((fcntl(sd, F_SETFL, O_NONBLOCK) < 0)) printf("error on setting socket flags."); if (connect(sd, (void *) & sin, sizeof(sin)) == -1) { snprintf(errbuf, CERRBUFSIZ - 1, "cannot connect to server %s: %s\n", authdefhost, strerror(errno)); close(sd); return -1; } FD_ZERO(&fdset); FD_SET(sd, &fdset); int rv; if ((rv = select(sd + 1, NULL, &fdset, NULL, &tv)) == -1) { printf("error occurred on select function."); return -1; } else if (rv == 0) { printf("time out occurred."); return -1; } else { printf("connection established"); return sd; }
0
9,873,802
03/26/2012 14:15:09
614,157
02/12/2011 11:20:20
3,869
240
What are the different frameworks for Graph processing and how do they rate?
For Graph processing I am aware of Giraph, Hama, GoldenORB. What are the other frameworks for Graph processing in Java and which is the most used and active framework?
java
frameworks
graph
null
null
03/27/2012 15:53:19
not constructive
What are the different frameworks for Graph processing and how do they rate? === For Graph processing I am aware of Giraph, Hama, GoldenORB. What are the other frameworks for Graph processing in Java and which is the most used and active framework?
4
7,617,496
10/01/2011 01:16:15
974,032
10/01/2011 01:05:01
1
0
RegEx to replace trailing underscore with number of a string
Hello fellow programmers, I have an ID that looks like this: **prefix_my-awesome-slug_123** Now I would like to have a regular expression, that removes the underscore and number on the end (**_%d**). Thank you in advance!
regex
integer
expression
underscore
null
null
open
RegEx to replace trailing underscore with number of a string === Hello fellow programmers, I have an ID that looks like this: **prefix_my-awesome-slug_123** Now I would like to have a regular expression, that removes the underscore and number on the end (**_%d**). Thank you in advance!
0
10,662,447
05/19/2012 05:01:20
1,404,670
05/19/2012 04:57:44
1
0
Saving Euro currency value in database
I want to store euro value as in format like 12.230,30 in database .If anyone have solution please help me thanks in advance
sql-server
null
null
null
null
05/22/2012 01:47:10
not a real question
Saving Euro currency value in database === I want to store euro value as in format like 12.230,30 in database .If anyone have solution please help me thanks in advance
1
3,683,920
09/10/2010 10:38:32
270,862
02/11/2010 06:14:59
6
1
Problems With Simple captcha.
I have a weird issue .I am using simple captcha in forms in my rails applications. If I am using one captcha in a web page I don't have any problem. But I have a scenario of using three(3) forms in one page in which all the three forms will have the captcha . So that when I refresh the page the captcha data of the three forms are equal. When we come to database , once the page get loaded the captcha value for one particular id will be created, Without using the captcha if we refresh the page the record is getting updated instead of creating another record, And more over if I open the web page in two tabs and if I submit the form in the first page. It throws an exception which says “ Invalid Captcha” Can anyone please let me know how to handle multiple captcha's in single page. I am using simple_captcha plugin. Thanks in-advance
ruby-on-rails
ruby
ruby-on-rails-plugins
null
null
null
open
Problems With Simple captcha. === I have a weird issue .I am using simple captcha in forms in my rails applications. If I am using one captcha in a web page I don't have any problem. But I have a scenario of using three(3) forms in one page in which all the three forms will have the captcha . So that when I refresh the page the captcha data of the three forms are equal. When we come to database , once the page get loaded the captcha value for one particular id will be created, Without using the captcha if we refresh the page the record is getting updated instead of creating another record, And more over if I open the web page in two tabs and if I submit the form in the first page. It throws an exception which says “ Invalid Captcha” Can anyone please let me know how to handle multiple captcha's in single page. I am using simple_captcha plugin. Thanks in-advance
0
9,449,173
02/25/2012 23:45:02
657,714
03/13/2011 17:26:29
109
4
How can I strip Windows drive lettering out of my reformed path? Delphi or Pascal
Further to [this answered question][1] I have another sticky problem. My coding is Free Pascal but Delphi solutions will work probably. In brief, I have a string value of concatenated paths that is formed by taking a source directory and recreating that tree in a destination directory. e.g. C:\SourceDir\SubDirA becomes F:\DestionationDir\SourceDir\SubDirA. However, the solution I have for the Linux version of my program (as posted in the link above) doesn't quite work with Windows version because I end up with : F:\DestionationDir\C:SourceDir\SubDirA. which is invalid. So I came up with this "only run in Windows" code to remove the central drive letterof the reformed path, but leave the initial one at the start by saying "Look at the string starting from the 4th character in from the left. If you find 'C:', delete it" so that the path becomes F:\DestionationDir\SourceDir\SubDirA. {$IFDEF Windows} // Only do this for the Windows version k := posex('C:', FinalisedDestDir, 4); // Find 'C:' in the middle of the concatanated path and return its position as k Delete(FinalisedDestDir, k, 2); // Delete the 2 chars 'C:' of 'C:\' if found, leaving the '\' to keep the path valid {$ENDIF} Now, that works fine IF the C: is the source of the chosen directory. But obviously if the user is copying data from another drive (such as E:, F:, G: or whatever else drive up to Z:) it will not work. So my question is, how do I code it so that it says "if any drive letter a: to z: is found after the 4th character from the left, delete it"? Whilst any solution that works "will do", ideally I need a fast solution. The best solution would be to not have it in there in the first place, but given the solution I posted in reply to my earlier post, I can't work out how not to have it in, due to the procedure I use to form it. Thank you. [1]: http://stackoverflow.com/questions/9278513/lazarus-free-pascal-how-to-recursively-copy-a-source-directory-of-files-to-a/9397718#9397718
delphi
delete
freepascal
ifdef
null
null
open
How can I strip Windows drive lettering out of my reformed path? Delphi or Pascal === Further to [this answered question][1] I have another sticky problem. My coding is Free Pascal but Delphi solutions will work probably. In brief, I have a string value of concatenated paths that is formed by taking a source directory and recreating that tree in a destination directory. e.g. C:\SourceDir\SubDirA becomes F:\DestionationDir\SourceDir\SubDirA. However, the solution I have for the Linux version of my program (as posted in the link above) doesn't quite work with Windows version because I end up with : F:\DestionationDir\C:SourceDir\SubDirA. which is invalid. So I came up with this "only run in Windows" code to remove the central drive letterof the reformed path, but leave the initial one at the start by saying "Look at the string starting from the 4th character in from the left. If you find 'C:', delete it" so that the path becomes F:\DestionationDir\SourceDir\SubDirA. {$IFDEF Windows} // Only do this for the Windows version k := posex('C:', FinalisedDestDir, 4); // Find 'C:' in the middle of the concatanated path and return its position as k Delete(FinalisedDestDir, k, 2); // Delete the 2 chars 'C:' of 'C:\' if found, leaving the '\' to keep the path valid {$ENDIF} Now, that works fine IF the C: is the source of the chosen directory. But obviously if the user is copying data from another drive (such as E:, F:, G: or whatever else drive up to Z:) it will not work. So my question is, how do I code it so that it says "if any drive letter a: to z: is found after the 4th character from the left, delete it"? Whilst any solution that works "will do", ideally I need a fast solution. The best solution would be to not have it in there in the first place, but given the solution I posted in reply to my earlier post, I can't work out how not to have it in, due to the procedure I use to form it. Thank you. [1]: http://stackoverflow.com/questions/9278513/lazarus-free-pascal-how-to-recursively-copy-a-source-directory-of-files-to-a/9397718#9397718
0
10,261,268
04/21/2012 17:20:39
1,218,495
02/18/2012 21:46:15
44
0
How to make an iOS calculator, by just using a UITextField
I am looking to create an iOS calculator, just by using a UITextField. So for example; somebody may type in '6 - 3 x 2' in the UITextField then hit "Done" or "Go" etc. This would then calculate the answer and display it in a UIAlertView. So firstly I believe that the UITextField text has to be split up into different sections so '6' '-' '3' '*' '2' would be the separated strings from the UITextField text input. How would I go about separating the text like mentioned above? How can I then use this information to calculate the answer and to display it?
iphone
objective-c
ios
xcode
uitextfield
null
open
How to make an iOS calculator, by just using a UITextField === I am looking to create an iOS calculator, just by using a UITextField. So for example; somebody may type in '6 - 3 x 2' in the UITextField then hit "Done" or "Go" etc. This would then calculate the answer and display it in a UIAlertView. So firstly I believe that the UITextField text has to be split up into different sections so '6' '-' '3' '*' '2' would be the separated strings from the UITextField text input. How would I go about separating the text like mentioned above? How can I then use this information to calculate the answer and to display it?
0
8,814,552
01/11/2012 05:22:09
711,853
04/17/2011 05:47:33
20
0
Magento -adding bundle product with query string with Quantity on each bundle_option
I was wondering would anyone care to share or point me to the right direction on how I can add a bundle product in Magento with query string, where each bundle_option has its own quantity. If we actually it this way, each of the bundle option will have a default quantity of 1 http://magento.com/checkout/cart/add/product/6/?bundle_option[1][]=1&bundle_option[2][]=3&bundle_option[2][]=4 For example, I would like to add a bundle product, whereby I want 3 of the same bundle options so it appears Bundle One 4 x bundle_option[15] 2 x bundle_option[21]
magento
magento-1.5
null
null
null
02/02/2012 14:03:52
off topic
Magento -adding bundle product with query string with Quantity on each bundle_option === I was wondering would anyone care to share or point me to the right direction on how I can add a bundle product in Magento with query string, where each bundle_option has its own quantity. If we actually it this way, each of the bundle option will have a default quantity of 1 http://magento.com/checkout/cart/add/product/6/?bundle_option[1][]=1&bundle_option[2][]=3&bundle_option[2][]=4 For example, I would like to add a bundle product, whereby I want 3 of the same bundle options so it appears Bundle One 4 x bundle_option[15] 2 x bundle_option[21]
2
178,633
10/07/2008 14:12:51
24,071
10/01/2008 10:12:10
61
4
Minimum rights required to run a windows service as a domain account
Does anyone know what would be the minimum rights I would need to grant to a domain user account in order to run a windows service as that user? For simplicity, assume that the service does nothing over and above starting, stopping, and writing to the "Application" event log - i.e. no network access, no custom event logs etc. I know I could use the built in Service and NetworkService accounts, but its possible that I may not be able to use these due to network policies in place. Thanks, Paul
rights
permissions
windows-services
null
null
03/03/2012 01:56:53
off topic
Minimum rights required to run a windows service as a domain account === Does anyone know what would be the minimum rights I would need to grant to a domain user account in order to run a windows service as that user? For simplicity, assume that the service does nothing over and above starting, stopping, and writing to the "Application" event log - i.e. no network access, no custom event logs etc. I know I could use the built in Service and NetworkService accounts, but its possible that I may not be able to use these due to network policies in place. Thanks, Paul
2
7,926,955
10/28/2011 08:40:16
1,017,974
10/28/2011 08:16:53
1
0
WCF SAML 1.1 Client Issue
here is the scenario: 1) WCF client calls STS requesting a SAML token via a RST/Issue request 2) STS responds with RSTRC/IssueFinal placing the SAML token into the response header 3) WCF client picks up the SAML token an makes call to business web service STS and web service are hosted in a Java-based environment. 1) and 2) work fine, that is, I can see the STS responding in the expected manner with SOAP header and body correctly set. Now, the problem is that after receiving the response from the STS the WCF client sends a request for a security context token to the business web service which of course fails and I don't know how and why. This is my app.config for client: <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.serviceModel> <bindings> <wsFederationHttpBinding> <binding name="RegistryServiceBinding"> <security mode="TransportWithMessageCredential"> <message issuedTokenType="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#samlv1.1" negotiateServiceCredential="False" establishSecurityContext="false"> <issuer address="https://my-sts-ip/idp-ws/services/BasicSAMLIssuer" binding="customBinding" bindingConfiguration="STSBinding" /> </message> </security> </binding> </wsFederationHttpBinding> <customBinding> <binding name="STSBinding"> <security allowInsecureTransport="False" authenticationMode="UserNameOverTransport" requireSignatureConfirmation="false" messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10"> </security> <textMessageEncoding messageVersion="Soap12WSAddressing10" /> <httpsTransport /> </binding> </customBinding> </bindings> <client> <endpoint address="https://my-ws-ip/soap/RegistryStoredQuery" binding="wsFederationHttpBinding" bindingConfiguration="RegistryServiceBinding" contract="IXDSRegistry" name="RegistrySTS" /> </client> </system.serviceModel> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client" /> </startup> </configuration> And this is what the WCF client sends after getting the SAML token from the STS (abbreviated): <?xml version="1.0" encoding="UTF-8"?> <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <s:Header> <a:Action s:mustUnderstand="1">http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT</a:Action> <a:MessageID>urn:uuid:fecde50b-a3bd-40f1-ae5b-662a3aa9bf80</a:MessageID> <ActivityId CorrelationId="cec77c8d-1d09-4e34-9c5a-dbf5bb219ba8" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">bfce2552-393d-43d0-8722-0c16ae22bba4</ActivityId> <a:ReplyTo> <a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address> </a:ReplyTo> <a:To s:mustUnderstand="1">https://10.11.71.151/soap/RegistryStoredQuery</a:To> <o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <u:Timestamp u:Id="_0"> <u:Created>2011-10-28T07:27:50.097Z</u:Created> <u:Expires>2011-10-28T07:32:50.097Z</u:Expires> </u:Timestamp> <Assertion> .... </Assertion> <Signature xmlns="http://www.w3.org/2000/09/xmldsig#"> ... </Signature> </o:Security> </s:Header> <s:Body> <t:RequestSecurityToken xmlns:t="http://schemas.xmlsoap.org/ws/2005/02/trust"> <t:TokenType>http://schemas.xmlsoap.org/ws/2005/02/sc/sct</t:TokenType> <t:RequestType>http://schemas.xmlsoap.org/ws/2005/02/trust/Issue</t:RequestType> <t:Entropy> <t:BinarySecret u:Id="uuid-d1ed3eb6-d7f6-4d2b-ab7e-a6c60d899bad-3" Type="http://schemas.xmlsoap.org/ws/2005/02/trust/Nonce">iRqJf4/sY1yiu7Vh1eTGeAWJi7o0gxnhS6A2YvJQ6kI=</t:BinarySecret> </t:Entropy> <t:KeySize>256</t:KeySize> </t:RequestSecurityToken> </s:Body> </s:Envelope> Any ideas what could trigger this behaviour? Best Regards.
wcf
client
token
saml
null
null
open
WCF SAML 1.1 Client Issue === here is the scenario: 1) WCF client calls STS requesting a SAML token via a RST/Issue request 2) STS responds with RSTRC/IssueFinal placing the SAML token into the response header 3) WCF client picks up the SAML token an makes call to business web service STS and web service are hosted in a Java-based environment. 1) and 2) work fine, that is, I can see the STS responding in the expected manner with SOAP header and body correctly set. Now, the problem is that after receiving the response from the STS the WCF client sends a request for a security context token to the business web service which of course fails and I don't know how and why. This is my app.config for client: <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.serviceModel> <bindings> <wsFederationHttpBinding> <binding name="RegistryServiceBinding"> <security mode="TransportWithMessageCredential"> <message issuedTokenType="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#samlv1.1" negotiateServiceCredential="False" establishSecurityContext="false"> <issuer address="https://my-sts-ip/idp-ws/services/BasicSAMLIssuer" binding="customBinding" bindingConfiguration="STSBinding" /> </message> </security> </binding> </wsFederationHttpBinding> <customBinding> <binding name="STSBinding"> <security allowInsecureTransport="False" authenticationMode="UserNameOverTransport" requireSignatureConfirmation="false" messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10"> </security> <textMessageEncoding messageVersion="Soap12WSAddressing10" /> <httpsTransport /> </binding> </customBinding> </bindings> <client> <endpoint address="https://my-ws-ip/soap/RegistryStoredQuery" binding="wsFederationHttpBinding" bindingConfiguration="RegistryServiceBinding" contract="IXDSRegistry" name="RegistrySTS" /> </client> </system.serviceModel> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client" /> </startup> </configuration> And this is what the WCF client sends after getting the SAML token from the STS (abbreviated): <?xml version="1.0" encoding="UTF-8"?> <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <s:Header> <a:Action s:mustUnderstand="1">http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT</a:Action> <a:MessageID>urn:uuid:fecde50b-a3bd-40f1-ae5b-662a3aa9bf80</a:MessageID> <ActivityId CorrelationId="cec77c8d-1d09-4e34-9c5a-dbf5bb219ba8" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">bfce2552-393d-43d0-8722-0c16ae22bba4</ActivityId> <a:ReplyTo> <a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address> </a:ReplyTo> <a:To s:mustUnderstand="1">https://10.11.71.151/soap/RegistryStoredQuery</a:To> <o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <u:Timestamp u:Id="_0"> <u:Created>2011-10-28T07:27:50.097Z</u:Created> <u:Expires>2011-10-28T07:32:50.097Z</u:Expires> </u:Timestamp> <Assertion> .... </Assertion> <Signature xmlns="http://www.w3.org/2000/09/xmldsig#"> ... </Signature> </o:Security> </s:Header> <s:Body> <t:RequestSecurityToken xmlns:t="http://schemas.xmlsoap.org/ws/2005/02/trust"> <t:TokenType>http://schemas.xmlsoap.org/ws/2005/02/sc/sct</t:TokenType> <t:RequestType>http://schemas.xmlsoap.org/ws/2005/02/trust/Issue</t:RequestType> <t:Entropy> <t:BinarySecret u:Id="uuid-d1ed3eb6-d7f6-4d2b-ab7e-a6c60d899bad-3" Type="http://schemas.xmlsoap.org/ws/2005/02/trust/Nonce">iRqJf4/sY1yiu7Vh1eTGeAWJi7o0gxnhS6A2YvJQ6kI=</t:BinarySecret> </t:Entropy> <t:KeySize>256</t:KeySize> </t:RequestSecurityToken> </s:Body> </s:Envelope> Any ideas what could trigger this behaviour? Best Regards.
0
6,678,159
07/13/2011 11:30:10
842,581
07/13/2011 11:30:10
1
0
Dymanmic creation of screens based on data configured in DB tables
In my application user can configure the Number of tabs(left menu) that he want to see. User can created fields & he can associate each filed to a tab & the index(position which states is it a first field in the tab or second etc) of the field in that tab. I am saving tab details in one table & field details in another table. When user logs in he ahs to get the no of tabs & in each tab number of fields & then display the tabs. And when a particular Tab ois clicked, the fields associated with that tab should be shown on the screen. On the bottom of screen there should be a Save button. On click of this button data eneterde in each field should be saved. Please help me how to create the dynamic screen
dynamic
null
null
null
null
null
open
Dymanmic creation of screens based on data configured in DB tables === In my application user can configure the Number of tabs(left menu) that he want to see. User can created fields & he can associate each filed to a tab & the index(position which states is it a first field in the tab or second etc) of the field in that tab. I am saving tab details in one table & field details in another table. When user logs in he ahs to get the no of tabs & in each tab number of fields & then display the tabs. And when a particular Tab ois clicked, the fields associated with that tab should be shown on the screen. On the bottom of screen there should be a Save button. On click of this button data eneterde in each field should be saved. Please help me how to create the dynamic screen
0
4,089,114
11/03/2010 16:13:44
117,700
06/04/2009 23:04:34
2,416
15
c#: how to programmatically highlight/delete rows from datagridview
i have the results of a query being dumped into a datagridview. it looks like this: QC3 498.46 QC4 1,251.63 QC1 862.62 QC2 1,432.21 i need two things 1. to be able able to programmatically delete all the rows of datagrid where the second field = `862.62` (or just delete the third row) 2. i need to programmtically HIGHLIGHT and scroll down to the row to show the user where the first field is `QC4` and the second one is `1,251.63`
c#
.net
datagrid
null
null
null
open
c#: how to programmatically highlight/delete rows from datagridview === i have the results of a query being dumped into a datagridview. it looks like this: QC3 498.46 QC4 1,251.63 QC1 862.62 QC2 1,432.21 i need two things 1. to be able able to programmatically delete all the rows of datagrid where the second field = `862.62` (or just delete the third row) 2. i need to programmtically HIGHLIGHT and scroll down to the row to show the user where the first field is `QC4` and the second one is `1,251.63`
0
3,733,586
09/17/2010 08:01:02
377,031
06/26/2010 16:51:13
830
1
How do I avoid printing to STDOUT when using `Perl's IPC::System::Simple:runx`?
I'm using [`IPC::System::Simple:runx`][1] to execute system commands and die on unexpected return values. The problem is that the commands output is printed to the shell. 1. How can I avoid printing this output? 2. How can I avoid printing this output but getting it into a perl variable? [1]: http://search.cpan.org/~pjf/IPC-System-Simple-1.21/lib/IPC/System/Simple.pm
perl
system
stdout
run
null
null
open
How do I avoid printing to STDOUT when using `Perl's IPC::System::Simple:runx`? === I'm using [`IPC::System::Simple:runx`][1] to execute system commands and die on unexpected return values. The problem is that the commands output is printed to the shell. 1. How can I avoid printing this output? 2. How can I avoid printing this output but getting it into a perl variable? [1]: http://search.cpan.org/~pjf/IPC-System-Simple-1.21/lib/IPC/System/Simple.pm
0
8,553,556
12/18/2011 17:50:12
1,104,738
12/18/2011 17:33:34
1
0
I have a html form loading in a nested .net masterpage. I need to prevent the elements from clearing after failed validation
The Validation works perfectly, but if the validation fails the form clears all data. How can I validate the form without causing the user to have to re-enter all the data again? Due to the nature of the redirect, I need the html form to render exactly as it does now. HTML` <div class="formWrapper"> <div class="formHalf"> <label for="first_name"> First Name*</label> <input id="first_name" maxlength="40" name="first_name" size="20" type="text" class="text" /> </div> <div class="formHalf"> <label for="last_name"> Last Name*</label> <input id="last_name" maxlength="80" name="last_name" size="20" type="text" class="text" /> </div> <div class="formWhole"> <label for="company"> Company</label> <input id="company" maxlength="40" name="company" size="20" type="text" class="text" /> </div> <div class="formWhole"> <label for="address"> Address</label> <input id="address" maxlength="80" name="address" size="20" type="text" class="text" /> </div> <div class="formHalf"> <label for="city"> City</label> <input id="city" maxlength="40" name="city" size="20" type="text" class="text" /> </div> <div class="formHalf"> <label for="state"> State/Province</label><input id="state" maxlength="20" name="state" size="20" type="text" class="text" /> </div> <div class="formHalf"> <label for="zip"> Zip</label><input id="zip" maxlength="20" name="zip" size="20" type="text" class="text" /> </div> <div class="formHalf"> <label for="country"> Country</label><input id="country" maxlength="40" name="country" size="20" type="text" class="text" /> </div> <div class="formHalf"> <label for="email"> Email*</label><input id="email" maxlength="80" name="email" size="20" type="text" class="text" /> </div> <div class="formHalf"> <label for="phone"> Phone*</label><input id="phone" maxlength="40" name="phone" size="20" type="text" class="text" /> </div> <div class="formWhole"> <label for="description"> Description</label><textarea name="description"></textarea> </div> <div class="formWhole"> <input type="submit" name="formSubmit" id="formSubmit"> </div> </div>` SCRIPT` <script type="text/javascript" language="javascript"> $(document).ready(function () { $("#formSubmit").click(function () { for (i = 0; i < 1; i++) { var isValid = validateForm(); if (isValid) { } $("form").attr("action", "https://www.other web site that redirects back to my page after logging form"); } }); }); function validateForm() { var message = "";var message2=""; var elements = new Array("first_name", "last_name", "phone", "email"); var userElement = new Array(" First Name", "Last Name", "Phone Number", "E-Mail Address"); for (i = 0; i < elements.length; i++) { var x = document.getElementById(elements[i]).value; if (x == null || x == "") { if (message != "") message += ", "; message += userElement[i]; } if (i == 3 && x != null && x != "") { var atpos = x.indexOf("@"); var dotpos = x.lastIndexOf("."); if (atpos < 1 || dotpos < atpos + 2 || dotpos + 2 >= x.length) { message2 += "The email address is not valid."; } } if (i == 2 && x != null && x != "") { var checknumber = x.replace(/[^0-9]/g, ''); if (checknumber.length != 10 && checknumber.length != 11) { message2 += "The phone number is needs to be in format 123-456-7890 or 1-234-567-8901."; } } // email and phone validation } if (message != "" || message2 != "") { if (message != "") { message += " must be filled out."; } message += message2; alert(message); return false; } return true; } </script>`
javascript
jquery
validation
html-form
persist
null
open
I have a html form loading in a nested .net masterpage. I need to prevent the elements from clearing after failed validation === The Validation works perfectly, but if the validation fails the form clears all data. How can I validate the form without causing the user to have to re-enter all the data again? Due to the nature of the redirect, I need the html form to render exactly as it does now. HTML` <div class="formWrapper"> <div class="formHalf"> <label for="first_name"> First Name*</label> <input id="first_name" maxlength="40" name="first_name" size="20" type="text" class="text" /> </div> <div class="formHalf"> <label for="last_name"> Last Name*</label> <input id="last_name" maxlength="80" name="last_name" size="20" type="text" class="text" /> </div> <div class="formWhole"> <label for="company"> Company</label> <input id="company" maxlength="40" name="company" size="20" type="text" class="text" /> </div> <div class="formWhole"> <label for="address"> Address</label> <input id="address" maxlength="80" name="address" size="20" type="text" class="text" /> </div> <div class="formHalf"> <label for="city"> City</label> <input id="city" maxlength="40" name="city" size="20" type="text" class="text" /> </div> <div class="formHalf"> <label for="state"> State/Province</label><input id="state" maxlength="20" name="state" size="20" type="text" class="text" /> </div> <div class="formHalf"> <label for="zip"> Zip</label><input id="zip" maxlength="20" name="zip" size="20" type="text" class="text" /> </div> <div class="formHalf"> <label for="country"> Country</label><input id="country" maxlength="40" name="country" size="20" type="text" class="text" /> </div> <div class="formHalf"> <label for="email"> Email*</label><input id="email" maxlength="80" name="email" size="20" type="text" class="text" /> </div> <div class="formHalf"> <label for="phone"> Phone*</label><input id="phone" maxlength="40" name="phone" size="20" type="text" class="text" /> </div> <div class="formWhole"> <label for="description"> Description</label><textarea name="description"></textarea> </div> <div class="formWhole"> <input type="submit" name="formSubmit" id="formSubmit"> </div> </div>` SCRIPT` <script type="text/javascript" language="javascript"> $(document).ready(function () { $("#formSubmit").click(function () { for (i = 0; i < 1; i++) { var isValid = validateForm(); if (isValid) { } $("form").attr("action", "https://www.other web site that redirects back to my page after logging form"); } }); }); function validateForm() { var message = "";var message2=""; var elements = new Array("first_name", "last_name", "phone", "email"); var userElement = new Array(" First Name", "Last Name", "Phone Number", "E-Mail Address"); for (i = 0; i < elements.length; i++) { var x = document.getElementById(elements[i]).value; if (x == null || x == "") { if (message != "") message += ", "; message += userElement[i]; } if (i == 3 && x != null && x != "") { var atpos = x.indexOf("@"); var dotpos = x.lastIndexOf("."); if (atpos < 1 || dotpos < atpos + 2 || dotpos + 2 >= x.length) { message2 += "The email address is not valid."; } } if (i == 2 && x != null && x != "") { var checknumber = x.replace(/[^0-9]/g, ''); if (checknumber.length != 10 && checknumber.length != 11) { message2 += "The phone number is needs to be in format 123-456-7890 or 1-234-567-8901."; } } // email and phone validation } if (message != "" || message2 != "") { if (message != "") { message += " must be filled out."; } message += message2; alert(message); return false; } return true; } </script>`
0
1,072,884
07/02/2009 06:57:44
119,775
06/09/2009 12:01:59
38
0
What's the best MATLAB equivalent? (open source or otherwise free)
What is the best open-source (or otherwise free) MATLAB equivalent, in your opinion, and why? Something with many built-in functions relevant to engineering and science, and a variety of good graphing capabilities. Syntax close to MATLAB's is a bonus. I've invested some time getting into SciLab, but in retrospect I'm not too enthralled. I find that the built-in functions are written in a somewhat clunky way, and that the documentation is rather cryptic (i.e. more so than your average software documentation). P.S. I'm aware of [this page][1]. I'm looking for positive or critical comments regarding this range of options. [1]: http://en.wikipedia.org/wiki/Comparison_of_numerical_analysis_software
matlab
null
null
null
null
01/26/2012 12:04:29
not constructive
What's the best MATLAB equivalent? (open source or otherwise free) === What is the best open-source (or otherwise free) MATLAB equivalent, in your opinion, and why? Something with many built-in functions relevant to engineering and science, and a variety of good graphing capabilities. Syntax close to MATLAB's is a bonus. I've invested some time getting into SciLab, but in retrospect I'm not too enthralled. I find that the built-in functions are written in a somewhat clunky way, and that the documentation is rather cryptic (i.e. more so than your average software documentation). P.S. I'm aware of [this page][1]. I'm looking for positive or critical comments regarding this range of options. [1]: http://en.wikipedia.org/wiki/Comparison_of_numerical_analysis_software
4
7,086,568
08/17/2011 00:01:19
753,140
05/13/2011 22:59:36
14
0
Database inside an App
I know almost nothing about databases, but I know I need one inside my app. I know there are ways to do this with an online database, but that's not gonna work for me, because the internet service in Mexico is too slow. Can anyone guide me in some direction to start to do this? I understand the basics of databases, but I have never used them. Thank you!!
database
xcode
ios4
application
null
08/17/2011 02:29:13
not a real question
Database inside an App === I know almost nothing about databases, but I know I need one inside my app. I know there are ways to do this with an online database, but that's not gonna work for me, because the internet service in Mexico is too slow. Can anyone guide me in some direction to start to do this? I understand the basics of databases, but I have never used them. Thank you!!
1
11,384,352
07/08/2012 15:35:52
971,933
09/29/2011 20:24:01
188
0
network receiver is not working
I try to implement the network receiver, here is my following code: package com.example.androidtablayout; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.util.Log; public class NetworkReceiver extends BroadcastReceiver { // <1> public static final String TAG = "NetworkReceiver"; boolean isConnected = true; Context c; @Override public void onReceive(Context context, Intent intent) { boolean isNetworkDown = intent.getBooleanExtra( ConnectivityManager.EXTRA_NO_CONNECTIVITY, false); // <2> if (isNetworkDown) { Log.d(TAG, "onReceive: NOT connected, stopping UpdaterService"); // context.stopService(new Intent(context, UpdaterService.class)); // <3> } else { Log.d(TAG, "onReceive: connected, starting UpdaterService"); // context.startService(new Intent(context, UpdaterService.class)); // <4> } } } In the Manifest.xml <application> <receiver android:name=".NetworkReceiver"> <intent-filter> <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> </intent-filter> </receiver> </application> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> My problem is when I switch off the wifi, the log still shows that "Connected", I think the the network receiver didn't receiver the intenet connectivity correctly.Any help will be greatly appreciated.
android
null
null
null
null
null
open
network receiver is not working === I try to implement the network receiver, here is my following code: package com.example.androidtablayout; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.util.Log; public class NetworkReceiver extends BroadcastReceiver { // <1> public static final String TAG = "NetworkReceiver"; boolean isConnected = true; Context c; @Override public void onReceive(Context context, Intent intent) { boolean isNetworkDown = intent.getBooleanExtra( ConnectivityManager.EXTRA_NO_CONNECTIVITY, false); // <2> if (isNetworkDown) { Log.d(TAG, "onReceive: NOT connected, stopping UpdaterService"); // context.stopService(new Intent(context, UpdaterService.class)); // <3> } else { Log.d(TAG, "onReceive: connected, starting UpdaterService"); // context.startService(new Intent(context, UpdaterService.class)); // <4> } } } In the Manifest.xml <application> <receiver android:name=".NetworkReceiver"> <intent-filter> <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> </intent-filter> </receiver> </application> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> My problem is when I switch off the wifi, the log still shows that "Connected", I think the the network receiver didn't receiver the intenet connectivity correctly.Any help will be greatly appreciated.
0
5,417,033
03/24/2011 09:24:04
659,960
03/15/2011 04:51:41
6
0
i create the simple gui using qtcreator
Hai i am using qt creator ,i want to create the two buttons and image,when i click the button the images wiil zoom in and zoom out , so help me how to i create the functions and how to animated the images?
gui
null
null
null
null
null
open
i create the simple gui using qtcreator === Hai i am using qt creator ,i want to create the two buttons and image,when i click the button the images wiil zoom in and zoom out , so help me how to i create the functions and how to animated the images?
0
10,446,777
05/04/2012 10:08:48
295,852
03/17/2010 16:52:12
165
10
iOS view 'folding' animation
I've seen [this nice effect][1] and I would like to use something similar in an app that I'm designing at the moment. I'm assuming that this isn't one of the 'standard' transitions. Does anyone know how something like that could be achieved? I'm not really after a detailed code sample, more of a high level overview/nudge in the right direction. [1]: http://vimeo.com/41495357
iphone
objective-c
ios
ipad
null
07/21/2012 21:38:52
not a real question
iOS view 'folding' animation === I've seen [this nice effect][1] and I would like to use something similar in an app that I'm designing at the moment. I'm assuming that this isn't one of the 'standard' transitions. Does anyone know how something like that could be achieved? I'm not really after a detailed code sample, more of a high level overview/nudge in the right direction. [1]: http://vimeo.com/41495357
1
8,336,866
12/01/2011 05:20:43
1,016,228
10/27/2011 09:48:38
17
7
asp.net MVC2 support ajax autocomplete(which is used in webforms)?
If not ? then suggest me the alternate with a link if possible?<br/>JQuery will be fine??Thanks In advance
jquery
asp.net
asp.net-mvc
asp.net-mvc-3
jquery-ajax
12/01/2011 18:39:16
not a real question
asp.net MVC2 support ajax autocomplete(which is used in webforms)? === If not ? then suggest me the alternate with a link if possible?<br/>JQuery will be fine??Thanks In advance
1
11,581,815
07/20/2012 14:56:16
1,262,449
03/11/2012 15:27:11
4
0
Display text depending on the size of the screen
Good afternoon, and I apologize for my English. I am making a website and I doubt arises, could show a certain amount of text depending on the size of the screen or device that is connected? For example, I have this text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse imperdiet venenatis nulla, sed viverra arcu eget ornare. Morbi commodo, ullamcorper nec neque egestas, est est iaculis massa, massa metus et semper at purus. Etiam nisl sed sapien in dapibus aliquet. Etiam auctor dui quis. Nam et nisi viverra scelerisque freed. In hac habitasse dictumst audience. Donec egestas pain at varius sagittis urn. Enim etiam urn consequat et eget sollicitudin, sagittis in ligula. Maecenas euismod, enim a dictum iaculis, enim vestibu turpis sapien, non convallis my vitae risus libero. Nullam in egestas dui. Etiam in wk erat, sit amet arcu ultricies. Maecenas quis turpis release, id condimentum neque. Aenean release enim, tempus vitae lobortis sit amet, vulputate id augue. Lorem ipsum dolor sit amet, consectetur adipiscing elit. " If the user connects from a tablet, this text poduciría a scroll, for I would be interested in this text are paginated, 3 pages page 1 showing in each paragraph, for example. What I want is to have a very long text stored in a database, a json, xml or whatever, and by device, and the size of the screen, showing leaves paged, and that there is no scroll. ¿Someone could help me? Thank you!
html5
scroll
device
responsive-design
fit
null
open
Display text depending on the size of the screen === Good afternoon, and I apologize for my English. I am making a website and I doubt arises, could show a certain amount of text depending on the size of the screen or device that is connected? For example, I have this text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse imperdiet venenatis nulla, sed viverra arcu eget ornare. Morbi commodo, ullamcorper nec neque egestas, est est iaculis massa, massa metus et semper at purus. Etiam nisl sed sapien in dapibus aliquet. Etiam auctor dui quis. Nam et nisi viverra scelerisque freed. In hac habitasse dictumst audience. Donec egestas pain at varius sagittis urn. Enim etiam urn consequat et eget sollicitudin, sagittis in ligula. Maecenas euismod, enim a dictum iaculis, enim vestibu turpis sapien, non convallis my vitae risus libero. Nullam in egestas dui. Etiam in wk erat, sit amet arcu ultricies. Maecenas quis turpis release, id condimentum neque. Aenean release enim, tempus vitae lobortis sit amet, vulputate id augue. Lorem ipsum dolor sit amet, consectetur adipiscing elit. " If the user connects from a tablet, this text poduciría a scroll, for I would be interested in this text are paginated, 3 pages page 1 showing in each paragraph, for example. What I want is to have a very long text stored in a database, a json, xml or whatever, and by device, and the size of the screen, showing leaves paged, and that there is no scroll. ¿Someone could help me? Thank you!
0
5,648,537
04/13/2011 11:38:26
698,574
04/08/2011 11:45:47
35
1
how to tell a string is all in english in php or javascript?
how to tell a string is all in english of php. eg:$test="eeeeeeeeeeeee" how to tell that the `$test` string is writen all in english.
php
javascript
null
null
null
04/13/2011 11:44:43
not a real question
how to tell a string is all in english in php or javascript? === how to tell a string is all in english of php. eg:$test="eeeeeeeeeeeee" how to tell that the `$test` string is writen all in english.
1
10,302,777
04/24/2012 17:16:56
1,109,988
12/21/2011 13:56:07
31
4
Div positioning to low in an HTML table
I am facing a div positioning problem. Here is the fiddle to depict my problem : http://jsfiddle.net/YbJ2q/11/ How can I align the red div blocks in my table cell without using the css property "margin: -20px"? Thanks
html
css
html5
table
div
null
open
Div positioning to low in an HTML table === I am facing a div positioning problem. Here is the fiddle to depict my problem : http://jsfiddle.net/YbJ2q/11/ How can I align the red div blocks in my table cell without using the css property "margin: -20px"? Thanks
0
9,773,758
03/19/2012 16:15:22
318,174
04/16/2010 03:39:45
3,384
125
Single page Web App in Java framework or examples?
Has anyone seen an example or done the following in Java: http://duganchen.ca/single-page-web-app-architecture-done-right/ That is a design a single page web app that will work with Google SEO with out massive violation of DRY using Java technologies? It doesn't seem terrible hard to do this on my own but I was curious (and lazy) to see if someone had already done it with either Spring or JAX-RS.
java
javascript
backbone.js
mustache
null
null
open
Single page Web App in Java framework or examples? === Has anyone seen an example or done the following in Java: http://duganchen.ca/single-page-web-app-architecture-done-right/ That is a design a single page web app that will work with Google SEO with out massive violation of DRY using Java technologies? It doesn't seem terrible hard to do this on my own but I was curious (and lazy) to see if someone had already done it with either Spring or JAX-RS.
0