query_id stringlengths 4 64 | query_authorID stringlengths 6 40 | query_text stringlengths 66 72.1k | candidate_id stringlengths 5 64 | candidate_authorID stringlengths 6 40 | candidate_text stringlengths 9 101k |
|---|---|---|---|---|---|
2b03dea70b5868dfc764ce6810043660244704e875b61261ab61f3fa78a11a5c | ['99aebf35dee24b14a6e019991756b838'] | ok fixed it. There were actually 3 entries with EXEC= in the latest .desktop file that needed to be modified. They were for main, new window, and incognito launch. What i am gooing to do is simply save a backup copy of the modified .desktop file and replace it with every upgrade of Chrome. I think that should work. | c99867b1c2609875d0a7699f504506bd1de0609e046f069a26d102400dd11f36 | ['99aebf35dee24b14a6e019991756b838'] | Currently there is an important release from Adobe telling users to update their Flash after learning of certain vulnerabilities where users computer are infected with ransomware. One of the many news articles about the issue can be seen HERE.
My question is, how does this affect Ubuntu users using Google Chrome, Mozil... |
c8413192253b195be68b80fc2df7515c381eed8ab06cdbb1fb05ecd8eb2e26ca | ['99aec6b4a19e4364b0262f65b25d4099'] | Just 2 additional items having gone thought the pain of this for a day.
1 do it at the payload level so you can process your email_message to get email addresses etc from your mail.
2 You need to decode the charset set also, I had trouble with people copying and pasting html from webpages and content from word docs etc... | f19762f6fe85317e5ed3a7494f377de75c1b974d3451667523ea57aaba9ca7e2 | ['99aec6b4a19e4364b0262f65b25d4099'] | it's not going to work
the installer needs to call bootctl install with the right parameters when it installs the OS, after installation you can't change it anymore
pop os is badly configured, so at installation time it doesn't feed bootctl with the partition paths and systemdboot can't detect the windows partition
you... |
81d32c186830ee140f4ef5f5d4d21767d661d0786dbdd17089e62f587592fabe | ['99c2551ee8d04d8ba7e2d4ae3c6a055e'] | today jump into such problem when launching test class using roboelectric and junit:
Information:Gradle: Executing tasks: [:app:assembleDebug, :app:assembleDebugUnitTest]
Error:Gradle: failed to create directory 'E:\AndroidKotlin\FooApp\app\build\generated\source\r\debug\com\example\foo\fooapp'
Error:Gradle: java.util.... | f79139e35a76d4fdb6f544b2fdc17d2aa8a1c8a50a5e142fedbe2fca4c2db996 | ['99c2551ee8d04d8ba7e2d4ae3c6a055e'] | Is there any possibility to check for match ( which is optional by the way) but then not include it in resulting groups ?
Example:
text:94km SSE of Taron, Papua New Guinea
regex: ^[.*\sof]?(.*)$
then m.group() returns whole match, but i want just "Papua New Guinea"
I tried already sth like that:
^(?:*\sof)?(.*... |
ed8bc1e0da49c6a34315b16eb2098d1f2135377e92a0ecf6fd4d1d2797f6c828 | ['99cd9849c82049c8ac3616e25c5c3354'] | I attended one in my field this past week. I also attended one sponsored by the NSF last year.
Primarily the focus seems to me about professionalization: Preparing your CV, understanding how to prepare journal articles and apply for grants.
They also emphasize networking - both among participants and between faculty ... | 1a3d70e623d7b417f49bead24c7b6804c4932444a279a103d88e44bc431f20de | ['99cd9849c82049c8ac3616e25c5c3354'] | The number one factor gating the progress of technology is whether progress is gated on information.
Moore's Law is the doubling of transistors in the same area every 24 months. An even faster trend is the Law of Accelerating Returns - the amount of computation than can be purchased for 1,000 USD is doubling every 3 mo... |
9e840d1cbc9cf5ebe326b93aef6e20706b51a7c321c1e79e0e0474fe276a614f | ['99d847fc352c4cabb005a88bbd2a6508'] | I'm having set of codes in tomcat (port:8080) and another set of codes in apache (port:80). Now the default port I have set is apache (document root: /var/www/html) and for tomcat (/usr/.../webapps/ROOT)
Now tomcat codebase is running in https:// www.example.com
and apache codebase is running in http://ww.example.com
... | 2bc442ba0809a796a4dc258a92ef2686b52097ec7af9a870b59d46a69655dfb0 | ['99d847fc352c4cabb005a88bbd2a6508'] | I'm trying to install GWT plugin i eclipse.
It showing error like,
Cannot complete the install because one or more required items could not be found.
Software being installed: Google Plugin for Eclipse 4.2 3.2.4.v201306061638-rel-r42
But there is no plugin installed. And also it is not at all working
|
af622cab5d7c16cf414fcbf630c26036985701a2dd5cfd9941bdd0925a7b9ab8 | ['99e1fa50e8d3418480e49d32ac24348d'] | I have a HTML file that contains data in pre tags. I want to parse the data in pre tags line by line and perform sorting based on timestamp in each line.How can i do that using python.
<pre>**Date Time DataFeed**
10/01/1994 10:00:00 Go_to_sleep
.......
.......</pre>
| c2b4f5c3adfb8ba522cb064f1764ec6abcc95295360e890fd3afcf8b0187f0a9 | ['99e1fa50e8d3418480e49d32ac24348d'] | I am using python 3.4
Trying to build an exe for win_xp using cx_freeze.
Developed the script and build on win 7. Tested there, working fine.
But when I try to run the exe in win xp, it throws following during execution.
Tried Googling but cound not find any solution. How to find a solution for it.
Any specific reason... |
e3bc762b0c1219cc71a419a39704edbcab0005bc4afeffcb39c33988a9b8b445 | ['99e4067b73604860a8ba8e349738f444'] | It's not clear what do you mean by 'multiple requests' in your question.
Based on your description I assume that you expect that your FastCgi app is still alive after processing the first request and can handle another request.
But that's the nature of FastCgi: a single program/service is running in an 'infinite loop' ... | a6563a0b06696320b9da591a41bb93cd2e033ef7c3e2c67843610199557f5c50 | ['99e4067b73604860a8ba8e349738f444'] | Kendo UI framework has kendoColumnMenu widget.
Assuming 'grid' is a grid element, we have:
HTML (fa-... are font-awesome styles):
<a class="btn btn-icon grid-column-menu fa fa-columns" href="#" title="Manage columns."></a>
JS:
var $gridColumnMenuButton = $(".grid-column-menu").kendoColumnMenu({
filterable: false,... |
2014560526ad0050943afc6bfc1778d8e2b074e2009bdb9e164a98d117bed037 | ['99e74645a9e543e3b35859552e7dc1bb'] | In case someone comes here in the future with some similar question (as it turns out we do not know all the terms all the time): you were looking for Data scraping, more precisely> Screen automation. So I found the solution for what I was looking for doing research on RPA. And found SikuliX and Robot Framework here
Hap... | 4050c4500c61cf9d09c341a9b135aa7af26dbff7234c1294b45b2d663c300f9e | ['99e74645a9e543e3b35859552e7dc1bb'] | Three ways based on the same simple instruction:
a). Results as easy as locate (1):
android:focusableInTouchMode="true"
among the configuration of any precedent element in the layout, example:
if your whole layout is composed of:
<ImageView>
<EditTextView>
<EditTextView>
<EditTextView>
then you can write the (1) a... |
ca3213cb070079e1e0baadb99d9a12ce48e0f382c4360071874f93304e7d4b97 | ['99fb37ec4dc345abb052b8791191e5cb'] | Try this out:
private:
static const int height = 100;
static const int lid_height = 05 + height;
This will work I think the problem is with float (double) numbers. My compiler gave the following message error when I use double instead of int:
error: ‘box<IP_ADDRESS>height’ cannot appear in a constant-express... | 285f82854d4172f3b64ac06a7a6ffc3aa22569f037f0d9a899103f13146077da | ['99fb37ec4dc345abb052b8791191e5cb'] | I got ya, first of all there is overriding in JAVA. However, What you are doing is not methods overriding if you do this it will work as you want:
public class Foo{
int a = 3;
public void addFive() { a+=5; System.out.println("f");}
public int getA() {return a;}
}
class Bar extends Foo{
int a = 8;
public void ... |
722a51656ddbab4519d7c78932277a18f30cf81e5a9b4d6c4d4cb061eed8ce96 | ['99fc669a25af464db879730b641c7259'] | I have the following in my script:
Root: "HKCU"; Subkey: "Software\Microsoft\Office\Excel\Addins\Company.Tool"; ValueType: string; ValueName: "Manifest"; ValueData: "file:///{code:GetRegistryData}/tool.vsto|vstolocal"; Flags: createvalueifdoesntexist uninsdeletekey; Permissions: admins-full
Root: "HKCU"; Subkey: "Softw... | fb0f63df4ced417c5fdf7cfee3ccde47e75eb17756159e472fa3dfbaf59d1174 | ['99fc669a25af464db879730b641c7259'] | I have a simple function that traverses up the DOM to get to a span element:
function getAttachmentControlBinding(theNode) {
//Find the <SPAN> tag that has the binding to the attachment control
//The attachment control is needed to be able to determine from which view
do {
//Navigate up to the parent node
... |
23205ca9a468cb8ed83a0a852aa49e295eac9880e49422d633774e9cba7b36da | ['99ff098a2cd94a9ab30ebe834c97ffea'] | In the past, I installed Ubuntu 12.04 with /dev/sda4 mounted as /home. I encrypted my home directory.
Today, I erased all the partitions except /dev/sda4 and I installed Xubuntu 14.04 on a new partition (/dev/sda3). I did not mount /dev/sda4.
Then I used usermod to change my home directory from /home/jordan to /home-ol... | 3f00caeb8e6db84519be59dec3af20f4a1838ef72b50252a56ec4557d79733d5 | ['99ff098a2cd94a9ab30ebe834c97ffea'] | I was wondering if anyone has experience traveling with transatlantic (Western Europe to Mexico) with a pet bird? From what little research I did I found out that some airlines do seem to allow this, but I was more wondering about comfort for the animal and risks associated with such travel. Specifically the birds are ... |
99ae4cc816b73969063fc9552ce707036233d8b041d3b979a76cdceb18580c4c | ['9a0928cfcc7342e68f39f95742beb4ed'] | I have a ASP.NET Core Web app, the issue I'm experiencing when I deployed on the test server is accessing two folders outside of Inetpub:
C:\Directory\ineedthisone and C:\Directory\ineedthisonetoo. I get Access to path C:\Directory\ineedthisone is denied. I've tried giving permissions to the folder but i still get the... | 19b129f03613d491a68275a81c1be263003690ef669736762333dbac6d20de5c | ['9a0928cfcc7342e68f39f95742beb4ed'] | I have an app that needs access to a virtual directory in IIS. I created the virtual directory in IIS and given it the correct permissions, I'm attempting to connect to it in my startup.cs like so..
app.UseFileServer(new FileServerOptions
{
FileProvider = new PhysicalFileProvider(Path.Combi... |
61ab5c44448cde196e4de37f76110d1d6ced31a1ae7a2d07699e50180343e198 | ['9a14587bf60d42be9420a65ca270ee28'] | I need help with my steam accounts. I got two steam accounts, and installed games on both. I want to move my games from one account to the other one. The games were bought in a regular store, so I have the CD-codes.
How can I move the games to the other account?
| b5a16f47bc9e44b05839ba09d4f79a6ca1ba3bdd4e940b1a157a09b24310c814 | ['9a14587bf60d42be9420a65ca270ee28'] | 3. I worked for another client to complete component A for 2 months. That component/knowledge should be used in this project as well. I could "configure" it in 2 days for the new case, but that would be a punishment for my efficiency. Therefore I'm thinking of charging an extra for this component specifically. I want t... |
191c8b2a1f365d5c7a4751418c2f89dfb614f46992890eb7d06aba95a5399f0f | ['9a2739ec534d49749b718ca5c4ff714a'] | I will work on it sometime this week an test it further my power amp is seperate from the preamp supply. also my heater supply doesnt have a centre tap but have a virtual centre tap with 2 55 ohm resistors on the power amp but the preamp is 10 ohms so i dont think the heaters is the problem but could be wrong. | ca0d3f7d91264d9cb88c01ea6310d92397a8eeafcacc89548b320ef912310585 | ['9a2739ec534d49749b718ca5c4ff714a'] | Is it possible to use Apache+mod_php and nginx+php-fpm in same server?
I know these two servers can NOT share same port, but is it possible to run two different PHP modules in one server?
I'm planning to use some website with Apache and some with nginx (for performance testing).
Both is installed via YUM.
|
aef671ca39098a98b6b0d2add1146c38ff2071ce232a3c0fb5fce4ff9d593dfe | ['9a2cdfdd084140cebd90294fb5d0e7ed'] | The answers didn't work for me so I played around with it until I found a solution.
Regex:
from: '(^((?!css|html|js|img|fonts|\/$).)*$)',
to: "$1.html"
Package versions:
"grunt-contrib-watch": "~0.5.3",
"grunt-contrib-connect": "~0.5.0",
"grunt-connect-rewrite": "~0.2.0"
Complete working Gruntfile:
var rewriteRulesSn... | b707df60e64e4d32a182dc90df9ba869cd2c01fd18fee2038cee35c88f55eda2 | ['9a2cdfdd084140cebd90294fb5d0e7ed'] | I'm using Phoenix channels to stream data to a page with a tabbed interface. I'd like to only receive messages from a channel when the streaming tab is visible and to disconnect from the channel when the user has switched to another tab.
Currently I use something similar to the following code:
window.websockets_url = "... |
b4bc102c28dfc7a655dbc997f2fd57c9a56baa51b90e87e7624fa561f6528646 | ['9a3d1291c9334cfe864402ded40c4ca0'] | With new utilities like the Web Deployment Tool (that will become the standard builtin way to publish a web app starting in Visual Studio 2010), Microsoft seems to be heading down the path toward letting developers or at least installation engineers choose things like IIS settings (certs, app pool settings, etc). They... | 775cdcbbd72fee5df618965ed0fe0d2666d60a2674d690506033ecfdc729efdb | ['9a3d1291c9334cfe864402ded40c4ca0'] | The service won't provide that for you out of the box.
You could add that at an application level, though. For example, you could modify the schema to include an additional field describing who should be able to access that document. Then when you store documents in the Solr index, add that field...
{
"id" : "1234... |
e47fb5081c5f21ff2c6847a6041b1a81cde8c48082a7834d49a73102abc60bb4 | ['9a43da7810ab4f9c9e635c31e6b9f36a'] | $\Bbb Z_{540} \cong \Bbb Z_{2^2} \times \Bbb Z_{3^3} \times \Bbb Z_{5} $
$\varphi : \Bbb Z_{540} \to \Bbb Z_{2^2} \times \Bbb Z_{3^3} \times \Bbb Z_{5}$
$\varphi ([k]_{540}) = ([k]_{2^2},[k]_{3^3},[k]_{5})$ is iso .
I think this is true from the Chinese remainder theorem but I'm not certain
| 112f325e57af99797a9f930cb5e95079e2be1740843c012ade12a1d32e261286 | ['9a43da7810ab4f9c9e635c31e6b9f36a'] | Thanks makes sense. If i were to write \begin{align*}
\tau &= (1,2,3,4,\,5)\;(6,7,8,9,10) \\
&= (7,8,9,10,6)(1,2,3,4,5)
\end{align*} and do the same process would that also be valid since (6,7,8,9,10)=(7,8,9,10,6)? |
5d4de05a5e3322d345f198c92282fc120d677f096fa245b09876c931cf1da63b | ['9a5ee907fc21447b85e623ef01811279'] | The issue is fgets() reads the newline char. You need to take out the newline character which is getting appended in you char array.
After
fgets(str, sizeof(str), stdin);
You can write below line to get rid of that newline character
str[strlen(str)-1]='\0';
or alternatively you can do like,
char * p=NULL;
p= strchr(str... | 961f415f37d24b0f52d3db20315d17a3e4c1b23cd9b9c8fe1099c879c78f6e97 | ['9a5ee907fc21447b85e623ef01811279'] | I am using code blocks with GCC compiler. In the code below, compiler gives warning while returning local reference but no warning on returning local pointer though both are same thing. Why ?
I understand these variables are local and will be destroyed as soon as control returns from the function. De-referencing these ... |
b295498254b6d4672604a16a6c5955e2cb75235d63718d3bd2b29670a64cfd53 | ['9a65d315202746478ce2da0a30f4b453'] | I'm working on a school project and we are developing an interactive story with the A-Frame framework. The idea is to visit your old house and to have memories about good old times. So we're using 360° images in sky entities and we're switching those images between present and past.
I'm working on the transition when s... | 78d650aaeec01d1e9a4435e4c09f0fd52b52b2dd421a5f42c5256e8e4a039691 | ['9a65d315202746478ce2da0a30f4b453'] | I'm trying to understand more submenus in a menuContribution, here's what I've done so far :
MenuManager submenu = new MenuManager("Commands", "com.org.new.commands");
CommandContributionItemParameter p = new CommandContributionItemParameter(
serviceLocator, "",
"org.eclipse.ui.file.exit",
... |
d4da237af3741fd912ba32b454efb9af5a95cdffe7975365f282f5edb4c6dfa3 | ['9a72c1b8987041769ec0fb9e020096bb'] | You've defined loop_regions(output_file) but you're calling it like loop_regions(). Doing something like loop_regions(initialize()) will make it work or assigning the result of initialize to a variable and passing that into loop_regions.
Just note that the fact you named two different things output_file doesn't bind th... | 4ca06a21fa7ded1153ab33a1d9f5d5cc6270590090e7825c01e46f1ec29daaa4 | ['9a72c1b8987041769ec0fb9e020096bb'] | It sounds like you're confusing the use of venv with the layout of your code in a project structure. You shouldn't be putting your Python code and modules in a venv generated directory. You didn't mention what OS you're using but here is the general workflow I use on OSX.
I put all of my venv environments in $HOME$/.v... |
adfbe5fff2cbe76790c5a16e18cd816dd0828ff9003ca0c486392ec6d2a0bf83 | ['9a9e2e2bd4614bf2a18319dba5dc3382'] | Problem is like in title. When I'll merge sort array with size like 1000 or 10000 or 100000 (works for a little bit higher then 500000) everything is ok. When I want to merge sort bigger array like one milion size program crushes with Core dumped. My Code is below. Thanks in advance. Where is the bug I can't see?
#incl... | bdbeb42c94042da2cb25f37907e8dda5f90032b6d1746e4be04c708033f79c69 | ['9a9e2e2bd4614bf2a18319dba5dc3382'] | My problem is a memory leak somewhere in the code. I can't find it... I used valgrid and it gave information that memory leaks appers when im using method "add_connection". I thought that at the end of add_connection I should delete memory for newNode but then program crushes.
BTW. I can't use std<IP_ADDRESS>vector an... |
6a9caf61201528e29ca289063a78a98b92963b74d1b327ea6e900c584006b7e3 | ['9ab98447d37344aebb9c5f1ff9fb8dd7'] | i tend to agree with you to some degree but not entirely. The reason why I noticed what I found to be a strange design in the first place, is because I am writing queries for reporting purposes and so that we can have insight into our business performance. Therefore, I needed to know what tables I need to be querying a... | 82cc26cbb0a64e70acdbf1d72cf123c79c3c5631aec2f1304d51760fc5572dd7 | ['9ab98447d37344aebb9c5f1ff9fb8dd7'] | I wish I could tell you more. I'm not sure what to say. This is my first experience I have working with a *serious* database. Before this, I had only made Microsoft Access databases with forms on top of them. I just don't have the DBA vernacular to concisely explain the design -- especially one that I can't make sense ... |
02f333d56dbe1b6fc57383cc2bda91262b2ddfb43e3e91f7cc0b9c619a1b5804 | ['9ac02c7f4ab24c1f9d2a7f7ba7f67a89'] | We've got quite a massive codebase compiling and starting to run in FlasCC. When you just open the .swf, player's memory usage is ~300MB. It is more or less fine, since it seems like there's still around 300MB of dynamically-allocated memory available to the C++ code.
Problems start when we create threads. According t... | d01e061a8cf6b163a2f206fb386b9a489a27f81360f3c570aa1b885d320a54c0 | ['9ac02c7f4ab24c1f9d2a7f7ba7f67a89'] | myvfs.abc is located at BUILD_FULL_PATH, hinting that it might be built at the same time as Console.as. If the build order is not fully predictable, the myvfs.abc binary might be in an undetermined state when Console.as is compiled. This can happen if, for instance, you build myvfs.as and Console.as as different indepe... |
d71023f9c9dd70af56383d8f612679021cd7616a3bc9f71b0a11617874e8775a | ['9aca1287873a4757bcbb87de1013590b'] | they all cannot connect to game server when loading up game, but playstation network connects successfully, it says " Failed to connect to game server. Please try again later" as for the switch when connecting to online multiplayer it also says, " A communication error has occurred, Please try again later" with error ... | f45c75317a46fdfffe7b8f050d359c205b9ad8000d42eea404427d5844521e99 | ['9aca1287873a4757bcbb87de1013590b'] | I want to put my network card into monitor mode to try out some simple network packet capturing but i need to have root on my user account in order to enable it. is There someway to do this without having root privileges? I am using a stock network card with my PC and it does support monitor mode.
|
3a9cb603bbe8049f81061bacd0b41f5f7bb3319071b785e1f02aee8e2f2a8645 | ['9ae07e9363bb40ff89301c6be486a3db'] | Thank you so much, <PERSON>! Your answer was helpfull. Partially my problem was in MysqlUpdates module. This manual helps with install-upgrade module for Magento: http://inchoo.net/magento/magento-install-install-upgrade-data-and-data-upgrade-scripts/
So, this is my final code:
/**
* Installation script for changing... | f1eb3a5fe3f7544a3b65d537caee4cb75a52103dc2f3c44047c5721c0b3f9228 | ['9ae07e9363bb40ff89301c6be486a3db'] | In common I need to change values of this lines in DB (table core_config_data):
(UPDATE value WHERE path like)
design/package/name
design/theme/locale
design/theme/template
design/theme/skin
design/theme/layout
design/theme/default
My update script should look like this.
/**
* Installation script for changing theme ... |
8d998441bc2d70fe87fbfade608c584ba334af04d95462591280b49998b5f971 | ['9ae2d3091fa54026ac3e5c65e53bdb71'] | Fun fact, it's not the fan after all. I gave my laptop to another shop, the guys tested the fans and determined that they aren't the problem after all. As of now they don't know what causes the noises, though they couldn't even replicate those at first, it's like it only happens to me :P The laptop is being diagnosed. ... | 10dc46de5cd7ed1a30cd87c0d3b7d2ddd6e3272596f36e29eb0760636897d9ee | ['9ae2d3091fa54026ac3e5c65e53bdb71'] | I hope I'm asking this in the right place, if not, feel free to brutally get rid of both me and my post, I'm just desperate at this point.
I own an Acer Aspire vn7-792g, I've had it for a few years. It's an excellent machine, but I've finally encountered a problem.
About three months ago, I started hearing a very quiet... |
fb96b825e1b6d9ea20302086bc0745c6c1690da01096f3d03a7b40b7796042e1 | ['9ae7b6d4252c4b9cac7fa5e043d59fd3'] | Every tutorial I have seen for mocha-phantomjs shows having a test harness html file, and a separate javascript file that gets included.
Is this the correct way to do this for each test? I want to create a separate test for each page in my website, but it seems like overkill/crazy to duplicate an html file for every te... | 9c287a50f17aeb748e9a7352237669c00bd04983a68fc3f8d12d6b0f71664fae | ['9ae7b6d4252c4b9cac7fa5e043d59fd3'] | The problem was in my client-side javascript. I was using "emit" incorrectly:
var <PERSON> = io.connect();
sock.emit("v1::create", {"some":"data"})
The above javascript is incorrect. Two additional parameters need to be supplied:
var <PERSON><IP_ADDRESS>create", {"some":"data"})
The above javascript is incorrect. Two... |
88cfaefab42d39906bc2f9d37ba0dc16367752ee6266016afc30d13718bbee4c | ['9af0ffb05dd34ed5bbeb4c003d6ce239'] | I have a problem with ng-select (I am using newest version and Angular 10).
I am creating a common component called form-row-select-multiple, which I will be using in many other components. Here is shortened TS file of this component:
@Input() options: any[] = [];
@Input() optionKey = 'id'; // in case of options ob... | 45413d39df420c76b873ceb7c2c73e14504b4b08978a5dbcddd1dd1d49a9847a | ['9af0ffb05dd34ed5bbeb4c003d6ce239'] | I am having a problem with ng serve. When I run it on my angular project, about 10% of time, it will freeze during the process and also whole computer freezes. Sometimes it unfreeze after some time (from 20 seconds to 120 seconds) and successfully compiles, sometimes I need to manually power off the computer. I have en... |
0f16c26b04ff18756e5bf5f8e9e31119be6087e01ba5c6ec24e5cc9d2d0558cc | ['9af7f26541334d01a06662b6e1c4dddd'] | I managed to solve this problem by adding the SSTATE_DUPWHITELIST to the bitbake recipe of the package as follows:
SSTATE_DUPWHITELIST = "${TMPDIR}/PATH/TO/THE/FILES"
I added the absolute path of all of the 6,7 files that had the conflict to the list. I did that because they were basically coming from a same source and... | 807b8f1ac1a509afa7a1544d667e158ad0de4449ebdb303630b49864c003775e | ['9af7f26541334d01a06662b6e1c4dddd'] | I'll try to explain it as easy as I can. I tried to include and build package "A" in my Yocto image, but package A depends on libftdi and ftdi-eeprom. Now, "ftdi-eeprom" depends on the "libftdi".
In the newer versions of the "libftdi" the tarball also includes the ftdi-eeprom sources too and when you build the libftdi ... |
05235c8cee79b2ac57eb5d44f148680c2e7f59a7317c10a2b144b816b79f8cb0 | ['9afd126bb5f34102894330a9d0241ed4'] | So as I see it there's 2 issues here. Firstly your code is missing the selector - and the jQuery / $ variable to which jquery is bound - thus you're not actually invoking anything.
The second issue has to do with the fact that you're mixing way too much traditional javascript with jquery - which can lead to confusion ... | f2ff5a866dd0ade097f166557dae0321cce7ad2621cb70d1f6eb27e295cead7d | ['9afd126bb5f34102894330a9d0241ed4'] | <PERSON>, the problem you state is common for a lot of API providers. What happens is if the server load exceeds capacity for that instant, you may get a 502 from the reverse proxy and thus experience an error situation.
The recommended way to get around this is to have a retry count. For example
function fetchdata(url... |
a848af88af95433adc099bc91c8bf326b3b5fa3f5df926891d3a36afdb6f33b3 | ['9b18853029b145c2b082eeeb232c970f'] | I have Employee class and Qualification class , I added qualifications of a employee successfully. But ,When i try to update the particular employees qualification by adding one more qualification. I don't have a idea to do.Kindly suggest some view
Employee class
@Entity
@Table(name = "Tbl_Employee")
public class Em... | 1118d598c5632a7909e93f56f5698599712897ecbc8006410e1a35eeeec17972 | ['9b18853029b145c2b082eeeb232c970f'] | Im using angularjs in client side and spring ,hibernate in server side.
Now im trying to upload the image , which could be saved in a server folder and the path where it stored can save in sql db .
Im struggling to read the image using angularjs with spring .
Kindly guide me to complete my task
Thanks in advance
|
8f7b6d07299fa3cb5e71f8fe9a43a82e4ad815d38642264d69da88d8176da126 | ['9b1900c23d62433b96eea52176467163'] | Trying to load contents of a directory into tableview.
Using: NSFileManager and NSTableView.
Getting Error Message in the last function:
'[AnyObject]?' does not have a member named 'subscript'
Do I miss something regarding Optionals?
Code:
import Cocoa
let fileManager = NSFileManager.defaultManager()
let folderURL = ... | 9d85e84e6e693e0183e12f18e9d12c0449d3b4d016006a9f95d0225a38d8b9c9 | ['9b1900c23d62433b96eea52176467163'] | Now it compiles.
I created object in xib file and table view, used the tonik class as datasource for the tableview, now I am getting message:
2015-01-10 07:21:18.420 ac3[6016:143038] *** Illegal NSTableView data source (). Must implement numberOfRowsInTableView: and tableView:objectValueForTableColumn:row:
but both fu... |
4b861846cae39d058d55f8d14598b43c782453ef82de2e382d51a8b9e6ac619f | ['9b48b0eb22634a1f89d90dcfb8d1f675'] | In EGOphotoviewcontroller in viewwillappear method
if ([self.navigationController isToolbarHidden] && (!_popover || ([self.photoSource numberOfPhotos] > 1))) {
[self.navigationController setToolbarHidden:NO animated:YES];
}
After calling this method in ios7 _pageindex value getting zero,i don't know the actual ... | e72e592a5174a24e4a01f9ba26738984a597abd9f117b61927acea68d90a498f | ['9b48b0eb22634a1f89d90dcfb8d1f675'] | once i submitted app to app store by enabling push notifications for that particular app id and i generated the certificate fro production and i saved in my server.
now i want to test my push notifications are working or not,now my doubt is if i use the same bundle id for my another project and keeping the same certifi... |
36fc7dadcbad4b1245f0c4dbe2ad8068e5ea4e065601ebe3539ef17035373abb | ['9b4bfa7d150d4ad2aa3708a63fa41a05'] | I am working on a project and I got a problem. I am using JSP and MS-Access.
I have a table and I want to get it values as follows:
This is table:
Service Charges <br/>
Cons 200 <br/>
Cons 500 <br/>
inj 300 <br/>
inj 200 <br/... | 1fb48f3a58ecf65dd4d3d89b47d76baa1143e6051236e902271617afd52f7e92 | ['9b4bfa7d150d4ad2aa3708a63fa41a05'] | I want a button to be visible on given date and month with javascript.
Javascript:
<script type="text/javascript">
function today()
{
var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var d = new Date();
var curr_hour = d.getHours();
var curr_min = d.getMinutes();
i... |
10da2a932cae1b21f6127a543a6f8256356319bfe0338e65c53b42d36a9bd1e9 | ['9b5bc0e5215f4a898682b4f150e9d3da'] | I need to solve the problem:
I have 10 different bytes(2^8) and each byte value range is 0 to 255. It needs to encode into 3- bytes(2^24) length. Later I need to retrieve the original values from encoded 3-byte values.
I tried <PERSON> and <PERSON> functions but the encoded value is exceeding the 3 Byte length.
Is ther... | 17e3e63cb68c8ba80c76601d817b8e4d5efe47dac561d5bf2c4761f8ee187ae0 | ['9b5bc0e5215f4a898682b4f150e9d3da'] | I can be fetch CLOB values from database but if values is more then 32k it is getting error :
java.sql.SQLRecoverableException: Closed Connection
at oracle.sql.CLOB.getDBAccess(CLOB.java:1510)
at oracle.sql.CLOB.getSubString(CLOB.java:317)
Code :
List<Map<String, Object>> resultListMap = null;
try {
... |
4f1ce741c6fb2ba2d3d261ab0d27034b98313f11ee3035d97682f1d2f7cc16eb | ['9b653783334a48f98ee4b73596e45fef'] | I hope one of you guys can help me with this question:
Given the method below, can I cause the count to be done on the DB Server rather than retrieve all the rows, and the function should not be running query for each search name, it should run exactly 1 SQL statement for each call of the function.
| 89099078141526dcfbf1e8f162efafb8bb2f291cb5d38a50abed5168d7c712bb | ['9b653783334a48f98ee4b73596e45fef'] | I'm relatively new to WPF, and am trying to change certain grid cells where the bound values are decimal zeros. The intent is to leave the cell blank where the cell has 0's. For example, if the TranDeposit column is zeros, I would like to change that to blanks. In ASP.NET this is very possible by using the DataBound... |
7d518dd2568cf9c0c20d9ce8287351482b992046e71c92b8dca69af2d31f6303 | ['9b7148b81cd5459fbe35325280f9fb04'] | I finally got it to work for m3u files.
$PlaylistName = Read-Host 'Playlist filename (Include drive and path):'
$Directory = Read-Host 'Target Directory (Include drive and path):'
Write-Host "Searching "$PlaylistName" for media files and copying to "$Directory"`n"
(Get-Content $PlaylistName) | where {$+... | 7e4290e4b0d2ae6c1c3bcef067ab4b8bef3ae33a1feace3019cfd2ca1925b1be | ['9b7148b81cd5459fbe35325280f9fb04'] | Okay I got a script that works the way I want it to. It is as follows:
cls
$PlaylistName = Read-Host 'Playlist filename (Include drive and path)'
$Directory = Read-Host 'Target Directory (Include drive and path)'
Write-Host "Searching "$PlaylistName" for media files and copying to "$Directory"`n"
Get-Content $PlaylistN... |
5c56bec37d42586da0c4ad8b8f2259b6725a6483604ac838b7ecc861b0cfdd26 | ['9b84e920a202409ab78f0b0931ab4101'] | It's great that you want to learn! A key part of experiencing music, in my opinion, is being able to read it! (Again, my opinion; many people will probably disagree in comments below.)
My suggestion is that you go about learning to read music the way you would go about learning anything; lessons are nice but not absolu... | 803345bea20a75b429745fd36d83ecd4ef30bfff49ccf6cb68a72a26520f3d73 | ['9b84e920a202409ab78f0b0931ab4101'] | This is very helpful. I will leave the question open a while to see if there is a positive answer. There is not likely to be a way to prove that the answer is no.
Continuing this train of thought: in the real case, I can consider the unit ball in three-space and the quotient space is $RP^2.$ I assume if I ponder a... |
14a3236040f3cb74fb02d993a523296dd6d2f255b88c478ebcd84c82b7548f07 | ['9b8ad9a9991d425d99a7799f83c89bcb'] | I'm trying to create a custom tooltip that displays inside the draghandle of a Kendo slider and dynamically updates as the draghandle is moved.
I've been able to do this in the past using plain Kendo by updating the text of the custom tooltip with a slide function, like so:
element.kendoSlider({
min: 0,
max: 10... | bdb9cb3b046a5b39f6f337a958dcca77d899d0c32ecc159ca744cd01e31d7599 | ['9b8ad9a9991d425d99a7799f83c89bcb'] | Well, I couldn't find a way to do this without employing multiple bindings with Knockout.js, which I've learned is a very bad idea.
So, I ditched the Kendo sliders. jQuery UI's range sliders base the position of the drag handle on percentages rather than hard pixels, so they are fluid out of the box and resize without ... |
ca5b14349ad96f9679acdb7a4aaf9f24d6c89b7c08c15f829ed1bfc5a55a77cc | ['9b8c31d3ba7445a48e2c493b076df4e3'] | In my text file, I have a list of strings as follows :
['', '"0=SYSEV,1=APPEV,2:3=VECEV"', '"ASEN"+$y', '"FALSE"', '"G"+$x+"ARBCFG"', '"G"+$x+"ARBPR"', '"HUGO:SECURE"', '"Internal"', '"SERIAL0:TRANSMIT"', '$fpi_mem_range', '$fpi_to_sri_base', '$fpi_to_sri_range', '$sx_fpi_base', '$sx_fpi_range', '$sx_sri_dest', '$trign... | 9a79e2ce6690c8df5209a8751ebd8d14da2097ea9cb5b27ceb502f5a4f6e5580 | ['9b8c31d3ba7445a48e2c493b076df4e3'] | In fact, the solution was to import my customized class MultiColumnLabelEncoder as a pip package (You can find it through pip install multilllabelencoder==1.0.5).
Then I passed the pip package to the .yml file or in the InferenceConfig of the azure ml environment.
In the score.py file, I imported the class as follows :... |
b996bf2b47ddbcd130c817ab1dcecfbf1be319c3a26d394eb4b58c163da97c1a | ['9bb9b876dfa74f50a08c3304bd7da32a'] | By the way i have some simple solutions,
Passing the callback method,
private fun getResults(request:String ,callback: (String)->Unit){
callback("200")
}
getResults("request",fun(response:String){
//code
})
Create Listener & pass the listener object... | 184de0bd683419f017cd038d4474ede5e603698fb9f60de3571b249f8df80e30 | ['9bb9b876dfa74f50a08c3304bd7da32a'] | Sample Code for Reference to your problem,
DataSet ds = new DataSet();
DataTable dt = ds.Tables.Add();
dt.Columns.Add("ID");
dt.Columns.Add("Name");
dt.Rows.Add("0", "Item1");
dt.Rows.Add("1", "Item2");
For inserting the item with specified index you need to use the below code
//Insert the ite... |
cc4cb094ad6050d40fee90eec07603667c3ebf895ff5dd58952b5c07aa3798fa | ['9bd2336f60c2473d83a2f334d37549af'] | не знаю, как правильно будет обработать загрузку URL ImageView в функции loadPhotoIntoImageView не используя библиотки вроде <PERSON>. С <PERSON> все прекрасно работает.
class PhotosViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
private val imageViewPhoto: ImageView = itemView.findViewById(R.i... | c21fbffaba428ef7e9e721147c50d9ffb851c4220cebc3570b52df3394cde486 | ['9bd2336f60c2473d83a2f334d37549af'] | I have many videos that contain mostly still images with almost no motion.
Only in some sequences there are animated scences with much motion.
Now I want to reduce their filesize, but ffmpeg with crf or a given bitrate doesn't seem to be the best way. Is there any option to let ffmpeg automatically use higher bitrates ... |
6a7e7a7944d81bd281dd286edae8a6421ad313c0733bdda39f9597acd53899dd | ['9bd3ad9e70f040919ae60f224fc0db81'] |
I have some huge tables, company's and contact's
table: t_company
id company_name(fulltext)
1 <PERSON>
2 <PERSON>
3 AH
4 Vries BV
table: t_contact(fulltext)
id fullname
1 <PERSON>
2 <PERSON>
3 <PERSON>
4 <PERSON>
// this table to link contacts with company's. contacts can be linked to multiple com... | 34be0c6c2c0efac373e8533daf6b4cf8c8114d1f137f4c5660dd71eff3e12c62 | ['9bd3ad9e70f040919ae60f224fc0db81'] | cross browser is a little problem, then you need javascript. but here is a start for you to play with using only css. webkit (works also in chrome)
note: i added the height to force a scrollbar.
<style>
table{
width:300px;
height:100px;
direction:rtl;
overflow:auto;
... |
e21725189a81bac0e88719e64800bf56ca63ff4994780061a7d24ac17bd43440 | ['9be5fa81ec1a4019bc0a6397191494a0'] | Ok, so I have linebreaks preserved when being uploaded to my database and they are seen when displayed on a webpage, but I have an issue. My website is a forum and I don't want a user to have a topic with an excessive amount of linebreaks between text... for example:
line 1
<1 blank line>
<2 blank lines>
<3 blank lines... | a4141f7836cef85c98d2cffe6934cdc5d6c0978413fe8f2633d8d8157649f409 | ['9be5fa81ec1a4019bc0a6397191494a0'] | I have
{% if auth.renderFriendShip("{{auth.id}}", "{{user.id}}", 'isThereFriendship') == 0 %}
in my view file. It should be changing {{auth.id}} and {{user.id}}, but it isn't. When I run a "var_dump" on the {{user.id}} in my php model(where the function leads to)... it just outputs {{user.id}}.
Here is the relevant co... |
915852fa84beaaedde38b178d5f0405a3eb894def49167e5fcd2ba1679475714 | ['9bed02955286459a955047a79ec1acbb'] | check required for cluster fork to start ,cpus length and it's master or not .try the below code
const cluster = require('cluster');
const http = require('http');
const numCPUs = require('os').cpus().length;
if (cluster.isMaster) {
masterProcess();
} else {
childProcess();
}
... | f44a2424190e4db3ebad6cea94054d4f981d0068b03df128eb1c7aeaa334f30f | ['9bed02955286459a955047a79ec1acbb'] | Check the below code
var express = require("express"),
axios = require("axios");
var app = express();
app.set("port", 3000);
app.get("/", function(req, res) {
console.log("Requested ");
axiosTest().then(data => {
console.log(data);
});
});
function axiosTest() {
return axios
.get("http://dummy.re... |
feef4a6f992e655639990d61d84791be8b492847ccb21c2111ce14016f5f7261 | ['9bfe19cf90de46bbacfb7cf4513b915b'] | you do not need a seperate batch file to exit a loop using exit /b if you are using call instead of goto like
call :loop
echo loop finished
goto :eof
:loop
FOR /L %%I IN (1,1,10) DO (
echo %%I
IF %%I==5 exit /b
)
in this case, the "exit /b" will exit the 'call' and continue from the line after 'call'
So th... | 1929894ea4a0f502cab6849b92dd91814700957716a293126460f735c086d30f | ['9bfe19cf90de46bbacfb7cf4513b915b'] | I got around the UNICODE carriage return (which is really the problem here) like this:
@echo off
FOR /F "usebackq tokens=1,2 delims==" %%A IN (`wmic %* /VALUE ^| findstr "="`) DO (call :OUTPUT %%A "%%B")
exit /b
:OUTPUT
echo %1=%2
Save that as "wmi.bat"
and execute your query like this:
wmi.bat printer where 'name l... |
f0da29182f8ff09e4475cc139d3e2c2e9afcc238f249baae90644dbb221f4541 | ['9bfedf4b5cf7466e8b37a9fd1f31db5b'] | I have a dataobject which I want to use on a GridField on a page but I want to limit the columns displayed. I used setQueriedColumns() to list the fields I wanted but it is still displaying the default $summary_fields from the dataobject.
MyActivity dataobject:
class MyActivity extends DataObject{
private static $db = ... | 8460490d876b38260e21c8a857738fa5557df62a958ed239903e63bab981ae87 | ['9bfedf4b5cf7466e8b37a9fd1f31db5b'] | I used tractorcow's Silverstripe-autocomplete module on a website to implement autocomplete feature on a textfield. However, I wonder why it returns the ID field instead of text(on CompanyName field).
Here's the code.
On my page I used it on a form as:
public function MyForm(){
$fields = FieldList<IP_ADDRESS>create();... |
161586265988c0259dcd7dd810716b4974e5181c9dc379a1d7b24c7247be1cdf | ['9c0188b299c34109b5cfcd9d4267b190'] |
Check out the branch you wish to merge to on your fork. Usually, you
will merge into master.
git checkout master
Pull the desired branch from the upstream repository. This method
will retain the commit history without modification.
git pull https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git BRANCH_NAME
If there... | 896ed394b0c96b7f4ca0f3630ce4c685ec389d3403b73e6272593b2808ca2e63 | ['9c0188b299c34109b5cfcd9d4267b190'] | SELECT p.ProductID, p.ProductName, p.Quantity, s.SupplierID, s.SupplierName, p.Price
FROM Product p
INNER JOIN p.Supplier s
You need to use paths in your HQL query, from one entity to the other. The Hibernate documentation on HQL and joins provides more information here.
http://docs.jboss.org/hibernate/core/3.6/refer... |
570c15cf82b094eeeb5ca52ef598ee98befe750d259f30873cc44c5872d3589a | ['9c034ea739dc45df9afdd426dc0e8e76'] | I am merging two csv files. For simplicity, I am showing relevant columns only. There are more than four columns in both files.
file_a.csv
col2, col6, col7, col17
a, b, c, 145
e, f, g, 101
x, y, z, 243
file_b.csv
col2, col6, col7, col17
a, b, c, 88
e, f, g, 96
x, k, l, 222
Output should look like this:
col2, col6, co... | ebc34811ac26fb9e824c58962baa8ed7b80c7d58028bd875d79be6a6862d23e8 | ['9c034ea739dc45df9afdd426dc0e8e76'] | I know the question was asked a long time back. But for others stumbling across this question, here's an alternative to Python.
If you have access to sed (you do if you are working on Linux or Mac; you can also download Ubuntu Bash on Windows 10 and sed will come with it), you can use this one-liner:
sed -i 1i"ColA,Col... |
25826203fd6cd0861332cf00e63a2e03180461cb7e2f219eac41664b9b422ce2 | ['9c0a8b4ddd8b418b9080dce8869b468d'] | I have been coding since few days, I am still a beginner. I was able to create a search bar, but when I try to change the width of my searchbar,my html file is not affected.I tried several things, but i cannot find a way to solve that issue.
however, the searchbar input "submit" change sizes after I modify the Css.
... | aa68646d06036b8ba71f84d7d2d6ae3abdce6740b0832f26a221a53008f64150 | ['9c0a8b4ddd8b418b9080dce8869b468d'] | I started coding a week ago and I have few issues with my css and my html. I cannot get the search bar to be smaller and to adjust to the top next to my logo.I changed the font size of "search", but it seems that it does not appear anymore. I think that my search bar is maybe too low. Here are my sheets, please if som... |
ac438b1f889efa8cc0720566ec7a180c90070f36e09c4736f946eb4d9145a0f1 | ['9c1bfed1841a48d988b09d5183d97555'] | PROCEDURE purge_partitions
(
p_owner IN VARCHAR2
,p_name IN VARCHAR2
,p_retention_period IN NUMBER
) IS
BEGIN
FOR partition_rec IN (SELECT partition_name
,high_value
FROM dba_tab_partitions
... | b9f2c5b3876541a8d93553d2f6b026d3b9a9b38b185f9036ae8e7ed9a9adb83a | ['9c1bfed1841a48d988b09d5183d97555'] | BEGIN
DBMS_SCHEDULER.CREATE_JOB (
job_name => 'delete_partition',
job_type => 'STORED_PROCEDURE',
start_date => '28-APR-<PHONE_NUMBER> PM Australia/Sydney',
repeat_interval => 'FREQ=MONTHLY;INTERVAL=1', /* every month */
end_date => '20-NOV-<PHONE_NUMBER> PM ... |
11f9f436cc65524c56ed0358eacab58bc4920412efa2c1b6608c62741e65f5ae | ['9c1eeb3f6b4f421980533adde1d5eb33'] | you just have to add postCSS loader to your sass rule. Something like
{
test: /\.scss$/,
exclude: /node_modules/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: [
{
loader: 'css-loader',
query: {
modules: true,
sourceMap: tru... | 9df97f365dca80782e793ad349a2dbffb92645d80af69e842419e1b30c66908b | ['9c1eeb3f6b4f421980533adde1d5eb33'] | I tried to do it with array.reduce. So if you don't support ie8 you can use it. One note: I couldn't do it without extra array.
var tempArray = [];
var result = array.reduce(function (memo, element) {
var index = tempArray.indexOf(element.title);
if (index === -1) {
tempArray.push(element.title);
... |
892d670f6ff7e7625c6d456cc1f9605d017f5a333c40e1e0c820d1691f73404e | ['9c2abd379a374e01be94afbfacd622a4'] | Step 1: app into development mode
Step 2: turn off the "Require secret key" in Advanced settings of the group
Step 3: graph api explorer choose THE app
Step 4: get User access token for YOU (admin of that GROUP and admin of the APP), with permission "user managed groups", then approve it to give that data (in the upcom... | 4c887b59b5f2073be05eac8ba4961ca67c4180d43d351da66ca457c34c5a331f | ['9c2abd379a374e01be94afbfacd622a4'] | Wow; nice work. I started a repo with my modifications at [https://github.com/l3laze/sind](https://github.com/l3laze/sind). So far the biggest differences are upgraded input handling and the addition of a title bar. I'm hoping to add single and multi-line editing, but haven't done anything towards those yet beyond look... |
770fe948d8f848c5b209b928333f5b41456480133805d44198a51ee534e577df | ['9c50669d221c4663a1745ba7c6c93a62'] | We have a web-camera and a FireWire camera attached and would like to get input from the second one. But when we use cvCaptureFromCAM(0) and change a number passed as an argument, we're getting data only from a web-camera.
We tried to use OpenCV Private Framework and then it works fine. So, most probably problem is ca... | da6f4743c1fecf9062190cc62669ce0be23397b55069dfa1bf5eac3748de91d6 | ['9c50669d221c4663a1745ba7c6c93a62'] | As far as I know, one of the basic assumptions of supervised machine learning is that there is only one correct output for a certain input vector. There are some exceptions, however, for instance, Elman network, where the output depends not only on the input, but also of the output on some previous inputs. Such network... |
004fb2ff7d53c198b1fd31ce10a38aee9cf7250c219f6b321e907e0b53c7e139 | ['9c6823f9676f41c39f207101ac248772'] | Assuming that you are submitting your form to C#, once you have performed the validations and if those validations fail, then you will have to output JSON in following format:
{
success:false,
errors:{
field1:errorMsg1,
field2:errorMsg2
}
}
Here, field1 is the name of the field present in y... | 5cd99052c73f1c28705138cec0d76113a880783dd3ba85559b77480e664b232a | ['9c6823f9676f41c39f207101ac248772'] | I have been able to find a solution for this. Though, not sure if its the best way, but posting it here as it may help someone looking for the same.
The solution is to write custom renderer function for the column which needs to be updated and calling the following code on the user action at which the update is require... |
2b26ba42d56f1ae61c8760cd9e25fcbfd8b67f848b6ca5aac4faaa52761ba03a | ['9c6a928d67484bd69a22a4e906229e8f'] | To me it looks weird how you iterate over the song list with this->getSize() and then get the SongInfo with this->songs.at(i);.
this is not the same object as this->songs, and just by looking at your code it's not possible to know what getSize() does.
Would you care to try this?
int size = songs.size();
for(int i = 0... | ef289bc2ca7f2d84ab2e4771f98b135eaf1593b55e18c652441ad93d8ecf60a8 | ['9c6a928d67484bd69a22a4e906229e8f'] | Try installing the libqt4-devel-doc package:
as root:
zypper in libqt4-devel-doc
Most of the files provided by this package are located in /usr/lib/qt4/demos (x86) and /usr/lib64/qt4/demos (x86_64). Once installed you can execute qtdemo from your favorite terminal emulator (or from ALT+F2 run dialog).
Probably you wi... |
3cef84791530209884e9f5c6702501b25252e38e04aac5e075a49cbc6d6a940e | ['9c7107f2bad84a00bedd6858a1f61921'] | I have implemented below Grunt configuration for concating two css files into a single css file(common_tfn_bsa.min.css ) in my jsp file.
<!-- build:css ./assets/css/common_tfn_bsa.min.css -->
<link href="./${theme}/css/style.css" rel="stylesheet">
<link href="./${theme}/css/component.css" rel="stylesheet">
<!-- e... | 498d7d26cf2d0cfc31cb0dbf7223e6b7fcb91f14ce528caddbca9365dfcd05be | ['9c7107f2bad84a00bedd6858a1f61921'] | I want to copy one list(investDtls) to another list (listInvestOptions) which is part of POST body.
Below is the code snippet:
app.controller("OneClickController", function($scope,$location, $resource, $http){
$scope.investDtls ={};
$scope.submitOneClick = function(investDtls) {
//$scope.o... |
3b70356688bc74697da42d963ebe8caccb700beb6ac552b4ecbd822d997c992f | ['9c7cd26ee94d4665af505724feb8cd16'] | I'm trying to set a css style display: none; with angular animations to an element that already has a bootstrap class .d-block, which sets display as .d-block { display: block!important;}.
How can I overrule the .d-block class ?
trigger('fade', [
state('hidden', style({
opacity: 0,
display: 'none'
... | 35b203e0c221b835e2a28c83d58bdf507c84439830692e6fdab2d6503eb88ade | ['9c7cd26ee94d4665af505724feb8cd16'] |
mat-toolbar-row{
height: 50px;
background-color: blue;
display:flex;
justify-content:space-between;
}
div {
display: inline-flex;
justify-content: flex-end;
}
ul {
list-style: none;
}
ul li {
display: inline-block;
}
<mat-toolbar>
<mat-toolbar-row>
<div id="menu">
<button>
... |
5d3f05f36b8663707ea2cb8c1118f7515a4d385589c7a8615b40347ee414f5fe | ['9c84505c982d425991ee0156683140b4'] | when I'm starting my MBP I get about 10-60 seconds of the booting process before the screen goes half black (Its like applying a black to transparent gradient from the left side of the screen to the middle of the screen). After a 5 seconds the entire screen blacks out and the MBP shuts down.
There have been issues with... | fdf099a5f9e5cfa722c38a4c29ce78d33e33144205bc7d79faef7f85646c6630 | ['9c84505c982d425991ee0156683140b4'] | O ideal seria testar com preg_match se o arquivo contém o que tu precisa.
Percorre os arquivos e com a string do nome de cada um, faz algo do gênero.
<?php
$encontrou = preg_match("/(?:holerith)(?:.+?)(?<codigo_usuario>\d+)/", $string_com_arquivo, $output_array);
?>
No $output_array, terá um índice codigo_usuario, com... |
17e5903a3f48c905e31bc47dea2702d4b1094b9951f1a6f4f111d9c8df9feb9e | ['9c92b9d77dea4858badfc492e73fc69f'] | you can find the data below. I did a formula on all cells to mask the data (i am not sure how it's done normally), Hopefully it's usefull for you. By the way I am a marketer not a data scientist, so this is a bit new to me. https://docs.google.com/spreadsheets/d/e/2PACX-1vQSNaTHjwjHd4u0H-SDzrV-ecbw6sEqkaL8AtISfhmxqw9lZ... | de8f9622b1c7558ed442e5dfdf67c6d152efa1ace2993fbf77c1f449f98a0312 | ['9c92b9d77dea4858badfc492e73fc69f'] | This is probably a pretty simple question for most of you.
I have weekly amount of users from last 2 year till now for 2 traffic sources. Want I want to figure out is to see in which periods these sources deviate from the trend. Regarding trends I do not know which model to choose.
Since the traffic is very seasonal I ... |
90dac96a9bb54e6de34512b8705db57a9c0b527bafe51167510cd93046ecd5a4 | ['9c95980a9db74aefb98dd55b83dd87c1'] | I will suggest that you can have 2 images - 1 for 'Up' and 1 for 'Down' arrow.
Set default image to the btn for state UIControlStateNormal and set the other image for state UIControlStateSelected.
Now in your sectionTapped: method just change the state of the button.
So when you show or hide your view you need to set t... | c5503d4536d85b1c4567999a7b4fdf3ff0fd20236160d4ca2c16937e4944e035 | ['9c95980a9db74aefb98dd55b83dd87c1'] | Using the following text field delegate method it can be done:
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range
replacementString:(NSString *)string {
//--- Making uppercase ---//
if (textField == yourTextField ) {
NSRange lowercaseCharRange;
lowerc... |
db55b11330ae00113570cfb345e380f8930f52b03efc6233d4d5ba531b0377f7 | ['9c9c652c44fb4fa19b63e2f66751200c'] | Try this code:
<!DOCTYPE html>
<html>
<head>
<script>
function dateCheck(){
var e = document.getElementById("inpDate");
var date = new Date(e.value);
var day = date.getDate();
if(day!=1){
document.getElementById ("errDisplay").innerHTML=... | a1ecdac46bfc5761b52e450f6ff8472a9a6da8ce8c2552eb80cad0c6db58a2d5 | ['9c9c652c44fb4fa19b63e2f66751200c'] | This is working code. Attachment can be shown of the screenshot of the working page. I changed the source code by adding some div to make the page scroll.
Code source: https://www.w3schools.com/html/tryit.asp?filename=tryhtml5_draganddrop
<!DOCTYPE HTML>
<html>
<head>
<style>
#div1 {
width: 350px;
height: 70px... |
28e608a15bb2d8125fd55b98f692c31d8ccda07484a71444f37b29968fa6c701 | ['9c9fc336c08f462c8ad69e19c96c8582'] | I had the same problem and reset didn't fix it. Then the resharper support helped me.
Solution was very simple!
I'm from Russia and usually my default keyboard is Russian. In control panel | language settings | change keyboard - I changed default keyboard to English. Then reapply settings in VS: Resharper|Options|Keybo... | f5d1342782698a7c93418682ab4461e0da8f8955d660ba46cfdfb1843282883c | ['9c9fc336c08f462c8ad69e19c96c8582'] | In this case Linq provides less readability.
You can move the second foreach statement in a seperate method and then use Linq
return from actual in actualPositions
select GetBookPositionList(actual);
new method:
private List<BookPosition> GetBookPositionList(ActualPosition actual)
{
foreach (var projection in... |
9a2dc4987edbc35323452e1f4da1e7b17d40011c78346a986a103b7b9c2ad4ac | ['9cb0aedc3aeb4407b2c020c18c6285d5'] | It doesn't matter which .net framework you are using what matters is which version of Microsoft.Office.Interop.Excel you are using, there are two versions of Microsoft.Office.Interop.Excel, one is 14.0 and 2nd is 12.0, you can switch to any version and recheck if problem is resolved, You need to remove any previous r... | 7c43ed6bc6b4eff162193f264795b87687dffd6afd77d7701f4b108d57eb4296 | ['9cb0aedc3aeb4407b2c020c18c6285d5'] | I had the same problem, My upload limit was 2 MB, I edited my php.ini, and I set it to 5 MB but still it was showing 2 MB even after restarting server. Than I compressed my .sql file to zip by keeping its name as xyz.sql.zip so it became 451 kb from 3.5 mb. Then I uploaded it again. It worked for me.
|
d26c1f1fbd338ab9522d998db8f43f635c7c492299103c503135616a3cb1facf | ['9cbb0e1a821c495486bae7f70b0df5d3'] | Hello I am trying to create a logger using boost.log with the format of
[Timestamp][Severity] - (FileName:LineNumber) Message
I already have the formatter but it throws an argument error when trying to compile this code:
fileSink->set_formatter(
boost<IP_ADDRESS>log<IP_ADDRESS>expressions<IP_ADDRESS>stream
... | 09612d6ff703c40a74f6d5e1acc1fbd82b6186b25fa88484ed88cd3fc9deed74 | ['9cbb0e1a821c495486bae7f70b0df5d3'] | The problem was with boost threads. My static lib uses boost libraries that internally use boost threads. To fix the issue I added a command line define /DBOOST_THREAD_DYN_LINK to both my static library and C++/cli wrapper dll. This means that I had to include the dll files for boost thread, chrono, and system along wi... |
ca075176094cb3b243237c0f72b0722a4490f610ea495d02c25fed4c6616c948 | ['9cc41e846f7d4123a8208bf3ce1c46f1'] | In a previous question I had a problem with Getting Precise Positioning of Rigidbody. That problem being solved creates another problem.
If the user repeatedly taps a key to move in the opposite direction too quickly, the player can overshoot the center of the lane. Each lane is 1 unit wide, and the current code moves ... | 74f887db2bbf1aa6f9b1de196b8b93a96229c84e7f9df6fd7f5fac1c4ae60107 | ['9cc41e846f7d4123a8208bf3ce1c46f1'] | I am creating a 3D endless runner that's a little different than the norm. There are 5 Lanes that are 1 unit wide, and the player can fall off the sides if they move too far to the left or right. The Player does not move Forward, Jump or Slide. It only has left or right movement. The player can get bounced backward if ... |
e2005a5e45e95b211f8590b02ab69f62a57e2d369b190a894ef2f2bd4a39d088 | ['9ccd36f7146e43dcb3370e2430bd510a'] | Please google first before asking a question on SO. Just by googling your problem, I found your answer in the first link. It is another question on SO. Click here.
Just put both items inside a <div> element and use the css class display: inline-block as you can see in the example.
<div>
<i class="material-icons" styl... | bfe6d27fe14dafb8e0aff41370702fec9145dd60ae074009f7cea3b749ca277f | ['9ccd36f7146e43dcb3370e2430bd510a'] | I am adding 2 event listeners. One for resizing and one for scrolling. The one for resizing works but for scrolling doesn't and I can't seem to find out why this is.
mounted() {
window.addEventListener('resize', this.onWindowResize);
window.addEventListener('scroll', this.onWindowScroll);
}
onWindowResize() {
... |
55267c1c5934c3e00be3883299ea80d1a2087bbe341925deed20f02f1bb90c2b | ['9ccff72647504db988b4e13668fe8d28'] | Do not go into such complicated stuff . Just download ccleaner or open it if you laready have and then go to custom clean -> applications and tick the checkbox under the heading internet explorer -> "Cookies and other site data"
If you want to delete or disable IE go to settings-> or control panel if you do not have wi... | 876d7355b4fa87b258fa5bfbfe3018e64d7cf5ad4f993ff2bbb3d0bbc2ce8663 | ['9ccff72647504db988b4e13668fe8d28'] | Instead of copying , why dont you just replace the font it's literally one word, no offence your question is absolutely valid , it was just a suggestion. Use this :
[class^="icon-"]:not(#randomID), [class*=" icon-"]:not(#randomID) {
font-family: arial !important;
font-style: normal
}
The code provided by <PERS... |
0bf8ecdca3ae9d3f023cf112c3cfea36e865b6282d0c8b84018764c350f60ccf | ['9cd0a1f4ca1b41129460222bb8e277fa'] | So first asuming this as your data:
x: original values x1,x2,x3...xn
y: predicted values y1,y2,y3...yn
then simply:
VarmeansX <- var(x)
VarmeansY <- var(y)
so you have in VarmeansX and VarmeansY the variance of each data samples, so in order to know what is the difference just do
VarBetween <- VarmeansX - VarmeansY
... | dcda72e9347c755e012291a86785fd7aabae71ae6d0f84d26fb45f030f6f7925 | ['9cd0a1f4ca1b41129460222bb8e277fa'] | A couple of years later but i found my self in this situations, i believe the other answers are good enough for some but they lack some important information or at least i didn't found it.
You need to look for the term Python or debug console under tools if you want to focus to the console with the caret at it, add a k... |
16fe89c3cfe350db9dbcd9286a7b2467f0d0c031169d09a93e0238f34887470b | ['9cd40fa4087a4ce8881f74f7240347a5'] | I would to understand how can i test my "auth/refresh" action in the "beforeCreate" hook with jest like below :
// main.vue
async beforeCreate() {
let authTokenRefreshIntervalId;
await this.$store.dispatch('auth/initialize');
authTokenRefreshIntervalId = setInterval(() => {
this.$store.dispatch('aut... | e41503aaa71b2c4a68e9885a883e335fe6e5b8685d6eaf0719d73a8163a7ec35 | ['9cd40fa4087a4ce8881f74f7240347a5'] | In my application, i'm using a lazy-loaded module using :
import(/* webpackChunkName: "settings" */ './settings')
Webpack's outputs are configured like this :
output: {
filename: '[name].[hash:8].js',
chunkFilename: '[name].[contenthash:8].js',
}
But, when i deploy my app, a script is responsible to override... |
7c771a10802236cb14a94823949ae23d4ca9c995219782167b62c663b46ca221 | ['9cd69294456147dc8b172dfda621617b'] | I'm having a a decoder code. I'm trying to integrate it into ffmpeg framework.
I'm referring to the HOW TO given here: http://wiki.multimedia.cx/index.php?title=FFmpeg_codec_howto
According to that article i need to define a structure in my decoder_name.c file.
The example structure is shown below:
AVCodec sample_decod... | 10a23b6a8509134ccc46d3973dcb5b164719a9094a25c6ba5ce0a2e9a0eed01c | ['9cd69294456147dc8b172dfda621617b'] | I have a video decoder which is ported to android and is successfully working as a standalone application, however i want to integrate this code to android multimedia framework. So, this code i have added to android's media framework. That is i have added it to root/media/libstagefright/codecs/myDecoder.
I have written... |
a79c6d7ead98dc23e72f4247b600ff9c29f953cda92ad319af0270313c87a3e1 | ['9cea86351657437c8152b6e03983f62b'] | The CPU speed will automatically be lowered when it is not on AC. You could change power settings to be on "Desktop" mode or similar when running on battery.
Go to the desktop in Win8, then navigate yourself to Control Panel\System and Security\Power Options\Edit Plan Settings. Then click on Edit Plan Settings and Cha... | 8359a1f5a228aaed550bbf95a08b11c5f9d8f97529009742f1f71f52a338b8a3 | ['9cea86351657437c8152b6e03983f62b'] | Another thing that was skipped in this conversation is that when you JIT a piece of code it can be compiled to a free spot in memory. In a language like C++ if the DLL is based such that that piece of memory is not available it will have to go through the expensive process of rebasing. It is faster to JIT code into a... |
a22842ec11c883ea37aa7fe446090110eba494e7cea1c76ab278f265fd80986c | ['9cf493a0c8d3444db98345bc8795e93d'] | as the documentation of the dijit DateTextBox says I want to set the Date the user sees when he opens the dropdown. I don't want to put the date in the value property of the DateTextBox. In my application the date is optional but when it's used other fields need to be filled, too.
The value I want to show in the dropDo... | 01f3cd81ce994cee35d603680b8a79db62f7478a59d63f7bbb75ed8783e310a0 | ['9cf493a0c8d3444db98345bc8795e93d'] | so I didn't find something in the dijit Toolbar API I'll try it here.
Is it possible to place a dijit toolbar to another place than on top?
I'd like to create a Toolbar declarativly on the left side inside a contentpane so the toolbar is from top left, to bottom left.
Is there a way to do it?
|
eee86d45aeb751e4dc333057277e0bb1f2024fa15b84a9aa7dd3583b2ac20929 | ['9cf8de1b7599434ea5937a082a4f8a3d'] | I was going to make a Hirens BCD but the instructions for it are sketchy starting from specifying formatting FAT. My devices do not offer that option and from there, what I downloaded in the latest version is not congruent with the step by step shown on Hiren's site. Regardless, I was unsuccessful in making one that wo... | 501d62cd4c8021c5b247785be18a659e603cfd5e86743ab2da9715bacd34f82a | ['9cf8de1b7599434ea5937a082a4f8a3d'] | The install media, which worked fine prior, had not been mishandled as described. I'm more inclined to believe whatever remains installed on the Msata, while Win8.1 was up and running, is nefarious. I made a Unbunto Live USB while waiting for any answer. I know virtually nothing about it or partitioning or formatting a... |
70940b528f747ff6282de0d5a9b727042aaa190c7e1f42e4867a508a3faad28d | ['9d0009a307f34dfe85750eb348d7dac6'] | The way I see this is you're trying to access a parent function from a child class but a value that the parent function uses inside it could be null due to uninitialization. There are many possibilities for this but this is just one of the obvious ones when it cones to inheritance. Cheers!
| 95e345d7fa5960f9c7f1f06a034da1f82757c07387fcd2c15ec18bf0ea07e05a | ['9d0009a307f34dfe85750eb348d7dac6'] | This is a great question.
In our case, we did not go with Spring validation as we implemented the validation on our classes.
But if you went with the '@Validation' annotation to validate your form/beans, you can go with the approach below
@RequestMapping(value = "/signup", method = RequestMethod.POST)
public St... |
9cd4b5c656487e9c3e8f4e74bc7b5fda8100cb1611060443b2e07bdff9752f4e | ['9d226479eec748c69de7ffc4ab842c03'] | 1) If you want to check whether the question is being answered or not then you can check for value 1 (if the value 1 Means it is not answered).
2) If any of the choices is set then you can assume that your answered is being answered.
public enum Answer {
No = 1,
Choice1 = 2,
Choice2 = 3,
Choice3 ... | 6c6b7b307a5646512219a690a33e299646a77606ddeba26577924eea56529412 | ['9d226479eec748c69de7ffc4ab842c03'] | I have user control which has the linkbutton in the Item Template, I am trying to capture the Itemcommand event in the code behind, but the event is not getting fired.
I have gone through the other similar questions, but it didnot help me. Below is my code snippet, could anyone help me on this?
Listview-
<asp:ListView... |
a0019a1877c2daec034ce17ee2b177644a913cc7d8458e0fc312b282bf2ff296 | ['9d339f3ec40b456e879f7d00fd474cbe'] | I have a certain user account on a box I'm working on. Whenever I log into or su to that user, a script comes up that restricts my usage of the server. This is intended and I wanted to modify it but cannot find where it lives, nor do I knows the scripts name.
I've checked profile.d but don't see any scripts there. The ... | ee7aeb67d2590a052b50735ed08ae277d6661a5946fd129b84a49f20a9d1892f | ['9d339f3ec40b456e879f7d00fd474cbe'] | I have a set of applications behind a proxy server which forwards request appropriately and uses the proxy protocol to preserve the request's origin data. The apps also make requests amongst each other so I want them to accept requests with and without the proxy protocol. Is it possible to configure Nginx to do this in... |
91e57ead27a5e662ef3c4c4b58a1873240d9b555531b8284e07d015bc5c1478d | ['9d4332ce9649407f967f4f7fef1cb7d2'] | Of those, wireless mic is what I would want. My question is: would any location with a sound system then be able to "attach" to this device? Or do they have to be a "matched pair" - IOW, are mics and sound systems "proprietary" such as software, where both the mic and the sound system need to be of the same "operating ... | 408b887fe0acade2db0326e92d9b3de5c1ff1a21e5403262691c6fb87eb5c47f | ['9d4332ce9649407f967f4f7fef1cb7d2'] | I have a hefty little Winforms app written in C#. For a moment, lets assume that the box running my app has a large number of cores, so that for me, the most precious resource in the app is the use of the UI thread. In light of that, I'd like to be able to track, for performance tuning purposes, all of the calls that a... |
f2f343e1fc39785b724a0c9ffa550f729cfc0f63fef40bcc55f53227bea2a5a4 | ['9d56693409b640ba8bbb9eb35798fe47'] | import tensorflow as tf
my_cell = tf.contrib.rnn.BasicLSTMCell(num_units = 128) # 128 is the hidden dimension which is a hyperparameter to be choosen by you
# Note you have just declared the LSTM cell till now, they haven't been initialized.
# Do something with the LSTM
with tf.Session as sess:
sess.run(tf.globa... | 691509b72e899628edd8c43b2854106d9494a27cc0cc6360da0510a9f63b2a8c | ['9d56693409b640ba8bbb9eb35798fe47'] | You can use nvprof (https://docs.nvidia.com/cuda/profiler-users-guide/index.html) to profile your code. Use the --export-profile flag and visualize the generated .prof file using the NVIDIA Visual Profiler. After you have generated the visualization, you can see how much time is spent in various operations (Memcopy, co... |
73ebb33a052ed4b1046e49cd03bd869818667a04e30d745ab64139812f5e2a28 | ['9d58834de85f4476a39592582432c22b'] | I've solved this problem by taking a completely different approach. I used Disk Utility to clone my internal SSD onto a new partition on an external SSD. I am now going to restore my internal SSD back to factory (by restarting, then CMD + R), then update it to 10.12. This way there is only a single partition with a fre... | a8f7d9d1e7c4a2e55ce7316573477911f3a68635682327e1b42e76e9fc3e9bdb | ['9d58834de85f4476a39592582432c22b'] | You should try the stuff in <PERSON>'s answer first, but if that doesn't work, you could still render all of the sprites (assuming they all have the same opacity) onto a RenderTarget(2D) with 100% opacity, and then render that RenderTarget to the screen with 50%.
Something like this in XNA 4.0:
RenderTarget2D rt = new ... |
8d7cd5597d6c21f155e125f5d1354434424cc292b060147fe14c59a503e87c8b | ['9d5bd7feb47f4e28b64e427bf7f7bfab'] | @0xC0000022L Is there documentation or is it possible for sudo to limit a process ran with sudo in a way that it can only access specific files barring it from running applications, or having permission for anything it is not specifically allowed to read? If so this would fix my problem instantly. | 9cf12446ba2036fe1bbf7b182f20318a8b71202b99e86419d6c771ae00c63e59 | ['9d5bd7feb47f4e28b64e427bf7f7bfab'] | I am working on a GUI. I use the gi module in Python. I want to add some icons to my GUI but I couldn't find a list of all icons with their corresponding names.
Where can I find such a list? Is there a specific folder in my os where I can view them all?
|
cf16f7cddc78b617d2189c4a3d21f880532797617e28646e1e8bf59a604a456f | ['9d69a94c844e4eb18731ef3bf12045fc'] | Working on a small personal project where I can drop an .xlsx file on Azure Blob and it'll trigger( Node.js Blob Storage Trigger fn ) and send to a REST endpoint to be parsed and worked with etc.
I've been able to set it up and have the file be moved to another blob( intend to set up logic on the HTTP response to REST ... | 1f92121210c3fe193a8a86970c46275ea3d2d3358dad6473b80e35813c805914 | ['9d69a94c844e4eb18731ef3bf12045fc'] | I'm just trying to create a single button "view" click for the data in the specific row for gridview and pass it to a Silverlight viewer.
Here's a "viewall" button I'm trying to figure out off of.
protected void btnViewAll_Click(object sender, EventArgs e)
{
string id = HttpContext.Current.Request.Headers["... |
1cdee7ae91fcd10f6956cf3bd21185f4d5bcdb0e4e97cecca05fc41a249eff19 | ['9d76922c11334d01b864b4cbceaf602f'] | My questions are about the paper: Semi-supervised Learning with Deep Generative Models (Kingma, D.P. et al, 2014).
Suppose I have a generative network with input $x$, and a hidden layer with hidden nodes $z$. We use $z$ to generate $x$.
Now suppose my prior distribution on the hidden units is a spherical Gaussian:
$p(z... | 955f907f423dd9e8823121e3a1f1dad217117726fc803f98d22eacd66b5d4de3 | ['9d76922c11334d01b864b4cbceaf602f'] | Thank you! Great explanation. So, in part (1), we're using a function of the weights (an MLP) to map from our input space (x in R^n) to a 2d-dimensional latent space (mu, sigma in R^2d). So is it that we start by assuming diagonal covariance and then learn the true covariance? |
6fa21a2b27348ac8bfe884ad1248511d95dc6c021044d01153996772b63c681b | ['9d7851bc751e4c42aae291c02460c5a9'] | The easiest way is to include the required css in the html page. You can use a bit of javascript to get things done. If you need to keep css in an external file, you would need to generate it using PHP. Then send the color back to the server, recreate the css file and serve the page again. Seems a bit complicated imho.... | 9d6ab4424041a993bded762f9d3831e684b01a1fdb30dcd7cd17b7f3c5d3767e | ['9d7851bc751e4c42aae291c02460c5a9'] | How about 2 fields: period and interval.
Period contains day, week, months, etc. and interval explains itself I think. This gives you almost unlimited flexibility to store your interval.
Personally I'd be reluctant to use bit-wise logic for this kind of application. It quickly grows too complex and querying is hard.
|
3e495c3ec3f7222c0c5aa7a1ba64f83e1ed51c741953d93c3f132a866de2f4b9 | ['9d84ca502b1d4aa6ae6ba0cf8fe94e23'] | Try using below method while calling parseInt in InventoryItemTest while reading items.txt.
Integer getIntVal(String val){
return val!=null ? Integer.parseInt(val.trim()) : null;
}
Eg:
if(getIntVal(lines[0])>=20000 && getIntVal(lines[0])<=79999) {
inventoryItems[i] = new InventoryItem(getIntVal(line... | b5b48ca8b79ed65123708229f4f28dbfb641c3542de939747f2106359d2527a0 | ['9d84ca502b1d4aa6ae6ba0cf8fe94e23'] | SOLID principles states to segregate interfaces as per the requirement. Currently i could see onSortInfoDialogDismiss method is not required for many implementors.
Try to extract onSortInfoDialogDismiss() to another interface, so it could be implemented on demand.
keep current interface with onSortInfoSelected() alone,... |
d80ff283fbdcf87fe936db85411767db24b8d7b751f18bce8edb25a2cc6536ab | ['9d95ef5523a34eee9c0a4c60ddcce203'] | I'm new to shaders and HLSL, having done enough with BasicEffect class. I understand how the pipeline works, especially for shaders with only 1 pass. However, incase of 2-pass or N-pass shaders, i don't quite understand how the results of the 2(or N) shaders outputs get combined.
Can you please explain the how the comb... | ed354784fbeb8627f25ff3ba944861c319a2dfe8a03059d4d85e5b531a1f07ff | ['9d95ef5523a34eee9c0a4c60ddcce203'] | This is an olde post I know but I have just had the a similar problem, and via trawl around the web came here and tried the suggestions above. Sadly they didn't work. However I also came across what did work for me.
Simply unplug the power adapter from the mains for a few seconds; then plug and switch on. èt voila the ... |
87b5f8175f8f244b2f8886107f69b2ee42557a12f26396c7bfd3eb2e72579277 | ['9d99c9915f7b46bfbf3c5335944564b8'] | My understanding is that employers can choose when to offer open enrollment and for how long. However, my question is whether an employer is required to notify their employees about their open enrollment period, and what are the requirements for doing so. For example, if my company only posts this information on their ... | cc2f2435717708a977b6680cd708467b9e655a2de8ff0187ccb04e11dadddfec | ['9d99c9915f7b46bfbf3c5335944564b8'] | It's Backface culling, not Textured Solid. (I have no idea what Textured Solid does.) Blender can't calculate normals because it doesn't know which direction you'll be looking at the planes; you can click the corner icon in the Mesh display section ([Normals visualization](https://docs.google.com/file/d/0B58OAFDyvbhTal... |
fbd4c48305734c2289b0f682bfbf45ab4e4e8af475a38580828a45717841d025 | ['9d9bff61ccc749149eccf56b114b94d3'] | You can do this with a batch macro where each batch will bring in a different table. The Dynamic Input tool will not work because the tables are of different schemas.
The workflow will have a Control Parameter (set to the table name) and updating an Input Data tool. This will then go to an Output Tool that has the "Tak... | e1f50bb01eb637065ac954ab56ec16407efaf3ca31a70dd44259d205fb295307 | ['9d9bff61ccc749149eccf56b114b94d3'] | In terms of using LEFT, LENGTH etc, that will be the formula tool. Some other formula's that may come in handy are FINDSTRING and TRIM
You can use the Output tool to write to an Azure DB and select "Take File or table name from field" at the bottom of the config window.
|
bf055cb149441c4b892a0a5c48a02f48c3d9370d8e52e7d5bb94a4cabf20ca3f | ['9dae5521bd9549d1b5b24014bdc7dd7e'] | Okay, so apparently i probably found the seed of my problem. My CurrentFretboard setter raised the PropertyChanged event, but i did not change the reference of the object itself. The object was modified, but it was still the same object. I thought that this would not matter and it would be sent anyway to the binding, b... | 68129cb93c6a7a3744068bba451d1f50dfb5738bdc0cbff4c376f0708d37df71 | ['9dae5521bd9549d1b5b24014bdc7dd7e'] | I am currently working on a MVVM project that uses a Window (with my ViewModel) and my own UserControl. The UserControl is nearly empty in the .xaml file because all of its functionality comes from code-behind, which draws different shapes. I wanted to bind a property from ViewModel to a DependencyProperty in the UserC... |
41b42baeb14d119a22cdf5e03a8991afad1224032071cffd4abacaaa384dc284 | ['9daf45b5582b4606a05f3a273e70ef08'] | Your answer is of great help to me, now I understand how it works to compute a fundamental group for a given 'well-glued' polygon surface. But I am still in puzzle what exactly 'one polygon per relation' is constructed for a given wedge of circles, whose number equals the generator of the given free group. Could you pl... | 6411487f877c018400626a7e5d7c1eaf1f54ead7bd205b2c0c373688569aba67 | ['9daf45b5582b4606a05f3a273e70ef08'] | <PERSON> Thanks <PERSON>, I agree with your statement and in an ideal world, it may be best to use Hyper-V HA and AG's. However, for simplicity and reliabaility (which is want you need for HA, I thuink it would be better to simply let SQL Server handle 'failures' and perform the failover to the secondary replica. It me... |
8e4d7618a23d1e0df48f8498919e350d536fd4cd28780d2db75aa689d59c635e | ['9dbd9527658d4150a566e26c9ef719aa'] | I'm trying to build a multidimensional array dynamically. What I want is basically this (written out for simplicity):
b = 0
test = [[]]
test[b] << ["a", "b", "c"]
b += 1
test[b] << ["d", "e", "f"]
b += 1
test[b] << ["g", "h", "i"]
This gives me the error: NoMethodError: undefined method `<<' for nil:NilClass. I can ... | 1c397e426f6363a502c68a8ea8dfa741016ffc47505bc332c8ae40aa0533cc0e | ['9dbd9527658d4150a566e26c9ef719aa'] | I just ran into this problem too, even with updated TextMate and bundles. I fixed it by adding source.js.rails to the scope selector of the snippet "Insert ERb’s <% .. %> or <%= .. %>". Make sure you don't change the scope selector for the similar command "Toggle ERb Tags". This inserts the ERb tags correctly and also ... |
42d1443fb5ff59e701d34f0cdb3716e5d9371a9c8ad46f9a5dca298bb6ecc179 | ['9dbe6cb5786b4419bc59a03ce094b5de'] | I have read that it's a good idea to encode strings in HTML (via HttpUtility.Encode) to prevent script exploits. Having said that, I have a string that includes special characters such as μ, and since I want the string to display correctly regardless of encoding, I have opted to use the HTML string literal to do that, ... | cab69482d3a984e24a9a22c97bb44ffcf13c8c6fd8e731c2ddf04a9bca7e8c37 | ['9dbe6cb5786b4419bc59a03ce094b5de'] | I have a struct called FOO that's versioned, so we have FOO_V0, FOO_V1, and FOO_V2. This is legacy architecture so I am currently not at a liberty to change it. However, I wanted to see if I could insert some compile-time checks such as static_assert that make sure FOO_V0 + d is F00_V1 and FOO_V1 + e is FOO_V2 so the i... |
6edf30ff6c0fdf7f5cc6432ec57f67afac07060fe2539d83d0060b5545bb2ec1 | ['9dbf66dfcba2410db9cd0261805638ab'] | Could it be that you're losing a set of quotes while passing the file name? I don't do much PHP. I'd comment but my rep is too low.
Does this work?
public function search()
{
$sql = 'SELECT `name` FROM `files` WHERE `name` = ":service"';
$query = $this->conn->prepare($sql);
$query->bindValue(":... | cfe228631e0517cab3ab6c7ecace94b0f9eeab4af37ff8d32e554042fc12c184 | ['9dbf66dfcba2410db9cd0261805638ab'] | Alternative to adding an index, you could find out something about '<EMAIL_ADDRESS>' that is already indexed. Perhaps you have a UserID, AccountID, etc?
If this is going to be for a "production" sort of query, searching on a non-indexed varchar field is going to be painful no matter how you try to optimize.
|
d8d016a487c82c776e274a8049e2ebbf9f37503dd013f065b1bc8092efecd68b | ['9dc8a0be28994b7e91c25fe06cb8ca13'] | I played around a little with your code and basically you were on to the problem; the similar dimensions of the cmap values with the data caused them to be interpreted differently for the "4" case.
This seems to work correctly:
plt.scatter(x, y, c=[cmap(i / 10)], edgecolor='k', label=i, s=200)
(List constructor around... | 99c2df07bbd3ed42a7466617f85eb09bff69bf68b3496ebecfe479bc2b710c55 | ['9dc8a0be28994b7e91c25fe06cb8ca13'] | One quick solution that seems to work well is to load the data into a Panda's DataFrame and use it's plot function:
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
x = [(0, 152),
(1, 106),
(2, 71),
(3, 89),
(4, 69),
(5, 83),
(6, 139),
(7, 141),
(8, 164),
... |
9a9ffb9b0e10ea91545c48d0b8ac02c63ea13d812a795b899069d2bc02752b84 | ['9de027faa2d24b51834b66f5eb9a2267'] | I had gone thru Pex, Extensions Writer Handbook but this document is just 5 page, and not elaborative. I need some more about extensibility.
I have gone to http://pex.codeplex.com/ which extends pex for different Testing Framework plus DySy and ASE extension. But, it was written again pex version 0.18 and current is 0.... | 67bf7c6a9acc71492e496f793cbd1f0cdf664e111b38035b6b3be9f30eaaa8e5 | ['9de027faa2d24b51834b66f5eb9a2267'] | I have VNET with DMZ and multiple internal subnets configured. There is security requirement to block all the outbound internet connection for the internal subnets.
Now, this VM needs to access Azure blob storage which hosted in the same region.
I am wondering to access Azure Blob storage without outbound internet con... |
b20b2751cdcc4ad01e9fea0fc160c7d083899c4aebfa5d137ddf46a4c17c4c15 | ['9e024c663ef743fabcaf9b745869958b'] | I have an OpenVPN server running with the following config file
port 1194
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
topology subnet
server <IP_ADDRESS> <IP_ADDRESS>
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS <IP_ADDRESS>"
push "dhcp-optio... | 4deb4c676151458d037da163ca2b710c54e2c89efe722fc36342be8cce5430ad | ['9e024c663ef743fabcaf9b745869958b'] | I managed to fix it, what I did was
cd /etc/yum.repos.d
sudo wget https://copr.fedorainfracloud.org/coprs/macieks/openresolv/repo/epel-7/macieks-openresolv-epel-7.repo
sudo yum update
sudo yum install openresolv
it will create /etc/resolv.conf
then I modified it to set my custom DNS
# Generated by NetworkManager
searc... |
4cd1455d44dc25f9e29124d6cc33d7636719b75f4c00b033235f30591bc8f10e | ['9e02c0b9a72849518c33dd33df62782f'] | I got the answer
it is:
total_items = sum([i[1] for i in shopping_cart])
I stored the number in a variable called "total_items" and got the total using the sum function for i.
@IronKey helped me with this answer in my other post.
Hope this helps anyone else with similar issues
| f7deb5b8416b85b9c46ad42d4e8d221ea28bd7bf0f83aa7b6ac5c40e5af8594a | ['9e02c0b9a72849518c33dd33df62782f'] | I am currently developing a database in Access and using VBA code.
We have been asked to create a customized email using VBA which must end in @Students.src.ac.uk
I have attached the images of my code. Every time I try to load it, it shows "object required"
Any help would be greatly appriciated
enter image description... |
bbd10e0130d9b9f39767ccfb5c798aa83c868170264280e4616125ad32cd1188 | ['9e0b2d6b0a214d368a5047103b113d71'] | Basically we give a PWM wave to the control input, but what will be the input for the error detector...?
How is this PWM wave converted to some voltage value that can be compared from the potentiometer output....?
What is the average value of the current drawn by the servo motor, is it same as that of the dc motor...?
... | eb14dfa9d8a261bb990807e0b04caeeeecb1fd50177a5c0370ba3670aef1d6f4 | ['9e0b2d6b0a214d368a5047103b113d71'] | I'm doing a deep learning model using tensorflow and keras. I have a question about the output architecture. I want to classify between two classes, images with defects and images without defects, I've built a CNN based on VGG16 but smaller.
The problem is basically a binary classification.It's possible to use one uniq... |
7a422a8985924408df8267c1a7a67b4891dd16226c78e40ce825cad268217a22 | ['9e175487f35f401f8e74c16901ac66a6'] | I figured out why we need this
required-api: param name="#target"
OPTIONAL(not compulsory)
It declares the name of the unit(in question it is main) requiring the listed apis. Only one instance of the param “#target” is allowed. When there is not instance of this param, it behave as if the target main was specified.
| 89e61854872783c0a5759d3c93eef7d8a5367a372e2d42a3d75bd24fa296dd8c | ['9e175487f35f401f8e74c16901ac66a6'] | Playing Audio
If you want to play audio in your Android apps, there are three APIs to choose from
MediaPlayer - Streams and decodes in real-time for local or remote files. Good for long clips and applications such as background music. More CPU and resource-intensive. Relatively long initialization time. MediaPlayer i... |
4d6ea8e21ab395cc4b43419ff87a2c7d13059948eb804e46185d3a53c951301c | ['9e20b6fac571474fb41e01eeeacbb15a'] | You should unwrap your optionals.
guard let long = longitudeVal else {
print("No longitude provided")
return
}
guard let lat = latitudeVal else {
print("No latitude provided")
return
}
guard let longVal = Double(long) else {
print("Longitude contains an inva... | c58b4bc9b6cca5d13a73b1d8531875c3a52bdcc314f811445d0abe31cb2b7bd0 | ['9e20b6fac571474fb41e01eeeacbb15a'] | You should take a look at Raycasting and Tags.
For the 5 second delay you could register the time when you hit an object and save the tag for that object along with the time the raycast hit. And when 5 seconds passed, check if it's the same tag you're looking at.
Some helpful links:
http://docs.unity3d.com/ScriptRefer... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.