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, Mozilla Firefox, and other web browsers that use Adobe Flash?
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 into emails that I was then trying to process. if maintype == 'multipart': for part in email_message.get_payload(): if part.get_content_type() == 'text/plain': text += part.get_payload().decode("quoted-printable").decode(part.get_content_charset()) Hope this helps someone ! <PERSON>
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 should forget systemd boot and use grub instead
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.concurrent.ExecutionException: com.android.builder.internal.aapt.AaptException: AAPT2 link failed: Error:Gradle: com.android.builder.internal.aapt.AaptException: AAPT2 link failed: Error:Gradle: Execution failed for task ':app:processDebugResources'. > Failed to execute aapt Maybe someone has meet such nasty thing earlier and would be so nice to help me ;) ? If u don't have any idea, please let me know how can I try finding it on my own. I already did clean project and rebuild :)
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)?(.*)$ but with no positive result. Thank's in advance.
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 members who serve as speakers or mentors and participants. For one, faculty invited participants out to dinner after the first day, which was a nice chance to get to interact (and network).
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 months. This trend has been holding across five paradigms of computation across 120 years. To put that in perspective - that means if that 120 year trend continues until 2030 then 1,000 USD buys you the computational equivalent of 1,000 human minds. That means that the iPhone X came out in 2017 and when the iPhone XX comes out in 2027, it will be as fast or faster in computations per second as the person's brain who is buying it. The reason that is important is that because once a technology becomes an information science - then its progress can ride the same curve that is doubling every 3 months. You can see these exponential trends wherever information is at the core of progress. For example, computers are now being used design computers in an ever escalating cycle. As for other examples - we are starting to see protein folding and receptors interactions be completely simulated in computers - and as a result are testing exponentially more potential medications than at any time in human history. We see this is simulated design as well - where computers are creating thousands of designs in seconds that used to take hours to days each. As a counter example, batteries and their complete physics and atomic interactions cannot be completely simulated in computers yet. The progress in batteries has been linear rather than exponential. Once they can be simulated, however, then the progress will be gated based on the progress of the Law of Accelerating Returns. Thus the single most important factor gating progress of technologies is whether and when it becomes an information science.
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 I have written proxy as ProxyPass /req https://example.com/req ProxyPassreverse /req https://example/req All the request from http, which contains /req will go to https://example.com/req. But the problem is, it is redirected into http://example.com/req what can I do to redirect to https or what can I do to run tomcat in "http"
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 why is it not running on xp. Please help.
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' and handle all incoming requests. It's guaranteed by the FastCGI design that the Request object (including all environment variables) are properly set. The old CGI works in an opposite way: a new process (i.e. instance) of the CGI program is spawned on each request. It's highly likely that you keen on concurrent requests. But that's still possible. Unfortunately you haven't mentioned neither server type nor programming language nor OS which you work with. It's really easy to find examples for handling concurrent requests on Unix systems in C/C++. You've mentioned that you wouldn't like to use any libraries but I believe you have to use at least one which implements the FastCGI interface. The most commonly used is fcgiapp by Open Market. Handling concurrent requests is achieved by the multi-threading technique which is called Locks. I'm a 'Windows guy' so this is my example for WINAPI and C: #define THREAD_COUNT 20 #define FAST_CGI_SOCKET ":9345" #include <locale.h> #include "fcgiapp.h" CRITICAL_SECTION accept_mutex; DWORD WINAPI requestHandler() { int code; FCGX_Request request; FCGX_InitRequest(&request, 0, 0); for (;;) { EnterCriticalSection(&accept_mutex); code = FCGX_Accept_r(&request); LeaveCriticalSection(&accept_mutex); if (code < 0) break; // TODO handle request FCGX_Finish_r(&request); } return 0; } void initFastCgi() { FCGX_Init(); FCGX_OpenSocket(FAST_CGI_SOCKET, SOMAXCONN); } void startThreadsAndWait() { int i; HANDLE threads[THREAD_COUNT]; InitializeCriticalSection(&accept_mutex); for (i = 0; i < THREAD_COUNT; i++) { threads[i] = CreateThread(NULL, 0, &requestHandler, NULL, 0, NULL); } for (i = 0; i < THREAD_COUNT; i++) { WaitForSingleObject(threads[i], INFINITE); } for (i = 0; i < THREAD_COUNT; i++) { CloseHandle(threads[i]); } } void appStart() { setlocale(LC_ALL, "en_US.utf8"); initFastCgi(); } void freeResources() { } void appFinish() { freeResources(); } int main(void) { appStart(); startThreadsAndWait(); appFinish(); return 0; } All the magic is around accept_mutex. Hope that will help even if you use a different OS or a programming language
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, sortable: false, dataSource: grid.data("kendoGrid").dataSource, columns: true, owner: grid.data("kendoGrid"), }); $gridColumnMenuButton.on("click", function(e) { $(this).find(".k-header-column-menu").click(); return false; }); CSS: .grid-column-menu .k-header-column-menu { height: 35px; visibility: hidden; position: absolute; left: 0; } This will allow you hide/unhide columns.
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 Happy coding!
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) among ImageView parameters and this will grab android's attention to the ImageView instead of the EditText. b). In case you have another precedent element than an ImageView you may need to add (2) to (1) as: android:focusable="true" c). you can also simply create an empty element at the top of your view elements: <LinearLayout android:focusable="true" android:focusableInTouchMode="true" android:layout_width="0px" android:layout_height="0px" /> This alternative until this point results as the simplest of all I've seen. Hope it helps...
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-expression I hope my post helps you ;)
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 addFive() { this.a+=5; System.out.println("b");} public int getA() {return a;} } I hope you get the problem.
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: "Software\Microsoft\Office\Excel\Addins\Company.Tool"; ValueType: string; ValueName: "Description"; ValueData: "description"; Flags: createvalueifdoesntexist uninsdeletekey; Permissions: admins-full Root: "HKCU"; Subkey: "Software\Microsoft\Office\Excel\Addins\Company.Tool"; ValueType: string; ValueName: "FriendlyName"; ValueData: "friendly name"; Flags: createvalueifdoesntexist uninsdeletekey; Permissions: admins-full Root: "HKCU"; Subkey: "Software\Microsoft\Office\Excel\Addins\Company.Tool"; ValueType: dword; ValueName: "LoadBehavior"; ValueData: "3"; Flags: createvalueifdoesntexist uninsdeletekey; Permissions: admins-full [Code] function GetRegistryData(Value: string): string; begin Result := ExpandConstant('{app}'); StringChangeEx(Result, '\', '/', True); end; I was running this as an admin and had no issues whatsoever (works on my machine!). Now that I'm attempting to run it as a standard user, everything else is being installed, but the registry keys are not being installed. I have UAC turned on and validating with an admin account for the install to run. Anything else I can check on to get registry keys installed?
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 theNode = theNode.parentNode; //Should run into a <SPAN> tag, but if not we need to get out of the loop } while (theNode.nodeName !== "SPAN" && theNode.nodeName !== ''); //Get the value of the binding attribute from the <SPAN> tag return theNode.getAttribute("binding"); } In the JS console, if I look at theNode, I get this: <span id="svattachmentcontainer_0_1" binding="my:wsAttachmentCreditApplication" The binding here is what I want the function to return; however I keeping getting an error of illegal return statement if I try to evaluate in the console. If I evaluate theNode.getAttribute("binding") in the console, I get what I want (my:wsAttachmentCreditApplication), but letting the code run jumps to a completely different section of code that would normally run if this function return was successful. How can I return this value with this function?
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-old/jordan. Then I mounted /dev/sda4 as /home. Now I want to change my current home directory from /home-old/jordan to /home/jordan, keeping the original (encrypted) contents of /home/jordan. How can I do this? (I know both the login password and the ecryptfs passphrase used to encrypt the old home directory.)
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 Budgies (these ones: https://en.wikipedia.org/wiki/Budgerigar).
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 same response. Am i missing something?
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.Combine(Directory.GetCurrentDirectory(), "Folder")), RequestPath = "/Folder", }); But, when I start the site in IIS im getting this error: The directorty name 'C:\inetpub\wwwroot\myappfolder\Folder does not exist. Any thoughts on this?
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 to know if this is common practice or an outlandish thing to do.
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 rewriteRulesSnippet = require("grunt-connect-rewrite/lib/utils").rewriteRequest; module.exports = function(grunt) { grunt.initConfig({ watch: { html: { files: "**/*.html" } }, connect: { options: { port: 9000, hostname: "<IP_ADDRESS>" }, rules: [{ from: '(^((?!css|html|js|img|fonts|\/$).)*$)', to: "$1.html" }], dev: { options: { base: "./", middleware: function(connect, options) { return [rewriteRulesSnippet, connect["static"](require("path").resolve(options.base))]; } } }, } }); grunt.loadNpmTasks("grunt-connect-rewrite"); grunt.loadNpmTasks("grunt-contrib-connect"); grunt.loadNpmTasks("grunt-contrib-watch"); grunt.registerTask("default", ["configureRewriteRules", "connect:dev", "watch"]); };
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 = "ws://localhost:4000/socket"; window.channel_id = "some-channel-id" onWindowLoad = -> initSocket() onStreamShow = -> connectToSocket() onStreamHide = -> disconnectFromSocket() initSocket = -> window.socket = new (Phoenix.Socket)(window.websockets_url) connectToSocket = -> window.socket.connect() channel = window.socket.channel("channel:#{window.channel_id}", {}) channel.join() channel.on "event", (payload) -> doSomethingWithThePayload(payload) disconnectFromSocket = -> window.socket.disconnect() This works, but after calling connectToSocket() and disconnectFromSocket() multiple times I'm getting this message in the server logs: StreamChannel received join event with topic "channel:some-channel-id" but channel already joined How can I avoid this?
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 get built into the msdeploy installation package and automatically applied to the IIS server when the package is deployed to servers. Seems like a reasonable compromise. Developers don't go manually mucking with settings on the live production servers, and sys admins don't have to have the webapp-specific knowledge. And yet the desired IIS settings are clearly visible to sysadmins who want to understand what is going to happen prior to the package getting installed.
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" : "12345", "title" : "Super secret doc", "body" : "Shh... don't tell anyone about this...", ... "role" : "uber-user", ... } Then in your queries to the service, you can include a value for the role parameter, so that only documents that have role set to "uber-user" are returned. It might be easier to make that numeric, describing the access level needed to access a document. e.g. documents that anyone can access get accesslevel of 0, documents that are private get accesslevel set to 10, and super secret documents have accesslevel of 20. { "id" : "12345", "title" : "Super secret doc", "body" : "Shh... don't tell anyone about this...", ... "accesslevel" : 20, ... } A query for a high-level user could include a query parameter for accesslevel <= 20 and get all the documents, sensitive or not. A query for a low-level user would have query parameter of accesslevel <= 0 and only get the public ones. I'm sure there are lots of other ways to approach it - those are just two quick ideas off the top of my head. But in summary, R&R won't do this for you, but there is enough flexibility in what you store and how you prepare your queries that you should be able to add this for yourself.
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,'\n'); if(p!=NULL) { *p='\0'; }
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 would result in undefined behavior. int *check(int j) { int *q; q= &j; return q; // No warning //return &j; // Warning }
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 switching images, but the only good transition I can develop is a simple fade to black... My idea would be to get something similar to CSS Mask Transition here : https://tympanus.net/Tutorials/CSSMaskTransition/ Is it in any way possible to get a similar result ? If not, would you have any idea of a good and easy transition that I could do ? Just so you know, I'm not used to web development, we only have 3 days to finish this experience and I'm completely new to the A-Frame framework (I've been working on it for 3 days now only). Thank you very much for you time and have a nice day ! <PERSON>.
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", SWT.PUSH); p.label = "Exit the application"; p.icon = Activator.getImageDescriptor("icons/alt_window_16.gif"); CommandContributionItem item = new CommandContributionItem(p); item.setVisible(true); submenu.add(item); additions.addContributionItem(submenu, null); So normally with this code I create a menu which contains the "Exit the application" command. But instead of that, my "Commands" menu is simply not available. Here's my XML code : <?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.4"?> <plugin> <extension-point id="iCommand" name="ICommand" schema="schema/iCommand.exsd"/> <extension point="org.eclipse.ui.menus"> <menuContribution class="model.ExtensionLoader" locationURI="popup:org.eclipse.ui.navigator.ProjectExplorer#PopupMenu?after=additions"> </menuContribution> </extension> </plugin> I don't exactly understand everything about the menuManager yet, so if someone could explain to me what I'm doing wrong, that would be wonderful !
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 them together.
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$/.venv. So I'd generate a venv environment like python -m venv venv ~/.venv/skeleton or you might have to use python3 -m venv venv ~/.venv/skeleton depending on your OS. You would then activate the venv environment by source ~/.venv/skeleton/bin/activate You'd then create your project like LPTHW says in a directory like $HOME$/projects/skeleton
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? #include <iostream> template<typename Var> void merge(Var *array,int start_index, int middle_index, int end_index) { Var left_array_size, right_array_size; left_array_size = middle_index-start_index+1; right_array_size = end_index-middle_index; Var left_array[left_array_size], right_array[right_array_size]; //////////////////FILLING BOTH ARRAYS///////////////////////// for(int i=0;i<left_array_size;i++) { left_array[i]=array[start_index+i]; } for(int j=0;j<right_array_size;j++) { right_array[j]=array[middle_index+1+j]; } /////////////////MERGING BOTH ARRAYS TO MAIN ARRAY///////////// int i=0,j=0,k=start_index; while(i<left_array_size && j<right_array_size) { if(left_array[i]<=right_array[j]) { array[k] = left_array[i]; i++; }else{ array[k] = right_array[j]; j++; } k++; } while(i<left_array_size) { array[k] = left_array[i]; i++; k++; } while(j<right_array_size) { array[k] = right_array[j]; j++; k++; } } template<typename Var> void merge_sort(Var *array,int start_index,int end_index) { if( start_index < end_index ) // do while we get 1 part of array { long int middle_index = start_index +( end_index - start_index ) / 2 ; //Calculating middle index merge_sort(array,start_index,middle_index); //MergeSort for left side of array merge_sort(array,middle_index+1,end_index); //MergeSort for right side of array merge(array,start_index,middle_index,end_index); //When sorten then merge them into one array } } int main() { std<IP_ADDRESS>cout<<"Array Size: "; int size; std<IP_ADDRESS>cin>>size; std<IP_ADDRESS>cout<<std<IP_ADDRESS>endl; int *array_for_merge_sort = new int[size]; for (int i=0; i<size; i++) { array_for_merge_sort[i]=rand() % 100000; } std<IP_ADDRESS>cout<<std<IP_ADDRESS>endl; std<IP_ADDRESS>cout<<"AFTER MERGE SORT VVVV"<<std<IP_ADDRESS>endl; merge_sort(array_for_merge_sort,0,size-1); std<IP_ADDRESS>cout<<std<IP_ADDRESS>endl; delete [] array_for_merge_sort; return 0; }
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 and stuff like this. Code must be really basic. Its requirement ;/ list_graph.h #include <iostream> struct Node{ int value; int weight; Node* next; }; class List_graph { static const int MAX_SIZE =1000; Node* get_adj_list_node(int dest,Node * head,int weight); int Node_number=0; public: Node** head; List_graph(); ~List_graph(); void add_connection(int source, int target, int weight); }; list_graph.cpp #include "../inc/list_graph.h" Node* List_graph<IP_ADDRESS>get_adj_list_node(int dest,Node * head,int weight) { Node * new_node = new Node; new_node->value=dest; new_node->weight=weight; new_node->next = head; return new_node; delete [] new_node; } List_graph<IP_ADDRESS>List_graph() { head = new Node *[MAX_SIZE](); for(int i =0; i<MAX_SIZE;i++) { head[i]=nullptr; } } List_graph::~List_graph() { for(int i =0; i<MAX_SIZE;i++) { delete [] head[i]; } delete [] head; } void List_graph<IP_ADDRESS><IP_ADDRESS>~List_graph() { for(int i =0; i<MAX_SIZE;i++) { delete [] head[i]; } delete [] head; } void List_graph::add_connection(int source, int target, int weight) { Node* newNode = get_adj_list_node(target, head[source],weight); head[source] = newNode; Node_number++; }
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 against. And the reason why I was looking at their procedures is because they allow us to build in custom functionality, which we are taking advantage of. In doing so, I would like to use their procedures where applicable.
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 of.
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 to documentation, every thread copies the .swf in memory and runs in a sandbox. Does that mean that every pthread will eat up the same ~300MB of memory that were used by the player to open the .swf? It seems so. I've done a simple test of spawning pthreads and dumping memory usage (what flash.system.System reports to us, as well as CModule.ram.length). Here's the log: Starting 10 threads. Memory usage: total=288MB private=335MB free=2MB CModule=33MB Thread 0 started. Memory usage: total=683MB private=732MB free=1MB CModule=36MB Thread 1 started. Memory usage: total=1071MB private=1121MB free=1MB CModule=37MB Thread 2 started. Memory usage: total=1459MB private=1510MB free=1MB CModule=38MB At that point plash_player_debugger has exited (crashed) without any error messages. This basically means no threading for us. After starting 2 pthreads, there's only ~50MB of memory available to the C++ code left. Adobe Scout gives a bit deeper breakdown of memory usage. Here's what it reports when an .swf is running with 2 background threads: (a picture from the same question on Adobe forums) The "Other" block has inflated from 11 to 800 MB after spawning these 2 idle pthreads. The memory was going into "Other Players" and "Uncategorized". So the main question is: how to workaround this? Maybe there's a way to make AS3 workers consume less memory?
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 independent targets and are using multithreaded option in make (-j).
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 code 2618-0201
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 theme config */ $installer = $this; $installer->startSetup(); // Update theme package values $themeConfig = array( 'theme_package_name' => 'mypackage', 'theme_locale' => 'mytheme', 'theme_template' => 'mytheme', 'theme_skin' => 'mytheme', 'theme_layout' => 'mytheme', 'theme_default' => 'default' ); // Update theme package values $configUpdate = new Mage_Core_Model_Config(); $configUpdate->saveConfig('design/package/name', $themeConfig['theme_package_name'], 'default', 0); $configUpdate->saveConfig('design/theme/locale', $themeConfig['theme_locale'], 'default', 0); $configUpdate->saveConfig('design/theme/template', $themeConfig['theme_template'], 'default', 0); $configUpdate->saveConfig('design/theme/skin', $themeConfig['theme_skin'], 'default', 0); $configUpdate->saveConfig('design/theme/layout', $themeConfig['theme_layout'], 'default', 0); $configUpdate->saveConfig('design/theme/default', $themeConfig['theme_default'], 'default', 0); $installer->endSetup();
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 config */ $installer = $this; $installer->startSetup(); // Update theme package values $themeConfig = array( 'theme_package_name' => 'mypackage', 'theme_locale' => 'mytheme', 'theme_template' => 'mytheme', 'theme_skin' => 'mytheme', 'theme_layout' => 'mytheme', 'theme_default' => 'default' ); // … code to change values $installer->endSetup(); So, while I’m new with Magento can anyone tell me where I should search for model? Model to recognize what setters must be here? And what syntax of code I should use?
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. They said that they'll be checking the speakers first, because that's the only thing they could come up with quickly, but it doesn't add up I think, I mostly use headphones, and both buzzing and crackling appear even when there's no audio. Nevertheless, the guys are testing it.
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 buzzing noise coming from the inside of the laptop, around the CD drive. Audio: https://old.vocaroo.com/i/s1GbCQkaMT8l I assumed it's the fans, but since the temperatures seemed alright and the noise was very quiet, I ignored it. The buzzing appears after the laptop has been actively in use for some time, sometimes it's after 30 minutes of watching a video, sometimes after 3 hours of gaming, sometimes doesn't appear at all for a few days. What seems to be the thing that is making the noise appear the quickest and the most often, is watching a live-stream of any kind. However, disabling the most demanding app working at the moment (even if the CPU and GPU usage are at 2-6%) always immediately turned the noise off, as in instantly from 100% to 0%. However, once it appears the first time during the day, it's sure to return whenever going back to using any significant app for the rest of the day. Unfortunately, after about a month, another noise appeared. Audio: https://vocaroo.com/jbrbWwraRfb (you can hear the original buzzing in the background, shows how much louder the cracking is). And if you let it go for a while, it gets faster and faster until it's like this: https://vocaroo.com/7hDAFDCd17d This noise appears only after the original buzz has been present for some time, and it happens much less frequently. While the original buzz occurs on 20-25 days of the month, the loud cracking noise appears about 5 times in a month. Interestingly, while the cracking and the buzzing seem to be slowly getting from 0 to 100, as in very slowly, they both immediately, instantly stop once an app is shut down. I still assumed it's a damaged fan or something fan-related, and gave my laptop to a professional, who cleaned up the cooling and checked the fans. I only asked for this service and not diagnosis, because the clean-up and fan inspection takes several hours, while diagnosis at least 3 days. Anyway, the cooling system was cleaned, the fans inspected. They showed me the photos. The cooling was somewhat dusty, so it was cleaned up, but the fans were both in excellent condition. So they assembled it again. Unfortunately, the noises persist. I've tried many things that I've found online: SSD and HDD scans are all green Drivers are up to date Power supply and battery are both original Noises happen on both battery and plugged in power supply I couldn't disable EIST, C1E, or Turboboost in my BIOS, but I used a Throttlestop program to do it, yet the noises are still here Tried different power settings and created a new one I've monitored the temperatures, and this doesn't really seem to be connected with the temperatures, there are times when the noises appear when the temperatures are at lowest, other times the noises don't appear despite temperatures being higher Nothing seems to bring any result whatsoever. I notice no other issue with the laptop, everything seems to be working alright. I don't really mind the original, quiet buzz, but the cracking noise is too loud to ignore. If anyone has any ideas or suggestions, I would greatly appreciate it. Thank you all for your attention. Cheers!
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 test case. Granged, this is my first time trying to use mocha-phantomjs, but still, it seems really odd to create an html file and a js for every test case. What is the standard for doing this sort of thing? I have been googling for about an hour now and can't find any good examples.
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 additional parameters need to be supplied: var sock = io.connect(); sock.emit("v1<IP_ADDRESS>create", {"some":"data"}, {}, function(){ console.debug("IN CALLBACK") }) I didn't think the problem would be from the client-side code, but it is
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 object, specify prop @Input() optionKeyText = 'name'; // in case of options object, specify prop to show on option textValue @Input() isMultiple = true; @Input() selectedValues: any; @Output() valueChange: EventEmitter<any> = new EventEmitter(); elementId: string; ngOnInit() { if (typeof this.selectedValues === 'object' && this.selectedValues !== null && this.selectedValues.length > 0) { this.selectedValues = this.selectedValues.map(value => value[this.optionKey]); } } onChange(event: any) { this.valueChange.emit(event); } trackById(item: any) { return item.id; } And HTML of this component: <ng-select [multiple]="isMultiple" [id]="elementId" [items]="options" [(ngModel)]="selectedValues" [bindLabel]="optionKeyText" [bindValue]="optionKey" (add)="onChange($event)" [trackByFn]="trackById" > As you can see in TS file, I am passing @Input() options from another component, where I am getting data asynchronously from server. My problem is, that despite of using [bindValue]="optionKey" on , it stills bind its value to the whole object (when I log value of event in onChange function, it logs whole object). BindLabel works fine, so I am not sure why bindValue not. I thought that it might be because of that [(ngModel)]="selectedValues" is also object, so I implemented a logic in ngOnInit, where if selectedValues are objects, I will do a simple array from that. But that did not resolve my problem. Do you please have any idea, where the problem might be? No errors showing up in the console. Thank you for all ideas.
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 encountered this problem on 2 computers already. One thing I noticed is when the computer is frozen, the LED indicator of HDD usage on my case keeps shining. Do you have any idea, what could be the cause of this freeze? Could it be some error/bug in my project? I call ng serve from my WebStorm IDE, which is already very RAM consuming, so could it be a result of not enough RAM memory? I've tried to log outputs of ng serve to file in case of freeze, but it shows no errors. OS: Ubuntu 20.04.1 LTS || Linux Mint 20 Angular CLI: 10.0.3 Node: 14.14.0 OS: linux x64 Angular: 10.1.6 ... common, compiler, compiler-cli, core, forms ... platform-browser, platform-browser-dynamic, router Ivy Workspace: Yes @angular-devkit/architect 0.1000.8 @angular-devkit/build-angular 0.1000.8 @angular-devkit/build-optimizer 0.1000.8 @angular-devkit/build-webpack 0.1000.8 @angular-devkit/core 10.0.3 @angular-devkit/schematics 10.0.3 @angular/cli 10.0.3 @ngtools/webpack 10.0.8 @schematics/angular 10.0.3 @schematics/update 0.1000.3 rxjs 6.6.3 typescript 3.9.7 webpack 4.43.0
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 it was all safe to do that. correct me if there is a better way though. Hope this helps someone!
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 it builds both of the packages. Although because of the way that package "A" is configured I need two different recipes for each of the dependencies. long story short, I made the two bitbake recipes as best as I could and successfully built "libftdi". Now when I run the "ftdi-eeprom" recipe, it wants to populate some files into the sysroot that are already installed there by libftdi. Here is where the error occurs... duplicates! Apparently I need to set a SSTATE_DUPWHITELIST variable and declare that these duplicate files are safe to replace the old ones in the image (this overwrite must happen). Can someone please help me with configuring the SSTATE_DUPWHITELIST? I am not that pro working with Yocto. Errors that I get on screen are uploaded in Dropbox Thanks in advance!
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 in that some stuff will look like its working and other stuff will seem to be failing. Here's a piece of working code you can use. <!-- Ensure you include jquery --> <script language="javascript"> function toggle() { var ele = $("#toggleText"); var text = $("#displayText"); if(ele.is(":visible")) { ele.hide(); text.addClass("left-float"); text.text("Show specs"); } else { ele.show(); text.removeClass("left-float"); text.text("Hide specs"); } } </script> <style> // DEFINE THE CLASS "left-float" HERE </style> <a class="show-specs" id="displayText" href="javascript:toggle();">Show specs</a> Hope this helps!
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) { try { // hit the URL and fetch data } catch() { // retry in case of an error return fetchdata(url); } } Another method if you're using a callback-supporting language is to retry a given number of times and then invoke the callback function fetchdata(url, callback) { try { // hit the URL and fetch data // success! callback(returndata); } catch() { // retry in case of an error if(exceeded retry count) callback(error); else fetchdata(url, callback); } } Note: this is sample pseudocode not proper usable code so please treat it as such Naturally the only long term fix is to get in touch with the API provider and request them to help figure out what's wrong. Most API providers tend to be fairly anal about quality of service and if they see someone facing issues are likely to provide assistance quickly.
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 Employee { private int empId; private String empName; private Employee_Address addressDetail; private List<Employee_Qualification> qualifications; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name="EmployeeId", updatable = false, nullable = false) public int getEmpId() { return empId; } public void setEmpId(int empId) { this.empId = empId; } @Column(name="EmployeeName") public String getEmpName() { return empName; } public void setEmpName(String empName) { this.empName = empName; } @OneToOne(cascade=CascadeType.ALL, fetch=FetchType.EAGER) @JoinColumn(name="EmpAdd_FK") public Employee_Address getAddressDetail() { return addressDetail; } public void setAddressDetail(Employee_Address addressDetail) { this.addressDetail = addressDetail; } @OneToMany(targetEntity=Employee_Qualification.class, mappedBy="employee" ,cascade=CascadeType.ALL, fetch=FetchType.LAZY) public List<Employee_Qualification> getQualifications() { return qualifications; } public void setQualifications(List<Employee_Qualification> qualifications) { this.qualifications = qualifications; } } Qualification class @Entity @Table (name="Tbl_Employee_Qualification") public class Employee_Qualification { private int qualificationId; private String qualification; private Employee employee; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name="QualificationId", updatable = false, nullable = false) public int getQualificationId() { return qualificationId; } public void setQualificationId(int qualificationId) { this.qualificationId = qualificationId; } @Column(name="Qualifications") public String getQualification() { return qualification; } public void setQualification(String qualification) { this.qualification = qualification; } @ManyToOne(cascade=CascadeType.ALL, fetch=FetchType.EAGER) @JoinColumn(name="Emp_FK") public Employee getEmployee() { return employee; } public void setEmployee(Employee employee) { this.employee = employee; } } Implementation class // Update Employee and Employee_Qualification from Employee entity class [OnetoManny and ManytoOne bidirectional] Employee emp =(Employee) session.createQuery("from Employee where empId='10'").uniqueResult(); Employee_Qualification newQ1 = new Employee_Qualification(); newQ1.setQualification("ECE"); List<Employee_Qualification> q1 = emp.getQualifications(); q1.add(newQ1); emp.setQualifications(q1); session.save(q1); session.getTransaction().commit();
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 = NSURL.fileURLWithPath("/Applications/") var error : NSError? = nil let folderContents: [AnyObject]? = fileManager.contentsOfDirectoryAtURL(folderURL!, includingPropertiesForKeys:nil, options:NSDirectoryEnumerationOptions(), error:&error) class tonik: NSObject, NSTableViewDataSource { func numberOfRowsInTableView(tableView: NSTableView) -> Int { folderContents?.count } func tableView(tableView: NSTableView, objectValueForTableColumn tableColumn: NSTableColumn?, row: Int) -> AnyObject? { folderContents[row] } }
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 functions are implemented.
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 reason for this, but i will give one idea. just assign _pageindex value after this statement,like indexpath.row or may be tag value what youwant to assign, Then the things are going good... njoy...
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 certificate which i generated for production apns on my server. if i send notifications now to that certificate will notifications work or won't work. i was confused totally after having lot of discussion with my friend. in my point of view they won't work,but i am unable to clarify him clearly,let me know what is process once we send a notification to apple server by using particular certificate. whether it looks fro bundle identifiers or any thing thankyou......
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/> cons 400 <br/> inj 800 <br/> Like this I want to get in JSP: cons inj <br/> 200 300 <br/> 500 200 <br/> 400 800 <br/> I want to sort out these two in a column. I do I get it in JSP.
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(); if(month==1 && day==1) { document.getElementById('xx').style.visibility='visible'; } else { document.getElementById('xx').style.visibility='hidden'; } } </script> HTML: <input type="image" SRC="/Patankar/PNH/images/click_anim.gif" id="xx" id="return1" onClick='today();' ALT="Submit Form" style="visibility:hidden;display:none" > I tried this code but nothing happened. Please tell me my mistake.
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 there any other alternative way to solve this problem in Maths or Computer Science/binary logic?
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 {                      new DbUtilsBeanListHandlerImpl();     DbUtils.loadDriver(driver);     Properties connectionProperties = new Properties();     connectionProperties.put("user", userName);     connectionProperties.put("password", password);     conn = DriverManager.getConnection(url, connectionProperties);     QueryRunner query = new QueryRunner();           resultListMap = query.query(conn, dbQuery,  new MapListHandler());               } catch (SQLException se) {     logger.error("SQLException to connect Database "+se.getMessage(), se); } finally {     DbUtils.closeQuietly(conn); } How to fetcha CLOB object more then 32k using dbUtils?
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 event. The XAML code follows: <DataGrid x:Name="transactionsDataGrid" Grid.Row="3" AutoGenerateColumns="False" EnableRowVirtualization="True" ItemsSource="{Binding}" RowDetailsVisibilityMode="VisibleWhenSelected" RowHeaderWidth="0" Padding="10,0,0,0" AlternatingRowBackground="#FF888888" GridLinesVisibility="Horizontal" SelectionUnit="FullRow" RowBackground="#FFCCCCCC" VerticalAlignment="Top" SelectedIndex="0" HeadersVisibility="Column" Background="#FF292929" Height="355" SelectionChanged="TransactionsDataGrid_SelectionChanged" CanUserAddRows="false" Margin="5,0,5,0" Loaded="DataGrid_RowLoaded"> <DataGrid.Columns> <DataGridTextColumn x:Name="tranDateColumn" Binding="{Binding TranDate, StringFormat=MM/dd/yyyy}" Header="Date" Width="90" IsReadOnly="True"/> <DataGridTextColumn x:Name="tranDescriptionColumn" Binding="{Binding TranDescription}" Header="Description" Width="*" IsReadOnly="True"/> <DataGridTextColumn x:Name="tranCategoryColumn" Binding="{Binding TranCategory}" Header="Category" Width="340" IsReadOnly="True"> <DataGridTextColumn.ElementStyle> <Style TargetType="TextBlock"> <!--<Setter Property="HorizontalAlignment" Value="Right" />--> <Setter Property="ToolTip" Value="{Binding Path=TranCategory}"/> </Style> </DataGridTextColumn.ElementStyle> </DataGridTextColumn> <DataGridTextColumn x:Name="tranNotesColumn" Binding="{Binding TranNotes}" Header="Notes" Width="120" IsReadOnly="True"/> <DataGridCheckBoxColumn x:Name="tranTaxColumn" Binding="{Binding TranTax}" Header="Tax" Width="SizeToHeader" IsReadOnly="True"/> <DataGridCheckBoxColumn x:Name="tranClearedColumn" Binding="{Binding TranCleared}" Header="Cleared" Width="SizeToHeader" IsReadOnly="True" /> <DataGridTextColumn x:Name="tranDepositColumn" Binding="{Binding TranDeposit}" Header="Deposit" Width="80" IsReadOnly="True"/> <DataGridTextColumn x:Name="tranWithdrawlColumn" Binding="{Binding TranWithdrawl}" Header="Withdrawal" Width="80" IsReadOnly="True" /> <DataGridTextColumn x:Name="tranBalanceColumn" Binding="{Binding TranBalance}" Header="Balance" Width="80" IsReadOnly="True"/> </DataGrid.Columns> </DataGrid> As you can see I have tried to use the Loaded event to access the row, however, there is no row available to dynamically change for this event. I have tried the LoadingRow event, however, when attempting to use the very popular datagrid helper extension "DataGridHelper", I get a NullReferenceException in the GetCell method on the line: presenter = GetVisualChild<DataGridCellsPresenter>(row); the row value is correct, but the presenter value is null. public static DataGridCell GetCell(this DataGrid grid, DataGridRow row, int column) { if (row != null) { DataGridCellsPresenter presenter = GetVisualChild<DataGridCellsPresenter>(row); if (presenter == null) { grid.ScrollIntoView(row, grid.Columns[column]); presenter = GetVisualChild<DataGridCellsPresenter>(row); } DataGridCell cell = (DataGridCell)presenter.ItemContainerGenerator.ContainerFromIndex(column); return cell; } return null; } Not sure where to go at this point and have searched all over the web for an answer. I'd really appreciate any help
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 {$+.trim() -ne "" } | Out-File Temp.txt (Get-Content Temp.txt) | Select-String -pattern "#EXTINF:0" -notmatch | Out-File first.txt (Get-Content first.txt) | Select-String -pattern "#EXTM3U" -notmatch | Out-File final.txt Copy-Item (Get-Content final.txt $Directory Still needs alot of cleanup and much improvement and possibly a gui interface but I am working on that stuff.
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 $PlaylistName | ? { $_ -and (Test-Path $_) } | Out-File Temp.txt Get-Content Temp.txt | Copy-Item -Destination $Directory write-host "Operation Completed." While it is still a little clunky it works. I am wondering if there is a way to display some sort of progress bar during the file copy process or even display the file names as it copies them. Also it would be nice if I could make the script let the user select the playlist name from anywhere on the drive and select the destination directory using windows explorer. I know that stuff is way above my head at the moment but I would love to learn that kind of thing from powershell if it is at all possible. Thanks for all the help so far. I like the idea of displaying the song names without the extension even if I do not need it for the opresent script.l I may have a use for it in the future. Possibly even in an imporvement to this script once I clean it up and make it look "Pretty"
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 absolutely necessary (though if you are still in grade school, music theory or other music elective classes would be helpful [depending on the school and how much you are willing to apply yourself/pay attention]); YouTube should have a myriad of view-hungry teachers and various styles of presenting the information. For something a little more professional (but still not too pricey), a service like Google Helpouts should be able to answer those random questions that you want super-interactive answers to....and of course, we at music.sx are always willing to enlighten you whenever you think you might need it :) Books are an excellent, especially since notation isn't one of those things that has changed a whole lot over the past several decades. And any website devoted to music theory info is worth a look or two! Here are some I've found (listed in no particular order) [though most of these go farther than just reading music]: musictheory.net teoria.com music-theory-for-musicians.com A page on 8notes.com that goes over the fundamentals of notation, and then some "The Basics of Reading Sheet Music" on readsheetmusic.info basicmusictheory.com (This goes way farther than you probably intend to go) Keep in mind that using what you learn is key to really processing and understanding (and remembering!) it all. Writing your own melodies or transcribing (trying to write in musical notation) existing melodies is a great way to exercise your new knowledge; some great free notation tools (there are many unfree ones, Finale and Sibelius being the primary products) that will even play back what you've written for you. Musescore is what I use when I'm not using Finale (which is usually when I'm on my Ubuntu laptop --yay for multi-platform sofware), but if you're reluctant to do any downloading/installing, Noteflight is one browser-based notation application that I know of (I've never used it myself, but it's been highly acclaimed). And, as the genius <PERSON> has suggested, you can also follow along with others' work as well. Both MuseScore and Noteflight (I believe) have places where you can upload your own scores and listen to others', which is a great (and fun) way to share music! I would recommend having some sort of keyboard instrument (piano recommended) at hand to mess around on while you're trying to figure out what you're reading/hearing. (Notice that I didn't say "learning to play piano"... You can learn to play whatever you want [and learning to play something is recommended, because music. :D ], but keyboard instruments are undoubtedly the easiest for visualization.) Enjoy!
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 little longer I see how in a special case with real scalars I only see the unitary option. I really like to see how changing scalar field changes results.
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: 100, tooltip: { 'enabled': false }, slide: sliderOnSlide, tickPlacement: 'none', showButtons: false, smallStep: 1, largeStep: 1 }); var slider = element.data('kendoSlider'); slider.wrapper.find('.k-draghandle').empty().html('<span class="sliderTip">0%</span>'); function sliderOnSlide(e) { $('.k-draghandle.draggerOn .sliderTip').empty().text(e.value.toString() + '%'); } I imagine this can be accomplished more cleanly and reliably with Knockout, but so far I've not been successful. I've attempted to get at the draghandle by using a Knockout custom binding handler: <input class="slider col" data-bind="kendoSlider: { value: currValue, enabled: enabled, min: 0, max: 100, tickPlacement: 'none', smallStep: 1 }, sliderTip: {}" /> var viewModel = function () { this.currValue = ko.observable(0); this.enabled = ko.observable(true); this.width = ko.observable(); }; ko.bindingHandlers.sliderTip = { init: function(element, valueAccessor) { var dragger = $(element).closest('.k-slider').find('.k-draghandle'); dragger.empty().html('<span class="sliderTip">0%</span>'); } }; ko.applyBindings(new viewModel()); I've been able to insert my custom tooltip, but it's not displaying, and I can't figure out how to get it updating dynamically. My attempts to shoehorn my sliderOnSlide function into Kendo-Knockout have been unsuccessful. Would be delighted to get some help on this one. Here's a JSFiddle I've been experimenting with that contains the code listed above and the corresponding HTML/CSS: http://jsfiddle.net/MontiDesign/DuZK3/17/
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 a hitch. And they work well with Knockout. I found this fiddle, and adapted it to my own needs: <button data-bind="click: $root.addThis">Add a Slider</button> <div id="wrapper" data-bind="foreach: sliders"> <div class="sliderContainer"> <div class="checkbox"> <input type="checkbox" class="checkbox" data-bind="checked: enabled" /> <span class="sansSerif">Charity Name</span> </div> <div class="slider col" data-bind="slider: currValue, sliderOptions: { min: 0, max: 100, range: 'min', value: 0 }"></div> <input class="sliderBox col sansSerif" type="text" data-bind="value: currValue, enabled: enabled, valueUpdate: 'afterkeydown'" /> </div> </div> $(function () { function SliderViewModel() { var self = this; self.sliders = ko.observableArray(); self.addThis = function() { var s = self.sliders; s.push(new CreateSlider()); } }; ko.bindingHandlers.slider = { init: function(element, valueAccessor, allBindingsAccessor) { var options = allBindingsAccessor().sliderOptions || {}; $(element).slider(options); $('.ui-slider-handle', element).append('<span data-bind="text: currValue">0</span>%'); ko.utils.registerEventHandler(element, 'slidechange', function(event, ui) { var observable = valueAccessor(); observable(ui.value); }); ko.utils.domNodeDisposal.addDisposeCallback(element, function () { $(element).slider("destroy"); }); ko.utils.registerEventHandler(element, 'slide', function (event, ui) { var observable = valueAccessor(); observable(ui.value); }); }, update: function (element, valueAccessor) { var value = ko.utils.unwrapObservable(valueAccessor()); if (isNaN(value)) value = 0; $(element).slider('value', value); } }; ko.applyBindings(new SliderViewModel()); $(document).on('mouseup touchend', function () { if ($('.ui-slider-handle').hasClass('ui-state-focus')) { $('.ui-slider-handle.ui-state-focus').removeClass('ui-state-focus'); } }); }); function CreateSlider() { var self = this; self.currValue = ko.observable(0); self.enabled = ko.observable(true); } Full example is available at http://jsfiddle.net/MontiDesign/Sb4qG/4/
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', '$trignum_g-1', '$x!=0', '$x!=1', '$x==1', '0', '0x0', '0x00', '0x0000', '0x00000000', '0x00000FFFF', '0x0000FFFF', '0x0D', '0x10', '0x1000', '0x10000000', '0x11001111', '0x11111100', '0xffc', '0xffffffff', '1', '1 clock cycle for generating the MSB', '10', '100', '101', '102', '103', '104', '115', '1156', '116', '117', '118', '1188', '119', '1192', '1196', '12', '120'] This list is written in text file using this code : thefile = open('test.txt', 'w') for item in thelist: thefile.write("%s\n" % item) I want to read the list again. So I am using this code : with open('test.txt') as f: content = f.readlines() content = [x.strip() for x in content] The list that I am obtaining is correct but the extracted strings contain extra quotes that I want to remove. This is the list that I obtained : ['','"0=SYSEV,1=APPEV,2:3=VECEV"','"ASEN"+$y','"FALSE"',....,'0x0000FFFF'] To remove the extra quotes, I used ast.literaleval() but I got this error : File "/home/ubuntu/anaconda3/lib/python3.6/ast.py", line 35, in parse return compile(source, filename, mode, PyCF_ONLY_AST) File "<unknown>", line 1 "ASEN"+$y ^ SyntaxError: unexpected EOF while parsing It seems that it removes the single quotes for all elements of the list even the one that we don't need to remove their quotes. Any better ideas ?
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 : from multilabelencoder import multilabelencoder def init(): global model # Call the custom encoder to be used dfor unpickling the model encoder = multilabelencoder.MultiColumnLabelEncoder() # Get the path where the deployed model can be found. model_path = os.path.join(os.getenv('AZUREML_MODEL_DIR'), 'k_means_model_45.pkl') model = joblib.load(model_path) Then the deployment was successful. One more important thing is I had to use the same pip package (multilabelencoder) in the training pipeline as here : from multilabelencoder import multilabelencoder pipe = Pipeline([ ("encoder", multilabelencoder.MultiColumnLabelEncoder(columns)), ('k-means', kmeans), ]) #Training the pipeline trainedModel = pipe.fit(df)
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 val listener = object : ResultListener { override fun onSuccess(response: Any?, statusCode: Int?) { Log.d("apps", "onSuccess: $response") } override fun onFailed(response: Any?, statusCode: Int?) { Log.d("apps", "onFailed: $response") } } getResults(listener) private fun getResults(resultListener: ResultListener) { resultListener.onSuccess("Success Listener Invoked", 200) resultListener.onFailed("Failed Listener Invoked", 200) } I like the second solution using listener.
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 item into the collection with specified index foreach (DataRow row in dt.Rows) { int id = Convert.ToInt32(row["ID"]); string name=row["Name"].ToString(); comboBox1.Items.Insert(id,name); } Always index should start from 0 (Zero). Easy way to add values to combobox comboBox1.DataSource=dt; comboBox1.DisplayMember = "Name"; comboBox1.ValueMember = "ID";
cc4cb094ad6050d40fee90eec07603667c3ebf895ff5dd58952b5c07aa3798fa
['9bd2336f60c2473d83a2f334d37549af']
не знаю, как правильно будет обработать загрузку URL ImageView в функции loadPhotoIntoImageView не используя библиотки вроде <PERSON>. С <PERSON> все прекрасно работает. class PhotosViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) { private val imageViewPhoto: ImageView = itemView.findViewById(R.id.imageViewPhoto) private val textViewTitle: TextView = itemView.findViewById(R.id.textViewTitle) fun bind(photo: Photo) { textViewTitle.text = photo.title loadPhotoIntoImageView(photo.url, imageViewPhoto) } private fun loadPhotoIntoImageView(url: String, imageView: ImageView) { //Picasso.get().load(url).into(imageViewPhoto) } }
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 in scenes with motion and a bitrate of almost 0 in most scenes (like a buffer or so)? Thank you
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 company's table: company_contact id id_ref_company id_ref_contact 1 1 2 2 2 1 3 2 4 4 3 1 5 4 2 i like to search t_company.company_name and t_contact.fullname with keyword search When its found in t_company then look in company_contact.id_ref_contact for contacts When its found in t_contact then look in company_contact.id_ref_company for companys example search: 'de vries' match t_contact.id 1 and t_company.id 4 found in t_contact so get from company_contact the id_ref_company id's found in t_company so get from company_contact the id_ref_contact id's result should be 3 results: t_contact.id t_contact.fullname t_company.id t_company.company_name 1 <PERSON> 2 <PERSON> 1 <PERSON> 3 AH 2 <PERSON> 4 Vries BV is it possible to do this in one query?
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; display:inline-block; } <IP_ADDRESS>-webkit-scrollbar { width: 20px; } <IP_ADDRESS>-webkit-scrollbar-track { background-color: #e8eae9; border: 5px solid #d0dad9; } <IP_ADDRESS>-webkit-scrollbar-thumb { background-color: #a5d7de; border-left: 5px solid #d0dadb; border-right: 5px solid #d0dadb; } <IP_ADDRESS>-webkit-scrollbar-thumb:hover { background-color: #7cadb4; } <IP_ADDRESS> scrollbar-track-piece { color: #red; } tbody,thead,tr,th { direction:ltr ; } </style>
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> <4 blank lines> line 2 <1 blank line> <2 blank lines> line 3 That is going to make my page much longer than it needs to be and will just cause an unpleasant page. Is there anyway I can make it where only 1 new line can be added between text lines, for example line 1 <1 blank line> line 2 <1 blank line> line 3 Thank you for any help in advance!
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 code in my view file... {% if auth.renderFriendShip("{{auth.id}}", "{{user.id}}", 'isThereFriendship') == 0 %} <button class="friendBtn add" data-uid="{{user.id}}" data-type="addFriend">Friend</button> <button class="request_pending hidden" disabled>Request Pending</button> {% else %} <button class="friendBtn unfriend" data-uid="{{user.id}}" data-type="unfriend">Unfriend</button> <button class="friendBtn add hidden" data-uid="{{user.id}}" data-type="addFriend">Add as friend</button> <button class="request_pending hidden" disabled>Request Pending</button> {% endif %} and my user model... public function renderFriendShip($user_one, $user_two, $type) { if(!empty($user_one) || !empty($user_two) || !empty($type)) { switch($type) { case 'isThereRequestPending': $matchThese = ['user_one' => "$user_one", 'user_two' => "$user_two", 'friendship_official' => '0']; $orMatchThese = ['user_one' => "$user_two", 'user_two' => "$user_one", 'friendship_official' => '0']; $query = $this->friendsList() ->where($matchThese) ->orWhere($orMatchThese) ->get() ->count(); return $query; break; case 'isThereFriendship': $q = $this->friendsList() ->where(function($query) use ($user_one, $user_two) { return $query->where(['user_one' => $user_one, 'user_two' => $user_two, 'friendship_official' => '1']); }) ->orWhere(function($query) use ($user_one, $user_two) { return $query->where(['user_one' => $user_two, 'user_two' => $user_one, 'friendship_official' => '1']); }) ->get() ->count(); break; } return var_dump($user_two); } else { return "Failed"; } } Thank you for any possible advice you can give me. I have been searching for hours now and I haven't found a solution.
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(); } function masterProcess() { console.log(`Master ${process.pid} is running`); for (let i = 0; i < numCPUs; i++) { console.log(`Forking process number ${i}...`); cluster.fork(); } process.exit(); } function childProcess() { console.log(`Worker ${process.pid} started and finished`); process.exit(); }
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.restapiexample.com/api/v1/employees") .then(response => { return response.data; }); } app.listen(app.get("port"), () => console.info("Application listening on port " + app.get("port")) );
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 the output is this: 1 2 3 4 5 loop finished
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 like "HP%"' get name My output looks like this: Name="HP1C0BCA (HP Officejet Pro 276dw MFP)" Name="HP Officejet Pro L7500 Series" Name="HP Officejet Pro 276dw MFP PCL 6" You can imagine how you can play with this. the "%%B" portion puts all of the output of /VALUE (including spaces) into the %2 %%A captures the object id, which becomes %1 which is handy if you use this to log all sorts of information from WMI. You don't have to worry about the Unicode carriage return anymore. The big advantage of this approach is that you have a clever batch file which overcomes the limitations that wmic gives you when using it inside a script, and you can use it for anything. you can use the STDOUT of the batch file as the parameter for anything else, even as input to wmic!
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 = array( 'Title' => 'Varchar(255)', 'URLSegment' => 'Varchar(512)', 'IsPublished' => 'Boolean', 'IsPublic' => 'Boolean', 'IsBooked' => 'Boolean', 'MaxDuration' => 'Int', 'PricePoint' => 'Int', 'Summary' => 'HTMLText', 'Body' => 'HTMLText', 'Sort' => 'Int' ); private static $has_one = array( 'FileAttachment' => 'File' ); private static $summary_fields = array( 'Title' => 'Name', 'URLSegment' => 'URLSegment', 'IsPublished' => 'Published', 'IsBooked' => 'Booked', 'Events.Count' => 'List of Events', 'Categories.Count' => ' of Categories' ); static $has_many = array( 'Events' => 'MyEvent' ); static $belongs_many_many = array( 'Categories' => 'MyCategory' ); ... } MyActivityPage: class MyActivityPage extends Page{ public function getCMSFields(){ $fields = parent<IP_ADDRESS>getCMSFields(); $GridFieldConfig = GridFieldConfig_RecordEditor<IP_ADDRESS>create(); $fields->addFieldToTab('Root.Courses', GridField<IP_ADDRESS>create( 'FileAttachment', 'Activity List', MyActivity<IP_ADDRESS>get()->filter(['IsPublished' => 1]) ->setQueriedColumns([ 'Title', 'URLSegment', 'IsPublished' ]), $GridFieldConfig ) ); return $fields; } ... }
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(); ... $fields->push(AutoCompleteField<IP_ADDRESS>create('StudentGroup_Name', 'Company name *','',null,null,'UserCompany','CompanyName')->setAttribute('required','required')); ... } then, my dataobject is as follows: class UserCompany extends DataObject{ private static $db = [ 'CompanyID' => 'Int', 'CompanyName' => 'Varchar(512)' ]; private static $summary_fields = [ 'CompanyID' => 'CompanyID', 'CompanyName' => 'CompanyName' ]; private static $default_sort = 'CompanyName ASC'; }
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 are conflicts, resolve them. For more information, see "Addressing merge conflicts". Commit the merge. Push the merge to your GitHub repository. git push origin master
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/reference/en-US/html_single/#queryhql-joins
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, col7, col17, col18 a, b, c, 145, 88 e, f, g, 101, 96 So col17 of file_b is added to file_a as col18 when the contents of col2, col6 and col7 match. I tried this: awk -F, 'NR == FNR {a[$2,$6,$7] = $17;next;} {if (! (b = a[$2,$6,$7])) b = "N/A";print $0,FS,b;}' file_a.csv file_b.csv > out.csv The output looks like this: col2, col6, col7, col17, , col18 a, b, c, 145 , 88 e, f, g, 101 , 96 So the column 17 from file_b I am trying to add does get added but shows up on a new line. I think this is because there are carriage returns after each line of file_a and file_b. In Notepad++, I can see CRLF. But I can't get rid of them. Also, I would rather not go through two steps: getting rid of carriage returns first and then merging. Instead, if I can bypass the carriage returns during the merge, it will be much faster. Also, I will appreciate it if you could tell me how to get rid of the spaces before and after the comma separating the merged column. Note that I put spaces between the columns and commas for the other columns for better readability. That is not how it is in the actual files. But there are indeed spaces between col17 and "," and col18 in the merged file and I don't know why. If you insist on marking this as a duplicate, kindly explain in a comment below how the answers to the previous question(s) address my issue. I tried figuring it out from those previous similar questions and I failed.
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,ColB" mycsvfile.csv The -i will ensure that sed will edit in-place, which means sed will overwrite the file with the header at the top. This is risky. If you want to create a new file instead, do this sed 1i"ColA,ColB" mycsvfile.csv > newcsvfile.csv
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. I do not know why the searchbar-wrapper is not responsive. /*essentials css */ body { margin: 0; padding: 0; font-family: 'Roboto', sans-serif; font-weight: 400; line-height: 1.43; color: #484848; max-width: 100%; overflow-x: hidden; } p { font-size: 16px; margin: 0; padding: 0; } a:link { font-size: 16px; text-decoration: none; } a:visited { text-decoration: none; } h1,h2,h3,h4,h5,h6,ul,ol,li{ margin: 0; padding: 0; } ul,ol{ list-style-type; } ::selection { color: #fff; background-color: #333; } ::-moz-selection { color: #fff; background-color: #333; } /*-----------Top-Nav-------- */ .top-nav { position: fixed; width: 100%; border-bottom: 1px solid #c9c9c9; float: left; display: block; height: 95px; background: #fff; z-index: 99999999999; } .top-nav .logo{ width: 100%; float: left; display: block; height: 95px; border-right: 1px solid #e9e9e9; } .top-nav .logo img { width: 100%; padding: 14px 0; transition: all .9s; -webkit-filter: grayscale(0%); } .top-nav .logo a:hover img { -webkit-filter: grayscale(100%); } /*-----------Top-Nav-Search-------- */ .top-nav .search-container { float: left; width:100%; display:block; padding:22px 0; } .top-nav form{ position:relative; display:block; } .top-nav input[type="text"] { width: 100%; background: #fff; padding: 10px 12px; border: 1px solid #e1e1e1; border-right: none; color: #888; font-size: 14px; height:42px; } .top-nav .search-container button { float: right; padding: 8px 15px; background: orange; font-size: 17px; height: 42px; border: none; cursor: pointer; position: absolute; right: 0; color: #fff; } .top-nav .search-container button:hover { background: #ccc; } /*-----------Top-Nav-Navigation-------- */ .navigation{ width: auto; float: right; display: block; } .top-nav ul { float: right; padding: 35px 0; margin: 0; width: auto; display: block; } .top-nav ul li { list-style: none; margin: 0 34px; display: inline-block; } .top-nav ul li a { color: #777; font-size: 16px; font-weight: 400; text-transform: capitalize; letter-spacing: .5px; transition: all .9s; } .top-nav ul li a:hover { color: orange; } /*-----------Slideshow----------- */ .slideshow-container { width: 100%; position: relative; margin: auto; float: left; display: block; margin-top: 94px; } .slideshow-container .slider-text{ width:100%; float:left; display:block; background:#008080; height:510px; } .slideshow-container .slider-text h1 { color: #fff; font-weight: 400; text-align: center; width: 100%; display: block; font-size: 35px; font-weight: 600; position: absolute; top: 30%; } .slideshow-container .slider-text p { color: #fff; font-size: 17px; text-align: center; width: 100%; display: block; font-weight: 400; letter-spacing: 0.5px; position: absolute; top: 50%; } .slideshow-container .prev, .slideshow-container .next { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 11px 18px; margin-top: -22px; color: white; font-weight: bold; font-size: 18px; transition: 0.6s ease; border-radius: 48px; height: 48px; width: 48px; background: rgba(0,0,0, 0.4); } .slideshow-container .next{ right: 16px; } .slideshow-container .prev{ left: 16px; } .slideshow-container .prev:hover, .slideshow-container .next:hover { background-color: rgba(0,0,0,1); text-decoration:none; } /*-----------Slideshow-dot----------- */ .dot-area{ width:100%; float:left; display:block; padding:20px 0; background:orange; } .dot-area .dot { cursor: pointer; height: 15px; width: 15px; margin: 0 5px; background-color: #f9f9f9; border-radius: 50%; display: inline-block; transition: background-color 0.6s ease; } .dot-area .active, .dot-area .dot:hover { background-color: #008080; } .fade { -webkit-animation-name: fade; -webkit-animation-duration: 1.5s; animation-name: fade; animation-duration: 1.5s; } @-webkit-keyframes fade { from { opacity: .4 } to { opacity: 1 } } @keyframes fade { from { opacity: .4 } to { opacity: 1 } } @media only screen and (max-width: 300px) { .prev, .next,.text {font-size: 11px} } /*-----------your-name----------- */ .your-area{ width:100%; float:left; display:block; background:#003333; } .your-area h1{ padding:100px 0; font-size:34px; color:#fff; text-align: center; font-weight:600; } .your-area h1 span{ font-size:42px; text-transform:uppercase; } /* motto */ .row{ position: : relation; max-width: 970px; height: :auto; margin:0 auto; } @media all and (max-width:1000px){ .row{ padding: 0 15px; box-sizing: :border-box; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; } } #moto { font-size: 48px; font-weight: 300; color:#484848; padding: 60px 30px 10px; letter-spacing: 0.8px; } #moto span{ color:#FFA500 !important; font-weight: 700; } /* Searchbar CSS */ #searchbar-wrapper{ position:relative; width: 100%; height:auto; margin-left: 30px; } #searchbar{ position:relative; width: 100%; height:auto; } #searchbar input{ font-size: 19px; outline: none; } #searchbar input [type="text"]{ padding:30px 15px; width: 770px; display: inline-block; border: 1px solid #ccc; } #searchbar input[type="text"]:focus{ padding:19px 15px 17px; border-bottom: 3px solid #FFA500; transition: all 0.3s ease; -webkit-transition: all 0.3s ease; -moz-transition:all 0.3s ease; -o-transition: all 0.3s ease; } #searchbar input[type="submit"]{ width:200px; display: inline-block; padding: 10px 0; border: none; color: #fff; background-color: #FFA500; cursor: pointer; transition: all 0.3s ease; -webkit-transition: all 0.3s ease; -moz-transition:all 0.3s ease; -o-transition: all 0.3s ease; border-top-right-radius: 3px; -moz-border-top-right-radius:3px; border-bottom-right-radius: 3px; -webkit-border-bottom-right-radius: 3px; -moz-border-bottom-right-radius: 3px; } #searchbar input[type="submit"]:hover{ background-color: #FFA500; } /*:::::::::::::::::Responsive Media Query:::::::::::::::::::*/ @media only screen and (max-width:1279px){ .top-nav ul li { margin: 0 20px; } } @media only screen and (max-width:1023px){ } @media only screen and (max-width:979px){ .top-nav { height: 70px; } .top-nav .logo { height: 70px; } .top-nav .search-container { padding: 13px 0; } .top-nav ul li a { font-size: 14px; letter-spacing: 0; } .top-nav ul { padding: 24px 0; } .slideshow-container { margin-top: 68px; } .slideshow-container .slider-text h1 { width: 560px; font-size: 27px; } .slideshow-container .slider-text { height: 400px; } } @media only screen and (max-width:899px){ .slideshow-container .slider-text p { max-width: 600px; } .top-nav ul li { margin: 0 15px; } .your-area h1 { font-size: 18px; } .your-area h1 span{ font-size: 22px; } } @media only screen and (max-width:799px){ } @media only screen and (max-width:767px){ .top-nav { height: auto; } .top-nav .logo { height: auto; border:0; } .top-nav .logo img { width: 180px; margin: auto; display:block; } .top-nav .search-container { padding: 0; } .navigation { float: none; margin: auto; } .top-nav ul { float: none; padding: 12px 0; width: auto; display: table; margin: auto; } .top-nav input[type="text"] { height: 38px; } .top-nav .search-container button { height: 38px; } .slideshow-container { margin-top: 170px; } .slideshow-container .slider-text h1 { width: 100%; padding: 0 90px; } .slideshow-container .slider-text p { max-width: 100%; padding: 0 90px; } } @media only screen and (max-width:639px){ } @media only screen and (max-width:599px){ .slideshow-container .slider-text h1 { margin: 65px auto auto; } } @media only screen and (max-width:479px){ .top-nav ul li { margin: 0 9px; } .slideshow-container .slider-text h1 { padding: 0 85px; font-size: 16px; } .slideshow-container .slider-text p { padding: 0 78px; font-size:12px; } .slideshow-container .slider-text { height: 350px; } .slideshow-container .slider-text h1 { margin: 100px auto auto; } .your-area h1 { font-size: 13px; } .your-area h1 span { font-size: 14px; } } @media only screen and (max-width:359px){ .top-nav ul li { margin: 0 5px; } } !DOCTYPE html> <html> <head> <title>ElephantRoom</title> <meta charset="utf-8" /> <meta name"viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" /> <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:400,500" /> <link rel="stylesheet" type="text/css" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" /> <link rel="stylesheet" type="text/css" href="main.css" /> <link rel="stylesheet" type="text/css" href="bootstrap.min.css" /> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <!-- Top-NAV HTML--> <section class="top-nav"> <div class="col-md-2 col-sm-2 col-xs-12"> <div class="logo"> <a href="index.php"><img src="logo.png" alt="ElephantRoom"/></a> </div> </div> <div class="col-md-4 col-sm-4 col-xs-12"> <div class="search-container"> <form action="/action_page.php"> <input type="text" placeholder="Keywords.." name="search"> <button type="submit">Search</button> </form> </div> </div> <div class="col-md-6 col-sm-6 col-xs-12"> <div class="navigation"> <ul> <li><a href="#">Become a Host</a></li> <li><a href="#">Help</a></li> <li><a href="#">Sign Up</a></li> <li><a href="#">Log In</a></li> </ul> </div> </div> </section> <section class="slideshow-container"> <div class="mySlides fade"> <div class="slider-text"> <img src="img/slider-image1.jpg"/> <h1> why book an expensive hotel when you can book a cheap apartment</h1> <p><PERSON><PHONE_NUMBER><IP_ADDRESS>selection { color: #fff; background-color: #333; } <IP_ADDRESS>-moz-selection { color: #fff; background-color: #333; } /*-----------Top-Nav-------- */ .top-nav { position: fixed; width: 100%; border-bottom: 1px solid #c9c9c9; float: left; display: block; height: 95px; background: #fff; z-index: 99999999999; } .top-nav .logo{ width: 100%; float: left; display: block; height: 95px; border-right: 1px solid #e9e9e9; } .top-nav .logo img { width: 100%; padding: 14px 0; transition: all .9s; -webkit-filter: grayscale(0%); } .top-nav .logo a:hover img { -webkit-filter: grayscale(100%); } /*-----------Top-Nav-Search-------- */ .top-nav .search-container { float: left; width:100%; display:block; padding:22px 0; } .top-nav form{ position:relative; display:block; } .top-nav input[type="text"] { width: 100%; background: #fff; padding: 10px 12px; border: 1px solid #e1e1e1; border-right: none; color: #888; font-size: 14px; height:42px; } .top-nav .search-container button { float: right; padding: 8px 15px; background: orange; font-size: 17px; height: 42px; border: none; cursor: pointer; position: absolute; right: 0; color: #fff; } .top-nav .search-container button:hover { background: #ccc; } /*-----------Top-Nav-Navigation-------- */ .navigation{ width: auto; float: right; display: block; } .top-nav ul { float: right; padding: 35px 0; margin: 0; width: auto; display: block; } .top-nav ul li { list-style: none; margin: 0 34px; display: inline-block; } .top-nav ul li a { color: #777; font-size: 16px; font-weight: 400; text-transform: capitalize; letter-spacing: .5px; transition: all .9s; } .top-nav ul li a:hover { color: orange; } /*-----------Slideshow----------- */ .slideshow-container { width: 100%; position: relative; margin: auto; float: left; display: block; margin-top: 94px; } .slideshow-container .slider-text{ width:100%; float:left; display:block; background:#008080; height:510px; } .slideshow-container .slider-text h1 { color: #fff; font-weight: 400; text-align: center; width: 100%; display: block; font-size: 35px; font-weight: 600; position: absolute; top: 30%; } .slideshow-container .slider-text p { color: #fff; font-size: 17px; text-align: center; width: 100%; display: block; font-weight: 400; letter-spacing: 0.5px; position: absolute; top: 50%; } .slideshow-container .prev, .slideshow-container .next { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 11px 18px; margin-top: -22px; color: white; font-weight: bold; font-size: 18px; transition: 0.6s ease; border-radius: 48px; height: 48px; width: 48px; background: rgba(0,0,0, 0.4); } .slideshow-container .next{ right: 16px; } .slideshow-container .prev{ left: 16px; } .slideshow-container .prev:hover, .slideshow-container .next:hover { background-color: rgba(0,0,0,1); text-decoration:none; } /*-----------Slideshow-dot----------- */ .dot-area{ width:100%; float:left; display:block; padding:20px 0; background:orange; } .dot-area .dot { cursor: pointer; height: 15px; width: 15px; margin: 0 5px; background-color: #f9f9f9; border-radius: 50%; display: inline-block; transition: background-color 0.6s ease; } .dot-area .active, .dot-area .dot:hover { background-color: #008080; } .fade { -webkit-animation-name: fade; -webkit-animation-duration: 1.5s; animation-name: fade; animation-duration: 1.5s; } @-webkit-keyframes fade { from { opacity: .4 } to { opacity: 1 } } @keyframes fade { from { opacity: .4 } to { opacity: 1 } } @media only screen and (max-width: 300px) { .prev, .next,.text {font-size: 11px} } /*-----------your-name----------- */ .your-area{ width:100%; float:left; display:block; background:#003333; } .your-area h1{ padding:100px 0; font-size:34px; color:#fff; text-align: center; font-weight:600; } .your-area h1 span{ font-size:42px; text-transform:uppercase; } /* motto */ .row{ position: : relation; max-width: 970px; height: :auto; margin:0 auto; } @media all and (max-width:1000px){ .row{ padding: 0 15px; box-sizing: :border-box; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; } } #moto { font-size: 48px; font-weight: 300; color:#484848; padding: 60px 30px 10px; letter-spacing: 0.8px; } #moto span{ color:#FFA500 !important; font-weight: 700; } /* Searchbar CSS */ #searchbar-wrapper{ position:relative; width: 100%; height:auto; margin-left: 30px; } #searchbar{ position:relative; width: 100%; height:auto; } #searchbar input{ font-size: 19px; outline: none; } #searchbar input [type="text"]{ padding:30px 15px; width: 770px; display: inline-block; border: 1px solid #ccc; } #searchbar input[type="text"]:focus{ padding:19px 15px 17px; border-bottom: 3px solid #FFA500; transition: all 0.3s ease; -webkit-transition: all 0.3s ease; -moz-transition:all 0.3s ease; -o-transition: all 0.3s ease; } #searchbar input[type="submit"]{ width:200px; display: inline-block; padding: 10px 0; border: none; color: #fff; background-color: #FFA500; cursor: pointer; transition: all 0.3s ease; -webkit-transition: all 0.3s ease; -moz-transition:all 0.3s ease; -o-transition: all 0.3s ease; border-top-right-radius: 3px; -moz-border-top-right-radius:3px; border-bottom-right-radius: 3px; -webkit-border-bottom-right-radius: 3px; -moz-border-bottom-right-radius: 3px; } #searchbar input[type="submit"]:hover{ background-color: #FFA500; } /*<IP_ADDRESS><IP_ADDRESS><IP_ADDRESS><IP_ADDRESS><IP_ADDRESS><IP_ADDRESS><IP_ADDRESS><IP_ADDRESS>:Responsive Media Query<IP_ADDRESS><IP_ADDRESS><IP_ADDRESS><IP_ADDRESS><IP_ADDRESS><IP_ADDRESS><IP_ADDRESS><IP_ADDRESS><IP_ADDRESS>:*/ @media only screen and (max-width:1279px){ .top-nav ul li { margin: 0 20px; } } @media only screen and (max-width:1023px){ } @media only screen and (max-width:979px){ .top-nav { height: 70px; } .top-nav .logo { height: 70px; } .top-nav .search-container { padding: 13px 0; } .top-nav ul li a { font-size: 14px; letter-spacing: 0; } .top-nav ul { padding: 24px 0; } .slideshow-container { margin-top: 68px; } .slideshow-container .slider-text h1 { width: 560px; font-size: 27px; } .slideshow-container .slider-text { height: 400px; } } @media only screen and (max-width:899px){ .slideshow-container .slider-text p { max-width: 600px; } .top-nav ul li { margin: 0 15px; } .your-area h1 { font-size: 18px; } .your-area h1 span{ font-size: 22px; } } @media only screen and (max-width:799px){ } @media only screen and (max-width:767px){ .top-nav { height: auto; } .top-nav .logo { height: auto; border:0; } .top-nav .logo img { width: 180px; margin: auto; display:block; } .top-nav .search-container { padding: 0; } .navigation { float: none; margin: auto; } .top-nav ul { float: none; padding: 12px 0; width: auto; display: table; margin: auto; } .top-nav input[type="text"] { height: 38px; } .top-nav .search-container button { height: 38px; } .slideshow-container { margin-top: 170px; } .slideshow-container .slider-text h1 { width: 100%; padding: 0 90px; } .slideshow-container .slider-text p { max-width: 100%; padding: 0 90px; } } @media only screen and (max-width:639px){ } @media only screen and (max-width:599px){ .slideshow-container .slider-text h1 { margin: 65px auto auto; } } @media only screen and (max-width:479px){ .top-nav ul li { margin: 0 9px; } .slideshow-container .slider-text h1 { padding: 0 85px; font-size: 16px; } .slideshow-container .slider-text p { padding: 0 78px; font-size:12px; } .slideshow-container .slider-text { height: 350px; } .slideshow-container .slider-text h1 { margin: 100px auto auto; } .your-area h1 { font-size: 13px; } .your-area h1 span { font-size: 14px; } } @media only screen and (max-width:359px){ .top-nav ul li { margin: 0 5px; } } !DOCTYPE html> <html> <head> <title>ElephantRoom</title> <meta charset="utf-8" /> <meta name"viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" /> <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:400,500" /> <link rel="stylesheet" type="text/css" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" /> <link rel="stylesheet" type="text/css" href="main.css" /> <link rel="stylesheet" type="text/css" href="bootstrap.min.css" /> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <!-- Top-NAV HTML--> <section class="top-nav"> <div class="col-md-2 col-sm-2 col-xs-12"> <div class="logo"> <a href="index.php"><img src="logo.png" alt="ElephantRoom"/></a> </div> </div> <div class="col-md-4 col-sm-4 col-xs-12"> <div class="search-container"> <form action="/action_page.php"> <input type="text" placeholder="Keywords.." name="search"> <button type="submit">Search</button> </form> </div> </div> <div class="col-md-6 col-sm-6 col-xs-12"> <div class="navigation"> <ul> <li><a href="#">Become a Host</a></li> <li><a href="#">Help</a></li> <li><a href="#">Sign Up</a></li> <li><a href="#">Log In</a></li> </ul> </div> </div> </section> <section class="slideshow-container"> <div class="mySlides fade"> <div class="slider-text"> <img src="img/slider-image1.jpg"/> <h1> why book an expensive hotel when you can book a cheap apartment</h1> <p>Lorem ipsum dolor sit amet, consecteur adipiscing<br/> elit. Donec venenatis bibendum nunc ut convallis. Suspendisse in nunc unterdum quam pellentesque.</p> </div> </div> <div class="mySlides fade"> <div class="slider-text"> <img src="img/slider-image2.jpg"/> <h1>We have you covered anywhere you go in Africa</h1> <p>Lorem ipsum dolor sit amet, consecteur adipiscing<br/> elit. Donec venenatis bibendum nunc ut convallis. Suspendisse in nunc unterdum quam pellentesque.</p> </div> </div> <div class="mySlides fade"> <div class="slider-text"> <img src="img/slider-image3.jpg"/> <h1> We believe in a world with no frontier</h1> <p>Lorem ipsum dolor sit amet, consecteur adipiscing</p> </div> </div> <a class="prev" onclick="plusSlides(-1)">&#10094;</a> <a class="next" onclick="plusSlides(1)">&#10095;</a> </section> <br> <section class="dot-area" style="text-align:center"> <span class="dot" onclick="currentSlide(1)"></span> <span class="dot" onclick="currentSlide(2)"></span> <span class="dot" onclick="currentSlide(3)"></span> </section> <!-- Moto --> <div class="row"> <h1 id="moto"><span>Are you ready?</span> Explore Africa<br /> on Elephant Room.</h1> </div> <!-- SEARCHBAR--> <div id="searchbar-wrapper"> <div class="row"> <form method="GET" action="index.html" ID="searchbar"> <input type="text" name="destination" placeholder="Destination, city, address " /> <input type="submit" name="search" value="Search" /> </form> </div> </div> <!-- javascript import--> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script> var slideIndex = 1; showSlides(slideIndex); function plusSlides(n) { showSlides(slideIndex += n); } function currentSlide(n) { showSlides(slideIndex = n); } function showSlides(n) { var i; var slides = document.getElementsByClassName("mySlides"); var dots = document.getElementsByClassName("dot"); if (n > slides.length) {slideIndex = 1} if (n < 1) {slideIndex = slides.length} for (i = 0; i < slides.length; i++) { slides[i].style.display = "none"; } for (i = 0; i < dots.length; i++) { dots[i].className = dots[i].className.replace(" active", ""); } slides[slideIndex-1].style.display = "block"; dots[slideIndex-1].className += " active"; } </script> </body> </html> enter image description here
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 someone can help. I really do not know, maybe I have forgot few line of codes. /*essentials css */ body { margin: 0; padding: 0; font-family: 'Roboto', sans-serif; font-weight: 400; line-height: 1.43; color: #484848; } p{ font-size: 16px margin: 0; padding: 0; } a:link { font-size: : 16px; text-decoration: none; } a:visited{ text-decoration: none; } h1, h2, h3, h4, h5, h6, ul, ol, li { margin: 0; padding: 0; } ul, ol{ list-style-type; } <IP_ADDRESS>selection { color: #fff; background-color: #333; } <IP_ADDRESS>-moz-selection { color: #fff; background-color: : #333; } /* top- nap */ .top-nav { position:fixed; width:100%; height: auto; border-bottom: 1px solid #ccc; } .logo:link { color: #484848; display: inline-block; transition: : all 0.3s ease; -webkit-transition: all 0.3s ease; -moz-transition:all 0.3s ease; -o-transition: all 0.3s ease; border-right:1px solid #ccc; } .logo:visited{ color: #484848; } .logo:hover { background-color: #f1f1f1; } .logo img { position: relative; padding: 12px 18px; width: 100px; border-right: : 1px solid #ccc; vertical-align: : middle; } /* nav-search css */ #nav-search-wrapper { display: inline-block; width: 490px; height: 100%; } #nav-search-wrapper form input { padding: 22px 10px 18px 52px; width: 100%; border: none; outline: none; background-color: :red; } #nav-search-wrapper form input<IP_ADDRESS>-webkit-input-placeholder { color: orange; font-size:17px; } #nav-search-wrapper form input<IP_ADDRESS>-moz-placeholder { color: orange; } #nav-search-wrapper form input:-ms-input-placeholder { } #nav-search-wrapper form input:-moz-placeholder { color: orange; } <!DOCTYPE html> <html> <head> <title>ElephantRoom</title> <meta charset="utf-8" /> <meta name"viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" /> <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:400,500" /> <link rel="stylesheet" type="text/css" href="main.css" /> </head> <body> <!-- Top-NAV HTML--> <div class="top-nav"> <a href="index.html" class="logo"> <img src="logo.png" alt="ElephantRoom" /> </a> <div id="nav-search-wrapper"> <form method="GET" action="index.html"> <input type="text"name="search" id="nav-search" placeholder="Search"/> </form> </div> </div> </body> </html>
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 WHERE table_owner = p_owner AND table_name = p_name) --drop partitions older than specified retention preriod LOOP IF SYSDATE >= add_months(to_date(substr(partition_rec.high_value ,12 ,19) ,'YYYY-MM-DD HH24:MI:SS') ,p_retention_period) THEN execute_immediate('ALTER TABLE ' || p_owner || '.' || p_name || ' DROP PARTITION ' || partition_rec.partition_name); END IF; END LOOP; END purge_partitions; I am trying to add futher granularity to the loop statement so rather than just dropping partitions monthly, I'd like to extend this by days too. Also just FYI the records are fetched from a Config tabe which includes details of partitioned tables(table owner, name and retention period - data type NUMBER). Therefore, im not sure how to go about this. Any help is highly appreciated.
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 Australia/Sydney', comments => 'Running on the 17th of every month'); END; / Idea is to create a scheduled job which will run a package that drops partitions that are older than 6 months. Question is how can I create another package in PL/SQL Developer which will include the dbms_scheduler job? Any help is highly appreciated.
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: true, importLoaders: 2, localIdentName: '[name]__[local]___[hash:base64:5]' } }, { loader: require.resolve('postcss-loader'), options: { // Necessary for external CSS imports to work // https://github.com/facebookincubator/create-react-app/issues/2677 ident: 'postcss', plugins: () => [ require('postcss-flexbugs-fixes'), autoprefixer({ browsers: [ '>1%', 'last 4 versions', 'Firefox ESR', 'not ie < 9' // React doesn't support IE8 anyway ], flexbox: 'no-2009' }) ] } }, 'sass-loader' ] }) }, Of course would be nice to define postCSS loader above and reuse in both rules - for .css and .scss
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); memo.push(element); } else { if (typeof memo[index].id === 'number') { memo[index].id = [{ id: memo[index].id, type: memo[index].type }]; memo[index].type = 'multiple'; } memo[index].id.push({ id: element.id, type: element.type }); tempArray.push(null); } return memo; }, []); Example on jsbin
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 upcoming popup window) Step 5: reference in GET: {id of your group} Step 6: press sumbit You get JSON response with data on your group
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 looking at some code
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 caused by the fact that our OpenCV was not compiled with a support of FireWire. Could you please tell how is it possible to enable that support? Are there any additional libraries needed?
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 networks are often used in working with time series. Would that be what you are wondering about? Or maybe you have some other applications on your mind?
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 your form at which you want to display the error. You will have to output this JSON from your server side, the way you do when you respond to an Ajax request and this will itself mark the required field as invalid and show the errror message on mouse over of field. Hope this helps.
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 required (like in the handler of the button clicked): grid.getView().refresh(); The above code will invoke the column renderer function and this renderer function should be able to judge which background color and tool-tip to be applied at the grid column as per the current state of application. Hope this helps.
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 ; i < size ; i++) { SongInfo si = this->songs.at(i); int durata = this->getLengthInSeconds(si.getAddress().toString(QUrl::None)); out << "#EXTINF:" << durata << "," << ID3_GetArtist(&si.getTag()) << " - " << ID3_GetTitle(&si.getTag()) << endl; out << si.getAddress().toString(QUrl::None) << endl; } or even better, if songs is a QList: foreach(SongInfo si, songs){ int <PERSON><IP_ADDRESS>None)); out << "#EXTINF:" << durata << "," << ID3_GetArtist(&si.getTag()) << " - " << ID3_GetTitle(&si.getTag()) << endl; out << si.getAddress().toString(QUrl<IP_ADDRESS>None) << endl; } or even better, if songs is a QList: foreach(SongInfo si, songs){ int durata = this->getLengthInSeconds(si.getAddress().toString(QUrl<IP_ADDRESS>None)); ... }
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 will also need/want the libqt4-devel-doc-data package.
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"> <!-- endbuild --> But while running Grunt task above code is generated as : concat: { generated: { files: [ { dest: '.tmp\\concat\\assets\\css\\common_bom.min.css', src: [ '.\\app\\${theme}\\css\\style.css', '.\\app\\${theme}\\css\\component.css' ] } ] } } What I need is ,the value of ${theme} in generated file so that it can pick the css files from correct location for concat.
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.oneClick.submitOneClickDetails.listInvestOptions = angular.copy(investDtls); $http({ method : 'POST', url : '/investor/api/v1/oneclick', data : $scope.oneClick }).success(function(response) { $scope.oneClick.submitOneClickDetails.listInvestOptions = angular.copy(investDtls); //alert("success"); }); } }); Here I have some fields inside investDtls list and I want to copy the contents into another list(listInvestOptions) which is part of a POST body and I am accessing it like: $scope.oneClick.submitOneClickDetails.listInvestOptions But as per the above code snippet, list is getting copied after the POST operation. I want to perform the copy operation just before calling the POST block $scope.oneClick.submitOneClickDetails.listInvestOptions = angular.copy(investDtls); $http({ method : 'POST', url : '/investor/api/v1/oneclick', data : $scope.oneClick }) If I am proceeding as above, it will not work as $scope.oneClick.submitOneClickDetails.listInvestOptions part is not accessible unless POST block is exexuted. Hope I am clear from my side.. Any more clarifications most welcome.. :)
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' })), state('show', style({ opacity: 1, display: 'block' })), transition('hidden => show', [ animate('1s') ]), transition('show => hidden', [ animate('1s') ])
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> <mat-icon>menu</mat-icon> </button> <span> APP LOGO </span> </div> <div id="icons"> <ul> <li> <button mat-icon-button> <mat-icon>settings</mat-icon> </button> </li> <li> <button mat-icon-button> <mat-icon>help_outline</mat-icon> </button> </li> <li> <button> <mat-icon>person_outline</mat-icon> </button> </li> </ul> </div> </mat-toolbar-row> </mat-toolbar> I'm sure there are many other ways to do it as well.
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 heat and some minor artifacts on the screen in the past but nothing serious as far as I know. Everything could be resolved by rebooting or letting the MBP cool down a bit. I would like to identify the problem now. There are 3 possibilities I can think of right now: My graphics card is defect and shuts down after a few seconds. (But if thats true, I find it kind of hard to explain the HALF black screen) My LCD-Panel is defect and sends back wrong signals so the system shuts down??? (I not sure about that) My fan or/and thermal sensors are defect and forcing the graphics card to shut down. Can anyone point if I'm right or if there yet another reason for this. I'd be thankful for any hint or tips. Cheers, Per
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, compara com o que tu tem e feito ;)
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-ecbw6sEqkaL8AtISfhmxqw9lZgXqm4jK6_z-5lkW1NVxdv76IdLdBeKX/pub?gid=<PHONE_NUMBER>&single=true&output=csv
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 don't think a standard deviation will suffice. Which trend model is best to choose here or is there a better method?
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 the button selected YES/NO. Hope this helps.
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; lowercaseCharRange = [string rangeOfCharacterFromSet:[NSCharacterSet lowercaseLetterCharacterSet]]; if (lowercaseCharRange.location != NSNotFound) { textField.text = [textField.text stringByReplacingCharactersInRange:range withString:[string uppercaseString]]; return NO; } } } Hope this helps.
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="Wrong input. Please enter correct day (First day of the month)"; } } </script> </head> <body> <h2>Date Field Restrictions</h2> <h6> Enter a date: </h6> <input type="date" name="date" id="inpDate"> <button type="button" onclick="dateCheck()">Try it</button> <p id="errDisplay"></p> </body> </html>
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; padding: 10px; border: 1px solid #aaaaaa; } </style> <script> function allowDrop(ev) { ev.preventDefault(); } function drag(ev) { ev.dataTransfer.setData("text", ev.target.id); } function drop(ev) { ev.preventDefault(); var data = ev.dataTransfer.getData("text"); ev.target.appendChild(document.getElementById(data)); } </script> </head> <body> <p>Drag the W3Schools image into the rectangle:</p> <div id="div1" ondrop="drop(event)" ondragover="allowDrop(event)"></div> <br> <img id="drag1" src="images.jpg" alt="image can not be seen"draggable="true" ondragstart="drag(event)" width="300" height="68"> <div id="middle" style="height:50px;width:1200px;background-color:blue;margin-top:300px;"><p>This is a test div</p> </div> <div id="bottom" style="height:50px;width:1200px;background-color:yellow;margin- top:400px;"><p>This is another test div</p></div> </body> </html>
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|Keyboard&Menus - apply R# scheme. And the problem was fixed :)
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 projections) { var position = Create(book, actual, projection); position.TargetNett = projection.DailyProjectedNet.ToString(); yield return position; } }
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 references of Microsoft.Office.Interop.Excel by clicking on references tab in solution explorer, and then add new reference by right clicking on your project and add reference and in .net tab try to serach Microsoft.Office.Interop.Excel.
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 << "[" << boost<IP_ADDRESS>log<IP_ADDRESS>expressions<IP_ADDRESS>format_date_time< boost<IP_ADDRESS>posix_time<IP_ADDRESS>ptime >("TimeStamp", "%Y-%m-%d %H:%M:%S") << "]" << "[" << boost<IP_ADDRESS>log<IP_ADDRESS>expressions<IP_ADDRESS>attr<severity_level>("Severity") << "]" << " (" << boost<IP_ADDRESS>log<IP_ADDRESS>expressions<IP_ADDRESS>format_named_scope("Scopes", "%n") << ":" << " " << boost<IP_ADDRESS>log<IP_ADDRESS>expressions<IP_ADDRESS>smessage ); It works when I remove the format_named_scope line though. I am unsure how else to do this and this is the correct way according to the Boost Documentation . I do have all header files included also.
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 with my own dll. Why this only happens on Windows 7 and not 10 I am not sure, but I would guess it has to do with the kernel on Windows 7 and how it handles the way boost threads work.
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 the player left/right exactly 1 unit each time a key is pressed. How can I ensure that the player will always go to the center of the lane, no matter where they are in the move cycle? This is the Player_Movement code: public float mSpeed; private Rigidbody rb; // Start is called before the first frame update void Start() { rb = GetComponent<Rigidbody>(); } // Update is called once per frame void Update() { //For Moving Left if (Input.GetKeyDown(KeyCode.A)) StartCoroutine(MoveToPosition(rb.transform, new Vector3(transform.position.x - 1, transform.position.y, transform.position.z), mSpeed)); //For Moving Right if (Input.GetKeyDown(KeyCode.D)) StartCoroutine(MoveToPosition(rb.transform, new Vector3(transform.position.x + 1, transform.position.y, transform.position.z), mSpeed)); Debug.Log(transform.position); } public IEnumerator MoveToPosition(Transform transform, Vector3 position, float timeToMove) { var currentPos = transform.position; var t = 0f; while (t < 1) { t += Time.deltaTime / timeToMove; transform.position = Vector3.Lerp(currentPos, position, t); yield return null; } } Someone mentioned using a cooldown timer. Not letting the user move again until the timer reaches zero. But I need the player to be able to reverse his direction if they overshoot the desired lane. The obstacles will be coming at the player faster and faster as the game progresses, and the players sideways movement speed increases relative to the speed of the obstacles. Since the gameplay gets pretty frantic, I'd like the player to be able to correct their position on the fly and not have to wait for a cooldown timer. Any help is greatly appreciated.
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 hit by an oncoming obstacle that increases in speed over time. In regards to the player's left/right movement, I got it pretty close. But I'm having trouble getting precise positioning of the player. Sometimes when the player moves over a lane the position will sometimes be off by 0.1, and may start to stack up over time. i.e. Starting in the 0 position, move left, it stops at 0.9 or 1.1. This is the code so far - { public float speed; public float mleft = -0.7f; public float mright = 0.7f; private Rigidbody rb; // Start is called before the first frame update void Start() { rb = GetComponent<Rigidbody>(); } // Update is called once per frame void FixedUpdate() { if (Input.GetKeyDown("a")) { rb.velocity = new Vector3(mleft, 0, 0) * speed; StartCoroutine(stopLaneCH()); } Debug.Log(GetComponent<Transform>().position); if (Input.GetKeyDown("d")) { rb.velocity = new Vector3(mright, 0, 0) * speed; StartCoroutine(stopLaneCH()); } } IEnumerator stopLaneCH () { yield return new WaitForSeconds(0.5f); GetComponent<Rigidbody>().velocity = new Vector3(0, 0, 0); } } I've had to try and find a balance between the speed and the mleft/mright variables that would move the player 1 unit. I am still fairly new to Unity and programming, but any help with this problem is greatly appreciated. And I may even name my 3rd child after anyone that helps solve this problem.
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" style="color:#FFF9F9; font-size:20px; ">check_box_outline_blank </i> <p style="display: inline-block" class="rec">Most Recent</p> </div>
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() { this.internalVisible = false; this.$emit('resize'); } onWindowScroll() { console.log('HIT'); } beforeDestroy() { window.removeEventListener('resize', this.onWindowResize); window.removeEventListener('scroll', this.onWindowScroll); } Can someone guide me what is/may be happening?
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 windows 10 OS and then go to Programs and features -> uninstall a program -> isable some windows features -> untick checkbox "Internet Explorer 9 or 11(whichever version you have)" Hope you like the answer and works for you
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 <PERSON> , that is correct
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 so you will have a positive or negative number, if the case is the first then the variance in your original values is greater than the predicted values,etc.
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 keymap value for that (in my case i added ALT+2), do NOT use the python console under tool windows, for that it will focus on the python console but not the caret at it. (done with pycharm 2020.1.1 in a ubuntu 20.04 lts machine)
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('auth/refresh').catch(() => { this.$store.dispatch('auth/logout'); clearInterval(authTokenRefreshIntervalId); }); }, 30 * 1000); } // main.spec.js import Vue from 'vue'; import Vuex from 'vuex'; import { shallow, createLocalVue, mount } from '@vue/test-utils'; import Main from '@/main'; const localVue = createLocalVue(); jest.useFakeTimers(); describe('store-auth', () => { let store; let actions; let getters; beforeEach(() => { actions = { initialize: jest.fn(), refresh: jest.fn(), logout: jest.fn(), }; getters = { isAuthenticated: jest.fn(), }; store = new Vuex.Store({ modules: { auth: { namespaced: true, actions, getters, }, }, }); }); it('dispatch initialize on beforeCreate hook', () => { const wrapper = shallow(Main, { store, localVue }); expect(actions.initialize).toHaveBeenCalled(); }); it('dispatch refresh on beforeCreate hook every 30s', () => { const wrapper = shallow(Main, { store, localVue }); jest.runTimersToTime(30 * 1000); expect(actions.refresh).toHaveBeenCalled(); }); }); Jest say that the mocked function is not called. I tried with expect(setInterval).toHaveBeenCalled() and it pass the test. Where i'm wrong plz ?
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 some informations in the settings.js file previously builded. I know that i could delete the [contenthash], but i need to keep it for vendors chunk. How could i say to <PERSON> "If you see the settings chunk, don't append the contenthash to his name" ?
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_decoder = { .name = "sample", .type = AVCODEC_TYPE_VIDEO, .id = AVCODEC_ID_SAMPLE, // .priv_data_size = sizeof(COOKContext), .init = sample_decode_init, .close = sample_decode_close, .decode = sample_decode_frame, }; Where, .name -> specifies the short name of my decoder. .type -> is used to specify that it is a video decoder. .id -> is an unique id that i'm assigning to my video decoder. .init -> is a function pointer to the function in my decoder code that performs decoder related initializations .decode -> is a function pointer to the function in my decoder code that decodes a single frame, given the input data (elementary stream). .close -> is a function pointer to the function in my decoder that frees all allocated memory i.e. the memory allocated in init. However, my doubt is according to the above mentioned article, there is another field called .priv_data_size which hold the size of some context. Is it compulsory to have this field .priv_data_size because according to the above article, i need not define all the parameters of the structure AVCodec. Further i do not possess any such context for my decoder. However, when i go through the code of other available decoders in libavcodec of ffmpeg, i find that every decoder has defined this. Will my decoder work if i do not specify this? I'm unable to proceed because of this. please provide some guidance regrading the same. --Thanks in advance.
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 an Android.mk under myDecoder folder that i have added and placed the source code of my decoder and the compilation is successful and i'm able to run it in an emulator. Now, I have read that the new MediaCodec API in android allows us to access and use the codecs available in android source. My question is, now that i have integrated my decoder to android source code: Is it possible for me to use my decoder to decode an input stream and render it on the device screen? My decoder has a Function that should be invoked for decoding a stream. This function takes the path of the input stream as a parameter. Should i modify something in my source code of the decoder to match the requirements of the MediaCodec API. Any help regarding the same will be really helpful to me. -Regards.
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 Change advanced power settings. It should be under Processor power management.
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 an unused address then rebase a compiled DLL into a free memory space. To make things worse, a rebased DLL can no longer be shared. (see http://msdn.microsoft.com/en-us/magazine/cc163610.aspx) I haven't been very impressed with some of the optimizations in C# 3.5 JIT code. Simple things like bit twiddling that is necessary for compression are horribly inefficient (it refused to cache values in a CPU register and instead went to memory for every operation). I don't know why it would do this but it makes a huge difference and there is nothing I can do about it. Personally I think a good solution would be an Optimization Level (1-100) that you could set to tell JIT compiler how much time you think it ought to spend optimizing your code. The only other solution would be an AOT (Ahead of Time) compiler and then you lose many of the advantages of JIT code.
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 dropDownDefaultValue depends on other dates. If the other date is in 2006 I set the range to 2006 so the user is unable to select a date after 2006. Without a selected default date it is realy annoying cause it's always today. So here's a fiddle I tried to set the dropDownDefaultValue fiddle<div data-dojo-type="dijit.form.DateTextBox" data-dojo-props="dropDownDefaultValue:'2010-10-12'"></div> I'm using the dijit/dateTextBox documented here documentation DateTextBox Any ideas why It's not working?
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 would work.
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 and wonder if using it before attempting to reinstall windows would be a better plan. If so, I would welcome a link or instructions about what exact steps I should take. The odd thing is the install media was not product key specific. My product key is $199 bucks valid.
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 String addCustomer(@Valid Customer customer, BindingResult result, ModelMap map) { if (result.hasErrors()) { //add your other validations here. those which are not included in your bean validation //map.add(...); return "SignUpForm"; } else { return "Done"; } } Then in your front-end (.jsp,.xhtml,*.jsf,etc), you can render those values through something like "#{myValue}". Also, for your second problem, the only thing I'm seeing for '$(document).ready() ' not to work is if you're using jquery to do the validation and re-rendering the result to the page. Let me know if this helps. Cheers!
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 = 4, Choice4 = 8 } Hope this helps!
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 runat="server" ID="lvTherapeuticAlternatives" OnItemCommand="TherapeuticAlternatives_OnItemCommand"> ItemTemplate- <ItemTemplate> <tr class='data'> <td style="width:210px;"> <asp:LinkButton ID="lnkMedSelection" runat="server" CommandName="SelectedMed" CommandArgument='<%#Eval("NDC") & ", " & Eval("DrugGenericProductID") %>' > <asp:Label ID="lblDrugName" runat="server" Text='<%# Eval("DrugDescription") %>' /> </asp:LinkButton > </td> <td style="width:70px;" align="center"> <asp:Label ID="lblBrandGeneric" runat="server" Text='<%# Eval("descBrandGeneric") %>' /> </td> <td style="width:110px;" align="center"> <asp:Label ID="lblStatus" runat="server" Text='<%# Eval("FormularyStatusDescription") %>' /> </td> <td style="width:210px;" align="left"> <asp:Label ID="lblFlat" runat="server" Text='<%# Eval("CopayInfo") %>' /> </td> </tr> </ItemTemplate> Codebehind- Protected Sub TherapeuticAlternatives_OnItemCommand(ByVal sender As Object, ByVal e As ListViewCommandEventArgs) Handles lvTherapeuticAlternatives.ItemCommand End Sub
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 script in question is basically a menu that lets the user do a couple of things, like this: http://linuxcommand.org/lc3_adv_tput.php. Ctrl + c does not exit the script as well. Anyone know other places I could check for scripts that run as you log into a specific user account?
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 some way without using a different server_name or port?
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 system"?
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 are being made on the UI thread. I'd like to make sure I'm not accidentally doing work on the UI thread that could be easily moved to a background thread. My best guess so far would be using the Process Explorer and/or Process Monitor from the Microsoft SysInternals group.
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.global_variables_initializer()) # This line is necessary for the LSTM's parameters (The Matrices and Bias vectors) to be initialized
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, computations, driver calls etc.). The visualization is pretty self-explanatory.
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 fresh install of 10.12 on the internal SSD. I will still have my old bootable install of 10.10.5 and files on the external SSD, in case I need to access files or restore it back completely.
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 RenderTarget2D(graphicsDevice, graphicsDevice.PresentationParameters.BackBufferWidth, graphicsDevice.PresentationParameters.BackBufferHeight); GraphicsDevice.SetRenderTarget(rt); //Draw sprites GraphicsDevice.SetRenderTarget(null); //Then draw rt (also a Texture2D) with 50% opacity. For example: spriteBatch.Begin(); spriteBatch.Draw(rt, Vector2.Zero, Color.FromArgb(128, Color.White)); spriteBatch.End();
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 endpoint to then archive said file); I'm not exactly sure how to set up the correct code and bindings to take the ingested .xlsx file and send the whole thing to an endpoint. Bonus Question: is it better practice to zip the file or convert to binary or anything before sending? Performance isn't too big of a concern currently. Thanks for any information or any pointers.
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["id"]; #if DEBUG if (id == null) id = "111"; // Use my own id for testing locally #endif using (aDataContext dc = new aDataContext()) { var query = (from a in dc.aLists where a.ID == id select new { a.aNumber, a.bNumber, a.cNumber, a.dNumber, } ); List<aListItem> List = new List<aListItem>(); foreach (var queryItem in query) { aList.Add(new aListItem() { aNumber = queryItem.aNumber, bNumber = queryItem.bNumber, cNumber = queryItem.cNumber, dNumber = queryItem.dNumber }); } Session["aList"] = aList; } Session["Database"] = null; Response.Redirect("Viewer.aspx" + "?UseList=true"); }
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) \sim N(z \mid 0, I)$ And I want to obtain a posterior distribution $q_\phi (z \mid x) = N(z \mid \mu_\phi(x), {\rm{diag}}(\sigma_{\phi}^2 (x)))$. I parameterize a multi-layer perceptron (MLP) and use that MLP to learn $\mu_{\phi}(x)$ and $\sigma_{\phi}(x)$. My questions are: 1) How do the parameters $\phi$ of the MLP determine the mean and variance? 2) How does that work mathematically? How am I getting the posterior mean and variance from this MLP? 3) Why do I need an MLP at all?
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(lines[0]), lines[1], getIntVal(lines[2]), Double.parseDouble(lines[3])); i++; }
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, as below. public interface SortInfoDialogListener { void onSortInfoSelected(SortInfo sortInfo); } Hope this helps.
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 combination takes? And if possible, an example where you'd prefer using a multi-pass shader rather than multiple single-pass shaders?
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 charging process now starts OK - the green led on the mag connector switched to orange to show charging; which it wouldn't before. I had also tried the SMC as well; removing the battery first as that routine varies according to whether or not to the battery is removable. But it was unplugging the power adapter from them mains which resolved it all.
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 Facebook page, or some similar method that requires the employees to go look for it (without knowing when it will be posted), is that allowed? If it makes a difference, my employer is an Applicable Large Employer under the ACA. I've tried to find this information from several sources, but everything I find is merely a recommendation on how or when to provide this information. One source stated that it was the employer's responsibility to notify employees, but did not define what (if anything) notifying legally entailed or offer any legal source at all for this information.
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/0B58OAFDyvbhTalFxZmtwUGoyWVk/edit?usp=sharing)) in the Properties panel to show your normals. To change your normals, select the plane you want to flip and select `w` menu > Flip Normals.
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 "Take File/Table Name from field" option selected.
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, but it looks like the PropertyChangedCallback is called only if the reference was changed. I guess i can replace the reference on each set or just listen to the PropertyChanged event already in the UserControl. Thanks for help!
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 UserControl, but no matter what I do, i cannot get it to work. I have read tons of answers here and on different websites and noticed that it might be something with the UserControl's DataContext, but I eventually failed to fix the problem anyway. The way I raise the PropertyChanged event in my ViewModel is correct. I can successfully bind my property to other controls (like TextBoxes etc.), but not to my one. I would be grateful if you could explain to me why it is not working and how to fix that. Regards! MainWindow.xaml binding: <Grid Margin="10"> <local:FretboardControl Grid.Row="0" Fretboard="{Binding CurrentFretboard, Mode=TwoWay}"/> </Grid> FretboardControl.xaml: <UserControl ...> <Grid> <TextBlock Text="{Binding Path=Fretboard, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:FretboardControl}}"/> //the TextBlock above is just a test <Canvas.../> </Grid> </UserControl> FretboardControl.xaml.cs (code-behind): public static readonly DependencyProperty FretboardProperty = DependencyProperty.Register (nameof(Fretboard), typeof(Fretboard), typeof(FretboardControl), new PropertyMetadata(new Fretboard(), PropertyChangedCallback)); public Fretboard Fretboard { get { return GetValue(FretboardProperty) as Fretboard; } set { SetValue(FretboardProperty, value); } } protected static void PropertyChangedCallback(DependencyObject o, DependencyPropertyChangedEventArgs e) { //breakpoint here. It is reached only once during runtime: //at start, when the default value is inserted if (o is FretboardControl) { (o as FretboardControl).RefreshFretboard(); } }
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 please offer some details or some references that I can consult? Thanks a lot
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 means we have to migrate the failed VM to another node manually, but I think the simplicity/reliability/easier troubleshooting more than makes up for this...
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 make it work by setting up the array like test = [[], [], []] and it works fine, but in my actual usage, I won't know how many arrays will be needed beforehand. Is there a better way to do this? Thanks
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 toggles them as expected.
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, which is &#xb5 for μ, instead of setting the HTML encoding to UTF-8 explicitly. However, if I encode this string, the & gets encoded to &amp, and the μ character doesn't display properly. Therefore, I was wondering if there's a way to not encode &#xb5 even if I choose to encode the rest of the string. I have created a small example below to illustrate the issue: string text = HttpUtility.HtmlEncode("random string with text and 100 &#xb5s"); string[] lines = { "<html>", "<body>", text, "</body>", "</html>" }; string curFile = @"C:\Test.html"; System.IO.File.WriteAllLines(curFile, lines); This gives "random string with text and 100 &#xb5s" instead of the desired "random string with text and 100 µs" in the HTML output. Thanks.
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 integrity is somewhat enforced. Is that possible? TIA for any feedback! typedef struct FOO_V0 { UINT a; BOOL b; LARGE_INTEGER c; } FOO_V0; typedef struct FOO_V1 { UINT a; BOOL b; LARGE_INTEGER c; UINT d; } FOO_V1; typedef struct FOO_V2 { UINT a; BOOL b; LARGE_INTEGER c; UINT d; BOOL e; } FOO_V2; Thanks.
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(":service", "myfile.exe"); $status = $query->execute(); $searchResult = $query->fetchAll(); $searchResult = array( 'service' => $searchResult, 'status' => $status ); $searchResult = $this->conn->fetchAll($sql); return $searchResult; }
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 return value from cmap)
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), (9, 75), (10, 98)] pd.DataFrame(x, columns=['lbl','val']).set_index('lbl').plot(kind='bar');
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.94.x. Many classes were refactored and changed. Hence, it can’t compile. I am stuck on where, I need to extend the test method name creation according to my logic, Where should I start with? Is there any open source project available on web against pex 0.94.x which I could use for study and reference?
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 connection. Pondering on questions like 1) Can I attach Azure Storage account in my azure VNET 2) Can there is existing solution, where I am access internet via JUMP-BOX network configuration, where my VM internet traffic goes via Jump box 3) Can this be achieve via Network ACLs or some better solution? Now, this question is mix of networking and azure services, not sure of the right forum for this, server-fault or stack-overflow?
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-option DNS <IP_ADDRESS><PHONE_NUMBER> ifconfig-pool-persist ipp.txt push "redirect-gateway def1 bypass-dhcp" push "dhcp-option DNS 8.8.8.8" push "dhcp-option DNS 8.8.4.4" keepalive 10 120 tls-crypt myvpn.tlsauth cipher AES-256-CBC compress lz4-v2 push "compress lz4-v2" user nobody group nobody persist-key persist-tun status openvpn-status.log log /var/log/openvpn.log verb 3 remote-cert-eku "TLS Web Client Authentication" and I have different clients connected, on Debian machines I used the following config file client tls-client ca ca.crt cert pibox.crt key pibox.key tls-crypt myvpn.tlsauth proto tcp remote X.X.X.X 1194 tcp dev tun topology subnet cipher AES-256-CBC log /var/log/openvpn.log pull script-security 2 up /etc/openvpn/update-resolv-conf down /etc/openvpn/update-resolv-conf all is working fine, I can access to my VPN and also I have access to the internet, I'm trying to set up a CentOS 7 client for which I used the same config file but since script-security 2 up /etc/openvpn/update-resolv-conf down /etc/openvpn/update-resolv-conf cannot be used, I'm not sure how can I configure the DNS, I research and some people mention openresolv, I also tried with pull-filter ignore "dhcp-option DNS" but nothing works, also, I read this but I don't have /usr/share/openvpn/update-resolv-conf /usr/share/openvpn/update-resolv-conf What is the correct procedure to configure the DNS on a CentOS client?
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 search Home nameserver <IP_ADDRESS> nameserver <IP_ADDRESS> client client tls-client ca ca.crt cert i7box.crt key i7box.key tls-crypt myvpn.tlsauth proto tcp remote x.x.x.x 1194 tcp dev tun topology subnet cipher AES-256-CBC log /var/log/openvpn.log pull also I desabled the automatic DNS and I put static ones, if you know a better method let me know GUI static DNS
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 here
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...? Can we use the DC motor drivers to drive servo motor or is there any other drivers specifically for servos....? Why do we give PWM wave as the control input, why not some analog value to define the position of the Spine....?
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 unique neuron on the output using the sigmoid activation and the binary crossentropy function as loss. The other option is to use two neurons, using softmax and categorical crossentropy as loss (of course, using a onehot ecoder to represent the 2 labels). I've been looking for a detailed explanation of the difference between this two options but I have not found response of what I really want to know. This is a related question I've read: https://stats.stackexchange.com/a/260537/295456 Here is said that binary crossentropy is just a special case of categorical crossentropy. Is there any advantage in any of this approach? I'd like to know the advantages and disadvantages of both options. The network would converge faster/slower? There would be more parameters to train? One of this options can be considered as bad desing? This is just a schematic code to represent the two aproches: ## Opt 1. targets = [[0,1], [1,0],...] ... model.add(Dense(units = 2, activation = 'softmax')) model.compile(loss = 'categorical_crossentropy') ## Opt 2. targets = [1,0,1,...] ... model.add(Dense(units = 1, activation = 'sigmoid')) model.compile(loss = 'binary_crossentropy')
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 is a state machine!​ SoundPool - Good for short audio effects or clips. Stored uncompressed in memory, 1MB limit. Clips must be fully loaded before playing. Supports volume and speed control, looping, simultaneous sounds, priorities.​ AudioTrack - Lowest-level audio API on Android. It provides a channel you can configure. Push and pull byte data to the channel. Configure rate, samples, audio format, etc. You can decode audio in unsupported formats.​ In summary, MediaPlayer is the good general-purpose class to play a file, SoundPool is well suited for short audio effects, and AudioTrack lets you get into the low-level audio configurations.​ ​ Reference - https://en.proft.me/2018/05/8/how-play-audio-file-android/ ​ ​ ​
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 invalid value") return } guard let latVal = Double(lat) else { print("Latitude contains an invalid value") return } let location = CLLocationCoordinate2D(latitude: latitude, longitude: longitude) let locationMarker = GMSMarker(position: location) Take a look at Early Exit
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/ScriptReference/Physics.Raycast.html http://docs.unity3d.com/Manual/class-TagManager.html http://docs.unity3d.com/ScriptReference/Application.LoadLevel.html