I'm currently in progress of creating my second main C program. I've only just started to learn C and I've had a few problems, as well confusion on what to do next with this program. The idea is to basically allow the user to enter in a desired amount of years, then the program simulates the lottery games played every week, depending on how many years they enter. Then inside the program, I want the two arrays to compare to each other and check for any numbers they both have at the same time. The lottery ticket on the user's end stays the same, which is set inside the array and of course, the r
I want to implement slideshow of videos and images. When app is opened it should start with slideshow of images and in between some videos to play, when a video is playing, the slideshow should stops sliding and when video has finished the slideshow starts sliding again.Are there any ways to do it? I am new to android, please help me out
I have written the below Apex class that processes incoming email that are sent to an email service address and creates a new task from the incoming mail and then associates this new task with a matching record in salesforce. The match is done on the record name and incoming email subject. The class also sends an email notifying the "Assigned to" user that they have received a reply on a request they are working on. This works perfect in Sandbox but I have no experience writing test classes. Can anyone advise how I write the test class for the below? global class RequestEmailHandler implements
I have scanned my project with the help of sonar runner and sonar qube, but in the results i am not able to see the coverage details and test cases details. can any one tell me the process for code coverage with sonar for a non maven project. Thanks in advance
I have solr.xml looking like this... <solr> <str name="configSetBaseDir">${configSetBaseDir:/opt/configsets}</str> <solrcloud> configSetBaseDir is pointing to a valid directory with a presumably valid config set. It's not getting loaded into ZooKeeper when solr restarts. Is there something wrong or missing here that it needs besides configSetBaseDir?
I've used MAMP for many years and have always been going to http://localhost:8888 to get a quick index of folders and files. Not sure what has changed, but now no matter what version of MAMP I run, I'm not able to get my index of files in my browser... When starting servers I'm able to see that both the Apache and MySQL are green and I can even reach the WebStart page at http://localhost:8888/MAMP/?language=English How can I get to this index so I can test my sites in the "user/documents/ sites" document root I've setup? When I go to http://localhost:8888 the page just keeps loading and never
I have a problem with connection to SQL Server 2008. My problem is all simple user can't connect to SQL Server 2008 but just the admin in subdomain only who can connected. I test the connection with these steps: control panel / set up odbc system DNS / I choose SQL Server click on the bottom Add in the Name=test, and the server = I choose SQLSERVER When I clicked Next bottom I have error 18452. Connection failed: SQLState: '28000' SQL Server Error: 18452 [Microsoft][ODBC SQL Server Driver][SQL Server] connection failed.
This is my code for showing data in the data gridview and some of the data that it will show requires just a yes/no answer so I wanted to add a combobox to limit the choices: Dim con As SqlConnection Dim adap As SqlDataAdapter Dim ds As DataSet Dim cmdbl As SqlCommandBuilder Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load Call populateCombo() Try con = New SqlConnection con.ConnectionString = "Data Source=mssql;Initial Catalog=VRC_Royalty;User ID=sa;Password=" con.Open() adap = New SqlDataAdapter("SELECT * FROM tblsongmasterfile ORDER BY Primaryid ASC", con) ds = N
In my app I have a list of files that shows in ListActivity. Now I want to add an extra option like windows: (Open folder location) to open directory off this file. I tested some code but it does not work and throws the exception: File file=new File(path); Uri url = Uri.fromFile(file); Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(url); startActivity(intent); exception: 03-08 21:14:55.451: E/AndroidRuntime(15708): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=file:///storage/extSdCard/Bluetooth } What can I d
in my app i have list of files that shows in ListActivity now i want add extra option like windows :(Open folder location) to open directory off this file i test some code but not work throw exception: File file=new File(path); Uri url = Uri.fromFile(file); Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(url); startActivity(intent); exeption : 03-08 21:14:55.451: E/AndroidRuntime(15708): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=file:///storage/extSdCard/Bluetooth } what can i do?
I would like to have a bigger action bar. So I change the action bar size in the style, and now I am looking for changing the icon size and put the text bigger also. Here is my style : <!-- Application theme. --> <style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar"> <item name="android:textSize">22sp</item> <item name="android:actionBarSize">100dp</item> <item name="android:actionBarTabTextStyle">@style/MyActionBarTabText</item> <item name="android:actionButtonStyle">@style/MyActionButtonStyle</item> </style> <style name="MyActionButtonStyle" parent="android:style/Widget.Acti
As known, if I have attributes as such in a POM file: <project ...> ... <groupId>com.bosch</groupId> <artifactId>jenkins-ci</artifactId> <version>0.0.1</version> <packaging>pom</packaging> ... <organization> <name>Organization Name</name> </organization> ... </project> ... I can reference them with ${project.artifactId}, ${project.organization.name} and so on. But how can I reference the ids or e-mails of developers within the tags below? <project ...> ... <developers> <developer> <id>dev1</id> <name>Developer 1</name> <email>[email protected]</email> </developer> <developer> <id>dev2</id>
for the longest of times I've been trying to achieve this to no avail. It seems like it should be a common problem but still I haven't been able find an answer. What I want to do is: Have a chart in Excel and/or Powerpoint. Copy this chart as a chart object into PPT. Keep all characteristics of the original chart but maintain it editable (i.e. - add/remove axes, data labels etc) Break the link to the original chart/workbook but keep the data editable. I.e., I want a new excel sheet opened when I want to edit the data, just like it works if I create a new chart object. Preferably, I would like
I'm trying to use the scikit-learn package for the first time (and Python as well) and need some help. Basically, I have a huge 39x39 matrix, and I need to do a principal component analysis on them. For context, each row and column represents a country and the number inside represents how much they gave to the country in the column, let’s say UK, France and Sweden: 0 1 1 8 0 1 8 1 0 The 0s indicate that a country couldn't vote for itself (e.g., UK gave UK 0 points) and 1 indicates they could vote for them, but gave 0 points, and obviously 1-n is whatever point they gave to that country (France
I am trying to delete the history of IE, FireFox, Chrome and Opera using a batch file when staff log in. Below is what I have and it works but it also clears the bookmarks and preferences of Chrome and I think Firefox. How do I just clear the history without clearing bookmarks and preferences. Any help would be great, thank you. @echo off rem IE taskkill /F /IM iexplore.exe start "" "C:\Windows\System32\rundll32.exe" InetCpl.cpl,ClearMyTracksByProcess 255 :: Parse the Local AppData sub path call :Expand xAppData "%%LocalAppData:%UserProfile%=%%" set "xFirefox=\mozilla\firefox\profiles" set "xC
I'm running PHP Version 5.6.3 as part of XAMPP on Windows 7. When I try to use the Mandrill API, I'm getting the following error: Uncaught exception 'Mandrill_HttpError' with message 'API call to messages/send-template failed: SSL certificate problem: unable to get local issuer certificate' I already tried everything I read on StackOverflow, including adding the following to the php.ini file: curl.cainfo = "C:\xampp\php\cacert.pem" And ofcourse downloaded to that location the cacert.pem file from http://curl.haxx.se/docs/caextract.html but after all that, restarted XAMPP and Apache server but
UploadI am using a glyphicon from Bootstrap 3 on a button, which spins with a CSS3 Keyframe, I am wanting to (.hide) this class, untill the button is clicked, then it will appear/show, and spin away...animate as it does? Here is my Fiddle: http://jsfiddle.net/DannyJardine/8djrcwnb/4/ <span class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></span> Upload</button>
I happened to a MATLAB problem, and the error looks like this: Error using pca Too many input arguments. Error in mdscale (line 413) [~, score] = pca(Y, 'Economy', false); Error in demo_libsvm_test1 (line 140) newCoor = mdscale(distanceMatrix, 2); When I debug my code step by step, the error comes from here: distanceMatrix = pdist(heart_scale_inst, 'euclidean'); (line 139) newCoor = mdscale(distanceMatrix, 2); (line 140) Everything above the two lines are all right. I do not know how to fix the problem. I use MATLAB 2014a. How can I fix it?
I wrote a lot of code in codeigniter but I had to restructure my database column prefixes and when I use join queries to join some of my tables in my model's queries there is some tables in one query that have the same id column , I used Alias 'As alias1' for a table name, and model runs successfully without problem but when I pass the $q = $this->db->get() variable to my controller and then pass it to my view and iterate it like this : foreach($q->result() as $res) echo $res->alias1.id; php errors that unknown $alias1.id but I declared alias1 for one of my tables. whats the problem ? Thanks
We have Venus flytraps which move by closing their 'mouth' to trap prey. There are currently few identified plants with a 'quick' reflex like this. Blooms of course open and close through the course of a day and evening but that is pretty slow. We've all seen things like 'The Whomping Willow' in Harry Potter and the man-eater in Little Shop of Horrors or the crawling vines in Jumanji. I was wondering what kind of movement and reaction time would a plant be able to accomplish (while still remaining mostly a plant) whether to trap, entice or ward off animals. Could a tree have say vines on the g
Goal of the app: get geolocation on each move and log location either when app is in foreground and background. I've tried so many code and combination but I can't manage to have it working (2 days from now...). The classic geolocation (getCurrentPosition) is working fine but when we close the app the background geolocation is launched but nothing happen... Function "callbackFn" is never fired. I'm testing on IOS with xcode > Capabilities Audio & location activated for background activity. I also made working the jQuery sample example given in plugin so I saw it working but never with ionic/an
Machine:Mac UnityVer:4.6.2 error of the following will appear when you have made a jenkins build of unity. ----- Total AssetImport time: 6.818127s, AssetImport time: 6.808909s, Asset hashing: 0.005416s [60.9 KB, 10.972655 mb/s] Platform assembly: /Applications/Unity4.6.2/Unity.app/Contents/Frameworks/Mono/lib/mono/2.0/System.Data.dll (this message is harmless) System memory in use before: 71.7 MB. Unloading 137 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0) System memory in use after: 66.8 MB. Unloading 0 unused Assets to reduce memory usage. Loaded Object
Everywhere I look it seems to be the agreement that the standard library must call copy constructors instead of move constructors when the move constructor is noexcept(false). Now I do not understand why this is the case. And furthermore, Visual Studio VC v140 and gcc v 4.9.2 seems to do this differently. I do not understand why noexcept this is a concern of e.g. vector<T>. I mean, how should vector<T>::resize() be able to give strong exception guarantee if T does not? As I see it, the exception level of vector will be dependent on T, regardless if copy or move is used. I understand noexcept t
try { example.example = example; } catch (err) { TraceError.sysout("Error test!", err); } In this above code segment, I am forcing an error since example is not defined. I am learning javascript currently and was wondering if in javascript what type err would be. Is there an Error object or an Exception object in this language, and is there a way to get information about that err object so that I can print a detailed message in my .sysout method?
Lets say I have table called Tokens, with columns: id, refresh_token, and token. refresh_token column should be unique. But we may have many refresh_token fields that are null. These null refresh_token fields should be updated later, but there is a possibility that we may try to enter a refresh_token value that is contained in another field, and that will cause a conflict. So, what I wanted to do is: First check if the refresh_token value is contained in any other fields. If it is not contained or if unique, the that new refresh_token value can be used to update a specific row with a given id.
A blog author has brought up the discussion about null pointer dereferencing. I've put some counter arguments here. His main line of reasoning quoting the standard is this: The '&podhd->line6' expression is undefined behavior in the C language when 'podhd' is a null pointer. The C99 standard says the following about the '&' address-of operator (6.5.3.2 "Address and indirection operators"): The operand of the unary & operator shall be either a function designator, the result of a [] or unary * operator, or an lvalue that designates an object that is not a bit-field and is not declared with the
The following code is invalid due to duplicate @RunWith annotation: @RunWith(SpringJUnit4ClassRunner.class) @RunWith(Parameterized.class) @SpringApplicationConfiguration(classes = {ApplicationConfigTest.class}) public class ServiceTest { } But how can I use these two annotations in conjunction?
I use to my page of Kendo grid that have multi columns. I want set a column width to autofit and change width automatically. Plz help me , thanks @(Html.Kendo().Grid<GardeshKar.Models.v_marhaleh_marahel>() .Name("grdMarahel_Gardeshkar") .ToolBar(toolbar => toolbar.Custom().Name("btnAddMarhaleh").Text("اضافه").HtmlAttributes(new { id = "btnAddMarhaleh", href = "#" })) .Columns(columns => { columns.Bound(c => c.Code).Width(50).Title("کد"); columns.Bound(c => c.Desc).Width(150).Title("شرح");//Autofit columns.Command(c => c.Destroy().Text("حذف")).Width(70).Title("عملیات"); }) .HtmlAttributes(new {