text
stringlengths
8
267k
meta
dict
Q: Error in CreateProcessW: cannot convert parameter 9 from 'STARTUPINFO' to 'LPSTARTUPINFO &' I understand that startup_info is a pointer to a STARTUPINFO structure I have a function which I pass startup_info by reference into it. So we can say that I am passing a pointer by reference void cp(....., LPSTARTUPINFO & st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CakePhp: How to know the current local in the model? I've to develop a small website which is multi-lingual. This website is using an ERP database, so I cannot choose my database structure, ... My application has the default language in the core.php, and I'm using I18N Through URL to specify which language I've to d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regular Expression to check String is valid XHTML or not Possible Duplicate: regular expression to check if string is valid XML I am looking Regular Expression to check String is Valid XHTML or not example <h2>Legal HTML Entity References</h2><table align="center" border="0" ><tr></tr></table> A: This sounds li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: replace image in local folder with URL coming from web service Possible Duplicate: android: webservice image replace with images in Local folder How can I replace an image in local folder with the URL received from web service. Please provide me a sample code or a simple example. Guide me in this issue. Thanks in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JMS implementation using JNDI in spring application I am trying to implement JMS in my spring application. I have defined the JNDI name + queue name in applicationContext.xml as follows: <bean id="emailQueueConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean" lazy-init="true"> <property name="jn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to execute commands with Android SDK like a terminal? I want to develop a terminal app in Android. In C#, we have: System.Diagnostics.Process.Start("path of aplication") Its like running a program directly because each command is a program in Windows. I don't know how it works in Linux. A: Use ProcessBuilder t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to use uddi in .Net I have used web services in .Net before with WCF.Though, I don't really understand the benefits of UDDI. There is a lot of theory but I didn't find anything practical. Do you know any tutorials on using UDDi in .NET? A: Found an example of UDDI in .Net Another example about UDDI based enter...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is there an atomic_add() function on android i need atomic addition on android, but i can't find it . In asm/atomic.h file, it just have only ATOMIC_INIT(i) macro definition . A: If you write code in C/C++ then you can use the GNU compiler builtins for atomic ops A: I am not sure if you mean that you need this i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Display data with 'yes' or 'no' entries unique. This is my data unitCode stunum assNo subStatus SIT111 1000 1 Yes SIT111 1000 2 No SIT111 3000 1 No How do i generate only results with ONLY a 'No' eg: Only student 3000 should come up. Since that person has not handed in ANY assignments....
{ "language": "en", "url": "https://stackoverflow.com/questions/7565716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VB6 Winsock Error Invalid Argument 10014 Private Sub Form_Load() Winsock1.RemotePort = 22222 Winsock1.Protocol = sckUDPProtocol End Sub Private Sub Command1_Click() Command1.Enabled = False Dim sendBuff As String sendBuff = "XXXXX" Label1: On Error GoTo Label2 Winsock1.RemoteHost...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Select all string and focus when document is ready I want to select the input when document is ready. I mean input value must be like highlighted and when I click any button from keyboard input's value should be delete. How can i do this with jquery? <input type="text" class="myText" value="First Name"></input> A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: invalidate nstimer in objective-c iphone I am having issue with invalidating a NSTimer. I initialize a NSTimer with below function. -(void) initLTTimer{ [self shutLTTimer]; [self setQuestion:questionCounter]; isQuestionAttempt=NO; tmLeftTime=[NSTimer scheduledTimerWithTimeInterval:1.0f target:self se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Writing Details into a File I am trying to write into a file work/log_file.txt upon submitting a page work/login.php. But the contents (form values from login.php) are not getting written. This is the code I used if(isset($_POST['submitform'])){ $file="log_file.txt"; $open = fopen($file, "a+"); //open the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CALL_PHONE vs CALL_PHONE_PRIVLEGED What is difference between permissions CALL_PHONE and CALL_PHONE_PRIVLEGED. After reading there definitions it appears they do more or less the same things. CALL_PHONE: Allows an application to initiate a phone call without going through the Dialer user interface for the user to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: The support of the CPAN There is a great thing in a Perl world: CPAN. http://www.cpan.org/ But I can't find any support forum or discussion board or any bugtracker for CPAN itself. Is there any? A: The backend, PAUSE, is maintained at https://github.com/andk/pause. The miscellaneous static files of CPAN are maintai...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: localitics & comScore memory leaks I'm using Localitics and ComScore libs for collecting some statistic for my app. And I have a problem with memory leaks. If any body use such libs, and know how to solve this problem. Or, maybe, it's not a problem? in more details: after, when i commented // [[LocalyticsSession s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: MYSQL using temporary when Group By I have this query: SELECT m.Number FROM table m WHERE m.IdA = _IdA AND m.IdB = _IdB AND m.IdC = _IdC GROUP BY m.Number ORDER BY m.Number; Where _IdA, _IdB & _IdC are the parameters. If I check it with EXPLAIN it says no using temporary, but if the values of those paramete...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: nginx+uwsgi+python2.7 come up with a bottleneck that can not pass 20000x40000 benchmarking i'm coming up with a bottleneck that my server can't pass a 20000x40000 benchmark test no matter what adjustments i made. the server have 128G Ram and with an Xeon 6 core cpu, centos5.6-64bit, in a good shape. i try combinatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using array with page slugs I'm using the following code to display images based on the category id: <?php if (is_category( 'web-design' )){ ?> <img src="<?php bloginfo('template_directory'); ?>/images/slider_webdesign.png" title="خدمات تصميم وتطوير المواقع" height="200px" width="960px" /> <?php }else if (is_cat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 3d orthogonal projection on a plane I have a point in 3d P(x,y,z) and a plane of view Ax+By+Cz+d=0 . A point in plane is E.Now i want to project that 3d point to that plane and get 2d coordinates of the projected point relative to the point E. P(x,y,z) = 3d point which i want to project on the plane. Plane Ax + By +...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to 'git pull' all the branches easily? git pull --help Incorporates changes from a remote repository into the current branch. I pull the git repository for offline view of the code and like to have the updated code for the different branches. How do I pull the code for all the branches easily without doing a p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Stty getting insane on using Python subprocess I am facing a weird problem. Every time I call a particular command cmd via subprocess.Popen(cmd).wait(), the stty gets bad (does not echo my further commands on the shell, newline does not work, etc.) when the command is over. I have to run stty sane to get the stty f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Django logout url with GET values I have url config based on https://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.views.logout Here it is: url(r'^logout(?P<next_page>.*)$', 'logout', name='auth_logout_next'), In template I use such code: <a href="{% url auth_logout_next request.path %}">{% trans "...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Log4j logging to separate files I have an application that listens on a specific port to do its task. This application can run on multiple instances by specifying different ports in the argument. MyApp-1211.bat contains java MyApp 1211 MyApp-1311.bat contains java MyApp 1311 MyApp-1411.bat contains java MyAp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: targetting the next container child in flex i have created a couple of buttons at run time in flex. when i click on one button using event.currentTarget property i can change its properties like x,y,label etc , also i can get its index. Now i can found the next child index too but how can i change the properties of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: wix IIS version in uninstall condition fails I have a custom control as shown below. During uninstall the condition that checks for IIS_MAJOR_VERSION="#7" AND IIS_MINOR_VERSION="#5" seems to fail although during install this condition is true. I did check in the uninstall file that the property for IIS_MAJOR_VERSI...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Determine a cursor by condition In SQL Server for CURSOR we say: CREATE PROCEDURE SP_MY_PROC (@BANKID VARCHAR(6)='') ------------------------------- ------------------------------- DECLARE MY_CURSOR CURSOR FOR SELECT ....... Now, what I wonder, can we determine the select statement according ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Construct object by calling constructor (method) explicitly Definition of class: #pragma once #include <string> #include <utility> namespace impress_errors { #define BUFSIZE 512 class Error { public: Error(int number); Error(std::string message); Error(const char *message); bool IsSystemError(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CFDOCUMENT creates PDF with different MD5 hashes for same input I am using CFDOCUMENT to create a PDF in CF9.0.1. However with the same input each time I generate a new PDF using CFDOCUMENT the MD5 hash seems to be different. Test code is simple: <cfdocument name=FileData1 format="PDF" localurl="yes" pagetype="A4"><...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Javascript Center Possible Duplicate: How to align a <div> to the middle of the page This is a simple question with what should be a simple answer but I don't know how to do it. Well, use this code: <html> <head> <style type="text/css"> body{ min-width: 710px; } #backdrop{ m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you debug win32 com integration from Python? I'm trying to call the text to speech API from Python using win32com.client. The Python interpreter is bundled with Splunk and I'm able to invoke it manually using "splunk cmd python". Here's a sample from win32com.client import constants import win32com.client spe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to update a property with an new object from another thread? I have a problem setting a Property on the main thread from another thread. This is what i do at the moment: XAML: <TabControl Name="tab"/> Code Behind: TabItem tabItem = new TabItem(); Binding myBinding = new Binding("ReportView") { Source = ViewMod...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Assign single value to multiple variables I want to assign 0 to all declared values in a single statement. char r, g, b = 0; The above only assigns 0 to b but not to the other variables A: You can do it two ways: char r = 0, g = 0, b = 0; or char r, g, b; r = g = b = 0; A: Tersest form is: int r,g,b=g=r=0;
{ "language": "en", "url": "https://stackoverflow.com/questions/7565794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Facebook permissions for viewing photos I'm writing a Facebook application that accesses the user's friends' photos. For some reason, I can only access certain photos. I have narrowed it down to only being able to access photos with the 'Friends of Friends' privacy setting turned ON. The pictures I can't access sti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: abort AJAX post My setup is like this (simplified for clarity) : <div class="methods"> <a href="#a">Method 1</a> <a href="#b" class="fb_method">FB Method</a> <a href="#c">Method 3</a> </div> ... <!-- contents --> So each method, if clicked, will fade in the inline contents, except anchor that has "fb_m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Gridview sorting when Header text changed in RowDataBound event I have a GridView on my webpage whose DataSource is a DataTable which is populated at runtime. AllowSorting property of GridView is True. I have successfully implemented manual sorting for this GridView. But I had to translate the webpage to other langu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: fork() call in c I have used fork() to create 2 different processes operating on 2 different address spaces. Now, in parent process I need the value of a variable from child's address space or if the child process can modify the variable in parent's address space. Is this possible? A: No, once you've forked, each p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to control Apache via Django to connect to mongoose(another HTTP server)? I have been doing lots of searching and reading to solve this. The main goal is let a Django-based web management system connecting to a device which runs a http server as well. Django will handle user request and ask device for the real d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does AirPrint work without drivers? I would to know how AirPrint works without drivers (with compatible printer or through a AirPrint enabled pc/mac). What are the communication steps between ios device and printer?
{ "language": "en", "url": "https://stackoverflow.com/questions/7565820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: getSensorList() vs. getDefaultSensor() in Android SensorManager I'm writing a game for Android and want to be able to use the accelerometer for input. I see two ways of getting a sensor, one way is to use the first element of SensorManager.getSensorList(Sensor.TYPE_ACCELEROMETER) and the other is SensorManager.getDe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: RailsInstaller on Windows 7 64bit? I tried to use the Rails Installer to get a ruby on rails environment on my Windows 7 64bit today and the .exe won't run because it's made for 32bit instead of 64bit. Update When I try to start the installer, this message pops up: Here is the translation: This version of the file...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: From where wp ecommerce is loading plugin theme files? I updated my checkout page by updating mostly the file which was in ....wp-ecommerce/wpsc-theme/wpsc-shopping_cart_page.php It worked fine for a while, but now some of the changed states reverted to the previous state. Actually, I can even delete the file that I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: paypal integration in asp.net 4.0 hi i'm new to the web development.I just created a online shop in which all things finally i want to add some mechanism by which i redirect my customer to paypal site and pay then redirect to my site.please help me. A: To help you with the idea. The idea is that you collect all you...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to execute query in Zend framework Thanks for previous replies I am execution "select Name from table_name where id=1"; . i saw some tutorials for getting data from the database, they mentioned $DB = new Zend_Db_Adapter_Pdo_Mysql($params); DB->setFetchMode(Zend_Db::FETCH_OBJ); and the result will getting thro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Blank page for jquery.SPServices that list a sharepoint List I have a SharePoint List that I wish to view it on a custom aspx file. The SharePoint List is named - "AM_Code" Inside the List, there are multiple columns but I just want those rows with the column 'Title' that is not null. The data will then be displayed...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: conflicting distributed object modifiers on return type in implementation of 'release' in Singleton class I have recently upgraded to Xcode 4.2 and its started to give me so many semantic warnings with my code... one of them is "conflicting distributed object modifiers on return type in implementation of 'release'"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Web Service Method with Optional Parameters Possible Duplicate: Can I have an optional parameter for an ASP.NET SOAP web service I have tried looking around for this but I really cannot find the right solution for what I want to do. Sorry for the repetition since I know this has been asked before. I have a Web Se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Running parallel selenium tests with capybara Background: I have a set of Capybara integration tests running against my Rails 3 Application. For the other parts of the test suite I'm using Rspec. I have a selenium 2.6.0 standalone server hub on my Mac OSX dev machine. java -jar selenium-server-standalone-2.6.0.jar ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What is the best way to achieve a honeypot style form captcha? I have heard of honeypot style captcha systems either loading the form with javascript, which might load after the page has rendered. Or checking if a hidden field is filled in, which could possibly be mitigated. Is there a full-proof way to achieve thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Error:emulator-5554 disconnected: Possible Duplicate: Why do I get a emulator-5554 disconnected message i run mine application in eclipse and the following results found in console [2011-09-27 12:47:58 - AndroidBlackjack] Android Launch! [2011-09-27 12:47:58 - AndroidBlackjack] adb is running normally. [2011-09-2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML - CSS - Layout I've a page here: http://www.balibar.co/?dating=does-friends-with-benefits-work With the larger first DIV on the left you can see an image with a logo and text showing and a black background. Next (with some opacity) is a white background with words (friend with benift etc)... This top parts site...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Switching from one view to another : Java I have one .java file in which I have a form for user registration and I have another page on another .java file that should appear (and previous should disappear) when user clicks on next .... could anybody provide me any guidance. Thanks a lot efforts appreciated A: Use ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Add Styles to document head from the view in Cakephp? I need to add styles to my style tag in my head section. How can i add to that style tag from the view. A: You'd be better off from an MVC point of view by putting these style elements in to their own stylesheet, and then inserting the sheet in the way mentioned...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Concatenate unwantedly applies max character width I am trying to print some mixed text and variables, all on one line. c() unwantedly forces all character fields to be the width of the largest field, i.e. 12 chars in this case. How to just get simple concatenation? > print(c('Splitting col',i,'x<', xsplitval),quote...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript/jQuery - DateTime to Date and Time separate strings Is there any simple way to convert the following: 2011-08-31T20:01:32.000Z In to UK date format: 31-08-2011 and time to: 20:01 A: You can use jquery-dateFormat plugin. The following should do the trick: $.format.date('2011-08-31T20:01:32.000Z', "dd-MM-...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the mysterious ThreadSafeObjectProvider Was browsing through a project of mine and stumbled across the following code (and class) inside of a file MyWebExtentions which I have never seen before. Private s_Computer As New ThreadSafeObjectProvider(Of Global.Microsoft.VisualBasic.Devices.ServerComputer) ''' <s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: DRY version of a list What would be the most efficient way to do the following: genres = [value_from_key(wb, 'Genre (1)', n), value_from_key(wb, 'Genre (2)', n), value_from_key(wb, 'Genre (3)', n), value_from_key(wb, 'Genre (4)', n),] I tried doing it with a list comprehension -- genre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery accordion making some page links disabled I'm using jQuery accordion which expands and collapses fine but when it expands it hides some of the page tabs and links. When it collapses these tabs and links don't work, they just become disabled. Can somebody help me? What could be the problem? Here is the link wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Proper way to make a HTTP request in Android Which is the best way to make a HTTP connection. I mean using proxies and so on. Now I'm using this one: StringBuilder entity = new StringBuilder(); entity.append("request body"); AndroidHttpClient httpClient = AndroidHttpClient.newInstance(null); String proxyHost = and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How could I pack a rack web-application includes infinite loop I want to pack a rack web-application in order to distribute it, In which a infinite loop resides. So it won't stop until my ctrl-c. But it seems ocra will only pack it when it ends 'naturally', and ctrl-c stopped the process. have been tring use exit o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: fork and waitpid fail on linux. Without hitting the hard or soft limits I have a process that must create and close threads on demand. Each thread forks a new process using open2. Sometimes after executing the program for a long time open2 fails to fork the process sometimes and gives a "Can not allocate memory err...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: direct mp3 file-transfer from a Kiosk to a smartphone I'm building a Kiosk, using a MacMini and an Elotouch display. It would load a CoreAnimation based App. that plays multimedia content following user touch-based choices. I'm in a early stage of the project. I can change the architecture/technology if needed. I ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to use multiple link styles in css? Is it possible like lets say the text in the div header has a red hover, and the text in the div in the footer a white hover? Or is this just not possible and can you only set 1 style for the whole document? A: This is very much possible, just like any other elemen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to run java class in JAR file in maven target directory? I would like to run my Izpack installer after maven build, but I am getting following output after executing "mvn test": [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building RS IzPa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to determine to which extent/level an array of integers is already sorted Consider an array of any given unique integers e.g. [1,3,2,4,6,5] how would one determine the level of "sortedness", ranging from 0.0 to 1.0 ? A: One way would be to evaluate the number of items that would have to be moved to make it sort...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Detect that a hidden form field has changed? I am using a hidden form field to store the current record that an user is editing. How can I prevent the user from changing that field? Would MVC3's anti-forgery helpers work, or do I need to roll my own checks? A: See How to detect if form field has changed without usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to use more than one list item click that extends Activity implements onClicklistener I'm using 3 listviews created in java code in my program. I use extends Activity that implements onitemclicklistener. Now, how to make different item click event for each listviwe separately? Any help is appreciated and thanks ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GWT-Platform: where the business logic should go? I just got the grip on GWTP and the MVP, GIN and Dispatch. With dispatch there is a Handler class which defines what the action does and returns something accordingly. So far I found myself with a case where I have 2 actions that require to execute the same method. F...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reduce the size of the image android How can i reduce the size of the image android programatically. Size of image can be set in grid view. Is it possible to set the size of image displayed in Edit Text that is received from grid view selected image. I have set of images in my gridview. I can reduce the size of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: N:M Relation Syntax Error in code I have this SQL (for MySQL): create table apartmentcaretakers ( apartmentID int, caretakerID int, PRIMARY KEY (apartmentID, caretakerID), FOREIGN KEY (apartmentID) REFERENCES apartments(apartmentID), FOREIGN KEY (caretakerID) REFERENCES caretakers(caretakerID) )engine = innodb; The...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: cout does no print in QtCreator I saw this question already on this forum but I do not know why the proposed answer does not work in my case. So I try to ask for other slution. I just got my Qt creator running under Linux. I do not understand why my: cout << "This does not appear"; Does not print in console while q...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Android MP4 playback issue from URL I am trying to play mp4 video from URL but my phone always give me error "sorry this video can not be played" instead if i download video from same URL then video plays fine at phone. http://beta-vidizmo.com/hilton.mp4 Please tell me what i am doing wrong? A: It also depends on t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to control Primary Menu links using Secondary Menu's Drupal 6? I got a secondary menu with two items "English" & "Spanish" and Primary Menu with main site links. We are not using Langauage transliation, we got separate records in database for each langauages. So how can I make all Primary Menu links to select ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the harm of retain self in block?(Objective-C, GCD) In many guide about how to use blocks and GCD, one tip is always mentioned : do not retain self in block. The detail is when defining a block, if you reference self or a ivar of self, then self is retained by the block. So the work around is to use __block m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: python dictionary- two keys to each value Hi I am fairly sure you can't do this but I was wondering if you could have a dictionary where each of the values can be accessed via two keys without duplicating the dictionary. The reason I want to do this is that the two keys will represent the same thing but one will be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: MediaPlayer : How to update progress every second? I'm programming a videoplayer program and i'm searching to see the way the progress bar and time got updated every second while mediaplayer is playing. I have been looking at VideoView and MediaPlayer class , but i have no found if it use a hypothetically "OnEverySe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: FFmpeg fade effects between frames I want to create a slideshow of my images with fade in & fade out transitions between them and i am using FFmpeg fade filter. If I use command: ffmpeg -i input.mp4 "fade=in:5:8" output.mp4 To create the output video with fade effect, then it gives output video with first 5 frames...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Android GL ES2 buffer issue: garbled data I am trying to save whatever is rendered on screen in a Open GL ES2 application, by not calling glClear on a renderbuffer or the framebuffer. This has been working fine on a physical Nook Color. But when running on physical Nexus One (running android 2.3.6), I a getting is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how put an image over embeded flash in asp.net pages - z-index not help my aspx codes : <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Building.Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Two basic ANTLR questions I'm trying to use ANTLR to take a simple grammar and produce assembly output. My language of choice in ANTLR is Python. Many tutorials seem very complicated or elaborate on things that aren't relevant to me; I only really need some very simple functionality. So I have two questions: 'Return...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Strange Problem with MGTwitterEngine for ipad I am stuck with the strange problem of MGTwitterEngine for iPad because when I use it for iPhone it works perfectly but when I use it for iPad then in method below(delegate method) I am getting username as null but in iPhone it was giving correct(eg.soha00) Code for call...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to interpret a crashlog with no references to a specific class Today my app crashed and generated this crashlog. The crashlog does not mention any classes in my project and to me it seems almost impossible to tackle this issue. Any ideas how to approach this problem? Thanks for your help! A: There's a tool incl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: select particular element in row of table view in titanium hi I am developing Android application using Titanium. I want to change image on click event.But I am unable to select particular image in table view.I used following code: var user_table = Ti.UI.createTableView({minRowHeight:5.length,hasChild:true}); var d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Specify content-type for documents uploaded in Magnolia We have uploaded an mp4 video file into our Magnolia DMS, which fails to play on Safari (Mac/iPad). Investigation shows that the Content-Type returned by Magnolia is "application/octet-stream" for the request. When serving the file through Tomcat directly, the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Piwik statitics about all websites Is it possible to use the Piwik-API with all Websites, not just for a single one? What i want to do is get a mean value of used browsers. I can do this for a single website like this: ?module=API&method=UserSettings.getBrowser&idSite=1&period=day&date=last10&format=rss If i just r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7566002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how is the linked list actually being changed i was wondering if anyone could help me with this question. i believe i understand the code and logic for the most part. i can trace code and it makes sense, but one thing i don't get is....how does the LinkedListNode previous actually change the LinkedListNode n that is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7566003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: OWL Ontology: Represent increasing number, like first, second, third I have a question about an OWL ontology that I am making. I have a class that is actually an ID class and I would like to have instances: first, second, third etc. The first solution that I have figured is creating individuals {first, second, thir...
{ "language": "en", "url": "https://stackoverflow.com/questions/7566004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Resource Loader with ready() function call and that also loads CSS? Ideally I'm looking for a Javascript resource loader that will: (1) Allow me to make "ready" calls like head.js does, e.g. head.ready(function() { $("#my").jquery_plugin(); }); // load jQuery whenever you wish bottom of the page head.js("/path/t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7566006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Fluent nHibernate required files and linux I've downloaded the fluent hibernate 1.2 zip file from the website. It contains various files, amongst them NHibernate.dll FluentNHibernate.dll Castle.Core.dll Remotion.Data.Linq.dll Antlr3.Runtime.dll Iesi.Collections.dll NHibernate.ByteCode.Castle.dll Q1) Are all these ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7566009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: textStyle for Tamil font? I'm already working on an Android application that displays RSS feed. My problem is that this feed has some lines in Tamil(which Android still doesn't support) I found a font online that displays the text right(without converting to Bamini) but the problem is that textStyle doesn't have an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7566013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom tooltips for Wpf Devexpress controls I have created a custom tooltip that is shown for WPF controls, but not for DevExpress WPF controls and I don't know why. To add the tooltip I do something like this: <Button.ToolTip> <cc:TooltipControl Title="Test title" Text="Some text to show in tooltip" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7566020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Updating GPS location from background android doesn't work on most of the phones I want to get the GPS location of device every 30 min and send it to web service via a web service call. I have used repeating alarms for every 30min with a broadcast receiver in the application for this alarm. Receiver acquires the wak...
{ "language": "en", "url": "https://stackoverflow.com/questions/7566026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Header guard / translation unit problem I was under the impression that header guards solve the problem of redefinition. I'm getting linker errors that say there are redefinitions in the .obj files. This is the header I'm including, the problems are with the redefinition of all the global declarations. #ifndef DIREC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7566034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android Image URL to table row I would like to dynamically add some images from this page to the rows from my table. This is my code so far: TableLayout tableView = (TableLayout) findViewById(R.id.tableView); TableRow row = new TableRow(this); ImageView im; im = new ImageView(this); im.setImageRes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7566035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why 'publish' website produces bin with one dll and build script produces bin with lots of dlls I have made a script that uses the following command... "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "C:\Repositories\Software\trunk\main\upload\UploadWebsite.csproj" /p:Configuration=Release This mak...
{ "language": "en", "url": "https://stackoverflow.com/questions/7566037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Passing control as parameter to javascript function I am trying to pass a control's id to a javascript function that adds the value of it(the control which is a textbox) to a listbox but apparently I am not getting it right, can someone please correct me. Thanks. <input type="button" ID="btnAddtoLstBox" value="" ti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7566041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Error when compiling simple SPARC ASM math code Writing SPARC asm code to evaluate a hardcoded statement, but I'm getting an error I don't understand. I've searched all over, and while it seems to come up a lot in some bug reports out there, there's no real clues that I've found for programmers. Yes, it is homewor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7566044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove a particular div tag and reset its content using javascript Code below contains certain tags in all four. Image-1 here is the code : <div style='background-color:YellowGreen;height:20px;width:100%;margin-top:15px;font-weight: bold;'> &nbsp;&nbsp;Delegate(s) details: </div> <d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7566055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a Visual Studio plugin to highlight a block of text, like in Microsoft Word? I don't mean a single word, or every occurrence of a particular word... I'm talking about the ability to select a block of text, like a method, or a series of methods and highlight the background in a particular colour... Like this...
{ "language": "en", "url": "https://stackoverflow.com/questions/7566056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: PostgreSQL ERROR: there is no built-in function named " (SQL state 42883) I'm trying to add to my PostgreSQL a very simple function, to convert IP addresses from an integer to a text format. This is the code of the function: CREATE FUNCTION custom_int_to_ip(ip BIGINT) RETURNS TEXT AS $$ DECLARE octet1 BIGINT; octet...
{ "language": "en", "url": "https://stackoverflow.com/questions/7566057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }