text
stringlengths
8
267k
meta
dict
Q: Pixbuf overlapping / merge Is there a way to overlap (but not overwrite) two gtk.gdk.Pixbuf in a gtk.IconView ? For example, I've a cell with this pixbuf image : http://www.pirates-caraibes.com/media/zone/AnimMer.gif I want to add this image : http://www.pirates-caraibes.com/media/objet/plage-coin-test12.gif to the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Customized list in C# I want to create customized list in c#. In my customized list I want only create customized function Add(T), other methods should remain unchanged. When I do: public class MyList<T> : List<T> {} I can only overide 3 functions: Equals, GetHashCode and ToString. When I do public class MyList<T> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to print in VB? I have a web application build using classic ASP and VB. How do I print a document from within the back end VB code? Protected Sub btnPrint_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnPrint.Click End Sub What i am trying to do is get user to click on button a letter i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: android socket communication through internet I'm experimenting with socket communication between android and windows. Everything works fine till i use the 10.0.2.2 address which is the loopback to the computer on which the emulator is running. But if i give any other address to the Socket constructor the connection...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: I've monkey patched after_commit so it works with my test, but it doesn't work on Jenkins I use an after_commit filter in several places in my code. In order to get my cucumber tests working, I had to use a patch - http://outofti.me/post/4777884779/test-after-commit-hooks-with-transactional-fixtures It works fine lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Last rule in mod_rewrite returns 404 even though page exists I have the following in my .htacccess file: RewriteBase / ErrorDocument 404 /404.php Options +FollowSymlinks RewriteEngine on RewriteRule ^news/([a-zA-Z]+)/([0-9]+)-([a-zA-Z]+) /news/view-article.php?category=$1&id=$2&title=$3 [NC] RewriteRule ^news/most-v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: App freeze while Schedule LocalNotifications in background - (void)applicationDidEnterBackground:(UIApplication *)application { for (int i =0; i<30; i++){ //add a local notification and schedule it } } when app switch to background, these codes will freeze app in a while. A: There's no document ab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do i password protect a page in refinery cms? Basically i am trying to set up a password for a single page in refinery. Is there an extension which can do such a thing for me automatically or should i override internal parts? Thanks in advance. A: There is no way to do this with a default install of Refinery, y...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Conditionally resetting input element value before submitting form to MVC3 action this is probably a simple question but I'm new to jQuery with MVC3. I have an MVC3 application where an Index action lists some papers with their authors. Users can filter the list by (among other parameters) author name, so I have an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL default charset and collation I am installing MySQL server on FreeBSD. My current port version is 5.5.15 on FreeBSD 7.2. I am wondering how to get it installed with different than latin1 default charset and collation. Currently when I install it with default Makefile I get this: | character_set_client | la...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Continuous form selection deselected on command button click I have a continuous access form with record selectors enabled. Here's the code for the btnPrintReceipt click event handler. I want it to get the ReceiptID of each selected record and open the report with those id's. The problem is, when you click the co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Three20 horizontal gradient How can I make horizontal gradient for TTStye? - (TTStyle *) myStyle: (UIControlState)state { return [TTShapeStyle styleWithShape:[TTRectangleShape shape] next: [TTLinearGradientFillStyle styleWithColor1:RGBCOLOR(60, 60, 60) color2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How exactly does the modal variable in Java Dialogs work? In the JavaDocs for Dialog(Dialog,String,modal) it says the following: modal - if true, dialog blocks input to other app windows when shown If I understand correctly, if I pass a true argument to the constructor of a Dialog, will it just pause all the prog...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Inserting data doesn't replicate into database I have a written a sample code to insert data into a table and it says successfully inserted, but when I see the data in database in the database explorer, table shows nothing. When I try to retrieve the data, it prints those values. Still I don't find any records in Vi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: powershell expand-archive cmdlet - problem with unpack split zip files I'm trying to unpack zip file which is in pieces (file.z01, file.z02, file.zip) I use expand-archive cmdlet from PSCX but i get an error PS C:\> expand-archive -format zip -path c:\temp\file.zip -outputpath c:\temp\ -showprogress error message: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best way to search two queries and eliminate rows without a relationship I am working on a property website and have record sets for property and for unit, unit has a one-to-many relationship with property. What I'm trying to figure out is how to best create a search function which will output results based on crite...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trouble installing QT Jambi on a Windows 64 bit system I've been trying to use QT Jambi, but I couldn't manage to install it yet. First of all, this is my system: Windows 7 Home Premium 64 Bit Java 6 32 bit (I often use JDownloader which is not compatible with the 64 bit version of Java) MinGW C++ compiler that come...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: UISearchBar - scope bar animated I've found example of animated search-bar with scope bar under "UISearchDisplayDelegate Protocol Reference"(SearchBar-animated-sample ), here is a video preview: SearchBarAnimated-video I've checked sample code, but I can't find the code that triggers animation. Does anyone knows how...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can Class be of the Class class and not have Class instance methods? I was studying how the Ruby interpreter is implemented, and one question occurred that didn't get an answer yet for me. That's the one in the title: since Class (r_cClass) has super set to itself (ignoring metaclasses, since actually super is t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Separate entity for primary keys I have two tables as below. "User Acc" is user's profile details and user's login details(username password) are in a seperate table called login.When I generated the entities in Netbeans IDE, there were 2 tables for login(database) table. One generated entity is "Login", another one...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Managing loads of web forms I'm currently working on a web project that is on a larger scale than I'm used to. The website has a frontend for registered users which consists of 10 different subpages which all have forms. But my problem is how to create and manage these forms by way of CSS and jQuery. Is there a simp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Silverlight ComboBox in DataGrid Binding SelectedItem problem I have a combobox in datagrid.I use Silverlight 4.0 and MVVM. My code works fine,unless when I removed a record from datagrid and add another one, the SelectedValue binding for combobox in added row doesnt work. <sdk:DataGrid AutoGenerateColumns="False" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HL7 parsing to get ORC-2 I am having trouble reading the ORC-2 field from ORM^O01 order message. I am using HapiStructures-v23-1.2.jar to read but this method(getFillerOrdersNumber()) is returning null value MSH|^~\\&|recAPP|20010|BIBB|HCL|20110923192607||ORM^O01|11D900220|D|2.3|1\r PID|1|11D900220|11D900220...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to switch terminal to new child process of process launched with NSTask? I made a pseudo terminal with method described here: http://lists.apple.com/archives/student-dev/2005/Mar/msg00019.html The terminal itself worked well. Anyway the problem is terminal cannot being switched to child process. For an example, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multiple JQPL fetch joins fail with Hibernate Using Hibernate 3.6.7 and JPA 2, I cannot have two fetch joins in one query. Entity has a self referencing field called parent. localizedTexts is an @ElementCollection, of Java type of Map. entity.getParent() has a @ManyToOne with EAGER loading strategy. Here is How enti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to write data attributes in zen coding? I use data attributes more every day, and I really miss a simple way to add a data attribute while using zen coding. I mean I can add inline style (not that I ever use it) div[style=color:red;] why can't I add data attribute like div[data-color=pink] An...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I set the rollover strategy in System.Diagnostics trace log I have a project, that using System.Diagnostics for logging, And it creating lots of new logs files, each one starting with GUID, Even when the last log file was very small I want to setup a role that controls the creation of new log file Where can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to clean listitem data in ListActivity when using extends BroadcastReceiver Anyway to clean listitem data inside ListActivity and then show data using setListAdapter(adapter) ? The problem is it continuously appends listitem data inside ListActivity and show many listitem data. I used android.widget.SimpleAdapt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: gmail Conversation via smtp how can i send an email as a part of a gmail-conversation via smtp? Taking the same subject doesnt work... tell me if you need more infos... thanks in advance! MailMessage mail = new MailMessage(); SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com"); mail.Fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: nodejs synchronization read large file line by line? I have a large file (utf8). I know fs.createReadStream can create stream to read a large file, but not synchronized. So i try to use fs.readSync, but read text is broken like "迈�". var fs = require('fs'); var util = require('util'); var textPath = __dirname + '/pe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How do I make my banner in tumblr link to another site? I'm trying to make the banner in my tumblr blog link to another site. I can't figure out how to do it. The following is the code I found in the custom html tab but I can't seem to make my banner clickable. Where exactly should I add the website address for the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to create multi level views in NSTableView style? I have got a project which has multiple levels. I do not find a proper way to start. The project mock ups are in hierarchical structure (tree like structure). It has almost 10 levels. So how to implement these levels in multiple table views where one action c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create custom php.ini file for zend? I used PDO_MYSQL connection in application.ini file of zend its work on localhost because extension=php_pdo_mysql.dll is enable. When i run code on server its throws exception Message: SQLSTATE[28000] [1045] Access denied for user 'rdvscoin_main'@'host.indiandns.com' (usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mysql server integration with Visual Studio 2010 .net 'm Using Visual studio 2010 express edition installed in OS win7(64bit). and I downloaded mysql server 5.5.16 (64bit) which installed successfully. Now all i want to integrate these mysql server with VS 2010. I tried by installing mysql Connector for .Net(32bit) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use AWS CloudFormation from AWS Toolkit targeting "small" instance for ASP.NET I've deployed an ASP.NET on EC2 using AWS Cloudformation. In Visual Studio, the AWS Toolkit adds the 'Publish to CloudFormation' menu item. This creates the required Cloudformation template using a choice of machines, such as Micro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Populate form with file name from mysql database I've created a series of forms for users to add and edit records in a database. The database includes audio and image file names (the actual files are moved to folders on submit). My problem is that I can't get the file names to display on the edit forms. Which mea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Will a new ActionContext and ValueStack be created for every new action object? My questions are: 1) In Struts2, does every action object have its own corresponding ActionContext and ValueStack? In other words, for every new request a new action object is created. Does this mean every time a new action object is cre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I have my CMS upgrade itself? I've built a CMS (using the Codeigniter PHP framework) that we use for all our clients. I'm constantly tweaking it, and it gets hard to keep track of which clients have which version. We really want everyone to always have the latest version. I've written it in a way so that upd...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: vim ftp auto upload I am learning VIM. I have a local project, and I want to keep it synchronized on FTP server. So I need: * *turning automated sync on, when i edit files localy *turning it off *forcing to uploading one file (useful when automatic sync off) *forcing to download one file *way to compare local...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to ensure server certificate is created with which private key through java Customer has created key and certificate using openssl command below openssl req -newkey rsa:1024 -sha1 -keyout OCkey.pem -out OCreq.pem -subj "/C=country/L=city/O=OCserver/OU=myLab/CN=OCserverName/" -config req.conf openssl ca -in OCr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to add an intent to launch an app for printing any document I have to develop an andriod app which will be used for printing. So, whenever a user opens any document/image and clicks on print option, my app has to be invoked. Have started working on andriod only a week back, can someone please guide me how to ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating table out from this array structure in php Im having trouble creating a table out from this array: http://pastebin.com/DXFjfhHJ I started out with this: <table style="width: 100%; text-align: center;"> <tr> <td>Time</td> <td>Aktivitet</td> <td>Duration</td> <td>Metabolisa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: ksoap2 connection timeout I am trying to call a .net web service from an android emulator but I am getting connection timeout exception. Before I tried to call my webService I called the http://www.w3schools.com/webservices/tempconvert.asmx without problems. So I am assuming that either I have something wrong in my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Find all paths between two nodes Using a gremlin script and neo4j I try to find all paths between two nodes, descending at most 10 levels down. But all I get as response from the REST API is a java.lang.ArrayIndexOutOfBoundsException: -1 Here is the script: x = g.v(2) y = g.v(6) x.both.loop(10){!it.object.equal...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL & FK constraints Is there any point in defining FK constraints in MyISAM? MyISAM doesn't enforce referential integrity, right? So maybe there is no point to FK constraints. A: Although MySQL parses and ignores them on MyISAM tables, I think you should write them for three reasons. * *Preparation: Your cod...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to generate video at 60 fps and play it back at 60 fps? For a high-performance scientific purpose we need to render video and play it at 60fps on the device. I assume the usual frame rate of H.264 video is lower than that. Is this possible, or is the framerate fixed? If so, what is the maximum frame r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WPF Simple Binding I'm trying to convert my console app to a nice WPF GUI. Am getting a little stuck on this code and was wondering if someone can help? In my xaml I have this: <CheckBox IsChecked="{Binding CL.LoggedIn}"></CheckBox> to try and bind the value of the checkbox to the value of CL.LoggedIn. CL is my Con...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Stretch the Checkbox to the cell size I'm using WPF and have DataGrid with checkbox column. the problem is that I would like the checkbox to stretch and fill the cell this is my XAML : <Grid> <Controls:DataGrid ItemsSource="{Binding Persons}" AutoGenerateColumns="False"> <Controls:DataGrid.Columns> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Question Pattern/Matcher I want to extract the value 5342test behind the name="buddyname" from a fieldset tag. But there are multiple fieldsets in the HTML code. Below the example of the string in the HTML. <fieldset style="display:none"><input type="hidden" name="buddyname" value="5342test" /></fieldset> I have s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to remove sensitive of Transparent png files in Actions? i have Circle And TriAngles or ... png files. i want terminate Transparent Hits of my png files in cocoa-touch when i click on Rectangle Hits and just Call My Mthods When i Click On Direct Shapes.
{ "language": "en", "url": "https://stackoverflow.com/questions/7545201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: multiple focused elements in the browser Is it possible to have multiple elements (such as input elements) focused in the browser. I would like to reproduce the effect of Sublime Text 2. A: It doesn't seem possible. Check out this test: $('#one').focus(function(){ $('#one, #two').focus(); }); Example: http://j...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to check if a Windows version is Genuine or not? Is it possible to check whether a Windows installation is Genuine or not programmatically? Lets just say I want to check Windows 7 from C, C++, Java or Python. A: this from CodeProject, in C++ ( Check for Windows Genuine in VC++ ) #include <slpublic.h> #pragma co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Maven : How to use Maven for generating Spring and CXF Support Application I need to create a Simple web Application with Spring and CXF Setup I am using apache-maven-3.0.3 Support for this. Please tell me what me what number to enter in mvn command prompt , to generate those required artifacts for this. I tried th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Light-weight alternative to MVC 3 for Asp.net? I simply need to iterate through data in a loop and pass some strings through a ViewBag type collection. MVC 3 does the job but in many cases I find it too complex for my needs. Is there anything closer to the Rails View for Asp.net? (I know about Spark). A: Well, ther...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get first member of an object in javascript Possible Duplicate: Access the first property of an object I have a javascript object like this: var list = { item1: "a", item2: "b", item3: "c", item4: "d" }; Using reflection in JS, I can say list["item1"] to get or set each member programmatic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How can I post to my wall while tagging some friends via Facebook C# SDK (5.1.1)? I want to post on the user's wall while tagging a few of his/her friends in it (up to 8 people). Another option is to post on these 8 friends' wall instead. I used the example given here - http://developers.facebook.com/docs/reference/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to send a table-type in parameter to T-SQL while using C# IDataReader? I wrote a t-sql sp that gets a table as parameter. I tried to call it from c#, but didn't know what type to use: database.AddInParameter(command, "@ID", DbType.String, id); database.AddInParameter(command, "@TemplatesIds", DbType.WhatType??, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: database schema of "don't show me again what I saw before" in mysql I'm making a website that shows you images. And special feature of site is "don't show me again what I saw before". It means, if you see a image, it goes to your "archive" category. There will be so many images and categories. And I need to very smo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: CoreData (storing new object) in AppDelegate = SIGABRT I've intented to make a simple function in AppDelegate to store some data in database (CoreData) which would be called from various ViewController classes connected do AppDelegate. This is the body of this function: - (void) setSetting:(NSString *)setting :(NSSt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bean Validation @NotNull, @NotBlank and @NotEmpty does not work in JSF+Tomcat I am using Hibernate Validation annotations in my JSF managed bean. When I use @NotNull, @NotBlank or @NotEmpty they doesn't seem to be triggered in any way. @NotBlank(message = "{name.required}") public String name; View: <h:outputLabel ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Jquery how add an element to dom Hello I have a function that add combobox into the page, and I need to use the values of these combobox. When I try to acces into the jquery code it don't work. I think that I need to add the element to dom but I don't know how to do that. The id of combo is 'selectCombo' A: You hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Android Development: Game background loop I'm developing a 2d Game using Canvas/Surfaceview and have a problem with thread. So what I want to accomplish is something in the background that is for example: for each second SpawnEnemy() or ticking seconds or attacking. I tried Thread.wait but that just cause pain and m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP: Replace specified tag values in PHP Take a look at the HTML example below: <iframe width="AnyNumber" height="AnyNumber"> How can i replace AnyNumber with specified number $1 and $2 for width and height? they can be swapped like: <iframe height="AnyNumber" width="AnyNumber"> A: It reminds me of templates. F...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Client Server data sharing issue I have a webservice with a mobile application. The user, with the application shares the data on the server - have a constraint in the DB that the name of the shared object is unique per user. Also application stores locally all created data (by the user - that is also shared). I hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I copy one colum to another new tables Example my table structure current_db ID email name address phone --------------------------------------------- 1 email@email.com John My Address 123456789 2 email@email.net Peter My Address 123456721 new_db ID email column1 column2 column3 column4 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Merge standalone webapp and GAE in Go I'm working on a very simple web app, written in Go language. I have a standalone version and now port it to GAE. It seems like there is very small changes, mainly concerning datastore API (in the standalone version I need just files). I also need to include appengine packages a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: mysqli.dll and mysql.dll not mentioned in phpinfo I have read this post and it didn't really help. My php.ini file (http://www.edisk.cz/stahni/09234/php.ini_69.47KB.html) contains the correct path of ext directory. While my ext directory contains a php_mysql.dll and php_mysqli.dll libraries, there's not a word of t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery-ui: enabling disabled button doesn't restore event I have a problem: after enable button, it look like enabled but isn't clickable. (reloading page fix this problem, but i won't do it). Firstly, on (document).ready, i disable this button. For enable i do: $("#submit_order").attr('disabled', false).removeClass...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Can't install the "refinerycms-memberships" gem What can i do if i know there is a github repository for the gem but in the terminal i couldn't install the gem via 'gem install' or 'bundle install' because it fails with the following error: Could not find gem 'refinerycms-memberships (= 1.0)' in any of the gem sourc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Perl syntax error: Bareword found where operator expected As the title suggests how could I accomplish this? I have been following a tutorial, but I get a syntax error: Bareword found where operator expected at arrays_and_variables.pl line 26, near "$2names" (Missing operator before names?) syntax error at a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Android and Facebook share intent I'm developing an Android app and am interested to know how you can update the app user's status from within the app using Android's share intents. Having looked through Facebook's SDK it appears that this is easy enough to do, however I'm keen to allow the user to do it via the reg...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "89" }
Q: Why isn't there a document.createHTMLNode()? I want to insert html at the current range (a W3C Range). I guess i have to use the method insertNode. And it works great with text. Example: var node = document.createTextNode("some text"); range.insertNode(node); The problem is that i want to insert html (might be som...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Draw a path on a street Is there a way to draw path along the streets. I'm getting coords from gps and drawing path with overlay by them, but sometimes pathes are little curvy. Can i bind them to streets?
{ "language": "en", "url": "https://stackoverflow.com/questions/7545272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Setting colors in Terminal leads to strange character line limit I found an annoying bug while coloring the prompt of my Terminal. If I set my prompt to a colored one, such as export PS1='\e[1;34m[\e[0;31m\D{%Hh%M} \e[0;32m\u\e[0m@\e[0;35m\h\e[0m:\e[0;36m\w\e[1;34m]\e[0m $ ' then it starts to break when I get some ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Persistent variable on iframe? I have a <div> being dynamically created, and it contains an <iframe>. The <iframe> may close itself, at which point the <div> is removed. So far I have: var div = document.createElement('div'), ifr = document.createElement('iframe'); // some styles and stuff here, including ifr.src if...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PhoneGap, jQuery Mobile and Retina Display I am working on a PhoneGap application using jQuery Mobile. Currently I am only testing in the iPhone and iPhone Retina-simulators. When I open up the application in Retina-mode, the application's density is correct but the page is only half the screen size on both dimensio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: javascript copy input file and get full file path My first question is: - is it possible to copy from 1 file input data to another file input data? what i mean is: I have this input : <input type="file" name="fileinput1" /> Now I want to take what the user browse and copy the data to <input type="file" name="filein...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: help me design my login.jsp page I want user to provide login + password to login to my webapp. If he fails some times captcha comes to action. I wonder what can I do, to remove java code from it, and to make it more readable and firstly - safety? If I move my second 'captch'ed' form to different JSP, which would be...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Doctrine2 fetching rows that have manyToMany association by QueryBuilder everyone. I have 2 entities City and POI. Mapping looks like this: class City { /** * @ORM\ManyToMany(targetEntity="POI", mappedBy="cities") * @ORM\OrderBy({"position" = "ASC"}) */ protected $pois; and class POI { /** * @ORM\ManyToMany(tar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Vb.net Read From Console When Using A Windows Form Application Hi all I have a problem with reading and writing to the console from a windows form application. I am running visual studios 2010 and I am coding in visual basic. The current code that I have is as follows: Declare Function AttachConsole Lib "kernel32.dl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: (distutil + shutil) * copytree =? I'd like the ignore pattern that shutil's copytree function provides. And I want the src tree to replace all existent files/folders in the dest directory like distutil.dir_util.copy_tree. I'm a fairly new Python user, and can't seem to find any posts on this. A: I was going to say ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Popup image does not stay in same place The pop up image for "ice white" and "violet" pop up in different places. How do I make them both pop up in just one position? A: Could you perhaps define a single div that uses absolute position and then on hover over Violet or Ice White, draw the popup image inside that div...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can the size of an input text box be defined in HTML? Here is an HTML input text box: <input type="text" id="text" name="text_name" /> What are the options to define the size of the box? How can this be implemented in CSS? A: Try this <input type="text" style="font-size:18pt;height:420px;width:200px;"> Or els...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "96" }
Q: function inside function in php: error: Cannot redeclare I have this php script: function hoeveelzijner ($jaar, $id) { function hoeveelhoeveel($beginstamp, $endstamp, $id) { $dates = mysql_query('SELECT v_date FROM visitors WHERE id="'.$id.'" AND v_date<"'.$endstamp.'" AND v_d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Error when pull from GitHub I am trying to pull a project from GitHub, which I am collaborating on, but I receive the following error: your local changes to the following files would be overwritten by merge I have tried to merge by: git mergetool {pathtofile} But it just respons with "File does not need merging...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Gluing a variadic template to a variadic function In an attempt to bypass GCC's unimplemented always-inlining variadic functions in libc++, I thought I could maybe wrap the variadic functions (like snprintf, more precisely, the *_l variant) in a variadic template to achieve a similar effect. An instantiation would f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What happens when I create nested DOM elements using jQuery as a string? What happens when I use the following, and is there any semantic difference? Method one: var task = $('<li class="task"><header><h1></h1></header></li>') $('#backlog-tasks').append(task); Method two: var task = $('<li>').attr('class','...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get the unique thread ID I need to write the actual user thread ID to a log file. If I use Thread.CurrentThread.ManagedThreadId I don't get the unique ID, but the same one over and over again. The reason is to track log.Info for user across the system, and later if I see a problem, I'll be able to search in the log ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get Console input and output from jtextArea or JEditorPane I am trying to build a little IDE that calls a C compiler. When the C compiler compiles, I want to redirect the output to a JTextArea or JEditorPane in the IDE so the user can view the output. Also, after executing the object file from the compiled c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tkinter menu for chosing a date I am building a dropdown menu that would be used to choose a starting date. It has 3 cascades named year, month, day. The contents of the day cascade is generated so that the available days are true to the chosen year and month. It is possible/probable that the user is going to change...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to find Index of an array in php while loop I am fetching data from MySQL database... I want to check index of each row... e.g while($row=mysql_fetch_array($result) { i want index of $row in each row... (current Index). } Please Help me. Thanks A: If I understood you correctly you want something like this <?P...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: changing pointers in functions, c I'll say in advance that I'm asking about pointers to pointers, so my words may be a bit vague, but try to stay with me :) I am trying to understand how changing a pointer passed as an argument takes effect outside the scope of the function. So far this is what I understand: if a po...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Proxy with nodejs I develop an webapp, against an api. As the api is not running on my local system, I need to proxy the request so I dont run in cross domain issues. Is there an easy way to do this so my index.html will send from local and all other GET, POST, PUT, DELETE request go to xyz.net/apiEndPoint. Edit: th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Sql Server Varchar(max) and Text Data Types I am researching varchar(max) data type in sql server and I try to compare with text and varchar(8000) datatype. I read several articles about this. As specified in some articles, we cannot update text column using regular DML statements and instead we need to use updateT...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Countdown refresh button I have implemented a refresh button of style UIBarSystemItem which will be disabled for 10s whenever it is pressed. I want to further improve it by showing the time left before it is enabled. What is the quickest way to do it? Many thanks in advance. Called whenever the button is pressed. -...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hiding UITableViewCells when entering edit mode in UITableViewCell (similar to Contacts app) Does anyone know how to hide a number of cells from the grouped UITableView when entering in edit mode? I would like the rows to hide with animation effect as seen in the Contacts app when going out of editing mode. As you k...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Android Phonegap1.0 usePolling I have problem with Android phonegap1.0 my app was working well but suddenly it prompt usePolling messages I don't know what I did that cause this message to appear. Is there any update in that? A: Looking at the source code I suspect that the usePolling message appears if the respon...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar When i try to build my first project using maven, i get the following exceptions SEVERE: Critical error during deployment: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/par...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Confused about UIBezierPath + applyTransform + CGPath I scale UIBezierPath (built of one [0,0 - 1x1] rect) by factor 2 in both x and y directions. UIBezierPath ".bounds" is alright (i.e. scaled as expected), while ".CGPath" remains unchanged... Code: #import <UIKit/UIKit.h> int main(int argc, char *argv[]) { UI...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Migrating MySQL database to Firebird Server 2.5 I have a MySQL 5.5 database that I wish to migrate to Firebird Server 2.5. I have no issues with an existing MySQL database but after MySQL's acquisition, I am worried about the unavailability of Community Edition any time soon. I want to migrate to a true and robust R...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }