Menu
  • HOME
  • TAGS

SSIS “Failed to lock variable” error in File System Task within foreach Loop

variables,foreach,ssis,source,ssis-2012

The issue turned out to be that the parameter for the import file path was being used where the User::FilePath was needed in the source Connection Manager.

Report from developer console is poor?

android,crash,console,source

It is not poor. What are you seeing is the obfuscate stacktrace, due of proguard. You can use the .map file generated by proguard to restore the full stacktrace. You can find more info here

'Calendar.getDisplayName' giving 'IllegalArgumentException' with 'Unknown Source'

java,calendar,source,illegalargumentexception

You pass a wrong parameter to the getDisplayName() method. The second parameter is the style, whose possible values are Calendar.SHORT and Calendar.LONG. Use these constants as seen below: Calendar c = Calendar.getInstance(); c.getDisplayName(Calendar.MONTH, Calendar.SHORT, Locale.ENGLISH); c.getDisplayName(Calendar.MONTH, Calendar.LONG, Locale.ENGLISH); Btw, the constant values for Calendar.SHORT and Calendar.LONG are 1 and 2...

Where is the source code of for the task `gradle dependencies`

gradle,dependencies,source

The dependencies task type is DependencyReportTask and you can find its source code in here.

Create package source code for android eclipse java

java,android,eclipse,source,libraries

I would suggest using maven (android-maven-plugin). your project's dependencies will be taken care by maven itself. From eclipse perspective there is a maven plugin (m2e) which will help integrating your mavenized project with eclipse. Hope this answers your question.

What is the difference between compilation and interpretation?

compiler-construction,compilation,source,interpreter,interpretation

It's near-impossible to answer your question for one simple reason: There aren't a few approaches, they are rather a continuum. The actual code involved across this continuum is also fairly identical, the only difference being when things happen, and whether intermediate steps are saved in some way or not. Various...

bash script syntax error when source file

bash,syntax-error,source

.cshrc uses C shell syntax which is altogether incompatible with Bash.

R: Source function by name/Import subset of functions

r,function,import,external,source

It looks like your code will work with a slight change: define an empty object for the function you want to load first, then use insertSource. mult <- function(x) {0} insertSource("C:\\functions.R", functions="mult") mult Which gives: Object of class "functionWithTrace", from source function (x, y) { return(x * y) } ##...

source bash script in bash -c “”

bash,export,source

The variable expansion in the "bash -c" is happening before "bash -c" is run; you need to do something like: bash -c "source /neuro/arch/scripts/neuro-fs stable;echo \$XAPPLRESDIR;" ...

Is there any sources of location(pubs, restaurants, cultural places etc) with pictures, details and coordonates over the Internet? [closed]

location,source,info

It sims that Google places do the job

Cannot instantiate subclass due to compile-time exception

java,file,subclass,source

You need to make your subclasses static member classes for this to work. As it is they are inner classes, but there is no point in using those in your case. You could also make Item abstract as you don't intend to create any instance of it. If you were...

WinRT / Universal app, If image source equals and if image.source changed

c#,if-statement,source,windows-universal

You should be able to know when the image source has changed by subscribing to the Image.ImageOpened vent. Comparing for equality takes two equal signs, not one which assigns a value if (UserPick.Source == "ms-appx:Assets/RPS3.png") ...

Powershell not sourcing .profile

powershell,source,.profile

I sourced the /etc/profile in my .bashrc and incorporated that change to the new snapshot. It works like a charm now. Thank you so much for all the valuable inputs

Is there any method to view an Android or IOS mobile applications source code?

android,ios,view,source,mobile-application

You would have to decompile the app, more specifically, the Java class files. And it's been done: Kivlad by Cody Brocious http://www.matasano.com/research/kivlad/ DAD by Zost (Androguard project): http://code.google.com/p/androguard/wiki/Decompiler JEB by Nicolas Falliere (commercial) http://www.android-decompiler.com/ Then there are all the Java decompilers that can be used after using dex2jar or Dare...

How to log in to a form (POST) and download the web pages' source? (Java, android)

java,android,forms,post,source

