text
stringlengths
8
267k
meta
dict
Q: How can I stop my Windows console application triggers beeps when displaying binary data I wrote a windows console application that receives binary data from a third party provider. For Debug and logging purposes, I display the binary data on the output (the console). Unfortunately when the character 7 is displaye...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: error with fetching tweets after refresh First of all i want to apologize if this is the most basic question ever! I'm not that good with php but i'm learning. I can't find a solution or even understand why it's going wrong all the time. I do want to know why this is happening I'm trying to get the two latest tweets...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.Net MVC Routing: How to catch the root of a website? In my global.asax I have three routes: //MemberHome is supposed to handle urls like http://localhost/johndoe routes.MapRoute( "MemberHome", // Route name "{username}", new { controller = "PublicMember", action = "Index", username = "...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Windows Server Task Scheduler needs files to be in System32 folder? I have made a C# console application which needs 2 config files for booting. When I run it from cmd window it runs fine-finds the 2 config files(which are placed within the exe produced directory). However,when using the Windows server task schedule...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to convert image which mode is "1" between PIL and numpy? I'm new to image processing with Python and met a strange problem. For example I have a 2*2 black-white bitmap image which pixels are following: black white white black Use PIL and convert it to numpy: >>> import Image >>> import numpy >>> im = Image.op...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Adding WPF ListView Items Dynamically I'm looking for examples or help to create a WPF listview of files. <ListView Margin="10,10,0,13" Name="ListView1" HorizontalAlignment="Left" VerticalAlignment="Top" Width="194" Height="200"> I Load my files with this method : private void AddFiles_Click(object se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: whats the difference between jQuery UI and nyroModal for creating a modal box I'm totally new to javascript and trying to figure out which jQuery plugin best suits my needs. I've looked at a few and tried to implement them and basically found that UI plugin works the best but even though you can play about with the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TFS 2010 Queries for work item hierarchies with multiple levels I've build up a hierarchical structure of all my work items with excel - all my work items are now organized in multiple levels. User Story 1 |-- Task 1 | -- -- Sub Task 1 | -- -- -- Bug 1 | -- -- Sub Task 2 | -- -- -- Bug 2 | -- -- -- Sub Sub Task 3 | ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: JQuery - improving my function I have a client who uses a WYSIWYG editor to create new website pages. The problem is that sometime the WYSIWYG editor put in empty p tags <p>&nbsp;</p> This was causing havoc with the layout so i wrote a little function to remove these empty tags $('p') .filter(function() { return...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual Studio 2010 Database Project Deploy to Different Environments I've got a Database project which works fine for my local MSSQL 2008 database. It has a script under scripts/post-deployment that inserts standing data configuration into a settings table, and other tables. I've got 1 file for each table, e.g. a Se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: External JS in simplemodal Iam successfully loading an external html-code in a modal window. But there is a JS in this external code, which i need to execute. I do not know in advance, which JS comes with external code. So I can not take advantage of onShow method. How can I execute the code that comes with an exter...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: grep using a character vector with multiple patterns I am trying to use grep to test whether a vector of strings are present in an another vector or not, and to output the values that are present (the matching patterns). I have a data frame like this: FirstName Letter Alex A1 Alex A6 Alex A7 Bob ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "173" }
Q: Saving output using FMOD without playback I need to implement a playback of separate audio files in N channels, files may play sequentially or in parallel. I need to implement it on Android. Timeline: |file a...|file d....|file b...|......|file k|.... |.....|file g|file c..|file p.|.... I'm thinking two options, one...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create assembly with permission_set safe I'm trying to deploy a .NET assembly to SQL Server 2008 R2 database, but I'm just hitting this error: Deploy error SQL01268: .Net SqlClient Data Provider: Msg 6509, Level 16, State 31, Line 1 An error occurred while gathering metadata from assembly 'Assembly' with HRESULT 0x...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Change HTML Textbox layout Hi i would like to know how to change the text box in HTML to just a line rather than a box because i am trying to make a webpage look like a PDF form and for a neat outlook i would like to change the text box design to just a long line so the user can type his name or whatever the field ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Default role mapping when creating a MSSQL Server database Is it possible to set up a default set of role mappings for Microsoft SQL Server (2008 R2 for instance) that apply to subsequent databases? Example: Whenever I create a new database on the server, I want it to map db_owner to a login group called Group_A and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# MSI install with Windows server 2003 - no distribution data available I got an msi (default visual studio installer) to distribute my application that works perfectly on all systems, except on Windows server 2003. A user tries to install the msi from the active directory, but a message is prompted stating that th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android accessing asset file I want to access a text file located under assets from a class that would do some processing on that file and is invoked in my Activity. The code I am using is: AssetManager assetManager = getAssets(); InputStream instream = assetManager.open("file.txt"); this works fine if used in an A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Solaris - My process listening on all the interfaces but other processes listening on localhost:6011 My server program is designed to listen on all the interfaces and it is listening working also. One strange behavior is happening. It means port conflict with sshd process. Because I need to make my application and s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In Python how to add headers for a file after gzip before writing it I am trying to open a javascript file, read it, gzip it and then write it back to another file.. able to do all that.. but how can set the "Content-Encoding : gzip" before writing the compressed content... here is the code: import os, sys, mimetype...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript/JQuery bouncing text off left and right sides of a div I want text to bounce of the left and right sides of a div tag (#header). It works fine when it bounces of the right, then goes back and hits the left. The problem is that after it hits the left and starts to go right again it never hits the right sid...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I pass parameter Just for examples machineId = 150018; paper = raphel('canvas_container', 15, 20); rect = paper.rect().attr({.....}); rect.node.ondblclick = function() { window.open("graph.php?mach_id=" + id); } Question: How can I pass machineId value to id; I need the result is to open new window w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: how to create a filter system? i have a database like this prod_id prod_name catogory_1 catogory_2 catogary_3 now i want place my filter like this <slect id="filter for cat 1"> <option vlaue="all">all</option> <option vlaue="caps">Caps</option> <option vlaue="shoose">shoose</option> <option vlaue="cloths">cloths</...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Copy data from remote MySQL server I have two MySQL servers on different location. I would like to copy some data from one table on one server to another server. And that process is automated and executed scheduled. Is it possible to do it with php? A: You will need to create a cron job. The job can execute a php s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: XmlSerializer constructor with XmlTypeMapping and XmlRootAttribute arguments I'd like to prefetch in C#, the XmlTypeMapping of a known set of class types to speed up XML deserialization of them while instantiating a new XmlSerializer as XmlReflectionImporter.ImportTypeMapping (happening during XmlSerializer contruct...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Database design: how to effectively manage about 4000 databases with mysql It sounds crazy, but i started a data intensive project[collecting online store inventories] which later grew to be very big. I currently have about 2000 users and each user has about 100 tables. So in essence, i created the system so that ea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Retrieving the url anchor in a werkzeug request I have a DAV protocol that stores out-of-band data in the url anchor, e.g. the ghi in DELETE /abc.def#ghi. The server is a Flask application. I can see the request come in on the wire via tcpdump, but when I look at the werkzeug Request object (such as url() or base_ur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Adding in javaScript I am trying to create a reverse heading app and have gotten the subtraction part of it to work but when I punch in 30 for example instead of pumping out 210 degrees it pumps out 30180. My code is below and I would love some suggestions on how to fix this. if(convertFromValue > 360){ paraGraph.i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Access the property of an object within an object? I have a custom "brain" class that has a custom "recipe" object as one of it's properties. The recipe class has four "ingredient" objects as properties. If I try and do: brain.myRecipe.ingredient1 = myIngredient; self.displayLabel.text = brain.myRecipe.ingredient1.i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iPad takes three touch for JavaScript click event I have problem with iPad. I use 3 function in JavaScript for anchor tag, onmouseover, onmouseout, onclick. But when I test it on the iPad then for first touch it trigger onmouseover, and then it takes two another touch for execute onclick event. That means it take t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Android web view selection I would like to show on the device's screen only this , without all the other unnecessary stuff , from this web page. This is my code so far... package com.nextlogic.hellowebview; import android.app.Activity; import android.os.Bundle; import android.webkit.WebView; public class HelloWebV...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a Rails way or a gem to get related entries from HABTM to the same object? Well, I have a table with images, each image is tagged with a HABTM relation through a join table. What I want to do is show related images in the page the image is being shown, by matching images with the same tags. Can this be done...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Heroku REST api Call in java can we connect to heroku using webservices or anything else . i want to set up an integration in java which should login in ito heroku and run my application.? A: There is an out-dated doc on the Heroku REST APIs that will give you the basic idea. Unfortunately the most up-to-date refe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Name spaces in c++ and c Not that I would ever write the code like the following in my professional work, the following code is legal and compiles without warnings in c++ and c: #include <stdlib.h> typedef struct foo { int foo; } foo; foo * alloc_foo () { return (struct foo*) malloc(sizeof(foo)); } struct f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Getting null values when trying to parse an XML using XPATH in Java When running this code in Eclipse I get only null values: String recordsAsXML = "<vGVC:Row xmlns:vGVC=\"urn:com.versai:Bacon:GetViewContentsResponse.v1.0\"><vGVC:Column><vGVC:Value>aaa0</vGVC:Value><vGVC:ObjectName>2ff31656-b10c-11e0-99f6-e01321...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Preventing styles of html elements created by firefox plugin getting overridden by the sites stylesheet I am injecting some html + css into every page from my firefox plugin. But this styles is sometimes getting overridden by the style sheet. I want to stop this behavior. I know this can be solved by some css tricks...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Powershell custom cmdlet formatting output I am writing my first custom CMDLet in powershell 2.0. I have encoutered a problem with custom formatting temaplate xml being not used in my cmdlet. Here is my formatting file: <Configuration> <ViewDefinitions> <View> <Name>abc</Name> <ViewSelectedBy> <TypeN...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I exclude/ disallow field in Validator in Spring I have 2 forms * *Add Book (addBook.jsp) and It's controller (AddBookController.java) *Edit Book(editBook.jsp) and It's controller (EditBookController.java) Book.java is bean class for both views. I have same UI for editBook.jsp and addBook.jsp. I have c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: FOP warning:line 1 of a paragraph overflows the available area by more than 50 points Just to make sure I would like to share my understanding of FOP vre 1.0 with you, FOP uses a automated line breaking algorithm i.e when data overflows the width of a table cell,FOP looks for white space in the data and if it finds ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Play .wav files on Android phone I need to complete an app on an Android phone that plays back four sound files when four separate buttons are pressed. The trouble I have is that the sound files are .wav files. They are also stereo files. I need to play them on the Android phone uncompressed and in stereo. My under...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Deprecated API Android and Iphone I am making application which is using a deprecated API. I have to submit it on Apple and Android App Store next month. In this case, is there any chances to reject the application from app Store of Iphone And Android. A: Don't use a deprecated API. Almost nobody deprecates someth...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: NSOperation to all run consequently I have program that is crashing somewhere not really visible to programmer. It may have something to do with memory management but it definitively has something to do with multiple threads and more than 200 notification observers... I would like to know if that kind of starting de...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Transferring serialized objects with jboss much faster than transferring byte arrays? Following scenario: I have a java client with 40 threads. Each thread has its own bean instance and each thread calls its beans method 100 times. I'm confused about the results of this test because sending objects turned out to be...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I stop Coldfusion from converting query column names to upper case? When I select data from a MySQL table using the cfquery tag in ColdFusion 8, the column names are all converted to uppercase even though I've stored them in camelCase in the database table. Is there a way to make ColdFusion respect the case ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: "Dead Store" Warning in Xcode I am getting a dead store warning when I analyze my project but the project does not crash. Here is what I am doing NSString *graphUrl = nil; if ([graphArray count] == 1) { objTrial = [graphArray objectAtIndex:0]; graphUrl = @"http://chart.apis.google.com/chart?cht=s:nda&chf=...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Setting headers when using jQuery Form Plugin I'm using JQuery Form Plugin and I'm not sure how to set headers. I want to be able accomplish something like this: $.ajax({ url: "/url", data: post, type: "POST", beforeSend: function(jqXHR) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can XDebug track separately the time spent for profiler calls? I am using XDebug as a profiler for a PHP application. I have run into a situation where XDebug changes severely the results in such a degree that they are useless. Here a simplified example to demonstrate the problem: function foo(){ $x = 1; } function ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Rails 3.1, jQuery: Append data to a form before sending it out I read this issue in jquery-rails because I want to add some data to the form before sending it out. The instructions seemed pretty simple: Hook onto before:send and do what you will to the form. I did it this way: form.live "ajax:before", () -> form.d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Data not refreshing when using actionscript to assign dataprovider My problem is when I assign the dataprovider for a spark list using actionscript it does not automatically update the list. example: I have a list: < s:List id="fiterList" allowMultipleSelection="true" width="100%" height="100%"/> and I use actionscr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: DirectoryServices filter and methods I'm trying to get a list of all users in an OU/DC from AD. This is what I came up with: $erroractionpreference = "SilentlyContinue" function Get-GroupMembers { $filter = "(&(objectCategory=person)(objectClass=user))" $objSearcher = New-Object System.DirectoryServices.Dire...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: $(window).scrollTop tied to $(window).scroll() event acting oddly I'm trying to trigger a function when the window is scrolled more than a certain number of pixels. Here's my code: $(window).scroll(function(){ if( $(this).scrollTop() >= 100 ) { someFunction(); } else { someOtherFunction(); } }); It ki...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: UITableViewCell unselectable while its accessoryView is selectable I want to have a UITableViewCell that is not selectable while its accessory view (a UISwitch in my case) is editable. The issue is that I have two other cells of which one needs to remain active; this is very similar to the following image of the Tim...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Putting files in emulator external storage, prior to app starting Using the emulator, with external storage attached, I would like to emulate what happens when the application starts up and certain files are already present in the relevant directory on ext storage. Is the external storage actually located on my mach...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Select with grouping in range From Table A B _______________ 1 A 3 B 6 C 7 C 8 X 9 Y 15 Z 16 R 17 t 23 T 43 e How to bring this result: Range A Count B _________________ 1-10 6 11-20 3 21-30 1 31-40 1 This could be done using loop: Select Count (* ) from TableA where b between @a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I order fields using an ORACLE select when my strings can contain wildcard characters I have the following ORACLE table and data: create table test_table (field1 varchar2(20)); insert into test_table values ('aaa.bbb.ccc.dd'); insert into test_table values ('aaa.bbb.c*c.dd'); insert into test_table values ('...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you achieve case-insenstive search/indexing on thinking-sphinx or flying-sphinx? Have had a look through the documentation and wasn't able to clarify this easily.
{ "language": "en", "url": "https://stackoverflow.com/questions/7597729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: binding data to a usercontrol i've a userControl (watch the screenshot): I would like to know how can i bind data to this control. 1) i want to drag & drop this usercontrol to a form 2) i wish to decide which table from my database should be used 3) the datagrid (the grey control at bottom) should be automatically ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Insert distinct values SQL Server I'm trying to insert unique values into a table from a View. I have a table as below: the "fromView" has no unique constraint in passport id | passport | name | surname | address 1 44543 John Smith xxxxx 2 10001 Mike Thomps avasfa 3 10001 Mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python - Reading BLOB type from SQLite3 DB This is a follow on from: Python - Converting Hex to INT/CHAR I now have a working solution for converting the stored hex value of an IP from an sqlite3 db into a readable and usable format. However up until now I have been testing by copying and pasting the values directly...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the purpose of Looper and how to use it? I am new to Android. I want to know what the Looper class does and also how to use it. I have read the Android Looper class documentation but I am unable to completely understand it. I have seen it in a lot of places but unable to understand its purpose. Can anyone he...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "527" }
Q: Draggable element covers another one when moving back Currently I'm having a small problem with the demo at http://jsfiddle.net/nivea75ml/yCnh5/. Whenever I drag a pink box from the list to the grey area and later move it back, it covers another one in the same list. How can this behaviour be avoided? A: Droppable...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Linking a single file from another git repository How do you link a single file from another git repository to your own repository? I don't want the full repository, just a single file. Using git submodule seems like the right route to go, but it wants to grab the whole thing. A: Considering that the unit of work...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "78" }
Q: Mismatched parentheses: a quick way to find them? I just rearranged a very large JavaScript file. I now get "Unexpected end of input." Somewhere in those hundred of functions, one has lost (or gained) a bracket. What's the quickest way to find it? A: A good trick when missing a brace in eclipse is to go to the fin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Changing Properties of a Slowly Changing Dimension Transformation in SSIS I have a problem with changing the properties of the SCD transformation in SSIS 2005. I can define all the properies and mappings the first time i edit the transformation and its working. But when i open the property editor of the component ag...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Reflecting Across Serialized Object To Set PropertyChanged Event I have a object that is created through deserialization of some XML. I used Visual Studio's tool to generate the XSD from the vendor mockup XML. Then using the XSD tool I got classes from them. I set the XSD tool so that it would make the generated c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to get last sent HTTP request android I am trying to send a GET request to the web server from the android device, the server is having digest authentication enabled, I am able to authenticate using following sort of code, HttpHost host = new HttpHost(urlObj.getHost(), -1, null); CredentialsProvider cp = new Bas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extending parent routing when extending bundles In Symfony2 (2.0.3) I have a BetaBundle that is set as the parent of a AlphaBundle. Is it possible to override some routes while still keeping the parent originals routing definition ? I have tried importing the parent routing.yml inside the child routing.yml file but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cakephp model alias works, but view doesn't show I read your answer about cakephp model alias and I did on my model what you wrote, I debuged my view and it list what I want, but it doesn't show the list on the respective field, do you have any idea what is wrong? My model: 'ResponsavelManutencao' => array( '...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why google analytics need to be load dynamically? Why i need to use: <script type="text/javascript" charset="utf-8"> //<![CDATA[ var _gaq = _gaq || []; _gaq.push( ['_setAccount', 'xxxxxxxxxx'] ); _gaq.push( ['_trackPageview'] ); _gaq.push( ['_trackPageLoadTime'] ); (f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Console.WriteLine different ways of writing Confusion in a really a basic question: I have seen in many books, they use use Console.WriteLine as: int i = 12; Console.WriteLine("MyVariable value is {0}", i); Instead of int i = 12; Console.WriteLine("MyVariable value is" + i); Is there any difference between them? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Does reactive extensions support rolling buffers? I'm using reactive extensions to collate data into buffers of 100ms: this.subscription = this.dataService .Where(x => !string.Equals("FOO", x.Key.Source)) .Buffer(TimeSpan.FromMilliseconds(100)) .ObserveOn(this.dispatcherService) .Where(x => x.Count !...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Kentico CMSListMenu not displaying enough levels of the tree? I have a kentico CMSListMenu which contains 4 levels at it deepest, i want to display the menu as a nested list down the left hand side of my content, this works fine for 3 levels but i cant get the 4th level to display. I have this working on another sit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SQL Server - Getting job history details We use the below mentioned Stored Procedure to get the history of our JOBS SELECT --sysjobhistory.server, sysjobs.name AS job_name, CASE sysjobhistory.run_status WHEN 0 THEN 'Failed' WHEN 1 THEN...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Adding environment variables using java program and able to see when I open environment tab from My Computer I want to write java program which adds environment variables and when I open environment tab from MyComputer,then I should be able to see that... This is what I have tried,but it gives java.lang.unsupportede...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Load ajax data NOT in a div or other element first of all, sorry for my bad english, I speak spanish. Well, I need some help in this case: I made a microsoft excel POI report using java, this report is in a servlet that I call when do a clic in a href, por example: <a href="ServeletReport">Report</a> Until here, al...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Create Polygon on Google Map By dragging mouse I am first time using Google Map.. I have to add the Google Map in my web application with following functionality. * *User can create polygon on the Map by using Mouse. *Then the values of polygon's Lat/Lon will be saved in the Database. *Like wise he can create m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Report Viewer using multiple reports Within vb.net we've got a report that works great it has it's header/footer details then then a table in the middle which repeats data and all of that is fine. But what the client wants now is for another button named 'Print Individual' and this will print the same report but ins...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Removing an outer array in php I have some functions that deal with data provided in array format. These functions all do the same job, so I would like to merge them into a single function. The problem is, each of them receives arrays with different depths: one-, two- and three-dimensional arrays are used and, in so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the newest value from a column with conditions I have a table in Excel which has the columns: * *Date *Person Name *Amount (£) The table is used to record when people pay me money. Typically, I can get more than one person paying me on the same day. Also, the same person will pay me on many days ov...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Form_for generates resource path ending with '.1' I have a resource called :school and when I call form_for(@school) it generates the form action: /school.1 I'm new to all this so any clues as to why it's doing that would be much appreciated. Sleep deprived and heading for a deadline in 3 hours, arrrggg! Thanks :) r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: NSScrollView Background Texture Is there any way that one can use the NSScrollView background texture that is used in Safari from within other applications? I know how to get the NSScrollView to display a pattern, I just need to know if there is a named image for the texture and what the name is? Or, if there isn'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to show full stack trace on eclipse? I'm using Eclipse to debug a Java application. Somewhere in the code I get an exception and the stack trace: Caused by: java.io.EOFException: The connection has been reset while reading the header at com.gemstone.gemfire.internal.cache.tier.sockets.Message.fetchHeader(Mes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: Flex 4.5 arrange gui components I am using IFrame and adding it dynamically, and it hides a new Alert.show and a previously made TitleWindow. How do I arrange it to go back or to make that Alert or window on top of all ? A: I'm guessing you're using the mx:HTML component to display some HTML. I got the same issue ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Simulate push view animation inside UIView I have a single UIView with some labels that display attributes from objects inside an array. I'm using gesture recognizers to change the current element in the array and hence the text in the labels. My question is how do I mimic a push animation without actually pushing a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Drupal trimmer causes nested div's I work with views. A view manages the display of some text. I checked under REWRITE RESULTS the Trim this field to a maximul length-box and alsoo the Trim only a word-box and Add an eclips...-box. Where the pages used to look like this: <div class="test"></div> <div class="test...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: BizTalk UDDI Services Installation Is it possible to install UDDI Services for BizTalk ESB Toolkit on Windows 7 32-bit? A: Only the dev tools and SDK for UDDI can be installed on Windows 7.
{ "language": "en", "url": "https://stackoverflow.com/questions/7597808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Silverlight | Correct way to do exception handling Hello All, I would like to know how to handle the exception in the Silverlight ? Since it is the code which runs at Client side , So if some exception happens in the client nor related to web service . So should I show user friendly message and again make a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Facebook login in android WebView I'm developing an android app with phonegap and html5. Can anyone tell me how to implement Facebook login button. Also I need to know, how to implement share on wall functionality. I tried using facebook phonegap plugin, but no success. A: You can check the "Hackbook" example provi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Image showing as blank in Rails 3.1 on Production (Heroku) I recently updated my Rails to 3.1. Here's a part where I added: <%= asset_path('logo_symbol.png') %> This renders /assets/logo_symbol.png which works perfectly fine in development environment. However, when i push the code to production on heroku, it shows...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Handling NoneType when using addition Im trying to add some values up but some of the values have a NoneType value. Now I looked at this question but I need some help. Im hoping someone can explain to me how I can get this to work with django. Here is my for loop in my views.py: next_il = Investment.objects.all()....
{ "language": "en", "url": "https://stackoverflow.com/questions/7597817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In App Billing managed and unmanaged state for product I am very new to android.. I am working on In App billing.. My question is what is the main purpose of Managed and Unmanaged state while adding the In App product.. Can any one tell me what is the use of managed state and what is the use of unmanaged state.. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Programmatically accessing a view that is defined in a fragment's XML in Android I'm in the process of making an Android 3 app that has a tab-based navigation. Being quite new to Android I searched for tab tutorials and found a few different approaches, out of which an implementation based on Fragments + ActionBar s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: In DDD where to save generated files by user? I have the following architecture in my project: UI -> Application -> Domain -> Infrastructure (4 tier) I need to allow user to upload a image, where the better place to keep the files generated by the user? In a folder in UI project? Update: Here's my folder structure: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Background of the Image created from Bitmap I am trying to create a signature component where the user can write his signature on the view and the resulting bitmap being saved as an image. I am able to achieve this successfully. But my issue is that the background color is of the image being saved is always transpar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP variables inside a variable I have an error somewhere in this line of code, if I take "by" off the line it works fine. $msg = 'An Order has just been submitted on CID, Number' . $_POST['orderNumber']'by' .$name; Can anyone spot my mistake? A: I would advise you to utilize one of PHPs core language features. P...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tool for dropdown I am creating tool for dropdownlist using For each item as Listitem in Dropdown1.items item.attributes.add("title",item.text) Next How can convert this to linq ? Thanks, A: DropDownList1.Items.OfType<ListItem>().ToList().ForEach(item => item.Attributes.Add("title", item.Text));
{ "language": "en", "url": "https://stackoverflow.com/questions/7597825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I enable screen compatibility mode in android >11 I have an app that is quite old and still has to support Android 1.5 (API version 3) devices. For some reason the screen compatibility mode has stopped running and I can't figure out why. It did work fine on honeycomb devices. The result I am getting is that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MKAnnotationView do not anything - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation { NSLog(@"I'm Working"); static NSString *identifier = @"MyLocation"; if ([annotation isKindOfClass:[userPins class]]) { userPins *location = (userPins *) annotatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make one Rails 3 route work with 2 controllers depending on database data? I am developing a Rails 3 app on Heroku, and here is the situation: There are two models: User and App. Both have "slugs" and can be accessed via the same url: /slug Example: /myuser => 'users#show' /myapp => 'apps#show' What is the be...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: TrueZip creates virtual directory instead of archive I'm having an issue with the following code: TFile src = new TFile(this.getMellomStasjon()); TFile dst = new TFile(this.getZipFolder()+""+zipFile+".zip"); if(dst.isDirectory()) dst = new TFile(dst, src.getName()); TFile.cp_rp(src, dst, nul...
{ "language": "en", "url": "https://stackoverflow.com/questions/7597836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }