有关于迁移学习中TCA算法的提问 80C

各位大神们好,最近在学习迁移学习的知识,想自己实现TCA算法,但是有一些地方还是没有理解,希望有大神能来帮忙解答一下!谢谢大佬!
一个是,在构建核矩阵的时候,对于给定的核函数,构建过程具体是什么样子的,其中的n1和n2是两个数据域的特征维度数还是数据数量呢。。。
另一个是,如果我得到了各个需要的矩阵,得到了变换矩阵W,那接下来要如何应用这个W呢,有的文章说这个W就是映射后的数据域,那我要如何在机器学习的时候,将这个W矩阵与之前源域中数据标签联系起来呢。。。

问题可能有一些无脑,小白刚接触这方面的知识,感觉有点吃力,希望能找到大佬帮忙,先谢谢各位大神们了!

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
关于TCA中的约束条件证明?

在TCA中求解映射时有一个约束条件 <center>![论文图片](https://img-ask.csdn.net/upload/202002/14/1581682779_193441.png) </center> <center>TCA论文截图</center> <br></br> <center> ![王晋东的解释](https://img-ask.csdn.net/upload/202002/14/1581682791_11295.png) </center> <center>@王晋东的专栏</center> <br></br> 王晋东也只是下一个结论并没有解释,TCA论文中也没说的明白,想请教给为前辈,映射后的协方差为单位矩阵为什么就可以有保留特征或者像论文说的防止W=0的出现?想W=0不一定一定要单位矩阵啊? 谢谢!

大神看过来 一道很简单的算法题

![图片说明](https://img-ask.csdn.net/upload/201705/19/1495155061_851497.png)

在日本留学 学习编程 tca学校怎么样?还有那些编程专门学校推荐?

请问各位大佬,在日本留学的话,tca学校编程怎么样?编程零基础开始是3年好还是4年好? 除了tca和hal,还有哪些编程专门学校推荐?

迁移学习使用Office+Caltech10 datasets测试集问题?

测试 Office+Caltech10 datasets不管是用TCA还是用GFK还是JDA,我都测试不出来好的准确率,JDA居然在迭代以后准确率越来越差,但是其他数据集手写体和PIE都重现准确率。是哪里的参数需要调整吗?有大神碰到过类似问题吗?

添加新项目时TYPO3 8.6中的TCA错误

<div class="post-text" itemprop="text"> <p>When I want to add new records in TYPO3 8.6 with go_maps_ext, I get the following error:</p> <pre><code>Argument 3 passed to TYPO3\CMS\Core\DataHandling\Localization\DataMapProcessor::synchronizeTranslationItem() must be of the type integer, null given, called in .../typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php on line 195 </code></pre> <p>The TCA definition can be watched on GitHub <a href="https://github.com/mhirdes/go_maps_ext/blob/master/Configuration/TCA/tx_gomapsext_domain_model_address.php" rel="nofollow noreferrer">https://github.com/mhirdes/go_maps_ext/blob/master/Configuration/TCA/tx_gomapsext_domain_model_address.php</a></p> <p>It dosen't matter if I want to insert a new map or address. Any suggestions? Thanks a lot in advance.</p> </div>

我需要在日期字段TCA typo3中仅显示月份和年份

<div class="post-text" itemprop="text"> <pre><code>'construction_period_from' =&gt; [ 'exclude' =&gt; false, 'label' =&gt; 'LLL:EXT:River/Resources/Private/Language/locallang_db.xlf:River.from', 'config' =&gt; [ 'type' =&gt; 'input', 'renderType' =&gt; 'inputDateTime', 'size' =&gt; 7, 'eval' =&gt; 'date', 'default' =&gt; time() ], ], </code></pre> <p>This is the tca field that I am using. By default the calendar is loaded in the backend. But I only need to show the month and year. In database the timestamp value is stored. is there any option in tca to show only month and year?</p> </div>

TYPO3如何在TCA上添加创建新按钮?

<div class="post-text" itemprop="text"> <p>I would like to build a slider (Own Content Element). So on the backend i would like to have a section with multiple records. What do i mean? By clicking the "Create new" i would like to have an image selection and rich text selection. </p> <p>Something like that.</p> <p><a href="https://i.stack.imgur.com/DVB1m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DVB1m.png" alt="Section"></a> </p> <p>How can i achieve this?</p> <p>So far i have:</p> <p><strong>TCA/Overrides/tt_content.php</strong></p> <p>which gives me the rich editor and the image selection in backend, but not grouped.</p> <pre><code>$GLOBALS['TCA']['tt_content']['types']['my_slider'] = array( 'showitem' =&gt; ' --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general, --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.general;general, --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.headers;headers,bodytext,assets;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.media, ', 'columnsOverrides' =&gt; [ 'bodytext' =&gt; [ 'config' =&gt; [ 'enableRichtext' =&gt; true, 'richtextConfiguration' =&gt; 'default' ] ] ] ); </code></pre> <p><strong>tt_content.typosript</strong></p> <pre><code>tt_content { my_slider &lt; lib.contentElement my_slider { templateRootPaths.10 = {$Private}Templates/ templateName = Slider.html dataProcessing { 10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor 10 { references.fieldName = assets as = images } } } } </code></pre> <p><strong>Slider.html</strong></p> <pre><code>&lt;html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true"&gt; &lt;h1&gt;{data.header}&lt;/h1&gt; &lt;p&gt;{data.bodytext}&lt;/p&gt; &lt;f:for each="{images}" as="image"&gt; &lt;f:image image="{image}" alt="{file.properties.alt}" cropVariant="desktop"/&gt; {image.description} &lt;/f:for&gt; &lt;f:debug&gt;{data}&lt;/f:debug&gt; &lt;/html&gt; </code></pre> <p>Now with the current code i get the results in frontend. One Text and one Image. But how can i get it as group after configured it on the backend?</p> </div>

TYPO3 TCA语法到FlexForm语法

<div class="post-text" itemprop="text"> <p>I have the following xml: (Not my complete XML. After the selection, i have defined some settings, like OrderBy, pid etc )</p> <pre><code>&lt;el&gt; &lt;switchableControllerActions&gt; &lt;TCEforms&gt; &lt;label&gt;Select function&lt;/label&gt; &lt;onChange&gt;reload&lt;/onChange&gt; &lt;config&gt; &lt;type&gt;select&lt;/type&gt; &lt;items&gt; &lt;numIndex index="0"&gt; &lt;numIndex index="0"&gt;List View&lt;/numIndex&gt; &lt;numIndex index="1"&gt;MyExt-&gt;list;MyExt-&gt;show&lt;/numIndex&gt; &lt;/numIndex&gt; &lt;numIndex index="1"&gt; &lt;numIndex index="0"&gt;Detail View&lt;/numIndex&gt; &lt;numIndex index="1"&gt;MyExt-&gt;show&lt;/numIndex&gt; &lt;/numIndex&gt; &lt;numIndex index="5"&gt; &lt;numIndex index="0"&gt;Import&lt;/numIndex&gt; &lt;numIndex index="1"&gt;--div--&lt;/numIndex&gt; &lt;/numIndex&gt; &lt;numIndex index="10"&gt; &lt;numIndex index="0"&gt;User Import&lt;/numIndex&gt; &lt;numIndex index="1"&gt;MyExt-&gt;import&lt;/numIndex&gt; &lt;/numIndex&gt; &lt;/items&gt; &lt;types&gt; &lt;numIndex index="0"&gt; &lt;showItem index="0"&gt;orderBy&lt;/showItem&gt; &lt;showItem index="1"&gt;orderBy&lt;/showItem&gt; &lt;/numIndex&gt; &lt;/types&gt; &lt;/config&gt; &lt;/TCEforms&gt; &lt;switchableControllerActions&gt; &lt;/el&gt; </code></pre> <p>What i would like to do, is to specify some settings to each view without these settings to be applicable to every view. For example, on the list view, i would like to have the setting "Page for the single view" but not on the detail or import view. I found this documentation: <a href="https://docs.typo3.org/typo3cms/TCAReference/Types/Index.html#examples" rel="nofollow noreferrer">Documentation</a> but i have difficulties to convert it to FlexForm syntax. </p> <p>Any help is appreciated.</p> <p><strong>EDIT:</strong></p> <p>After @Bernd Wilke πφ showed me the right direction i found the solution to my problem. This is it:</p> <pre><code>&lt;pidSingle&gt; &lt;TCEforms&gt; &lt;label&gt;Page for the single views&lt;/label&gt; &lt;displayCond&gt;FIELD:switchableControllerActions:=:MyExt-&gt;list;ImmobilieImport-&gt;show&lt;/displayCond&gt; &lt;config&gt; &lt;type&gt;input&lt;/type&gt; &lt;eval&gt;trim&lt;/eval&gt; &lt;/config&gt; &lt;/TCEforms&gt; &lt;/pidSingle&gt; </code></pre> </div>

Android accessibility 键盘监控 界面变化

最近在研究Georgia理工的一篇论文,论文中,他们开发了一个app,那个app能够覆盖 在目标app上,并且模仿目标app的界面,这样,用户会在我伪装的app中进行输入操作, 从而监控到用户的所有输入和动作,再通过Android accessibility api来将用户的操作输入 到目标app中,从而实现继续监控 关于Android accessibility来讲用户操作输入到目标app已经实现了,但是模仿目标app 界面的功能不知道是如何实现的,求思路,谢谢! 以下是论文的原话 First, although M-Aegis is confined within the OS’ app sandbox, it must be able to determine with which TCA (target client app)the user is currently interacting. This allows M-Aegis to invoke specific logic to handle the TCA, and helps M-Aegis clean up the screen when the TCA is termi- nated. Second, M-Aegis requires information about the GUI layout for the TCA it is currently handling. This allows M-Aegis to properly render mimic GUIs on L- 7.5 to intercept user I/O. Third, although isolated from the TCA, M-Aegis must be able to communicate with the TCA to maintain functionality and ensure user expe- rience is not disrupted. For example, M-Aegis must be able to relay user clicks to the TCA, eventually send en- crypted data to the TCA, and click on TCA’s button on behalf of the user. For output on screen, it must be able to capture ciphertext so that it can decrypt it and then render it on L-7.5.

TYPO3,后端简单的用户界面

<div class="post-text" itemprop="text"> <p>I would like to have a simple interface in TYPO3 backend for viewing the data from database (joining two tables) and also to be able to edit the data. I tired something with tca array but I dont know how display the data that are already in database. Is there an option that says foe example that this TCA configuration should display the data in this list?+ Or any other option?</p> <p>thanks</p> </div>

Typo3:扩展tt_content,Repo返回空的QueryResultInterface

<div class="post-text" itemprop="text"> <p>I extended the tt_content table with an relationship to the tags of the news extension. (So I can Tag all tt_content elements.)</p> <p>The methods like findAll and findByUid always return an empty QueryResultInterface.</p> <p>I created the extension with extensionbuilder. I defined the Storage in the extensions right and ignore the storage on own methods.</p> <p>ext_typoscript_setup.txt:</p> <pre><code>config.tx_extbase { persistence { classes { EXAMP\ExampContentTagging\Domain\Model\ContentTagRelation { mapping { tableName = tt_content recordType = Tx_ExampContentTagging_ContentTagRelation } } } } } </code></pre> <p>ContentTagRelationRepository.php:</p> <pre><code>&lt;?php namespace EXAMP\ExampContentTagging\Domain\Repository; /** * The repository for ContentTagRelations */ class ContentTagRelationRepository extends \TYPO3\CMS\Extbase\Persistence\Repository { /** * @var array */ protected $defaultOrderings = array( 'sorting' =&gt; \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING ); /** * Find tt_content by a given pid * * @param array $includeIdList list of id s * @param array $excludeIdList list of id s * @return QueryInterface */ public function findByTagIdList(array $includeIdList, array $excludeIdList = []) { $query = $this-&gt;createQuery(); $query-&gt;getQuerySettings()-&gt;setRespectStoragePage(false); $query-&gt;getQuerySettings()-&gt;setRespectSysLanguage(false); return $query-&gt;execute(); } </code></pre> <p>TCA/Overrides/tt_content.php: </p><pre><code>defined('TYPO3_MODE') || die(); if (!isset($GLOBALS['TCA']['tt_content']['ctrl']['type'])) { if (file_exists($GLOBALS['TCA']['tt_content']['ctrl']['dynamicConfigFile'])) { require_once($GLOBALS['TCA']['tt_content']['ctrl']['dynamicConfigFile']); } // no type field defined, so we define it here. This will only happen the first time the extension is installed!! $GLOBALS['TCA']['tt_content']['ctrl']['type'] = 'tx_extbase_type'; $tempColumnstx_exampcontenttagging_tt_content = []; $tempColumnstx_exampcontenttagging_tt_content[$GLOBALS['TCA']['tt_content']['ctrl']['type']] = [ 'exclude' =&gt; true, 'label' =&gt; 'LLL:EXT:examp_content_tagging/Resources/Private/Language/locallang_db.xlf:tx_exampcontenttagging.tx_extbase_type', 'config' =&gt; [ 'type' =&gt; 'select', 'renderType' =&gt; 'selectSingle', 'items' =&gt; [ ['ContentTagRelation','Tx_exampContentTagging_ContentTagRelation'] ], 'default' =&gt; 'Tx_exampContentTagging_ContentTagRelation', 'size' =&gt; 1, 'maxitems' =&gt; 1, ] ]; \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $tempColumnstx_exampcontenttagging_tt_content); } \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes( 'tt_content', 'tx_news_domain_model_tag' ); $tmp_examp_content_tagging_columns = [ 'tx_news_domain_model_tag' =&gt; [ 'exclude' =&gt; true, 'label' =&gt; 'LLL:EXT:examp_content_tagging/Resources/Private/Language/locallang_db.xlf:tx_exampcontenttagging_domain_model_contenttagrelation.tx_news_domain_model_tag', 'config' =&gt; [ 'type' =&gt; 'select', 'renderType' =&gt; 'selectMultipleSideBySide', 'foreign_table' =&gt; 'tx_news_domain_model_tag', 'MM' =&gt; 'tx_exampcontenttagging_contenttagrelation_tag_mm', 'size' =&gt; 10, 'autoSizeMax' =&gt; 30, 'maxitems' =&gt; 9999, 'multiple' =&gt; 0, 'wizards' =&gt; [ '_PADDING' =&gt; 1, '_VERTICAL' =&gt; 1, 'edit' =&gt; [ 'module' =&gt; [ 'name' =&gt; 'wizard_edit', ], 'type' =&gt; 'popup', 'title' =&gt; 'Edit', // todo define label: LLL:EXT:.../Resources/Private/Language/locallang_tca.xlf:wizard.edit 'icon' =&gt; 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_edit.gif', 'popup_onlyOpenIfSelected' =&gt; 1, 'JSopenParams' =&gt; 'height=350,width=580,status=0,menubar=0,scrollbars=1', ], 'add' =&gt; [ 'module' =&gt; [ 'name' =&gt; 'wizard_add', ], 'type' =&gt; 'script', 'title' =&gt; 'Create new', // todo define label: LLL:EXT:.../Resources/Private/Language/locallang_tca.xlf:wizard.add 'icon' =&gt; 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_add.gif', 'params' =&gt; [ 'table' =&gt; 'tx_news_domain_model_tag', 'pid' =&gt; '###CURRENT_PID###', 'setValue' =&gt; 'prepend' ], ], ], ], ], ]; \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content',$tmp_examp_content_tagging_columns); /* inherit and extend the show items from the parent class */ if (isset($GLOBALS['TCA']['tt_content']['types']['1']['showitem'])) { $GLOBALS['TCA']['tt_content']['types']['Tx_exampContentTagging_ContentTagRelation']['showitem'] = $GLOBALS['TCA']['tt_content']['types']['1']['showitem']; } elseif(is_array($GLOBALS['TCA']['tt_content']['types'])) { // use first entry in types array $tt_content_type_definition = reset($GLOBALS['TCA']['tt_content']['types']); $GLOBALS['TCA']['tt_content']['types']['Tx_exampContentTagging_ContentTagRelation']['showitem'] = $tt_content_type_definition['showitem']; } else { $GLOBALS['TCA']['tt_content']['types']['Tx_exampContentTagging_ContentTagRelation']['showitem'] = ''; } $GLOBALS['TCA']['tt_content']['types']['Tx_exampContentTagging_ContentTagRelation']['showitem'] .= ',--div--;LLL:EXT:examp_content_tagging/Resources/Private/Language/locallang_db.xlf:tx_exampcontenttagging_domain_model_contenttagrelation,'; $GLOBALS['TCA']['tt_content']['types']['Tx_exampContentTagging_ContentTagRelation']['showitem'] .= 'tx_news_domain_model_tag'; $GLOBALS['TCA']['tt_content']['columns'][$GLOBALS['TCA']['tt_content']['ctrl']['type']]['config']['items'][] = ['LLL:EXT:examp_content_tagging/Resources/Private/Language/locallang_db.xlf:tt_content.tx_extbase_type.Tx_exampContentTagging_ContentTagRelation','Tx_exampContentTagging_ContentTagRelation']; \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr( '', 'EXT:/Resources/Private/Language/locallang_csh_.xlf' ); </code></pre> <p>Mostly to this problem, the solution is to check if the right storage is set. But I did this and still have the problem. So I think tt_content is the problem. But the only thing I could find to this was: </p> <blockquote> <p>"tt_content is special."</p> </blockquote> <p>Which dosen't help. (Offtopic: This Typo3 Documentation makes me mad every time I've to look into it.)</p> </div>

在TYPO3插件中创建新内容cType时使用FlexForm

<div class="post-text" itemprop="text"> <p>I'm adding new content types to my TYPO3 and I want to use FlexForms to define each content type options form.</p> <p>I have followed this example: <a href="https://docs.typo3.org/typo3cms/extensions/fluid_styled_content/latest/AddingYourOwnContentElements/" rel="nofollow noreferrer">https://docs.typo3.org/typo3cms/extensions/fluid_styled_content/latest/AddingYourOwnContentElements/</a></p> <p>And modified it to use FlexForms from this example: <a href="https://wiki.typo3.org/Extension_Development,_using_Flexforms" rel="nofollow noreferrer">https://wiki.typo3.org/Extension_Development,_using_Flexforms</a></p> <p>But I believe I don't quite understand the settings in <code>Configuration/TCA/Overrrides/tt_contant.php</code>: </p><pre><code>// Adds content new content elements \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin( [ 'LLL:EXT:lu_content/Resources/Private/Language/locallang.xlf:contacts.title', 'lu_content__contacts', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('lu_content').'Resources/Public/Icons/Contacts.svg', ], 'CType', 'lu_content' ); $GLOBALS['TCA']['tt_content']['types']['lu_content__contacts']['showitem'] = 'CType;;;1-1-1,pi_flexform;;;1-1-1'; $GLOBALS['TCA']['tt_content']['columns']['pi_flexform']['config']['ds'][',lu_content__contacts'] = 'FILE:EXT:lu_content/Configuration/FlexForms/Contacts.xml'; </code></pre> <p>The form works, but looks like this: <a href="https://i.stack.imgur.com/UD575.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UD575.png" alt="enter image description here"></a></p> <p><strong>How do I get the form <em>not</em> to fall under Plugin Options?</strong></p> <p><strong>And how do I make the title/header to be used in to list view?</strong> Currently i get [notitle] after save in the content list.</p> <p><a href="https://i.stack.imgur.com/V2dzo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V2dzo.png" alt="enter image description here"></a></p> <p>Thank you in advance.</p> <p><em>PS: I'm currently developing on TYPO3 v7 but with support for v8.</em></p> </div>

Laravel路由抛出NotFoundHttpException

<div class="post-text" itemprop="text"> <p>I'm looking for some help. I've searched on other topics, and saw what is the problem approximatively, but didn't succeed to fix it on my code. Now the question is: I have NotFoundHttpException when i try to submit an update on my code.</p> <p>Here is the Controller and my function update</p> <pre><code>&lt;?php namespace App\Http\Controllers; use Request; use App\Http\Requests; use App\T_collaborateurs_table; class testing extends Controller { public function index() { $user = T_collaborateurs_table::all(); return view ("read", compact("user")); } public function create() { return view("create"); } public function store(Request $Request) { T_collaborateurs_table::create(Request::all()); return redirect("index"); } public function show($id) { $user=T_collaborateurs_table::find($id); return view("show", compact("user")); } public function edit($id) { $user=T_collaborateurs_table::find($id); return view("update", compact("user")); } public function update(Request $Request, $id) { $user = T_collaborateurs_table::find($id); $user-&gt;update(Request::all()); return redirect("index"); } } </code></pre> <p>Now the routes</p> <pre><code>Route::get("create", "testing@create"); Route::post("store", "testing@store"); Route::get("index", "testing@index"); Route::get("show/{id}", "testing@show"); Route::get("edit/{id}", "testing@edit"); Route::patch("update/{id}", "testing@update"); </code></pre> <p>And now the view update.blade.php</p> <pre><code>&lt;body&gt; {{Form::model($user, ['method'=&gt;'patch', 'action'=&gt;['testing@update',$user-&gt;id]])}} {{Form::label('Id_TCa', 'ID')}} {{Form::text('Id_TCa')}} {{Form::label('Collaborateur_TCa', 'collab')}} {{Form::text('Collaborateur_TCa')}} {{Form::label('Responsable_TCa', 'resp')}} {{Form::text('Responsable_TCa')}} {{Form::submit("update")}} {{Form::close()}} &lt;/body&gt; </code></pre> <p><a href="https://i.stack.imgur.com/RqbSe.jpg" rel="nofollow noreferrer">Here the route:list</a></p> <p>I'm sorry if my words are not very understable... Thank you all for your time.</p> </div>

如何在TYPO3的钩子中更新关系1:n的对象

<div class="post-text" itemprop="text"> <p>I have an A entity and this have a property call B as relation 1:n from B to A. When I update A in TCA backend interface, when an particular field is active, the solution runs a hook of type <code>function processDatamap_postProcessFieldArray (...)</code></p> <p>I have to create a new element of B and save in ObjectStorage attribute of A. This works in execute time, create an objet and attaching it, but can not save in DB. I have tried with functions of extbase and Repository but it does not work. In my reserch identified the framework Doctrine for create queries, similar to persistence behavior, but in this case I could save the new object of B.</p> <p>My question is: how could I use Doctrine for build query that allows to make update for object A, adding the new element B and save this element in the relation in DB.</p> <p>I am working with TYPO3 7.6</p> </div>

使用TYPO3 6.2中的itemsProcFunc扩展包含字段的页表

<div class="post-text" itemprop="text"> <p>I'm trying to extend the 'page' properties form by extending the page db table and TCA array from within an extension. This works, except that my custom function won't be called. If I replace my own itemsProcFunc line with a TYPO3 core function itemsProcFunc line it works, but with my own function it never works (I just get an empty result/selectlist, even when I simply return a dummy array: "return array('title','1');".... </p> <p>Here's my code in my extension's ext_tables.php: </p> <pre class="lang-php prettyprint-override"><code>&lt;?php $TCA['pages']['columns'] += array( 'targetelement' =&gt; array( 'exclude' =&gt; 0, 'label' =&gt; 'Target element (first select a target page!)', 'config' =&gt; array ( 'type' =&gt; 'select', 'items' =&gt; Array ( Array('',0), ), 'size' =&gt; 1, 'minitems' =&gt; 1, 'maxitems' =&gt; 1, //'itemsProcFunc' =&gt; 'TYPO3\CMS\Backend\View\BackendLayoutView-&gt;addBackendLayoutItems', 'itemsProcFunc' =&gt; 'Vendor\Myextension\Controller\Hooks\CustomTargetElementSelector-&gt;getContentElements', ), ) ); t3lib_extMgm::addToAllTCAtypes('pages', 'targetelement,', '2', 'after:nav_title'); t3lib_extMgm::addToAllTCAtypes('pages', 'targetelement', '1,5,4,199,254', 'after:title'); </code></pre> <p>P.s. I replace Vendor\Myextension for my own namespace of course.</p> <p>I don't know where to put my function file exactly, I assume in extension\Classes\Controllers\Hooks\CustomTargetElementSelector.php.</p> <p>My ultimate goal is to display a list of content elements of the selected shortcut page UID..</p> <p>P.s.2 my CustomTargetElementSelect.php file looks like this (contents just return a single item, dummy list result:</p> <pre class="lang-php prettyprint-override"><code>&lt;?php namespace Vendor\Myextension\Controller; class CustomTargetElementsSelector extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController { public function getContentElements(array &amp;$params,$pObj){ return array('title','uid'); } } </code></pre> </div>

从数据库中检索选定的下拉值以回显该值

<div class="post-text" itemprop="text"> <p>retrieve the selected dropdown value from data base echo the value and it didnot triggered the 2nd dropdown value using ajax. I have a form to create an activities. The dropdown ajax for program and category is working well when creating new activities. But once i try to display the activities that i have created which is edit form and i retrieve all the value, the ajax program and category is not working</p> <p>Here my two dropdown program and catergory this two is dependent.</p> <p>Here is button</p> <pre><code>&lt;li&gt;&lt;a style="text-align:left" class="btn waves-effect waves-light" data-toggle="modal" data-target="#&lt;?php echo $rowss['id']; ?&gt;"&gt;Edits&lt;/a&gt;&lt;/li&gt; </code></pre> <p>Here is modal</p> <pre><code>&lt;div class="modal fade" id="&lt;?php echo $rows["id"]; ?&gt;" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"&gt; &lt;div class="modal-dialog" role="document"&gt; &lt;div class="modal-content"&gt; &lt;div class="form-group"&gt; &lt;label for="programs" class="col-sm-3 control-label"&gt;Program&lt;/label&gt; &lt;div class="col-sm-9"&gt; &lt;select name="programs" class="programs form-control" id="programs" onchange="get_category(this);"&gt; &lt;?php foreach($programs as $row) { if($row['tcp_id']==$eveprrm['tcp_id']) { ?&gt; &lt;option value="&lt;?php echo $row['tcp_id']; ?&gt;" selected&gt;&lt;?php echo $row['tcp_name']; ?&gt;&lt;/option&gt; &lt;?php } else { ?&gt; &lt;option value="&lt;?php echo $row['tcp_id']; ?&gt;"&gt;&lt;?php echo $row['tcp_name']; ?&gt;&lt;/option&gt; &lt;?php } } ?&gt; &lt;/select&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="form-group"&gt; &lt;label for="categorys" class="col-sm-3 control-label"&gt;Category&lt;/label&gt; &lt;div class="col-sm-9"&gt; &lt;select name="categorys" class="form-control" id="categorys"&gt; &lt;/select&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>when i fetch and echo the option value for program the category dropdown didnot triggered the javascript for the ajax. Below is my script for ajax.</p> <pre><code>&lt;script&gt; function get_category(sel) { var tcp_id = sel.options[sel.selectedIndex].value; if(tcp_id){ $.ajax({ type:'POST', url:'fetch_data.php', data:'tcp_id='+tcp_id, cache: false, success:function(html) { $('#categorys').html(html); } }); } else { $('#categorys').html('&lt;option value=""&gt;Select category first&lt;/option&gt;');\ } } &lt;/script&gt; </code></pre> <p>and this is my fetch_data.php code</p> <pre><code>if(isset($_POST["tcp_id"]) &amp;&amp; !empty($_POST["tcp_id"])) { $progs = $bdd-&gt;prepare("SELECT * FROM category_new WHERE tca_program_id = ".$_POST['tcp_id']); $progs-&gt;execute(); $rows = $progs-&gt;fetchAll(); echo '&lt;option value=""&gt;Select category first&lt;/option&gt;'; foreach($rows as $row) { echo '&lt;option value="'.$row['tca_id'].'"&gt;'.$row['tca_name'].'&lt;/option&gt;'; } } </code></pre> </div>

使用IF语句加载本地infile数据

<div class="post-text" itemprop="text"> <p>I have table with data: </p> <pre><code>| id | status | +-----+--------+ | 1 | 1 | | 2 | 1 | | 3 | 0 | | 4 | 2 | | 5 | 2 | </code></pre> <p>I have file, that I need to load into this table and replace: </p> <pre><code>| id | status | +----+--------+ | 1 | 1 | | 2 | 0 | | 3 | 0 | | 4 | 0 | | 5 | 1 | </code></pre> <p>I have one condition: if status in table =2 and status in file =0, leave status in table =2, otherwise replace status in table from file.<br> After query I need to get new data: </p> <pre><code>| id | status | +-----+--------+ | 1 | 1 | | 2 | 0 | | 3 | 0 | | 4 | 2 | | 5 | 1 | </code></pre> <p>I'm trying do it with query: </p> <pre><code>load data local infile '".$file."' replace into table t1 fields terminated by ',' enclosed by '\"' (@tid, teacher_name, email, @pid, tca_form_type, prod_company, prod_name, @stts) set status = if((select status from (select status from t1 where teacher_id=@tid and prod_id=@pid) as tmp)=2 and @stts=0,status,@stts), teacher_id = @tid, prod_id = @pid </code></pre> <p>After that I get status fields NULL.<br> How to resolve this problem? </p> <p><strong>Edit:</strong><br> I tried: </p> <pre><code>set status = if((select @var:=status from (select status from t1 where teacher_id=@tid and prod_id=@pid) as tmp)=2 and @stts=0,@var,@stts), </code></pre> <p>But result status 2 changed to 0. </p> <p><strong>Table schema:</strong></p> <pre><code>CREATE TABLE `table` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `teacher_id` VARCHAR(20) NOT NULL COLLATE 'utf8_unicode_ci', `status` INT(11) NULL DEFAULT NULL, `prod_id` VARCHAR(10) NOT NULL COLLATE 'utf8_unicode_ci', PRIMARY KEY (`id`), UNIQUE INDEX `teacher_id_UNIQUE` (`teacher_id`, `prod_id`) ) COLLATE='utf8_unicode_ci' ENGINE=InnoDB ROW_FORMAT=COMPACT AUTO_INCREMENT=2053; </code></pre> <p><strong>Real data:</strong> </p> <pre><code>| id | teacher_id | status | prod_id | +-----+------------+--------+---------+ | 1 | a1 | 1 | 15 | | 2 | a1 | 1 | 16 | | 3 | a1 | 0 | 17 | | 4 | a2 | 2 | 16 | | 5 | a2 | 2 | 18 | | 6 | a3 | 0 | 15 | | 7 | a3 | 1 | 20 | </code></pre> <p><strong>File data:</strong> </p> <pre><code>| teacher_id | status | prod_id | +------------+--------+---------+ | a1 | 0 | 15 | | a1 | 1 | 16 | | a1 | 0 | 17 | | a2 | 1 | 16 | | a2 | 0 | 18 | | a3 | 1 | 15 | | a3 | 1 | 20 | </code></pre> <p><strong>My temporary solution:</strong></p> <pre><code>load data local infile '".$file."' into table table_tmp fields terminated by ',' enclosed by '\"' (teacher_id, teacher_name, email, prod_id, tca_form_type, prod_company, prod_name, status); INSERT INTO table (teacher_id, teacher_name, email, status, prod_id, tca_form_type, prod_company, prod_name) SELECT teacher_id, teacher_name, email, `status`, prod_id, tca_form_type, prod_company, prod_name FROM table_tmp ON DUPLICATE KEY UPDATE table.status = IF(table.status = 2 and VALUES(status) = 0, table.status, VALUES(status)); </code></pre> </div>

在PHP中使用$ _GET字符串计数

<div class="post-text" itemprop="text"> <p>Hi Im trying to do few calculations but seems like my GET function isn't being used correctly in line 82 any assistance please. I'm a newbie with this coding...</p> <p>Im trying to retrieve info from my form and add it all together in line 82</p> <p>Form:</p> <pre><code>&lt;!DOCTYPE HTML&gt; &lt;html&gt; &lt;head&gt; &lt;style&gt; .error {color: #FF0000;} &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;form method="POST" action="gc.php"&gt; Interceptors:&lt;input type="text" name="inter" value="&lt;?php echo $inter;?&gt;"&gt;&lt;br&gt;&lt;br&gt; Destroyers:&lt;input type="text" name="destr" value="&lt;?php echo $destr;?&gt;"&gt;&lt;br&gt;&lt;br&gt; Cruisers:&lt;input type="text" name="cruiser" value="&lt;?php echo $cruiser;?&gt;"&gt;&lt;br&gt;&lt;br&gt; Bombers:&lt;input type="text" name="bomb" value="&lt;?php echo $bomb;?&gt;"&gt;&lt;br&gt;&lt;br&gt; Battleships:&lt;input type="text" name="battle" value="&lt;?php echo $battle;?&gt;"&gt;&lt;br&gt;&lt;br&gt; &lt;input type="submit" name="submit" value="Submit"&gt; &lt;/form&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;&lt;/a&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Calculation page named gc.php </p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;!---Metal---&gt; &lt;?php $im = 120; $dm = 200; $cm = 1000; $bom = 2000; $bm = 3650; ?&gt; &lt;!---Crystal---&gt; &lt;?php $ic = 80; $dc = 160; $cc = 540; $boc = 840; $bc = 1900; ?&gt; &lt;!---Gas---&gt; &lt;?php $ig = 120; $dg = 150; $cg = 1360; $bog = 1450; $bg = 4970; ?&gt; &lt;!---Attack HP---&gt; &lt;?php $ia = 80; $da = 44; $ca = 300; $boa = 50; $ba = 1400; ?&gt; &lt;!---Defence HP---&gt; &lt;?php $id = 20; $dd = 110; $cd = 450; $bod = 10; $bd = 1180; ?&gt; &lt;!---Total Attack HP - Ship Type---&gt; &lt;?php $tia = ($_GET["inter"] * $ia); $tda = ($_GET["destr"] * $da); $tca = ($_GET["cruiser"] * $ca); $tboa = ($_GET["bomb"] * $boa); $tba = ($_GET["battle"] * $ba); ?&gt; &lt;!---Total Defence HP - Ship Type---&gt; &lt;?php $tid = ($_GET["inter"] * $id); $tdd = ($_GET["destr"] * $dd); $tcd = ($_GET["cruiser"] * $cd); $tbod = ($_GET["bomb"] * $bod); $tbd = ($_GET["battle"] * $bd); ?&gt; &lt;!---Total Attack---&gt; &lt;?php $tatt = ($tia + $tda + $tca + $tboa + $tba); ?&gt; &lt;!---Total Defence---&gt; &lt;?php $tdef = ($tid + $tdd + $tcd + $tbod + $tbd); ?&gt; &lt;!---Total Troops---&gt; &lt;?php $ttroops = ($_GET["inter"] + $_GET["destr"] + $_GET["cruiser"] + $_GET["bomb"] + $_GET["battle"] ); ?&gt; &lt;table style="width:300px"&gt; &lt;tr&gt; &lt;td&gt;Troops&lt;/td&gt; &lt;td&gt;Amount&lt;/td&gt; &lt;td&gt;Attack HP&lt;/td&gt; &lt;td&gt;Defence HP&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Interceptors&lt;/td&gt; &lt;td&gt;&lt;?php($_GET["inter"];)?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $tia;?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $tid;?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Destroyers&lt;/td&gt; &lt;td&gt;&lt;?php($_GET["destr"];)?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $tda;?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $tdd;?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Cruisers&lt;/td&gt; &lt;td&gt;&lt;?php($_GET["cruiser"];)?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $tca;?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $tcd;?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Bombers&lt;/td&gt; &lt;td&gt;&lt;?php($_GET["bomb"];)?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $tboa;?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $tbod;?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Battleships&lt;/td&gt; &lt;td&gt;&lt;?php($_GET["battle"];)?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $tba;?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $tbd;?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Totals&lt;/td&gt; &lt;td&gt;&lt;?php echo $ttroops;?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $tatt;?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo $tdef;?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;?php include "menu2.php"; ?&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> </div>

急急急!!VBA 连接Oracle数据库时,报错未找到提供程序,可能程序未正确安装

我是一个门外汉,搞电气自动化的,项目里有一个功能需要用到VBA连接数据库,显示产量数据,现在遇到这么一个问题,已经处理了一个月,还是没有什么进展,故到论坛请教大神指导!! 下边是我的代码: Dim Conn As New ADODB.Connection Dim Rec1 As New ADODB.Recordset Dim sConn As String Dim sRec1 As String 'On Error GoTo Error_Handle sDBIP = "10.67.100.27" sDBName = "MESPDS1" sDBUser = "MESPDS" sDBPassword = "123456" Set oGroup = Application.CreateTagGroup(Me.AreaName, 500) oGroup.Add "CS\ShiftTarget0" oGroup.Add "CS\ShiftActual" oGroup.Add "CS\CurrentPlanned" oGroup.Add "CS\CurrentActual0" oGroup.Add "CS\Loading" oGroup.Add "CS\Rework" oGroup.Add "CS\Start" oGroup.Add "CS\End" Set tSP = oGroup.Item("CS\ShiftTarget0") Set tSA = oGroup.Item("CS\ShiftActual") Set tCP = oGroup.Item("CS\CurrentPlanned") Set tCA = oGroup.Item("CS\CurrentActual0") Set tLD = oGroup.Item("CS\Loading") Set tRJ = oGroup.Item("CS\Rework") sConn = "provider=OraOLEDB.Oracle.1;User Id=MESPDS;" sConn = sConn & "Password=123456;" sConn = sConn & "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.67.100.27)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=MESPDS1)));" sRec1 = "select P.SHIFT_PLAN_QUANTITY_I,P.SHIFT_ACTUAL_QUANTITY_I,P.CURRENT_PLAN_QUANTITY_I,P.ACTUAL_COMPLETE_QUANTITY_I,P.ACTUAL_START_QUANTITY_I,P.REWORK_QUANTITY_I,TO_CHAR(P.SHIFT_START_TIME_T,'HH24:mm'),TO_CHAR(P.SHIFT_END_TIME_T, 'HH24:mm') from AT_AS_MM_PMC_PRODUCTIONCOUNT P WHERE P.PLINE_NAME_S = 'I032JJ03';" Conn.Open sConn Rec1.Open sRec1, sConn tSP.Value = Rec1(0) tSA.Value = Rec1(1) tCP.Value = Rec1(2) tCA.Value = Rec1(3) tLD.Value = Rec1(4) tRJ.Value = Rec1(5) Rec1.Close Conn.Close End Sub 报错截图: ![图片说明](https://img-ask.csdn.net/upload/201711/06/1509951307_731313.png) 运行到Conn.OPEN,就不行了,提示未找到程序,在网上搜的各种方法以及各种连接字符串都湿了个遍,还是不行,实在是走投无路了,特来发帖,请教专业大神,望指导,在线等~~~~ oracle客户端安装了,在客户端配置了NET Manager,也通了,那些.dll文件也放在相应的位置了,就是始终报这个错,不知道还有哪些地方需要配置或者是连接字符串里的provider不对?

学Python后到底能干什么?网友:我太难了

感觉全世界营销文都在推Python,但是找不到工作的话,又有哪个机构会站出来给我推荐工作? 笔者冷静分析多方数据,想跟大家说:关于超越老牌霸主Java,过去几年间Python一直都被寄予厚望。但是事实是虽然上升趋势,但是国内环境下,一时间是无法马上就超越Java的,也可以换句话说:超越Java只是时间问题罢。 太嚣张了会Python的人!找工作拿高薪这么简单? https://edu....

大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了

大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

Java校招入职华为,半年后我跑路了

何来 我,一个双非本科弟弟,有幸在 19 届的秋招中得到前东家华为(以下简称 hw)的赏识,当时秋招签订就业协议,说是入了某 java bg,之后一系列组织架构调整原因等等让人无法理解的神操作,最终毕业前夕,被通知调往其他 bg 做嵌入式开发(纯 C 语言)。 由于已至于校招末尾,之前拿到的其他 offer 又无法再收回,一时感到无力回天,只得默默接受。 毕业后,直接入职开始了嵌入式苦旅,由于从未...

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

@程序员:GitHub这个项目快薅羊毛

今天下午在朋友圈看到很多人都在发github的羊毛,一时没明白是怎么回事。 后来上百度搜索了一下,原来真有这回事,毕竟资源主义的羊毛不少啊,1000刀刷爆了朋友圈!不知道你们的朋友圈有没有看到类似的消息。 这到底是啥情况? 微软开发者平台GitHub 的一个区块链项目 Handshake ,搞了一个招募新会员的活动,面向GitHub 上前 25万名开发者派送 4,246.99 HNS币,大约价...

用python打开电脑摄像头,并把图像传回qq邮箱【Pyinstaller打包】

前言: 如何悄悄的打开朋友的摄像头,看看她最近过的怎么样,嘿嘿!这次让我带你们来实现这个功能。 注: 这个程序仅限在朋友之间开玩笑,别去搞什么违法的事情哦。 代码 发送邮件 使用python内置的email模块即可完成。导入相应的代码封装为一个send函数,顺便导入需要导入的包 注: 下面的代码有三处要修改的地方,两处写的qq邮箱地址,还有一处写的qq邮箱授权码,不知道qq邮箱授权码的可以去百度一...

做了5年运维,靠着这份监控知识体系,我从3K变成了40K

从来没讲过运维,因为我觉得运维这种东西不需要太多的知识面,然后我一个做了运维朋友告诉我大错特错,他就是从3K的运维一步步到40K的,甚至笑着说:我现在感觉自己什么都能做。 既然讲,就讲最重要的吧。 监控是整个运维乃至整个产品生命周期中最重要的一环,事前及时预警发现故障,事后提供详实的数据用于追查定位问题。目前业界有很多不错的开源产品可供选择。选择一款开源的监控系统,是一个省时省力、效率最高的方...

计算机网络——浅析网络层

一、前言 注意,关于ipv4和ipv6,ipv4是ip协议第4版本,也表示这个版本的ip一共4个字节,同样地,ipv6是ip协议第6版本,也表示这个版本的ip一共6个字节。 关于网络层使用路由器实现互联:在计算机网络的分层结构中,不同层有不同的中继设备: 计算机网络层 中继设备/中继系统 物理层 中继器、集线器Hub 数据链路层 网桥或交换机(交换机是多端口网桥,两者本质上是一个东西) 网络层 路...

我以为我学懂了数据结构,直到看了这个导图才发现,我错了

数据结构与算法思维导图

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

华为初面+综合面试(Java技术面)附上面试题

华为面试整体流程大致分为笔试,性格测试,面试,综合面试,回学校等结果。笔试来说,华为的难度较中等,选择题难度和网易腾讯差不多。最后的代码题,相比下来就简单很多,一共3道题目,前2题很容易就AC,题目已经记不太清楚,不过难度确实不大。最后一题最后提交的代码过了75%的样例,一直没有发现剩下的25%可能存在什么坑。 笔试部分太久远,我就不怎么回忆了。直接将面试。 面试 如果说腾讯的面试是挥金如土...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

讲一个程序员如何副业月赚三万的真实故事

loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...

win10暴力查看wifi密码

刚才邻居打了个电话说:喂小灰,你家wifi的密码是多少,我怎么连不上了。 我。。。 我也忘了哎,就找到了一个好办法,分享给大家: 第一种情况:已经连接上的wifi,怎么知道密码? 打开:控制面板\网络和 Internet\网络连接 然后右击wifi连接的无线网卡,选择状态 然后像下图一样: 第二种情况:前提是我不知道啊,但是我以前知道密码。 此时可以利用dos命令了 1、利用netsh wlan...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

记一次腾讯面试,我挂在了最熟悉不过的队列上……

腾讯后台面试,面试官问:如何自己实现队列?

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

2020阿里全球数学大赛:3万名高手、4道题、2天2夜未交卷

阿里巴巴全球数学竞赛( Alibaba Global Mathematics Competition)由马云发起,由中国科学技术协会、阿里巴巴基金会、阿里巴巴达摩院共同举办。大赛不设报名门槛,全世界爱好数学的人都可参与,不论是否出身数学专业、是否投身数学研究。 2020年阿里巴巴达摩院邀请北京大学、剑桥大学、浙江大学等高校的顶尖数学教师组建了出题组。中科院院士、美国艺术与科学院院士、北京国际数学...

HTTP与HTTPS的区别

面试官问HTTP与HTTPS的区别,我这样回答让他竖起大拇指!

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

程序员为什么千万不要瞎努力?

本文作者用对比非常鲜明的两个开发团队的故事,讲解了敏捷开发之道 —— 如果你的团队缺乏统一标准的环境,那么即使勤劳努力,不仅会极其耗时而且成果甚微,使用...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发(16k)

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

立即提问
相关内容推荐