You can try using JSOUP to connect and login using credentials. It gives you the ability to do POST and GET requests. Once logged in you can navigate to pages by providing links and cookies. The challenge will be to make sure to provide all the data necessary to successfully...

How to source R code without overwriting current variables?

r,source,environments

You can source the contents into a specific environment with sys.source if you like. For example b <- 0 ee <- new.env() sys.source('sub.R', ee) ee$a # [1] 1 # the ee envir has the result of the sourcing if(ee$a>1) {print(T)} else{print(F)} # [1] FALSE b # [1] 0 #still zero...

Excel VBA Changing Data Source for Pivot Table

excel,vba,data,pivot,source

Since the problem is here: ActiveWorkbook.PivotTables(PivTbl).ChangePivotCache ActiveWorkbook. _ PivotCaches.Create(SourceType:=xlDatabase, SourceData:=SrcData, _ Version:=xlPivotTableVersion15) I guess you cannot get a pivot table passing the table itself as argument: .PivotTables(PivTbl) PivTbl is already the table you want. PivTbl.ChangePivotCache....... ...

JRuby source code for org.jruby.javasupport

jruby,source

maybe, just search for the package declaration :) https://github.com/jruby/jruby/tree/master/core/src/main/java/org/jruby/javasupport

MKS Integrity style online source code configuration management?

c++,c,git,configuration,source

See here many proposals: What is a good method for sharing source code among 3-4 developers that does NOT require it to be Open Source? As the linked question is a bit old, I have shortly checked the answers. The following sites are still ongoing and absolutely worth a look,...

Difference between “view source” and “inspect element” - mysterious unwanted tags are inserted

html,source,inspect

You are not escaping the content from your user, so someone posted something like: I really, reaally do appreciate it~! >w<b, I let you understand what's going next... (Line 853 on my browser, under the div with shoutbox_comment_section id). The </b> tag is added by the Chrome development console because...

Where can I find the source for Python's os.stat() function?

python,source

You cannot find the source for the os.stat function inside the os.py module because the function is not written in Python. Instead, it is implemented in C and imported by the os module. The source for CPython can be found under /Modules/posixmodule.c....

How to implement PHP inside a image src code?

php,html,image,source,src

Use a ternary, and remember to distinct between "" and '' : <img src="socimages/logo/<? echo $soca == '' ? 'logo.jpg' : $anotherimage . '.jpg'; ?>"> This will produce a correct <img src="image.jpg"> tag....

Debug Event being “used” in Unity 3D

c#,debugging,events,unity3d,source

Presumably you are calling detectEscape from OnGUI somewhere, right? The current event is only valid during OnGUI. Additionally, OnGUI can be called multiple times per frame, with different current events. Sometimes the event type might be Repaint, sometimes it might be MouseDown, sometimes it might be something else. So if...

Protect source code files in team

security,version-control,source,password-protection,team

