Id
int64
1.68k
75.6M
PostTypeId
int64
1
2
AcceptedAnswerId
int64
1.7k
75.6M
ParentId
int64
1.68k
75.6M
Score
int64
-60
3.16k
ViewCount
int64
8
2.68M
Body
stringlengths
1
41.1k
Title
stringlengths
14
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
1
CreationDate
stringlengths
23
23
LastActivityDate
stringlengths
23
23
LastEditDate
stringlengths
23
23
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
1
21.3M
Tags
sequence
3,705,368
1
null
null
0
6,153
I am attempting to load a small application I wrote with AppCelerator on my device. I am having quite a bit of trouble with this because of iOS target mismatches I suspect. AppCelerator provides me two options for the target OS, 3.2 and 4.1. My Phone has firmware 4.1 on it so I selected 4.1: Here is a picture if you want to have a look. ![http://www.neosavvy.com/screenshots/stackoverflow/appcelerator.png](https://i.stack.imgur.com/hwEvF.png) Note that in this image I am selecting output type of 4.1. This generates an XCode project with 4.1 as the base sdk / target sdk of 4.1. When I launch this it generates an XCode project. Organizer contains the following devices and provisioning profiles: Here is a picture of organizer. ![http://www.neosavvy.com/screenshots/stackoverflow/organizer.png](https://i.stack.imgur.com/20GG0.png) It contains my device, with provisioning profiles, with a green dot beside the device meaning it should be a valid target. Then when I try to run the app on my device I see the following options as available targets: Finally here is the dropdown where you select simulators and devices. ![http://www.neosavvy.com/screenshots/stackoverflow/available_debug_devices.png](https://i.stack.imgur.com/fpgUg.png) Notice it simply doesn't contain my device as it did before I upgraded to the new SDK and 4.1 iOS. I assumed I would be able to push to my iphone at this time - have tried all I know to try. Blown away all my provisioning profiles, regenerated my developer certificate, also deleted my login keychain to make sure that I started fresh there. I am really just out of ideas to try - appreciate any and all help!
How do I install my AppCelerator App to my IPhone
CC BY-SA 3.0
null
2010-09-14T00:30:24.480
2011-11-27T00:59:00.450
2011-11-27T00:59:00.450
234,976
358,004
[ "iphone", "appcelerator" ]
3,705,502
1
3,709,184
null
2
1,991
We are running Cruise Control 1.5.7256.1 and using it to do builds using Nant and Nantcontrib. The builds are failing and succeeding correctly, but when they fail the related error messages are being shown on the CCNet Build Report page. See image below ![No Errors!](https://i.stack.imgur.com/EgEHm.png) The build errors can be seen on the View Build Log page, but they aren't making it through to the Build Report page. The build itself is pretty simple, it's just a Nantcontrib msbuild element that builds a .Net 3.5 .sln file. Any ideas?
Cruise Control .Net not showing Nant build errors
CC BY-SA 2.5
0
2010-09-14T01:07:07.450
2010-09-14T13:13:16.677
null
null
17,765
[ ".net", "msbuild", "cruisecontrol.net", "nant", "nantcontrib" ]
3,705,593
1
3,705,915
null
0
326
I've got a Table view and it's the child of the View ( see the IB hierarchy ) : ![alt text](https://i.stack.imgur.com/5BGQb.png) I want to start customizing the tableCells, so I assume I'll have to add a tableViewController . Where would I start in this instance ? the TableViewcontroller can't be a child of the MainViewController, can it ? Cheers,
Adding a TableViewController to an existing table view
CC BY-SA 2.5
null
2010-09-14T01:37:24.107
2010-09-14T03:27:11.730
null
null
415,088
[ "iphone", "objective-c" ]
3,705,949
1
null
null
0
1,559
I cant seem to get the email to display correctly in hotmail and gmail (see attached image) but it all works fine in my client. What is the problem with my code/Or is this an issue with gmail/htmail? > - ![alt text](https://i.stack.imgur.com/SRmGj.png) ![alt text](https://i.stack.imgur.com/Vdjir.png) code: ``` <html> <STYLE> #header { top:20px; position: absolute; left:101px; width: 540px; font-family: 'Lucida Grande', Verdana, Helvetica, Arial, sans-serif; border-bottom: 1px solid #999; height: 110px; } #logo a { position: relative; left: -40px; } #bookname { position: relative; top: 5px; font-size: 20px; background: #B0E2FF; font-weight: bold; color: #666; text-decoration: none; } #book_description { font-family: 'Lucida Grande', Verdana, Helvetica, Arial, sans-serif; font-size: 95%; } .numba { background: #FF6347; color: #ffffff; position: relative; top: 40px; font-size: 20px; font-weight: bold; width: 23px; } .numba10 { background: #FF6347; color: #ffffff; position: relative; top: 40px; font-size: 20px; font-weight: bold; width: 38px; } #main_body { position: absolute; left: 101px; top: 140px; width: 540px; height: 1690px; font-family: 'Lucida Grande', Verdana, Helvetica, Arial, sans-serif; border-bottom: 1px solid #999; font-weight: 95%; } #key { position: relative; top: 40px; font-size: 20px; background: #ff9; font-weight: bold; color: #666; width: 291px; } .p1 { position: relative; top: 34px; font-size: 95%; } .pcl { position: relative; top: 57px; font-size: 95%; } #close { position: relative; top: 51px; font-size: 20px; background: #ff9; font-weight: bold; width: 126px; color: #666; } #link_buy_amazon { color: #27AAE1; font-weight: bold; } #footer { font-family: 'Lucida Grande', Verdana, Helvetica, Arial, sans-serif; left: 101px; color: #666; font-size: 15px; position: absolute; top: 1850px; width: 540px; } #unsub { background: #ff9; color: #666; } #Forwardthis { background: #ff9; color: #666; position: absolute; top: 22px; left: 435px; } #Blurb_author { color: #27AAE1; font-weight: bold; } #forwardit {background: #CAE7FB; color: #666;} img { border-style: none; } </STYLE> <body> <div id='header'> <a id ='Forwardthis' href="*|FORWARD|*">Forward This</a> <a id ='logo' href='http://Blurb.fm'><img src='http://img844.imageshack.us/img844/6943/blurblogo1.png'></a> </div> <div id ='main_body'> <a id='bookname' href='http://www.amazon.com/How-We-Decide-Jonah-Lehrer/dp/0618620117'>How We Decide by Jonah Lehrer</a> </br><br> <div id='book_description'> This book is about our two brains. Our logical brain and our emotional brain. What it suggests is that the emotional brain, "our gut" as some would call it, is actually smarter than our logical brain. The author puts forward a lot of great insights to prove this point. </div> <br> Blurb Made By: <a id='Blurb_author' href='http://twitter.com/taphangum'>Tapha Ngum</a> <div id='key'>Key Ideas From The Book</div> <p class='numba'>1.</p> <p class='p1'> When you feel that you are 'drawn' to something. It is actually because your mind has already decided that it wants that thing. All alternatives have been assessed and a decision has already been unconciously made. </p> <p class='numba'>2.</p> <p class='p1'> Feelings are quite often a very accurate shortcut to use in making a decision. They have years upon years of experience to rely on. "They already know how to do it" as the author says. </p> <p class='numba'>3.</p> <p class='p1'> The ideal environment for the best decision making is usually one where there are a good variety of opinions all simulataneously being shared openly. <p class='numba'>4.</p> </p> <p class='p1'> The best decision makers rarely get down on the decision they have made. Instead they become "students of error", determined to know what went wrong so that next time they will do better. <p class='numba'>5.</p> </p> <p class='p1'> The mind is full of flaws, but they can usually be outsmarted. <p class='numba'>6.</p> </p> <p class='p1'> The best way to make sure your brain is working properly is to study your brain at work. To listen to the internal conflict going on inside your head. </p> <p class='numba'>7.</p> <p class='p1'> Your goal as a person should be to learn from mistakes when they dont count. So that when they do you're prepared to do it the right way. A good example of this is Flight school simulators. They allow the pilot to have the full emotional experience of being in a plane without the risk of any real danger. </p> <p class='numba'>8.</p> <p class='p1'> Even though the emotional brain is very often accurate it does not actually mean that it can always be trusted. It also can sometimes be "impulsive and short-sighted" and "A little too sensitive to patterns" . </p> <p class='numba'>9.</p> <p class='p1'> People often think that more information is always better. But more often than not when you give the brain too many facts "Your asking for trouble". Doin this leads to buying the wrong items at walmart for example. Or picking the wrong stocks. </p> <p class='numba10'>10.</p> <p class='p1'> After a group of black students did worse on their I.Q. tests than white students. (Psychologist) Claude Steel set another test. But this time it was described as a preparatory drill instead of a measure of intelligence (this point was stressed). What ended up happening was that the I.Q scores of both black and white students were virtually idntical. The achievement gap in that instance had been closed. </p> <div id='close'>Conclusion</div> <p class='pcl'> Gaining a better understanding of the human mind has always been one of my great interests, so this book was always going to get high ratings from me. But even so, this really does give you huge insight into how we as human beings think and decide. It does get VERY specific at times but in all, this book is definitely one to buy. </p> </div> <div id='footer'> *|LIST:DESCRIPTION|* <br /> <br /> <a id='unsub' href="*|UNSUB|*">Unsubscribe</a> <b>*|EMAIL|*</b> from this list.<br /> <br /> Our mailing address is:<br /> <br> <b>*|LIST:ADDRESS|*</b><br /> <br /> Copyright (C) 2010 <b>*|LIST:COMPANY|*</b> All rights reserved.<br /> <br /> Sharing is caring! So forward this email to someone you KNOW will love it :). <br><br> <a id='forwardit' href="*|FORWARD|*">Click Here To Forward</a> </div> </div> </body> </html> ``` [3]: [http://i.stack.imgur.com/rzTfP.pngHow](https://i.stack.imgur.com/rzTfP.pngHow) it should look:
What is the problem with this HTML in my email?
CC BY-SA 2.5
null
2010-09-14T03:36:18.190
2010-09-14T03:46:35.677
null
null
276,809
[ "html", "gmail", "email", "hotmail" ]
3,706,041
1
3,709,114
null
0
219
I'm just starting out with NHibernate and am trying to do a mapping for my model. (this is a model-first, TDD approach, just creating the database now) My Class hierachy is something like : ![My Class Hierachy](https://i.stack.imgur.com/hW5Ur.jpg) I'm trying to work out how to map this now using a mapping xml file? This is my table and what I want them to map to QuestionId - Int - [Question.Id] PmqccFormId - Int - [Question.PmqccForm.Id] InputtedAnswer - Int - [NormalQuestion.InputtedAnswer or JobVelocityQuestion.InputtedAnswer - they are both enums that will be converted to/from ints, can separate these into separate columns if need be] ResponsibleStaffId -Int - [PiAlertQuestion.ResponsibleStaffMember.Id] Explanation - varchar - [Question.Explanation] QuestionType - varchar - [Discriminator] I'm not sure how to map this given it forks a a bit. There are a heap more 'Question' objects that all inherit from YesNoQuestion or NormalQuestion but don't add anymore properties, just methods implementations. I'm guessing I have a for the Question base class and then have ones under that? the tricky bit is the JobVelocityQuestion inheriting from Question. Can anyone point me in the right direction?
NHibernate mapping with forking inheritance model
CC BY-SA 2.5
null
2010-09-14T04:00:28.057
2010-09-14T13:04:41.423
null
null
126,597
[ "c#", "nhibernate", "hibernate", "nhibernate-mapping" ]
3,706,285
1
3,706,458
null
0
1,781
I am trying to create layout like this ![enter image description here](https://i.stack.imgur.com/qbf5d.jpg) In the QT i created widgets and put in the main widget, the problem is not visible. none of the widget's are not shown. please help me to fix this issue Complete Source Code sandbox.ifuturemec.com/test.zip Source code mainWindow.cpp ``` #include "mainwindow.h" #include <QtGui> #include "headerbar.h" #include <QGridLayout> #include <QPushButton> #include <QBoxLayout> #include "statusbar.h" #include "leftpanel.h" #include "rightpanel.h" #include "centerpanel.h" mainWindow::mainWindow(QWidget *parent) : QWidget(parent) { QGridLayout *layout=new QGridLayout(this); headerBar *Header= new headerBar(this); leftPanel *LeftPanel=new leftPanel(this); centerPanel *CenterPanel=new centerPanel(this); rightPanel *RightPanel=new rightPanel(this); statusBar *Status=new statusBar(this); QHBoxLayout *box=new QHBoxLayout(); box->addWidget(LeftPanel); box->addWidget(CenterPanel); box->addWidget(RightPanel); layout->addWidget(Header,0,0); layout->addLayout(box,1,0); layout->addWidget(Status,2,0); setLayout(layout); } mainWindow::~mainWindow() {} ``` mainWindow.h ``` #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QWidget> class mainWindow : public QWidget { Q_OBJECT public: mainWindow(QWidget *parent = 0); ~mainWindow(); signals: public slots: }; #endif // MAINWINDOW_H ``` headerbar.cpp ``` #include "headerbar.h" #include <QPushButton> #include <QMessageBox> headerBar::headerBar(QWidget *parent) : QWidget(parent) { this->setMaximumHeight(24); this->setStyleSheet("background-color: rgb(85, 170, 255)"); } headerBar::~headerBar(){} ``` headerbar.h ``` #ifndef HEADERBAR_H #define HEADERBAR_H #include <QWidget> class headerBar : public QWidget { Q_OBJECT public: headerBar(QWidget *parent = 0); ~headerBar(); signals: public slots: }; #endif // HEADERBAR_H ``` Please help me to fix this problem.
Why don't my widgets get displayed?
CC BY-SA 3.0
null
2010-09-14T05:23:00.463
2012-01-30T13:39:52.457
2012-01-30T13:39:52.457
77,595
446,208
[ "c++", "qt", "qt4" ]
3,706,765
1
null
null
1
547
I`m using an Image that is 320x30 using this code : ``` UIImageView *bg = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"higlight_cell_mockup.png"]]; [bg setContentMode:UIViewContentModeScaleAspectFit]; cell.backgroundView = bg ; ``` Problem is, it's still looking like this : ![alt text](https://i.stack.imgur.com/XS0Rv.png) instead of scaling the image up to fill the cell . Any ideas ? --- This is using : ``` [bg setContentMode:UIViewContentModeScaleToFill]; ``` ![alt text](https://i.stack.imgur.com/Hmzks.png) And this is using : ``` [bg setContentMode:UIViewContentModeScaleAspectFill]; ``` ![alt text](https://i.stack.imgur.com/XkcCM.png) They vertically scale up better but they BG is still only filling a tiny portion of the cell left of the text, can't get it to fill the entire cell unfortunately ..
Resizing to fit an Image in a TableView Cell
CC BY-SA 2.5
null
2010-09-14T07:10:32.937
2010-12-16T14:13:09.950
2010-09-15T00:53:12.387
415,088
415,088
[ "iphone", "objective-c" ]
3,706,775
1
3,715,879
null
3
1,117
My program is fast enough, but I'd rather give up that speed for memory optimization since one user's maximum memory usage goes up to 300 MB meaning few of them could constantly crash the application. Most of the answers I found were related to speed optimization, and other were just general ("if you write directly from a database to memory there shouldn't be much memory usage"). Well, it seems there is :) I was thinking about not posting code so I wouldn't "lock" someone's ideas, but on the other hand, I could be wasting your time if you don't see what I've already done so here it is: ``` // First I get the data from the database in a way that I think can't be more // optimized since i've done some testing and it seems to me that the problem // isn't in the RS and setting FetchSize and/or direction does not help. public static void generateAndWriteXML(String query, String oznaka, BufferedOutputStream bos, Connection conn) throws Exception { ResultSet rs = null; Statement stmt = null; try { stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); rs = stmt.executeQuery(query); writeToZip(rs, oznaka, bos); } finally { ConnectionManager.close(rs, stmt, conn); } } // then I open up my streams. In the next method I'll generate an XML from the // ResultSet and I want that XML to be saved in an XML, but since its size takes up // to 300MB, I want it to be saved in a ZIP. I'm thinking that maybe by writing // first to file, then to zip I could get a slower but more efficient program. private static void writeToZip(ResultSet rs, String oznaka, BufferedOutputStream bos) throws SAXException, SQLException, IOException { ZipEntry ze = new ZipEntry(oznaka + ".xml"); ZipOutputStream zos = new ZipOutputStream(bos); zos.putNextEntry(ze); OutputStreamWriter writer = new OutputStreamWriter(zos, "UTF8"); writeXMLToWriter(rs, writer); try { writer.close(); } catch (IOException e) { } try { zos.closeEntry(); } catch (IOException e) { } try { zos.flush(); } catch (IOException e) { } try { bos.close(); } catch (IOException e) { } } // And finally, the method that does the actual generating and writing. // This is the second point I think I could do the memory optimization since the // DataWriter is custom and it extends a custom XMLWriter that extends the standard // org.xml.sax.helpers.XMLFilterImpl I've tried with flushing at points in program, // but the memory that is occupied remains the same, it only takes longer. public static void writeXMLToWriter(ResultSet rs, Writer writer) throws SAXException, SQLException, IOException { //Set up XML DataWriter w = new DataWriter(writer); w.startDocument(); w.setIndentStep(2); w.startElement(startingXMLElement); // Get the metadata ResultSetMetaData meta = rs.getMetaData(); int count = meta.getColumnCount(); // Iterate over the set while (rs.next()) { w.startElement(rowElement); for (int i = 0; i < count; i++) { Object ob = rs.getObject(i + 1); if (rs.wasNull()) { ob = null; } // XML elements are repeated so they could benefit from caching String colName = meta.getColumnLabel(i + 1).intern(); if (ob != null) { if (ob instanceof Timestamp) { w.dataElement(colName, Util.formatDate((Timestamp) ob, dateFormat)); } else if (ob instanceof BigDecimal) { // Possible benefit from writing ints as strings and interning them w.dataElement(colName, Util.transformToHTML(new Integer(((BigDecimal) ob).intValue()))); } else { // there's enough of data that's repeated to validate the use of interning w.dataElement(colName, ob.toString().intern()); } } else { w.emptyElement(colName); } } w.endElement(rowElement); } w.endElement(startingXMLElement); w.endDocument(); } ``` EDIT: Here is an example of memory usage (taken with visualVM): ![Memory usage screenshot](https://i.stack.imgur.com/WdonQ.jpg) EDIT2: The database is Oracle 10.2.0.4. and I've set ResultSet.TYPE_FORWARD_ONLY and got a maximum of 50MB usage! As I said in the comments, I'll keep an eye on this, but it's really promising. ![Memory usage after adding ResultSet.TYPE_FORWARD_ONLY](https://i.stack.imgur.com/TJc9R.jpg) EDIT3: It seems there's another possible optimization available. As I said, I'm generating an XML, meaning lots of data is repeated (if nothing else, then tags), meaning String.intern() could help me here, I'll post back when I test this.
What is the most memory efficient way to write from a database to a (zip) file in Java?
CC BY-SA 2.5
0
2010-09-14T07:13:27.393
2010-09-15T08:26:22.950
2010-09-14T11:20:33.293
348,389
348,389
[ "java", "file", "optimization", "memory", "writer" ]
3,706,794
1
null
null
0
706
![alt text](https://i.stack.imgur.com/Yz2u0.jpg) I have an aspx page (c# application), which i have to link to the new link created under documents. How to create a new link and map it to new seperate aspx page Please guide me
Sharepoint - Create new link in Documents and link to asp.net page
CC BY-SA 2.5
null
2010-09-14T07:17:31.597
2010-09-14T07:56:23.823
2010-09-14T07:56:23.823
124,238
320,009
[ "c#", "sharepoint", "sharepoint-2007" ]
3,706,814
1
3,707,783
null
1
1,619
I have a SQL Server 2008 report with a bit field - I'd like to display embedded images depending on IsUS bit value. ![alt text](https://i.stack.imgur.com/bPn9L.png) Below is the result after applying Fillet's [answer](https://stackoverflow.com/questions/3706814/how-to-reference-embedded-sql-server-reporting-service-2008-images/3707783#3707783) -------------------- -------------------- ![alt text](https://i.stack.imgur.com/GHXKj.png)
How to reference embedded SQL Server Reporting Service 2008 images
CC BY-SA 2.5
null
2010-09-14T07:22:01.960
2010-09-14T10:45:40.677
2017-05-23T12:19:44.807
-1
4,035
[ "sql-server-2008", "reporting-services", "embedded-resource" ]
3,707,133
1
3,709,916
null
10
16,692
I'm writing a simple kernel driver for my application (think of a very simple anti-malware application.) I've hooked `ZwOpenFile()` and used `PsGetCurrentProcess()` to get a handle to the caller process. It returns a PEPROCESS structure: ``` PEPROCESS proc = PsGetCurrentProcess(); ``` I'm using `ZwQueryInformationProcess()` to get the `PID` and `ImageFileName`: ``` DbgPrint("ZwOpenFile Called...\n"); DbgPrint("PID: %d\n", PsGetProcessId(proc)); DbgPrint("ImageFileName: %.16s\n", PsGetProcessImageFileName(proc)); ``` and trying to get the process `FullPath` this way (but I get BSOD): ``` WCHAR strBuffer[260]; UNICODE_STRING str; //initialize str.Buffer = strBuffer; str.Length = 0x0; str.MaximumLength = sizeof(strBuffer); //note that the seconds arg (27) is ProcessImageFileName ZwQueryInformationProcess(proc, 27, &str, sizeof(str), NULL); DbgPrint("FullPath: %wZ\n", str.Buffer); ``` ![DbgView Output](https://i.stack.imgur.com/5ik7K.png) As you see `str.Buffer` is empty or filled with garbage. Perhaps a buffer overflow while filling the `str` via `ZwQueryInformationProcess()` triggers the BSOD. ![alt text](https://i.stack.imgur.com/YmFzJ.png) Any help would be appreciated.
How to use ZwQueryInformationProcess to get ProcessImageFileName in a kernel driver?
CC BY-SA 3.0
0
2010-09-14T08:14:23.803
2016-11-09T12:47:32.730
2013-08-24T19:53:02.203
303,270
303,270
[ "c++", "hook", "driver", "wdk" ]
3,707,231
1
11,573,116
null
8
893
Given a convex polygon, I am trying to grow its shape (as in "maximal area") while preserving its diameter. The diameter is defined as the length of the longest segment that can be placed within the polygon. Since the polygon is convex, I assume that this diameter can always be found by scanning all vertex pairs. For example, given an equilateral triangle as an input polygon, the diameter of the triangle is the length of any edge; smoothing this would result in 3 circle segments as shown in the image![before-and-after-smoothing](https://i.stack.imgur.com/wVOvu.png) For arbitrary convex polygons, a very inefficient algorithm is to compute the intersection of the maximum-diameter radius circles centered on each polygon vertex; this is what I am currently using (in Java). Is there anything better? Any pseudo-code or pointer to algorithm will be appreciated. Another example: a squashed pentagon and its corresponding diameter-preserving maximal shape. The idea is that you cannot increase the area of this shape without increasing the diameter (that is, making it possible to draw a straight line within the bounds of the shape which is longer than the original diameter). In this particular case, it seems that a single circle with radius = polygon_diameter/2 (pink) is better than the intersection of multiple larger circles with radius = polygon_diameter (light-blue). The second image superimposes both areas to make comparison easier, but areas should completely enclose the polygon. ![enter image description here](https://i.stack.imgur.com/uFuGm.png)
Smooth a convex polygonal shape so that it becomes as large as possible while retaining diameter
CC BY-SA 3.0
0
2010-09-14T08:31:09.383
2012-07-20T04:57:04.473
2012-07-16T08:53:56.570
15,472
15,472
[ "computational-geometry", "shapes", "convex-polygon" ]
3,707,376
1
3,717,351
null
0
175
a win7 x64 box with a local Sharepoint 2010 installed on DB. with integration and analysis services next to the existing database. Because I had issues deploying analysis services solutions, . Eventually I got it to work and managed to deploy a analysis service solution. I figure I messed up one (or more) of the services too much and made them incompatible with the sharepoint setup. I'm no hero when it comes to security and configuration to solve this issue.. This is a screenshot of the SQL related services that I played around with last week. ![alt text](https://i.stack.imgur.com/8nmuC.png) I have already played around with the accounts today but as I said before, I don't really know what I'm doing. I have also tried restarting the app pool and the application in IIS. Any advice is welcome about which service could cause this problem and what else I can try. Thank you.
SQL connection issue from sharepoint after messing with service accounts
CC BY-SA 2.5
null
2010-09-14T08:56:54.423
2010-09-15T11:59:09.137
null
null
72,859
[ "sql-server", "security", "sharepoint", "service" ]
3,707,395
1
null
null
0
278
I have an UITableView whose rows can be deleted. this table view has a search bar at the top. the problem is: if search was used, application crashes when I try to delete any row from the table view. there is no information in the debugger console. all I have is function stack from the debugger: ![alt text](https://i.stack.imgur.com/N1RBZ.png) Any ideas what it can be? UPDATE 1: crash happens only if I return UISearchBar is a header view for UITableView's section. UPDATE 2: contacts Apple DTS and they confirmed this is an SDK bug.
UITableView weird crash on row deletion
CC BY-SA 2.5
null
2010-09-14T08:59:52.927
2010-09-26T08:56:03.950
2010-09-26T08:56:03.950
187,270
187,270
[ "iphone", "objective-c", "uitableview", "uikit", "crash" ]
3,707,720
1
3,707,826
null
0
81
Here is the question : I have following entities: ![alt text](https://i.stack.imgur.com/XnfNm.jpg) Every time I update or insert a transaction I would like to autodetect the category depending on `ReferenceMappingExpression` or `DescriptionMapppingExpression` in `CategoryMappings` Entity. I mean, I want to match `Transaction.Description` to `CategoryMappings.DescriptionMapping` and if it matches get the `FkCategoryID` from `CategoryMapping` and save the transactions. It is possible to loop through every transaction in list and `categorymapping` list but I don't think its good idea. How would you do this? Any suggestions? Any experience of that?
C# ADO.NET Entity
CC BY-SA 3.0
null
2010-09-14T09:42:18.103
2013-04-10T20:52:05.290
2013-04-10T20:52:05.290
558,486
304,083
[ "c#", ".net", "entity-framework" ]
3,707,881
1
3,727,611
null
2
1,150
I am new to Business Intelligence. I just got hired by a company in order to complete their websolution, implementing a BI Module. After lot of reading, I think I could get an idea of what a BI Process looks like, you'll find enclose my idea of a BI process. Can you please tell me if this is a correct vision of the all workflow ? If not please correct me. Another question, I can't see the place of data mining in the schema, where should I use it if needed ? Thanks a lot,![alt text](https://i.stack.imgur.com/TTraY.jpg)
Is this a proper idea of BI workflow?
CC BY-SA 2.5
null
2010-09-14T10:06:38.287
2010-09-16T14:35:31.563
null
null
290,613
[ "olap", "etl", "business-intelligence", "datamart" ]
3,708,085
1
null
null
-1
1,081
Anyone know whether (and if so, how) we can create the half-turned page effect Google Maps on the iPad uses to show the options to change the Map type?.. See below image to see what I'm talkin' about.. ![Half turned page](https://i.stack.imgur.com/L11QC.png) Incidentally, any pretty good Map Kit tutorials you guys know of that are out there? (covering anything new brought on through iOS4) Support for Map Kit ain't much out there it seems... Thanks!
Google Maps curl animation in MKMapView / Map Kit on iOS4
CC BY-SA 3.0
null
2010-09-14T10:37:55.140
2014-07-27T02:39:26.370
2014-07-27T02:39:26.370
2,732,991
447,246
[ "iphone", "google-maps", "animation", "mapkit", "mkmapview" ]
3,708,092
1
null
null
3
2,692
I have created a new version of iPhone app. I wanted to change the icon, so: - ![alt text](https://i.stack.imgur.com/HFokR.png) - ![alt text](https://i.stack.imgur.com/bSYlb.png) - The effects: - I can see the new icon when I run my app on simulator.- I can see the new icon when I visit AppStore with iTunes on my Mac.- I can see the OLD icon when I visit AppStore on my iPhone.- I can see the OLD icon on my iPhone after upgrading my app to the new version. Any ideas why the old icon is still visible in some of the places? kind regards, Jakub
Icon is not changed after update of an app
CC BY-SA 2.5
0
2010-09-14T10:39:12.937
2010-09-14T12:04:43.643
null
null
256,205
[ "iphone", "xcode", "app-store", "itunes" ]
3,708,313
1
3,711,537
null
0
2,163
I would like to type some math equation within texts. However, because the equation is too long, it extends into the margin on the right side of the page. Please see the image below: ![alt text](https://i.stack.imgur.com/YEvs0.png) My Latex code is: ``` The minimal cost is 1358.3333 calories, which is achieved by the vector $[x_1, x_2, x_3, x_4, x_5, x_6]=[4.1667, 0.0000, 0.0000, 0.0000, 8.3333, 29.1667]$, where the total fat is $4.17\%$, saturated fat and cholesterol both $0$, sodium $37.5\%$, total carbohydrate, calcium and iron all $100\%$ meaning their constraints active, dietary fiber $341.67\%$, vitamin A $5154.17\%$, vitamin C $1600\%$. ``` Anyone has some idea about how to make the extending part of the equation to start at the next line? Thanks and regards!
How to make a long equation within text span more than one line?
CC BY-SA 2.5
null
2010-09-14T11:12:59.833
2010-09-14T18:01:41.567
2010-09-14T18:01:41.567
19,750
156,458
[ "latex" ]
3,708,353
1
3,708,388
null
1
448
How can I achieve the following layout in Android? What I would like, is to have the 3 blue boxes top aligned in their view, and then I'd like to have the red box centered underneath the blue boxes, but so that when I animate the red box up, it slides underneath the blue box. I have tried placing the blue and red boxes in different layouts, but as soon as I animate the red box up, if it goes outside the border of its layout, it disappears (I don't want the red box's layout to clip the red box, I want the red box to slide under the blue box so that the blue box occludes the red box.) I have also managed to create this layout using a series of nested layouts, but because of the draw order, the red box always appears on top of the blue box. I attempted to use the bringToFront() method, but I found out that this only works on sibling views within the same layout. Unfortunately I can't get this type of layout while keeping all 4 views within the same layout. Any suggestions? (also, if anyone has better suggestions for the title of this question I'm all ears) ![alt text](https://i.stack.imgur.com/VHwTc.jpg)
How can I achieve this basic layout in android with the proper z-ordering of views
CC BY-SA 2.5
null
2010-09-14T11:20:36.120
2010-09-14T11:26:49.690
2020-06-20T09:12:55.060
-1
107,459
[ "android", "animation", "layout", "view", "z-order" ]
3,708,774
1
null
null
2
156
I need to increase the size of a field in a table from VARCHAR(100) to VARCHAR(255). For different reasons, this causes the table to be dropped and recreated (along with relationships, FKs, etc). That is acceptable however, I’m performing this change in a SQL2008R2 (express) (or 2008 Express, same result), but the script doesn’t work in SQL2000 (and has to), . ![Management Studio Options](https://i.stack.imgur.com/H9Ey3.png) After doing the above, I go to the table, Design it, change the (100) to (255) and click Generate Change Script. The result contains some of the following that will execute under SQL 2000: ``` BEGIN TRANSACTION GO ALTER TABLE dbo.mytable DROP CONSTRAINT FK_mytable_othertable GO ALTER TABLE dbo.othertable SET (LOCK_ESCALATION = TABLE) GO COMMIT ``` The SET (LOCK_ESCALATION) doesn’t work under SQL 2000. Other SQL2005/8 > things I see are: ``` WITH (HOLDLOCK TABLOCKX) ``` and ``` ALTER TABLE dbo.mytable ADD CONSTRAINT PK_mytable PRIMARY KEY CLUSTERED ( idmytable ) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO ``` All that “WITH” thing doesn’t belong on SQL 2000. Why does SQL Management Studio scripts for (in)compatibility? What does that “option” do then? : I’ve filed a bug at Microsoft Connect until someone proves me wrong :) You can find it [here](https://connect.microsoft.com/SQLServer/feedback/details/597736/sql-server-management-studio-2008-2008r2-express-scripting-ignores-the-version).
Why does SQL Server Management Scripting ignores the version?
CC BY-SA 2.5
null
2010-09-14T12:18:50.813
2010-09-18T09:45:41.920
2010-09-14T13:53:35.173
2,684
2,684
[ "sql-server", "scripting", "compatibility" ]
3,708,918
1
3,709,182
null
0
685
I'm developing a presentation tool for AIR (to be used together with, or as a replacement to, PowerPoint) but I'm quite a newcomer to flex layouting. As you can see from the image, the presenter can open various apps from the main window. Each of these apps open up in new windows which have different visual characteristics; some use the main content area to show graphics, others bullet points. Most app windows have buttons and view stacks with embedded Flash assets (using s:SpriteVisualElement). 1a. When developing a PowerPoint-like presentation tool with Flex, which layout type (basic, vertical etc.) will provide most flexibility? 1b. How do I make sure no clipping occurs on various projector screens - which aspect ratio should I have in mind? 2a. How can I resize children sprites in the SpriteVisualElement container proportionally to the window resolution? 2b. And where do I place this resize logic - on each component (sprite) with resizeHandlers or in one resizeHandler / window? Please use the comment thread if you want me to elaborate further. Thanks. ![alt text](https://i.stack.imgur.com/SAtis.jpg)
Flex/AIR layout for presentation tool (resize logic, aspect ratios etc.)
CC BY-SA 2.5
null
2010-09-14T12:40:31.720
2010-09-14T13:13:13.590
null
null
104,059
[ "apache-flex", "actionscript-3", "layout", "air", "resolution" ]
3,709,065
1
null
null
0
311
I need to add a UITabBarController as subView. But I can't remove the white space on top. Does anybody know a solution? ![alt text](https://i.stack.imgur.com/8zJIl.png) Thanks, Andreas
white space on top of UITabBarController
CC BY-SA 2.5
null
2010-09-14T12:57:39.583
2011-09-16T02:44:46.333
null
null
347,741
[ "objective-c", "uitabbarcontroller" ]
3,709,152
1
3,709,889
null
4
12,688
I'm not too familiar with using the `<h:messages>` element in JSF. What I'm trying to do is use it to display a list of global messages of varying severity that are generated by a method in my backing bean. Getting the messages into the `FacesContext` isn't too much of a problem, and my code is along these lines: ``` FacesMessage message; FacesContext context = FacesContext.getCurrentInstance(); message = new FacesMessage( FacesMessage.SEVERITY_INFO, "test message summary 1", "test message detail 1"); context.addMessage(null, message); message = new FacesMessage( FacesMessage.SEVERITY_WARN, "test message summary 2", "test message detail 2"); context.addMessage(null, message); message = new FacesMessage( FacesMessage.SEVERITY_ERROR, "test message summary 3", "test message detail 3"); context.addMessage(null, message); // add more messages... ``` That all works fine. My problem is with trying to make the output of the `<h:messages>` tag look good on the page. Here is the relevant piece of my JSP file: ``` <h:panelGrid border="1" columns="1" id="messagesPanelGrid"> <h:messages id="messagesOutput" showSummary="true" showDetail="true" layout="table" infoClass="info-message" warnClass="warn-message" errorClass="error-message" fatalClass="fatal-message" globalOnly="true" /> </h:panelGrid> ``` This consistently looks like crap on the page. I am using an external CSS stylesheet to define styling classes. I've tried using `layout="list"` but then the list items span the whole page and make any block styling look bad, so I switched to `layout="table"`. I framed the `<h:messages>` inside a `<h:panelGrid>` so I would have some block-level element that I could apply styles to. It still doesn't look particularly nice. What I'm getting now: ``` <table border="1" id="myForm:messagesOutput"> <tr><td class="error-message"><span>no port name match Could not match reported port name XXXX to a known port for vessel VESSEL A</span></td></tr> <tr><td class="error-message"><span>no port name match Could not match reported port name YYYY to a known port for vessel VESSEL B</span></td></tr> <tr><td class="error-message"><span>no port name match Could not match reported port name YYYY to a known port for vessel VESSEL C</span></td></tr> <tr><td class="error-message"><span>no port name match Could not match reported port name ZZZZ to a known port for vessel VESSEL D</span></td></tr> <tr><td class="warn-message"><span>arrival date missing No arrival date provided for vessel VESSEL B</span></td></tr> </table> ``` What I'm trying to get: ``` <table border="1" id="myForm:messagesOutput" class="myMessagesTableClass"> <thead><tr"><td>SUMMARY</td><td>DETAIL</td></tr></thead> <tr><td class="error-message-summary"><span>no port name match</span></td><td class="error-message-detail"><span>Could not match reported port name XXXX to a known port for vessel VESSEL A</span></td></tr> <tr><td class="error-message-summary"><span>no port name match</span></td><td class="error-message-detail"><span>Could not match reported port name YYYY to a known port for vessel VESSEL B</span></td></tr> <tr><td class="error-message-summary"><span>no port name match</span></td><td class="error-message-detail"><span>Could not match reported port name YYYY to a known port for vessel VESSEL C</span></td></tr> <tr><td class="error-message-summary"><span>no port name match</span></td><td class="error-message-detail"><span>Could not match reported port name ZZZZ to a known port for vessel VESSEL D</span></td></tr> <tr><td class="warn-message-summary"><span>arrival date missing</span></td><td class="warn-message-detail"><span>No arrival date provided for vessel VESSEL B</span></td></tr> </table> ``` - - - - SCREENSHOT: ![alt text](https://i.stack.imgur.com/JXh9e.jpg) `<h:messages>` I'm not sure if it matters for this question, but I'm using MyFaces 1.2. I can't upgrade to 2.x at the moment.
JSF - How can I format my global messages in <h:messages> in a visually appealing way?
CC BY-SA 2.5
0
2010-09-14T13:09:30.160
2014-07-08T14:32:30.143
2010-09-14T14:20:42.110
346,112
346,112
[ "java", "css", "web-applications", "jsf", "myfaces" ]
3,709,172
1
3,710,925
null
0
947
I have a Game-sprite representing a game room with up to 3 players, it works ok. And would like to populate a List component with those Game's, based on an XML data coming from a socket. I've prepared a simple test case demonstrating my problem - (should have a List component in its Library): ``` import fl.data.*; import fl.controls.*; stop(); var xml:XML = <data> <lobby> <user id="OK252342810632" name="Armen"/> <user id="DE6948" name="uriuri"/> <user id="DE6577" name="Polikari"/> <user id="DE7981" name="AlekseyBr"/> <user id="DE7880" name="alex554"/> </lobby> <game id="0"/> <game id="9012"> <user id="OK10218913103" name="Yervand"/> </game> <game id="9013"> <user id="OK305894249541" name="chabo"/> <user id="OK151358069597" name="Elena"/> </game> <game id="9007"> <user id="DE7062" name="lexo"/> </game> <game id="9010"> <user id="OK31902424355" name="Nor"/> <user id="VK8509030" name="Ilja"/> <user id="OK357833936215" name="Jaroslav"/> </game> </data>; var game:Game = new Game(); game.x = 10; game.y = 10; game.id = xml.game.(@id=='9010').@id; addChild(game); var dp:DataProvider = new DataProvider(xml); var list:List = new List(); list.move(Game.W + 20, 10); list.width = Game.W + 20; list.height = stage.stageHeight/2 - 20; list.rowHeight = Game.H + 10; list.setStyle('cellRenderer', Game); list.dataProvider = dp; addChild(list); ``` (my custom cell renderer, works ok on its own): ``` package { import flash.display.*; import flash.text.*; import fl.controls.listClasses.*; public class Game extends Sprite implements ICellRenderer { public static const W:uint = 60; public static const H:uint = 60; private var _id:TextField; private var _listData:ListData; private var _data:Object; private var _selected:Boolean; public function Game() { mouseChildren = false; buttonMode = true; var rect:Shape = new Shape(); rect.graphics.beginFill(0x6666FF); rect.graphics.drawRect(0, 0, W, H); rect.graphics.endFill(); addChild(rect); _id = new TextField(); addChild(_id); } public function set id(str:String):void { _id.text = '#' + str; _id.x = (W-_id.textWidth)/2; _id.y = (H-_id.textHeight)/2; } public function get id():String { return _id.text; } public function update(xml:XML):void { id = xml.@id; } public function set listData(d:ListData):void { _listData = d; } public function get listData():ListData { return _listData; } public function set data(d:Object):void { trace(d); _data = d; } public function get data():Object { return _data; } public function get selected():Boolean { return _selected; } public function set selected(sel:Boolean):void { _selected = sel; } public function setMouseState(state:String):void { } public function setSize(width:Number, height:Number):void { } } } ``` : ![alt text](https://i.stack.imgur.com/8lMAj.png) As you see a standalone game is displayed ok, but as a cellRenderer in the List component it fails - I don't know how to set the id's for the List items. Please advise me how to fix it Thank you, Alex : ``` public function set data(d:Object):void { _data = d; id = d.id; } ``` as suggested by Claus works ok now, but how do I get the ids and names of the users? When I set a breakpoint in the above method, then I see that the d.user is just an empty string ""
Custom cellRenderer for a List with XML data
CC BY-SA 2.5
null
2010-09-14T13:11:48.610
2010-09-15T17:22:30.563
2010-09-15T14:05:47.163
165,071
165,071
[ "flash", "actionscript-3", "actionscript" ]
3,709,205
1
3,710,247
null
2
1,853
We moved our projects (SQL Server and .Net) from Visual-Source-Safe to SubVersion. We have installed Tortoise SVN and AnkhSVN clients on the location machine. When I lock a file, the icon in Windows Explorer changes, but there is no indication in Visual Studio of any lock. Visual-Studio ![alt text](https://i.stack.imgur.com/qLrkI.jpg) Windows Explorer ![alt text](https://i.stack.imgur.com/hMF1U.jpg) How do I fix this?
AnkhSVN for Subversion does not show Source-Code-Control related icons
CC BY-SA 2.5
null
2010-09-14T13:16:14.563
2013-05-04T03:41:36.530
2010-09-14T13:48:23.487
109,035
109,035
[ "c#", "svn", "visual-studio-2005", "icons", "ankhsvn" ]
3,709,466
1
3,710,113
null
0
956
Hi I am trying to create a Custom View that takes as well as deletes a picture and looks like the following: ![alt text](https://i.stack.imgur.com/gDUW9.png) Following operations a view can perform: - - - How do I create a listener to find out when the image has been taken by the camera? The location of the image that needs to be taken is known before. ``` public class artooPicture extends RelativeLayout { ImageView preview, delete; String value = Environment.getExternalStorageDirectory() + "/99006796" + "_" + ".jpg", suffix; boolean clicked = false; public artooPicture(Context context) { this(context, null); } public artooPicture(Context context, AttributeSet attrs) { this(context, attrs, 0); } public artooPicture(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); ((Activity) getContext()).getLayoutInflater().inflate(R.layout.picture, this, true); delete = (ImageView) findViewById(R.id.scan_delete); preview = (ImageView) findViewById(R.id.scan_preview); File f = new File(value); if (f.exists()) { clicked = true; preview.setImageDrawable(BitmapDrawable.createFromPath(value)); } else { } delete.setOnClickListener(deleteListener); preview.setOnClickListener(previewListener); } View.OnClickListener deleteListener = new OnClickListener() { @Override public void onClick(View v) { if(clicked){ File f = new File(value); f.delete(); preview.setImageResource(R.drawable.no_image); } clicked = false; } }; View.OnClickListener previewListener = new OnClickListener() { @Override public void onClick(View v) { Intent i = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); i.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File(value))); getContext().startActivity(i); } }; } ```
Custom View that takes & delete a Camera Picture
CC BY-SA 2.5
0
2010-09-14T13:48:56.717
2010-09-14T15:10:35.647
null
null
356,580
[ "android", "view", "camera" ]
3,709,906
1
3,710,002
null
1
1,646
I'm trying to mimic the layout of the icons in Facebook android app. ![alt text](https://i.stack.imgur.com/eA6sY.png) As you can see, this is a 2x3 layout, but if you flip it it becomes 3x2 layout. How to accomplish this?
Facebook for Android icons layout
CC BY-SA 2.5
0
2010-09-14T14:37:07.190
2010-09-15T04:17:03.600
null
null
73,010
[ "android", "facebook" ]
3,710,027
1
3,710,445
null
0
207
i have an table view and + symbol is on the every cell of table view ,i should able to see disappearing + symbol by animating whenever i selected the cell ![alt text](https://i.stack.imgur.com/7LSNS.png)
how to animate + symbol to disappear on table cell
CC BY-SA 2.5
null
2010-09-14T14:47:45.403
2012-08-08T03:28:45.760
2012-08-08T03:28:45.760
1,023,783
365,087
[ "iphone", "xcode", "animation", "uitableview" ]
3,710,159
1
3,717,259
null
0
426
i have problem in admin site in WordPress. Looks on not working jQuery there. ![alt text](https://i.stack.imgur.com/A3Q74.png) i use hosting from freehosting.com maybe this is a main problem. Here is full resolution screend: [link text](https://i.stack.imgur.com/A3Q74.png)
WordPress and jQuery problem
CC BY-SA 2.5
null
2010-09-14T15:04:05.770
2010-10-24T17:01:49.637
2010-09-14T15:10:14.400
390,747
390,747
[ "jquery", "wordpress" ]
3,710,186
1
3,720,747
null
4
401
So in general, when we think of Single View Reconstruction we think of working with planes, simple textures and so on... Generally, simple objects from nature's point of view. But what about such thing as wet beach stones? I wonder if there are any algorithms that could help with reconstructing 3d from single picture of stones? ![such](https://i.stack.imgur.com/nC5tz.jpg) ![or such simple small stones](https://i.stack.imgur.com/uD2Dc.jpg)
Any ideas on real life rocks 3d Reconstruction from Single View?
CC BY-SA 2.5
0
2010-09-14T15:06:24.797
2010-09-15T19:29:47.747
2010-09-15T19:29:47.747
434,051
434,051
[ "algorithm", "3d", "geometry", "computer-vision" ]
3,710,241
1
3,761,738
null
2
1,216
I'm building a schema.yml and I'm trying to add foreign key constraints to the table sf_guard_user. But, when I do doctrine:insert-sql (edit: doctrine:build --all), the links between my tables and sf_guard_user are not there ! Am I missing something ? I'm using mysql () and Symfony 1.4 Here's a sample of my schema.yml : ``` Author: connection: doctrine tableName: ec_author actAs: Sluggable: fields: [name] unique: true canUpdate: false columns: sf_guard_user_id: type: integer fixed: false unsigned: false primary: true autoincrement: false name: type: string(30) fixed: false unsigned: false primary: false notnull: true autoincrement: false contents: type: string() fixed: false unsigned: false primary: false notnull: false autoincrement: false relations: User: class: sfGuardUser foreignType: one local: sf_guard_user_id foreign: id ``` There are no links to sfGuardUser, even though they are described in schema.yml : ![alt text](https://i.stack.imgur.com/Gw3rV.png) ![alt text](https://i.stack.imgur.com/ZyRXe.png)
schema.yml using sfDoctrineGuardPlugin
CC BY-SA 2.5
null
2010-09-14T15:12:57.410
2011-01-13T21:42:04.133
2010-09-21T13:11:52.733
113,305
113,305
[ "symfony1", "doctrine", "sfdoctrineguard" ]
3,710,360
1
3,719,552
null
30
135,269
I want to put padding on a css border. Pull it inside a div, away from the edge. Is this possible using css (css3 is fine, webkit). Here is the design. ![Border Example](https://i.stack.imgur.com/uj7FL.png) I did this by placing a div inside a div, then give a border to the inner div. I want to make the markup slim as posible so I want to use only one div if posible. Thank you.
Padding on div border
CC BY-SA 2.5
0
2010-09-14T15:26:13.157
2021-09-19T23:50:49.977
2010-09-14T15:34:52.317
293,585
293,585
[ "css" ]
3,710,485
1
3,710,954
null
6
734
I have a (spectrographic profile) data set of Wavelength (x-axis) and Intensity (y-axis, in arbitrary units that can have different ranges...) I want to convert this numeric data to a graphical view as shown at the bottom of the image below. But, I've never done anything in Delphi (2010) with Canvas's, TImages, bitmaps, or whatever way I'd get this to the screen. (Obviously, if I can convert my data to one row of image pixels, I then simply copy that row as many times as needed for my desired image height.) Can anyone point me in the right direction or supply sample code that traverses the x,y values, creating the color image? I'm hoping my solution will allow me (or the user) to adjust levels (contrast, brightness). Thanks in advance. ![alt text](https://i.stack.imgur.com/LTli2.jpg) Related SO posts: [Algorithm to convert any positive integer to an RGB value](https://stackoverflow.com/questions/2374959/algorithm-to-convert-any-positive-integer-to-an-rgb-value) [Convert light frequency to RGB?](https://stackoverflow.com/questions/1472514/convert-light-frequency-to-rgb)
How to create a screen image from TColors and intensities (in Delphi)
CC BY-SA 2.5
0
2010-09-14T15:43:28.153
2010-09-14T20:27:58.120
2017-05-23T12:30:39.393
-1
246,057
[ "delphi", "graphics", "colors" ]
3,710,873
1
3,711,020
null
0
106
I am currently using one button for inserting/updating content within a table. It then takes the uploaded CSV and inserts or updates it into a data table depending on whether the row exists or not. Here is the code fired after the button's OnClick: ``` if (ExcelDDL.SelectedValue == "Time Points" && fileName == "TimePoints.csv") { var GetTPoints = (SEPTA_DS.TimePointsTBLDataTable)tpta.GetDataByCategory(CategoryDDL.SelectedItem.ToString()); //Loop through each row and insert into database int i = 0; foreach (DataRow row in TempRouteDataTable.Rows) { //Gather column headers var category = Convert.ToString(CategoryDDL.SelectedItem); var agency = Convert.ToString(row["Agency"]); if (agency == null || agency == "") { //If row is empty skip it entirely goto skipped; } var route = Convert.ToString(row["Route"]); var GetRShortName = (SEPTA_DS.RoutesTBLDataTable)rta.GetDataByRouteID(route); var newRoute = ""; if (GetRShortName.Rows.Count > 0) { newRoute = Convert.ToString(GetRShortName.Rows[0]["route_short_name"]); } var direction = Convert.ToString(row["Direction"]); var serviceKey = Convert.ToString(row["Service Key"]); var language = Convert.ToString(row["Language"]); var stopID = Convert.ToString(row["Stop ID"]); var stopName = Convert.ToString(row["Stop Name"]); if (stopName.Contains("accessible")) { string[] noHTML = stopName.Split('>'); int insertH = Convert.ToInt32(hta.InsertHandicapRow(newRoute,noHTML[2])); } var sequence = Convert.ToString(row["Sequence"]); var origID = -1; if (GetTPoints.Rows.Count > 0) { origID = Convert.ToInt32(GetTPoints.Rows[i]["TPointsID"]); var GetID = (SEPTA_DS.TimePointsTBLDataTable)tpta.GetDataByID(origID); if (GetID.Rows.Count < 1) { origID = -1; } } if (origID == -1) { int insertData = Convert.ToInt32(tpta.InsertTimePoints(category, agency, newRoute, direction, serviceKey, language, stopID, stopName, sequence)); } else { int updateData = Convert.ToInt32(tpta.UpdateTimePoints(category, agency, newRoute, direction, serviceKey, language, stopID, stopName, sequence, origID)); } skipped: i++; } } ``` You can see how I check whether to insert or update around the bottom. I am using this method across other sections of this program and it works just fine. But in this case it is distorting my datatable immensely and I can't figure out why. This is the bottom part of my table after inserting [no items currently within the database]: ![alt text](https://i.stack.imgur.com/9X7ys.jpg) This is the table after reuploading the CSV with data already existing within the table: ![alt text](https://i.stack.imgur.com/Kzau5.jpg) I am also getting this error when updating `There is no row at position 2230.` What is going wrong in the code to cause this huge shift? I am just checking to see if the ID exists and if it does update rather than insert. Also the reason i am using `goto` is because there are blank rows in the document that need to be skipped.
C# Updating Data Issue
CC BY-SA 2.5
null
2010-09-14T16:26:43.520
2010-09-14T16:45:13.437
null
null
316,429
[ "c#" ]
3,711,406
1
3,711,431
null
1
127
I've been battling trying to figure out how to visually create a table. It's a weird table that is sortable by column but only rows are selectable. For people using uTorrent it looks something like this ![alt text](https://i.stack.imgur.com/0eEKk.png) I can't find this anywhere in Visual Studio! If it's not avialiable, how would I go about creating it myself?
Windows .NET / Win32 UI development
CC BY-SA 2.5
null
2010-09-14T17:33:22.850
2010-09-14T17:37:28.237
null
null
50,394
[ "c#", ".net", "winapi" ]
3,711,792
1
3,711,814
null
1
658
Through a comedy of noob errors I find myself in the following situation in a local repo: ![alt text](https://i.stack.imgur.com/8MO1A.jpg) Using `git reset` I have maneuvered the branch tags to where I want them, and I would now like to delete the 3 commits on what looks like an unnamed branch. I have researched/tried a variety of things including `gc`, `prune` without success. I realize that I could just blow away the local repo and re-clone it, however I'd like to use it as a learning opportunity. So the question is: How can I delete those commits?
How to delete erroneous merge commits?
CC BY-SA 2.5
null
2010-09-14T18:25:36.317
2010-09-14T18:45:26.673
null
null
349,143
[ "git" ]
3,711,938
1
3,712,041
null
2
1,736
i have following entities ![alt text](https://i.stack.imgur.com/p83tz.jpg) as you see BudgetPost has a composite primary key which is a foreign keys to entities Category and Budget. My question is what is the best way to make CRUD? Is there any way to mapp the foreign keys? The simple insert should look like this: ``` Budget newBudget = new Budget(); newBudget.BudgetName = textBox1.Text; newBudget.FromDate = dateTimePicker1.Value; newBudget.ToDate = dateTimePicker2.Value; newBudget.BudgetPosts.Add(new BudgetPost { FKBudgetID = newBudget.BudgetID, FKCategoryID = 21, BudgetAmount = 700 }); db.AddToBudgets(newBudget); db.SaveChanges(); ``` Is there any other way? Thanks in advance!
ADO.NET Entity Framework - Composite primary key CRUD
CC BY-SA 2.5
0
2010-09-14T18:46:22.737
2010-09-14T19:01:13.060
null
null
304,083
[ "c#", "asp.net", "entity-framework", "ado.net-entity-data-model" ]
3,712,376
1
3,712,508
null
2
1,029
I have written an app and was testing it for memory leaks when I noticed that the "all allocations" category in the leaks simulator keeps increasing its size whenever I open and close a sub-view. I intially thought it was a memory leak, but it does not show up as a leak in the leaks tab. Is this normal? ![Screenshot of the simulator](https://i.stack.imgur.com/Z0UjX.png)
How should I interpret the "all allocations" data in the Leaks Instrument?
CC BY-SA 3.0
null
2010-09-14T19:55:18.023
2012-05-12T15:22:56.023
2012-05-12T15:22:56.023
1,097,181
224,640
[ "xcode", "memory-leaks", "ios-simulator", "instruments" ]
3,712,519
1
3,713,190
null
1
1,115
I have created a Settings.bundle for my application, and I try to read the settings by the following code: ``` NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; if(!defaults) { NSLog("can not get default bundle"); } NSString *usr = [NSString stringWithFormat:@"%@",[defaults stringForKey:@"username"]]; NSLog(usr); ``` The output in the console is (null). I have used this before and it worked. This situation happened after I upgraded to the latest xcode for iOS. I am not sure if there is any change? Here is the screen shot from my Settings.bundle. ![alt text](https://i.stack.imgur.com/6DcIt.png)
Getting nil from standardUserDefaults,
CC BY-SA 2.5
0
2010-09-14T20:12:43.777
2010-09-15T00:12:56.180
2010-09-15T00:12:56.180
323,596
323,596
[ "iphone", "ios4" ]
3,712,710
1
3,713,354
null
33
80,591
I'm writing my first app, and I have a question about `DatePicker`. My app requires the user to input a date. The most user-friendly way would be to popup a calendar-like widget that displays the current month like a calendar grid - something like this: ![enter image description here](https://i.stack.imgur.com/Zwkyl.png) I want to use that in place of the `DatePicker` interface - which has Month, Day, and Year fields, each with an up and down button to increment/decrement. Is this type of functionality built into any Android widget or view, or would I have to design my own custom component to do this? I figured this would already exist, seeing how much this type of UI is used so frequently in non-mobile apps and web pages. Thanks!
Android Calendar View for Date Picker
CC BY-SA 3.0
0
2010-09-14T20:38:23.070
2016-02-17T09:17:43.747
2013-11-18T14:12:07.793
2,390,083
447,744
[ "android", "calendar", "android-datepicker" ]
3,713,381
1
3,713,489
null
3
1,263
So we have such situation: ![alt text](https://i.stack.imgur.com/Txxn0.gif) In this illustration, the first quadrilateral is shown on the Image Plane and the second quadrilateral is shown on the World Plane. [[1](http://alumni.media.mit.edu/~cwren/interpolator/)] In my particular case the Image Plane has 3 quadrilaterals - projections of real world squares, which, as we know, have same size, lying on the same plane, with same rotation relative to the plane they are lying on, and are not situated on same line on plane. ![alt text](https://i.stack.imgur.com/au8dm.jpg) I wonder if we can get rotation angles of Image Plane to World Plane knowing stuff described? In my case as input I have such data structures: original image (RGB pixels), objects (squares) with angles points in pixels (x,y) on Image Plane.
How to get rotation angles of Image Plane relative to the World Plane?
CC BY-SA 2.5
0
2010-09-14T22:27:49.433
2010-09-14T22:58:19.090
null
null
434,051
[ "algorithm", "math", "geometry", "projective-geometry" ]
3,713,736
1
null
null
0
334
In asp.net WebForms I make any changes to aspx.cs file, nothing happens. R# and IntelliSense are not working too on that tab. I even can write 'blablabla' anywhere, it won't cause any errors. Seems like VS just takes the file from some other source, not the project folder, though the "CodeBehind" attribute in .aspx is written ok. I also have this problem: ![alt text](https://i.stack.imgur.com/3PBON.png) The designer.cs is not in .aspx branch and I don't know how to put it back, maybe these problems are somehow linked. P.S. Sorry for my english :)
i change the codebehind file, nothing happens
CC BY-SA 2.5
null
2010-09-14T23:46:25.133
2010-09-14T23:52:42.610
2010-09-14T23:50:56.483
295,614
447,878
[ "asp.net", "visual-studio", "visual-studio-2008", "visual-studio-2010", "code-behind" ]
3,714,061
1
3,714,103
null
5
10,355
I'm having some issues with using PHP to convert ISO-8859-1 database content to UTF-8. I am running the following code to test: ``` // Connect to a latin1 charset database // and retrieve "Georgia O’Keeffe", which contains a "’" character $connection = mysql_connect('*****', '*****', '*****'); mysql_select_db('*****', $connection); mysql_set_charset('latin1', $connection); $result = mysql_query('SELECT notes FROM categories WHERE id = 16', $connection); $latin1Str = mysql_result($result, 0); $latin1Str = substr($latin1Str, strpos($latin1Str, 'Georgia'), 16); // Try to convert it to UTF-8 $utf8Str = iconv('ISO-8859-1', 'UTF-8', $latin1Str); // Output both var_dump($latin1Str); var_dump($utf8Str); ``` When I run this in Firefox's source view, making sure Firefox's encoding setting is set to "Western (ISO-8859-1)", I get this: ![asd](https://imgur.com/ms0xh.png) So far, so good. The first output contains that weird quote and I can see it correctly because it's in ISO-8859-1 and so is Firefox. After I change Firefox's encoding setting to "UTF-8", it looks like this: ![asd](https://imgur.com/7djDD.png) Where did the quote go? Wasn't `iconv()` supposed to convert it to UTF-8?
PHP: Problems converting "’" character from ISO-8859-1 to UTF-8
CC BY-SA 2.5
0
2010-09-15T01:27:17.810
2013-12-04T20:51:49.390
null
null
334,966
[ "php", "utf-8", "character-encoding", "iso-8859-1", "iconv" ]
3,714,146
1
3,714,266
null
3
16,778
I'm trying to draw a single line using `OnMouseMove()` event. My Problem is that everytime I move the mouse It leaves a trail. I tried to use the refresh method, but when I stop moving the mouse the line is gone. I don't want the line to be drawn `OnPaint();`, Just want to draw it `OnMouseMove()`. I'm using a transparent panel(cp.ExStyle |= 0x20;), so I cant use the `graphics.Clear()` and `BackColor()` Here's a Sample Image without the `Refresh()`: ![alt text](https://i.stack.imgur.com/ZGlcx.jpgBlockquote) Here's my code: ``` private void panel1_MouseMove(object sender, MouseEventArgs e) { Graphics g = panel1.CreateGraphics(); g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; using (var p = new Pen(Color.Black, 3)) { p.StartCap = System.Drawing.Drawing2D.LineCap.ArrowAnchor; p.EndCap = System.Drawing.Drawing2D.LineCap.ArrowAnchor; g.DrawLine(p, st, e.Location); } Thread.Sleep(30); Invalidate(); //this.Refresh(); g.Dispose(); } ``` Regards
How to draw a single line using MouseMove Event
CC BY-SA 2.5
0
2010-09-15T01:50:56.770
2012-11-05T18:34:11.593
2010-09-15T02:40:19.230
416,801
416,801
[ "c#", "winforms", "events", "graphics", "gdi" ]
3,714,308
1
null
null
0
342
is it possible to replicate this using cmd in c# ![alt text](https://i.stack.imgur.com/Nyz8N.jpg) ![alt text](https://i.stack.imgur.com/ljG7q.png)
how to publish website using cmd
CC BY-SA 2.5
0
2010-09-15T02:38:47.473
2010-09-15T03:10:23.050
null
null
434,753
[ "c#", "visual-studio-2008", "cmd", "publishing" ]
3,714,334
1
3,714,831
null
6
4,103
I've got the following entities on my EDMX :- ![alt text](https://i.stack.imgur.com/VtZ68.png) These two entites were generated by . Now, notice how my country has the following primary key :- & this is because each country is UNIQUE in the system by Name and IsoCode. Now, with my States ... it's similar. Primary Key is :- & Each state is unique by name and per country. Now, the Foreign Key for States is a CountryId. This is the sql :- ``` ALTER TABLE [dbo].[States] WITH CHECK ADD CONSTRAINT [FK_States_Countries] FOREIGN KEY([CountryId]) REFERENCES [dbo].[Countries] ([CountryId]) ON UPDATE CASCADE GO ALTER TABLE [dbo].[States] CHECK CONSTRAINT [FK_States_Countries] GO ``` Pretty simple stuff. BUT EntityFramework doesn't like it :( It's assuming that i need to connect some properties from `State` entity to both primary key properties in the `Country` entity. Cheers ;)
Entity Framework Is it possible to add an ASSOCIATION between Primary Keys and a Foreign Key
CC BY-SA 4.0
0
2010-09-15T02:47:38.900
2018-08-02T10:06:42.760
2018-08-02T10:06:42.760
3,229,615
30,674
[ "entity-framework", "foreign-keys", "entity-framework-4", "associations" ]
3,714,344
1
3,714,374
null
1
1,192
I have the following tables: and And I want to relate them. My current approach is the following table: ![relation table](https://i.stack.imgur.com/AaYzv.jpg) In which I would store - - - - Now, while I clearly can do that by adding a pair of fields that indicate whether the source is a section or a content, and whether the target is a or a , I'd like to know if there's a cleaner way to do this. and if possible using just one table for the relationship, which would be the cleanest in my opinion. I'd also like the table to be somehow related to the and tables so I can avoid manually adding constraints, or triggers that delete the relationships when a or is deleted... Thanks as usual for the input! <3
database design pattern: many to many relationship across tables?
CC BY-SA 2.5
null
2010-09-15T02:50:34.440
2010-09-15T03:05:20.370
null
null
389,745
[ "sql", "sql-server", "sql-server-2008", "database-design", "relational-database" ]
3,714,491
1
3,714,868
null
1
396
I have created a menu and submenu bar for my web app. Now with the css classes that I have applied in is working perfectly in mozilla, chrome,safari. But it's not working fine at all with IE 7 or 8. The HTML code for the generation of menu is as follows : ``` <div id="menu"> <ul class="navigation" id="navigation_menu"> <li class="navigation_active navigation_first"> <a href="/Profiler/dashboard/loadDashboard">Dashboard</a> </li> <li> <a href="/Profiler/users/showSearch">Users</a> </li> ...... <ul class="subnavigation" id="subnavigation_menu"> <li class="subnavigation_active subnavigation_first"> <a href="/Profiler/dashboard/loadDashboard">Master Dashboard</a> </li> <li> <a href="/Profiler/dashboard/loadSecurityDashboard">Security Dashboard</a> </li> .... </div> ``` Now my css classes are as follows : ``` .navigation { list-style-type: none; clear: both; padding-left: 0px; border-bottom:1px hidden #d8d8dc; background:#333333 url(../images/menu_main.png) repeat 0px 0px; margin-top: 0px; overflow: hidden; /* Clearing floats */ } .navigation li { float:left; list-style-type: none; } .subnavigation { list-style-type: none; clear: both; margin-top: 0px; background-color:#ffffff; border-bottom:1px solid #000000; } .subnavigation li { float:left; list-style-type: none; } .subnavigation li a { float:left; margin-right:10px; padding:4px 5px; font-size:75%; font-weight:bold; color:#434343 } ``` Now the menu that is generating in mozilla and other browsers where it's looks pretty is as follows : ![alt text](https://i.stack.imgur.com/jM3T0.jpg) And in IE 7 or 8 it's looks like as follows : ![alt text](https://i.stack.imgur.com/oBmu4.jpg) I am not getting the exact issue with the IE.. Any help would be highly appreciated...
CSS Problem with IE 7 or 8 which is working fine in all other browsers
CC BY-SA 2.5
null
2010-09-15T03:38:52.477
2010-09-15T07:12:44.960
2010-09-15T07:12:44.960
87,942
87,942
[ "html", "css", "cross-browser" ]
3,715,571
1
null
null
0
1,571
I did log in form in android , How to add the event functionality for this login form, Now login form display, I want to add the java code , That is When user enter his username and password , Get the value into variable and page redirect and system should show , you have enter this username and password ..chk the scrren shot..![alt text](https://i.stack.imgur.com/Ncnee.gif) My Thread is , What is the java code for log in form , In general , How to get the textfield values and how to process It,
android Java code for form action
CC BY-SA 2.5
null
2010-09-15T07:37:32.997
2013-03-15T13:49:32.290
2010-09-15T07:46:56.203
246,963
246,963
[ "android", "android-emulator" ]
3,715,797
1
4,322,630
null
1
296
I have a 32 bits xp machine that has been building our builds for a year now without much problem, now we have a new demand on our environment. The consultancy firm involved have some software that only thrives on 64bit 2008 webserver. So I set up a slave buildserver on the webserver so that their integration tests would work. Now I have it up and running - we had trouble with useraccounts, having logfiles in the program files folder, and other stuff but it is running now and builds when a change is detected. BUT: I can´t administrate the slave from cctray - when I click force build on a project I get this message: ![alt text](https://i.stack.imgur.com/WDY4p.gif) and I have no clue as to why, the webdashboard is a bit more informative: `ThoughtWorks.CruiseControl.Remote.CommunicationsException: Request processing has failed on the remote server: Key cannot be null. Parameter name: key at ThoughtWorks.CruiseControl.Remote.CruiseServerClient.ValidateResponse(Response response) at ThoughtWorks.CruiseControl.Remote.CruiseServerClient.ListBuildParameters(String projectName) at ThoughtWorks.CruiseControl.WebDashboard.ServerConnection.ServerAggregatingCruiseManagerWrapper.ListBuildParameters(IProjectSpecifier projectSpecifier, String sessionToken) at ThoughtWorks.CruiseControl.WebDashboard.Dashboard.ProjectParametersAction.Execute(ICruiseRequest cruiseRequest) at ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise.CruiseActionProxyAction.Execute(IRequest request) at ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise.ExceptionCatchingActionProxy.Execute(IRequest request)` :(
getting the slave buildserver to work all the way
CC BY-SA 2.5
null
2010-09-15T08:14:57.797
2010-12-01T08:57:13.480
null
null
88,136
[ "cruisecontrol.net" ]
3,715,985
1
3,717,856
null
0
957
All of a sudden I am unable to run any web application in Visual Studio 2010. I get an error message (shown in the image below. I get the same message when I try to run or issue the View in browser or Browse With command. The project compiles properly and then I get this error message. I am able to run WinForms applications normally. I have uninstalled all the extensions from visual studio 2010 still I am getting this error. ![An invalid argument was supplied](https://i.stack.imgur.com/JpX7D.png) Please advice how can I find out what is causing this problem. I get the same error in Visual Studio 2008 also. I tried logging using the devenv /Log switch, but it doesn't show any errors or warnings.
Visual Studio 2010/2008 Error: An Invalid Argument Was Supplied
CC BY-SA 2.5
null
2010-09-15T08:41:48.327
2011-12-21T20:11:24.990
2011-12-21T20:11:24.990
3,043
25,138
[ "visual-studio-2010" ]
3,716,194
1
3,716,267
null
1
538
I have issue with table "Reality" which is not found, when I type "db" and press dot it is not suggested to me and even when I type it manually it is not found. ``` DataClasses1DataContext db = new DataClasses1DataContext(); var query = db.Reality ``` I also could not see it in Object browser ![alt text](https://i.stack.imgur.com/mOXz1.png) Even when object "Reality" is alone showed in object browser. Connection to database should be fine and table is correctly displayed in Linq-to-Sql class. Any idea?
Linq-to-sql: Datacontext - missing table issue
CC BY-SA 2.5
null
2010-09-15T09:09:02.183
2010-09-15T09:19:22.340
null
null
446,058
[ "c#", "linq", "linq-to-sql" ]
3,716,213
1
3,716,375
null
0
221
we were asked to develop an iphone app like the one in the figure. The problem is: we have no experience in IOS development. ![alt text](https://i.stack.imgur.com/XZttT.jpg) For the basic part I can handle the learning curve, but i need suggestions, best practices on the UIKit model and controls. This is a newspaper app. The accordion control shows/hides content based on categories retrieved by an ASP .NET CMS on which we have no control. I can suggest to the CMS holder to develop a couple of web services (WCF) but i'm not sure how to interface iOS with MS technology. Furthermore, i have the idea that simple aspx that returns XML/JSON data will be easier to call, and support, but slightly less secure. So, suggestions? Tutorials?
iPhone Noob, needs suggestions on how to communicate with the internets via iOS
CC BY-SA 2.5
0
2010-09-15T09:10:38.793
2010-09-16T11:51:52.720
null
null
352,968
[ "iphone", "ios4" ]
3,716,470
1
3,721,110
null
30
21,509
I'm trying to get multiple tabs in windows like vim does it. In vim tabs aren't tied to buffers and you can have multiple tabs each with multiple splits and buffers in them. What I've found so far is: - - Does anyone have any ideas if this is possible? Tabs + emacs is hard to search for; most of what I find are discussions of spaces vs tabs :) This pic shows the kind of thing I want. ![enter image description here](https://i.stack.imgur.com/iH07T.gif) Multiple tabs and a bunch of split buffers on each tab.
Tabbed windows on Emacs
CC BY-SA 3.0
0
2010-09-15T09:46:49.013
2012-03-29T12:44:41.200
2012-03-29T12:44:41.200
362,951
1,896
[ "emacs", "tabs" ]
3,716,528
1
3,718,712
null
4
3,882
If I wanted to make a combined image like the one shown below ([original source here](http://wavemetrics.com/products/igorpro/gallery/user_lui.htm)), could you point me to the matplotlib objects do I need to assemble? I've been trying to work with AxesImage objects and I've also downloaded [SciKits Timeseries](http://pytseries.sourceforge.net/) - but do I need this, or can is it as easy to use strptime, mktime, and strftime from the time module and roll my own custom axes? Thanks ~ ![alt text](https://i.stack.imgur.com/2el1u.png)
Multi-panel time series of lines and filled contours using matplotlib?
CC BY-SA 2.5
0
2010-09-15T09:54:14.743
2015-09-17T12:38:42.420
2015-09-17T12:38:42.420
325,565
143,476
[ "python", "matplotlib", "scipy" ]
3,716,640
1
3,827,983
null
0
937
I have created a custom view by extending Relative Layout and it looks like this: ![alt text](https://i.stack.imgur.com/wnPr4.png) The layout for the view: ``` <?xml version="1.0" encoding="utf-8"?> <merge xmlns:android="http://schemas.android.com/apk/res/android"> <RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal"> <ImageView android:id="@+id/type_picture_preview" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/type_picture_noimage" android:layout_alignParentRight="true" android:paddingTop="15dip" android:paddingRight="15dip" /> <ImageView android:id="@+id/type_picture_delete" android:src="@drawable/type_picture_delete" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" /> </RelativeLayout> </merge> ``` I am struggling to get two or more layouts on a single line. Any ideas where I am going wrong?
Multiple Custom View (derived from RelativeLayout) in one line
CC BY-SA 2.5
null
2010-09-15T10:11:28.450
2010-09-30T05:23:06.553
null
null
356,580
[ "android", "layout", "android-relativelayout", "custom-view" ]
3,716,705
1
null
null
2
2,818
this is a continuation of this question [here](https://stackoverflow.com/questions/3600795/recognizing-notes-within-recorded-sound-python). ``` spf = wave.open(speech,'r') sound_info = spf.readframes(-1) sound_info = fromstring(sound_info, 'Int16') ``` --- The , which is . The length of the sound file is , so isn't sound_info twice the length it should be? Also I can only seem to find enough info on . I would like to split a sound up and analyse the frequency spectrum of multiple fractions of a second, rather than the whole sound file. --- Help would be very much appreciated. :) --- ``` plot(sound_info) ``` ![](https://i.stack.imgur.com/kwn4L.png) ``` freq = [abs(x.real) for x in fft(sound_info)] plot(freq) ``` ![](https://i.stack.imgur.com/onDwH.png)
Recognizing notes within recorded sound - Part 2 - Python
CC BY-SA 2.5
0
2010-09-15T10:21:17.673
2019-01-17T23:05:16.760
2019-01-17T23:05:16.760
1,293,501
208,827
[ "python", "numpy", "audio", "fft", "computer-science" ]
3,716,866
1
3,728,364
null
0
362
When trying to submit my Application using Application Loader i am getting the following error: ``` Expected token not found in attributes: ITunesSoftwareApplicationTestedOn40 ``` ![alt text](https://i.stack.imgur.com/A948v.png) Where can i set this attribute? Thanks
Expected token not found in attributes: ITunesSoftwareApplicationTestedOn40
CC BY-SA 2.5
null
2010-09-15T10:47:06.970
2010-09-16T15:49:05.123
null
null
448,294
[ "iphone", "objective-c", "xcode" ]
3,717,104
1
3,737,294
null
0
430
I have a strange problem when I try to deploy my current app to the device. Once it is successfully pushed down I see the Default.png as it loads, then the first view appears for about 1/10 second and the whole screen goes white. It feels like the it is a resolution issue or similar as I can still interact with the text fields. When I touch the text field the keyboard appears as normal and I can type in. I can also click-hold in the text field and the magnifying glass appears and shows everything underneath. I have tried displaying a different view at launch to see if it was specific to the first view but to no avail. I also tried a different device and it also happens there. I am using iOS SDK 4.0.2 and the devices are 3.1.3 & 3.1.2 P.S. This all worked fine up to a few weeks ago, but I'm not sure what has changed to make this happen. Thanks in advance Liam Edit: The app works perfectly in the simulator. --- ![alt text](https://i.stack.imgur.com/3QzF4.jpg) --- Snippet of the code to display the view. It's a very simple page that is displayed if the person is not logged in. In the image the magnifying glass is in the 'username' field. This works fine in the simulator. ``` LoginPageViewController *loginViewController = [[LoginPageViewController alloc] initWithNibName:@"LoginPage" bundle:nil]; [self presentModalViewController:loginViewController animated:YES]; ```
Running an iPhone app on the device only shows a white screen
CC BY-SA 2.5
null
2010-09-15T11:22:31.130
2011-03-09T06:06:59.683
2010-09-15T14:37:46.813
445,016
445,016
[ "iphone" ]
3,717,149
1
3,717,594
null
5
19,198
I'm crashing with this message : > 'NSInvalidArgumentException', reason: 'keypath name not found in entity Obvisouly I'm not querying my entity correctly . ``` //fetching Data NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init]; NSManagedObjectContext *context = [(AppDelegate *)[[UIApplication sharedApplication] delegate] managedObjectContext]; NSEntityDescription *entity = [NSEntityDescription entityForName:@"Viewer" inManagedObjectContext:context]; [fetchRequest setEntity:entity]; NSString *attributeName = @"dF"; NSPredicate *predicate = [NSPredicate predicateWithFormat:@"name like %@",attributeName]; [fetchRequest setPredicate:predicate]; NSLog(@"predicate : %@",predicate); NSError *error; NSArray *items = [context executeFetchRequest:fetchRequest error:&error]; NSLog(@"items : %@",items); [fetchRequest release]; //end of fetch ``` And here is my data Model: ![alt text](https://i.stack.imgur.com/JtpJx.png) I want to return the value of "dF", shouldn't call it like this ? : ``` NSString *attributeName = @"dF"; NSPredicate *predicate = [NSPredicate predicateWithFormat:@"name like %@",attributeName]; ```
Core Data: keypath name not found in entity
CC BY-SA 4.0
0
2010-09-15T11:29:15.107
2021-11-11T20:29:33.073
2021-11-11T20:20:21.227
1,265,393
415,088
[ "objective-c", "swift", "core-data", "nsfetchrequest" ]
3,717,178
1
3,721,161
null
2
2,290
I am interested in using shapes like these: ![tangram](https://i.stack.imgur.com/whTwZ.png) Usually a [tangram](http://en.wikipedia.org/wiki/Tangram) is made of 7 shapes(5 triangles, 1 square and 1 parallelogram). What I want to do is fill a shape only with tangram shapes, so at this point, the size and repetition of shapes shouldn't matter. Here's something I manually tried: ![crescent with tangram shapes](https://i.stack.imgur.com/Kf1zw.gif) I am a bit lost on how to approach this. Assuming I have a path (an ordered list/array of points of the outline), I imagine I should try to do some sort of triangulation. Is there such a thing as Deulanay triangulation with triangles constrained to 45 degrees right angled triangles ? A more 'brute' approach would be to add a bunch of triangles(45 degrees) and use [SAT](http://en.wikipedia.org/wiki/Separating_axis_theorem) for collision detection to 'fix' overlaps, and hopefully gaps will be avoided. Since the square and parallelogram can be made of triangles(45 degrees) too, I imagine there would be a nice clean geometric solution, right ? Any ideas are welcome.
How can I fill an outline with predefined tangram shapes?
CC BY-SA 2.5
0
2010-09-15T11:33:53.330
2016-06-25T23:11:51.397
null
null
89,766
[ "algorithm", "geometry", "computational-geometry", "packing" ]
3,717,310
1
9,344,762
null
1
5,952
I have wrote a very simple php upload. But I want to insert image in text area with "click". I want to do this with jquery. ![alt text](https://i.stack.imgur.com/esJ4v.jpg) ![alt text](https://i.stack.imgur.com/rJvdH.jpg) Is there any jquery plugin for do this? (or an application for upload like in stackoverflow)? Thanks in advance
Upload and insert into text area
CC BY-SA 2.5
null
2010-09-15T11:53:17.660
2012-02-18T22:28:41.437
2010-09-15T12:42:57.480
285,587
361,635
[ "jquery" ]
3,717,613
1
null
null
4
4,793
I'm doing this only for learning purposes. I've no intentions of reversing the methods of IMDB. I asked myself I owned IMDB or similar website. How would I compute the movie rating? All I can think of is (which is nothing but ) For a movie data provided below computation would be > (38591*10 + 27994*9 + 32732*8 + 17864*7 + 7361*6 + 2965*5 + 1562*4 + 1073*3 + 891*2 + 3401*1) / 134434 = 8.17055953 ![alt text](https://i.stack.imgur.com/bWeRr.jpg) --- My rating 8.17055953 doesn't match with IMDBs rating (=weighted average). So my conclusion is I'm missing something here or my score is not an ideal score. I'm might be missing lot of things. 1. Whats wrong with my score? Why is it not ideal? 2. If you had to compute. How would you have done it?
How would YOU compute IMDB movie rating?
CC BY-SA 2.5
0
2010-09-15T12:36:47.400
2020-02-12T16:16:26.700
2010-09-15T12:59:55.123
19,750
193,653
[ "math", "statistics", "imdb", "weighted-average" ]
3,717,623
1
null
null
2
1,264
In the Call Stack window of visual studio, it reports: ``` [Frames below may be incorrect and/or missing, no symbols loaded for IPCamera.ax] ``` What does it mean by , and why missing symbols may cause it incorrect?AFAIK,symbols are just for debugging info,missing symbols will only make the source invisible . ![alt text](https://i.stack.imgur.com/A8iLp.jpg)
What's so called "Frames" in visual studio?
CC BY-SA 2.5
0
2010-09-15T12:38:18.153
2022-04-05T09:32:09.240
2022-04-05T09:32:09.240
224,132
444,905
[ "c++", "visual-studio", "debugging", "assembly", "stack-frame" ]
3,717,921
1
3,762,712
null
6
2,041
I have a fluid grid (in height and width). The LIs are always rectangular and adapt them self's to the screen size. Now i need to fill the lists, so they all have the same height. This would be easy if the all the columns had a with of one LI element. But there are double sized columns and some of them can contain big sized LI's. In some cases there is even empty spaces in the middle of the column, because there is a big Li a small one and just after it a big one again. On some content pages all li's are in a single column. In every case the li's are floated left. I have made some images to explain the problem: ![grid problem](https://i.stack.imgur.com/khQae.gif) ![grid problem2](https://i.stack.imgur.com/W9g1J.gif) First i wanted to count the child's and compare them. But it got complicated when all LI's are in a single column or when a LI's is missing in the middle of the column. This is what i have tried: ``` var longest = 0 $("ul.grid-col").each(function(){ var liCount, $that = $(this); liCount = $that.find("> li").length; if ($that.is(".double")){ if( $that.find("li.big").length ){ var bigCount = $that.find("li.big").length liCount = (liCount - bigCount) + (bigCount * 4) //because one big has the size of 4 small one } liCount = liCount / 2 } if ( longest < liCount ){ longest = liCount } }) ``` Now i know how many LI's i need to fill the empty spaces, its pretty easy to fill them up. But how do i find out if there is a empty space in the middle of the li's? And how would you handle the special case of the single column?
Fill empty spaces in a list element
CC BY-SA 2.5
0
2010-09-15T13:14:15.593
2010-09-21T17:13:12.083
2010-09-16T06:48:47.277
157,397
157,397
[ "javascript", "jquery" ]
3,718,202
1
null
null
10
1,234
In this example the first column gets 100 and the next 2 columns get 50 each, which is the expected behaviour. ``` <Grid Width="200" Height="200"> <Grid.ColumnDefinitions> <ColumnDefinition MinWidth="100" /> <ColumnDefinition /> <ColumnDefinition /> </Grid.ColumnDefinitions> <Border Background="Red" Grid.Column="0" /> <Border Background="Yellow" Grid.Column="1" /> <Border Background="Blue" Grid.Column="2" /> </Grid> ``` ![alt text](https://i.stack.imgur.com/soRkv.png) If I move the MinWidth to the middle column ... ``` <Grid Width="200" Height="200"> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition MinWidth="100" /> <ColumnDefinition /> </Grid.ColumnDefinitions> <Border Background="Red" Grid.Column="0" /> <Border Background="Yellow" Grid.Column="1" /> <Border Background="Blue" Grid.Column="2" /> </Grid> ``` ... then the first column gets 33.3 and the last column 66.6 which seems weird. Not sure why this should change the grid's behaviour. I would expect columns 0 and 2 to get 50 each. ![alt text](https://i.stack.imgur.com/O5l0l.png) Update: I understand why this happens, but was wondering if anyone thinks it is a bug (especially since the behaviour in Silverlight is different)
Why does the WPF Grid not share space equally when the middle column has a MinWidth?
CC BY-SA 2.5
null
2010-09-15T13:43:03.973
2011-10-21T01:09:50.840
2010-09-15T15:30:44.997
1,177
1,177
[ "wpf" ]
3,718,302
1
null
null
1
526
I have bound my DataGrid to a DataTable and only few of the details are displayed in the grid. When I wanted to filter the DataGrid I created a View with my DataGrid's ItemsSource. Code: ``` Dim myView As ICollectionView = CollectionViewSource.GetDefaultView(MyDGrid.ItemsSource) myView.Filter = New Predicate(Of Object)(AddressOf filterFunc1) ``` Now When I do the search, the non-displayed fields are also included in the search. ``` Public Function filterFunc1(ByVal obj As Object) As Boolean Dim filStr As String = "*" & TextBox1.Text & "*" For Each item As String In obj.Row.ItemArray **If item.ToLower Like filStr.ToLower Then** Return True End If Next Return False End Function ``` Also I Have ComboBox fields in the DataGrid which are loaded separately from other DataTable's. Now I cant Include them in the search. A screenshot from my App: ![A screenshot from my App:](https://i.stack.imgur.com/W821W.png) So how do I make a search that includes only the Text from Displayed part. EDIT: Also how do I skip searching the null valued fileds? 'cause thats causing an exception in my case.
Problem with filtering DataGrid
CC BY-SA 2.5
null
2010-09-15T13:54:01.137
2010-09-16T05:04:32.690
2010-09-15T14:25:17.090
1,125,645
1,125,645
[ "wpf", "datagrid", "filter" ]
3,718,875
1
null
null
1
205
I have a page with some radio buttons that I want to be checked on page load. This is the jQuery that I'm using: ``` $('.optionHolder').find('input').first().attr('checked', 'true'); ``` The one's I want checked are the first input elements of each `.optionHolder` on the page. At the moment there are two, but the code above is only checking one. Take a look at the image: ![http://imgur.com/NQkei.jpg](https://i.stack.imgur.com/WMUhU.jpg) As you can see, only the first set is being checked. Any help would be appreciated, thanks.
Setting radio boxes to be checked with jQuery
CC BY-SA 3.0
0
2010-09-15T14:55:58.273
2011-12-04T00:31:37.733
2011-12-04T00:31:37.733
84,042
434,269
[ "javascript", "jquery", "html", "forms" ]
3,719,465
1
null
null
0
679
I've inherited a site using TYPO3 and I don't have that much experience with it. I have a page with a left column in the layout. In that left column is an object using an "insert" plugin. On the actual page is a graphic map. I'm just wondering how to edit the actual content that this is referring to. Here is a screenshot: ![alt text](https://i.stack.imgur.com/w21oB.png) Here it is a bit more zoomed in... ![alt text](https://i.stack.imgur.com/ScoOv.png) Based on all of the meta-data this is some kind of "Magento"/"Insert" plugin being used. Again, the question is, where do I edit/change the actual content associated with this object? If I click on the plugin icon to the left of the "Magento Left" label and select "edit", this is what I get: ![alt text](https://i.stack.imgur.com/PNqa3.png) Clicking the "Plugin" tab gives me this: ![alt text](https://i.stack.imgur.com/smT6H.png) HELP!
How do I edit the actual content of this TYPO3 plugin object?
CC BY-SA 3.0
null
2010-09-15T15:53:50.310
2016-11-13T11:40:43.773
2016-11-13T11:40:43.773
2,853,746
222,279
[ "magento", "typo3" ]
3,719,653
1
3,719,962
null
0
128
I have a Navigation Controller in my main view. And I use the following code to add the navigation view when needed. [self.view addSubview:navController.view]; However, the the navigation bar is not positioned correctly. I have posted a pic below. Anyone knows what is the potential problem? ![alt text](https://i.stack.imgur.com/jxZ7J.png)
Navigation Bar is not positioned corrected
CC BY-SA 2.5
null
2010-09-15T16:18:27.317
2010-09-15T17:02:20.813
null
null
323,596
[ "iphone", "iphone-sdk-3.0", "ios-simulator", "ios4" ]
3,720,124
1
3,782,281
null
0
547
I have some time now working with the BlackBerry's Eclipse Plugin with no issues using the [Curve 8530 Simulator](https://www.blackberry.com/Downloads/contactFormPreload.do?code=060AD92489947D410D897474079C1477&dl=13D25AAB620AC052D0E4802F4CF8EBBA). Im trying to add the [Torch 9800 Simulator](https://www.blackberry.com/Downloads/contactFormPreload.do?code=060AD92489947D410D897474079C1477&dl=7280338EEF2D7E6724A5894C3C86370E) but I get this: ![Select Default Web Simulator](https://i.stack.imgur.com/rpReJ.gif) Im pretty new on the BB Stuff. Im I missing something? Is there a debug-enabled version (I check and apparently the version that I have should be pretty capable of debugging)? Help will be appreciated. I noticed that I can only add simulators using OS v.5 (e.i BlackBerry Storm2 9550). But the is still a mystery to me.
Unable to select BlackBerry 9800 as default web simulator on Eclipse
CC BY-SA 2.5
null
2010-09-15T17:25:17.220
2011-11-29T09:28:55.517
2010-09-16T16:12:25.773
69,966
69,966
[ "blackberry-eclipse-plugin", "blackberry-simulator" ]
3,720,365
1
3,720,400
null
1
1,059
I want to implement something like this using JSF.(part of search screen)![alt text](https://i.stack.imgur.com/GZHX3.png) More and more new rows will be added dynamically onclick of "" button and the row will be removed on click of "" button. The question is about binding the values (user input in those dynamically created rows) to the backing model. I have created a session scoped backing bean. Some portions of the code, ``` public class BackingBean{ //other code private List<Criteria> searchFilters; // Each criteria is bound to a row public void init(){ //init code } public void addEmptyCriteria(){ searchFilters.add(MyFactory.createNewCriteria()); } } ``` Action of button triggers addEmtpyCriteria method and rerenders(using a4j) the entire section(with new rows). This is just a boilerplate and everything works fine as long as the bean is session scoped. But its more intuitive to have it in request scope. A single search is a single request made by the user and in no way is tied to the user session. Also having it in session,forces the developer to clear/remove the backingbean from session inorder to display a fresh search screen. Is there a better way of doing this? Is it right to have it in session scope ?
JSF - Binding values of components added dynamically
CC BY-SA 2.5
null
2010-09-15T17:58:58.167
2010-09-15T18:08:00.410
2010-09-15T18:08:00.410
157,882
366,982
[ "java", "jsf", "ajax4jsf" ]
3,720,634
1
3,720,681
null
1
1,741
The weirdest thing is happening to me... I have a form I'm sending via an ajax post (using jquery's serialize function) to a php script running this function (stripped down for clarity): ``` $arr = $_POST; unset($arr['command']); unset($arr['index']); $vals = $arr; $keys = $arr; $keys = array_flip($keys); return 'vals= ' . implode(',',$vals) . ' keys = ' . implode(',',$keys); ``` The String I sent that works looks like this... ![alt text](https://i.stack.imgur.com/V8kQ2.png) that gives me the result... ![alt text](https://i.stack.imgur.com/56LqJ.png) now when I Remove the "S" from "About" (in the title field) I get the data string that looks like this: ![alt text](https://i.stack.imgur.com/Cscbg.png) that gives me THIS result: ![alt text](https://i.stack.imgur.com/I0QwK.png) The "Title" key has been completely stripped out of the equation! Any Ideas what could be happening?
PHP array_flip() Bug?
CC BY-SA 2.5
null
2010-09-15T18:31:00.760
2010-09-18T16:56:39.840
2010-09-18T16:56:39.840
227,665
183,806
[ "php", "arrays" ]
3,720,781
1
3,771,440
null
7
12,778
Edit: Updated with input from Omlin I am attempting to add a custom button to the ribbon. I want the button associated with a custom list named “Products”. I am able to get the button to show for a built-in list, such as a Shared Documents, but not the custom products list. Below are examples of my code working with an existing list and not working with the custom list. I’ve also attached links to the working and non-working code that create the custom list and the ribbon button. These solutions assume that you have a site created at [http://intranet.contoso.com](http://intranet.contoso.com). You will probably need to change Site URL of the project to get the code to run. --- ## Working with and built-in list (Shared Documents): ``` <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <CustomAction Id="CustomRibbonTab" Location="CommandUI.Ribbon.ListView" RegistrationId="101" RegistrationType="List" Title="My Custom UI" Sequence="5" > <CommandUIExtension> <CommandUIDefinitions> <CommandUIDefinition Location="Ribbon.Documents.New.Controls._children"> <Button Id="Ribbon.Items.New.RibbonTest" Alt="Test Button" Sequence="5" Command="Test_Button" LabelText="Click me!" Image32by32="/_layouts/images/ribbon_blog_32.png" Image16by16="/_layouts/images/ribbon_blog_16.png" TemplateAlias="o1" /> </CommandUIDefinition> </CommandUIDefinitions> <CommandUIHandlers> <CommandUIHandler Command="Test_Button" CommandAction="javascript:alert('I am a test!');"> </CommandUIHandler> </CommandUIHandlers> </CommandUIExtension> </CustomAction> </Elements> ``` ![Working Example](https://i.stack.imgur.com/yuv77.png) : [http://employees.claritycon.com/pwalke/blogs/working.zip](http://employees.claritycon.com/pwalke/blogs/working.zip) --- ## Not Working : I changed 2 lines from the above code. Line 28: Associate the button with the custom products list, ID 10001, specified in the list template of the zipped code below. ``` RegistrationId="10001" ``` Line 85: Tell SharePoint to place the item within the Items menu. ``` <CommandUIDefinition Location="Ribbon.ListItem.New.Controls._children"> ``` – I would have expected the custom ribbon button to be added to the left of New Item. ![Not Working](https://i.stack.imgur.com/pnKPl.png) : [http://employees.claritycon.com/pwalke/blogs/notworking.zip](http://employees.claritycon.com/pwalke/blogs/notworking.zip)
Unable to add a ribbon button to a custom list
CC BY-SA 2.5
null
2010-09-15T18:50:54.750
2012-01-25T13:57:09.963
2010-09-15T21:37:19.960
12,497
12,497
[ "sharepoint", "sharepoint-2010" ]
3,721,022
1
3,721,057
null
1
61
``` $(document).ready(function() { $('.taskStatus').text(function(n, oldcontent) { if (oldcontent == "Done") return "<a href='blah.com'>Click Here</a>"; }); }); <span id="taskStatus_34" class="taskStatus">Done</span> ``` Why does the above code display the following on my webpage Screenshot below: ![alt text](https://i.stack.imgur.com/PWwyG.gif) Browser: Chrome 6.0.472.55 jQuery: 1.4.1 Edit: Apparently, it works for p (paragraph) tags, but not for divs and spans. Edit: Using mcgrailm's answer, I ended up using the following code: ``` $('.taskStatus').each(function() { if ($(this).text() == 'Done') $(this).html("<a href='blah.com'>Click Here</a>"); }); ```
jQuery Error regarding .text
CC BY-SA 2.5
0
2010-09-15T19:18:07.853
2010-09-15T19:48:49.963
2010-09-15T19:44:02.817
1,316
1,316
[ "jquery" ]
3,721,100
1
3,721,398
null
0
3,379
I want to bind the Height of the ListBox to the Height of the StackPanel so the ListBox stretches itself Vertically so the green area is not visible anymore. When there is no item in the listbox its hidden. When there is item > 1 the ListBox must be stretching itself to the add/del buttons so the add/del buttons are always at the bottom of the stackpanel(dont want to use dockpanel for that) How can I do that? I get no binding erros? ``` <StackPanel x:Name="stack" Background="Green" DataContext="{Binding DocumentViewModelList/}" Orientation="Vertical" > <ListBox SelectionMode="Single" VirtualizingStackPanel.IsVirtualizing="False" SelectedItem="{Binding SelectedDocumentViewModel,Mode=TwoWay}" Height="{Binding ElementName=stack,Path=Height}" Width="Auto" Focusable="True" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" Grid.Row="1" Name="documentListBox" BorderThickness="1" ItemsSource="{Binding DocumentList}" Visibility="{Binding ElementName=documentListBox,Path=HasItems, Converter={StaticResource boolToVisibilityConverter}}"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Path=Id}" /> <TextBlock Text="{Binding Path=Name}" /> </StackPanel> </DataTemplate> </ListBox.ItemTemplate> <!--<ListBox.ItemContainerStyle> <Style TargetType="{x:Type ListBoxItem}"> <Setter Property="IsSelected" Value="{Binding Mode=TwoWay, Path=IsSelected}" /> </Style> </ListBox.ItemContainerStyle>--> </ListBox> </StackPanel> ``` ![alt text](https://i.stack.imgur.com/dIFki.png)
Bind the Height of the Listbox inside the StackPanel to StackPanel`s height
CC BY-SA 3.0
0
2010-09-15T19:28:39.573
2011-11-29T17:48:31.817
2011-11-29T17:48:31.817
901,059
320,460
[ "wpf", "binding", "elementname" ]
3,721,723
1
3,721,767
null
0
301
I am working on a simple FAQ page that will show/hide answers on clicked questions. It works fine when using the p element and nothing else but any nested ul element is left out and not hidden. Does the nested element have to be called separately? Why isn't the effect applied to it as a part of the p tag? Thanks for the help. ``` <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> <script language="javascript" type="text/javascript"> $(document).ready(function () { $(".answer").hide(); $("a.question").click(function () { $(this).next(".answer").slideToggle(300); return false; }); }); </script> <div id="body"> <ul style="list-style: none;"> <li><a class="question" href="#">How do I log in to email?</a> <p class="answer"> <ul> <li>Open your favorite internet browser to <a href="https://email.school.edu">email.school.edu</a>.</li> <li>Use your school username and the password given to you by ITS.</li> <li>You will be required to change your password immediately.</li> </ul> </p> </li> <li><a class="question" href="#">Is my email password the same as my school password?</a> <p class="answer">No. After logging in to email for the first time, you will be required to change your password. It is your option to use the same password or create another password; however, ITS strongly encourages you to create a <strong>Strong</strong> password as indicated on the status bar in the email password site. Keep in mind that if you change your school password, your email password will not change and vice versa.</p> </li> </ul> </div> ``` Screenshot ![alt text](https://i.stack.imgur.com/x5ptc.png)
How to apply jquery effect to nested element?
CC BY-SA 2.5
null
2010-09-15T20:56:17.040
2010-09-15T21:11:51.163
null
null
274,018
[ "jquery" ]
3,721,785
1
3,740,490
null
4
757
How can I paste curly quotes into my IDE as straight quotes? I will often paste code into Visual Studio from PDF files. Then I have to change all the quotation marks to "straight" ones. Ive tried the programs that strip formatting but they don't work. Below is a pic of what I mean. ![alt text](https://i.stack.imgur.com/rdmNz.gif) Thanks
How can I paste curly quotes into my IDE as straight quotes?
CC BY-SA 2.5
0
2010-09-15T21:04:40.463
2014-10-01T19:37:21.510
null
null
107,421
[ "visual-studio", "visual-studio-2010" ]
3,722,137
1
3,722,163
null
0
59
I'm (needless to say) relatively new to CSS3 and I'm having trouble with aligning content. I have a page with a jQuery UI Tabs module in it. When I display it on the page, it comes out looking like this: ![alt text](https://i.stack.imgur.com/Bmydp.jpg) I know it's a terrible screenshot, but I'll just say, the Tab box is left-aligned on the page. I've tried to use the `text-align` property on the `<td>` and the `<div>` containing the content, I even got so desperate I tried the HTML `<center>` tag, all to no avail. Does anyone have a sure-fire way of centering content with CSS? Thanks in advance! :)
CSS Alignment Woes
CC BY-SA 2.5
null
2010-09-15T21:50:25.100
2010-09-15T21:56:14.000
null
null
269,970
[ "html", "css", "alignment", "text-alignment" ]
3,722,216
1
3,722,368
null
1
602
How can allow this page to run on IIS server... It does not work on localhost..... it works when I open it directly... It gives the error "it is not allowed...! [The working Example..! I want this..](https://i.stack.imgur.com/AoDO4.jpg) "" the Erorr: ![alt text](https://i.stack.imgur.com/2w6VC.jpg) ``` <html> <head> <script src="jquery.js" type="text/javascript" language="javascript"></script> <script src="jquery.xml2json.js" type="text/javascript" language="javascript"></script> <script> function sayHello(msg) { alert(msg); } function dcSetRate(obj,value){ document.getElementById(obj).value = value.toFixed(4); } function dcSet(obj,value){ document.getElementById(obj).value = value; } (function(usedUrl) { //All currencies quoted against the euro var fetchService = function() { /*USD/RUB EUR/RUB USD/EUR USD/TL*/ $.get('http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml', function(xml) { var jsonObj = $.xml2json(xml); //alert(jsonObj.Cube.Cube.Cube[0]["currency"] + 2); var usd=jsonObj.Cube.Cube.Cube[0]["rate"]; var rub=jsonObj.Cube.Cube.Cube[16]["rate"]; var eur= 1 //jsonObj.Cube.Cube.Cube[1]["rate"]; var ytl=jsonObj.Cube.Cube.Cube[17]["rate"]; var usd_rub= rub/usd; var eur_rub =rub/eur; var usd_eur = eur/usd; var usd_ytl= ytl/usd; dcSetRate("USD_RUB",usd_rub); dcSetRate("EUR_RUB",eur_rub); dcSetRate("USD_EUR",usd_eur); dcSetRate("USD_YTL",usd_ytl); }); getMicex(); // assuming your elements are <img> document.getElementById("text1").value = getDt(); // if not you could also set the background (or backgroundImage) css property // document.getElementById(elements.shift()).style.background = "url(" + images.shift() + ")"; ///sayHello(usedUrl); setTimeout(fetchService, 10500); } window.onload = fetchService; }(['URL URL'])) function getMicex(){ $.get('http://www.micex.com/issrpc/marketdata/stock/index/daily/short/result.xml', function(xml) { var jsonObj = $.xml2json(xml); var indexValue = jsonObj.row["CURRENTVALUE"]; dcSet("Micex",indexValue); }); } function getDt(){ var currentTime = new Date() var hours = currentTime.getHours() var minutes = currentTime.getMinutes() var seconds = currentTime.getSeconds() if (minutes < 10){ minutes = "0" + minutes } var ama; if(hours > 11){ ama ="PM"; } else { ama ="AM"; } return hours + ":" + minutes + " : " + seconds + " " + ama; } </script> </head> <body> <input type="text" name="fname" id="text1"/><br/> USD_RUB<input type="text" name="fname" id="USD_RUB"/><br/> EUR_RUB <input type="text" name="fname" id="EUR_RUB"/><br/> USD_EUR <input type="text" name="fname" id="USD_EUR"/><br/> USD_YTL <input type="text" name="fname" id="USD_YTL"/><br/> Micex<input type="text" name="fname" id="Micex"/><br/> </body> </html onLoad="sayHello()"> ```
jquery method is not allowed
CC BY-SA 2.5
null
2010-09-15T22:06:47.777
2010-09-27T14:52:03.483
2010-09-16T06:54:53.997
173,718
173,718
[ "php", "asp.net", "jquery", "html", "iis" ]
3,722,670
1
null
null
0
1,010
I'm trying to store a gzipped binary serialized object into Active Directory's "Extension Attribute", more info [here](http://msdn.microsoft.com/en-us/library/ms980479(EXCHG.65).aspx). This field is a Unicode string according to it's [oM syntax](http://technet.microsoft.com/en-us/library/cc961740.aspx) of 64. I'm saving the binary object into AD's Unicode format like this: ``` byte[] bytes = ... // This is my blob System.Text.Encoding.Unicode.GetString(bytes); ``` I then save it to extension attribute #14. The issue is that when I read the value I don't get my entire string back. Here is a screenshot of what is actually saved to the server: ![alt text](https://i.stack.imgur.com/UMOi5.png) Here is a screenshot of what comes back: ![alt text](https://i.stack.imgur.com/TaSgn.png) I am guessing that the \0 is causing the problem, and that probably means null. How should I handle this? Are there other chars I should also be escaping besides null?
What's the best sequence to compress binary data, encode it, and convert to string?
CC BY-SA 2.5
null
2010-09-15T23:42:40.730
2010-09-16T00:28:34.880
2010-09-16T00:28:34.880
328,397
328,397
[ "c#", "unicode", "ado.net", "active-directory", "directoryservices" ]
3,722,660
1
null
null
8
483
In our application, we support user-written plugins. Those plugins generate data of various types (int, float, str, or datetime), and those data are labeled with bunches of meta-data (user, current directory, etc.) as well as three free-text fields (MetricName, Var1, Var2) . Now we have several years of this data, and I'm trying to design a schema which allows very fast access to those metrics in an analytical fashion (charts and stuff). This is easy as long as there are only a few metrics we're interested in, but we have a large number of different metrics at different granularities, and we'd like to store user-added data to allow for later analysis (possibly after a schema change). Example data: (please keep in mind this is very simplified) ``` ========================================================================================================= | BaseDir | User | TrialNo | Project | ... | MetricValue | MetricName | Var1 | Var2 | ========================================================================================================= | /path/to/me | me | 0 | domino | ... | 20 | Errors | core | dumb | | /path/to/me | me | 0 | domino | ... | 98.6 | Tempuratur | body | | | /some/other/pwd | oneguy | 223 | farq | ... | 443 | ManMonths | waste | Mythical | | /some/other/pwd | oneguy | 224 | farq | ... | 0 | Albedo | nose | PolarBear | | /path/to/me | me | 0 | domino | ... | 70.2 | Tempuratur | room | | | /path/to/me2 | me | 2 | domino | ... | 2020 | Errors | misc | filtered | ``` Anyone can add a parser plugin to start measuring a AirSpeed metric, and we'd like our analisys tools to "just work" on that new metric. --- Update: Considering that many of the MetricName's are well-known beforehand, I can satisfy my requirements if I can enable analysis on those metrics, and simply store the other user-added metrics. We can accept the fact that new metrics won't be available for heavy-duty analysis without an edit to the schema. What do you guys think of this solution? I've divided our metrics into three fact tables, one for facts that don't need a MetricTopic, one for ones that do, and one for all the other metrics, including unexpected ones. ![Metrics Schema #3](https://i.stack.imgur.com/uinJV.png) --- For the bounty: I'll accept any critique which shows how to make this system more functional, or brings it into closer alignment with industry best-practices. References to literature gives added weight.
Data Warehousing arbitrary fields
CC BY-SA 2.5
0
2010-09-15T23:41:37.533
2010-09-27T20:40:18.163
2010-09-27T20:40:18.163
146,821
146,821
[ "mysql", "database", "database-design", "blob", "data-warehouse" ]
3,723,011
1
3,724,311
null
1
3,776
Greetings all, As seen in the picture ![http://i51.tinypic.com/2r56s1j.jpg](https://i.stack.imgur.com/4Iew8.png) I have an extended QWidget object (which draws the cell images and some countour data) inside a QScrollBar. User can zoom in/out the Image (QWidget size is changed according to the zoomed size of the QImage ) using mouse wheel. I process the events (mouseMoveEvent(),wheelEvent()..etc) by implementing the listener methods in QWidget. My problem is ,I can only perform zooming (and other events) when the mouse pointer is over the QWidget. If the mouse point is over the QScrollBar (the gray area in the image) ,those events are consumed by the QScroolBar. Any tips, Sorry I was refering to QScrollArea , not QScrollBar. thanks, umanga
QT mouse event handling problem
CC BY-SA 2.5
0
2010-09-16T01:06:13.753
2010-09-16T07:06:55.993
2010-09-16T05:17:32.063
180,904
180,904
[ "c++", "qt", "event-handling", "qt4" ]
3,723,225
1
3,723,387
null
0
738
I'm trying to use "insertNewObjectForEntityForName", but I've got a problem with my declaration, I wondered if someone had an opinion on this . This is my implementation : ``` NSManagedObjectContext *context = [(AppDelegate *)[[UIApplication sharedApplication] delegate] managedObjectContext]; // Create Object Shots *newShot = (Shots *)[NSEntityDescription insertNewObjectForEntityForName:@"Shots" inManagedObjectContext:context]; ``` It's complaining that "Shots" is undeclared, now my question is : Do I need to declare a new class for Shots ? Knowing that it appears as a NSManagedObject in the dataModeler ? ![alt text](https://i.stack.imgur.com/xSqsS.png) ![alt text](https://i.stack.imgur.com/k7TBi.png)
Core Data : "insertNewObjectForEntityForName" question
CC BY-SA 2.5
0
2010-09-16T02:08:16.433
2010-10-05T23:05:41.950
2010-09-16T02:21:53.667
415,088
415,088
[ "iphone", "objective-c", "core-data" ]
3,723,616
1
3,730,953
null
0
561
For some reason, the expand button the arrow points to in the screenshot below causes the view controller that initiated video playback to animate back over top of the video, but without stopping video playback which means you can still hear the audio even though the video is no longer visible. I've tried other movie control styles, but there are other problems with those (for example, no controls causes the player to play the entire video before dismissing, i.e. no 'Done' button). Here is the code that initiates the video playback: ``` player = [[MPMoviePlayerViewController alloc] initWithContentURL:movieURL]; [player setModalTransitionStyle:UIModalTransitionStyleCrossDissolve]; [[self navigationController] presentModalViewController:player animated:YES]; [[player moviePlayer] play]; ``` Any ideas/suggestions as to how I can either disable that button or receive its notification so I can respond accordingly? Thanks. ![alt text](https://i.stack.imgur.com/s9FLq.png)
MPMoviePlayerController for iPhone App on iPad
CC BY-SA 2.5
null
2010-09-16T04:02:25.817
2010-09-16T21:25:52.657
null
null
71,509
[ "iphone", "ipad", "mpmovieplayercontroller" ]
3,723,646
1
3,723,682
null
0
4,877
I have this little application, and what it does is a user can add many deductions to a certain employee and save the record. ![alt text](https://i.stack.imgur.com/Y2mVu.png) What I do in my coding is I pass all the values to a `DataTable` and loop through each rows and execute a stored procedure that inserts the particular row with the column values. This happens until there are no rows to be inserted from the DataTable. Is there any shortcut? I mean, can I insert the whole value of datatable in one call? I just thought that my current way of inserting data is very resource consuming because it always calls the stored procedure in the server as long as there are rows in the datatable. Any work around or suggestions? I would be very thankful. I hope you understand me,. thanks in advance.
How to save data from a DataGridView into database? c# winforms
CC BY-SA 2.5
null
2010-09-16T04:10:38.480
2010-09-16T04:27:50.160
null
null
396,335
[ "c#" ]
3,724,090
1
3,783,830
null
3
1,597
I am essentially storing a private key (Hash) in any of the OctetString attributes within Active Directory. My question is, what attribute is secure by default and makes sense to keep private data there? This value should be considered similar to a password, where even administrators shouldn't have access (if possible), just like the current AD Password. Here is a start of a list of attributes that are enabled by default on a Windows 2008R2 + Exchange 2010 domain. ![alt text](https://i.stack.imgur.com/g3cgk.png) Does anyone know of an Octet String attribute that does not expose "read" permissions to all users in the domain by default? I don't want to store my hash publicly and allow someone to build a rainbow table based on the hashes.
Storing private "octet string" in Active Directory; what is secure by default?
CC BY-SA 2.5
null
2010-09-16T05:59:41.993
2010-09-24T02:27:39.677
2010-09-16T15:06:32.653
328,397
328,397
[ "security", "active-directory", "ldap", "windows-server-2008", "acl" ]
3,724,145
1
3,732,965
null
3
864
Is it possible to override the default error message in CRM 4.0 that occurs if a workflow fails? Is it recommended against doing so? This seems like the best spot for a remote, non-technical user to read a simple error message that any custom workflow activity has thrown. I would imagine the code extension point for this is overriding the HandleFault method of the Activity base class. ``` protected override ActivityExecutionStatus HandleFault(ActivityExecutionContext executionContext, Exception exception) { return base.HandleFault(executionContext, exception); } ``` Here is the default (aka the "always-there-but-no-one-reads-it" text): ![alt text](https://i.stack.imgur.com/zCrxS.png)
CRM 4.0 workflow activity error message feedback to user
CC BY-SA 2.5
0
2010-09-16T06:12:03.607
2010-09-17T06:02:38.407
null
null
123,072
[ "workflow-foundation", "dynamics-crm" ]
3,724,501
1
3,726,548
null
3
1,390
Imagine you have a query that looks like this. ![alt text](https://i.stack.imgur.com/KcJoI.png) and it returns all the items whose title contains the string . However, I'd like to refilter the results further - for example, searching for another string in the title (ex. ). Is it possible to do that without modifying editing the query and adding another And clause? I need something quick - like pressing for example CTRL + F and typing the string I need to find in the results of a query.
Visual Studio 2010: Search within Team Explorer query results without modifying the query
CC BY-SA 2.5
null
2010-09-16T07:21:29.033
2010-09-16T12:17:16.020
null
null
113,670
[ "visual-studio-2010", "tfs" ]
3,724,823
1
3,724,844
null
0
241
Please advise me a jQuery carousel plugin that can make a carousel like the one on the image. I mean that, when the image item becomes active, it moves into the center and becomes large. Thanks. ![alt text](https://i.stack.imgur.com/MDkcD.png)
jQuery slideshow plugin that can make this on the image
CC BY-SA 2.5
null
2010-09-16T08:09:43.640
2010-09-16T08:14:02.520
null
null
135,829
[ "javascript", "jquery", "slideshow" ]
3,725,342
1
null
null
3
3,648
As seen in the pictures. ![alt text](https://i.stack.imgur.com/tABMP.png) ![alt text](https://i.stack.imgur.com/epcYK.png) I have QWidget inside a QScrollArea. QWidget act as a render widget for cell image and some vector based contour data. User can performe zoom in/out and what simply happens is, it changes the QPainters scale and change the size of QWidget size accordinly. Now I want to perform the zooming in/out on the point under the mouse. (like zooming action in GIMP). How to calculate the new positions of the scrollbars according to the zoom level ? Is it better to implement this using transformations without using a scrollarea?
Zooming in/out on a mouser point ?
CC BY-SA 3.0
0
2010-09-16T09:28:33.160
2015-08-31T06:11:07.853
2013-02-28T11:32:48.383
510,036
180,904
[ "qt", "qt4" ]
3,725,542
1
3,934,319
null
2
878
I've made a vertical menu using css. It's a menu with sub menus similar to this one: [http://www.dynamicdrive.com/style/csslibrary/item/suckertree-menu-vertical/](http://www.dynamicdrive.com/style/csslibrary/item/suckertree-menu-vertical/) here you can see an example: ![alt text](https://i.stack.imgur.com/UbH5J.jpg) It work fine but when I click in one of the sub menus to see the information, the others sub menus disappear, that is the menu stay underneath the text. So if I want to change page by clicking in another sub menu I'm not able, I have to return to home. Here is my css code: ``` #menu ul { list-style: none; margin: 0; padding: 3px; width: 100%; font-size: 14px; } #menu h2 { color: white; background: #9370D8; padding: 4px; text-align:center; font-size:15px; width: 100%; display: block; } #menu a { color: black; background: white; text-decoration: none; display: block; font-weight: bold; width: 100%; padding:4px; } #menu a:hover { color: black; background: #eee; } #menu li { position: relative; } #menu ul ul ul { position: absolute; top: 0; left: 100%; width: 100%; } div#menu ul ul ul, div#menu ul ul li:hover ul ul {display: none;} div#menu ul ul li:hover ul, div#menu ul ul ul li:hover ul {display: block;} ``` and html code: ``` <div id="menu"> <ul> <li><h2>Browse</h2> <ul> <li><a href="/browse/districts/">Districts</a></li> <li><a href="/browse/time/" >Time</a></li> </ul> </li> </ul> <ul> <li><h2>Analyze</h2> <ul> <li><a href="#">Co-occurrence</a> <ul> <li><a href="/analyse/co-occurrence/percentage" >Percentage</a></li> <li><a href="/analyse/co-occurrence/regions" >Regions</a></li> </ul> </li> <li><a href="#">Geographical</a> <ul> <li><a href="/analyse/geographical/districts/">Districts</a></li> <li><a href="/analyse/geographical/citizenship/">Citizenship</a></li> </ul> </li> </ul> </div> ``` For example I would use the link above. If I click on sub item 2.1 from folder 2, I will see some page with information. Now I want to see the sub item 1.1 from folder 1, but my problem is when I click in one of the sub menus I'm not able to see the sub item 1.1, so if I want to click in sub item 1.1 I have to return to the main page the problem is the following: ![alt text](https://i.stack.imgur.com/GmnpI.jpg) Any help would be appreciate :) Thanks!
problem displaying vertical menu css
CC BY-SA 2.5
null
2010-09-16T10:00:04.183
2010-10-14T14:37:14.710
2010-09-17T09:04:40.353
426,176
426,176
[ "css" ]
3,725,644
1
3,725,679
null
0
137
![alt text](https://i.stack.imgur.com/bc58H.jpg) In the screenshot, you can see i have an array of arrays. I need to find an array that contains say, 'Russia', and unset it completely. That is, for Russia, remove the element [303]. I've played around with array search but I'm sure theres a funkier way of doing this. Chris.
unsetting an array within an array
CC BY-SA 2.5
null
2010-09-16T10:12:45.373
2010-09-16T13:26:45.467
null
null
26,107
[ "php", "arrays", "multidimensional-array" ]
3,725,760
1
null
null
1
456
> [xcode 3.2.4 (sdk 4.1) unable to install to device](https://stackoverflow.com/questions/3682071/xcode-3-2-4-sdk-4-1-unable-to-install-to-device) Due to [other issues](https://stackoverflow.com/questions/3717104/running-an-iphone-app-on-the-device-only-shows-a-white-screen) I was having in my project I decided to upgrade my xcode to XCode 3.2.4 iOS SDK 4.1. Now I no longer have the option to pick simulator but instead when I choose 'Device' it deploys to the Simulator!!! Under 'Project Settings I can select 'Base SDK' as either device or simulator. I tried uninstalling XCode full and re-installing but to no avail. How can I get both deployment options back in and working correctly? ![alt text](https://i.stack.imgur.com/jEG6u.png)
Upgrading xcode loses simulator option
CC BY-SA 2.5
null
2010-09-16T10:28:26.577
2010-11-30T15:06:22.507
2017-05-23T12:13:29.403
-1
445,016
[ "iphone", "xcode", "build" ]
3,725,930
1
3,726,481
null
0
1,644
i have placed a SqlDataSource component on my aspx page but while configuring the SqlDataSource in the "Test Query" Step I am passing the following parameters : ![alt text](https://i.stack.imgur.com/HO4tR.png) But when i click ok it returns following error: ![alt text](https://i.stack.imgur.com/JRoQA.png) This error occurs when i pass the string : INFO, WARN, ERROR, I have tried a lot of combinations but nothing works. It works only if i pass one of the three words in single quotes like this : 'ERROR' Infact the INFO WARN and ERROR are the various levels available in the table. Each record can have only one level and in the sql query i am using IN("-----") to match the criteria, hope you understand. Any idea to pass the string with comas between them will be highly appreciated.
Pass string parameter to SqlDataSource in asp.net
CC BY-SA 2.5
null
2010-09-16T10:53:18.333
2010-09-16T12:06:42.573
null
null
329,051
[ "c#", "asp.net", "sqldatasource" ]
3,725,936
1
3,745,585
null
4
1,930
I have an core data model as follows ![alt text](https://i.stack.imgur.com/iMFB4.png) The `attributes` property of `Page` is a set of `DictionaryEntry`, they are values for my Page objects, much like a standard `NSDictionary` (except all of the `keys` and `values` are strings) I have a `Page` that has a `DictionaryEntry` with `key="title"` and `value="Home"`. How would i form a fetch request to load that specific page?
Core Data: Fetch via specific property (join relationship)
CC BY-SA 2.5
0
2010-09-16T10:54:19.423
2010-09-21T06:34:05.113
2010-09-21T06:34:05.113
100,652
100,652
[ "iphone", "macos", "core-data", "nsfetchrequest" ]
3,725,959
1
3,726,022
null
3
1,575
I am using PayPal Website Payment Standard with IPN enabled. Before I was setting variable like this ``` <input type="hidden" name="cmd" value="_xclick"> ``` but then I canged it to ``` <input type="hidden" name="cmd" value="_cart"> ``` Also I changed some other variables inside my form ``` <input type="hidden" name="item_name_1" value="Item1"> <input type="hidden" name="amount_1" value="2"> <input type="hidden" name="item_name_2" value="Item2"> <input type="hidden" name="amount_2" value="2"> <input type="hidden" name="quantity_1" value="1"> <input type="hidden" name="quantity_2" value="2"> <input type="hidden" name="item_number_1" value="121"> <input type="hidden" name="item_number_2" value="122"> ``` But when the form is Posted to PayPal I am getting this error. ![Pay Pal Error "We have detected a problem with the shopping cart.If the problem persists,please contact the merchant."](https://i.stack.imgur.com/Vq6ce.jpg)
PayPal with IPN enabled invoking error on cmd = "_cart"
CC BY-SA 2.5
0
2010-09-16T10:57:55.937
2012-07-21T22:27:16.423
null
null
440,694
[ "php", "paypal", "paypal-ipn" ]
3,726,072
1
3,729,942
null
0
121
Hi i am facing a issue with the . I am sorting the records based on user criteria like date range etc via drop downs ![alt text](https://i.stack.imgur.com/Bgsaq.png). And it works fine. It paginates properly. But when i click on page 2, it shows page 2 of all results an not the sorted results. How can i fix it. The fields are sorted via POST and not GET and don't want it to be GET
Cakephp Pagination issue
CC BY-SA 2.5
null
2010-09-16T11:12:51.680
2010-09-16T19:14:38.153
null
null
406,659
[ "php", "cakephp" ]
3,726,088
1
3,726,506
null
0
326
I starting to investigate whether Ruby-on-Rails will help solve my problem in some way? In short, I have a legacy application which is reading and writing a collection of images. This application also uses a sqlite database to help refer to correct image files when required. What I'd like to do is have an iPhone and/or iPad application browse the images, but also be able to see updates and additional images hitting a refresh button; or using a periodic timer say. This brought me to investigate Ruby-on-Rails as a solution? I made the following diagram to think about whether I'm on the right path: ![isrubyonrailstheanswer](https://i.stack.imgur.com/Dtg1u.jpg) To date I obviously have the (legacy) in-place linux app, which generates images and updates the database. I have also embedded a bonjour service inside the linux app to allow an iPhone application to connect and to-date browse thumbnails that are inside the sqlite database. The tricky part is that I've realised that the iPhone app needed to be kicked to update its images when the database is changed remotely. Actually I thought that with a ruby-on-rails app it could provide a RESTful service to access fullsize (plus, thumbnail) images allowing the thumbnail images to be removed from the sqlite database - it's likely the database could have 10000+ entries, so didn't want the db to grow unnecessarily. Any tips or resources would be great. Thanks. I had a think about the wording of my question again. I guess I was trying to figure out if I could get something like to monitor changes to a database without polling in some way.
Is Ruby on Rails solution to async notify iPhone app of updates?
CC BY-SA 2.5
null
2010-09-16T11:14:21.030
2011-01-07T16:35:55.713
2011-01-07T16:35:55.713
212,078
212,078
[ "iphone", "ruby-on-rails", "linux" ]