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
10,217,401
04/18/2012 20:26:00
1,307,126
04/02/2012 02:33:45
1
0
Bubble chart with X and Y labels of string type
I have a scenario where I need to display how many males, females and Unspecified are there from City1, City2, City3, etc. I am trying to use bubble chart for this. So I want to display this chart with y axis showing Male, Female and Unspecified as Y axis labels and City1, City2,City3 as X axis labels. The actual count being displayed as a square bubble on the chart. This is little urgent. I could not locate any similar sample on MS documentation too.
asp.net
charts
bubble
null
null
04/19/2012 11:43:30
not a real question
Bubble chart with X and Y labels of string type === I have a scenario where I need to display how many males, females and Unspecified are there from City1, City2, City3, etc. I am trying to use bubble chart for this. So I want to display this chart with y axis showing Male, Female and Unspecified as Y axis labels and City1, City2,City3 as X axis labels. The actual count being displayed as a square bubble on the chart. This is little urgent. I could not locate any similar sample on MS documentation too.
1
5,403,499
03/23/2011 10:01:39
134,713
07/08/2009 05:51:58
2,982
99
memory leaks-when do they happen?
I have a ram of 8GB and i have Hard disk of 80GB i have some three programs 1) main() { while(1) x(); } x() { printf("hello\n"); } will there be a memory leak here in the above program?i suppose not!in case if it does nt happen then what will happen?when will this stop? 2) main() { int *x; while(1) x=malloc(100*size(int));//there is a memory leak here } its obvious that this program will crash after some time but i want to know when looking at the resources i mentioned above. 3) main() { x(); } x() { x(); } this above program is infinite recursion?what will happen in the end when will this program crashes/dies considering the resouces i have?
c++
c
null
null
null
03/23/2011 10:13:45
not a real question
memory leaks-when do they happen? === I have a ram of 8GB and i have Hard disk of 80GB i have some three programs 1) main() { while(1) x(); } x() { printf("hello\n"); } will there be a memory leak here in the above program?i suppose not!in case if it does nt happen then what will happen?when will this stop? 2) main() { int *x; while(1) x=malloc(100*size(int));//there is a memory leak here } its obvious that this program will crash after some time but i want to know when looking at the resources i mentioned above. 3) main() { x(); } x() { x(); } this above program is infinite recursion?what will happen in the end when will this program crashes/dies considering the resouces i have?
1
11,376,156
07/07/2012 15:16:07
1,467,394
06/19/2012 19:28:38
14
0
Download page content PHP
I have tried a whole bunch of stuff to get the content of [www.findchips.com][1] And I just can't get this done. Any ideas for getting it? [1]: http://www.findchips.com
php
curl
file-get-contents
null
null
07/09/2012 01:45:49
not a real question
Download page content PHP === I have tried a whole bunch of stuff to get the content of [www.findchips.com][1] And I just can't get this done. Any ideas for getting it? [1]: http://www.findchips.com
1
9,670,467
03/12/2012 16:00:28
1,259,446
03/09/2012 13:57:13
3
0
Take info from one mysql table and insert it to another
I am trying to take data from one mysql table and insert it in to another so i can make some updates without using a live db table. The problem i am having is it is taking the data out of the first table but not inserting it in the second. Any help would be appreciated. error_reporting(E_ALL); ini_set("display_errors", 1); $host=""; $username=""; $password=""; $database=""; mysql_connect($host,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query = "SELECT * FROM livetrack where member_id ='000826'"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_array($result)){ $ipa = $row['ip_address']; $date = $row['date']; $referer = $row['referer']; $string = $row['string']; $member_id = $row['member_id']; echo "Insert Data....."; mysql_query("INSERT INTO livetrack11 (ip_address, date, referer, string, member_id) VALUES ('$ipa', '$date', '$referer', '$string', '$member_id'"); } Thanks
mysql
php5
null
null
null
null
open
Take info from one mysql table and insert it to another === I am trying to take data from one mysql table and insert it in to another so i can make some updates without using a live db table. The problem i am having is it is taking the data out of the first table but not inserting it in the second. Any help would be appreciated. error_reporting(E_ALL); ini_set("display_errors", 1); $host=""; $username=""; $password=""; $database=""; mysql_connect($host,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query = "SELECT * FROM livetrack where member_id ='000826'"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_array($result)){ $ipa = $row['ip_address']; $date = $row['date']; $referer = $row['referer']; $string = $row['string']; $member_id = $row['member_id']; echo "Insert Data....."; mysql_query("INSERT INTO livetrack11 (ip_address, date, referer, string, member_id) VALUES ('$ipa', '$date', '$referer', '$string', '$member_id'"); } Thanks
0
4,038,138
10/27/2010 22:12:28
282,307
02/26/2010 19:19:19
208
2
simple game development on linux
I'd like to develop simple 2d games on linux. Something like one below. The only decent tecnology I've found was PyGame. Is there any other worth taking a look? Is there a possibility to develop flash games on linux? Thanks in advance. ![alt text][1] [1]: http://i.stack.imgur.com/FI2ea.gif
linux
pygame
null
null
null
null
open
simple game development on linux === I'd like to develop simple 2d games on linux. Something like one below. The only decent tecnology I've found was PyGame. Is there any other worth taking a look? Is there a possibility to develop flash games on linux? Thanks in advance. ![alt text][1] [1]: http://i.stack.imgur.com/FI2ea.gif
0
6,552,949
07/01/2011 20:32:22
484,698
10/22/2010 21:24:54
23
7
Where are ontouch() events allow to be? Why not on DIV's?
validator.w3.org is is throwing an error: **Attribute ontouchmove not allowed on element div at this point.** On the following code: <div id="someDiv" ontouchmove="onTouchmove(event)" ontouchend="noTouch(event)"></div> Doctype is: <!DOCTYPE HTML> _What elements are touch events allowed on?_
html5
touch
w3c-validation
null
null
null
open
Where are ontouch() events allow to be? Why not on DIV's? === validator.w3.org is is throwing an error: **Attribute ontouchmove not allowed on element div at this point.** On the following code: <div id="someDiv" ontouchmove="onTouchmove(event)" ontouchend="noTouch(event)"></div> Doctype is: <!DOCTYPE HTML> _What elements are touch events allowed on?_
0
4,646,823
01/10/2011 12:30:14
462,445
09/30/2010 04:19:24
1
2
C Output Question
#include<stdio.h> int main() { signed int bit=512, mBit; { mBit = ~bit; bit = bit & ~bit ; printf("%d %d", bit, mBit); } return 0; } a. 0, 0 b. 0, 513 c. 512, 0 d. 0, -513 Guys I am not having the answer of this question and also not able to interpret the question.so could you please provide your answers with proper explanation.
c
null
null
null
null
01/10/2011 12:40:36
not a real question
C Output Question === #include<stdio.h> int main() { signed int bit=512, mBit; { mBit = ~bit; bit = bit & ~bit ; printf("%d %d", bit, mBit); } return 0; } a. 0, 0 b. 0, 513 c. 512, 0 d. 0, -513 Guys I am not having the answer of this question and also not able to interpret the question.so could you please provide your answers with proper explanation.
1
11,148,488
06/21/2012 23:56:03
950,690
09/17/2011 21:36:19
190
1
Regular expression slow
<p> I am trying to parse a build log file to get some information, using regular expressions. I am trying to use regular expression like <code> ("( {9}time)(.+)(c1xx\\.dll+)(.+)s") </code>. To match a line like <code> time(D:\Program Files\Microsoft Visual Studio 11.0\VC\bin\c1xx.dll)=0.047s</code>. </p> <p> This is taking about 120 s to complete, in a file which has 19,000 lines. some of which are pretty large. Basic problem is when I cut the number of lines to about 19000, using some conditions, it did not changed anything, actually made it worse. I do not understand, if I remove the regular expressions altogether, only scanning the file takes about 6s. That means regular expressions are the main time consuming process here. So why the does not go at least some amount lower when I removed half of the lines. </p> <p> Also, can anyone tell me what kind of regular expression is faster, more generic one or more specific one. i.e. I can match this line <code> time(D:\Program Files\Microsoft Visual Studio 11.0\VC\bin\c1xx.dll)=0.047s</code>. uniquley in file using this regex also - <code> ("(.+)(c1xx.dll)(.+)") </code>. But it makes the whole thing to run even slower but when I use something like <code> ("( {9}time)(.+)(c1xx\\.dll+)(.+)") </code> It makes it run slightly faster. </p> <p> I am using c++ 11 regex library and mostly regex_match function. </p> <p> Thanks for your help </p> <p> Cheers </p>
c++
regex
null
null
null
null
open
Regular expression slow === <p> I am trying to parse a build log file to get some information, using regular expressions. I am trying to use regular expression like <code> ("( {9}time)(.+)(c1xx\\.dll+)(.+)s") </code>. To match a line like <code> time(D:\Program Files\Microsoft Visual Studio 11.0\VC\bin\c1xx.dll)=0.047s</code>. </p> <p> This is taking about 120 s to complete, in a file which has 19,000 lines. some of which are pretty large. Basic problem is when I cut the number of lines to about 19000, using some conditions, it did not changed anything, actually made it worse. I do not understand, if I remove the regular expressions altogether, only scanning the file takes about 6s. That means regular expressions are the main time consuming process here. So why the does not go at least some amount lower when I removed half of the lines. </p> <p> Also, can anyone tell me what kind of regular expression is faster, more generic one or more specific one. i.e. I can match this line <code> time(D:\Program Files\Microsoft Visual Studio 11.0\VC\bin\c1xx.dll)=0.047s</code>. uniquley in file using this regex also - <code> ("(.+)(c1xx.dll)(.+)") </code>. But it makes the whole thing to run even slower but when I use something like <code> ("( {9}time)(.+)(c1xx\\.dll+)(.+)") </code> It makes it run slightly faster. </p> <p> I am using c++ 11 regex library and mostly regex_match function. </p> <p> Thanks for your help </p> <p> Cheers </p>
0
1,009,489
06/17/2009 20:58:39
88,894
03/22/2009 21:47:07
920
78
How does Indeed.com gather results from multiple job sites.
Do they use partnership and APIs, scrape the data or use public apis from all the job sites. Specially interested in how they obtain data from other job sites like monster.com and hotjobs. Implementing a program to do similar stuff, all ideas welcome/
jobs
search
screen-scraping
api
null
06/13/2012 13:34:28
off topic
How does Indeed.com gather results from multiple job sites. === Do they use partnership and APIs, scrape the data or use public apis from all the job sites. Specially interested in how they obtain data from other job sites like monster.com and hotjobs. Implementing a program to do similar stuff, all ideas welcome/
2
6,682,132
07/13/2011 16:18:17
842,059
07/13/2011 05:58:55
26
7
A Good Tutorial To Open GL With XCODE
I want to start using Open GL and understanding it and how to code it and draw it, do you have any good sites or even knowledge?
xcode
opengl
null
null
null
null
open
A Good Tutorial To Open GL With XCODE === I want to start using Open GL and understanding it and how to code it and draw it, do you have any good sites or even knowledge?
0
7,228,035
08/29/2011 08:53:24
790,881
06/09/2011 12:17:03
83
12
How do I get SqlCommand ExecuteNonQuery result?
In order to check if specific user is db_owner, i excute the following query: "select is_rolemember('db_owner', '" & p_userName & "')" using the `SqlCommand` `ExecuteNonQuery` method. How do I get the query result? Here is my code: Dim com As SqlCommand = New SqlCommand(sql, m_connection) com.ExecuteNonQuery() sql is the query, and m_connection is the connectionString.
sql
vb.net
sql-server-2008
null
null
null
open
How do I get SqlCommand ExecuteNonQuery result? === In order to check if specific user is db_owner, i excute the following query: "select is_rolemember('db_owner', '" & p_userName & "')" using the `SqlCommand` `ExecuteNonQuery` method. How do I get the query result? Here is my code: Dim com As SqlCommand = New SqlCommand(sql, m_connection) com.ExecuteNonQuery() sql is the query, and m_connection is the connectionString.
0
9,322,712
02/17/2012 04:01:37
1,210,042
02/14/2012 21:33:45
3
0
jquery validation plugin select element not being validated
I'm using the jQuery validation plugin (http://bassistance.de/jquery-plugins/jquery-plugin-validation/), and it's working on most everything except 2 select boxes. I've created a fiddle here to demonstrate one of these troublesome select boxes: http://jsfiddle.net/tucsonlabs/mQJCX/ If you leave the month blank and submit the form there's no error message generated even though the element has a class of required.
javascript
jquery
jquery-plugins
null
null
null
open
jquery validation plugin select element not being validated === I'm using the jQuery validation plugin (http://bassistance.de/jquery-plugins/jquery-plugin-validation/), and it's working on most everything except 2 select boxes. I've created a fiddle here to demonstrate one of these troublesome select boxes: http://jsfiddle.net/tucsonlabs/mQJCX/ If you leave the month blank and submit the form there's no error message generated even though the element has a class of required.
0
11,351,264
07/05/2012 19:31:03
814,354
06/24/2011 15:47:30
725
18
Change numpy.seterr defaults?
I'd like to change my seterr *defaults* to be either all 'warn' or all 'ignore'. This can be done interactively by doing `np.seterr(all='ignore')`. Is there a way to make it a system default? There is no `.numpyrc` as far as I can tell; is there some other configuration file where these defaults can be changed? (I'm using numpy 1.6.1)
numpy
null
null
null
null
null
open
Change numpy.seterr defaults? === I'd like to change my seterr *defaults* to be either all 'warn' or all 'ignore'. This can be done interactively by doing `np.seterr(all='ignore')`. Is there a way to make it a system default? There is no `.numpyrc` as far as I can tell; is there some other configuration file where these defaults can be changed? (I'm using numpy 1.6.1)
0
7,756,645
10/13/2011 15:34:31
805,704
06/19/2011 20:15:09
317
3
Servlet Filters - Context Initialization
When using a "global" filter, one which is located in the root lib directory of an apache tomcat webserver and applies to all web application contexts: I was wondering if the web application contexts are initialized synchronously - one at a time, or can there be a case where the Filter.init() function is called by two different contexts in the same time. I'm asking this since I want to initialize a database connection configuration object based on a specific FilterConfig.initParameter the first time init() is called by any of the application contexts, and I'm wondering if I should put the above in a synchronized block or not...
java
tomcat
synchronization
servlet-filters
null
null
open
Servlet Filters - Context Initialization === When using a "global" filter, one which is located in the root lib directory of an apache tomcat webserver and applies to all web application contexts: I was wondering if the web application contexts are initialized synchronously - one at a time, or can there be a case where the Filter.init() function is called by two different contexts in the same time. I'm asking this since I want to initialize a database connection configuration object based on a specific FilterConfig.initParameter the first time init() is called by any of the application contexts, and I'm wondering if I should put the above in a synchronized block or not...
0
3,551,708
08/23/2010 21:07:43
428,838
08/23/2010 21:07:43
1
0
Anyone familiar with Vimeo? Trouble with js_onLoad, broken?
Hi all I was trying to get the vimeo "swfobject.html" example from git hub to work, but it simply doesn't work @ github.com/vimeo/vimeo-api-examples/blob/master/moogaloop-api/javascript/swfobject.html I debugged a bit, and realized it doesn't even enter the "js_onLoad" function. Does anyone know if this github code dated or is js_onLoad deprecated? I'm just trying to do a simple example of displaying the alert "hi" after the player is loaded, but I can't even get that far. My very simple sample code is here: http://pastie.org/1110855. Does anyone see a problem? Any fellow stackoverflowers versed in vimeo JS API? Cheers
vimeo
null
null
null
null
null
open
Anyone familiar with Vimeo? Trouble with js_onLoad, broken? === Hi all I was trying to get the vimeo "swfobject.html" example from git hub to work, but it simply doesn't work @ github.com/vimeo/vimeo-api-examples/blob/master/moogaloop-api/javascript/swfobject.html I debugged a bit, and realized it doesn't even enter the "js_onLoad" function. Does anyone know if this github code dated or is js_onLoad deprecated? I'm just trying to do a simple example of displaying the alert "hi" after the player is loaded, but I can't even get that far. My very simple sample code is here: http://pastie.org/1110855. Does anyone see a problem? Any fellow stackoverflowers versed in vimeo JS API? Cheers
0
6,762,737
07/20/2011 13:27:19
733,644
05/01/2011 20:32:15
481
1
parsing the date object in javascript
Date.parseWeird=Date.prototype.parseWeird=function(d) { return new Date(Date.parse(d)); }; var d = /Date(-65424600000)/ How can i parse this date and show in MM/DD/YY format.
javascript
null
null
null
null
null
open
parsing the date object in javascript === Date.parseWeird=Date.prototype.parseWeird=function(d) { return new Date(Date.parse(d)); }; var d = /Date(-65424600000)/ How can i parse this date and show in MM/DD/YY format.
0
9,391,746
02/22/2012 08:59:03
51,816
01/05/2009 21:39:06
12,477
22
How can I data bind a list of strings to a ListBox in WPF/WP7?
I am trying to bind a list of string values to a listbox so that their values are listed line by line. Right now I use this: <ListBox Margin="20" ItemsSource="{Binding Path=PersonNames}"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Path=Id}"></TextBlock> </StackPanel> </DataTemplate> </ListBox.ItemTemplate> </ListBox> But I don't know what I am supposed to put into the textblock, instead of `Id`, since they are all string values, not custom classes. Also it complains not having to find the PersonNames when I have it inside MainPage, as MainPage.PersonNames. I set the data context to: DataContext="{Binding RelativeSource={RelativeSource Self}}" I am doing it wrong?
c#
.net
wpf
windows-phone-7
data-binding
null
open
How can I data bind a list of strings to a ListBox in WPF/WP7? === I am trying to bind a list of string values to a listbox so that their values are listed line by line. Right now I use this: <ListBox Margin="20" ItemsSource="{Binding Path=PersonNames}"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Path=Id}"></TextBlock> </StackPanel> </DataTemplate> </ListBox.ItemTemplate> </ListBox> But I don't know what I am supposed to put into the textblock, instead of `Id`, since they are all string values, not custom classes. Also it complains not having to find the PersonNames when I have it inside MainPage, as MainPage.PersonNames. I set the data context to: DataContext="{Binding RelativeSource={RelativeSource Self}}" I am doing it wrong?
0
6,800,430
07/23/2011 12:44:15
21,336
09/23/2008 19:39:57
11,737
661
Are there commercially successful ASP.Net MVC applications?
During a recent discussion on choosing a development platform, I heard the statement: > "There are no commercially successful ASP.Net MVC products" Clarification: - By "commercial", I mean that you need to pay in order to use the product. - By "successful", I mean that the product is used by a significant number of customers/users (not just friends of the developer). - By "product", I mean that the application needs to be installed (not sure whether I should insist on this point - if you know of a hosted (multi-tenant) web app matching the other criteria, that's ok).
asp.net-mvc
market
commercial
null
null
07/23/2011 18:03:42
not constructive
Are there commercially successful ASP.Net MVC applications? === During a recent discussion on choosing a development platform, I heard the statement: > "There are no commercially successful ASP.Net MVC products" Clarification: - By "commercial", I mean that you need to pay in order to use the product. - By "successful", I mean that the product is used by a significant number of customers/users (not just friends of the developer). - By "product", I mean that the application needs to be installed (not sure whether I should insist on this point - if you know of a hosted (multi-tenant) web app matching the other criteria, that's ok).
4
6,659,296
07/12/2011 03:51:49
840,009
07/12/2011 03:51:49
1
0
accessing http post request and parsing xml data posted
I'm having problems finding out how to code this. I got these from some sources over the internet try { String strURL = "http://blahblah.appspot.com"; URL url = new URL(strURL); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST"); connection.setRequestProperty("Accept", "input/xml"); InputStream xml = connection.getInputStream(); DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.parse(xml); doc.getDocumentElement().normalize(); NodeList nList = doc.getElementsByTagName("param"); for (int i = 0; i < nList.getLength(); i++) { Node node1 = nList.item(i); if (node1.getNodeType() == Node.ELEMENT_NODE) { Element element = (Element) node1; NodeList firstNodeElementList = element.getElementsByTagName("name"); Element element1 = (Element) firstNodeElementList.item(0); NodeList firstNodeList = element1.getChildNodes(); System.out.println("Name : " + ((Node) firstNodeList.item(0)).getNodeValue()); String name = firstNodeList.item(0).getNodeValue(); NodeList lastNodeElementList = element.getElementsByTagName("value"); Element element2 = (Element) lastNodeElementList.item(0); NodeList lastNodeList = element2.getChildNodes(); System.out.println("Value : " + ((Node) lastNodeList.item(0)).getNodeValue()); String value = lastNodeList.item(0).getNodeValue(); } catch(Exception e) { System.out.println(e); } I'm getting this error: java.io.IOException: Server returned HTTP response code: 400 for URL I basically want to retrieve the posted xml file and get the parameters so i can store it in my database. What should I do? I'm confused.
xml
http-post
null
null
null
03/11/2012 14:17:38
too localized
accessing http post request and parsing xml data posted === I'm having problems finding out how to code this. I got these from some sources over the internet try { String strURL = "http://blahblah.appspot.com"; URL url = new URL(strURL); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST"); connection.setRequestProperty("Accept", "input/xml"); InputStream xml = connection.getInputStream(); DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.parse(xml); doc.getDocumentElement().normalize(); NodeList nList = doc.getElementsByTagName("param"); for (int i = 0; i < nList.getLength(); i++) { Node node1 = nList.item(i); if (node1.getNodeType() == Node.ELEMENT_NODE) { Element element = (Element) node1; NodeList firstNodeElementList = element.getElementsByTagName("name"); Element element1 = (Element) firstNodeElementList.item(0); NodeList firstNodeList = element1.getChildNodes(); System.out.println("Name : " + ((Node) firstNodeList.item(0)).getNodeValue()); String name = firstNodeList.item(0).getNodeValue(); NodeList lastNodeElementList = element.getElementsByTagName("value"); Element element2 = (Element) lastNodeElementList.item(0); NodeList lastNodeList = element2.getChildNodes(); System.out.println("Value : " + ((Node) lastNodeList.item(0)).getNodeValue()); String value = lastNodeList.item(0).getNodeValue(); } catch(Exception e) { System.out.println(e); } I'm getting this error: java.io.IOException: Server returned HTTP response code: 400 for URL I basically want to retrieve the posted xml file and get the parameters so i can store it in my database. What should I do? I'm confused.
3
5,543,357
04/04/2011 19:30:32
127,853
06/23/2009 21:05:44
760
11
Flex: six seconds between initialize and creationComplete
I'm working with a large flex applications and I have noticed that one of our largest components (with lots of child canvases) takes about 6 seconds between the initialize and creationComplete events. I've been doing some reading and have found that having lots of nested canvases can cause slowdowns, but i'm not sure if this is where the slowdowns would be? Anyone have any suggestions on speeding this up, or even diagnosing exactly where the slowdowns are coming from?
flex
performance
canvas
null
null
null
open
Flex: six seconds between initialize and creationComplete === I'm working with a large flex applications and I have noticed that one of our largest components (with lots of child canvases) takes about 6 seconds between the initialize and creationComplete events. I've been doing some reading and have found that having lots of nested canvases can cause slowdowns, but i'm not sure if this is where the slowdowns would be? Anyone have any suggestions on speeding this up, or even diagnosing exactly where the slowdowns are coming from?
0
2,304,955
02/21/2010 05:45:07
246,211
01/08/2010 07:37:01
99
1
SQL Server: Top 10 salespeople per week - and previous rankings
select * from ( select year, week, salesperson, count(*) as transactions, rank() over(partition by week order by count(*) desc) as ranking from sales where year = '2010', group by year, week, salesperson ) temp where ranking <= 10 The query returns a list of the top 10 salespeople (in terms of # of transactions) for each week of the year. How can I go about adding columns to my results for: 1. Previous week's ranking for that salesperson 2. Total weeks in the Top 10 this year 3. Consecutive weeks in the Top 10 (starting at week 1) 4. Consecutive weeks in the Top 10 (starting in previous year, if possible) Can you give any general advice on how to go about these sorts of problems? PS: Using SQL server 2008
sql-server
sql-server-2008
ranking
null
null
null
open
SQL Server: Top 10 salespeople per week - and previous rankings === select * from ( select year, week, salesperson, count(*) as transactions, rank() over(partition by week order by count(*) desc) as ranking from sales where year = '2010', group by year, week, salesperson ) temp where ranking <= 10 The query returns a list of the top 10 salespeople (in terms of # of transactions) for each week of the year. How can I go about adding columns to my results for: 1. Previous week's ranking for that salesperson 2. Total weeks in the Top 10 this year 3. Consecutive weeks in the Top 10 (starting at week 1) 4. Consecutive weeks in the Top 10 (starting in previous year, if possible) Can you give any general advice on how to go about these sorts of problems? PS: Using SQL server 2008
0
10,442,964
05/04/2012 05:03:37
70,149
02/24/2009 00:03:41
1,296
56
Visual Studio 2010: How to set build platform to Active(x86)?
Most of the projects in a solution allow the option to select a build platform of Active(x86) ![enter image description here][1] However one does not: ![enter image description here][2] I cant work out why. They are all VS2010 projects targeting .Net Framework 4. I thought maybe the offending project was referencing something 64bit but it's not so I dunno? Any thoughts? [1]: http://i.stack.imgur.com/B45GC.gif [2]: http://i.stack.imgur.com/NKLIF.gif
c#
visual-studio-2010
projects-and-solutions
null
null
null
open
Visual Studio 2010: How to set build platform to Active(x86)? === Most of the projects in a solution allow the option to select a build platform of Active(x86) ![enter image description here][1] However one does not: ![enter image description here][2] I cant work out why. They are all VS2010 projects targeting .Net Framework 4. I thought maybe the offending project was referencing something 64bit but it's not so I dunno? Any thoughts? [1]: http://i.stack.imgur.com/B45GC.gif [2]: http://i.stack.imgur.com/NKLIF.gif
0
11,165,745
06/23/2012 00:28:23
1,460,555
06/16/2012 11:43:41
6
0
end user modifications of website
I am making a website as a school project, but it will have real end uses and a has a client, I have made a 'admin' area in this website, and would like to let the client edit certain things, this would save to the server and then any other person viewing the site would see it. Ive been reading around on this for days now and have seen several methods, firstly was ckeditor, which i consider a possibility however i have been bafled with how it saves the data, as it constantly provides me with a posteddata.php which simply re-opens it self continuously, if anyone could explain how to get ckeditor to save and/or open/overwrite and existing webpage. the second option was i looked into databases and found taffyDB which i very much liked the look of until i realised that any dynamic changes made on one page would not resave the javascript to include these for another, let alone when accesed from another computer. this remains my back up, as i think taffy would be the simplest method to explain how to achieve with raw data, if there is another simple db method which can save itself on the server i would much appreciate being informed of it :) and finally i looked into mysql, however i am unsure yet as if i would have access to put mysql databases on the final webserver, and this seems very heavy duty and difficult to learn for just a school project :/ i saw drupal as well, however also saw it used mysql and was scared off :P basically I am asking for your opinion on the best way to progress, i understand if this is not the most orthodox method of posting however I value the community at stackoverflow to be the best at advice, and would much appreciate your opinion, thank you Thomas
javascript
html
database
editor
end-user
06/23/2012 00:40:16
not constructive
end user modifications of website === I am making a website as a school project, but it will have real end uses and a has a client, I have made a 'admin' area in this website, and would like to let the client edit certain things, this would save to the server and then any other person viewing the site would see it. Ive been reading around on this for days now and have seen several methods, firstly was ckeditor, which i consider a possibility however i have been bafled with how it saves the data, as it constantly provides me with a posteddata.php which simply re-opens it self continuously, if anyone could explain how to get ckeditor to save and/or open/overwrite and existing webpage. the second option was i looked into databases and found taffyDB which i very much liked the look of until i realised that any dynamic changes made on one page would not resave the javascript to include these for another, let alone when accesed from another computer. this remains my back up, as i think taffy would be the simplest method to explain how to achieve with raw data, if there is another simple db method which can save itself on the server i would much appreciate being informed of it :) and finally i looked into mysql, however i am unsure yet as if i would have access to put mysql databases on the final webserver, and this seems very heavy duty and difficult to learn for just a school project :/ i saw drupal as well, however also saw it used mysql and was scared off :P basically I am asking for your opinion on the best way to progress, i understand if this is not the most orthodox method of posting however I value the community at stackoverflow to be the best at advice, and would much appreciate your opinion, thank you Thomas
4
2,762,017
05/04/2010 00:07:44
331,904
05/04/2010 00:07:44
1
0
C++ Singleton Constructor and Destructor
Does it matter if the constructor/destructor implementation is provided in the header file or the source file? For example, which way is preferred and why? Way 1: class Singleton { public: ~Singleton() { } private: Singleton() { } }; Way 2: class Singleton { public: ~Singleton(); private: Singleton(); }; In the source .cc file: Singleton::Singleton() { } Singleton::~Singleton() { } Initially, I have the implementation in a source file, but I was asked to remove it. Does anyone know why? Thanks
c++
singleton
constructor
destructor
null
null
open
C++ Singleton Constructor and Destructor === Does it matter if the constructor/destructor implementation is provided in the header file or the source file? For example, which way is preferred and why? Way 1: class Singleton { public: ~Singleton() { } private: Singleton() { } }; Way 2: class Singleton { public: ~Singleton(); private: Singleton(); }; In the source .cc file: Singleton::Singleton() { } Singleton::~Singleton() { } Initially, I have the implementation in a source file, but I was asked to remove it. Does anyone know why? Thanks
0
9,463,087
02/27/2012 09:59:32
1,235,254
02/27/2012 09:48:56
1
0
which is better Standard ML or Caml
i will be making a pattern matching program, what do you think is best to use Standard ML or Caml?
artificial-intelligence
pattern-matching
sml
caml
null
02/27/2012 15:32:53
not constructive
which is better Standard ML or Caml === i will be making a pattern matching program, what do you think is best to use Standard ML or Caml?
4
1,941,005
12/21/2009 16:13:17
212,780
11/17/2009 10:44:56
13
1
C# Lambda Conversion
Hi I have been looking at certain tutorials on sharparchitecture and trying to no avail (the online convertors don't seem to be able to do this): private Action<AutoMappingExpressions> GetSetup() { return c => { c.FindIdentity = type => type.Name == "Id"; }; } private Action<IConventionFinder> GetConventions() { return c => { c.Add<MVCTemp.Data.NHibernateMaps.Conventions.ForeignKeyConvention>(); c.Add<MVCTemp.Data.NHibernateMaps.Conventions.HasManyConvention>(); c.Add<MVCTemp.Data.NHibernateMaps.Conventions.HasManyToManyConvention>(); c.Add<MVCTemp.Data.NHibernateMaps.Conventions.ManyToManyTableNameConvention>(); c.Add<MVCTemp.Data.NHibernateMaps.Conventions.PrimaryKeyConvention>(); c.Add<MVCTemp.Data.NHibernateMaps.Conventions.ReferenceConvention>(); c.Add<MVCTemp.Data.NHibernateMaps.Conventions.TableNameConvention>(); }; } Any help would be greatly appreciated.
asp.net
c#
vb
lambda
null
12/22/2009 09:26:28
not a real question
C# Lambda Conversion === Hi I have been looking at certain tutorials on sharparchitecture and trying to no avail (the online convertors don't seem to be able to do this): private Action<AutoMappingExpressions> GetSetup() { return c => { c.FindIdentity = type => type.Name == "Id"; }; } private Action<IConventionFinder> GetConventions() { return c => { c.Add<MVCTemp.Data.NHibernateMaps.Conventions.ForeignKeyConvention>(); c.Add<MVCTemp.Data.NHibernateMaps.Conventions.HasManyConvention>(); c.Add<MVCTemp.Data.NHibernateMaps.Conventions.HasManyToManyConvention>(); c.Add<MVCTemp.Data.NHibernateMaps.Conventions.ManyToManyTableNameConvention>(); c.Add<MVCTemp.Data.NHibernateMaps.Conventions.PrimaryKeyConvention>(); c.Add<MVCTemp.Data.NHibernateMaps.Conventions.ReferenceConvention>(); c.Add<MVCTemp.Data.NHibernateMaps.Conventions.TableNameConvention>(); }; } Any help would be greatly appreciated.
1
6,127,784
05/25/2011 16:32:01
478,903
10/18/2010 01:41:03
76
2
MediaWiki deny article edit right to all users except admin and article owner
i am looking for a way to deny the edit page right to all users except the admins and article owner of that page, basically what i want to do is make it so that the users can edit and submit the text and either the admins or the page owner can approve if the text should be excepted or not is there any extension or work around for that?
php
mediawiki
null
null
null
06/09/2011 22:43:01
off topic
MediaWiki deny article edit right to all users except admin and article owner === i am looking for a way to deny the edit page right to all users except the admins and article owner of that page, basically what i want to do is make it so that the users can edit and submit the text and either the admins or the page owner can approve if the text should be excepted or not is there any extension or work around for that?
2
11,153,830
06/22/2012 09:44:22
1,463,934
06/18/2012 14:10:39
3
0
Xpath to Select nodes without its childrens
i've got a webpage that i would like to modify by code (adding link on specific words). The HTML code: <div class="section"> <h2>Notre histoire</h2> <p style="text-align: justify;">SPECIFICS WORDS<strong>1998 : la création</strong></p> <p style="text-align: justify;">pour objectif « de promouvoir, selon une démarche d’éducation active, auprès des jeunes et à travers eux, des projets d’expression collective et d’action de solidarité » (article 2).<br><br><strong>1999-2001 : les débuts SPECIFICS WORDS</strong></p> <p style="text-align: justify;">SPECIFICS WORDS<a href="#">SPECIFICS WORDS</a></p> </div> So my aim is to preg_replace on SPECIFIC WORDS, but only those who are IN a P, but out from a A or a STRONG, or any either tags. I can't use any class, or any id because i don't know the code before! I tried preg_replace PHP function, but it didn't work, and was too long to execute. So my question is: How to select with XPATh a node without its A, STRONG, IMG chidrens ?
php
html
xml
xpath
null
null
open
Xpath to Select nodes without its childrens === i've got a webpage that i would like to modify by code (adding link on specific words). The HTML code: <div class="section"> <h2>Notre histoire</h2> <p style="text-align: justify;">SPECIFICS WORDS<strong>1998 : la création</strong></p> <p style="text-align: justify;">pour objectif « de promouvoir, selon une démarche d’éducation active, auprès des jeunes et à travers eux, des projets d’expression collective et d’action de solidarité » (article 2).<br><br><strong>1999-2001 : les débuts SPECIFICS WORDS</strong></p> <p style="text-align: justify;">SPECIFICS WORDS<a href="#">SPECIFICS WORDS</a></p> </div> So my aim is to preg_replace on SPECIFIC WORDS, but only those who are IN a P, but out from a A or a STRONG, or any either tags. I can't use any class, or any id because i don't know the code before! I tried preg_replace PHP function, but it didn't work, and was too long to execute. So my question is: How to select with XPATh a node without its A, STRONG, IMG chidrens ?
0
10,622,968
05/16/2012 16:42:21
1,393,130
05/14/2012 06:45:50
1
0
nullpointer exception while passing parameter between activities
I have a xmlparsing activity......from there I m going to pass the values to another activity which will display it into a listView. So, everytime I run or debug I am getting nullpointer exception at start activity . Please someone Help me out . /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try { stringXmlContent = getEventsFromAnXML(this); // myXmlContent.setText(stringXmlContent); } catch (XmlPullParserException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } Intent i=new Intent(XmlparserActivity.this, ListViewActivity.class); Bundle bundle=new Bundle(); bundle.putStringArrayList("language", stringXmlContent); i.putExtras( bundle); startActivity(i); finish(); } private ArrayList<String> getEventsFromAnXML(Activity activity) throws XmlPullParserException, IOException { ArrayList<String> al = new ArrayList<String>(); Resources res = activity.getResources(); XmlResourceParser xpp = res.getXml(R.xml.myxml); xpp.next(); int eventType = xpp.getEventType(); while (eventType != XmlPullParser.END_DOCUMENT) { //if (eventType == XmlPullParser.START_DOCUMENT) { // al.add(xpp.getName()); if (eventType == XmlPullParser.START_TAG) { //if ((xpp.getName()).compareTo("id") != 0) { al.add(xpp.getName()); //} else { //eventType = xpp.next(); } else if (eventType == XmlPullParser.TEXT) { al.add(xpp.getText()); } eventType = xpp.next(); } return al; } }
android
parsing
parameter-passing
null
null
05/17/2012 02:17:23
not a real question
nullpointer exception while passing parameter between activities === I have a xmlparsing activity......from there I m going to pass the values to another activity which will display it into a listView. So, everytime I run or debug I am getting nullpointer exception at start activity . Please someone Help me out . /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try { stringXmlContent = getEventsFromAnXML(this); // myXmlContent.setText(stringXmlContent); } catch (XmlPullParserException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } Intent i=new Intent(XmlparserActivity.this, ListViewActivity.class); Bundle bundle=new Bundle(); bundle.putStringArrayList("language", stringXmlContent); i.putExtras( bundle); startActivity(i); finish(); } private ArrayList<String> getEventsFromAnXML(Activity activity) throws XmlPullParserException, IOException { ArrayList<String> al = new ArrayList<String>(); Resources res = activity.getResources(); XmlResourceParser xpp = res.getXml(R.xml.myxml); xpp.next(); int eventType = xpp.getEventType(); while (eventType != XmlPullParser.END_DOCUMENT) { //if (eventType == XmlPullParser.START_DOCUMENT) { // al.add(xpp.getName()); if (eventType == XmlPullParser.START_TAG) { //if ((xpp.getName()).compareTo("id") != 0) { al.add(xpp.getName()); //} else { //eventType = xpp.next(); } else if (eventType == XmlPullParser.TEXT) { al.add(xpp.getText()); } eventType = xpp.next(); } return al; } }
1
1,461,947
09/22/2009 18:53:35
19,112
09/19/2008 17:28:07
729
42
How can I set the MinHeight of a StackPanel to be the combined height of its contents?
I have a StackPanel with several CheckBox controls inside it. How do I prevent the StackPanel from shrinking and obscuring the CheckBox controls when the window is resized? <StackPanel Margin="12,89,12,62" Name="stackPanel1"> <CheckBox Name="chkOption1" Width="157" IsChecked="True" Margin="6">Do this thing</CheckBox> <CheckBox Name="chkOption2" Width="157" IsChecked="True" Margin="6">Do another thing</CheckBox> <CheckBox Name="chkOption2" Width="157" Margin="6">Do a third thing</CheckBox> <Button Height="23" Name="btnRunOperations" Click="btnRunOperations_Click" Margin="3">Do Selected Things</Button> </StackPanel>
wpf
stackpanel
resize
null
null
null
open
How can I set the MinHeight of a StackPanel to be the combined height of its contents? === I have a StackPanel with several CheckBox controls inside it. How do I prevent the StackPanel from shrinking and obscuring the CheckBox controls when the window is resized? <StackPanel Margin="12,89,12,62" Name="stackPanel1"> <CheckBox Name="chkOption1" Width="157" IsChecked="True" Margin="6">Do this thing</CheckBox> <CheckBox Name="chkOption2" Width="157" IsChecked="True" Margin="6">Do another thing</CheckBox> <CheckBox Name="chkOption2" Width="157" Margin="6">Do a third thing</CheckBox> <Button Height="23" Name="btnRunOperations" Click="btnRunOperations_Click" Margin="3">Do Selected Things</Button> </StackPanel>
0
5,845,085
04/30/2011 22:37:50
707,459
04/14/2011 07:18:37
1
0
Android: CheckBoxPreference enable/disable email address inputtype
Hey everyone, I'm trying to make an activity so that when a CheckBox Preference is enabled (true), programmatically the on-screen keyboard InputType will change. I want the user to have the option to turn on/off the keyboard's email address option while keeping the inputType's already set. Essentially doing the equivalent of changing: android:inputType="textAutoCorrect|textCapSentences|textMultiLine" to android:inputType="typeAutoCorrect|textCapSentences|textmultiLine|textEmailAddress" Preferences.xml <CheckBoxPreference android:key="pref_key_enable_email" android:title="@string/pref_title_enable_email" android:summary="@string/pref_summary_enable_email" android:defaultValue="false" /> This is what I have as of now. public void setInputType(int type) { boolean showEmail = false; // Show the Email keyboard if the pref_key_enable_email preference is TRUE mTextEditor = (EditText) findViewById(R.id.embedded_text_editor); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); if(prefs.getBoolean("pref_key_enable_email",false)== true){ showEmail = true; if (showEmail) { mTextEditor.setInputType(InputType.TYPE_CLASS_TEXT | TYPE_TEXT_VARIATION_EMAIL_ADDRESS); w } else { mTextEditor.getInputType(); } } I've checked the /data/data/myappname/shared_prefs com.myappnamehere.preferences.xml. I at least know that the boolean values _do_ change from false to true when the box is checked. It just doesn't do anything :(
android
android-preferences
android-softkeyboard
null
null
null
open
Android: CheckBoxPreference enable/disable email address inputtype === Hey everyone, I'm trying to make an activity so that when a CheckBox Preference is enabled (true), programmatically the on-screen keyboard InputType will change. I want the user to have the option to turn on/off the keyboard's email address option while keeping the inputType's already set. Essentially doing the equivalent of changing: android:inputType="textAutoCorrect|textCapSentences|textMultiLine" to android:inputType="typeAutoCorrect|textCapSentences|textmultiLine|textEmailAddress" Preferences.xml <CheckBoxPreference android:key="pref_key_enable_email" android:title="@string/pref_title_enable_email" android:summary="@string/pref_summary_enable_email" android:defaultValue="false" /> This is what I have as of now. public void setInputType(int type) { boolean showEmail = false; // Show the Email keyboard if the pref_key_enable_email preference is TRUE mTextEditor = (EditText) findViewById(R.id.embedded_text_editor); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); if(prefs.getBoolean("pref_key_enable_email",false)== true){ showEmail = true; if (showEmail) { mTextEditor.setInputType(InputType.TYPE_CLASS_TEXT | TYPE_TEXT_VARIATION_EMAIL_ADDRESS); w } else { mTextEditor.getInputType(); } } I've checked the /data/data/myappname/shared_prefs com.myappnamehere.preferences.xml. I at least know that the boolean values _do_ change from false to true when the box is checked. It just doesn't do anything :(
0
6,367,874
06/16/2011 06:21:26
800,444
06/15/2011 21:28:31
1
0
how to add core plot library to my project
bs"d **hi everybody** I my trying to add a core plot library but without successfull. somebody can explain me how to it? I have looked in few websites but i didn't found an answer ---------------------------------------- Asaf
objective-c
null
null
null
null
10/09/2011 21:49:54
not a real question
how to add core plot library to my project === bs"d **hi everybody** I my trying to add a core plot library but without successfull. somebody can explain me how to it? I have looked in few websites but i didn't found an answer ---------------------------------------- Asaf
1
6,593,168
07/06/2011 07:51:51
825,897
07/02/2011 08:25:39
6
0
Which DB can used with Dascode for Datasource
I searched lot of sites for the name of db with iphone webapp using Dashcode but not get satisfactory results from any of site .I just want to knw which db can used with iphone web app using dashcode nad how to do the connectivity for the same .Because as far i knw that javascript is used as language over here so which db server can be used and how to connect to that db using dashcode Please do write to me its really frustating now. Thnx in advance Parag
iphone
null
null
null
null
null
open
Which DB can used with Dascode for Datasource === I searched lot of sites for the name of db with iphone webapp using Dashcode but not get satisfactory results from any of site .I just want to knw which db can used with iphone web app using dashcode nad how to do the connectivity for the same .Because as far i knw that javascript is used as language over here so which db server can be used and how to connect to that db using dashcode Please do write to me its really frustating now. Thnx in advance Parag
0
4,714,023
01/17/2011 14:03:22
572,827
01/12/2011 14:19:06
3
0
Check to see if a key exists in a query string - htaccess
my url has query string(s) as follows: ?v=11&icid=someid&near=far OR ?icid=some&v=11&near=far OR ?icid=some&near=far&v=11 OR ?v=11 OR There may be more but "v" exists in htaccess, how do I do the following please? if key "v" exists and the value is not [1-11] redirect to my site so far I've got the following: sample url: http://www.mysite.com/2010/01/17/breaking-news/? (one of the above QS's) RewriteCond %{QUERY_STRING} v <br> RewriteCond %{QUERY_STRING} v=([^1-11]+) <br> RewriteRule ([1000-9999]+)/([^/]+)/([^/]+)/([^/]+)/?([0-99]+)?$ http: // %{HTTP_HOST}/? [R,L] Any help on this is much appreciated. Thanks, L check to see if the query string has the key "v" and it's value falls in between 1 and 11?
.htaccess
null
null
null
null
null
open
Check to see if a key exists in a query string - htaccess === my url has query string(s) as follows: ?v=11&icid=someid&near=far OR ?icid=some&v=11&near=far OR ?icid=some&near=far&v=11 OR ?v=11 OR There may be more but "v" exists in htaccess, how do I do the following please? if key "v" exists and the value is not [1-11] redirect to my site so far I've got the following: sample url: http://www.mysite.com/2010/01/17/breaking-news/? (one of the above QS's) RewriteCond %{QUERY_STRING} v <br> RewriteCond %{QUERY_STRING} v=([^1-11]+) <br> RewriteRule ([1000-9999]+)/([^/]+)/([^/]+)/([^/]+)/?([0-99]+)?$ http: // %{HTTP_HOST}/? [R,L] Any help on this is much appreciated. Thanks, L check to see if the query string has the key "v" and it's value falls in between 1 and 11?
0
10,324,987
04/25/2012 22:59:38
1,337,213
04/16/2012 20:24:46
31
0
Best Free Windows IDE that supports HTML and CSS with code validation?
I'm learning CSS and HTML So I need a free, clear, understandable, and simple to use IDE for HTML and CSS and preferably to have a nice UI. Thanks
html
css
null
null
null
04/25/2012 23:05:00
not constructive
Best Free Windows IDE that supports HTML and CSS with code validation? === I'm learning CSS and HTML So I need a free, clear, understandable, and simple to use IDE for HTML and CSS and preferably to have a nice UI. Thanks
4
6,483,306
06/26/2011 10:03:21
29,653
10/20/2008 15:20:15
579
3
How do I correlate visitors to two different sites(One a subdomain of another)?
I have a Wordpress site which acts as a CMS. Now from this wordpress site, the visitors are sent to our Webapp which is in Rails, when they click on certain links. I also have an affiliate program, wherein I have given custom url's to certain partners. The problem is that I am unable to track the URL the visitor is using to get to my wordpress site,while signing up on my rails application. How do I solve this?
wordpress
analytics
null
null
null
10/03/2011 12:42:07
not a real question
How do I correlate visitors to two different sites(One a subdomain of another)? === I have a Wordpress site which acts as a CMS. Now from this wordpress site, the visitors are sent to our Webapp which is in Rails, when they click on certain links. I also have an affiliate program, wherein I have given custom url's to certain partners. The problem is that I am unable to track the URL the visitor is using to get to my wordpress site,while signing up on my rails application. How do I solve this?
1
2,948,583
06/01/2010 09:28:59
243,355
01/04/2010 17:49:53
55
0
Is a degree in Industrial engineering helpful for programmers
I am currently pursuing my MS in Software Engineering. I am considering the option of doing a part time programme in Industrial Engineering as most of the courses (Operations Research, Accountancy, Business Process etc) are those that I do not have any knowledge in. Is there a requirement in the industry for people with such qualifications? My long term career goal is to manage software projects that enable clients to increase productivity.
study
guidance
career-development
industrial
null
02/01/2012 20:24:56
not constructive
Is a degree in Industrial engineering helpful for programmers === I am currently pursuing my MS in Software Engineering. I am considering the option of doing a part time programme in Industrial Engineering as most of the courses (Operations Research, Accountancy, Business Process etc) are those that I do not have any knowledge in. Is there a requirement in the industry for people with such qualifications? My long term career goal is to manage software projects that enable clients to increase productivity.
4
2,235,071
02/10/2010 07:20:27
238,626
12/25/2009 17:08:58
148
9
Enable/disable features based on the installation type
How, in your opinion, should we code to handle enabling or disabling features based on the installation type. Purpose is to have a single installation for separate editions and make features available based on the installation type. One way of doing it is to conditionally compile the code but that makes the code dirty and difficult to maintain.
c#
.net
installation-package
null
null
null
open
Enable/disable features based on the installation type === How, in your opinion, should we code to handle enabling or disabling features based on the installation type. Purpose is to have a single installation for separate editions and make features available based on the installation type. One way of doing it is to conditionally compile the code but that makes the code dirty and difficult to maintain.
0
5,744,919
04/21/2011 13:43:13
669,047
03/21/2011 07:50:38
6
0
Generating Output in JAVA
Can we generate an .html doc using java ... Usually we get ouput in cmd prompt wen we run java programs .I want to generate output in the form of .html or .doc format is their a way ?? to do it in java ?? Genrating output in form of .html or .doc ??
java
html
null
null
null
null
open
Generating Output in JAVA === Can we generate an .html doc using java ... Usually we get ouput in cmd prompt wen we run java programs .I want to generate output in the form of .html or .doc format is their a way ?? to do it in java ?? Genrating output in form of .html or .doc ??
0
10,174,563
04/16/2012 12:59:17
1,056,922
11/20/2011 23:28:06
109
5
Sync two MySQL table
Have two separet databases. The master that holds the user information(username, password, adress ect.). The slave database only has one table where the user name and password. I whould like to happen is then an new user on the master db i created that the username and password is also added to the slave db.
mysql
null
null
null
null
null
open
Sync two MySQL table === Have two separet databases. The master that holds the user information(username, password, adress ect.). The slave database only has one table where the user name and password. I whould like to happen is then an new user on the master db i created that the username and password is also added to the slave db.
0
4,956,619
02/10/2011 11:39:53
170,830
09/09/2009 12:39:03
314
16
Fairy quiz withut registration, is possible in webapp?
I'm going to make simple quiz form on site. Are there ways to make it fairy,that nobody vote up multiple times. there are some ways to identify uniquenes of vote with their lacks:<br> ***Cookies*** - the simplest and easy to eliminate<br> ***IP*** - not stable,because of DHCP and local networks<br> **Captcha** or **mail registration** - not user firendly and complicate the process. What is your experience for fair and user-friendly quiz? Thank you.
quiz
vote
fair
null
null
null
open
Fairy quiz withut registration, is possible in webapp? === I'm going to make simple quiz form on site. Are there ways to make it fairy,that nobody vote up multiple times. there are some ways to identify uniquenes of vote with their lacks:<br> ***Cookies*** - the simplest and easy to eliminate<br> ***IP*** - not stable,because of DHCP and local networks<br> **Captcha** or **mail registration** - not user firendly and complicate the process. What is your experience for fair and user-friendly quiz? Thank you.
0
3,213,024
07/09/2010 13:30:31
387,765
07/09/2010 13:30:31
1
0
how to access user id value in another controller in ruby on rails
i want to access user login id (whenever he/she loggedin?) in some other controller i tried so many methods
ruby-on-rails
null
null
null
null
06/01/2012 21:20:51
not a real question
how to access user id value in another controller in ruby on rails === i want to access user login id (whenever he/she loggedin?) in some other controller i tried so many methods
1
7,740,214
10/12/2011 12:40:09
991,416
10/12/2011 12:22:34
1
0
Is there an upper limit for zoom level in MKMapView?
After browsing some of the questions here, I have got a rough idea of zoom level and MKMapView. Then I found this great blog: http://troybrant.net/blog/2010/01/set-the-zoom-level-of-an-mkmapview/ But when I tried out the code from that blog, I felt there seemed to be an upper limit for zoom level. That is to say, no matter how large I set zoomLevel to be, it was always clamped to some thing like 16. The corresponding longitudeDelta of this zoomLevel was 0.003433. In this question, http://stackoverflow.com/questions/3612007/mkmapview-setregion-snaps-to-predefined-zoom-levels/4598713#4598713, pseudopeach claimed that the smallest value for longitudeDelta is .0008583, instead of .003433. Anyone knows how to get to .0008583 on iPhone? Thanks in advance.
iphone
mkmapview
mapkit
null
null
null
open
Is there an upper limit for zoom level in MKMapView? === After browsing some of the questions here, I have got a rough idea of zoom level and MKMapView. Then I found this great blog: http://troybrant.net/blog/2010/01/set-the-zoom-level-of-an-mkmapview/ But when I tried out the code from that blog, I felt there seemed to be an upper limit for zoom level. That is to say, no matter how large I set zoomLevel to be, it was always clamped to some thing like 16. The corresponding longitudeDelta of this zoomLevel was 0.003433. In this question, http://stackoverflow.com/questions/3612007/mkmapview-setregion-snaps-to-predefined-zoom-levels/4598713#4598713, pseudopeach claimed that the smallest value for longitudeDelta is .0008583, instead of .003433. Anyone knows how to get to .0008583 on iPhone? Thanks in advance.
0
11,115,581
06/20/2012 08:27:48
1,199,019
02/09/2012 06:58:28
187
9
Wait timed out of WaitForSingleObject
I am using `WaitForMultipleObject` function with waitForAll parameter = true. Here using a `std::vector` of handle object to wait for. If this function is timed out, then how can i identify that waiting on which handle is timed out??. if(WAIT_OBJECT != WaitForSingleObject(vector.size(), vector.data(), true, 16000)) { //get the event that causes the wait to time out(assume that only one object is timed out.others are successfully set.) }
c++
waitformultipleobjects
null
null
null
null
open
Wait timed out of WaitForSingleObject === I am using `WaitForMultipleObject` function with waitForAll parameter = true. Here using a `std::vector` of handle object to wait for. If this function is timed out, then how can i identify that waiting on which handle is timed out??. if(WAIT_OBJECT != WaitForSingleObject(vector.size(), vector.data(), true, 16000)) { //get the event that causes the wait to time out(assume that only one object is timed out.others are successfully set.) }
0
10,402,468
05/01/2012 18:39:45
318,599
12/29/2009 15:05:47
579
2
Using a Content Management System for a simple original website
I have created a website by myself with my own code and layout. Except for a guestbook page, the website has only static pages. Now I want to give the opportunity to my "client" to edit the content of the website with little effort. I have been told to use a Content Management System, I had a look but it seems that all the CMS provides their own layout. Is it possible to use a CMS for my website without changing the code?
javascript
html
null
null
null
05/01/2012 20:56:07
not a real question
Using a Content Management System for a simple original website === I have created a website by myself with my own code and layout. Except for a guestbook page, the website has only static pages. Now I want to give the opportunity to my "client" to edit the content of the website with little effort. I have been told to use a Content Management System, I had a look but it seems that all the CMS provides their own layout. Is it possible to use a CMS for my website without changing the code?
1
2,088,463
01/18/2010 18:56:28
87,840
04/06/2009 22:14:58
112
1
Why client got no reference to invoker in Command pattern?
[Link to command pattern][1] Why does the client have no reference to the invoker when it has references to receivers and concretecommands? public static void main(String[] args) { StockTrade stock = new StockTrade(); BuyStockOrder bsc = new BuyStockOrder (stock); SellStockOrder ssc = new SellStockOrder (stock); Agent agent = new Agent(); //<-- The invoker is right there yet it is not // in the diagram? agent.placeOrder(bsc); agent.placeOrder(ssc); } [1]: http://www.oodesign.com/command-pattern.html
uml
design
design-patterns
null
null
null
open
Why client got no reference to invoker in Command pattern? === [Link to command pattern][1] Why does the client have no reference to the invoker when it has references to receivers and concretecommands? public static void main(String[] args) { StockTrade stock = new StockTrade(); BuyStockOrder bsc = new BuyStockOrder (stock); SellStockOrder ssc = new SellStockOrder (stock); Agent agent = new Agent(); //<-- The invoker is right there yet it is not // in the diagram? agent.placeOrder(bsc); agent.placeOrder(ssc); } [1]: http://www.oodesign.com/command-pattern.html
0
8,972,724
01/23/2012 13:54:04
726,978
04/27/2011 10:01:45
470
27
How to start loading an iframe before the DOM is loaded
I have a question that is the oppsite of this: [load an iframe asynchronously][1]. I need to start loading the `iframe` the moment the browser starts loading the page, and not after the DOM has finished loading. How can I force the load of the `iframe` before the DOM is loaded? Before the `document.ready` event? I tried using an `UpdatePanel` around the iframe that starts an async postback, but I get a lot of javascript exception that crash the browser. [1]: http://stackoverflow.com/questions/2114239/is-there-a-way-to-load-an-iframe-asynchronously
javascript
asp.net
dom
iframe
null
null
open
How to start loading an iframe before the DOM is loaded === I have a question that is the oppsite of this: [load an iframe asynchronously][1]. I need to start loading the `iframe` the moment the browser starts loading the page, and not after the DOM has finished loading. How can I force the load of the `iframe` before the DOM is loaded? Before the `document.ready` event? I tried using an `UpdatePanel` around the iframe that starts an async postback, but I get a lot of javascript exception that crash the browser. [1]: http://stackoverflow.com/questions/2114239/is-there-a-way-to-load-an-iframe-asynchronously
0
3,597,116
08/30/2010 00:10:20
434,499
08/30/2010 00:10:20
1
0
Insert HTML after a selection
I want to be able to double-click to select some text in a div, which then triggers a JavaScript function that inserts some HTML after the selected text, much like the 'edit/reply' feature in Google Wave. I have already established how to trigger a function on double-clicking, it is locating the selection and subsequently inserting HTML after it that is the problem.
javascript
null
null
null
null
null
open
Insert HTML after a selection === I want to be able to double-click to select some text in a div, which then triggers a JavaScript function that inserts some HTML after the selected text, much like the 'edit/reply' feature in Google Wave. I have already established how to trigger a function on double-clicking, it is locating the selection and subsequently inserting HTML after it that is the problem.
0
11,126,427
06/20/2012 19:04:27
1,464,765
06/18/2012 20:26:40
1
0
Array in a static class is destroyed
I made a class: public class Msg { ... static int[] Data; } In the program startup I create the class and create the array: static Msg rMessage; rMessage = new Msg(); rMessage.Data = new int[8]; The problem is that if I want to use the array later in the program it is destroyed. In the startup I can see the array in the debugger. Later it says "null". The other properties of the class are still set to the right value. Am I missing something? Regards
java
android
null
null
null
null
open
Array in a static class is destroyed === I made a class: public class Msg { ... static int[] Data; } In the program startup I create the class and create the array: static Msg rMessage; rMessage = new Msg(); rMessage.Data = new int[8]; The problem is that if I want to use the array later in the program it is destroyed. In the startup I can see the array in the debugger. Later it says "null". The other properties of the class are still set to the right value. Am I missing something? Regards
0
3,566,366
08/25/2010 13:35:42
247,402
01/10/2010 08:51:02
159
10
SMS Gateway SMSC/ESME TON/NPI
Well, im developing SMS Gateway, i was thinking about the featrues i should implement in, so i reviewed some sms gateways like SMSNOW, SMS studio, Ozeki etc any way i almost finished the sms gateway implementation but i came a cross a feature in almost all sms gateway which is allowing the user to specify TON/NPI for SMSC and ESME i understand that when the sms gateway is preparing to send the sms using SMPP protocol it would need to parse the sender/reciever number and based on that specify TON/NPI and i understand that its great to allow you to Override the defaults and specify your own TON/NPI but what i dont understand is why all sms gateways give you option for specify your own TON/NPI for the smsgateway when it act as SMSC (when he is recieving SMS not sending them) what the sms gateway would do with the specified TON/NPI when it recieve an smpp SMS????
c#
sms-gateway
null
null
null
null
open
SMS Gateway SMSC/ESME TON/NPI === Well, im developing SMS Gateway, i was thinking about the featrues i should implement in, so i reviewed some sms gateways like SMSNOW, SMS studio, Ozeki etc any way i almost finished the sms gateway implementation but i came a cross a feature in almost all sms gateway which is allowing the user to specify TON/NPI for SMSC and ESME i understand that when the sms gateway is preparing to send the sms using SMPP protocol it would need to parse the sender/reciever number and based on that specify TON/NPI and i understand that its great to allow you to Override the defaults and specify your own TON/NPI but what i dont understand is why all sms gateways give you option for specify your own TON/NPI for the smsgateway when it act as SMSC (when he is recieving SMS not sending them) what the sms gateway would do with the specified TON/NPI when it recieve an smpp SMS????
0
6,828,938
07/26/2011 10:53:27
444,146
09/10/2010 08:09:17
87
1
Preparing a SQLite db to be loaded remotely for mobile development
My mobile titanium app is loading data from a remote url, in the form of a xml file, that I have generated. The idea is that the app is downloading that xml and processes it into a SQLlite db. But I was thinking, I could also replace the server side generated xml with a ready sqlite file with all the data in it. That way, I don't need to do any processing client side, which saves some of the user's time. Is this a good idea? If yes, how would I "fake" generate a sqlite file? There are no headers that I need to pass on, so that's not the issue, but what I noticed when I opened an .sqlite file with coda, that there are weird characters meaning the encoding must be different. Thanks!
javascript
xml
sqlite
titanium
appcelerator
null
open
Preparing a SQLite db to be loaded remotely for mobile development === My mobile titanium app is loading data from a remote url, in the form of a xml file, that I have generated. The idea is that the app is downloading that xml and processes it into a SQLlite db. But I was thinking, I could also replace the server side generated xml with a ready sqlite file with all the data in it. That way, I don't need to do any processing client side, which saves some of the user's time. Is this a good idea? If yes, how would I "fake" generate a sqlite file? There are no headers that I need to pass on, so that's not the issue, but what I noticed when I opened an .sqlite file with coda, that there are weird characters meaning the encoding must be different. Thanks!
0
7,899,381
10/26/2011 06:33:11
30,958
10/23/2008 20:30:44
1,540
18
Where to find modest priced programmable robot kit for educational purposes
It would be nice to be able to use some high-level programming language to program the robot.
education
robotics
null
null
null
10/26/2011 09:34:44
off topic
Where to find modest priced programmable robot kit for educational purposes === It would be nice to be able to use some high-level programming language to program the robot.
2
7,103,432
08/18/2011 06:47:19
859,903
07/24/2011 03:13:32
3
1
Is is possible to set BufferSize in FileStream?
I need to write large data into disk, so I use FileStream.openAsync this.file_stream = new FileStream(); this.file_stream.openAsync(fl, FileMode.WRITE); //Write large get from database while(i < 10240000) { this.file_stream.write(bigDatas) i = i + 1; } and then , the app killed by Linux kenkel (message copy from 'dmesg'): Killed process 4267 (MyFlex) total-vm:1282708kB, anon-rss:863176kB, file-rss:756kB So, is there any way to set buffer size in FileStream ?
actionscript-3
flex4
null
null
null
null
open
Is is possible to set BufferSize in FileStream? === I need to write large data into disk, so I use FileStream.openAsync this.file_stream = new FileStream(); this.file_stream.openAsync(fl, FileMode.WRITE); //Write large get from database while(i < 10240000) { this.file_stream.write(bigDatas) i = i + 1; } and then , the app killed by Linux kenkel (message copy from 'dmesg'): Killed process 4267 (MyFlex) total-vm:1282708kB, anon-rss:863176kB, file-rss:756kB So, is there any way to set buffer size in FileStream ?
0
3,761,913
09/21/2010 15:36:07
454,129
09/21/2010 15:36:07
1
0
Jboss returns no content-type for MSI
I have placed a .MSI-file in the folder C:\JBoss\server\default\deploy\install.war on my web server which is running Jboss. The idea is that web page visitors should be able to download the file by visiting http://example.com/install/file.msi. Now, if a user goes to to this URL with his web browser, instead of getting a "Do you want to download this file"-dialog, the contents of the MSI file is shown directly in the web browser window (in other words, the binary data). I installed Fiddler and have saw that Jboss sends no Content-Type header when accessing the file. If I access an .exe file in the same directory, Jboss sends a Content-Type with value "application/octet-stream". How do I configure Jboss to send the same content-type for the .MSI file type? I'm guessing there's some config file I need to add this to?
jboss
msi
content-type
null
null
null
open
Jboss returns no content-type for MSI === I have placed a .MSI-file in the folder C:\JBoss\server\default\deploy\install.war on my web server which is running Jboss. The idea is that web page visitors should be able to download the file by visiting http://example.com/install/file.msi. Now, if a user goes to to this URL with his web browser, instead of getting a "Do you want to download this file"-dialog, the contents of the MSI file is shown directly in the web browser window (in other words, the binary data). I installed Fiddler and have saw that Jboss sends no Content-Type header when accessing the file. If I access an .exe file in the same directory, Jboss sends a Content-Type with value "application/octet-stream". How do I configure Jboss to send the same content-type for the .MSI file type? I'm guessing there's some config file I need to add this to?
0
8,485,660
12/13/2011 07:21:50
159,072
06/02/2009 18:25:22
2,713
40
Why System.Data.SqlClient.SqlDataReader made a sealed class?
Most of the time I need to wrap System.Data.SqlClient.SqlDataReader. Why System.Data.SqlClient.SqlDataReader made a sealed class? Why isn't it inheritable?
c#
sqldatareader
null
null
null
12/13/2011 07:36:25
not constructive
Why System.Data.SqlClient.SqlDataReader made a sealed class? === Most of the time I need to wrap System.Data.SqlClient.SqlDataReader. Why System.Data.SqlClient.SqlDataReader made a sealed class? Why isn't it inheritable?
4
4,339,503
12/02/2010 20:25:31
528,545
12/02/2010 20:25:31
1
0
All possible combinations of numbers of length 5 in a 4X4 matrix
i have a matrix 1 9 2 3 5 0 0 6 8 4 4 8 2 3 7 8 I need to find all possible combinations of numbers of length 5. constraints: 1. Starting form a any position in the matrix you can only move to your next immediate neighbor i.e if u start form say (0,0) your neighbor must be (0,1),(1,1),(1,0) and if you pick a position then form that position you can only move to its immediate neighbor and so on. 2. The length of the number must be 5 digit's i.e for example if i start from (0,0) with value 1 i can produce a sequence 15151 or 19232 or 10063 so on you can move in any sequence with the constraint 1 applied. 3.The solution must produce the output in 7sec and python is preferred since its my favorite. ;)
python
null
null
null
null
null
open
All possible combinations of numbers of length 5 in a 4X4 matrix === i have a matrix 1 9 2 3 5 0 0 6 8 4 4 8 2 3 7 8 I need to find all possible combinations of numbers of length 5. constraints: 1. Starting form a any position in the matrix you can only move to your next immediate neighbor i.e if u start form say (0,0) your neighbor must be (0,1),(1,1),(1,0) and if you pick a position then form that position you can only move to its immediate neighbor and so on. 2. The length of the number must be 5 digit's i.e for example if i start from (0,0) with value 1 i can produce a sequence 15151 or 19232 or 10063 so on you can move in any sequence with the constraint 1 applied. 3.The solution must produce the output in 7sec and python is preferred since its my favorite. ;)
0
7,512,512
09/22/2011 09:27:57
958,753
09/22/2011 09:27:57
1
0
How to give permission of a folder to a specific user in LINUX/UNIX?
How to give permission to a specific user for a particular folder? I dont want to give permission to the entire but only particular user in the group. I dont have root permissions.
linux
unix
chmod
null
null
09/22/2011 12:04:36
off topic
How to give permission of a folder to a specific user in LINUX/UNIX? === How to give permission to a specific user for a particular folder? I dont want to give permission to the entire but only particular user in the group. I dont have root permissions.
2
11,732,646
07/31/2012 03:26:19
1,550,613
07/25/2012 05:46:50
1
0
php check if record in mysql get all data else show empty form
Need help i need to do simple php form that check record in mysql how can i do to hide other form before check the record exist or not ? user only can enter email and check exist or not ,if exist show form at bottom with all record and if user enter an email and record not exist ,show empty form at bottom . how to do this in a same page ?
php
null
null
null
null
07/31/2012 07:54:26
not constructive
php check if record in mysql get all data else show empty form === Need help i need to do simple php form that check record in mysql how can i do to hide other form before check the record exist or not ? user only can enter email and check exist or not ,if exist show form at bottom with all record and if user enter an email and record not exist ,show empty form at bottom . how to do this in a same page ?
4
3,905,640
10/11/2010 11:09:41
41,540
11/28/2008 07:34:28
169
14
Books about performance management
I'm currently working on performance management for a bigger application. The application itself is written in Java, but it is clear that our performance problems lay not only in Java alone. I would like to read about managing the performance of a whole system, not only the database or Java on the application server. I have found some nice papers from Cary V. Millsap, but the books in the reference list were some older ones. Is there current literature about the state of the art in performance management?
performance
management
null
null
null
09/30/2011 12:25:28
not constructive
Books about performance management === I'm currently working on performance management for a bigger application. The application itself is written in Java, but it is clear that our performance problems lay not only in Java alone. I would like to read about managing the performance of a whole system, not only the database or Java on the application server. I have found some nice papers from Cary V. Millsap, but the books in the reference list were some older ones. Is there current literature about the state of the art in performance management?
4
10,934,627
06/07/2012 15:11:59
1,441,694
06/07/2012 08:32:01
1
0
How to break parsed result?
I m performing xml parsing. In return i m getting the result something like this: {"login":"FALSE","userid":"Please enter correct Email Address"} I want to retain the userid: message into some variable, so that i can perform functions on the basis of userid itself. Suggestion please. Thanks
iphone
ios
null
null
null
06/09/2012 18:25:22
not a real question
How to break parsed result? === I m performing xml parsing. In return i m getting the result something like this: {"login":"FALSE","userid":"Please enter correct Email Address"} I want to retain the userid: message into some variable, so that i can perform functions on the basis of userid itself. Suggestion please. Thanks
1
11,740,975
07/31/2012 13:16:12
95,876
04/25/2009 07:02:57
639
1
For unix screen terminal how to increase log?
The output of my program being too long, on running it in screen terminal some part of output gets truncated. To avoid this how can I increase log limit of screen terminal? Any ideas??
linux
unix
hadoop
terminal
bigdata
07/31/2012 17:42:09
off topic
For unix screen terminal how to increase log? === The output of my program being too long, on running it in screen terminal some part of output gets truncated. To avoid this how can I increase log limit of screen terminal? Any ideas??
2
5,564,620
04/06/2011 10:07:05
579,512
01/18/2011 06:53:06
121
2
setting call back url for facebook login in django app
i have created a django app, which has a facebook login option also. For doing it i was following this link [django-facebook connect with ajax][1]. I did everything as said by the link, and i am getting the user signed in with facebook connect. But after the user logs in from 'registrationForm'(FB log in button given) page, the outh page pop ups to enter username and password. when giving it the user is signed in but the same registrationForm comes again without redirecting the page. Can somebody help me to set a callback url after the FB logs in is success. for FB connect i am using the same code as given in the above site. **facebookconnect.py** class FacebookScriptNode(template.Node): def render(self, context): return """ <script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript"> FB.init("%s", "%s"); function facebook_onlogin() { var uid = FB.Facebook.apiClient.get_session().uid; var session_key = FB.Facebook.apiClient.get_session().session_key; var expires = FB.Facebook.apiClient.get_session().expires; var secret = FB.Facebook.apiClient.get_session().secret; var sig = FB.Facebook.apiClient.get_session().sig; fb_connect_ajax(expires, session_key, secret, uid, sig); } function fb_connect_ajax(expires, session_key, ss, user, sig) { var post_string = 'expires=' + expires; post_string = post_string + '&session_key=' + session_key; post_string = post_string + '&ss=' + ss; post_string = post_string + '&user=' + user; post_string = post_string + '&sig=' + sig; $.ajax({ type: "POST", url: "%s", data: post_string, success: function(msg) { window.location = '%s'; //.reload() } }); } </script> """ % (settings.FACEBOOK_API_KEY, reverse('xd_receiver'), reverse('facebook_connect_ajax'), settings.LOGIN_REDIRECT_URL) def facebook_connect_script(parser, token): return FacebookScriptNode() register.tag(facebook_connect_script) class FacebookLoginNode(template.Node): def render(self, context): return "<fb:login-button onlogin='facebook_onlogin();'></fb:login-button>" def facebook_connect_login_button(parser, token): return FacebookLoginNode() register.tag(facebook_connect_login_button) **views.py** def login_facebook_connect(request): status = 'unknown failure' try: expires = request.POST['expires'] ss = request.POST['ss'] session_key = request.POST['session_key'] user = request.POST['user'] sig = request.POST['sig'] pre_hash_string = "expires=%ssession_key=%sss=%suser=%s%s" % ( expires, session_key, ss, user, settings.FACEBOOK_APPLICATION_SECRET, ) post_hash_string = hashlib.new('md5') post_hash_string.update(pre_hash_string) if post_hash_string.hexdigest() == sig: try: fb = FacebookUser.objects.get(facebook_id=user) status = "logged in existing user" except FacebookUser.DoesNotExist: contrib_user = User() contrib_user.save() contrib_user.username = u"fbuser_%s" % contrib_user.id fb = FacebookUser() fb.facebook_id = user fb.contrib_user = contrib_user temp = hashlib.new('sha1') temp.update(str(datetime.datetime.now())) password = temp.hexdigest() contrib_user.set_password(password) fb.contrib_password = password fb.save() contrib_user.save() status = "created new user" authenticated_user = auth.authenticate( username=fb.contrib_user.username, password=fb.contrib_password) auth.login(request, authenticated_user) else: status = 'wrong hash sig' logging.debug("FBConnect: user %s with exit status %s" % (user, status)) except Exception, e: logging.debug("Exception thrown in the FBConnect ajax call: %s" % e) return HttpResponse("%s" % status) def xd_receiver(request): return render_to_response('xd_receiver.html') in settings.py LOGIN_REDIRECT_URL = '/forgotPassword/' **html login part [registrationForm]** <p>Login via facebook!</p> {% load facebookconnect %} {% facebook_connect_login_button %} {% facebook_connect_script %} [1]: http://teebes.com/blog/13/django-facebook-connect-integration-with-ajax-no-middleware
python
django
facebook
facebook-connect
facebook-graph-api
null
open
setting call back url for facebook login in django app === i have created a django app, which has a facebook login option also. For doing it i was following this link [django-facebook connect with ajax][1]. I did everything as said by the link, and i am getting the user signed in with facebook connect. But after the user logs in from 'registrationForm'(FB log in button given) page, the outh page pop ups to enter username and password. when giving it the user is signed in but the same registrationForm comes again without redirecting the page. Can somebody help me to set a callback url after the FB logs in is success. for FB connect i am using the same code as given in the above site. **facebookconnect.py** class FacebookScriptNode(template.Node): def render(self, context): return """ <script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript"> FB.init("%s", "%s"); function facebook_onlogin() { var uid = FB.Facebook.apiClient.get_session().uid; var session_key = FB.Facebook.apiClient.get_session().session_key; var expires = FB.Facebook.apiClient.get_session().expires; var secret = FB.Facebook.apiClient.get_session().secret; var sig = FB.Facebook.apiClient.get_session().sig; fb_connect_ajax(expires, session_key, secret, uid, sig); } function fb_connect_ajax(expires, session_key, ss, user, sig) { var post_string = 'expires=' + expires; post_string = post_string + '&session_key=' + session_key; post_string = post_string + '&ss=' + ss; post_string = post_string + '&user=' + user; post_string = post_string + '&sig=' + sig; $.ajax({ type: "POST", url: "%s", data: post_string, success: function(msg) { window.location = '%s'; //.reload() } }); } </script> """ % (settings.FACEBOOK_API_KEY, reverse('xd_receiver'), reverse('facebook_connect_ajax'), settings.LOGIN_REDIRECT_URL) def facebook_connect_script(parser, token): return FacebookScriptNode() register.tag(facebook_connect_script) class FacebookLoginNode(template.Node): def render(self, context): return "<fb:login-button onlogin='facebook_onlogin();'></fb:login-button>" def facebook_connect_login_button(parser, token): return FacebookLoginNode() register.tag(facebook_connect_login_button) **views.py** def login_facebook_connect(request): status = 'unknown failure' try: expires = request.POST['expires'] ss = request.POST['ss'] session_key = request.POST['session_key'] user = request.POST['user'] sig = request.POST['sig'] pre_hash_string = "expires=%ssession_key=%sss=%suser=%s%s" % ( expires, session_key, ss, user, settings.FACEBOOK_APPLICATION_SECRET, ) post_hash_string = hashlib.new('md5') post_hash_string.update(pre_hash_string) if post_hash_string.hexdigest() == sig: try: fb = FacebookUser.objects.get(facebook_id=user) status = "logged in existing user" except FacebookUser.DoesNotExist: contrib_user = User() contrib_user.save() contrib_user.username = u"fbuser_%s" % contrib_user.id fb = FacebookUser() fb.facebook_id = user fb.contrib_user = contrib_user temp = hashlib.new('sha1') temp.update(str(datetime.datetime.now())) password = temp.hexdigest() contrib_user.set_password(password) fb.contrib_password = password fb.save() contrib_user.save() status = "created new user" authenticated_user = auth.authenticate( username=fb.contrib_user.username, password=fb.contrib_password) auth.login(request, authenticated_user) else: status = 'wrong hash sig' logging.debug("FBConnect: user %s with exit status %s" % (user, status)) except Exception, e: logging.debug("Exception thrown in the FBConnect ajax call: %s" % e) return HttpResponse("%s" % status) def xd_receiver(request): return render_to_response('xd_receiver.html') in settings.py LOGIN_REDIRECT_URL = '/forgotPassword/' **html login part [registrationForm]** <p>Login via facebook!</p> {% load facebookconnect %} {% facebook_connect_login_button %} {% facebook_connect_script %} [1]: http://teebes.com/blog/13/django-facebook-connect-integration-with-ajax-no-middleware
0
5,851,362
05/01/2011 20:57:55
354,065
03/11/2010 15:45:00
98
2
jQuery animations not working / behaving strangely in Internet Explorer
I'm developing a personal website, <http://www.miketurley.com>. In any Webkit browser (Chrome, Safari) or Firefox, when you mouse-over the text on my site's opening screen, you get a slick animation which slides the text around and reveals the menu ("waking up" my website.) This may not be too necessary, but I like it and I think it's appropriate to showcase skills like that on my portfolio website. Anyway, if you go to my website in Internet Explorer, the animations do not appear at all. The same duration of time goes by, and then the page "snaps" into the post-animation state in one frame, with no motion in between. How can I fix this? An explanation of this particular animation along with source code is available here: http://www.miketurley.com/index_explain.html
javascript
jquery
html
internet-explorer
jquery-animation
null
open
jQuery animations not working / behaving strangely in Internet Explorer === I'm developing a personal website, <http://www.miketurley.com>. In any Webkit browser (Chrome, Safari) or Firefox, when you mouse-over the text on my site's opening screen, you get a slick animation which slides the text around and reveals the menu ("waking up" my website.) This may not be too necessary, but I like it and I think it's appropriate to showcase skills like that on my portfolio website. Anyway, if you go to my website in Internet Explorer, the animations do not appear at all. The same duration of time goes by, and then the page "snaps" into the post-animation state in one frame, with no motion in between. How can I fix this? An explanation of this particular animation along with source code is available here: http://www.miketurley.com/index_explain.html
0
6,322,316
06/12/2011 13:53:24
780,324
06/01/2011 23:39:08
6
0
Accessing an array by index passed by function call
I have written a specific init-override-function where i want to pass an index number to be called in an array. The index number itself is defined by selecting a tablerow in a tableview by the user. So.. the rownumber that is selected shall be passed into the init function and used there for further processing. Well.. now there is my problem.. In my opinion the methods I've created are all correctly coded. But when I click my defined Connect Button an error message appears in the console, that, the index is out of bounds. So.. I've checked the array for entries and there are all available. So the indexnumber should be fine. Maybe fyi: I've created a copy of the array in the TableViewController that is originally located in the PortConnection file. Here are the necessary files. Can anyone give me a helping hand, where to search for? PORTTABLEVIEWCONTROLLER.M - (IBAction)pushConnect:(id)sender { NSInteger selectedRow = [tableView selectedRow]; [portConnection initPort:selectedRow]; } - (id)init { self = [super init]; if (self) { // Initialization of port Connection instance portConnection = [[PortConnection alloc] init]; // Fill array in Portconnection.m with devices [portConnection listDevices]; // Fill tableView Data Array with data from portConnection array self.tableViewDataArray = [NSMutableArray arrayWithArray:portConnection.portArray]; } return self; } PORTCONNECTION.H @ interface PortConnection : NSObject { // Instance of AMSerialPort AMSerialPort *port; // Port Array to be filled with found ports NSMutableArray *portArray; } // List Devices into an given array - (void)listDevices; // Connect to selected port - (void)initPort:(NSInteger)selectedRow; @property (nonatomic, retain) NSMutableArray *portArray; @property (nonatomic, retain) AMSerialPort *port; @end PORTCONNECTION.M @implementation PortConnection @synthesize port; @synthesize portArray; #pragma mark - #pragma mark Serial Port Access - (void)listDevices { // get an port enumerator NSEnumerator *enumerator = [AMSerialPortList portEnumerator]; AMSerialPort *aPort; while ((aPort = [enumerator nextObject])) { [portArray addObject:[PortItem portItemWithTitle:[aPort name] andPath:[aPort bsdPath]]]; } } - (void)initPort:(NSInteger)selectedRow { //Create object of selected port searched in array PortItem *portSelected = [portArray objectAtIndex:selectedRow]; NSString *deviceNameSelected = [portSelected valueForKey:@"bsdPath"]; // Start Connection if (![deviceNameSelected isEqualToString:[self.port bsdPath]]) { [self.port close]; [self setPort:[[[AMSerialPort alloc] init:deviceNameSelected withName:deviceNameSelected type:(NSString *)CFSTR(kIOSerialBSDModemType)] autorelease]]; [self.port setDelegate:self.port]; if ([self.port open]) { NSLog(@"Connected..."); [self.port setSpeed:B38400]; [self.port readDataInBackground]; } else { NSLog(@"error connecting"); [self setPort:nil]; } } } #pragma mark - #pragma mark initialization / deallocation - (id)init { self = [super init]; if (self) { portArray = [NSMutableArray array]; } return self; } - (void)dealloc { portArray = NULL; [super dealloc]; } @end Well.. my idea is, that something is wrong with the method INITPORT:(NSINTEGER)SELECTEDROW but I am not sure at all.... Thanks so much for giving me advice again! Sebastian
arrays
cocoa
function
variables
objective-c-2.0
null
open
Accessing an array by index passed by function call === I have written a specific init-override-function where i want to pass an index number to be called in an array. The index number itself is defined by selecting a tablerow in a tableview by the user. So.. the rownumber that is selected shall be passed into the init function and used there for further processing. Well.. now there is my problem.. In my opinion the methods I've created are all correctly coded. But when I click my defined Connect Button an error message appears in the console, that, the index is out of bounds. So.. I've checked the array for entries and there are all available. So the indexnumber should be fine. Maybe fyi: I've created a copy of the array in the TableViewController that is originally located in the PortConnection file. Here are the necessary files. Can anyone give me a helping hand, where to search for? PORTTABLEVIEWCONTROLLER.M - (IBAction)pushConnect:(id)sender { NSInteger selectedRow = [tableView selectedRow]; [portConnection initPort:selectedRow]; } - (id)init { self = [super init]; if (self) { // Initialization of port Connection instance portConnection = [[PortConnection alloc] init]; // Fill array in Portconnection.m with devices [portConnection listDevices]; // Fill tableView Data Array with data from portConnection array self.tableViewDataArray = [NSMutableArray arrayWithArray:portConnection.portArray]; } return self; } PORTCONNECTION.H @ interface PortConnection : NSObject { // Instance of AMSerialPort AMSerialPort *port; // Port Array to be filled with found ports NSMutableArray *portArray; } // List Devices into an given array - (void)listDevices; // Connect to selected port - (void)initPort:(NSInteger)selectedRow; @property (nonatomic, retain) NSMutableArray *portArray; @property (nonatomic, retain) AMSerialPort *port; @end PORTCONNECTION.M @implementation PortConnection @synthesize port; @synthesize portArray; #pragma mark - #pragma mark Serial Port Access - (void)listDevices { // get an port enumerator NSEnumerator *enumerator = [AMSerialPortList portEnumerator]; AMSerialPort *aPort; while ((aPort = [enumerator nextObject])) { [portArray addObject:[PortItem portItemWithTitle:[aPort name] andPath:[aPort bsdPath]]]; } } - (void)initPort:(NSInteger)selectedRow { //Create object of selected port searched in array PortItem *portSelected = [portArray objectAtIndex:selectedRow]; NSString *deviceNameSelected = [portSelected valueForKey:@"bsdPath"]; // Start Connection if (![deviceNameSelected isEqualToString:[self.port bsdPath]]) { [self.port close]; [self setPort:[[[AMSerialPort alloc] init:deviceNameSelected withName:deviceNameSelected type:(NSString *)CFSTR(kIOSerialBSDModemType)] autorelease]]; [self.port setDelegate:self.port]; if ([self.port open]) { NSLog(@"Connected..."); [self.port setSpeed:B38400]; [self.port readDataInBackground]; } else { NSLog(@"error connecting"); [self setPort:nil]; } } } #pragma mark - #pragma mark initialization / deallocation - (id)init { self = [super init]; if (self) { portArray = [NSMutableArray array]; } return self; } - (void)dealloc { portArray = NULL; [super dealloc]; } @end Well.. my idea is, that something is wrong with the method INITPORT:(NSINTEGER)SELECTEDROW but I am not sure at all.... Thanks so much for giving me advice again! Sebastian
0
8,208,536
11/21/2011 07:30:28
621,092
02/17/2011 09:37:58
16
0
sudoers configuration
I have two scripts: 1. `getPwd.pl` owned by secure:users - returns a DB password. 2. `connectDB.pl` owned by alice:users - calls getPwd and uses the password returned to connect to a DB I want to set up sudo so that : 1. only user alice can call `getPwd.pl` 2. no password required by user alice to execute `getPwd.pl` Please assist in editing the sudoers file.
sudo
sudoers
null
null
null
11/21/2011 19:37:07
off topic
sudoers configuration === I have two scripts: 1. `getPwd.pl` owned by secure:users - returns a DB password. 2. `connectDB.pl` owned by alice:users - calls getPwd and uses the password returned to connect to a DB I want to set up sudo so that : 1. only user alice can call `getPwd.pl` 2. no password required by user alice to execute `getPwd.pl` Please assist in editing the sudoers file.
2
9,114,932
02/02/2012 15:26:40
1,092,904
12/12/2011 01:06:57
31
0
Test Criteria and Benchmarking of Matrix Solver
My questions pertain to evaluation of large fast linear solver obtained in a settlement. In order to evaluate this fast large-matrix linear solver, I am looking for particularly brutal test cases and benchmarks against the world's top linear solvers. The solver I am brutally testing excels for extremely large problems and that is its primary application domain. Both general thoughts on criteria as well as specific benchmarks are greatly appreciated.
matrix
benchmarking
numerical
linear
solver
02/05/2012 16:02:54
not constructive
Test Criteria and Benchmarking of Matrix Solver === My questions pertain to evaluation of large fast linear solver obtained in a settlement. In order to evaluate this fast large-matrix linear solver, I am looking for particularly brutal test cases and benchmarks against the world's top linear solvers. The solver I am brutally testing excels for extremely large problems and that is its primary application domain. Both general thoughts on criteria as well as specific benchmarks are greatly appreciated.
4
10,394,839
05/01/2012 07:31:29
1,103,284
10/08/2011 11:20:54
629
18
convert the image to text in android usisng image processing?
hi i am doing a project to detect the Indian currency i have go through various algorithm and OCR.but i did not find any solution finally i have got a link of euro note detection the link of euro note detection is given [here][1] [1]: http://euro-recognition.prv.pl/download.html also i have find similar project tesseract and most of the image recognition project are on ndk and i dont know that now can any one find me a solution.i also go through open cv
android
image-processing
ocr
null
null
05/20/2012 01:48:11
not a real question
convert the image to text in android usisng image processing? === hi i am doing a project to detect the Indian currency i have go through various algorithm and OCR.but i did not find any solution finally i have got a link of euro note detection the link of euro note detection is given [here][1] [1]: http://euro-recognition.prv.pl/download.html also i have find similar project tesseract and most of the image recognition project are on ndk and i dont know that now can any one find me a solution.i also go through open cv
1
10,083,649
04/10/2012 05:41:41
1,031,117
11/05/2011 13:24:18
848
153
How to get my facebook application user's other application list?
I am creating one facebook application which need to know our application user is using which other application.. I search on google for this type of things but fails.. If any one know please let me know, and first let me know is it possible or not. Thanks in Advance.
php
javascript
facebook
null
null
null
open
How to get my facebook application user's other application list? === I am creating one facebook application which need to know our application user is using which other application.. I search on google for this type of things but fails.. If any one know please let me know, and first let me know is it possible or not. Thanks in Advance.
0
9,943,853
03/30/2012 13:22:50
1,014,576
10/26/2011 12:48:20
3
0
Wordpress plugin help needed
I am working on a site that is a third party recruitment site. Site basically acts as an intermediary between candidate and employers. for this i have to do alot of custom programming in WP. Is there any plugin available to manage the jobs, profiles of employers, candidates etc?
php
wordpress
content-management-system
wordpress-plugin
null
03/31/2012 15:24:50
off topic
Wordpress plugin help needed === I am working on a site that is a third party recruitment site. Site basically acts as an intermediary between candidate and employers. for this i have to do alot of custom programming in WP. Is there any plugin available to manage the jobs, profiles of employers, candidates etc?
2
11,063,015
06/16/2012 11:28:29
1,436,998
06/05/2012 09:27:31
50
0
fetch xml data from database and then dispaly it
i have a column in my database (longtext) with only xml data, and i'm trying to fetch it from the data base and then display each data from it, var dump gives me this : array(1) { ["xmldata"]=> string(916) "<?xml version=\"1.0\" encoding=\"UTF-8\" ?> <form> <FormSubject>test</FormSubject> <FormRecipient>test2</FormRecipient> .... </form>" } i fetched it with mysql_fetch_assoc; and i'm trying to do foreach like this : $row = mysql_fetch_assoc($result); foreach($row as $line) { $test = $line['FormSubject']; print("$test"); } but it gives me nothing, please help, thanks
php
xml
php5
xml-parsing
null
06/16/2012 13:01:34
not a real question
fetch xml data from database and then dispaly it === i have a column in my database (longtext) with only xml data, and i'm trying to fetch it from the data base and then display each data from it, var dump gives me this : array(1) { ["xmldata"]=> string(916) "<?xml version=\"1.0\" encoding=\"UTF-8\" ?> <form> <FormSubject>test</FormSubject> <FormRecipient>test2</FormRecipient> .... </form>" } i fetched it with mysql_fetch_assoc; and i'm trying to do foreach like this : $row = mysql_fetch_assoc($result); foreach($row as $line) { $test = $line['FormSubject']; print("$test"); } but it gives me nothing, please help, thanks
1
11,423,373
07/10/2012 23:16:19
1,516,229
07/10/2012 23:05:08
1
0
error message:wait_fences: failed to receive reply: 10004003
I do have the same error message:wait_fences: failed to receive reply: 10004003 and here is what my code looks like. What am I doing wrong? - (IBAction)car:(UIButton *) sender { NSString * title1 = [sender titleForState:UIControlStateNormal]; _mylabel.text = title1; UIAlertView *prompt = [[UIAlertView alloc] initWithTitle:@"Expense Amount in $:" message:@"\n\n" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Enter", nil]; _textField = [[UITextField alloc] initWithFrame:CGRectMake(12, 50, 260, 25)]; [_textField setBackgroundColor:[UIColor whiteColor]]; [_textField setPlaceholder:@"Amount"]; [prompt addSubview:_textField]; _textField.keyboardType = UIKeyboardTypeNumberPad; // show the dialog box [prompt show]; // set cursor and show keyboard [_textField becomeFirstResponder]; }
objective-c
null
null
null
null
07/12/2012 02:08:39
not a real question
error message:wait_fences: failed to receive reply: 10004003 === I do have the same error message:wait_fences: failed to receive reply: 10004003 and here is what my code looks like. What am I doing wrong? - (IBAction)car:(UIButton *) sender { NSString * title1 = [sender titleForState:UIControlStateNormal]; _mylabel.text = title1; UIAlertView *prompt = [[UIAlertView alloc] initWithTitle:@"Expense Amount in $:" message:@"\n\n" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Enter", nil]; _textField = [[UITextField alloc] initWithFrame:CGRectMake(12, 50, 260, 25)]; [_textField setBackgroundColor:[UIColor whiteColor]]; [_textField setPlaceholder:@"Amount"]; [prompt addSubview:_textField]; _textField.keyboardType = UIKeyboardTypeNumberPad; // show the dialog box [prompt show]; // set cursor and show keyboard [_textField becomeFirstResponder]; }
1
11,687,592
07/27/2012 12:17:14
1,491,485
06/29/2012 15:03:10
6
0
Which commercial(or free) 3d Engine should i choose to write a 3d Game Skyrim clone?
the question is which 3D Engine should i choose to make an awesome graphics like in Skyrim game where everything is moving (leaves, trees, grass etc.)open area? Now i have only very costly engines like Chrome 3D 4(? usd), Cryengine 3(? usd), Unigine(25000 usd). With free we have OGRE and Irrlicht but i don`t know if they will be suitable for this level of graphics. Also we have Essenthel(which is purely documentated) and C4(which have a ploblem with open areas). Budget is 1000 usd. Thanks.
c++
opengl
3d
directx
engine
07/27/2012 12:27:25
off topic
Which commercial(or free) 3d Engine should i choose to write a 3d Game Skyrim clone? === the question is which 3D Engine should i choose to make an awesome graphics like in Skyrim game where everything is moving (leaves, trees, grass etc.)open area? Now i have only very costly engines like Chrome 3D 4(? usd), Cryengine 3(? usd), Unigine(25000 usd). With free we have OGRE and Irrlicht but i don`t know if they will be suitable for this level of graphics. Also we have Essenthel(which is purely documentated) and C4(which have a ploblem with open areas). Budget is 1000 usd. Thanks.
2
1,727,621
11/13/2009 07:05:53
97,550
04/29/2009 07:31:19
53
0
How to stop process in GNU Screen
after I run ping command under the screen, I want to stop ping command, but when I press ctrl c , the screen is also terminate. how can I stop the command but not leave the screen session? I run screen in ubuntu 9.10(karamic)
gnu-screen
screen
ubuntu
null
null
10/05/2011 14:18:11
off topic
How to stop process in GNU Screen === after I run ping command under the screen, I want to stop ping command, but when I press ctrl c , the screen is also terminate. how can I stop the command but not leave the screen session? I run screen in ubuntu 9.10(karamic)
2
8,877,232
01/16/2012 08:18:05
1,082,813
12/06/2011 04:06:25
11
1
Is it reliable to use mysqlnd in production?
Though mysqlnd has great advantages, I don't know how many application use it in production.
php
mysql
mysqli
null
null
01/16/2012 08:40:23
not a real question
Is it reliable to use mysqlnd in production? === Though mysqlnd has great advantages, I don't know how many application use it in production.
1
7,471,158
09/19/2011 12:47:06
701,870
04/11/2011 09:23:12
49
1
Google flight search fastness
Any one knows the technology behind the Google Flight search? Results show up super fast when I move around price range, data range, and duration range under the search options. There is no delay even on slow Internet connections. Not sure if it matters much, I was doing all this on latest Chrome.
google
google-chrome
null
null
null
09/19/2011 20:43:43
off topic
Google flight search fastness === Any one knows the technology behind the Google Flight search? Results show up super fast when I move around price range, data range, and duration range under the search options. There is no delay even on slow Internet connections. Not sure if it matters much, I was doing all this on latest Chrome.
2
11,734,049
07/31/2012 06:01:27
552,249
12/23/2010 10:11:58
359
22
search algorithm in SPARQL?
I have two questions regarding the SPARQL in fetching data from RDF. 1. What underlying search algorithm does SPARQL uses to fetch the data? 2. How do i use the different search algorithm to fetch data from RDF?
algorithm
data-structures
graph
rdf
sparql
null
open
search algorithm in SPARQL? === I have two questions regarding the SPARQL in fetching data from RDF. 1. What underlying search algorithm does SPARQL uses to fetch the data? 2. How do i use the different search algorithm to fetch data from RDF?
0
7,367,323
09/09/2011 20:52:22
838,359
07/11/2011 06:48:16
42
0
convert strings of type mm/dd/yyyy h to date time
I have a function which converts all of the strings to datetime. ALTER FUNCTION formatit( @fromtime VARCHAR(50) -- varchar ) RETURNS DATETIME AS BEGIN DECLARE @from datetime IF (CHARINDEX('NOON',@fromtime,0)) = 0 SET @from = CONVERT(DATETIME, @fromtime) ELSE SET @from =CONVERT(DATETIME, '01/01/2000 12pm') RETURN(@from) END SELECT dbo.formatit('04/12/2011 12 ') So when u see the last select stmt it throws an error saying: The conversion of a char data type to a datetime data type resulted in an out-of- range datetime value. It works fine if i give time 4 pm or 4:00. But it gives an error if i give just 4. Kindly let me know how i can handle this?
sql
sql-server-2008
null
null
null
null
open
convert strings of type mm/dd/yyyy h to date time === I have a function which converts all of the strings to datetime. ALTER FUNCTION formatit( @fromtime VARCHAR(50) -- varchar ) RETURNS DATETIME AS BEGIN DECLARE @from datetime IF (CHARINDEX('NOON',@fromtime,0)) = 0 SET @from = CONVERT(DATETIME, @fromtime) ELSE SET @from =CONVERT(DATETIME, '01/01/2000 12pm') RETURN(@from) END SELECT dbo.formatit('04/12/2011 12 ') So when u see the last select stmt it throws an error saying: The conversion of a char data type to a datetime data type resulted in an out-of- range datetime value. It works fine if i give time 4 pm or 4:00. But it gives an error if i give just 4. Kindly let me know how i can handle this?
0
3,440,999
08/09/2010 14:27:36
51,649
01/05/2009 13:47:38
1,024
31
Match a Comma that isn't within quotes
I am trying to write a regex that will allow me to parse CSV files that excel creates. I have noticed when you export a CSV from excel, if the field is a string it will encase it in quotes. If that string contains quotes itself, it will escape each quote with a quote!! What I want to do is split each line that I parse into fields. In light of the above, I have to split when there is a comma that is not within quotes. My regex is terrible, so how would I do this? I can split by a comma, but how do I say when its not in between quotes?? $lines = file($toce_path); foreach ($lines as $line) { $line_array = preg_split("/,/", $line); $test = "($line_array[0], $line_array[1], $line_array[2])"; echo $test.'<br />'; } [This question][1] is exactly like mine but it doesn't work with preg_split. Preg_split requires Perl-compatible regular expression syntax. Thanks all for any help [1]: http://stackoverflow.com/questions/1757065/java-splitting-a-comma-separated-string-but-ignoring-commas-in-quotes
php
regex
null
null
null
null
open
Match a Comma that isn't within quotes === I am trying to write a regex that will allow me to parse CSV files that excel creates. I have noticed when you export a CSV from excel, if the field is a string it will encase it in quotes. If that string contains quotes itself, it will escape each quote with a quote!! What I want to do is split each line that I parse into fields. In light of the above, I have to split when there is a comma that is not within quotes. My regex is terrible, so how would I do this? I can split by a comma, but how do I say when its not in between quotes?? $lines = file($toce_path); foreach ($lines as $line) { $line_array = preg_split("/,/", $line); $test = "($line_array[0], $line_array[1], $line_array[2])"; echo $test.'<br />'; } [This question][1] is exactly like mine but it doesn't work with preg_split. Preg_split requires Perl-compatible regular expression syntax. Thanks all for any help [1]: http://stackoverflow.com/questions/1757065/java-splitting-a-comma-separated-string-but-ignoring-commas-in-quotes
0
7,846,292
10/21/2011 07:29:57
997,102
10/15/2011 17:57:16
9
2
A web service to call a web service
Can a web service be so designed, that it inturns calls another web service? (Till date i dont know if we can do this!) If yes, then can I have an infinite looping of web services calling each other alternatively?
web-services
null
null
null
null
null
open
A web service to call a web service === Can a web service be so designed, that it inturns calls another web service? (Till date i dont know if we can do this!) If yes, then can I have an infinite looping of web services calling each other alternatively?
0
4,204,964
11/17/2010 13:45:29
487,629
10/26/2010 12:54:00
1
0
Please help me how to do this type of Application in Android
I am forwarding linkto see,I am really getting problems to do this,i need to get images(.jpg,.jpeg) and text from server ,Please help how to solve this plz send me any sample i have deadlines till now work not in progress http://www.google.com/imgres?imgurl=http://openhandsetmagazine.com/wp-content/uploads/2009/03/friendmobilizer.png&imgrefurl=http://openhandsetmagazine.com/tag/friendmobilizer/&h=480&w=320&sz=33&tbnid=cHOSF9xqU3JsfM:&tbnh=275&tbnw=183&prev=/images%3Fq%3Dfacebook%2Bandroid%2Bimages&zoom=1&q=facebook+android+images&hl=en&usg=__K7mRdgTTt_xn_r1Yif9p9p6sr34=&sa=X&ei=w9fjTNf4D5HKvQPS1oC5Dg&sqi=2&ved=0CBYQ9QEwAA
android
null
null
null
null
11/17/2010 14:09:13
not a real question
Please help me how to do this type of Application in Android === I am forwarding linkto see,I am really getting problems to do this,i need to get images(.jpg,.jpeg) and text from server ,Please help how to solve this plz send me any sample i have deadlines till now work not in progress http://www.google.com/imgres?imgurl=http://openhandsetmagazine.com/wp-content/uploads/2009/03/friendmobilizer.png&imgrefurl=http://openhandsetmagazine.com/tag/friendmobilizer/&h=480&w=320&sz=33&tbnid=cHOSF9xqU3JsfM:&tbnh=275&tbnw=183&prev=/images%3Fq%3Dfacebook%2Bandroid%2Bimages&zoom=1&q=facebook+android+images&hl=en&usg=__K7mRdgTTt_xn_r1Yif9p9p6sr34=&sa=X&ei=w9fjTNf4D5HKvQPS1oC5Dg&sqi=2&ved=0CBYQ9QEwAA
1
11,219,550
06/27/2012 04:45:19
1,415,119
05/24/2012 13:02:58
11
0
ethernet not detected on leopard dm368
i am using leopard dm368 evaluation board with arm9 processor.when i am connecting ethernet cable to the board light is not glowing.i want to know whats the problem.ethernet driver has been included in the configuration file.Can anyone suggest why ethernet is not getting detected on the eval board??
linux
embedded
null
null
null
06/27/2012 21:46:30
off topic
ethernet not detected on leopard dm368 === i am using leopard dm368 evaluation board with arm9 processor.when i am connecting ethernet cable to the board light is not glowing.i want to know whats the problem.ethernet driver has been included in the configuration file.Can anyone suggest why ethernet is not getting detected on the eval board??
2
7,789,669
10/17/2011 05:21:16
998,540
10/17/2011 05:04:29
1
0
Print scaling for multiple page in objective C
I m facing problem on scaling custom view for multi page printing in objective C for Mac, Thanks Manindra Cocoa Developer
objective-c
null
null
null
null
10/18/2011 06:09:58
not a real question
Print scaling for multiple page in objective C === I m facing problem on scaling custom view for multi page printing in objective C for Mac, Thanks Manindra Cocoa Developer
1
10,549,110
05/11/2012 09:50:13
1,003,183
10/19/2011 13:03:58
15
1
IP Address API - IPaddressAPI.com
We're looking for an IP Address lookup service with an API. Just something really simple and quick, here's an IP, tell me all about it including the organisation name if possible - sort of thing... Does anyone have experience with IPaddressAPI.com ..? It's looks perfect for what we need, but I thought I'd see if anyone else using it could give me a quick thumbs up or down. Thanks!
api
ip
null
null
null
05/11/2012 10:42:54
not constructive
IP Address API - IPaddressAPI.com === We're looking for an IP Address lookup service with an API. Just something really simple and quick, here's an IP, tell me all about it including the organisation name if possible - sort of thing... Does anyone have experience with IPaddressAPI.com ..? It's looks perfect for what we need, but I thought I'd see if anyone else using it could give me a quick thumbs up or down. Thanks!
4
11,443,690
07/12/2012 00:57:43
366,797
01/23/2010 04:19:59
574
83
How can I generate unique random CHAR(6) with values “AAAAAA” to “ZZZZZZ”?
Informix (All version up to 10 years old): CAVEAT: I'm not a sophisticated developer, as some of you already know, but maybe you could help me out with a rough design for this? I would like to mimic the way airline reservation systems randomly generate unique record locators for their primary keys. None of the resulting values can form obscene words or other specified patterns, so a separate lookup table containing the prohibited values is required.
informix
null
null
null
null
07/12/2012 12:35:46
not a real question
How can I generate unique random CHAR(6) with values “AAAAAA” to “ZZZZZZ”? === Informix (All version up to 10 years old): CAVEAT: I'm not a sophisticated developer, as some of you already know, but maybe you could help me out with a rough design for this? I would like to mimic the way airline reservation systems randomly generate unique record locators for their primary keys. None of the resulting values can form obscene words or other specified patterns, so a separate lookup table containing the prohibited values is required.
1
4,999,234
02/15/2011 01:55:33
614,563
02/12/2011 21:21:57
3
0
Is there a way to know when an app is deleted in iOS?
my problem is this: I have scheduled some UILocalNotifications on an iOS app, the problem is that if I delete the app without deleting the objects associated with the notifications (and consequently removing the notifications from the scheduledNotifications array) the notifications still fire. Although I have not experienced them actually firing (they are set to repeat within a week's interval) I have evidence of this since I NSLog the scheduledNotifications array at application launch, which even after deleting the app and reinstalling it (with the entities of the data model gone), still shows some scheduled notifications. I've searched the UIApplication and the UIApplicationDelegate reference in Apple's reference library but I found no method to know if the app is being deleted, if there is I would just write [[UIApplication sharedApplication] cancelAllLocalNotifications]; in said method. So, is there a way for knowing this? Thank you in advance, your help is very much appreciated.
iphone
objective-c
ios
uilocalnotification
null
null
open
Is there a way to know when an app is deleted in iOS? === my problem is this: I have scheduled some UILocalNotifications on an iOS app, the problem is that if I delete the app without deleting the objects associated with the notifications (and consequently removing the notifications from the scheduledNotifications array) the notifications still fire. Although I have not experienced them actually firing (they are set to repeat within a week's interval) I have evidence of this since I NSLog the scheduledNotifications array at application launch, which even after deleting the app and reinstalling it (with the entities of the data model gone), still shows some scheduled notifications. I've searched the UIApplication and the UIApplicationDelegate reference in Apple's reference library but I found no method to know if the app is being deleted, if there is I would just write [[UIApplication sharedApplication] cancelAllLocalNotifications]; in said method. So, is there a way for knowing this? Thank you in advance, your help is very much appreciated.
0
6,355,225
06/15/2011 08:52:13
196,963
10/26/2009 23:08:24
639
19
Expand Abstract Java Class for all instances
I'm working on a grails application atm. I need a property on an abstract java class (`org.quartz.Trigger`) adding Trigger.metaClass.id = { delegate.hashCode() } before I call the class works. I would like to enable this for all my Triggers in my application. Is this possible? Or do I have to repeat this everytime I need the property?
java
grails
groovy
metaprogramming
null
null
open
Expand Abstract Java Class for all instances === I'm working on a grails application atm. I need a property on an abstract java class (`org.quartz.Trigger`) adding Trigger.metaClass.id = { delegate.hashCode() } before I call the class works. I would like to enable this for all my Triggers in my application. Is this possible? Or do I have to repeat this everytime I need the property?
0
10,317,056
04/25/2012 13:46:46
584,081
01/21/2011 06:59:32
260
1
Identifying cryptography cipher
009327A0 /$ 53 PUSH EBX 009327A1 |. 55 PUSH EBP 009327A2 |. 56 PUSH ESI 009327A3 |. 8BF0 MOV ESI,EAX 009327A5 |. 8B56 04 MOV EDX,DWORD PTR DS:[ESI+4] 009327A8 |. 8B4424 10 MOV EAX,DWORD PTR SS:[ESP+10] ; yo3.009331A3 009327AC |. 57 PUSH EDI 009327AD |. 8B3E MOV EDI,DWORD PTR DS:[ESI] 009327AF |. 8B4F 44 MOV ECX,DWORD PTR DS:[EDI+44] 009327B2 |. 3308 XOR ECX,DWORD PTR DS:[EAX] 009327B4 |. 8BC1 MOV EAX,ECX 009327B6 |. C1E8 10 SHR EAX,10 009327B9 |. 25 FF000000 AND EAX,0FF 009327BE |. 8B8482 00040000 MOV EAX,DWORD PTR DS:[EDX+EAX*4+400] 009327C5 |. 8BD9 MOV EBX,ECX 009327C7 |. C1EB 18 SHR EBX,18 009327CA |. 03049A ADD EAX,DWORD PTR DS:[EDX+EBX*4] 009327CD |. 8BD9 MOV EBX,ECX 009327CF |. C1EB 08 SHR EBX,8 009327D2 |. 81E3 FF000000 AND EBX,0FF 009327D8 |. 33849A 00080000 XOR EAX,DWORD PTR DS:[EDX+EBX*4+800] 009327DF |. 8BD9 MOV EBX,ECX 009327E1 |. 81E3 FF000000 AND EBX,0FF 009327E7 |. 03849A 000C0000 ADD EAX,DWORD PTR DS:[EDX+EBX*4+C00] 009327EE |. 8B5C24 18 MOV EBX,DWORD PTR SS:[ESP+18] 009327F2 |. 3347 40 XOR EAX,DWORD PTR DS:[EDI+40] 009327F5 |. 3303 XOR EAX,DWORD PTR DS:[EBX] 009327F7 |. 8BD8 MOV EBX,EAX 009327F9 |. C1EB 10 SHR EBX,10 009327FC |. 81E3 FF000000 AND EBX,0FF 00932802 |. 8B9C9A 00040000 MOV EBX,DWORD PTR DS:[EDX+EBX*4+400] 00932809 |. 8BE8 MOV EBP,EAX 0093280B |. C1ED 18 SHR EBP,18 0093280E |. 031CAA ADD EBX,DWORD PTR DS:[EDX+EBP*4] 00932811 |. 8BE8 MOV EBP,EAX 00932813 |. C1ED 08 SHR EBP,8 00932816 |. 81E5 FF000000 AND EBP,0FF 0093281C |. 339CAA 00080000 XOR EBX,DWORD PTR DS:[EDX+EBP*4+800] 00932823 |. 8BE8 MOV EBP,EAX 00932825 |. 81E5 FF000000 AND EBP,0FF 0093282B |. 039CAA 000C0000 ADD EBX,DWORD PTR DS:[EDX+EBP*4+C00] 00932832 |. 335F 3C XOR EBX,DWORD PTR DS:[EDI+3C] 00932835 |. 33CB XOR ECX,EBX 00932837 |. 8BD9 MOV EBX,ECX 00932839 |. C1EB 10 SHR EBX,10 0093283C |. 81E3 FF000000 AND EBX,0FF 00932842 |. 8B9C9A 00040000 MOV EBX,DWORD PTR DS:[EDX+EBX*4+400] 00932849 |. 8BE9 MOV EBP,ECX 0093284B |. C1ED 18 SHR EBP,18 0093284E |. 031CAA ADD EBX,DWORD PTR DS:[EDX+EBP*4] 00932851 |. 8BE9 MOV EBP,ECX 00932853 |. C1ED 08 SHR EBP,8 00932856 |. 81E5 FF000000 AND EBP,0FF 0093285C |. 339CAA 00080000 XOR EBX,DWORD PTR DS:[EDX+EBP*4+800] 00932863 |. 8BE9 MOV EBP,ECX 00932865 |. 81E5 FF000000 AND EBP,0FF 0093286B |. 039CAA 000C0000 ADD EBX,DWORD PTR DS:[EDX+EBP*4+C00] 00932872 |. 335F 38 XOR EBX,DWORD PTR DS:[EDI+38] 00932875 |. 33C3 XOR EAX,EBX 00932877 |. 8BD8 MOV EBX,EAX 00932879 |. C1EB 10 SHR EBX,10 0093287C |. 81E3 FF000000 AND EBX,0FF 00932882 |. 8B9C9A 00040000 MOV EBX,DWORD PTR DS:[EDX+EBX*4+400] 00932889 |. 8BE8 MOV EBP,EAX 0093288B |. C1ED 18 SHR EBP,18 0093288E |. 031CAA ADD EBX,DWORD PTR DS:[EDX+EBP*4] 00932891 |. 8BE8 MOV EBP,EAX 00932893 |. C1ED 08 SHR EBP,8 00932896 |. 81E5 FF000000 AND EBP,0FF 0093289C |. 339CAA 00080000 XOR EBX,DWORD PTR DS:[EDX+EBP*4+800] 009328A3 |. 8BE8 MOV EBP,EAX 009328A5 |. 81E5 FF000000 AND EBP,0FF 009328AB |. 039CAA 000C0000 ADD EBX,DWORD PTR DS:[EDX+EBP*4+C00] 009328B2 |. 335F 34 XOR EBX,DWORD PTR DS:[EDI+34] 009328B5 |. 33CB XOR ECX,EBX 009328B7 |. 8BD9 MOV EBX,ECX 009328B9 |. C1EB 10 SHR EBX,10 009328BC |. 81E3 FF000000 AND EBX,0FF 009328C2 |. 8B9C9A 00040000 MOV EBX,DWORD PTR DS:[EDX+EBX*4+400] 009328C9 |. 8BE9 MOV EBP,ECX 009328CB |. C1ED 18 SHR EBP,18 009328CE |. 031CAA ADD EBX,DWORD PTR DS:[EDX+EBP*4] 009328D1 |. 8BE9 MOV EBP,ECX 009328D3 |. C1ED 08 SHR EBP,8 009328D6 |. 81E5 FF000000 AND EBP,0FF 009328DC |. 339CAA 00080000 XOR EBX,DWORD PTR DS:[EDX+EBP*4+800] 009328E3 |. 8BE9 MOV EBP,ECX 009328E5 |. 81E5 FF000000 AND EBP,0FF 009328EB |. 039CAA 000C0000 ADD EBX,DWORD PTR DS:[EDX+EBP*4+C00] 009328F2 |. 8BF2 MOV ESI,EDX 009328F4 |. 335F 30 XOR EBX,DWORD PTR DS:[EDI+30] 009328F7 |. 33C3 XOR EAX,EBX 009328F9 |. 8BD8 MOV EBX,EAX 009328FB |. C1EB 10 SHR EBX,10 009328FE |. 81E3 FF000000 AND EBX,0FF 00932904 |. 8B9C9A 00040000 MOV EBX,DWORD PTR DS:[EDX+EBX*4+400] 0093290B |. 8BE8 MOV EBP,EAX 0093290D |. C1ED 18 SHR EBP,18 00932910 |. 031CAA ADD EBX,DWORD PTR DS:[EDX+EBP*4] 00932913 |. 8BE8 MOV EBP,EAX 00932915 |. C1ED 08 SHR EBP,8 00932918 |. 81E5 FF000000 AND EBP,0FF 0093291E |. 339CAA 00080000 XOR EBX,DWORD PTR DS:[EDX+EBP*4+800] 00932925 |. 8BE8 MOV EBP,EAX 00932927 |. 81E5 FF000000 AND EBP,0FF 0093292D |. 039CAA 000C0000 ADD EBX,DWORD PTR DS:[EDX+EBP*4+C00] 00932934 |. 335F 2C XOR EBX,DWORD PTR DS:[EDI+2C] 00932937 |. 33CB XOR ECX,EBX 00932939 |. 8BD9 MOV EBX,ECX 0093293B |. C1EB 10 SHR EBX,10 0093293E |. 81E3 FF000000 AND EBX,0FF 00932944 |. 8B9C9A 00040000 MOV EBX,DWORD PTR DS:[EDX+EBX*4+400] 0093294B |. 8BE9 MOV EBP,ECX 0093294D |. C1ED 18 SHR EBP,18 00932950 |. 031CAA ADD EBX,DWORD PTR DS:[EDX+EBP*4] 00932953 |. 8BE9 MOV EBP,ECX 00932955 |. C1ED 08 SHR EBP,8 00932958 |. 81E5 FF000000 AND EBP,0FF 0093295E |. 339CAA 00080000 XOR EBX,DWORD PTR DS:[EDX+EBP*4+800] 00932965 |. 8BE9 MOV EBP,ECX 00932967 |. 81E5 FF000000 AND EBP,0FF 0093296D |. 039CAA 000C0000 ADD EBX,DWORD PTR DS:[EDX+EBP*4+C00] 00932974 |. 335F 28 XOR EBX,DWORD PTR DS:[EDI+28] 00932977 |. 33C3 XOR EAX,EBX 00932979 |. 8BD8 MOV EBX,EAX 0093297B |. C1EB 10 SHR EBX,10 0093297E |. 81E3 FF000000 AND EBX,0FF 00932984 |. 8B9C9A 00040000 MOV EBX,DWORD PTR DS:[EDX+EBX*4+400] 0093298B |. 8BE8 MOV EBP,EAX 0093298D |. C1ED 18 SHR EBP,18 00932990 |. 031CAA ADD EBX,DWORD PTR DS:[EDX+EBP*4] 00932993 |. 8BE8 MOV EBP,EAX 00932995 |. C1ED 08 SHR EBP,8 00932998 |. 81E5 FF000000 AND EBP,0FF 0093299E |. 339CAA 00080000 XOR EBX,DWORD PTR DS:[EDX+EBP*4+800] 009329A5 |. 8BE8 MOV EBP,EAX 009329A7 |. 81E5 FF000000 AND EBP,0FF 009329AD |. 039CAA 000C0000 ADD EBX,DWORD PTR DS:[EDX+EBP*4+C00] 009329B4 |. 335F 24 XOR EBX,DWORD PTR DS:[EDI+24] 009329B7 |. 33CB XOR ECX,EBX 009329B9 |. 8BD9 MOV EBX,ECX 009329BB |. C1EB 10 SHR EBX,10 009329BE |. 81E3 FF000000 AND EBX,0FF 009329C4 |. 8B9C9A 00040000 MOV EBX,DWORD PTR DS:[EDX+EBX*4+400] 009329CB |. 8BE9 MOV EBP,ECX 009329CD |. C1ED 18 SHR EBP,18 009329D0 |. 031CAA ADD EBX,DWORD PTR DS:[EDX+EBP*4] 009329D3 |. 8BD1 MOV EDX,ECX 009329D5 |. C1EA 08 SHR EDX,8 009329D8 |. 81E2 FF000000 AND EDX,0FF 009329DE |. 339C96 00080000 XOR EBX,DWORD PTR DS:[ESI+EDX*4+800] 009329E5 |. 8BD1 MOV EDX,ECX 009329E7 |. 81E2 FF000000 AND EDX,0FF 009329ED |. 039C96 000C0000 ADD EBX,DWORD PTR DS:[ESI+EDX*4+C00] 009329F4 |. 335F 20 XOR EBX,DWORD PTR DS:[EDI+20] 009329F7 |. 33C3 XOR EAX,EBX 009329F9 |. 8BD0 MOV EDX,EAX 009329FB |. C1EA 10 SHR EDX,10 009329FE |. 81E2 FF000000 AND EDX,0FF 00932A04 |. 8B9496 00040000 MOV EDX,DWORD PTR DS:[ESI+EDX*4+400] 00932A0B |. 8BD8 MOV EBX,EAX 00932A0D |. C1EB 18 SHR EBX,18 00932A10 |. 03149E ADD EDX,DWORD PTR DS:[ESI+EBX*4] 00932A13 |. 8BD8 MOV EBX,EAX 00932A15 |. C1EB 08 SHR EBX,8 00932A18 |. 81E3 FF000000 AND EBX,0FF 00932A1E |. 33949E 00080000 XOR EDX,DWORD PTR DS:[ESI+EBX*4+800] 00932A25 |. 8BD8 MOV EBX,EAX 00932A27 |. 81E3 FF000000 AND EBX,0FF 00932A2D |. 03949E 000C0000 ADD EDX,DWORD PTR DS:[ESI+EBX*4+C00] 00932A34 |. 3357 1C XOR EDX,DWORD PTR DS:[EDI+1C] 00932A37 |. 33CA XOR ECX,EDX 00932A39 |. 8BD1 MOV EDX,ECX 00932A3B |. C1EA 10 SHR EDX,10 00932A3E |. 81E2 FF000000 AND EDX,0FF 00932A44 |. 8B9496 00040000 MOV EDX,DWORD PTR DS:[ESI+EDX*4+400] 00932A4B |. 8BD9 MOV EBX,ECX 00932A4D |. C1EB 18 SHR EBX,18 00932A50 |. 03149E ADD EDX,DWORD PTR DS:[ESI+EBX*4] 00932A53 |. 8BD9 MOV EBX,ECX 00932A55 |. C1EB 08 SHR EBX,8 00932A58 |. 81E3 FF000000 AND EBX,0FF 00932A5E |. 33949E 00080000 XOR EDX,DWORD PTR DS:[ESI+EBX*4+800] 00932A65 |. 8BD9 MOV EBX,ECX 00932A67 |. 81E3 FF000000 AND EBX,0FF 00932A6D |. 03949E 000C0000 ADD EDX,DWORD PTR DS:[ESI+EBX*4+C00] 00932A74 |. 3357 18 XOR EDX,DWORD PTR DS:[EDI+18] 00932A77 |. 33C2 XOR EAX,EDX 00932A79 |. 8BD0 MOV EDX,EAX 00932A7B |. C1EA 10 SHR EDX,10 00932A7E |. 81E2 FF000000 AND EDX,0FF 00932A84 |. 8B9496 00040000 MOV EDX,DWORD PTR DS:[ESI+EDX*4+400] 00932A8B |. 8BD8 MOV EBX,EAX 00932A8D |. C1EB 18 SHR EBX,18 00932A90 |. 03149E ADD EDX,DWORD PTR DS:[ESI+EBX*4] 00932A93 |. 8BD8 MOV EBX,EAX 00932A95 |. C1EB 08 SHR EBX,8 00932A98 |. 81E3 FF000000 AND EBX,0FF 00932A9E |. 33949E 00080000 XOR EDX,DWORD PTR DS:[ESI+EBX*4+800] 00932AA5 |. 8BD8 MOV EBX,EAX 00932AA7 |. 81E3 FF000000 AND EBX,0FF 00932AAD |. 03949E 000C0000 ADD EDX,DWORD PTR DS:[ESI+EBX*4+C00] 00932AB4 |. 3357 14 XOR EDX,DWORD PTR DS:[EDI+14] 00932AB7 |. 33CA XOR ECX,EDX 00932AB9 |. 8BD1 MOV EDX,ECX 00932ABB |. C1EA 10 SHR EDX,10 00932ABE |. 81E2 FF000000 AND EDX,0FF 00932AC4 |. 8B9496 00040000 MOV EDX,DWORD PTR DS:[ESI+EDX*4+400] 00932ACB |. 8BD9 MOV EBX,ECX 00932ACD |. C1EB 18 SHR EBX,18 00932AD0 |. 03149E ADD EDX,DWORD PTR DS:[ESI+EBX*4] 00932AD3 |. 8BD9 MOV EBX,ECX 00932AD5 |. C1EB 08 SHR EBX,8 00932AD8 |. 81E3 FF000000 AND EBX,0FF 00932ADE |. 33949E 00080000 XOR EDX,DWORD PTR DS:[ESI+EBX*4+800] 00932AE5 |. 8BD9 MOV EBX,ECX 00932AE7 |. 81E3 FF000000 AND EBX,0FF 00932AED |. 03949E 000C0000 ADD EDX,DWORD PTR DS:[ESI+EBX*4+C00] 00932AF4 |. 3357 10 XOR EDX,DWORD PTR DS:[EDI+10] 00932AF7 |. 33C2 XOR EAX,EDX 00932AF9 |. 8BD0 MOV EDX,EAX 00932AFB |. C1EA 10 SHR EDX,10 00932AFE |. 81E2 FF000000 AND EDX,0FF 00932B04 |. 8B9496 00040000 MOV EDX,DWORD PTR DS:[ESI+EDX*4+400] 00932B0B |. 8BD8 MOV EBX,EAX 00932B0D |. C1EB 18 SHR EBX,18 00932B10 |. 03149E ADD EDX,DWORD PTR DS:[ESI+EBX*4] 00932B13 |. 8BD8 MOV EBX,EAX 00932B15 |. C1EB 08 SHR EBX,8 00932B18 |. 81E3 FF000000 AND EBX,0FF 00932B1E |. 33949E 00080000 XOR EDX,DWORD PTR DS:[ESI+EBX*4+800] 00932B25 |. 8BD8 MOV EBX,EAX 00932B27 |. 81E3 FF000000 AND EBX,0FF 00932B2D |. 03949E 000C0000 ADD EDX,DWORD PTR DS:[ESI+EBX*4+C00] 00932B34 |. 3357 0C XOR EDX,DWORD PTR DS:[EDI+C] 00932B37 |. 33CA XOR ECX,EDX 00932B39 |. 8BD1 MOV EDX,ECX 00932B3B |. C1EA 10 SHR EDX,10 00932B3E |. 81E2 FF000000 AND EDX,0FF 00932B44 |. 8B9496 00040000 MOV EDX,DWORD PTR DS:[ESI+EDX*4+400] 00932B4B |. 8BD9 MOV EBX,ECX 00932B4D |. C1EB 18 SHR EBX,18 00932B50 |. 03149E ADD EDX,DWORD PTR DS:[ESI+EBX*4] 00932B53 |. 8BD9 MOV EBX,ECX 00932B55 |. C1EB 08 SHR EBX,8 00932B58 |. 81E3 FF000000 AND EBX,0FF 00932B5E |. 33949E 00080000 XOR EDX,DWORD PTR DS:[ESI+EBX*4+800] 00932B65 |. 8BD9 MOV EBX,ECX 00932B67 |. 81E3 FF000000 AND EBX,0FF 00932B6D |. 03949E 000C0000 ADD EDX,DWORD PTR DS:[ESI+EBX*4+C00] 00932B74 |. 3357 08 XOR EDX,DWORD PTR DS:[EDI+8] 00932B77 |. 33C2 XOR EAX,EDX 00932B79 |. 8BD0 MOV EDX,EAX 00932B7B |. C1EA 10 SHR EDX,10 00932B7E |. 81E2 FF000000 AND EDX,0FF 00932B84 |. 8B9496 00040000 MOV EDX,DWORD PTR DS:[ESI+EDX*4+400] 00932B8B |. 8BD8 MOV EBX,EAX 00932B8D |. C1EB 18 SHR EBX,18 00932B90 |. 03149E ADD EDX,DWORD PTR DS:[ESI+EBX*4] 00932B93 |. 8BD8 MOV EBX,EAX 00932B95 |. C1EB 08 SHR EBX,8 00932B98 |. 81E3 FF000000 AND EBX,0FF 00932B9E |. 33949E 00080000 XOR EDX,DWORD PTR DS:[ESI+EBX*4+800] 00932BA5 |. 8BD8 MOV EBX,EAX 00932BA7 |. 81E3 FF000000 AND EBX,0FF 00932BAD |. 03949E 000C0000 ADD EDX,DWORD PTR DS:[ESI+EBX*4+C00] 00932BB4 |. 3357 04 XOR EDX,DWORD PTR DS:[EDI+4] 00932BB7 |. 33CA XOR ECX,EDX 00932BB9 |. 8B17 MOV EDX,DWORD PTR DS:[EDI] 00932BBB |. 33D0 XOR EDX,EAX 00932BBD |. 8B4424 14 MOV EAX,DWORD PTR SS:[ESP+14] 00932BC1 |. 5F POP EDI ; 14D70138 00932BC2 |. 5E POP ESI ; 14D70138 00932BC3 |. 8910 MOV DWORD PTR DS:[EAX],EDX 00932BC5 |. 8B5424 10 MOV EDX,DWORD PTR SS:[ESP+10] ; yo3.009331A3 00932BC9 |. 5D POP EBP ; 14D70138 00932BCA |. 890A MOV DWORD PTR DS:[EDX],ECX 00932BCC |. 5B POP EBX ; 14D70138 00932BCD \. C2 0800 RETN 8 so I found that using ollydbg , well first I thought this cipher could be `XTEA` but `XTEA` does not do `AND` on the plain text , so I thought I may post this cipher here maybe someone Identify it and tell me wither it's an existing cipher or this is a custom cipher and I need to write it based on this asm code. thanks.
c++
encryption
assembly
cryptography
null
05/01/2012 01:48:59
too localized
Identifying cryptography cipher === 009327A0 /$ 53 PUSH EBX 009327A1 |. 55 PUSH EBP 009327A2 |. 56 PUSH ESI 009327A3 |. 8BF0 MOV ESI,EAX 009327A5 |. 8B56 04 MOV EDX,DWORD PTR DS:[ESI+4] 009327A8 |. 8B4424 10 MOV EAX,DWORD PTR SS:[ESP+10] ; yo3.009331A3 009327AC |. 57 PUSH EDI 009327AD |. 8B3E MOV EDI,DWORD PTR DS:[ESI] 009327AF |. 8B4F 44 MOV ECX,DWORD PTR DS:[EDI+44] 009327B2 |. 3308 XOR ECX,DWORD PTR DS:[EAX] 009327B4 |. 8BC1 MOV EAX,ECX 009327B6 |. C1E8 10 SHR EAX,10 009327B9 |. 25 FF000000 AND EAX,0FF 009327BE |. 8B8482 00040000 MOV EAX,DWORD PTR DS:[EDX+EAX*4+400] 009327C5 |. 8BD9 MOV EBX,ECX 009327C7 |. C1EB 18 SHR EBX,18 009327CA |. 03049A ADD EAX,DWORD PTR DS:[EDX+EBX*4] 009327CD |. 8BD9 MOV EBX,ECX 009327CF |. C1EB 08 SHR EBX,8 009327D2 |. 81E3 FF000000 AND EBX,0FF 009327D8 |. 33849A 00080000 XOR EAX,DWORD PTR DS:[EDX+EBX*4+800] 009327DF |. 8BD9 MOV EBX,ECX 009327E1 |. 81E3 FF000000 AND EBX,0FF 009327E7 |. 03849A 000C0000 ADD EAX,DWORD PTR DS:[EDX+EBX*4+C00] 009327EE |. 8B5C24 18 MOV EBX,DWORD PTR SS:[ESP+18] 009327F2 |. 3347 40 XOR EAX,DWORD PTR DS:[EDI+40] 009327F5 |. 3303 XOR EAX,DWORD PTR DS:[EBX] 009327F7 |. 8BD8 MOV EBX,EAX 009327F9 |. C1EB 10 SHR EBX,10 009327FC |. 81E3 FF000000 AND EBX,0FF 00932802 |. 8B9C9A 00040000 MOV EBX,DWORD PTR DS:[EDX+EBX*4+400] 00932809 |. 8BE8 MOV EBP,EAX 0093280B |. C1ED 18 SHR EBP,18 0093280E |. 031CAA ADD EBX,DWORD PTR DS:[EDX+EBP*4] 00932811 |. 8BE8 MOV EBP,EAX 00932813 |. C1ED 08 SHR EBP,8 00932816 |. 81E5 FF000000 AND EBP,0FF 0093281C |. 339CAA 00080000 XOR EBX,DWORD PTR DS:[EDX+EBP*4+800] 00932823 |. 8BE8 MOV EBP,EAX 00932825 |. 81E5 FF000000 AND EBP,0FF 0093282B |. 039CAA 000C0000 ADD EBX,DWORD PTR DS:[EDX+EBP*4+C00] 00932832 |. 335F 3C XOR EBX,DWORD PTR DS:[EDI+3C] 00932835 |. 33CB XOR ECX,EBX 00932837 |. 8BD9 MOV EBX,ECX 00932839 |. C1EB 10 SHR EBX,10 0093283C |. 81E3 FF000000 AND EBX,0FF 00932842 |. 8B9C9A 00040000 MOV EBX,DWORD PTR DS:[EDX+EBX*4+400] 00932849 |. 8BE9 MOV EBP,ECX 0093284B |. C1ED 18 SHR EBP,18 0093284E |. 031CAA ADD EBX,DWORD PTR DS:[EDX+EBP*4] 00932851 |. 8BE9 MOV EBP,ECX 00932853 |. C1ED 08 SHR EBP,8 00932856 |. 81E5 FF000000 AND EBP,0FF 0093285C |. 339CAA 00080000 XOR EBX,DWORD PTR DS:[EDX+EBP*4+800] 00932863 |. 8BE9 MOV EBP,ECX 00932865 |. 81E5 FF000000 AND EBP,0FF 0093286B |. 039CAA 000C0000 ADD EBX,DWORD PTR DS:[EDX+EBP*4+C00] 00932872 |. 335F 38 XOR EBX,DWORD PTR DS:[EDI+38] 00932875 |. 33C3 XOR EAX,EBX 00932877 |. 8BD8 MOV EBX,EAX 00932879 |. C1EB 10 SHR EBX,10 0093287C |. 81E3 FF000000 AND EBX,0FF 00932882 |. 8B9C9A 00040000 MOV EBX,DWORD PTR DS:[EDX+EBX*4+400] 00932889 |. 8BE8 MOV EBP,EAX 0093288B |. C1ED 18 SHR EBP,18 0093288E |. 031CAA ADD EBX,DWORD PTR DS:[EDX+EBP*4] 00932891 |. 8BE8 MOV EBP,EAX 00932893 |. C1ED 08 SHR EBP,8 00932896 |. 81E5 FF000000 AND EBP,0FF 0093289C |. 339CAA 00080000 XOR EBX,DWORD PTR DS:[EDX+EBP*4+800] 009328A3 |. 8BE8 MOV EBP,EAX 009328A5 |. 81E5 FF000000 AND EBP,0FF 009328AB |. 039CAA 000C0000 ADD EBX,DWORD PTR DS:[EDX+EBP*4+C00] 009328B2 |. 335F 34 XOR EBX,DWORD PTR DS:[EDI+34] 009328B5 |. 33CB XOR ECX,EBX 009328B7 |. 8BD9 MOV EBX,ECX 009328B9 |. C1EB 10 SHR EBX,10 009328BC |. 81E3 FF000000 AND EBX,0FF 009328C2 |. 8B9C9A 00040000 MOV EBX,DWORD PTR DS:[EDX+EBX*4+400] 009328C9 |. 8BE9 MOV EBP,ECX 009328CB |. C1ED 18 SHR EBP,18 009328CE |. 031CAA ADD EBX,DWORD PTR DS:[EDX+EBP*4] 009328D1 |. 8BE9 MOV EBP,ECX 009328D3 |. C1ED 08 SHR EBP,8 009328D6 |. 81E5 FF000000 AND EBP,0FF 009328DC |. 339CAA 00080000 XOR EBX,DWORD PTR DS:[EDX+EBP*4+800] 009328E3 |. 8BE9 MOV EBP,ECX 009328E5 |. 81E5 FF000000 AND EBP,0FF 009328EB |. 039CAA 000C0000 ADD EBX,DWORD PTR DS:[EDX+EBP*4+C00] 009328F2 |. 8BF2 MOV ESI,EDX 009328F4 |. 335F 30 XOR EBX,DWORD PTR DS:[EDI+30] 009328F7 |. 33C3 XOR EAX,EBX 009328F9 |. 8BD8 MOV EBX,EAX 009328FB |. C1EB 10 SHR EBX,10 009328FE |. 81E3 FF000000 AND EBX,0FF 00932904 |. 8B9C9A 00040000 MOV EBX,DWORD PTR DS:[EDX+EBX*4+400] 0093290B |. 8BE8 MOV EBP,EAX 0093290D |. C1ED 18 SHR EBP,18 00932910 |. 031CAA ADD EBX,DWORD PTR DS:[EDX+EBP*4] 00932913 |. 8BE8 MOV EBP,EAX 00932915 |. C1ED 08 SHR EBP,8 00932918 |. 81E5 FF000000 AND EBP,0FF 0093291E |. 339CAA 00080000 XOR EBX,DWORD PTR DS:[EDX+EBP*4+800] 00932925 |. 8BE8 MOV EBP,EAX 00932927 |. 81E5 FF000000 AND EBP,0FF 0093292D |. 039CAA 000C0000 ADD EBX,DWORD PTR DS:[EDX+EBP*4+C00] 00932934 |. 335F 2C XOR EBX,DWORD PTR DS:[EDI+2C] 00932937 |. 33CB XOR ECX,EBX 00932939 |. 8BD9 MOV EBX,ECX 0093293B |. C1EB 10 SHR EBX,10 0093293E |. 81E3 FF000000 AND EBX,0FF 00932944 |. 8B9C9A 00040000 MOV EBX,DWORD PTR DS:[EDX+EBX*4+400] 0093294B |. 8BE9 MOV EBP,ECX 0093294D |. C1ED 18 SHR EBP,18 00932950 |. 031CAA ADD EBX,DWORD PTR DS:[EDX+EBP*4] 00932953 |. 8BE9 MOV EBP,ECX 00932955 |. C1ED 08 SHR EBP,8 00932958 |. 81E5 FF000000 AND EBP,0FF 0093295E |. 339CAA 00080000 XOR EBX,DWORD PTR DS:[EDX+EBP*4+800] 00932965 |. 8BE9 MOV EBP,ECX 00932967 |. 81E5 FF000000 AND EBP,0FF 0093296D |. 039CAA 000C0000 ADD EBX,DWORD PTR DS:[EDX+EBP*4+C00] 00932974 |. 335F 28 XOR EBX,DWORD PTR DS:[EDI+28] 00932977 |. 33C3 XOR EAX,EBX 00932979 |. 8BD8 MOV EBX,EAX 0093297B |. C1EB 10 SHR EBX,10 0093297E |. 81E3 FF000000 AND EBX,0FF 00932984 |. 8B9C9A 00040000 MOV EBX,DWORD PTR DS:[EDX+EBX*4+400] 0093298B |. 8BE8 MOV EBP,EAX 0093298D |. C1ED 18 SHR EBP,18 00932990 |. 031CAA ADD EBX,DWORD PTR DS:[EDX+EBP*4] 00932993 |. 8BE8 MOV EBP,EAX 00932995 |. C1ED 08 SHR EBP,8 00932998 |. 81E5 FF000000 AND EBP,0FF 0093299E |. 339CAA 00080000 XOR EBX,DWORD PTR DS:[EDX+EBP*4+800] 009329A5 |. 8BE8 MOV EBP,EAX 009329A7 |. 81E5 FF000000 AND EBP,0FF 009329AD |. 039CAA 000C0000 ADD EBX,DWORD PTR DS:[EDX+EBP*4+C00] 009329B4 |. 335F 24 XOR EBX,DWORD PTR DS:[EDI+24] 009329B7 |. 33CB XOR ECX,EBX 009329B9 |. 8BD9 MOV EBX,ECX 009329BB |. C1EB 10 SHR EBX,10 009329BE |. 81E3 FF000000 AND EBX,0FF 009329C4 |. 8B9C9A 00040000 MOV EBX,DWORD PTR DS:[EDX+EBX*4+400] 009329CB |. 8BE9 MOV EBP,ECX 009329CD |. C1ED 18 SHR EBP,18 009329D0 |. 031CAA ADD EBX,DWORD PTR DS:[EDX+EBP*4] 009329D3 |. 8BD1 MOV EDX,ECX 009329D5 |. C1EA 08 SHR EDX,8 009329D8 |. 81E2 FF000000 AND EDX,0FF 009329DE |. 339C96 00080000 XOR EBX,DWORD PTR DS:[ESI+EDX*4+800] 009329E5 |. 8BD1 MOV EDX,ECX 009329E7 |. 81E2 FF000000 AND EDX,0FF 009329ED |. 039C96 000C0000 ADD EBX,DWORD PTR DS:[ESI+EDX*4+C00] 009329F4 |. 335F 20 XOR EBX,DWORD PTR DS:[EDI+20] 009329F7 |. 33C3 XOR EAX,EBX 009329F9 |. 8BD0 MOV EDX,EAX 009329FB |. C1EA 10 SHR EDX,10 009329FE |. 81E2 FF000000 AND EDX,0FF 00932A04 |. 8B9496 00040000 MOV EDX,DWORD PTR DS:[ESI+EDX*4+400] 00932A0B |. 8BD8 MOV EBX,EAX 00932A0D |. C1EB 18 SHR EBX,18 00932A10 |. 03149E ADD EDX,DWORD PTR DS:[ESI+EBX*4] 00932A13 |. 8BD8 MOV EBX,EAX 00932A15 |. C1EB 08 SHR EBX,8 00932A18 |. 81E3 FF000000 AND EBX,0FF 00932A1E |. 33949E 00080000 XOR EDX,DWORD PTR DS:[ESI+EBX*4+800] 00932A25 |. 8BD8 MOV EBX,EAX 00932A27 |. 81E3 FF000000 AND EBX,0FF 00932A2D |. 03949E 000C0000 ADD EDX,DWORD PTR DS:[ESI+EBX*4+C00] 00932A34 |. 3357 1C XOR EDX,DWORD PTR DS:[EDI+1C] 00932A37 |. 33CA XOR ECX,EDX 00932A39 |. 8BD1 MOV EDX,ECX 00932A3B |. C1EA 10 SHR EDX,10 00932A3E |. 81E2 FF000000 AND EDX,0FF 00932A44 |. 8B9496 00040000 MOV EDX,DWORD PTR DS:[ESI+EDX*4+400] 00932A4B |. 8BD9 MOV EBX,ECX 00932A4D |. C1EB 18 SHR EBX,18 00932A50 |. 03149E ADD EDX,DWORD PTR DS:[ESI+EBX*4] 00932A53 |. 8BD9 MOV EBX,ECX 00932A55 |. C1EB 08 SHR EBX,8 00932A58 |. 81E3 FF000000 AND EBX,0FF 00932A5E |. 33949E 00080000 XOR EDX,DWORD PTR DS:[ESI+EBX*4+800] 00932A65 |. 8BD9 MOV EBX,ECX 00932A67 |. 81E3 FF000000 AND EBX,0FF 00932A6D |. 03949E 000C0000 ADD EDX,DWORD PTR DS:[ESI+EBX*4+C00] 00932A74 |. 3357 18 XOR EDX,DWORD PTR DS:[EDI+18] 00932A77 |. 33C2 XOR EAX,EDX 00932A79 |. 8BD0 MOV EDX,EAX 00932A7B |. C1EA 10 SHR EDX,10 00932A7E |. 81E2 FF000000 AND EDX,0FF 00932A84 |. 8B9496 00040000 MOV EDX,DWORD PTR DS:[ESI+EDX*4+400] 00932A8B |. 8BD8 MOV EBX,EAX 00932A8D |. C1EB 18 SHR EBX,18 00932A90 |. 03149E ADD EDX,DWORD PTR DS:[ESI+EBX*4] 00932A93 |. 8BD8 MOV EBX,EAX 00932A95 |. C1EB 08 SHR EBX,8 00932A98 |. 81E3 FF000000 AND EBX,0FF 00932A9E |. 33949E 00080000 XOR EDX,DWORD PTR DS:[ESI+EBX*4+800] 00932AA5 |. 8BD8 MOV EBX,EAX 00932AA7 |. 81E3 FF000000 AND EBX,0FF 00932AAD |. 03949E 000C0000 ADD EDX,DWORD PTR DS:[ESI+EBX*4+C00] 00932AB4 |. 3357 14 XOR EDX,DWORD PTR DS:[EDI+14] 00932AB7 |. 33CA XOR ECX,EDX 00932AB9 |. 8BD1 MOV EDX,ECX 00932ABB |. C1EA 10 SHR EDX,10 00932ABE |. 81E2 FF000000 AND EDX,0FF 00932AC4 |. 8B9496 00040000 MOV EDX,DWORD PTR DS:[ESI+EDX*4+400] 00932ACB |. 8BD9 MOV EBX,ECX 00932ACD |. C1EB 18 SHR EBX,18 00932AD0 |. 03149E ADD EDX,DWORD PTR DS:[ESI+EBX*4] 00932AD3 |. 8BD9 MOV EBX,ECX 00932AD5 |. C1EB 08 SHR EBX,8 00932AD8 |. 81E3 FF000000 AND EBX,0FF 00932ADE |. 33949E 00080000 XOR EDX,DWORD PTR DS:[ESI+EBX*4+800] 00932AE5 |. 8BD9 MOV EBX,ECX 00932AE7 |. 81E3 FF000000 AND EBX,0FF 00932AED |. 03949E 000C0000 ADD EDX,DWORD PTR DS:[ESI+EBX*4+C00] 00932AF4 |. 3357 10 XOR EDX,DWORD PTR DS:[EDI+10] 00932AF7 |. 33C2 XOR EAX,EDX 00932AF9 |. 8BD0 MOV EDX,EAX 00932AFB |. C1EA 10 SHR EDX,10 00932AFE |. 81E2 FF000000 AND EDX,0FF 00932B04 |. 8B9496 00040000 MOV EDX,DWORD PTR DS:[ESI+EDX*4+400] 00932B0B |. 8BD8 MOV EBX,EAX 00932B0D |. C1EB 18 SHR EBX,18 00932B10 |. 03149E ADD EDX,DWORD PTR DS:[ESI+EBX*4] 00932B13 |. 8BD8 MOV EBX,EAX 00932B15 |. C1EB 08 SHR EBX,8 00932B18 |. 81E3 FF000000 AND EBX,0FF 00932B1E |. 33949E 00080000 XOR EDX,DWORD PTR DS:[ESI+EBX*4+800] 00932B25 |. 8BD8 MOV EBX,EAX 00932B27 |. 81E3 FF000000 AND EBX,0FF 00932B2D |. 03949E 000C0000 ADD EDX,DWORD PTR DS:[ESI+EBX*4+C00] 00932B34 |. 3357 0C XOR EDX,DWORD PTR DS:[EDI+C] 00932B37 |. 33CA XOR ECX,EDX 00932B39 |. 8BD1 MOV EDX,ECX 00932B3B |. C1EA 10 SHR EDX,10 00932B3E |. 81E2 FF000000 AND EDX,0FF 00932B44 |. 8B9496 00040000 MOV EDX,DWORD PTR DS:[ESI+EDX*4+400] 00932B4B |. 8BD9 MOV EBX,ECX 00932B4D |. C1EB 18 SHR EBX,18 00932B50 |. 03149E ADD EDX,DWORD PTR DS:[ESI+EBX*4] 00932B53 |. 8BD9 MOV EBX,ECX 00932B55 |. C1EB 08 SHR EBX,8 00932B58 |. 81E3 FF000000 AND EBX,0FF 00932B5E |. 33949E 00080000 XOR EDX,DWORD PTR DS:[ESI+EBX*4+800] 00932B65 |. 8BD9 MOV EBX,ECX 00932B67 |. 81E3 FF000000 AND EBX,0FF 00932B6D |. 03949E 000C0000 ADD EDX,DWORD PTR DS:[ESI+EBX*4+C00] 00932B74 |. 3357 08 XOR EDX,DWORD PTR DS:[EDI+8] 00932B77 |. 33C2 XOR EAX,EDX 00932B79 |. 8BD0 MOV EDX,EAX 00932B7B |. C1EA 10 SHR EDX,10 00932B7E |. 81E2 FF000000 AND EDX,0FF 00932B84 |. 8B9496 00040000 MOV EDX,DWORD PTR DS:[ESI+EDX*4+400] 00932B8B |. 8BD8 MOV EBX,EAX 00932B8D |. C1EB 18 SHR EBX,18 00932B90 |. 03149E ADD EDX,DWORD PTR DS:[ESI+EBX*4] 00932B93 |. 8BD8 MOV EBX,EAX 00932B95 |. C1EB 08 SHR EBX,8 00932B98 |. 81E3 FF000000 AND EBX,0FF 00932B9E |. 33949E 00080000 XOR EDX,DWORD PTR DS:[ESI+EBX*4+800] 00932BA5 |. 8BD8 MOV EBX,EAX 00932BA7 |. 81E3 FF000000 AND EBX,0FF 00932BAD |. 03949E 000C0000 ADD EDX,DWORD PTR DS:[ESI+EBX*4+C00] 00932BB4 |. 3357 04 XOR EDX,DWORD PTR DS:[EDI+4] 00932BB7 |. 33CA XOR ECX,EDX 00932BB9 |. 8B17 MOV EDX,DWORD PTR DS:[EDI] 00932BBB |. 33D0 XOR EDX,EAX 00932BBD |. 8B4424 14 MOV EAX,DWORD PTR SS:[ESP+14] 00932BC1 |. 5F POP EDI ; 14D70138 00932BC2 |. 5E POP ESI ; 14D70138 00932BC3 |. 8910 MOV DWORD PTR DS:[EAX],EDX 00932BC5 |. 8B5424 10 MOV EDX,DWORD PTR SS:[ESP+10] ; yo3.009331A3 00932BC9 |. 5D POP EBP ; 14D70138 00932BCA |. 890A MOV DWORD PTR DS:[EDX],ECX 00932BCC |. 5B POP EBX ; 14D70138 00932BCD \. C2 0800 RETN 8 so I found that using ollydbg , well first I thought this cipher could be `XTEA` but `XTEA` does not do `AND` on the plain text , so I thought I may post this cipher here maybe someone Identify it and tell me wither it's an existing cipher or this is a custom cipher and I need to write it based on this asm code. thanks.
3
1,658,963
11/02/2009 00:56:56
133,584
07/06/2009 09:07:52
240
17
The best free ASP.Net Package with user controls?
I'm working now since 2 month with ASP.Net and have round about 400 work hours done with it, so I'm not a newbie, not a pro. I inform very well and found ever and ever user controls with exelent Textboxes here and a very nice designed combobox there, but I wan't more very nice, good and briliant controls I can use on my site for free. So: I like to have Ideas from you of the best user control that is for free for ASP.Net.
asp.net
usercontrols
null
null
null
null
open
The best free ASP.Net Package with user controls? === I'm working now since 2 month with ASP.Net and have round about 400 work hours done with it, so I'm not a newbie, not a pro. I inform very well and found ever and ever user controls with exelent Textboxes here and a very nice designed combobox there, but I wan't more very nice, good and briliant controls I can use on my site for free. So: I like to have Ideas from you of the best user control that is for free for ASP.Net.
0
9,602,503
03/07/2012 13:36:16
957,012
09/21/2011 13:03:58
43
1
Advice for future learning - Node.js or PHP?
I need advice, please. My first programming language is Javascript. I started learning JS like a client-side language,and I had plans to also learn PHP, for server-side, since it's now standard for that purpose. In the meanwhile, while learning JS, i didn't want to miss anything so I went through a lot of advanced topics (besides core JS).It includes design patterns,writing web-applications... I also want to create my own library. I mentioned that I wanna go with one server-side language. My question is: since I spent decent ammount of time and energy learning one language, do you think I should stay with JS and learn Node.js for server-side ? As I can see, Node.js will allow me to extend my programming knowledge, while with PHP I'll have to go from the befinning ? And, ofcourse PHP is much more popular and Node is still young language with uncertain future. Thanks.
php
node.js
null
null
null
03/09/2012 21:08:37
not constructive
Advice for future learning - Node.js or PHP? === I need advice, please. My first programming language is Javascript. I started learning JS like a client-side language,and I had plans to also learn PHP, for server-side, since it's now standard for that purpose. In the meanwhile, while learning JS, i didn't want to miss anything so I went through a lot of advanced topics (besides core JS).It includes design patterns,writing web-applications... I also want to create my own library. I mentioned that I wanna go with one server-side language. My question is: since I spent decent ammount of time and energy learning one language, do you think I should stay with JS and learn Node.js for server-side ? As I can see, Node.js will allow me to extend my programming knowledge, while with PHP I'll have to go from the befinning ? And, ofcourse PHP is much more popular and Node is still young language with uncertain future. Thanks.
4
11,524,385
07/17/2012 14:14:08
1,277,039
03/18/2012 15:01:34
1
0
Memory leaks regarding
If i run my app in instrument by using leak tool first time it is not showing leaks from first view to last view.if i come back to last view to first view means second time then it is showing leaks.if try to release then app is crashing. please help me
iphone
memory-leaks
null
null
null
07/17/2012 20:07:14
not a real question
Memory leaks regarding === If i run my app in instrument by using leak tool first time it is not showing leaks from first view to last view.if i come back to last view to first view means second time then it is showing leaks.if try to release then app is crashing. please help me
1
4,199,998
11/16/2010 23:09:37
441,019
09/07/2010 01:23:30
18
0
iPod as /dev/hidraw ?
When i connect my iPod device i want it to appear as a HIDRAW device (e.g. /dev/hidraw1 ) I have a udev rule that changes the bConfigurationValue to 2 (this is the configuration for the iPod USB Interface) when i plug in the iPod which works ok. This configuration has an interface descriptor with an bInterfaceClass of 'Human Interface Device' but i do not ever see a /dev/hidraw entry. Do i have to do something additional to get it to show as an hidraw entry?
linux
device
ipod
null
null
11/17/2010 00:43:47
off topic
iPod as /dev/hidraw ? === When i connect my iPod device i want it to appear as a HIDRAW device (e.g. /dev/hidraw1 ) I have a udev rule that changes the bConfigurationValue to 2 (this is the configuration for the iPod USB Interface) when i plug in the iPod which works ok. This configuration has an interface descriptor with an bInterfaceClass of 'Human Interface Device' but i do not ever see a /dev/hidraw entry. Do i have to do something additional to get it to show as an hidraw entry?
2
10,002,479
04/03/2012 22:39:52
542,550
05/08/2010 19:10:18
535
36
jQuery UI show using slide animation jumps to full height before animation starts
I am trying to create a simple message that slides in and "elegantly" slides the content below it down while it slides in. The problem that I'm having is that the content below the message isn't sliding elegantly, it's "jumping" to the full height of the message before the animation has even started. The same is true for when the message gets hidden - the message slides up, but the height stays the same until the animation has completed and then the content pops back into place. Super simplified JSFiddle: http://jsfiddle.net/U94qD/2/ Code (in case JSFiddle is down): HTML: <div class="slide" style="display:none;">Sliding Something into place</div> <div>This is always shown, but jumps down when the slide animation starts instead of sliding down with the element as it's displayed and it stays in place as the div above hides instead of sliding smoothly with it.</div> JS: setTimeout(function() { show(); }, 500); function show() { $(".slide").show('slide', { direction: 'up' }, 1000, function() { hide(); }); } function hide() { setTimeout(function() { $(".slide").hide('slide', { direction: 'up' }, 1000); }); } **NOTE:** I have tried using the "slideDown" and "slideUp" methods instead, but the animation doesn't function the same. Instead of sliding the content down, the height of the div is adjusted to reveal the content, which is what I would call a "blind" animation, not a "slide"
jquery
jquery-ui
jquery-effects
jquery-slide-effects
null
null
open
jQuery UI show using slide animation jumps to full height before animation starts === I am trying to create a simple message that slides in and "elegantly" slides the content below it down while it slides in. The problem that I'm having is that the content below the message isn't sliding elegantly, it's "jumping" to the full height of the message before the animation has even started. The same is true for when the message gets hidden - the message slides up, but the height stays the same until the animation has completed and then the content pops back into place. Super simplified JSFiddle: http://jsfiddle.net/U94qD/2/ Code (in case JSFiddle is down): HTML: <div class="slide" style="display:none;">Sliding Something into place</div> <div>This is always shown, but jumps down when the slide animation starts instead of sliding down with the element as it's displayed and it stays in place as the div above hides instead of sliding smoothly with it.</div> JS: setTimeout(function() { show(); }, 500); function show() { $(".slide").show('slide', { direction: 'up' }, 1000, function() { hide(); }); } function hide() { setTimeout(function() { $(".slide").hide('slide', { direction: 'up' }, 1000); }); } **NOTE:** I have tried using the "slideDown" and "slideUp" methods instead, but the animation doesn't function the same. Instead of sliding the content down, the height of the div is adjusted to reveal the content, which is what I would call a "blind" animation, not a "slide"
0
9,459,431
02/27/2012 02:44:23
1,118,042
12/27/2011 17:33:33
12
0
Clipping Mask to Change Color (Android)
I have the following drawable (a png) in my project and I would like to programatically change the black to another color. Is this possible? I'm not sure even what keywords to search. I don't think I am looking for a ClipDrawable. I have included a picture of what the drawable originally looks like and what the drawable should look like after i run code on it. ![Original Image][1] ![After Image][2] It obviously does not have to be green. I am just looking for the functionality. [1]: http://i.stack.imgur.com/MzVm0.png [2]: http://i.stack.imgur.com/WqOjt.png
android
colors
mask
null
null
null
open
Clipping Mask to Change Color (Android) === I have the following drawable (a png) in my project and I would like to programatically change the black to another color. Is this possible? I'm not sure even what keywords to search. I don't think I am looking for a ClipDrawable. I have included a picture of what the drawable originally looks like and what the drawable should look like after i run code on it. ![Original Image][1] ![After Image][2] It obviously does not have to be green. I am just looking for the functionality. [1]: http://i.stack.imgur.com/MzVm0.png [2]: http://i.stack.imgur.com/WqOjt.png
0
288,600
11/13/2008 22:37:42
3,153
08/27/2008 02:45:05
10,362
209
How do I specify in my ccnet config file how to do daily builds?
How do I specify in my ccnet config file how to do daily builds?
ccnet
null
null
null
null
null
open
How do I specify in my ccnet config file how to do daily builds? === How do I specify in my ccnet config file how to do daily builds?
0
4,902,668
02/04/2011 20:37:36
603,780
02/04/2011 20:37:36
1
0
jQuery form vs host language form
I'm making a form in a server using PHP, but I'm considering on using jQuery for the form submittion. So, what option is better? A PHP script that takes the form, validating stuff right there and sending messages when something is wrong, or a jQuery script that sends the form without reloading? What are the pros and cons? Thank you beforehand!
php
jquery
forms
null
null
null
open
jQuery form vs host language form === I'm making a form in a server using PHP, but I'm considering on using jQuery for the form submittion. So, what option is better? A PHP script that takes the form, validating stuff right there and sending messages when something is wrong, or a jQuery script that sends the form without reloading? What are the pros and cons? Thank you beforehand!
0
7,579,081
09/28/2011 06:18:57
968,440
09/28/2011 05:52:31
8
0
Code for comparing two images on matlab?
Can u plz provide me the code for it and am new to this forum too @ lokesh? The code for comparing two images on matlab?
matlab
image-processing
null
null
null
09/29/2011 14:10:22
not a real question
Code for comparing two images on matlab? === Can u plz provide me the code for it and am new to this forum too @ lokesh? The code for comparing two images on matlab?
1
11,601,630
07/22/2012 15:42:43
971,474
09/29/2011 15:34:31
27
0
Incorrect jquery accordion menu
Is there a [website][1] On the home page menu on the left shows normal. And on this [page][2]. It is fully revealed. Question, why is this happening and how to fix it? [1]: http://partssystem.ru/ [2]: http://partssystem.ru/shop/personal/info.html
javascript
jquery
html
null
null
07/23/2012 00:03:13
too localized
Incorrect jquery accordion menu === Is there a [website][1] On the home page menu on the left shows normal. And on this [page][2]. It is fully revealed. Question, why is this happening and how to fix it? [1]: http://partssystem.ru/ [2]: http://partssystem.ru/shop/personal/info.html
3
6,906,616
08/02/2011 02:14:30
131,399
06/30/2009 23:13:43
760
19
Writing a Windows Explorer Clone with drag and drop from Windows in C#
I am trying to create a Window Explorer clone in C#/Visual Studio (that would hopefully look as close to the native explorer as possible) and I need to be able to drag and drop files from this explorer to Windows. Can anyone link me to any places that would be a good starting point for this kind of project? Also, any general tips about how I might do this would be appreciated.
c#
drag-and-drop
visual
windows-explorer
null
08/02/2011 07:57:00
not a real question
Writing a Windows Explorer Clone with drag and drop from Windows in C# === I am trying to create a Window Explorer clone in C#/Visual Studio (that would hopefully look as close to the native explorer as possible) and I need to be able to drag and drop files from this explorer to Windows. Can anyone link me to any places that would be a good starting point for this kind of project? Also, any general tips about how I might do this would be appreciated.
1
10,081,100
04/09/2012 23:21:33
597,609
01/31/2011 22:46:25
1,033
38
matplotlib contourf: get Z value under cursor
When I plot something with `contourf`, I see at the bottom of the plot window the current x and y values under the mouse cursor. Is there a way to see also the z value? Here an example `contourf`: import matplotlib.pyplot as plt import numpy as hp plt.contourf(np.arange(16).reshape(-1,4))
python
plot
matplotlib
contour
null
null
open
matplotlib contourf: get Z value under cursor === When I plot something with `contourf`, I see at the bottom of the plot window the current x and y values under the mouse cursor. Is there a way to see also the z value? Here an example `contourf`: import matplotlib.pyplot as plt import numpy as hp plt.contourf(np.arange(16).reshape(-1,4))
0
10,245,993
04/20/2012 12:10:34
559,839
01/01/2011 16:19:43
126
1
Wifi connection issue in IPhone 4s (5.0.1)
My iPhone 4S very often refuses to connect to my Wi-Fi router.mostly while using uploading file via my app.the connecter loading icon in settings>wifi keeps spinning. If I reboot(restart) the device the problem is gone.after some time same problem occurred.
iphone
ios5
wifi
null
null
04/20/2012 14:45:12
not a real question
Wifi connection issue in IPhone 4s (5.0.1) === My iPhone 4S very often refuses to connect to my Wi-Fi router.mostly while using uploading file via my app.the connecter loading icon in settings>wifi keeps spinning. If I reboot(restart) the device the problem is gone.after some time same problem occurred.
1