Use a revision control package (https://en.wikipedia.org/wiki/Revision_control). If you don't like the the changes made by the team you can roll them back individually or as a group. If you don't trust your team or have no confidence in their abilities, get a new team :)...

Source for Swifts standard library functions in xcode?

xcode,swift,xcode6,source,definition

When you say source – you mean the function definition and documentation right? Not the actual implementation for the function (which you won’t be able to get). I also find Jump to definition dies quite often, especially in playgrounds and especially when you have a compilation error somewhere in your...

how to open a mp3 file from R without using a package

r,mp3,source

On Windows, shell.exec("etcetc/foo.mp3") should open the mp3 using the default program for that file, which is probably your mp3 player. If you want a cross-platform solution that works on Windows, Mac and Linux, the best I can find is the OpenFileInOS function from the pander package. This uses R's shell.exec...

SpringXD stream with Tail source reads ALL the lines in file again and again instead of just last n lines

source,tail,spring-xd

It sounds like you are replacing the file when you say "and it is saved". Tail follows an existing file and, yes, it expects a newline to terminate a new message. I just ran a test and it works fine... xd:>stream create --name foo --definition "tail --lines=1 --name=/Users/foo/Documents/foo.txt | log"...

Fetch a function definition without rights on source files

php,function,source,server-side,definition

If you can call the function that means you can include its file to load it which means you can inspect the file contents. If you didn't have permissions to include (read) the file then you couldn't load the function and you couldn't call it and for all intents and...

Windows Phone 8 Change Image Source From Code Behind

c#,.net,image,windows-phone-8,source

Type mismatch. ImageBrush is not subclass of ImageSource which is required. Try this: Image[] bullets = new Image[100]; BitmapImage bmp = new BitmapImage(new Uri("ms-appx:/Assets/1.jpg")); for(int i=0;i<100;i++) { bullets[i] = new Image(); // Update edit #1 bullets[i].Margin = new Thickness(0, 0, 0, 0); LayoutRoot.Children.Add(bullets[i]); bullets[i].Source = bmp; bullets[i].VerticalAlignment = VerticalAlignment.Top; bullets[i].HorizontalAlignment...

Getting Image's Uri in Windows Phone

windows-phone-8,windows-phone,uri,source,bitmapimage

You're not setting a URI source for your image, you're loading it from a stream of data instead. The BitmapImage can be populated from a stream or a URI. You can only read the UriSource if this was set, by creating the image from a URI. Based on your code,...

Understanding Django (from source code): attributes of field via models.CharField and forms.CharField

django,django-models,django-forms,source

Talking about django.db.models.Field and django.forms.Field are exactly two different machines. But still in real life we need forms that supposedly need to map the models. To accomplish that, django has provided us with the concept of django modelforms which we make by passing name of the model. By default django...

Android OnTouchListener change touched item

android,gridview,source,ontouchlistener,notifydatasetchanged

Don't use setOnTouchListener in this case. Create a selector: drawable/selector_btn_default.xml <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/btn_default_pressed" android:state_pressed="true"/> <item android:drawable="@drawable/btn_default"/> </selector> and set it as android:src of specific image. <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content"...

Open Source Workflow system comparison [closed]

workflow,source,activiti,processmaker,bonita

While I have not used all of the workflow systems listed, I have worked with ProcessMaker for almost 4 years and seen it evolve into a really good workflow solution. Its quite easy to learn and you should be able to design your first process in a few hours. Its...

Foreach strpos() error when searching through page source?

php,foreach,web-crawler,source

You can use this code to select the lines in source code, where your string is and than parse using regex. <?php $file = file('http://stackoverflow.com'); $text = 'related-site'; echo '<xmp>'; foreach ($file as $row) { if (strpos($row, $text) !== FALSE) { echo $row; } } echo '</xmp>'; /* returns <xmp>...

Changing C source code in an R package

c,r,source

No, you do not need to explicitly uninstall a package. You can install only the C library (provided there are no changes in the R code), e.g., R CMD INSTALL --libs-only MyPkg or R CMD INSTALL --libs-only --no-test-load MyPkg. Likely you'll start a new R session, typically s with some...

Where can I find explanations on the various sections of sakai?

components,source,sakai

The best place to start (outside of the code of course) is the Sakai wiki space on programming called the Programmers Cafe. The section on Getting Started contains links that attempt to explain the basics of code structure. The summary is that each "tool" is a directory under the root...

Java get Source code from Website

java,website,export,source

In the second class, you would call try{ ClassA.Connect(); } catch(Exception e) { } Where ClassA is the name of the class where public static void Connect() is defined. Note that, by convention, the method name should begin with a lower case, so it should be public static void connect()....

How can I open a JAR for editing in Netbeans

java,jar,source

A JAR only contains .class files, which are compiled from .java source files. Unfortunately you can't edit the .class files and expect anything useful to come out of it. This might work, though: JD GUI, a JAR decompiler....

Alternation of sounds in time lapse

audio,time,unity3d,source

You should not use a for loop here. With your code, you are decreasing your TimerDown for every AudioClip in your array. You should only do TimerDown -= Time.deltaTime once per Update. Instead you could store the i (index) outside of the update loop. private int i = 0; void...

Load image from resource and apply to Image.source

c#,wpf,image,resources,source

As per MSDN exmaple you should do like this - Image myImage3 = new Image(); BitmapImage bi3 = new BitmapImage(); bi3.BeginInit(); bi3.UriSource = new Uri("smiley_stackpanel.PNG", UriKind.Relative); bi3.EndInit(); myImage3.Stretch = Stretch.Fill; myImage3.Source = bi3; https://msdn.microsoft.com/en-us/library/system.windows.controls.image.source(v=vs.110).aspx Accessing embedded image and creating a System.Windows.Controls.Image...

IFrame does not work for local sources? HTML

javascript,html,iframe,source,src

you can't add I-frame with local file src All modern browsers prevent display of "local" files using the file protocol in iframes for security reasons. check your browser console... if you get message like it means your browser prevent load local resource to Iframe Not allowed to load local resource...

How to use files from source package (what's the path?)

java,source,audio-streaming,filepath

You can use ClassLoader.getResourceAsStream() for that example: // open the sound file as a Java input stream InputStream in = SoundPlayer.class.getClassLoader().getResourceAsStream("yoursound.wav"); // create an audiostream from the inputstream AudioStream audioStream = new AudioStream(in); // play the audio clip with the audioplayer class AudioPlayer.player.start(audioStream); ...

windows phone 8.1 webview loaded document source code

html,webview,windows-phone-8.1,source

Use InvokeScriptAsync method. string html = await webBrowser1.InvokeScriptAsync("eval", new string[] { "document.documentElement.outerHTML;" }); Answer based on Can I get the current HTML or Uri for the Metro WebView control?...

Remembering volume/mute option for background music using jquery

jquery,html,audio,source,background-music

Use cookies. There's a plugin for jquery you can get. Here is a bit of code to get you started: var bgMusic = $('#audio-bg')[0], playing = true; bgMusic.addEventListener('ended', function() { this.currentTime = 0; if (playing) { this.play(); } }, false); var cookieValue = $.cookie("forcemute"); if(cookieValue == undefined){ bgMusic.play(); } else{...

Bash: sourcing file as user from script

linux,bash,user,source,sudo

source is a builtin not a command, use it with bash -c: sudo -u $user -H bash -c "source /home/$user/list_of_commands" ...

Namespace, class and compiler order…

c++,class,header,namespaces,source

The Vector3 library you link uses namespace _Warp, so you should use it this way: _Warp::Vector3 position; PS: Be wary of any third-party library that uses reserved names as identifiers, because the writers may not know what they are doing. _Warp is a reserved name for the compiler (it starts...

What is a good way to source a Bash script from within Python?

python,bash,dictionary,source,env

The line you are seeing is the result of the script doing the following: module() { eval `/usr/bin/modulecmd bash $*`; } export -f module That is, it is explicitly exporting the bash function module so that sub(bash)shells can use it. We can tell from the format of the environment variable...

What source archive(src.zip, javafx-src.zip) corresponds each jar in jdk 1.8?

java,eclipse,javafx,source

src.zip corresponds to \lib\rt.jar For others you might have to download the sources separately....

Can't get Python to download webpage source code: “browser version not supported”

python,html,browser,urllib2,source

Looking at the url you listed, I did the following: Downloaded the page using wget Used urllib with ipython and downloaded the page Used chrome and saved the url only All 3 gave me the same resulting file (same size, same contents). This could be because I'm not logging in,...

Is it possible to read/retrieve a c++ source code from a .sln file?

c++,visual-studio,source,solution,sln-file

No, SLN files only store the project settings. You should send him the whole project in a compressed file. Just so you know, the recommended way to share code with other people is using a version control system, like GIT....

OpenVPN Source vars not working on debian

bash,variables,source,openvpn

When you source (or .) a file, all the commands inside it are read and executed - this includes variable assignments. However, when a variable assignment takes place, it takes place only for the current shell. When you run a script, a subshell is created - so any variables inside...

How to get real source code of html page?

python,html,browser,request,source

The best solution is : import sys from PyQt4.QtGui import * from PyQt4.QtCore import * from PyQt4.QtWebKit import * class Render(QWebPage): def __init__(self, url): self.app = QApplication(sys.argv) QWebPage.__init__(self) self.loadFinished.connect(self._loadFinished) self.mainFrame().load(QUrl(url)) self.app.exec_() def _loadFinished(self, result): self.frame = self.mainFrame() self.app.quit() url = 'http://webscraping.com' r = Render(url) html = r.frame.toHtml() Source: http://webscraping.com/blog/Scraping-JavaScript-webpages-with-webkit/...

How I can get the plain-text source of a web page that I've generated dynamically?

javascript,html,dynamic,source,webpage

You can use outerHTML on the document element: document.documentElement.outerHTML; // entire source This will give you a snapshot of the HTML source at the moment of the call. If you call it after the dynamic content is added you'll get the updated content. While outerHTML is not a part of...

JWPlayer, Soundcloud file source

javascript,audio,source,soundcloud,jwplayer

JW Player can handle self-hosted videos, i.e., you give it a link directly to an MP4 or stream, and YouTube videos. That's all. It doesn't support any other third-party players, which is what things like Soundcloud, Vimeo, etc., are. This is not an "unanswered question." It's been answered repeatedly, both...

JavaScript source code showing in browser

javascript,html,source

I'd like to know why this is happening. Because you told it to do so: <form id="form" action="script3.js"> The action attribute specifies where the page to which the browser should send the submitted data, and yours here will take you to the script file. Remove the attribute, set it...

Why does Source for ContextMenuOpening behave differently for Canvas and UserControl?

c#,wpf,events,contextmenu,source

This behavior is covered fairly well in the MSDN documentation for the RoutedEventArgs.OriginalSource property: Source adjustment by various elements and content models varies from class to class. Each class that adjusts event sources attempts to anticipate which source is the most useful to report for most input scenarios and the...

typedef declared in header file not available in source file

c++,source,typedef

First of all the typedef is defined in the scope of the class. So the compiler can not find the definition of the typedef if it is used as unqualified name as a return type. You could write for example myclass::inttest myclass::foo() { } However the compiler again will issue...

WPF application. How to reference image in xaml code, so another user can view them when running .exe file of the project?

c#,wpf,image,xaml,source

If an image is in the project folder so probably the problem is in it's Properties. Build Action: Resource Copy to Output Directory: Do not copy In xaml something like this <Image Source="../../Images/yorImage.png"/> The path to the image from the place where you're (mean from the current file to the...

source code of Telegram iOS app could'not run on Xcode

ios,xcode,source,telegram

MtProtoKit requires https://github.com/kstenerud/iOS-Universal-Framework, so clone it, install "Real Framework", restart Xcode and enjoy!

Attaching only a contents of the folder to the jar

maven,jar,maven-3,source,maven-jar-plugin

I could not solve this with the maven-jar-plugin, i had to use maven-resources-plugin, too: <plugin> <artifactId>maven-resources-plugin</artifactId> <version>2.4.3</version> <executions> <execution> <phase>generate-resources</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/sources/</outputDirectory> <resources> <resource>...

Scalac compiler to jar sources

scala,jar,compilation,sbt,source

Sources are typically not included in the regular .jar files. They are distributed in a separate -source.jar instead. In sbt, you can generate the source jar with > packageSrc ...

onCreateOptionsMenu in ListFragment is giving me a error

android,menu,source,oncreateoptionsmenu

You have to use Menu, MenuInflater and MenuItem from ActionBarSherlock as you're extending a sherlock class. Your imports should be: import com.actionbarsherlock.view.Menu; import com.actionbarsherlock.view.MenuInflater; import com.actionbarsherlock.view.MenuItem; And your onCreateOptionsMenu(...) code should be like: @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getSherlockActivity().getSupportMenuInflater(); //rest of your code return super.onCreateOptionsMenu(menu); }...

Decompile an Adobe Air iOS ANE

air,source,decompiling,ane

ANE is a zip archive, so in can be easily unzipped. Inside you will find library.swf and library.a (names can be different) - thoose are flash wrapper ant native library. You can easily decompile AS3 code from library.swf. Decompiling *.a though can be tricky. You can try to use soft...

Wifi can't connect Nexus 7 (2013) AOSP rom

android,source,android-wifi

Solved by using an older version of android. Apparently 4.3 works like a charm....